dfaca5432af2029cbb6cb9e5b8e5f389143a92c8
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_unique_file=""Makefile.config.in""
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
925 ac_env_CC_value=$CC
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012   --target=TARGET   configure for building compilers for TARGET [HOST]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017   case $ac_init_help in
1018      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019    esac
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032   --enable-purify         Compile with purify (default is NO)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec           Compile SPEC benchmarks (default is NO)
1035   --enable-precompiled_bytecode
1036                           Use pre-compiled bytecode (default is NO)
1037   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044   --with-pic              try to use only PIC/non-PIC objects [default=use
1045                           both]
1046   --with-tags[=TAGS]
1047                           include additional configurations [automatic]
1048   --with-spec             Location of SPEC benchmarks
1049   --with-llvmgccdir       Location of LLVM GCC front-end
1050   --with-bcrepos          Location of Bytecode Repository
1051   --with-papi             Location of PAPI
1052   --with-purify           Location of purify program
1053
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 [LLVM] configure [1.0]
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by [LLVM] $as_me [1.0], which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512 if test ${srcdir} != "."
1513 then
1514         if test -f ${srcdir}/include/Config/config.h
1515         then
1516                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518    { (exit 1); exit 1; }; }
1519         fi
1520 fi
1521
1522           ac_config_headers="$ac_config_headers include/Config/config.h"
1523
1524           ac_config_commands="$ac_config_commands Makefile"
1525
1526
1527           ac_config_commands="$ac_config_commands Makefile.common"
1528
1529
1530           ac_config_commands="$ac_config_commands Makefile.rules"
1531
1532
1533           ac_config_commands="$ac_config_commands lib/Makefile"
1534
1535
1536           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1537
1538
1539           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1540
1541
1542           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1543
1544
1545           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1546
1547
1548           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1549
1550
1551           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1552
1553
1554           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1555
1556
1557           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1558
1559
1560           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1561
1562
1563           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1564
1565
1566           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1567
1568
1569           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1570
1571
1572           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1573
1574
1575           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1579
1580
1581           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1597
1598
1599           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1606
1607
1608           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands runtime/Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1636
1637
1638           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1657
1658
1659           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1660
1661
1662           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands test/Makefile"
1669
1670
1671           ac_config_commands="$ac_config_commands test/Makefile.tests"
1672
1673
1674           ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1675
1676
1677           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1678
1679
1680           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1681
1682
1683           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1684
1685
1686           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1690
1691
1692           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1693
1694
1695           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1696
1697
1698           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1714
1715
1716           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1717
1718
1719           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1720
1721
1722           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1723
1724
1725           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1726
1727
1728           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1729
1730
1731           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1732
1733
1734           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1735
1736
1737           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1738
1739
1740           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1741
1742
1743           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1744
1745
1746           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1747
1748
1749           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1750
1751
1752           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1753
1754
1755           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1756
1757
1758           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1759
1760
1761           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1762
1763
1764           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1765
1766
1767           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1768
1769
1770           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1771
1772
1773           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1774
1775
1776           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1777
1778
1779           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1780
1781
1782           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1783
1784
1785           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1786
1787
1788           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1789
1790
1791           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1792
1793
1794           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1795
1796
1797           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1798
1799
1800           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1801
1802
1803           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1804
1805
1806           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1807
1808
1809           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1810
1811
1812           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1813
1814
1815           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1816
1817
1818           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1819
1820
1821           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1822
1823
1824           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1825
1826
1827           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1828
1829
1830           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1831
1832
1833           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1834
1835
1836           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1837
1838
1839           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1840
1841
1842           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1843
1844
1845           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1846
1847
1848           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1849
1850
1851           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1852
1853
1854           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1855
1856
1857           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1858
1859
1860           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1861
1862
1863           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1864
1865
1866           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1867
1868
1869           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1870
1871
1872           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1873
1874
1875           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1876
1877
1878           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1879
1880
1881           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1882
1883
1884           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1885
1886
1887           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1888
1889
1890           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1891
1892
1893           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1894
1895
1896           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1897
1898
1899           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1900
1901
1902           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1903
1904
1905           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1906
1907
1908           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1909
1910
1911           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1912
1913
1914           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1915
1916
1917           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1918
1919
1920           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1921
1922
1923           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1924
1925
1926           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1927
1928
1929           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1930
1931
1932           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1933
1934
1935           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1936
1937
1938           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1939
1940
1941           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1942
1943
1944           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1945
1946
1947           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1948
1949
1950           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1951
1952
1953           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1954
1955
1956           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1957
1958
1959           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1960
1961
1962           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/CompileFail/Makefile"
1963
1964
1965           ac_config_commands="$ac_config_commands tools/Makefile"
1966
1967
1968           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1969
1970
1971           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1972
1973
1974           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1975
1976
1977           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1978
1979
1980           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1981
1982
1983           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1984
1985
1986           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1987
1988
1989           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1990
1991
1992           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1993
1994
1995           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1996
1997
1998           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1999
2000
2001           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2002
2003
2004           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2005
2006
2007           ac_config_commands="$ac_config_commands utils/Makefile"
2008
2009
2010           ac_config_commands="$ac_config_commands www/docs/Makefile"
2011
2012
2013           ac_config_commands="$ac_config_commands projects/Makefile"
2014
2015
2016           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2017
2018
2019           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2020
2021
2022           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2023
2024
2025           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2026
2027
2028           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2029
2030
2031           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2032
2033
2034           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2035
2036
2037           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2038
2039
2040           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2041
2042
2043           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2044
2045
2046           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2047
2048
2049           ac_config_commands="$ac_config_commands support/Makefile"
2050
2051
2052           ac_config_commands="$ac_config_commands support/lib/Makefile"
2053
2054
2055           ac_config_commands="$ac_config_commands support/lib/Support/Makefile"
2056
2057
2058           ac_config_commands="$ac_config_commands support/tools/Makefile"
2059
2060
2061           ac_config_commands="$ac_config_commands support/tools/Burg/Makefile"
2062
2063
2064           ac_config_commands="$ac_config_commands support/tools/Burg/Doc/Makefile"
2065
2066
2067           ac_config_commands="$ac_config_commands support/tools/TableGen/Makefile"
2068
2069
2070
2071
2072 # Find a good install program.  We prefer a C program (faster),
2073 # so one script is as good as another.  But avoid the broken or
2074 # incompatible versions:
2075 # SysV /etc/install, /usr/sbin/install
2076 # SunOS /usr/etc/install
2077 # IRIX /sbin/install
2078 # AIX /bin/install
2079 # AmigaOS /C/install, which installs bootblocks on floppy discs
2080 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2083 # ./install, which can be erroneously created by make from ./install.sh.
2084 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2085 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2086 if test -z "$INSTALL"; then
2087 if test "${ac_cv_path_install+set}" = set; then
2088   echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2092 do
2093   IFS=$as_save_IFS
2094   test -z "$as_dir" && as_dir=.
2095   # Account for people who put trailing slashes in PATH elements.
2096 case $as_dir/ in
2097   ./ | .// | /cC/* | \
2098   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2099   /usr/ucb/* ) ;;
2100   *)
2101     # OSF1 and SCO ODT 3.0 have their own names for install.
2102     # Don't use installbsd from OSF since it installs stuff as root
2103     # by default.
2104     for ac_prog in ginstall scoinst install; do
2105       for ac_exec_ext in '' $ac_executable_extensions; do
2106         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2107           if test $ac_prog = install &&
2108             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2109             # AIX install.  It has an incompatible calling convention.
2110             :
2111           elif test $ac_prog = install &&
2112             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2113             # program-specific install script used by HP pwplus--don't use.
2114             :
2115           else
2116             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2117             break 3
2118           fi
2119         fi
2120       done
2121     done
2122     ;;
2123 esac
2124 done
2125
2126
2127 fi
2128   if test "${ac_cv_path_install+set}" = set; then
2129     INSTALL=$ac_cv_path_install
2130   else
2131     # As a last resort, use the slow shell script.  We don't cache a
2132     # path for INSTALL within a source directory, because that will
2133     # break other packages using the cache if that directory is
2134     # removed, or if the path is relative.
2135     INSTALL=$ac_install_sh
2136   fi
2137 fi
2138 echo "$as_me:$LINENO: result: $INSTALL" >&5
2139 echo "${ECHO_T}$INSTALL" >&6
2140
2141 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2142 # It thinks the first close brace ends the variable substitution.
2143 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2144
2145 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2146
2147 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2148
2149
2150 # Make sure we can run config.sub.
2151 $ac_config_sub sun4 >/dev/null 2>&1 ||
2152   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2153 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2154    { (exit 1); exit 1; }; }
2155
2156 echo "$as_me:$LINENO: checking build system type" >&5
2157 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2158 if test "${ac_cv_build+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   ac_cv_build_alias=$build_alias
2162 test -z "$ac_cv_build_alias" &&
2163   ac_cv_build_alias=`$ac_config_guess`
2164 test -z "$ac_cv_build_alias" &&
2165   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2166 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2167    { (exit 1); exit 1; }; }
2168 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2169   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2170 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2171    { (exit 1); exit 1; }; }
2172
2173 fi
2174 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2175 echo "${ECHO_T}$ac_cv_build" >&6
2176 build=$ac_cv_build
2177 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2178 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2179 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2180
2181
2182 echo "$as_me:$LINENO: checking host system type" >&5
2183 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2184 if test "${ac_cv_host+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   ac_cv_host_alias=$host_alias
2188 test -z "$ac_cv_host_alias" &&
2189   ac_cv_host_alias=$ac_cv_build_alias
2190 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2191   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2192 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2193    { (exit 1); exit 1; }; }
2194
2195 fi
2196 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2197 echo "${ECHO_T}$ac_cv_host" >&6
2198 host=$ac_cv_host
2199 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2200 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2201 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2202
2203
2204 echo "$as_me:$LINENO: checking target system type" >&5
2205 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2206 if test "${ac_cv_target+set}" = set; then
2207   echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209   ac_cv_target_alias=$target_alias
2210 test "x$ac_cv_target_alias" = "x" &&
2211   ac_cv_target_alias=$ac_cv_host_alias
2212 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2213   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2214 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2215    { (exit 1); exit 1; }; }
2216
2217 fi
2218 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2219 echo "${ECHO_T}$ac_cv_target" >&6
2220 target=$ac_cv_target
2221 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2222 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2223 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2224
2225
2226 # The aliases save the names the user supplied, while $host etc.
2227 # will get canonicalized.
2228 test -n "$target_alias" &&
2229   test "$program_prefix$program_suffix$program_transform_name" = \
2230     NONENONEs,x,x, &&
2231   program_prefix=${target_alias}-
2232
2233 case $build in
2234         *i*86*)  OS=Linux
2235
2236                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2237
2238                  ;;
2239
2240         *sparc*) OS=SunOS
2241
2242                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2243
2244                  ;;
2245
2246         *)       OS=Unknown
2247
2248                  ;;
2249 esac
2250
2251 case $target in
2252         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2253
2254                           ;;
2255 esac
2256
2257 case $target in
2258         *i*86*)           ARCH=x86
2259
2260                           ;;
2261         *sparc*solaris*)  ARCH=Sparc
2262
2263                           ;;
2264 esac
2265
2266
2267 ac_ext=cc
2268 ac_cpp='$CXXCPP $CPPFLAGS'
2269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2272 if test -n "$ac_tool_prefix"; then
2273   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2274   do
2275     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2277 echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279 if test "${ac_cv_prog_CXX+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   if test -n "$CXX"; then
2283   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290   for ac_exec_ext in '' $ac_executable_extensions; do
2291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294     break 2
2295   fi
2296 done
2297 done
2298
2299 fi
2300 fi
2301 CXX=$ac_cv_prog_CXX
2302 if test -n "$CXX"; then
2303   echo "$as_me:$LINENO: result: $CXX" >&5
2304 echo "${ECHO_T}$CXX" >&6
2305 else
2306   echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6
2308 fi
2309
2310     test -n "$CXX" && break
2311   done
2312 fi
2313 if test -z "$CXX"; then
2314   ac_ct_CXX=$CXX
2315   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2316 do
2317   # Extract the first word of "$ac_prog", so it can be a program name with args.
2318 set dummy $ac_prog; ac_word=$2
2319 echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2322   echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324   if test -n "$ac_ct_CXX"; then
2325   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330   IFS=$as_save_IFS
2331   test -z "$as_dir" && as_dir=.
2332   for ac_exec_ext in '' $ac_executable_extensions; do
2333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334     ac_cv_prog_ac_ct_CXX="$ac_prog"
2335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336     break 2
2337   fi
2338 done
2339 done
2340
2341 fi
2342 fi
2343 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2344 if test -n "$ac_ct_CXX"; then
2345   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2346 echo "${ECHO_T}$ac_ct_CXX" >&6
2347 else
2348   echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6
2350 fi
2351
2352   test -n "$ac_ct_CXX" && break
2353 done
2354 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2355
2356   CXX=$ac_ct_CXX
2357 fi
2358
2359
2360 # Provide some information about the compiler.
2361 echo "$as_me:$LINENO:" \
2362      "checking for C++ compiler version" >&5
2363 ac_compiler=`set X $ac_compile; echo $2`
2364 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2365   (eval $ac_compiler --version </dev/null >&5) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }
2369 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2370   (eval $ac_compiler -v </dev/null >&5) 2>&5
2371   ac_status=$?
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); }
2374 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2375   (eval $ac_compiler -V </dev/null >&5) 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }
2379
2380 cat >conftest.$ac_ext <<_ACEOF
2381 #line $LINENO "configure"
2382 /* confdefs.h.  */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h.  */
2387
2388 int
2389 main ()
2390 {
2391
2392   ;
2393   return 0;
2394 }
2395 _ACEOF
2396 ac_clean_files_save=$ac_clean_files
2397 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2398 # Try to create an executable without -o first, disregard a.out.
2399 # It will help us diagnose broken compilers, and finding out an intuition
2400 # of exeext.
2401 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2402 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2403 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2404 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2405   (eval $ac_link_default) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; then
2409   # Find the output, starting from the most likely.  This scheme is
2410 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2411 # resort.
2412
2413 # Be careful to initialize this variable, since it used to be cached.
2414 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2415 ac_cv_exeext=
2416 # b.out is created by i960 compilers.
2417 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2418 do
2419   test -f "$ac_file" || continue
2420   case $ac_file in
2421     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2422         ;;
2423     conftest.$ac_ext )
2424         # This is the source file.
2425         ;;
2426     [ab].out )
2427         # We found the default executable, but exeext='' is most
2428         # certainly right.
2429         break;;
2430     *.* )
2431         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2432         # FIXME: I believe we export ac_cv_exeext for Libtool,
2433         # but it would be cool to find out if it's true.  Does anybody
2434         # maintain Libtool? --akim.
2435         export ac_cv_exeext
2436         break;;
2437     * )
2438         break;;
2439   esac
2440 done
2441 else
2442   echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2446 See \`config.log' for more details." >&5
2447 echo "$as_me: error: C++ compiler cannot create executables
2448 See \`config.log' for more details." >&2;}
2449    { (exit 77); exit 77; }; }
2450 fi
2451
2452 ac_exeext=$ac_cv_exeext
2453 echo "$as_me:$LINENO: result: $ac_file" >&5
2454 echo "${ECHO_T}$ac_file" >&6
2455
2456 # Check the compiler produces executables we can run.  If not, either
2457 # the compiler is broken, or we cross compile.
2458 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2459 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2460 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2461 # If not cross compiling, check that we can run a simple program.
2462 if test "$cross_compiling" != yes; then
2463   if { ac_try='./$ac_file'
2464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465   (eval $ac_try) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; }; then
2469     cross_compiling=no
2470   else
2471     if test "$cross_compiling" = maybe; then
2472         cross_compiling=yes
2473     else
2474         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2475 If you meant to cross compile, use \`--host'.
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: cannot run C++ compiled programs.
2478 If you meant to cross compile, use \`--host'.
2479 See \`config.log' for more details." >&2;}
2480    { (exit 1); exit 1; }; }
2481     fi
2482   fi
2483 fi
2484 echo "$as_me:$LINENO: result: yes" >&5
2485 echo "${ECHO_T}yes" >&6
2486
2487 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2488 ac_clean_files=$ac_clean_files_save
2489 # Check the compiler produces executables we can run.  If not, either
2490 # the compiler is broken, or we cross compile.
2491 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2492 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2493 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2494 echo "${ECHO_T}$cross_compiling" >&6
2495
2496 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2497 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2499   (eval $ac_link) 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }; then
2503   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2504 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2505 # work properly (i.e., refer to `conftest.exe'), while it won't with
2506 # `rm'.
2507 for ac_file in conftest.exe conftest conftest.*; do
2508   test -f "$ac_file" || continue
2509   case $ac_file in
2510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2511     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2512           export ac_cv_exeext
2513           break;;
2514     * ) break;;
2515   esac
2516 done
2517 else
2518   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2519 See \`config.log' for more details." >&5
2520 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2521 See \`config.log' for more details." >&2;}
2522    { (exit 1); exit 1; }; }
2523 fi
2524
2525 rm -f conftest$ac_cv_exeext
2526 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2527 echo "${ECHO_T}$ac_cv_exeext" >&6
2528
2529 rm -f conftest.$ac_ext
2530 EXEEXT=$ac_cv_exeext
2531 ac_exeext=$EXEEXT
2532 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2533 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2534 if test "${ac_cv_objext+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   cat >conftest.$ac_ext <<_ACEOF
2538 #line $LINENO "configure"
2539 /* confdefs.h.  */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h.  */
2544
2545 int
2546 main ()
2547 {
2548
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 rm -f conftest.o conftest.obj
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555   (eval $ac_compile) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; then
2559   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2560   case $ac_file in
2561     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2562     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2563        break;;
2564   esac
2565 done
2566 else
2567   echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2569
2570 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2571 See \`config.log' for more details." >&5
2572 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2573 See \`config.log' for more details." >&2;}
2574    { (exit 1); exit 1; }; }
2575 fi
2576
2577 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2578 fi
2579 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2580 echo "${ECHO_T}$ac_cv_objext" >&6
2581 OBJEXT=$ac_cv_objext
2582 ac_objext=$OBJEXT
2583 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2584 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2585 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   cat >conftest.$ac_ext <<_ACEOF
2589 #line $LINENO "configure"
2590 /* confdefs.h.  */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h.  */
2595
2596 int
2597 main ()
2598 {
2599 #ifndef __GNUC__
2600        choke me
2601 #endif
2602
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609   (eval $ac_compile) 2>&5
2610   ac_status=$?
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); } &&
2613          { ac_try='test -s conftest.$ac_objext'
2614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615   (eval $ac_try) 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); }; }; then
2619   ac_compiler_gnu=yes
2620 else
2621   echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2623
2624 ac_compiler_gnu=no
2625 fi
2626 rm -f conftest.$ac_objext conftest.$ac_ext
2627 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2628
2629 fi
2630 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2631 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2632 GXX=`test $ac_compiler_gnu = yes && echo yes`
2633 ac_test_CXXFLAGS=${CXXFLAGS+set}
2634 ac_save_CXXFLAGS=$CXXFLAGS
2635 CXXFLAGS="-g"
2636 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2637 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2638 if test "${ac_cv_prog_cxx_g+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659   (eval $ac_compile) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); } &&
2663          { ac_try='test -s conftest.$ac_objext'
2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665   (eval $ac_try) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; }; then
2669   ac_cv_prog_cxx_g=yes
2670 else
2671   echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674 ac_cv_prog_cxx_g=no
2675 fi
2676 rm -f conftest.$ac_objext conftest.$ac_ext
2677 fi
2678 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2679 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2680 if test "$ac_test_CXXFLAGS" = set; then
2681   CXXFLAGS=$ac_save_CXXFLAGS
2682 elif test $ac_cv_prog_cxx_g = yes; then
2683   if test "$GXX" = yes; then
2684     CXXFLAGS="-g -O2"
2685   else
2686     CXXFLAGS="-g"
2687   fi
2688 else
2689   if test "$GXX" = yes; then
2690     CXXFLAGS="-O2"
2691   else
2692     CXXFLAGS=
2693   fi
2694 fi
2695 for ac_declaration in \
2696    ''\
2697    '#include <stdlib.h>' \
2698    'extern "C" void std::exit (int) throw (); using std::exit;' \
2699    'extern "C" void std::exit (int); using std::exit;' \
2700    'extern "C" void exit (int) throw ();' \
2701    'extern "C" void exit (int);' \
2702    'void exit (int);'
2703 do
2704   cat >conftest.$ac_ext <<_ACEOF
2705 #line $LINENO "configure"
2706 /* confdefs.h.  */
2707 _ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h.  */
2711 #include <stdlib.h>
2712 $ac_declaration
2713 int
2714 main ()
2715 {
2716 exit (42);
2717   ;
2718   return 0;
2719 }
2720 _ACEOF
2721 rm -f conftest.$ac_objext
2722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723   (eval $ac_compile) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   :
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 continue
2739 fi
2740 rm -f conftest.$ac_objext conftest.$ac_ext
2741   cat >conftest.$ac_ext <<_ACEOF
2742 #line $LINENO "configure"
2743 /* confdefs.h.  */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h.  */
2748 $ac_declaration
2749 int
2750 main ()
2751 {
2752 exit (42);
2753   ;
2754   return 0;
2755 }
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759   (eval $ac_compile) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); } &&
2763          { ac_try='test -s conftest.$ac_objext'
2764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765   (eval $ac_try) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }; }; then
2769   break
2770 else
2771   echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2773
2774 fi
2775 rm -f conftest.$ac_objext conftest.$ac_ext
2776 done
2777 rm -f conftest*
2778 if test -n "$ac_declaration"; then
2779   echo '#ifdef __cplusplus' >>confdefs.h
2780   echo $ac_declaration      >>confdefs.h
2781   echo '#endif'             >>confdefs.h
2782 fi
2783
2784 ac_ext=c
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789
2790 ac_ext=c
2791 ac_cpp='$CPP $CPPFLAGS'
2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795 if test -n "$ac_tool_prefix"; then
2796   for ac_prog in gcc
2797   do
2798     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2800 echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2802 if test "${ac_cv_prog_CC+set}" = set; then
2803   echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805   if test -n "$CC"; then
2806   ac_cv_prog_CC="$CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813   for ac_exec_ext in '' $ac_executable_extensions; do
2814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820 done
2821
2822 fi
2823 fi
2824 CC=$ac_cv_prog_CC
2825 if test -n "$CC"; then
2826   echo "$as_me:$LINENO: result: $CC" >&5
2827 echo "${ECHO_T}$CC" >&6
2828 else
2829   echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2831 fi
2832
2833     test -n "$CC" && break
2834   done
2835 fi
2836 if test -z "$CC"; then
2837   ac_ct_CC=$CC
2838   for ac_prog in gcc
2839 do
2840   # Extract the first word of "$ac_prog", so it can be a program name with args.
2841 set dummy $ac_prog; ac_word=$2
2842 echo "$as_me:$LINENO: checking for $ac_word" >&5
2843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2845   echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847   if test -n "$ac_ct_CC"; then
2848   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853   IFS=$as_save_IFS
2854   test -z "$as_dir" && as_dir=.
2855   for ac_exec_ext in '' $ac_executable_extensions; do
2856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857     ac_cv_prog_ac_ct_CC="$ac_prog"
2858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859     break 2
2860   fi
2861 done
2862 done
2863
2864 fi
2865 fi
2866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867 if test -n "$ac_ct_CC"; then
2868   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2869 echo "${ECHO_T}$ac_ct_CC" >&6
2870 else
2871   echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6
2873 fi
2874
2875   test -n "$ac_ct_CC" && break
2876 done
2877
2878   CC=$ac_ct_CC
2879 fi
2880
2881
2882 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2883 See \`config.log' for more details." >&5
2884 echo "$as_me: error: no acceptable C compiler found in \$PATH
2885 See \`config.log' for more details." >&2;}
2886    { (exit 1); exit 1; }; }
2887
2888 # Provide some information about the compiler.
2889 echo "$as_me:$LINENO:" \
2890      "checking for C compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2893   (eval $ac_compiler --version </dev/null >&5) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }
2897 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2898   (eval $ac_compiler -v </dev/null >&5) 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }
2902 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2903   (eval $ac_compiler -V </dev/null >&5) 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }
2907
2908 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2909 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2910 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913   cat >conftest.$ac_ext <<_ACEOF
2914 #line $LINENO "configure"
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920
2921 int
2922 main ()
2923 {
2924 #ifndef __GNUC__
2925        choke me
2926 #endif
2927
2928   ;
2929   return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934   (eval $ac_compile) 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); } &&
2938          { ac_try='test -s conftest.$ac_objext'
2939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940   (eval $ac_try) 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }; }; then
2944   ac_compiler_gnu=yes
2945 else
2946   echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 ac_compiler_gnu=no
2950 fi
2951 rm -f conftest.$ac_objext conftest.$ac_ext
2952 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2953
2954 fi
2955 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2956 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2957 GCC=`test $ac_compiler_gnu = yes && echo yes`
2958 ac_test_CFLAGS=${CFLAGS+set}
2959 ac_save_CFLAGS=$CFLAGS
2960 CFLAGS="-g"
2961 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2962 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2963 if test "${ac_cv_prog_cc_g+set}" = set; then
2964   echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966   cat >conftest.$ac_ext <<_ACEOF
2967 #line $LINENO "configure"
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973
2974 int
2975 main ()
2976 {
2977
2978   ;
2979   return 0;
2980 }
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984   (eval $ac_compile) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); } &&
2988          { ac_try='test -s conftest.$ac_objext'
2989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990   (eval $ac_try) 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; }; then
2994   ac_cv_prog_cc_g=yes
2995 else
2996   echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999 ac_cv_prog_cc_g=no
3000 fi
3001 rm -f conftest.$ac_objext conftest.$ac_ext
3002 fi
3003 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3004 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3005 if test "$ac_test_CFLAGS" = set; then
3006   CFLAGS=$ac_save_CFLAGS
3007 elif test $ac_cv_prog_cc_g = yes; then
3008   if test "$GCC" = yes; then
3009     CFLAGS="-g -O2"
3010   else
3011     CFLAGS="-g"
3012   fi
3013 else
3014   if test "$GCC" = yes; then
3015     CFLAGS="-O2"
3016   else
3017     CFLAGS=
3018   fi
3019 fi
3020 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3021 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3022 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3023   echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025   ac_cv_prog_cc_stdc=no
3026 ac_save_CC=$CC
3027 cat >conftest.$ac_ext <<_ACEOF
3028 #line $LINENO "configure"
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034 #include <stdarg.h>
3035 #include <stdio.h>
3036 #include <sys/types.h>
3037 #include <sys/stat.h>
3038 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3039 struct buf { int x; };
3040 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3041 static char *e (p, i)
3042      char **p;
3043      int i;
3044 {
3045   return p[i];
3046 }
3047 static char *f (char * (*g) (char **, int), char **p, ...)
3048 {
3049   char *s;
3050   va_list v;
3051   va_start (v,p);
3052   s = g (p, va_arg (v,int));
3053   va_end (v);
3054   return s;
3055 }
3056 int test (int i, double x);
3057 struct s1 {int (*f) (int a);};
3058 struct s2 {int (*f) (double a);};
3059 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3060 int argc;
3061 char **argv;
3062 int
3063 main ()
3064 {
3065 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3066   ;
3067   return 0;
3068 }
3069 _ACEOF
3070 # Don't try gcc -ansi; that turns off useful extensions and
3071 # breaks some systems' header files.
3072 # AIX                   -qlanglvl=ansi
3073 # Ultrix and OSF/1      -std1
3074 # HP-UX 10.20 and later -Ae
3075 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3076 # SVR4                  -Xc -D__EXTENSIONS__
3077 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3078 do
3079   CC="$ac_save_CC $ac_arg"
3080   rm -f conftest.$ac_objext
3081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3082   (eval $ac_compile) 2>&5
3083   ac_status=$?
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); } &&
3086          { ac_try='test -s conftest.$ac_objext'
3087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088   (eval $ac_try) 2>&5
3089   ac_status=$?
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); }; }; then
3092   ac_cv_prog_cc_stdc=$ac_arg
3093 break
3094 else
3095   echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3097
3098 fi
3099 rm -f conftest.$ac_objext
3100 done
3101 rm -f conftest.$ac_ext conftest.$ac_objext
3102 CC=$ac_save_CC
3103
3104 fi
3105
3106 case "x$ac_cv_prog_cc_stdc" in
3107   x|xno)
3108     echo "$as_me:$LINENO: result: none needed" >&5
3109 echo "${ECHO_T}none needed" >&6 ;;
3110   *)
3111     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3112 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3113     CC="$CC $ac_cv_prog_cc_stdc" ;;
3114 esac
3115
3116 # Some people use a C++ compiler to compile C.  Since we use `exit',
3117 # in C++ we need to declare it.  In case someone uses the same compiler
3118 # for both compiling C and C++ we need to have the C++ compiler decide
3119 # the declaration of exit, since it's the most demanding environment.
3120 cat >conftest.$ac_ext <<_ACEOF
3121 #ifndef __cplusplus
3122   choke me
3123 #endif
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127   (eval $ac_compile) 2>&5
3128   ac_status=$?
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); } &&
3131          { ac_try='test -s conftest.$ac_objext'
3132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133   (eval $ac_try) 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }; }; then
3137   for ac_declaration in \
3138    ''\
3139    '#include <stdlib.h>' \
3140    'extern "C" void std::exit (int) throw (); using std::exit;' \
3141    'extern "C" void std::exit (int); using std::exit;' \
3142    'extern "C" void exit (int) throw ();' \
3143    'extern "C" void exit (int);' \
3144    'void exit (int);'
3145 do
3146   cat >conftest.$ac_ext <<_ACEOF
3147 #line $LINENO "configure"
3148 /* confdefs.h.  */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h.  */
3153 #include <stdlib.h>
3154 $ac_declaration
3155 int
3156 main ()
3157 {
3158 exit (42);
3159   ;
3160   return 0;
3161 }
3162 _ACEOF
3163 rm -f conftest.$ac_objext
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165   (eval $ac_compile) 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } &&
3169          { ac_try='test -s conftest.$ac_objext'
3170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171   (eval $ac_try) 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }; }; then
3175   :
3176 else
3177   echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 continue
3181 fi
3182 rm -f conftest.$ac_objext conftest.$ac_ext
3183   cat >conftest.$ac_ext <<_ACEOF
3184 #line $LINENO "configure"
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190 $ac_declaration
3191 int
3192 main ()
3193 {
3194 exit (42);
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201   (eval $ac_compile) 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } &&
3205          { ac_try='test -s conftest.$ac_objext'
3206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207   (eval $ac_try) 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; }; then
3211   break
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216 fi
3217 rm -f conftest.$ac_objext conftest.$ac_ext
3218 done
3219 rm -f conftest*
3220 if test -n "$ac_declaration"; then
3221   echo '#ifdef __cplusplus' >>confdefs.h
3222   echo $ac_declaration      >>confdefs.h
3223   echo '#endif'             >>confdefs.h
3224 fi
3225
3226 else
3227   echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230 fi
3231 rm -f conftest.$ac_objext conftest.$ac_ext
3232 ac_ext=c
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3244 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3245 # On Suns, sometimes $CPP names a directory.
3246 if test -n "$CPP" && test -d "$CPP"; then
3247   CPP=
3248 fi
3249 if test -z "$CPP"; then
3250   if test "${ac_cv_prog_CPP+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253       # Double quotes because CPP needs to be expanded
3254     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3255     do
3256       ac_preproc_ok=false
3257 for ac_c_preproc_warn_flag in '' yes
3258 do
3259   # Use a header file that comes with gcc, so configuring glibc
3260   # with a fresh cross-compiler works.
3261   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262   # <limits.h> exists even on freestanding compilers.
3263   # On the NeXT, cc -E runs the code through the compiler's parser,
3264   # not just through cpp. "Syntax error" is here to catch this case.
3265   cat >conftest.$ac_ext <<_ACEOF
3266 #line $LINENO "configure"
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #ifdef __STDC__
3273 # include <limits.h>
3274 #else
3275 # include <assert.h>
3276 #endif
3277                      Syntax error
3278 _ACEOF
3279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null; then
3287   if test -s conftest.err; then
3288     ac_cpp_err=$ac_c_preproc_warn_flag
3289   else
3290     ac_cpp_err=
3291   fi
3292 else
3293   ac_cpp_err=yes
3294 fi
3295 if test -z "$ac_cpp_err"; then
3296   :
3297 else
3298   echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301   # Broken: fails on valid input.
3302 continue
3303 fi
3304 rm -f conftest.err conftest.$ac_ext
3305
3306   # OK, works on sane cases.  Now check whether non-existent headers
3307   # can be detected and how.
3308   cat >conftest.$ac_ext <<_ACEOF
3309 #line $LINENO "configure"
3310 /* confdefs.h.  */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h.  */
3315 #include <ac_nonexistent.h>
3316 _ACEOF
3317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } >/dev/null; then
3325   if test -s conftest.err; then
3326     ac_cpp_err=$ac_c_preproc_warn_flag
3327   else
3328     ac_cpp_err=
3329   fi
3330 else
3331   ac_cpp_err=yes
3332 fi
3333 if test -z "$ac_cpp_err"; then
3334   # Broken: success on invalid input.
3335 continue
3336 else
3337   echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340   # Passes both tests.
3341 ac_preproc_ok=:
3342 break
3343 fi
3344 rm -f conftest.err conftest.$ac_ext
3345
3346 done
3347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3348 rm -f conftest.err conftest.$ac_ext
3349 if $ac_preproc_ok; then
3350   break
3351 fi
3352
3353     done
3354     ac_cv_prog_CPP=$CPP
3355
3356 fi
3357   CPP=$ac_cv_prog_CPP
3358 else
3359   ac_cv_prog_CPP=$CPP
3360 fi
3361 echo "$as_me:$LINENO: result: $CPP" >&5
3362 echo "${ECHO_T}$CPP" >&6
3363 ac_preproc_ok=false
3364 for ac_c_preproc_warn_flag in '' yes
3365 do
3366   # Use a header file that comes with gcc, so configuring glibc
3367   # with a fresh cross-compiler works.
3368   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369   # <limits.h> exists even on freestanding compilers.
3370   # On the NeXT, cc -E runs the code through the compiler's parser,
3371   # not just through cpp. "Syntax error" is here to catch this case.
3372   cat >conftest.$ac_ext <<_ACEOF
3373 #line $LINENO "configure"
3374 /* confdefs.h.  */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h.  */
3379 #ifdef __STDC__
3380 # include <limits.h>
3381 #else
3382 # include <assert.h>
3383 #endif
3384                      Syntax error
3385 _ACEOF
3386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3388   ac_status=$?
3389   grep -v '^ *+' conftest.er1 >conftest.err
3390   rm -f conftest.er1
3391   cat conftest.err >&5
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); } >/dev/null; then
3394   if test -s conftest.err; then
3395     ac_cpp_err=$ac_c_preproc_warn_flag
3396   else
3397     ac_cpp_err=
3398   fi
3399 else
3400   ac_cpp_err=yes
3401 fi
3402 if test -z "$ac_cpp_err"; then
3403   :
3404 else
3405   echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408   # Broken: fails on valid input.
3409 continue
3410 fi
3411 rm -f conftest.err conftest.$ac_ext
3412
3413   # OK, works on sane cases.  Now check whether non-existent headers
3414   # can be detected and how.
3415   cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3417 /* confdefs.h.  */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h.  */
3422 #include <ac_nonexistent.h>
3423 _ACEOF
3424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3425   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3426   ac_status=$?
3427   grep -v '^ *+' conftest.er1 >conftest.err
3428   rm -f conftest.er1
3429   cat conftest.err >&5
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } >/dev/null; then
3432   if test -s conftest.err; then
3433     ac_cpp_err=$ac_c_preproc_warn_flag
3434   else
3435     ac_cpp_err=
3436   fi
3437 else
3438   ac_cpp_err=yes
3439 fi
3440 if test -z "$ac_cpp_err"; then
3441   # Broken: success on invalid input.
3442 continue
3443 else
3444   echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447   # Passes both tests.
3448 ac_preproc_ok=:
3449 break
3450 fi
3451 rm -f conftest.err conftest.$ac_ext
3452
3453 done
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.err conftest.$ac_ext
3456 if $ac_preproc_ok; then
3457   :
3458 else
3459   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3460 See \`config.log' for more details." >&5
3461 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3462 See \`config.log' for more details." >&2;}
3463    { (exit 1); exit 1; }; }
3464 fi
3465
3466 ac_ext=c
3467 ac_cpp='$CPP $CPPFLAGS'
3468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471
3472
3473 if test "$GCC" != "yes"
3474 then
3475         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3476 echo "$as_me: error: gcc required but not found" >&2;}
3477    { (exit 1); exit 1; }; }
3478 fi
3479
3480 if test "$GXX" != "yes"
3481 then
3482         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3483 echo "$as_me: error: g++ required but not found" >&2;}
3484    { (exit 1); exit 1; }; }
3485 fi
3486
3487 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3488 if test "$gccmajor" -lt "3"
3489 then
3490         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3491 echo "$as_me: error: gcc 3.x required" >&2;}
3492    { (exit 1); exit 1; }; }
3493 fi
3494
3495  echo "$as_me:$LINENO: checking for GNU make" >&5
3496 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3497 if test "${_cv_gnu_make_command+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   _cv_gnu_make_command='' ;
3501                 for a in "$MAKE" make gmake gnumake ; do
3502                         if test -z "$a" ; then continue ; fi ;
3503                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3504                                 _cv_gnu_make_command=$a ;
3505                                 break;
3506                         fi
3507                 done ;
3508
3509 fi
3510 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3511 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3512         if test  "x$_cv_gnu_make_command" != "x"  ; then
3513                 ifGNUmake='' ;
3514         else
3515                 ifGNUmake='#' ;
3516                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3517 echo "${ECHO_T}\"Not found\"" >&6;
3518         fi
3519
3520
3521 if test -z "$_cv_gnu_make_command"
3522 then
3523         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3524 echo "$as_me: error: GNU Make required but not found" >&2;}
3525    { (exit 1); exit 1; }; }
3526 fi
3527
3528
3529 echo "$as_me:$LINENO: checking " >&5
3530 echo $ECHO_N "checking ... $ECHO_C" >&6
3531 if test "${ac_cv_has_flex+set}" = set; then
3532   echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534   for ac_prog in flex lex
3535 do
3536   # Extract the first word of "$ac_prog", so it can be a program name with args.
3537 set dummy $ac_prog; ac_word=$2
3538 echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540 if test "${ac_cv_prog_LEX+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   if test -n "$LEX"; then
3544   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551   for ac_exec_ext in '' $ac_executable_extensions; do
3552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553     ac_cv_prog_LEX="$ac_prog"
3554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558 done
3559
3560 fi
3561 fi
3562 LEX=$ac_cv_prog_LEX
3563 if test -n "$LEX"; then
3564   echo "$as_me:$LINENO: result: $LEX" >&5
3565 echo "${ECHO_T}$LEX" >&6
3566 else
3567   echo "$as_me:$LINENO: result: no" >&5
3568 echo "${ECHO_T}no" >&6
3569 fi
3570
3571   test -n "$LEX" && break
3572 done
3573 test -n "$LEX" || LEX=":"
3574
3575 if test -z "$LEXLIB"
3576 then
3577   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3578 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3579 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   ac_check_lib_save_LIBS=$LIBS
3583 LIBS="-lfl  $LIBS"
3584 cat >conftest.$ac_ext <<_ACEOF
3585 #line $LINENO "configure"
3586 /* confdefs.h.  */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h.  */
3591
3592 /* Override any gcc2 internal prototype to avoid an error.  */
3593 #ifdef __cplusplus
3594 extern "C"
3595 #endif
3596 /* We use char because int might match the return type of a gcc2
3597    builtin and then its argument prototype would still apply.  */
3598 char yywrap ();
3599 int
3600 main ()
3601 {
3602 yywrap ();
3603   ;
3604   return 0;
3605 }
3606 _ACEOF
3607 rm -f conftest.$ac_objext conftest$ac_exeext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3609   (eval $ac_link) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } &&
3613          { ac_try='test -s conftest$ac_exeext'
3614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615   (eval $ac_try) 2>&5
3616   ac_status=$?
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); }; }; then
3619   ac_cv_lib_fl_yywrap=yes
3620 else
3621   echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 ac_cv_lib_fl_yywrap=no
3625 fi
3626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3627 LIBS=$ac_check_lib_save_LIBS
3628 fi
3629 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3630 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3631 if test $ac_cv_lib_fl_yywrap = yes; then
3632   LEXLIB="-lfl"
3633 else
3634   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3635 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3636 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3637   echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639   ac_check_lib_save_LIBS=$LIBS
3640 LIBS="-ll  $LIBS"
3641 cat >conftest.$ac_ext <<_ACEOF
3642 #line $LINENO "configure"
3643 /* confdefs.h.  */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h.  */
3648
3649 /* Override any gcc2 internal prototype to avoid an error.  */
3650 #ifdef __cplusplus
3651 extern "C"
3652 #endif
3653 /* We use char because int might match the return type of a gcc2
3654    builtin and then its argument prototype would still apply.  */
3655 char yywrap ();
3656 int
3657 main ()
3658 {
3659 yywrap ();
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.$ac_objext conftest$ac_exeext
3665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3666   (eval $ac_link) 2>&5
3667   ac_status=$?
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } &&
3670          { ac_try='test -s conftest$ac_exeext'
3671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672   (eval $ac_try) 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; }; then
3676   ac_cv_lib_l_yywrap=yes
3677 else
3678   echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 ac_cv_lib_l_yywrap=no
3682 fi
3683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3684 LIBS=$ac_check_lib_save_LIBS
3685 fi
3686 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3687 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3688 if test $ac_cv_lib_l_yywrap = yes; then
3689   LEXLIB="-ll"
3690 fi
3691
3692 fi
3693
3694 fi
3695
3696 if test "x$LEX" != "x:"; then
3697   echo "$as_me:$LINENO: checking lex output file root" >&5
3698 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3699 if test "${ac_cv_prog_lex_root+set}" = set; then
3700   echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702   # The minimal lex program is just a single line: %%.  But some broken lexes
3703 # (Solaris, I think it was) want two %% lines, so accommodate them.
3704 cat >conftest.l <<_ACEOF
3705 %%
3706 %%
3707 _ACEOF
3708 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3709   (eval $LEX conftest.l) 2>&5
3710   ac_status=$?
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); }
3713 if test -f lex.yy.c; then
3714   ac_cv_prog_lex_root=lex.yy
3715 elif test -f lexyy.c; then
3716   ac_cv_prog_lex_root=lexyy
3717 else
3718   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3719 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3720    { (exit 1); exit 1; }; }
3721 fi
3722 fi
3723 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3724 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3725 rm -f conftest.l
3726 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3727
3728 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3729 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3730 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   # POSIX says lex can declare yytext either as a pointer or an array; the
3734 # default is implementation-dependent. Figure out which it is, since
3735 # not all implementations provide the %pointer and %array declarations.
3736 ac_cv_prog_lex_yytext_pointer=no
3737 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3738 ac_save_LIBS=$LIBS
3739 LIBS="$LIBS $LEXLIB"
3740 cat >conftest.$ac_ext <<_ACEOF
3741 `cat $LEX_OUTPUT_ROOT.c`
3742 _ACEOF
3743 rm -f conftest.$ac_objext conftest$ac_exeext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3745   (eval $ac_link) 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); } &&
3749          { ac_try='test -s conftest$ac_exeext'
3750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751   (eval $ac_try) 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); }; }; then
3755   ac_cv_prog_lex_yytext_pointer=yes
3756 else
3757   echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3759
3760 fi
3761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3762 LIBS=$ac_save_LIBS
3763 rm -f "${LEX_OUTPUT_ROOT}.c"
3764
3765 fi
3766 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3767 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3768 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3769
3770 cat >>confdefs.h <<\_ACEOF
3771 #define YYTEXT_POINTER 1
3772 _ACEOF
3773
3774 fi
3775
3776 fi
3777
3778 fi
3779 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3780 echo "${ECHO_T}$ac_cv_has_flex" >&6
3781 if test "$LEX" != "flex"; then
3782   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3783 echo "$as_me: error: flex not found but required" >&2;}
3784    { (exit 1); exit 1; }; }
3785 fi
3786
3787 echo "$as_me:$LINENO: checking " >&5
3788 echo $ECHO_N "checking ... $ECHO_C" >&6
3789 if test "${ac_cv_has_bison+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   for ac_prog in 'bison -y' byacc
3793 do
3794   # Extract the first word of "$ac_prog", so it can be a program name with args.
3795 set dummy $ac_prog; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_YACC+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   if test -n "$YACC"; then
3802   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807   IFS=$as_save_IFS
3808   test -z "$as_dir" && as_dir=.
3809   for ac_exec_ext in '' $ac_executable_extensions; do
3810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811     ac_cv_prog_YACC="$ac_prog"
3812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813     break 2
3814   fi
3815 done
3816 done
3817
3818 fi
3819 fi
3820 YACC=$ac_cv_prog_YACC
3821 if test -n "$YACC"; then
3822   echo "$as_me:$LINENO: result: $YACC" >&5
3823 echo "${ECHO_T}$YACC" >&6
3824 else
3825   echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3827 fi
3828
3829   test -n "$YACC" && break
3830 done
3831 test -n "$YACC" || YACC="yacc"
3832
3833
3834 fi
3835 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3836 echo "${ECHO_T}$ac_cv_has_bison" >&6
3837 if test "$YACC" != "bison -y"; then
3838   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3839 echo "$as_me: error: bison not found but required" >&2;}
3840    { (exit 1); exit 1; }; }
3841 else
3842   YACC=bison
3843
3844 fi
3845
3846
3847 # Check whether --enable-shared or --disable-shared was given.
3848 if test "${enable_shared+set}" = set; then
3849   enableval="$enable_shared"
3850   p=${PACKAGE-default}
3851     case $enableval in
3852     yes) enable_shared=yes ;;
3853     no) enable_shared=no ;;
3854     *)
3855       enable_shared=no
3856       # Look at the argument we got.  We use all the common list separators.
3857       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3858       for pkg in $enableval; do
3859         IFS="$lt_save_ifs"
3860         if test "X$pkg" = "X$p"; then
3861           enable_shared=yes
3862         fi
3863       done
3864       IFS="$lt_save_ifs"
3865       ;;
3866     esac
3867 else
3868   enable_shared=yes
3869 fi;
3870
3871 # Check whether --enable-static or --disable-static was given.
3872 if test "${enable_static+set}" = set; then
3873   enableval="$enable_static"
3874   p=${PACKAGE-default}
3875     case $enableval in
3876     yes) enable_static=yes ;;
3877     no) enable_static=no ;;
3878     *)
3879      enable_static=no
3880       # Look at the argument we got.  We use all the common list separators.
3881       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3882       for pkg in $enableval; do
3883         IFS="$lt_save_ifs"
3884         if test "X$pkg" = "X$p"; then
3885           enable_static=yes
3886         fi
3887       done
3888       IFS="$lt_save_ifs"
3889       ;;
3890     esac
3891 else
3892   enable_static=yes
3893 fi;
3894
3895 # Check whether --enable-fast-install or --disable-fast-install was given.
3896 if test "${enable_fast_install+set}" = set; then
3897   enableval="$enable_fast_install"
3898   p=${PACKAGE-default}
3899     case $enableval in
3900     yes) enable_fast_install=yes ;;
3901     no) enable_fast_install=no ;;
3902     *)
3903       enable_fast_install=no
3904       # Look at the argument we got.  We use all the common list separators.
3905       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3906       for pkg in $enableval; do
3907         IFS="$lt_save_ifs"
3908         if test "X$pkg" = "X$p"; then
3909           enable_fast_install=yes
3910         fi
3911       done
3912       IFS="$lt_save_ifs"
3913       ;;
3914     esac
3915 else
3916   enable_fast_install=yes
3917 fi;
3918
3919 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3920 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3921 if test "${lt_cv_path_SED+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   # Loop through the user's path and test for sed and gsed.
3925 # Then use that list of sed's as ones to test for truncation.
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929   IFS=$as_save_IFS
3930   test -z "$as_dir" && as_dir=.
3931   for lt_ac_prog in sed gsed; do
3932     for ac_exec_ext in '' $ac_executable_extensions; do
3933       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3934         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3935       fi
3936     done
3937   done
3938 done
3939 lt_ac_max=0
3940 lt_ac_count=0
3941 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3942 # along with /bin/sed that truncates output.
3943 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3944   test ! -f $lt_ac_sed && break
3945   cat /dev/null > conftest.in
3946   lt_ac_count=0
3947   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3948   # Check for GNU sed and select it if it is found.
3949   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3950     lt_cv_path_SED=$lt_ac_sed
3951     break
3952   fi
3953   while true; do
3954     cat conftest.in conftest.in >conftest.tmp
3955     mv conftest.tmp conftest.in
3956     cp conftest.in conftest.nl
3957     echo >>conftest.nl
3958     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3959     cmp -s conftest.out conftest.nl || break
3960     # 10000 chars as input seems more than enough
3961     test $lt_ac_count -gt 10 && break
3962     lt_ac_count=`expr $lt_ac_count + 1`
3963     if test $lt_ac_count -gt $lt_ac_max; then
3964       lt_ac_max=$lt_ac_count
3965       lt_cv_path_SED=$lt_ac_sed
3966     fi
3967   done
3968 done
3969 SED=$lt_cv_path_SED
3970
3971 fi
3972
3973 echo "$as_me:$LINENO: result: $SED" >&5
3974 echo "${ECHO_T}$SED" >&6
3975
3976 echo "$as_me:$LINENO: checking for egrep" >&5
3977 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3978 if test "${ac_cv_prog_egrep+set}" = set; then
3979   echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3982     then ac_cv_prog_egrep='grep -E'
3983     else ac_cv_prog_egrep='egrep'
3984     fi
3985 fi
3986 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3987 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3988  EGREP=$ac_cv_prog_egrep
3989
3990
3991
3992 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3993 if test "${with_gnu_ld+set}" = set; then
3994   withval="$with_gnu_ld"
3995   test "$withval" = no || with_gnu_ld=yes
3996 else
3997   with_gnu_ld=no
3998 fi;
3999 ac_prog=ld
4000 if test "$GCC" = yes; then
4001   # Check if gcc -print-prog-name=ld gives a path.
4002   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4003 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4004   case $host in
4005   *-*-mingw*)
4006     # gcc leaves a trailing carriage return which upsets mingw
4007     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4008   *)
4009     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4010   esac
4011   case $ac_prog in
4012     # Accept absolute paths.
4013     [\\/]* | ?:[\\/]*)
4014       re_direlt='/[^/][^/]*/\.\./'
4015       # Canonicalize the path of ld
4016       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4017       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4018         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4019       done
4020       test -z "$LD" && LD="$ac_prog"
4021       ;;
4022   "")
4023     # If it fails, then pretend we aren't using GCC.
4024     ac_prog=ld
4025     ;;
4026   *)
4027     # If it is relative, then search for the first ld in PATH.
4028     with_gnu_ld=unknown
4029     ;;
4030   esac
4031 elif test "$with_gnu_ld" = yes; then
4032   echo "$as_me:$LINENO: checking for GNU ld" >&5
4033 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4034 else
4035   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4036 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4037 fi
4038 if test "${lt_cv_path_LD+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   if test -z "$LD"; then
4042   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4043   for ac_dir in $PATH; do
4044     IFS="$lt_save_ifs"
4045     test -z "$ac_dir" && ac_dir=.
4046     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4047       lt_cv_path_LD="$ac_dir/$ac_prog"
4048       # Check to see if the program is GNU ld.  I'd rather use --version,
4049       # but apparently some GNU ld's only accept -v.
4050       # Break only if it was the GNU/non-GNU ld that we prefer.
4051       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4052       *GNU* | *'with BFD'*)
4053         test "$with_gnu_ld" != no && break
4054         ;;
4055       *)
4056         test "$with_gnu_ld" != yes && break
4057         ;;
4058       esac
4059     fi
4060   done
4061   IFS="$lt_save_ifs"
4062 else
4063   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4064 fi
4065 fi
4066
4067 LD="$lt_cv_path_LD"
4068 if test -n "$LD"; then
4069   echo "$as_me:$LINENO: result: $LD" >&5
4070 echo "${ECHO_T}$LD" >&6
4071 else
4072   echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4074 fi
4075 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4076 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4077    { (exit 1); exit 1; }; }
4078 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4079 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4080 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4084 case `"$LD" -v 2>&1 </dev/null` in
4085 *GNU* | *'with BFD'*)
4086   lt_cv_prog_gnu_ld=yes
4087   ;;
4088 *)
4089   lt_cv_prog_gnu_ld=no
4090   ;;
4091 esac
4092 fi
4093 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4094 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4095 with_gnu_ld=$lt_cv_prog_gnu_ld
4096
4097
4098 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4099 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4100 if test "${lt_cv_ld_reload_flag+set}" = set; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   lt_cv_ld_reload_flag='-r'
4104 fi
4105 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4106 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4107 reload_flag=$lt_cv_ld_reload_flag
4108 case $reload_flag in
4109 "" | " "*) ;;
4110 *) reload_flag=" $reload_flag" ;;
4111 esac
4112 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4113
4114 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4115 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4116 if test "${lt_cv_path_NM+set}" = set; then
4117   echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119   if test -n "$NM"; then
4120   # Let the user override the test.
4121   lt_cv_path_NM="$NM"
4122 else
4123   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4124   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4125     IFS="$lt_save_ifs"
4126     test -z "$ac_dir" && ac_dir=.
4127     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4128     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4129       # Check to see if the nm accepts a BSD-compat flag.
4130       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4131       #   nm: unknown option "B" ignored
4132       # Tru64's nm complains that /dev/null is an invalid object file
4133       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4134       */dev/null* | *'Invalid file or object type'*)
4135         lt_cv_path_NM="$tmp_nm -B"
4136         break
4137         ;;
4138       *)
4139         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4140         */dev/null*)
4141           lt_cv_path_NM="$tmp_nm -p"
4142           break
4143           ;;
4144         *)
4145           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4146           continue # so that we can try to find one that supports BSD flags
4147           ;;
4148         esac
4149       esac
4150     fi
4151   done
4152   IFS="$lt_save_ifs"
4153   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4154 fi
4155 fi
4156 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4157 echo "${ECHO_T}$lt_cv_path_NM" >&6
4158 NM="$lt_cv_path_NM"
4159
4160 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4161 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4162 LN_S=$as_ln_s
4163 if test "$LN_S" = "ln -s"; then
4164   echo "$as_me:$LINENO: result: yes" >&5
4165 echo "${ECHO_T}yes" >&6
4166 else
4167   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4168 echo "${ECHO_T}no, using $LN_S" >&6
4169 fi
4170
4171 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4172 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4173 if test "${lt_cv_deplibs_check_method+set}" = set; then
4174   echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176   lt_cv_file_magic_cmd='$MAGIC_CMD'
4177 lt_cv_file_magic_test_file=
4178 lt_cv_deplibs_check_method='unknown'
4179 # Need to set the preceding variable on all platforms that support
4180 # interlibrary dependencies.
4181 # 'none' -- dependencies not supported.
4182 # `unknown' -- same as none, but documents that we really don't know.
4183 # 'pass_all' -- all dependencies passed with no checks.
4184 # 'test_compile' -- check by making test program.
4185 # 'file_magic [[regex]]' -- check by looking for files in library path
4186 # which responds to the $file_magic_cmd with a given extended regex.
4187 # If you have `file' or equivalent on your system and you're not sure
4188 # whether `pass_all' will *always* work, you probably want this one.
4189
4190 case $host_os in
4191 aix4* | aix5*)
4192   lt_cv_deplibs_check_method=pass_all
4193   ;;
4194
4195 beos*)
4196   lt_cv_deplibs_check_method=pass_all
4197   ;;
4198
4199 bsdi4*)
4200   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4201   lt_cv_file_magic_cmd='/usr/bin/file -L'
4202   lt_cv_file_magic_test_file=/shlib/libc.so
4203   ;;
4204
4205 cygwin* | mingw* | pw32*)
4206   # win32_libid is a shell function defined in ltmain.sh
4207   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4208   lt_cv_file_magic_cmd='win32_libid'
4209   ;;
4210
4211 darwin* | rhapsody*)
4212   # this will be overwritten by pass_all, but leave it in just in case
4213   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4214   lt_cv_file_magic_cmd='/usr/bin/file -L'
4215   case "$host_os" in
4216   rhapsody* | darwin1.[012])
4217     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4218     ;;
4219   *) # Darwin 1.3 on
4220     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4221     ;;
4222   esac
4223   lt_cv_deplibs_check_method=pass_all
4224   ;;
4225
4226 freebsd*)
4227   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4228     case $host_cpu in
4229     i*86 )
4230       # Not sure whether the presence of OpenBSD here was a mistake.
4231       # Let's accept both of them until this is cleared up.
4232       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4233       lt_cv_file_magic_cmd=/usr/bin/file
4234       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4235       ;;
4236     esac
4237   else
4238     lt_cv_deplibs_check_method=pass_all
4239   fi
4240   ;;
4241
4242 gnu*)
4243   lt_cv_deplibs_check_method=pass_all
4244   ;;
4245
4246 hpux10.20* | hpux11*)
4247   lt_cv_file_magic_cmd=/usr/bin/file
4248   case "$host_cpu" in
4249   ia64*)
4250     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4251     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4252     ;;
4253   hppa*64*)
4254     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]'
4255     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4256     ;;
4257   *)
4258     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4259     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4260     ;;
4261   esac
4262   ;;
4263
4264 irix5* | irix6* | nonstopux*)
4265   case $host_os in
4266   irix5* | nonstopux*)
4267     # this will be overridden with pass_all, but let us keep it just in case
4268     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4269     ;;
4270   *)
4271     case $LD in
4272     *-32|*"-32 ") libmagic=32-bit;;
4273     *-n32|*"-n32 ") libmagic=N32;;
4274     *-64|*"-64 ") libmagic=64-bit;;
4275     *) libmagic=never-match;;
4276     esac
4277     # this will be overridden with pass_all, but let us keep it just in case
4278     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4279     ;;
4280   esac
4281   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4282   lt_cv_deplibs_check_method=pass_all
4283   ;;
4284
4285 # This must be Linux ELF.
4286 linux*)
4287   case $host_cpu in
4288   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4289     lt_cv_deplibs_check_method=pass_all ;;
4290   *)
4291     # glibc up to 2.1.1 does not perform some relocations on ARM
4292     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4293   esac
4294   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4295   ;;
4296
4297 netbsd*)
4298   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4299     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4300   else
4301     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4302   fi
4303   ;;
4304
4305 newos6*)
4306   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4307   lt_cv_file_magic_cmd=/usr/bin/file
4308   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4309   ;;
4310
4311 nto-qnx)
4312   lt_cv_deplibs_check_method=unknown
4313   ;;
4314
4315 openbsd*)
4316   lt_cv_file_magic_cmd=/usr/bin/file
4317   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4318   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4319     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4320   else
4321     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4322   fi
4323   ;;
4324
4325 osf3* | osf4* | osf5*)
4326   # this will be overridden with pass_all, but let us keep it just in case
4327   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4328   lt_cv_file_magic_test_file=/shlib/libc.so
4329   lt_cv_deplibs_check_method=pass_all
4330   ;;
4331
4332 sco3.2v5*)
4333   lt_cv_deplibs_check_method=pass_all
4334   ;;
4335
4336 solaris*)
4337   lt_cv_deplibs_check_method=pass_all
4338   lt_cv_file_magic_test_file=/lib/libc.so
4339   ;;
4340
4341 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4342   case $host_vendor in
4343   motorola)
4344     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]'
4345     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4346     ;;
4347   ncr)
4348     lt_cv_deplibs_check_method=pass_all
4349     ;;
4350   sequent)
4351     lt_cv_file_magic_cmd='/bin/file'
4352     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4353     ;;
4354   sni)
4355     lt_cv_file_magic_cmd='/bin/file'
4356     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4357     lt_cv_file_magic_test_file=/lib/libc.so
4358     ;;
4359   siemens)
4360     lt_cv_deplibs_check_method=pass_all
4361     ;;
4362   esac
4363   ;;
4364
4365 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4366   lt_cv_deplibs_check_method=pass_all
4367   ;;
4368 esac
4369
4370 fi
4371 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4372 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4373 file_magic_cmd=$lt_cv_file_magic_cmd
4374 deplibs_check_method=$lt_cv_deplibs_check_method
4375 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4376
4377
4378
4379
4380 # If no C compiler was specified, use CC.
4381 LTCC=${LTCC-"$CC"}
4382
4383 # Allow CC to be a program name with arguments.
4384 compiler=$CC
4385
4386 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4387 if test "${enable_libtool_lock+set}" = set; then
4388   enableval="$enable_libtool_lock"
4389
4390 fi;
4391 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4392
4393 # Some flags need to be propagated to the compiler or linker for good
4394 # libtool support.
4395 case $host in
4396 ia64-*-hpux*)
4397   # Find out which ABI we are using.
4398   echo 'int i;' > conftest.$ac_ext
4399   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400   (eval $ac_compile) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }; then
4404     case `/usr/bin/file conftest.$ac_objext` in
4405     *ELF-32*)
4406       HPUX_IA64_MODE="32"
4407       ;;
4408     *ELF-64*)
4409       HPUX_IA64_MODE="64"
4410       ;;
4411     esac
4412   fi
4413   rm -rf conftest*
4414   ;;
4415 *-*-irix6*)
4416   # Find out which ABI we are using.
4417   echo '#line 4417 "configure"' > conftest.$ac_ext
4418   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419   (eval $ac_compile) 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; then
4423    if test "$lt_cv_prog_gnu_ld" = yes; then
4424     case `/usr/bin/file conftest.$ac_objext` in
4425     *32-bit*)
4426       LD="${LD-ld} -melf32bsmip"
4427       ;;
4428     *N32*)
4429       LD="${LD-ld} -melf32bmipn32"
4430       ;;
4431     *64-bit*)
4432       LD="${LD-ld} -melf64bmip"
4433       ;;
4434     esac
4435    else
4436     case `/usr/bin/file conftest.$ac_objext` in
4437     *32-bit*)
4438       LD="${LD-ld} -32"
4439       ;;
4440     *N32*)
4441       LD="${LD-ld} -n32"
4442       ;;
4443     *64-bit*)
4444       LD="${LD-ld} -64"
4445       ;;
4446     esac
4447    fi
4448   fi
4449   rm -rf conftest*
4450   ;;
4451
4452 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4453   # Find out which ABI we are using.
4454   echo 'int i;' > conftest.$ac_ext
4455   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456   (eval $ac_compile) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; then
4460     case "`/usr/bin/file conftest.o`" in
4461     *32-bit*)
4462       case $host in
4463         x86_64-*linux*)
4464           LD="${LD-ld} -m elf_i386"
4465           ;;
4466         ppc64-*linux*)
4467           LD="${LD-ld} -m elf32ppclinux"
4468           ;;
4469         s390x-*linux*)
4470           LD="${LD-ld} -m elf_s390"
4471           ;;
4472         sparc64-*linux*)
4473           LD="${LD-ld} -m elf32_sparc"
4474           ;;
4475       esac
4476       ;;
4477     *64-bit*)
4478       case $host in
4479         x86_64-*linux*)
4480           LD="${LD-ld} -m elf_x86_64"
4481           ;;
4482         ppc*-*linux*|powerpc*-*linux*)
4483           LD="${LD-ld} -m elf64ppc"
4484           ;;
4485         s390*-*linux*)
4486           LD="${LD-ld} -m elf64_s390"
4487           ;;
4488         sparc*-*linux*)
4489           LD="${LD-ld} -m elf64_sparc"
4490           ;;
4491       esac
4492       ;;
4493     esac
4494   fi
4495   rm -rf conftest*
4496   ;;
4497
4498 *-*-sco3.2v5*)
4499   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4500   SAVE_CFLAGS="$CFLAGS"
4501   CFLAGS="$CFLAGS -belf"
4502   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4503 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4504 if test "${lt_cv_cc_needs_belf+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513      cat >conftest.$ac_ext <<_ACEOF
4514 #line $LINENO "configure"
4515 /* confdefs.h.  */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h.  */
4520
4521 int
4522 main ()
4523 {
4524
4525   ;
4526   return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext conftest$ac_exeext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4531   (eval $ac_link) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); } &&
4535          { ac_try='test -s conftest$ac_exeext'
4536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537   (eval $ac_try) 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); }; }; then
4541   lt_cv_cc_needs_belf=yes
4542 else
4543   echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 lt_cv_cc_needs_belf=no
4547 fi
4548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4549      ac_ext=c
4550 ac_cpp='$CPP $CPPFLAGS'
4551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554
4555 fi
4556 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4557 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4558   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4559     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4560     CFLAGS="$SAVE_CFLAGS"
4561   fi
4562   ;;
4563
4564 esac
4565
4566 need_locks="$enable_libtool_lock"
4567
4568
4569
4570 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4571 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4572 if test "${ac_cv_header_stdc+set}" = set; then
4573   echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575   cat >conftest.$ac_ext <<_ACEOF
4576 #line $LINENO "configure"
4577 /* confdefs.h.  */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h.  */
4582 #include <stdlib.h>
4583 #include <stdarg.h>
4584 #include <string.h>
4585 #include <float.h>
4586
4587 int
4588 main ()
4589 {
4590
4591   ;
4592   return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597   (eval $ac_compile) 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); } &&
4601          { ac_try='test -s conftest.$ac_objext'
4602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603   (eval $ac_try) 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }; }; then
4607   ac_cv_header_stdc=yes
4608 else
4609   echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 ac_cv_header_stdc=no
4613 fi
4614 rm -f conftest.$ac_objext conftest.$ac_ext
4615
4616 if test $ac_cv_header_stdc = yes; then
4617   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4618   cat >conftest.$ac_ext <<_ACEOF
4619 #line $LINENO "configure"
4620 /* confdefs.h.  */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h.  */
4625 #include <string.h>
4626
4627 _ACEOF
4628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4629   $EGREP "memchr" >/dev/null 2>&1; then
4630   :
4631 else
4632   ac_cv_header_stdc=no
4633 fi
4634 rm -f conftest*
4635
4636 fi
4637
4638 if test $ac_cv_header_stdc = yes; then
4639   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4640   cat >conftest.$ac_ext <<_ACEOF
4641 #line $LINENO "configure"
4642 /* confdefs.h.  */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h.  */
4647 #include <stdlib.h>
4648
4649 _ACEOF
4650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4651   $EGREP "free" >/dev/null 2>&1; then
4652   :
4653 else
4654   ac_cv_header_stdc=no
4655 fi
4656 rm -f conftest*
4657
4658 fi
4659
4660 if test $ac_cv_header_stdc = yes; then
4661   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4662   if test "$cross_compiling" = yes; then
4663   :
4664 else
4665   cat >conftest.$ac_ext <<_ACEOF
4666 #line $LINENO "configure"
4667 /* confdefs.h.  */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h.  */
4672 #include <ctype.h>
4673 #if ((' ' & 0x0FF) == 0x020)
4674 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4675 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4676 #else
4677 # define ISLOWER(c) \
4678                    (('a' <= (c) && (c) <= 'i') \
4679                      || ('j' <= (c) && (c) <= 'r') \
4680                      || ('s' <= (c) && (c) <= 'z'))
4681 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4682 #endif
4683
4684 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4685 int
4686 main ()
4687 {
4688   int i;
4689   for (i = 0; i < 256; i++)
4690     if (XOR (islower (i), ISLOWER (i))
4691         || toupper (i) != TOUPPER (i))
4692       exit(2);
4693   exit (0);
4694 }
4695 _ACEOF
4696 rm -f conftest$ac_exeext
4697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4698   (eval $ac_link) 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703   (eval $ac_try) 2>&5
4704   ac_status=$?
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); }; }; then
4707   :
4708 else
4709   echo "$as_me: program exited with status $ac_status" >&5
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4712
4713 ( exit $ac_status )
4714 ac_cv_header_stdc=no
4715 fi
4716 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4717 fi
4718 fi
4719 fi
4720 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4721 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4722 if test $ac_cv_header_stdc = yes; then
4723
4724 cat >>confdefs.h <<\_ACEOF
4725 #define STDC_HEADERS 1
4726 _ACEOF
4727
4728 fi
4729
4730 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4741                   inttypes.h stdint.h unistd.h
4742 do
4743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4744 echo "$as_me:$LINENO: checking for $ac_header" >&5
4745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4747   echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749   cat >conftest.$ac_ext <<_ACEOF
4750 #line $LINENO "configure"
4751 /* confdefs.h.  */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h.  */
4756 $ac_includes_default
4757
4758 #include <$ac_header>
4759 _ACEOF
4760 rm -f conftest.$ac_objext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762   (eval $ac_compile) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); } &&
4766          { ac_try='test -s conftest.$ac_objext'
4767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768   (eval $ac_try) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); }; }; then
4772   eval "$as_ac_Header=yes"
4773 else
4774   echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 eval "$as_ac_Header=no"
4778 fi
4779 rm -f conftest.$ac_objext conftest.$ac_ext
4780 fi
4781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4784   cat >>confdefs.h <<_ACEOF
4785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4786 _ACEOF
4787
4788 fi
4789
4790 done
4791
4792
4793
4794 for ac_header in dlfcn.h
4795 do
4796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4798   echo "$as_me:$LINENO: checking for $ac_header" >&5
4799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 fi
4803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4805 else
4806   # Is the header compilable?
4807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4810 #line $LINENO "configure"
4811 /* confdefs.h.  */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h.  */
4816 $ac_includes_default
4817 #include <$ac_header>
4818 _ACEOF
4819 rm -f conftest.$ac_objext
4820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821   (eval $ac_compile) 2>&5
4822   ac_status=$?
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); } &&
4825          { ac_try='test -s conftest.$ac_objext'
4826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827   (eval $ac_try) 2>&5
4828   ac_status=$?
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); }; }; then
4831   ac_header_compiler=yes
4832 else
4833   echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4835
4836 ac_header_compiler=no
4837 fi
4838 rm -f conftest.$ac_objext conftest.$ac_ext
4839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4840 echo "${ECHO_T}$ac_header_compiler" >&6
4841
4842 # Is the header present?
4843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4845 cat >conftest.$ac_ext <<_ACEOF
4846 #line $LINENO "configure"
4847 /* confdefs.h.  */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h.  */
4852 #include <$ac_header>
4853 _ACEOF
4854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4856   ac_status=$?
4857   grep -v '^ *+' conftest.er1 >conftest.err
4858   rm -f conftest.er1
4859   cat conftest.err >&5
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); } >/dev/null; then
4862   if test -s conftest.err; then
4863     ac_cpp_err=$ac_c_preproc_warn_flag
4864   else
4865     ac_cpp_err=
4866   fi
4867 else
4868   ac_cpp_err=yes
4869 fi
4870 if test -z "$ac_cpp_err"; then
4871   ac_header_preproc=yes
4872 else
4873   echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4875
4876   ac_header_preproc=no
4877 fi
4878 rm -f conftest.err conftest.$ac_ext
4879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4880 echo "${ECHO_T}$ac_header_preproc" >&6
4881
4882 # So?  What about this header?
4883 case $ac_header_compiler:$ac_header_preproc in
4884   yes:no )
4885     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4889     (
4890       cat <<\_ASBOX
4891 ## ------------------------------------ ##
4892 ## Report this to bug-autoconf@gnu.org. ##
4893 ## ------------------------------------ ##
4894 _ASBOX
4895     ) |
4896       sed "s/^/$as_me: WARNING:     /" >&2
4897     ;;
4898   no:yes )
4899     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4901     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4905     (
4906       cat <<\_ASBOX
4907 ## ------------------------------------ ##
4908 ## Report this to bug-autoconf@gnu.org. ##
4909 ## ------------------------------------ ##
4910 _ASBOX
4911     ) |
4912       sed "s/^/$as_me: WARNING:     /" >&2
4913     ;;
4914 esac
4915 echo "$as_me:$LINENO: checking for $ac_header" >&5
4916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4918   echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920   eval "$as_ac_Header=$ac_header_preproc"
4921 fi
4922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4924
4925 fi
4926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4927   cat >>confdefs.h <<_ACEOF
4928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4929 _ACEOF
4930
4931 fi
4932
4933 done
4934
4935 ac_ext=cc
4936 ac_cpp='$CXXCPP $CPPFLAGS'
4937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4940 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4941 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4942 if test -z "$CXXCPP"; then
4943   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946       # Double quotes because CXXCPP needs to be expanded
4947     for CXXCPP in "$CXX -E" "/lib/cpp"
4948     do
4949       ac_preproc_ok=false
4950 for ac_cxx_preproc_warn_flag in '' yes
4951 do
4952   # Use a header file that comes with gcc, so configuring glibc
4953   # with a fresh cross-compiler works.
4954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4955   # <limits.h> exists even on freestanding compilers.
4956   # On the NeXT, cc -E runs the code through the compiler's parser,
4957   # not just through cpp. "Syntax error" is here to catch this case.
4958   cat >conftest.$ac_ext <<_ACEOF
4959 #line $LINENO "configure"
4960 /* confdefs.h.  */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h.  */
4965 #ifdef __STDC__
4966 # include <limits.h>
4967 #else
4968 # include <assert.h>
4969 #endif
4970                      Syntax error
4971 _ACEOF
4972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4974   ac_status=$?
4975   grep -v '^ *+' conftest.er1 >conftest.err
4976   rm -f conftest.er1
4977   cat conftest.err >&5
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } >/dev/null; then
4980   if test -s conftest.err; then
4981     ac_cpp_err=$ac_cxx_preproc_warn_flag
4982   else
4983     ac_cpp_err=
4984   fi
4985 else
4986   ac_cpp_err=yes
4987 fi
4988 if test -z "$ac_cpp_err"; then
4989   :
4990 else
4991   echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994   # Broken: fails on valid input.
4995 continue
4996 fi
4997 rm -f conftest.err conftest.$ac_ext
4998
4999   # OK, works on sane cases.  Now check whether non-existent headers
5000   # can be detected and how.
5001   cat >conftest.$ac_ext <<_ACEOF
5002 #line $LINENO "configure"
5003 /* confdefs.h.  */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h.  */
5008 #include <ac_nonexistent.h>
5009 _ACEOF
5010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5012   ac_status=$?
5013   grep -v '^ *+' conftest.er1 >conftest.err
5014   rm -f conftest.er1
5015   cat conftest.err >&5
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } >/dev/null; then
5018   if test -s conftest.err; then
5019     ac_cpp_err=$ac_cxx_preproc_warn_flag
5020   else
5021     ac_cpp_err=
5022   fi
5023 else
5024   ac_cpp_err=yes
5025 fi
5026 if test -z "$ac_cpp_err"; then
5027   # Broken: success on invalid input.
5028 continue
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033   # Passes both tests.
5034 ac_preproc_ok=:
5035 break
5036 fi
5037 rm -f conftest.err conftest.$ac_ext
5038
5039 done
5040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5041 rm -f conftest.err conftest.$ac_ext
5042 if $ac_preproc_ok; then
5043   break
5044 fi
5045
5046     done
5047     ac_cv_prog_CXXCPP=$CXXCPP
5048
5049 fi
5050   CXXCPP=$ac_cv_prog_CXXCPP
5051 else
5052   ac_cv_prog_CXXCPP=$CXXCPP
5053 fi
5054 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5055 echo "${ECHO_T}$CXXCPP" >&6
5056 ac_preproc_ok=false
5057 for ac_cxx_preproc_warn_flag in '' yes
5058 do
5059   # Use a header file that comes with gcc, so configuring glibc
5060   # with a fresh cross-compiler works.
5061   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5062   # <limits.h> exists even on freestanding compilers.
5063   # On the NeXT, cc -E runs the code through the compiler's parser,
5064   # not just through cpp. "Syntax error" is here to catch this case.
5065   cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 #ifdef __STDC__
5073 # include <limits.h>
5074 #else
5075 # include <assert.h>
5076 #endif
5077                      Syntax error
5078 _ACEOF
5079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } >/dev/null; then
5087   if test -s conftest.err; then
5088     ac_cpp_err=$ac_cxx_preproc_warn_flag
5089   else
5090     ac_cpp_err=
5091   fi
5092 else
5093   ac_cpp_err=yes
5094 fi
5095 if test -z "$ac_cpp_err"; then
5096   :
5097 else
5098   echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5100
5101   # Broken: fails on valid input.
5102 continue
5103 fi
5104 rm -f conftest.err conftest.$ac_ext
5105
5106   # OK, works on sane cases.  Now check whether non-existent headers
5107   # can be detected and how.
5108   cat >conftest.$ac_ext <<_ACEOF
5109 #line $LINENO "configure"
5110 /* confdefs.h.  */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h.  */
5115 #include <ac_nonexistent.h>
5116 _ACEOF
5117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5119   ac_status=$?
5120   grep -v '^ *+' conftest.er1 >conftest.err
5121   rm -f conftest.er1
5122   cat conftest.err >&5
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); } >/dev/null; then
5125   if test -s conftest.err; then
5126     ac_cpp_err=$ac_cxx_preproc_warn_flag
5127   else
5128     ac_cpp_err=
5129   fi
5130 else
5131   ac_cpp_err=yes
5132 fi
5133 if test -z "$ac_cpp_err"; then
5134   # Broken: success on invalid input.
5135 continue
5136 else
5137   echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140   # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5143 fi
5144 rm -f conftest.err conftest.$ac_ext
5145
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then
5150   :
5151 else
5152   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5153 See \`config.log' for more details." >&5
5154 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5155 See \`config.log' for more details." >&2;}
5156    { (exit 1); exit 1; }; }
5157 fi
5158
5159 ac_ext=cc
5160 ac_cpp='$CXXCPP $CPPFLAGS'
5161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5164
5165
5166 ac_ext=f
5167 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5168 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5170 if test -n "$ac_tool_prefix"; then
5171   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5172   do
5173     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5175 echo "$as_me:$LINENO: checking for $ac_word" >&5
5176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5177 if test "${ac_cv_prog_F77+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180   if test -n "$F77"; then
5181   ac_cv_prog_F77="$F77" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186   IFS=$as_save_IFS
5187   test -z "$as_dir" && as_dir=.
5188   for ac_exec_ext in '' $ac_executable_extensions; do
5189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192     break 2
5193   fi
5194 done
5195 done
5196
5197 fi
5198 fi
5199 F77=$ac_cv_prog_F77
5200 if test -n "$F77"; then
5201   echo "$as_me:$LINENO: result: $F77" >&5
5202 echo "${ECHO_T}$F77" >&6
5203 else
5204   echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6
5206 fi
5207
5208     test -n "$F77" && break
5209   done
5210 fi
5211 if test -z "$F77"; then
5212   ac_ct_F77=$F77
5213   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5214 do
5215   # Extract the first word of "$ac_prog", so it can be a program name with args.
5216 set dummy $ac_prog; ac_word=$2
5217 echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222   if test -n "$ac_ct_F77"; then
5223   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230   for ac_exec_ext in '' $ac_executable_extensions; do
5231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232     ac_cv_prog_ac_ct_F77="$ac_prog"
5233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234     break 2
5235   fi
5236 done
5237 done
5238
5239 fi
5240 fi
5241 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5242 if test -n "$ac_ct_F77"; then
5243   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5244 echo "${ECHO_T}$ac_ct_F77" >&6
5245 else
5246   echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6
5248 fi
5249
5250   test -n "$ac_ct_F77" && break
5251 done
5252
5253   F77=$ac_ct_F77
5254 fi
5255
5256
5257 # Provide some information about the compiler.
5258 echo "$as_me:5258:" \
5259      "checking for Fortran 77 compiler version" >&5
5260 ac_compiler=`set X $ac_compile; echo $2`
5261 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5262   (eval $ac_compiler --version </dev/null >&5) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); }
5266 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5267   (eval $ac_compiler -v </dev/null >&5) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); }
5271 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5272   (eval $ac_compiler -V </dev/null >&5) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }
5276
5277 # If we don't use `.F' as extension, the preprocessor is not run on the
5278 # input file.
5279 ac_save_ext=$ac_ext
5280 ac_ext=F
5281 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5282 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5283 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   cat >conftest.$ac_ext <<_ACEOF
5287       program main
5288 #ifndef __GNUC__
5289        choke me
5290 #endif
5291
5292       end
5293 _ACEOF
5294 rm -f conftest.$ac_objext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5296   (eval $ac_compile) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } &&
5300          { ac_try='test -s conftest.$ac_objext'
5301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302   (eval $ac_try) 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }; }; then
5306   ac_compiler_gnu=yes
5307 else
5308   echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5310
5311 ac_compiler_gnu=no
5312 fi
5313 rm -f conftest.$ac_objext conftest.$ac_ext
5314 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5315
5316 fi
5317 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5318 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5319 ac_ext=$ac_save_ext
5320 G77=`test $ac_compiler_gnu = yes && echo yes`
5321 ac_test_FFLAGS=${FFLAGS+set}
5322 ac_save_FFLAGS=$FFLAGS
5323 FFLAGS=
5324 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5325 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5326 if test "${ac_cv_prog_f77_g+set}" = set; then
5327   echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329   FFLAGS=-g
5330 cat >conftest.$ac_ext <<_ACEOF
5331       program main
5332
5333       end
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337   (eval $ac_compile) 2>&5
5338   ac_status=$?
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); } &&
5341          { ac_try='test -s conftest.$ac_objext'
5342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343   (eval $ac_try) 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }; }; then
5347   ac_cv_prog_f77_g=yes
5348 else
5349   echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5351
5352 ac_cv_prog_f77_g=no
5353 fi
5354 rm -f conftest.$ac_objext conftest.$ac_ext
5355
5356 fi
5357 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5358 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5359 if test "$ac_test_FFLAGS" = set; then
5360   FFLAGS=$ac_save_FFLAGS
5361 elif test $ac_cv_prog_f77_g = yes; then
5362   if test "$G77" = yes; then
5363     FFLAGS="-g -O2"
5364   else
5365     FFLAGS="-g"
5366   fi
5367 else
5368   if test "$G77" = yes; then
5369     FFLAGS="-O2"
5370   else
5371     FFLAGS=
5372   fi
5373 fi
5374 ac_ext=c
5375 ac_cpp='$CPP $CPPFLAGS'
5376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5379
5380
5381
5382 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5383
5384 # find the maximum length of command line arguments
5385 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5386 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5387 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390     i=0
5391   testring="ABCD"
5392
5393   case $build_os in
5394   msdosdjgpp*)
5395     # On DJGPP, this test can blow up pretty badly due to problems in libc
5396     # (any single argument exceeding 2000 bytes causes a buffer overrun
5397     # during glob expansion).  Even if it were fixed, the result of this
5398     # check would be larger than it should be.
5399     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5400     ;;
5401
5402   gnu*)
5403     # Under GNU Hurd, this test is not required because there is
5404     # no limit to the length of command line arguments.
5405     # Libtool will interpret -1 as no limit whatsoever
5406     lt_cv_sys_max_cmd_len=-1;
5407     ;;
5408
5409   cygwin* | mingw*)
5410     # On Win9x/ME, this test blows up -- it succeeds, but takes
5411     # about 5 minutes as the teststring grows exponentially.
5412     # Worse, since 9x/ME are not pre-emptively multitasking,
5413     # you end up with a "frozen" computer, even though with patience
5414     # the test eventually succeeds (with a max line length of 256k).
5415     # Instead, let's just punt: use the minimum linelength reported by
5416     # all of the supported platforms: 8192 (on NT/2K/XP).
5417     lt_cv_sys_max_cmd_len=8192;
5418     ;;
5419
5420  *)
5421     # If test is not a shell built-in, we'll probably end up computing a
5422     # maximum length that is only half of the actual maximum length, but
5423     # we can't tell.
5424     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5425                = "XX$testring") >/dev/null 2>&1 &&
5426             new_result=`expr "X$testring" : ".*" 2>&1` &&
5427             lt_cv_sys_max_cmd_len=$new_result &&
5428             test $i != 17 # 1/2 MB should be enough
5429     do
5430       i=`expr $i + 1`
5431       testring=$testring$testring
5432     done
5433     testring=
5434     # Add a significant safety factor because C++ compilers can tack on massive
5435     # amounts of additional arguments before passing them to the linker.
5436     # It appears as though 1/2 is a usable value.
5437     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5438     ;;
5439   esac
5440
5441 fi
5442
5443 if test -n $lt_cv_sys_max_cmd_len ; then
5444   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5445 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5446 else
5447   echo "$as_me:$LINENO: result: none" >&5
5448 echo "${ECHO_T}none" >&6
5449 fi
5450
5451
5452
5453
5454 # Check for command to grab the raw symbol name followed by C symbol from nm.
5455 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5456 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5457 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460
5461 # These are sane defaults that work on at least a few old systems.
5462 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5463
5464 # Character class describing NM global symbol codes.
5465 symcode='[BCDEGRST]'
5466
5467 # Regexp to match symbols that can be accessed directly from C.
5468 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5469
5470 # Transform the above into a raw symbol and a C symbol.
5471 symxfrm='\1 \2\3 \3'
5472
5473 # Transform an extracted symbol line into a proper C declaration
5474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5475
5476 # Transform an extracted symbol line into symbol name and symbol address
5477 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'"
5478
5479 # Define system-specific variables.
5480 case $host_os in
5481 aix*)
5482   symcode='[BCDT]'
5483   ;;
5484 cygwin* | mingw* | pw32*)
5485   symcode='[ABCDGISTW]'
5486   ;;
5487 hpux*) # Its linker distinguishes data from code symbols
5488   if test "$host_cpu" = ia64; then
5489     symcode='[ABCDEGRST]'
5490   fi
5491   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5492   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'"
5493   ;;
5494 irix* | nonstopux*)
5495   symcode='[BCDEGRST]'
5496   ;;
5497 osf*)
5498   symcode='[BCDEGQRST]'
5499   ;;
5500 solaris* | sysv5*)
5501   symcode='[BDT]'
5502   ;;
5503 sysv4)
5504   symcode='[DFNSTU]'
5505   ;;
5506 esac
5507
5508 # Handle CRLF in mingw tool chain
5509 opt_cr=
5510 case $build_os in
5511 mingw*)
5512   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5513   ;;
5514 esac
5515
5516 # If we're using GNU nm, then use its standard symbol codes.
5517 case `$NM -V 2>&1` in
5518 *GNU* | *'with BFD'*)
5519   symcode='[ABCDGISTW]' ;;
5520 esac
5521
5522 # Try without a prefix undercore, then with it.
5523 for ac_symprfx in "" "_"; do
5524
5525   # Write the raw and C identifiers.
5526   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5527
5528   # Check to see that the pipe works correctly.
5529   pipe_works=no
5530
5531   rm -f conftest*
5532   cat > conftest.$ac_ext <<EOF
5533 #ifdef __cplusplus
5534 extern "C" {
5535 #endif
5536 char nm_test_var;
5537 void nm_test_func(){}
5538 #ifdef __cplusplus
5539 }
5540 #endif
5541 int main(){nm_test_var='a';nm_test_func();return(0);}
5542 EOF
5543
5544   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5545   (eval $ac_compile) 2>&5
5546   ac_status=$?
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); }; then
5549     # Now try to grab the symbols.
5550     nlist=conftest.nm
5551     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5552   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); } && test -s "$nlist"; then
5556       # Try sorting and uniquifying the output.
5557       if sort "$nlist" | uniq > "$nlist"T; then
5558         mv -f "$nlist"T "$nlist"
5559       else
5560         rm -f "$nlist"T
5561       fi
5562
5563       # Make sure that we snagged all the symbols we need.
5564       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5565         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5566           cat <<EOF > conftest.$ac_ext
5567 #ifdef __cplusplus
5568 extern "C" {
5569 #endif
5570
5571 EOF
5572           # Now generate the symbol file.
5573           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5574
5575           cat <<EOF >> conftest.$ac_ext
5576 #if defined (__STDC__) && __STDC__
5577 # define lt_ptr_t void *
5578 #else
5579 # define lt_ptr_t char *
5580 # define const
5581 #endif
5582
5583 /* The mapping between symbol names and symbols. */
5584 const struct {
5585   const char *name;
5586   lt_ptr_t address;
5587 }
5588 lt_preloaded_symbols[] =
5589 {
5590 EOF
5591           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5592           cat <<\EOF >> conftest.$ac_ext
5593   {0, (lt_ptr_t) 0}
5594 };
5595
5596 #ifdef __cplusplus
5597 }
5598 #endif
5599 EOF
5600           # Now try linking the two files.
5601           mv conftest.$ac_objext conftstm.$ac_objext
5602           lt_save_LIBS="$LIBS"
5603           lt_save_CFLAGS="$CFLAGS"
5604           LIBS="conftstm.$ac_objext"
5605           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5606           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607   (eval $ac_link) 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5611             pipe_works=yes
5612           fi
5613           LIBS="$lt_save_LIBS"
5614           CFLAGS="$lt_save_CFLAGS"
5615         else
5616           echo "cannot find nm_test_func in $nlist" >&5
5617         fi
5618       else
5619         echo "cannot find nm_test_var in $nlist" >&5
5620       fi
5621     else
5622       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5623     fi
5624   else
5625     echo "$progname: failed program was:" >&5
5626     cat conftest.$ac_ext >&5
5627   fi
5628   rm -f conftest* conftst*
5629
5630   # Do not use the global_symbol_pipe unless it works.
5631   if test "$pipe_works" = yes; then
5632     break
5633   else
5634     lt_cv_sys_global_symbol_pipe=
5635   fi
5636 done
5637
5638 fi
5639
5640 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5641   lt_cv_sys_global_symbol_to_cdecl=
5642 fi
5643 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5644   echo "$as_me:$LINENO: result: failed" >&5
5645 echo "${ECHO_T}failed" >&6
5646 else
5647   echo "$as_me:$LINENO: result: ok" >&5
5648 echo "${ECHO_T}ok" >&6
5649 fi
5650
5651 echo "$as_me:$LINENO: checking for objdir" >&5
5652 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5653 if test "${lt_cv_objdir+set}" = set; then
5654   echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656   rm -f .libs 2>/dev/null
5657 mkdir .libs 2>/dev/null
5658 if test -d .libs; then
5659   lt_cv_objdir=.libs
5660 else
5661   # MS-DOS does not allow filenames that begin with a dot.
5662   lt_cv_objdir=_libs
5663 fi
5664 rmdir .libs 2>/dev/null
5665 fi
5666 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5667 echo "${ECHO_T}$lt_cv_objdir" >&6
5668 objdir=$lt_cv_objdir
5669
5670
5671
5672
5673
5674 case $host_os in
5675 aix3*)
5676   # AIX sometimes has problems with the GCC collect2 program.  For some
5677   # reason, if we set the COLLECT_NAMES environment variable, the problems
5678   # vanish in a puff of smoke.
5679   if test "X${COLLECT_NAMES+set}" != Xset; then
5680     COLLECT_NAMES=
5681     export COLLECT_NAMES
5682   fi
5683   ;;
5684 esac
5685
5686 # Sed substitution that helps us do robust quoting.  It backslashifies
5687 # metacharacters that are still active within double-quoted strings.
5688 Xsed='sed -e s/^X//'
5689 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5690
5691 # Same as above, but do not quote variable references.
5692 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5693
5694 # Sed substitution to delay expansion of an escaped shell variable in a
5695 # double_quote_subst'ed string.
5696 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5697
5698 # Sed substitution to avoid accidental globbing in evaled expressions
5699 no_glob_subst='s/\*/\\\*/g'
5700
5701 # Constants:
5702 rm="rm -f"
5703
5704 # Global variables:
5705 default_ofile=mklib
5706 can_build_shared=yes
5707
5708 # All known linkers require a `.a' archive for static linking (except M$VC,
5709 # which needs '.lib').
5710 libext=a
5711 ltmain="$ac_aux_dir/ltmain.sh"
5712 ofile="$default_ofile"
5713 with_gnu_ld="$lt_cv_prog_gnu_ld"
5714
5715 if test -n "$ac_tool_prefix"; then
5716   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}ar; ac_word=$2
5718 echo "$as_me:$LINENO: checking for $ac_word" >&5
5719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5720 if test "${ac_cv_prog_AR+set}" = set; then
5721   echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5723   if test -n "$AR"; then
5724   ac_cv_prog_AR="$AR" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731   for ac_exec_ext in '' $ac_executable_extensions; do
5732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733     ac_cv_prog_AR="${ac_tool_prefix}ar"
5734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735     break 2
5736   fi
5737 done
5738 done
5739
5740 fi
5741 fi
5742 AR=$ac_cv_prog_AR
5743 if test -n "$AR"; then
5744   echo "$as_me:$LINENO: result: $AR" >&5
5745 echo "${ECHO_T}$AR" >&6
5746 else
5747   echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6
5749 fi
5750
5751 fi
5752 if test -z "$ac_cv_prog_AR"; then
5753   ac_ct_AR=$AR
5754   # Extract the first word of "ar", so it can be a program name with args.
5755 set dummy ar; ac_word=$2
5756 echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   if test -n "$ac_ct_AR"; then
5762   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769   for ac_exec_ext in '' $ac_executable_extensions; do
5770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771     ac_cv_prog_ac_ct_AR="ar"
5772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776 done
5777
5778   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5779 fi
5780 fi
5781 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5782 if test -n "$ac_ct_AR"; then
5783   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5784 echo "${ECHO_T}$ac_ct_AR" >&6
5785 else
5786   echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6
5788 fi
5789
5790   AR=$ac_ct_AR
5791 else
5792   AR="$ac_cv_prog_AR"
5793 fi
5794
5795 if test -n "$ac_tool_prefix"; then
5796   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5798 echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800 if test "${ac_cv_prog_RANLIB+set}" = set; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   if test -n "$RANLIB"; then
5804   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809   IFS=$as_save_IFS
5810   test -z "$as_dir" && as_dir=.
5811   for ac_exec_ext in '' $ac_executable_extensions; do
5812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815     break 2
5816   fi
5817 done
5818 done
5819
5820 fi
5821 fi
5822 RANLIB=$ac_cv_prog_RANLIB
5823 if test -n "$RANLIB"; then
5824   echo "$as_me:$LINENO: result: $RANLIB" >&5
5825 echo "${ECHO_T}$RANLIB" >&6
5826 else
5827   echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6
5829 fi
5830
5831 fi
5832 if test -z "$ac_cv_prog_RANLIB"; then
5833   ac_ct_RANLIB=$RANLIB
5834   # Extract the first word of "ranlib", so it can be a program name with args.
5835 set dummy ranlib; ac_word=$2
5836 echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   if test -n "$ac_ct_RANLIB"; then
5842   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847   IFS=$as_save_IFS
5848   test -z "$as_dir" && as_dir=.
5849   for ac_exec_ext in '' $ac_executable_extensions; do
5850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851     ac_cv_prog_ac_ct_RANLIB="ranlib"
5852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853     break 2
5854   fi
5855 done
5856 done
5857
5858   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5859 fi
5860 fi
5861 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5862 if test -n "$ac_ct_RANLIB"; then
5863   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5864 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5865 else
5866   echo "$as_me:$LINENO: result: no" >&5
5867 echo "${ECHO_T}no" >&6
5868 fi
5869
5870   RANLIB=$ac_ct_RANLIB
5871 else
5872   RANLIB="$ac_cv_prog_RANLIB"
5873 fi
5874
5875 if test -n "$ac_tool_prefix"; then
5876   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5877 set dummy ${ac_tool_prefix}strip; ac_word=$2
5878 echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5880 if test "${ac_cv_prog_STRIP+set}" = set; then
5881   echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883   if test -n "$STRIP"; then
5884   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889   IFS=$as_save_IFS
5890   test -z "$as_dir" && as_dir=.
5891   for ac_exec_ext in '' $ac_executable_extensions; do
5892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895     break 2
5896   fi
5897 done
5898 done
5899
5900 fi
5901 fi
5902 STRIP=$ac_cv_prog_STRIP
5903 if test -n "$STRIP"; then
5904   echo "$as_me:$LINENO: result: $STRIP" >&5
5905 echo "${ECHO_T}$STRIP" >&6
5906 else
5907   echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6
5909 fi
5910
5911 fi
5912 if test -z "$ac_cv_prog_STRIP"; then
5913   ac_ct_STRIP=$STRIP
5914   # Extract the first word of "strip", so it can be a program name with args.
5915 set dummy strip; ac_word=$2
5916 echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   if test -n "$ac_ct_STRIP"; then
5922   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927   IFS=$as_save_IFS
5928   test -z "$as_dir" && as_dir=.
5929   for ac_exec_ext in '' $ac_executable_extensions; do
5930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931     ac_cv_prog_ac_ct_STRIP="strip"
5932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933     break 2
5934   fi
5935 done
5936 done
5937
5938   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5939 fi
5940 fi
5941 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5942 if test -n "$ac_ct_STRIP"; then
5943   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5944 echo "${ECHO_T}$ac_ct_STRIP" >&6
5945 else
5946   echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6
5948 fi
5949
5950   STRIP=$ac_ct_STRIP
5951 else
5952   STRIP="$ac_cv_prog_STRIP"
5953 fi
5954
5955
5956 old_CC="$CC"
5957 old_CFLAGS="$CFLAGS"
5958
5959 # Set sane defaults for various variables
5960 test -z "$AR" && AR=ar
5961 test -z "$AR_FLAGS" && AR_FLAGS=cru
5962 test -z "$AS" && AS=as
5963 test -z "$CC" && CC=cc
5964 test -z "$LTCC" && LTCC=$CC
5965 test -z "$DLLTOOL" && DLLTOOL=dlltool
5966 test -z "$LD" && LD=ld
5967 test -z "$LN_S" && LN_S="ln -s"
5968 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5969 test -z "$NM" && NM=nm
5970 test -z "$SED" && SED=sed
5971 test -z "$OBJDUMP" && OBJDUMP=objdump
5972 test -z "$RANLIB" && RANLIB=:
5973 test -z "$STRIP" && STRIP=:
5974 test -z "$ac_objext" && ac_objext=o
5975
5976 # Determine commands to create old-style static archives.
5977 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5978 old_postinstall_cmds='chmod 644 $oldlib'
5979 old_postuninstall_cmds=
5980
5981 if test -n "$RANLIB"; then
5982   case $host_os in
5983   openbsd*)
5984     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5985     ;;
5986   *)
5987     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5988     ;;
5989   esac
5990   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5991 fi
5992
5993 # Only perform the check for file, if the check method requires it
5994 case $deplibs_check_method in
5995 file_magic*)
5996   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5997     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5998 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5999 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   case $MAGIC_CMD in
6003 [\\/*] |  ?:[\\/]*)
6004   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6005   ;;
6006 *)
6007   lt_save_MAGIC_CMD="$MAGIC_CMD"
6008   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6009   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6010   for ac_dir in $ac_dummy; do
6011     IFS="$lt_save_ifs"
6012     test -z "$ac_dir" && ac_dir=.
6013     if test -f $ac_dir/${ac_tool_prefix}file; then
6014       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6015       if test -n "$file_magic_test_file"; then
6016         case $deplibs_check_method in
6017         "file_magic "*)
6018           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6019           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6020           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6021             $EGREP "$file_magic_regex" > /dev/null; then
6022             :
6023           else
6024             cat <<EOF 1>&2
6025
6026 *** Warning: the command libtool uses to detect shared libraries,
6027 *** $file_magic_cmd, produces output that libtool cannot recognize.
6028 *** The result is that libtool may fail to recognize shared libraries
6029 *** as such.  This will affect the creation of libtool libraries that
6030 *** depend on shared libraries, but programs linked with such libtool
6031 *** libraries will work regardless of this problem.  Nevertheless, you
6032 *** may want to report the problem to your system manager and/or to
6033 *** bug-libtool@gnu.org
6034
6035 EOF
6036           fi ;;
6037         esac
6038       fi
6039       break
6040     fi
6041   done
6042   IFS="$lt_save_ifs"
6043   MAGIC_CMD="$lt_save_MAGIC_CMD"
6044   ;;
6045 esac
6046 fi
6047
6048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6049 if test -n "$MAGIC_CMD"; then
6050   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6051 echo "${ECHO_T}$MAGIC_CMD" >&6
6052 else
6053   echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6
6055 fi
6056
6057 if test -z "$lt_cv_path_MAGIC_CMD"; then
6058   if test -n "$ac_tool_prefix"; then
6059     echo "$as_me:$LINENO: checking for file" >&5
6060 echo $ECHO_N "checking for file... $ECHO_C" >&6
6061 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6062   echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064   case $MAGIC_CMD in
6065 [\\/*] |  ?:[\\/]*)
6066   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6067   ;;
6068 *)
6069   lt_save_MAGIC_CMD="$MAGIC_CMD"
6070   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6071   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6072   for ac_dir in $ac_dummy; do
6073     IFS="$lt_save_ifs"
6074     test -z "$ac_dir" && ac_dir=.
6075     if test -f $ac_dir/file; then
6076       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6077       if test -n "$file_magic_test_file"; then
6078         case $deplibs_check_method in
6079         "file_magic "*)
6080           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6081           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6082           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6083             $EGREP "$file_magic_regex" > /dev/null; then
6084             :
6085           else
6086             cat <<EOF 1>&2
6087
6088 *** Warning: the command libtool uses to detect shared libraries,
6089 *** $file_magic_cmd, produces output that libtool cannot recognize.
6090 *** The result is that libtool may fail to recognize shared libraries
6091 *** as such.  This will affect the creation of libtool libraries that
6092 *** depend on shared libraries, but programs linked with such libtool
6093 *** libraries will work regardless of this problem.  Nevertheless, you
6094 *** may want to report the problem to your system manager and/or to
6095 *** bug-libtool@gnu.org
6096
6097 EOF
6098           fi ;;
6099         esac
6100       fi
6101       break
6102     fi
6103   done
6104   IFS="$lt_save_ifs"
6105   MAGIC_CMD="$lt_save_MAGIC_CMD"
6106   ;;
6107 esac
6108 fi
6109
6110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6111 if test -n "$MAGIC_CMD"; then
6112   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6113 echo "${ECHO_T}$MAGIC_CMD" >&6
6114 else
6115   echo "$as_me:$LINENO: result: no" >&5
6116 echo "${ECHO_T}no" >&6
6117 fi
6118
6119   else
6120     MAGIC_CMD=:
6121   fi
6122 fi
6123
6124   fi
6125   ;;
6126 esac
6127
6128 enable_dlopen=no
6129 enable_win32_dll=no
6130
6131 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6132 if test "${enable_libtool_lock+set}" = set; then
6133   enableval="$enable_libtool_lock"
6134
6135 fi;
6136 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6137
6138
6139 # Check whether --with-pic or --without-pic was given.
6140 if test "${with_pic+set}" = set; then
6141   withval="$with_pic"
6142   pic_mode="$withval"
6143 else
6144   pic_mode=default
6145 fi;
6146 test -z "$pic_mode" && pic_mode=default
6147
6148 # Use C for the default configuration in the libtool script
6149 tagname=
6150 lt_save_CC="$CC"
6151 ac_ext=c
6152 ac_cpp='$CPP $CPPFLAGS'
6153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156
6157
6158 # Source file extension for C test sources.
6159 ac_ext=c
6160
6161 # Object file extension for compiled C test sources.
6162 objext=o
6163 objext=$objext
6164
6165 # Code to be used in simple compile tests
6166 lt_simple_compile_test_code="int some_variable = 0;\n"
6167
6168 # Code to be used in simple link tests
6169 lt_simple_link_test_code='int main(){return(0);}\n'
6170
6171
6172 # If no C compiler was specified, use CC.
6173 LTCC=${LTCC-"$CC"}
6174
6175 # Allow CC to be a program name with arguments.
6176 compiler=$CC
6177
6178
6179 #
6180 # Check for any special shared library compilation flags.
6181 #
6182 lt_prog_cc_shlib=
6183 if test "$GCC" = no; then
6184   case $host_os in
6185   sco3.2v5*)
6186     lt_prog_cc_shlib='-belf'
6187     ;;
6188   esac
6189 fi
6190 if test -n "$lt_prog_cc_shlib"; then
6191   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6192 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6193   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6194   else
6195     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6196 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6197     lt_cv_prog_cc_can_build_shared=no
6198   fi
6199 fi
6200
6201
6202 #
6203 # Check to make sure the static flag actually works.
6204 #
6205 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6206 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6207 if test "${lt_prog_compiler_static_works+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   lt_prog_compiler_static_works=no
6211    save_LDFLAGS="$LDFLAGS"
6212    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6213    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6214    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6215      # The compiler can only warn and ignore the option if not recognized
6216      # So say no if there are warnings
6217      if test -s conftest.err; then
6218        # Append any errors to the config.log.
6219        cat conftest.err 1>&5
6220      else
6221        lt_prog_compiler_static_works=yes
6222      fi
6223    fi
6224    $rm conftest*
6225    LDFLAGS="$save_LDFLAGS"
6226
6227 fi
6228 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6229 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6230
6231 if test x"$lt_prog_compiler_static_works" = xyes; then
6232     :
6233 else
6234     lt_prog_compiler_static=
6235 fi
6236
6237
6238
6239 ## CAVEAT EMPTOR:
6240 ## There is no encapsulation within the following macros, do not change
6241 ## the running order or otherwise move them around unless you know exactly
6242 ## what you are doing...
6243
6244 lt_prog_compiler_no_builtin_flag=
6245
6246 if test "$GCC" = yes; then
6247   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6248
6249   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6250 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6251 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254   lt_cv_prog_compiler_rtti_exceptions=no
6255   ac_outfile=conftest.$ac_objext
6256    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6257    lt_compiler_flag="-fno-rtti -fno-exceptions"
6258    # Insert the option either (1) after the last *FLAGS variable, or
6259    # (2) before a word containing "conftest.", or (3) at the end.
6260    # Note that $ac_compile itself does not contain backslashes and begins
6261    # with a dollar sign (not a hyphen), so the echo should work correctly.
6262    # The option is referenced via a variable to avoid confusing sed.
6263    lt_compile=`echo "$ac_compile" | $SED \
6264    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6265    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6266    -e 's:$: $lt_compiler_flag:'`
6267    (eval echo "\"\$as_me:6267: $lt_compile\"" >&5)
6268    (eval "$lt_compile" 2>conftest.err)
6269    ac_status=$?
6270    cat conftest.err >&5
6271    echo "$as_me:6271: \$? = $ac_status" >&5
6272    if (exit $ac_status) && test -s "$ac_outfile"; then
6273      # The compiler can only warn and ignore the option if not recognized
6274      # So say no if there are warnings
6275      if test ! -s conftest.err; then
6276        lt_cv_prog_compiler_rtti_exceptions=yes
6277      fi
6278    fi
6279    $rm conftest*
6280
6281 fi
6282 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6283 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6284
6285 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6286     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6287 else
6288     :
6289 fi
6290
6291 fi
6292
6293 lt_prog_compiler_wl=
6294 lt_prog_compiler_pic=
6295 lt_prog_compiler_static=
6296
6297 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6298 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6299
6300   if test "$GCC" = yes; then
6301     lt_prog_compiler_wl='-Wl,'
6302     lt_prog_compiler_static='-static'
6303
6304     case $host_os in
6305       aix*)
6306       # All AIX code is PIC.
6307       if test "$host_cpu" = ia64; then
6308         # AIX 5 now supports IA64 processor
6309         lt_prog_compiler_static='-Bstatic'
6310       fi
6311       ;;
6312
6313     amigaos*)
6314       # FIXME: we need at least 68020 code to build shared libraries, but
6315       # adding the `-m68020' flag to GCC prevents building anything better,
6316       # like `-m68040'.
6317       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6318       ;;
6319
6320     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6321       # PIC is the default for these OSes.
6322       ;;
6323
6324     mingw* | pw32* | os2*)
6325       # This hack is so that the source file can tell whether it is being
6326       # built for inclusion in a dll (and should export symbols for example).
6327       lt_prog_compiler_pic='-DDLL_EXPORT'
6328       ;;
6329
6330     darwin* | rhapsody*)
6331       # PIC is the default on this platform
6332       # Common symbols not allowed in MH_DYLIB files
6333       lt_prog_compiler_pic='-fno-common'
6334       ;;
6335
6336     msdosdjgpp*)
6337       # Just because we use GCC doesn't mean we suddenly get shared libraries
6338       # on systems that don't support them.
6339       lt_prog_compiler_can_build_shared=no
6340       enable_shared=no
6341       ;;
6342
6343     sysv4*MP*)
6344       if test -d /usr/nec; then
6345         lt_prog_compiler_pic=-Kconform_pic
6346       fi
6347       ;;
6348
6349     hpux*)
6350       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6351       # not for PA HP-UX.
6352       case "$host_cpu" in
6353       hppa*64*|ia64*)
6354         # +Z the default
6355         ;;
6356       *)
6357         lt_prog_compiler_pic='-fPIC'
6358         ;;
6359       esac
6360       ;;
6361
6362     *)
6363       lt_prog_compiler_pic='-fPIC'
6364       ;;
6365     esac
6366   else
6367     # PORTME Check for flag to pass linker flags through the system compiler.
6368     case $host_os in
6369     aix*)
6370       lt_prog_compiler_wl='-Wl,'
6371       if test "$host_cpu" = ia64; then
6372         # AIX 5 now supports IA64 processor
6373         lt_prog_compiler_static='-Bstatic'
6374       else
6375         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6376       fi
6377       ;;
6378
6379     mingw* | pw32* | os2*)
6380       # This hack is so that the source file can tell whether it is being
6381       # built for inclusion in a dll (and should export symbols for example).
6382       lt_prog_compiler_pic='-DDLL_EXPORT'
6383       ;;
6384
6385     hpux9* | hpux10* | hpux11*)
6386       lt_prog_compiler_wl='-Wl,'
6387       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6388       # not for PA HP-UX.
6389       case "$host_cpu" in
6390       hppa*64*|ia64*)
6391         # +Z the default
6392         ;;
6393       *)
6394         lt_prog_compiler_pic='+Z'
6395         ;;
6396       esac
6397       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6398       lt_prog_compiler_static='${wl}-a ${wl}archive'
6399       ;;
6400
6401     irix5* | irix6* | nonstopux*)
6402       lt_prog_compiler_wl='-Wl,'
6403       # PIC (with -KPIC) is the default.
6404       lt_prog_compiler_static='-non_shared'
6405       ;;
6406
6407     newsos6)
6408       lt_prog_compiler_pic='-KPIC'
6409       lt_prog_compiler_static='-Bstatic'
6410       ;;
6411
6412     linux*)
6413       case $CC in
6414       icc|ecc)
6415         lt_prog_compiler_wl='-Wl,'
6416         lt_prog_compiler_pic='-KPIC'
6417         lt_prog_compiler_static='-static'
6418         ;;
6419       ccc)
6420         lt_prog_compiler_wl='-Wl,'
6421         # All Alpha code is PIC.
6422         lt_prog_compiler_static='-non_shared'
6423         ;;
6424       esac
6425       ;;
6426
6427     osf3* | osf4* | osf5*)
6428       lt_prog_compiler_wl='-Wl,'
6429       # All OSF/1 code is PIC.
6430       lt_prog_compiler_static='-non_shared'
6431       ;;
6432
6433     sco3.2v5*)
6434       lt_prog_compiler_pic='-Kpic'
6435       lt_prog_compiler_static='-dn'
6436       ;;
6437
6438     solaris*)
6439       lt_prog_compiler_wl='-Wl,'
6440       lt_prog_compiler_pic='-KPIC'
6441       lt_prog_compiler_static='-Bstatic'
6442       ;;
6443
6444     sunos4*)
6445       lt_prog_compiler_wl='-Qoption ld '
6446       lt_prog_compiler_pic='-PIC'
6447       lt_prog_compiler_static='-Bstatic'
6448       ;;
6449
6450     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6451       lt_prog_compiler_wl='-Wl,'
6452       lt_prog_compiler_pic='-KPIC'
6453       lt_prog_compiler_static='-Bstatic'
6454       ;;
6455
6456     sysv4*MP*)
6457       if test -d /usr/nec ;then
6458         lt_prog_compiler_pic='-Kconform_pic'
6459         lt_prog_compiler_static='-Bstatic'
6460       fi
6461       ;;
6462
6463     uts4*)
6464       lt_prog_compiler_pic='-pic'
6465       lt_prog_compiler_static='-Bstatic'
6466       ;;
6467
6468     *)
6469       lt_prog_compiler_can_build_shared=no
6470       ;;
6471     esac
6472   fi
6473
6474 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6475 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6476
6477 #
6478 # Check to make sure the PIC flag actually works.
6479 #
6480 if test -n "$lt_prog_compiler_pic"; then
6481   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6482 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6483 if test "${lt_prog_compiler_pic_works+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   lt_prog_compiler_pic_works=no
6487   ac_outfile=conftest.$ac_objext
6488    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6489    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6490    # Insert the option either (1) after the last *FLAGS variable, or
6491    # (2) before a word containing "conftest.", or (3) at the end.
6492    # Note that $ac_compile itself does not contain backslashes and begins
6493    # with a dollar sign (not a hyphen), so the echo should work correctly.
6494    # The option is referenced via a variable to avoid confusing sed.
6495    lt_compile=`echo "$ac_compile" | $SED \
6496    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6497    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6498    -e 's:$: $lt_compiler_flag:'`
6499    (eval echo "\"\$as_me:6499: $lt_compile\"" >&5)
6500    (eval "$lt_compile" 2>conftest.err)
6501    ac_status=$?
6502    cat conftest.err >&5
6503    echo "$as_me:6503: \$? = $ac_status" >&5
6504    if (exit $ac_status) && test -s "$ac_outfile"; then
6505      # The compiler can only warn and ignore the option if not recognized
6506      # So say no if there are warnings
6507      if test ! -s conftest.err; then
6508        lt_prog_compiler_pic_works=yes
6509      fi
6510    fi
6511    $rm conftest*
6512
6513 fi
6514 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6515 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6516
6517 if test x"$lt_prog_compiler_pic_works" = xyes; then
6518     case $lt_prog_compiler_pic in
6519      "" | " "*) ;;
6520      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6521      esac
6522 else
6523     lt_prog_compiler_pic=
6524      lt_prog_compiler_can_build_shared=no
6525 fi
6526
6527 fi
6528 case "$host_os" in
6529   # For platforms which do not support PIC, -DPIC is meaningless:
6530   *djgpp*)
6531     lt_prog_compiler_pic=
6532     ;;
6533   *)
6534     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6535     ;;
6536 esac
6537
6538 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6539 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6540 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6541   echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543   lt_cv_prog_compiler_c_o=no
6544    $rm -r conftest 2>/dev/null
6545    mkdir conftest
6546    cd conftest
6547    mkdir out
6548    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6549
6550    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6551    # that will create temporary files in the current directory regardless of
6552    # the output directory.  Thus, making CWD read-only will cause this test
6553    # to fail, enabling locking or at least warning the user not to do parallel
6554    # builds.
6555    chmod -w .
6556
6557    lt_compiler_flag="-o out/conftest2.$ac_objext"
6558    # Insert the option either (1) after the last *FLAGS variable, or
6559    # (2) before a word containing "conftest.", or (3) at the end.
6560    # Note that $ac_compile itself does not contain backslashes and begins
6561    # with a dollar sign (not a hyphen), so the echo should work correctly.
6562    lt_compile=`echo "$ac_compile" | $SED \
6563    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6564    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6565    -e 's:$: $lt_compiler_flag:'`
6566    (eval echo "\"\$as_me:6566: $lt_compile\"" >&5)
6567    (eval "$lt_compile" 2>out/conftest.err)
6568    ac_status=$?
6569    cat out/conftest.err >&5
6570    echo "$as_me:6570: \$? = $ac_status" >&5
6571    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6572    then
6573      # The compiler can only warn and ignore the option if not recognized
6574      # So say no if there are warnings
6575      if test ! -s out/conftest.err; then
6576        lt_cv_prog_compiler_c_o=yes
6577      fi
6578    fi
6579    chmod u+w .
6580    $rm conftest* out/*
6581    rmdir out
6582    cd ..
6583    rmdir conftest
6584    $rm conftest*
6585
6586 fi
6587 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6588 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6589
6590
6591 hard_links="nottested"
6592 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6593   # do not overwrite the value of need_locks provided by the user
6594   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6595 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6596   hard_links=yes
6597   $rm conftest*
6598   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6599   touch conftest.a
6600   ln conftest.a conftest.b 2>&5 || hard_links=no
6601   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6602   echo "$as_me:$LINENO: result: $hard_links" >&5
6603 echo "${ECHO_T}$hard_links" >&6
6604   if test "$hard_links" = no; then
6605     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6606 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6607     need_locks=warn
6608   fi
6609 else
6610   need_locks=no
6611 fi
6612
6613 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6615
6616   runpath_var=
6617   allow_undefined_flag=
6618   enable_shared_with_static_runtimes=no
6619   archive_cmds=
6620   archive_expsym_cmds=
6621   old_archive_From_new_cmds=
6622   old_archive_from_expsyms_cmds=
6623   export_dynamic_flag_spec=
6624   whole_archive_flag_spec=
6625   thread_safe_flag_spec=
6626   hardcode_libdir_flag_spec=
6627   hardcode_libdir_flag_spec_ld=
6628   hardcode_libdir_separator=
6629   hardcode_direct=no
6630   hardcode_minus_L=no
6631   hardcode_shlibpath_var=unsupported
6632   link_all_deplibs=unknown
6633   hardcode_automatic=no
6634   module_cmds=
6635   module_expsym_cmds=
6636   always_export_symbols=no
6637   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6638   # include_expsyms should be a list of space-separated symbols to be *always*
6639   # included in the symbol list
6640   include_expsyms=
6641   # exclude_expsyms can be an extended regexp of symbols to exclude
6642   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6643   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6644   # as well as any symbol that contains `d'.
6645   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6646   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6647   # platforms (ab)use it in PIC code, but their linkers get confused if
6648   # the symbol is explicitly referenced.  Since portable code cannot
6649   # rely on this symbol name, it's probably fine to never include it in
6650   # preloaded symbol tables.
6651   extract_expsyms_cmds=
6652
6653   case $host_os in
6654   cygwin* | mingw* | pw32*)
6655     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6656     # When not using gcc, we currently assume that we are using
6657     # Microsoft Visual C++.
6658     if test "$GCC" != yes; then
6659       with_gnu_ld=no
6660     fi
6661     ;;
6662   openbsd*)
6663     with_gnu_ld=no
6664     ;;
6665   esac
6666
6667   ld_shlibs=yes
6668   if test "$with_gnu_ld" = yes; then
6669     # If archive_cmds runs LD, not CC, wlarc should be empty
6670     wlarc='${wl}'
6671
6672     # See if GNU ld supports shared libraries.
6673     case $host_os in
6674     aix3* | aix4* | aix5*)
6675       # On AIX/PPC, the GNU linker is very broken
6676       if test "$host_cpu" != ia64; then
6677         ld_shlibs=no
6678         cat <<EOF 1>&2
6679
6680 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6681 *** to be unable to reliably create shared libraries on AIX.
6682 *** Therefore, libtool is disabling shared libraries support.  If you
6683 *** really care for shared libraries, you may want to modify your PATH
6684 *** so that a non-GNU linker is found, and then restart.
6685
6686 EOF
6687       fi
6688       ;;
6689
6690     amigaos*)
6691       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)'
6692       hardcode_libdir_flag_spec='-L$libdir'
6693       hardcode_minus_L=yes
6694
6695       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6696       # that the semantics of dynamic libraries on AmigaOS, at least up
6697       # to version 4, is to share data among multiple programs linked
6698       # with the same dynamic library.  Since this doesn't match the
6699       # behavior of shared libraries on other platforms, we can't use
6700       # them.
6701       ld_shlibs=no
6702       ;;
6703
6704     beos*)
6705       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6706         allow_undefined_flag=unsupported
6707         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6708         # support --undefined.  This deserves some investigation.  FIXME
6709         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6710       else
6711         ld_shlibs=no
6712       fi
6713       ;;
6714
6715     cygwin* | mingw* | pw32*)
6716       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6717       # as there is no search path for DLLs.
6718       hardcode_libdir_flag_spec='-L$libdir'
6719       allow_undefined_flag=unsupported
6720       always_export_symbols=no
6721       enable_shared_with_static_runtimes=yes
6722       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6723
6724       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6725         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6726         # If the export-symbols file already is a .def file (1st line
6727         # is EXPORTS), use it as is; otherwise, prepend...
6728         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6729           cp $export_symbols $output_objdir/$soname.def;
6730         else
6731           echo EXPORTS > $output_objdir/$soname.def;
6732           cat $export_symbols >> $output_objdir/$soname.def;
6733         fi~
6734         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6735       else
6736         ld_shlibs=no
6737       fi
6738       ;;
6739
6740     netbsd*)
6741       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6742         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6743         wlarc=
6744       else
6745         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6746         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6747       fi
6748       ;;
6749
6750     solaris* | sysv5*)
6751       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6752         ld_shlibs=no
6753         cat <<EOF 1>&2
6754
6755 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6756 *** create shared libraries on Solaris systems.  Therefore, libtool
6757 *** is disabling shared libraries support.  We urge you to upgrade GNU
6758 *** binutils to release 2.9.1 or newer.  Another option is to modify
6759 *** your PATH or compiler configuration so that the native linker is
6760 *** used, and then restart.
6761
6762 EOF
6763       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6764         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6765         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6766       else
6767         ld_shlibs=no
6768       fi
6769       ;;
6770
6771     sunos4*)
6772       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6773       wlarc=
6774       hardcode_direct=yes
6775       hardcode_shlibpath_var=no
6776       ;;
6777
6778     *)
6779       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6780         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6781         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6782       else
6783         ld_shlibs=no
6784       fi
6785       ;;
6786     esac
6787
6788     if test "$ld_shlibs" = yes; then
6789       runpath_var=LD_RUN_PATH
6790       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6791       export_dynamic_flag_spec='${wl}--export-dynamic'
6792       # ancient GNU ld didn't support --whole-archive et. al.
6793       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6794         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6795       else
6796         whole_archive_flag_spec=
6797       fi
6798     fi
6799   else
6800     # PORTME fill in a description of your system's linker (not GNU ld)
6801     case $host_os in
6802     aix3*)
6803       allow_undefined_flag=unsupported
6804       always_export_symbols=yes
6805       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'
6806       # Note: this linker hardcodes the directories in LIBPATH if there
6807       # are no directories specified by -L.
6808       hardcode_minus_L=yes
6809       if test "$GCC" = yes && test -z "$link_static_flag"; then
6810         # Neither direct hardcoding nor static linking is supported with a
6811         # broken collect2.
6812         hardcode_direct=unsupported
6813       fi
6814       ;;
6815
6816     aix4* | aix5*)
6817       if test "$host_cpu" = ia64; then
6818         # On IA64, the linker does run time linking by default, so we don't
6819         # have to do anything special.
6820         aix_use_runtimelinking=no
6821         exp_sym_flag='-Bexport'
6822         no_entry_flag=""
6823       else
6824         # If we're using GNU nm, then we don't want the "-C" option.
6825         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6826         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6827           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'
6828         else
6829           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'
6830         fi
6831         aix_use_runtimelinking=no
6832
6833         # Test if we are trying to use run time linking or normal
6834         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6835         # need to do runtime linking.
6836         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6837           for ld_flag in $LDFLAGS; do
6838           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6839             aix_use_runtimelinking=yes
6840             break
6841           fi
6842           done
6843         esac
6844
6845         exp_sym_flag='-bexport'
6846         no_entry_flag='-bnoentry'
6847       fi
6848
6849       # When large executables or shared objects are built, AIX ld can
6850       # have problems creating the table of contents.  If linking a library
6851       # or program results in "error TOC overflow" add -mminimal-toc to
6852       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6853       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6854
6855       archive_cmds=''
6856       hardcode_direct=yes
6857       hardcode_libdir_separator=':'
6858       link_all_deplibs=yes
6859
6860       if test "$GCC" = yes; then
6861         case $host_os in aix4.012|aix4.012.*)
6862         # We only want to do this on AIX 4.2 and lower, the check
6863         # below for broken collect2 doesn't work under 4.3+
6864           collect2name=`${CC} -print-prog-name=collect2`
6865           if test -f "$collect2name" && \
6866            strings "$collect2name" | grep resolve_lib_name >/dev/null
6867           then
6868           # We have reworked collect2
6869           hardcode_direct=yes
6870           else
6871           # We have old collect2
6872           hardcode_direct=unsupported
6873           # It fails to find uninstalled libraries when the uninstalled
6874           # path is not listed in the libpath.  Setting hardcode_minus_L
6875           # to unsupported forces relinking
6876           hardcode_minus_L=yes
6877           hardcode_libdir_flag_spec='-L$libdir'
6878           hardcode_libdir_separator=
6879           fi
6880         esac
6881         shared_flag='-shared'
6882       else
6883         # not using gcc
6884         if test "$host_cpu" = ia64; then
6885         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6886         # chokes on -Wl,-G. The following line is correct:
6887           shared_flag='-G'
6888         else
6889         if test "$aix_use_runtimelinking" = yes; then
6890             shared_flag='${wl}-G'
6891           else
6892             shared_flag='${wl}-bM:SRE'
6893         fi
6894         fi
6895       fi
6896
6897       # It seems that -bexpall does not export symbols beginning with
6898       # underscore (_), so it is better to generate a list of symbols to export.
6899       always_export_symbols=yes
6900       if test "$aix_use_runtimelinking" = yes; then
6901         # Warning - without using the other runtime loading flags (-brtl),
6902         # -berok will link without error, but may produce a broken library.
6903         allow_undefined_flag='-berok'
6904        # Determine the default libpath from the value encoded in an empty executable.
6905        cat >conftest.$ac_ext <<_ACEOF
6906 #line $LINENO "configure"
6907 /* confdefs.h.  */
6908 _ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h.  */
6912
6913 int
6914 main ()
6915 {
6916
6917   ;
6918   return 0;
6919 }
6920 _ACEOF
6921 rm -f conftest.$ac_objext conftest$ac_exeext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6923   (eval $ac_link) 2>&5
6924   ac_status=$?
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); } &&
6927          { ac_try='test -s conftest$ac_exeext'
6928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929   (eval $ac_try) 2>&5
6930   ac_status=$?
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); }; }; then
6933
6934 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6935 }'`
6936 # Check for a 64-bit object if we didn't find anything.
6937 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; }
6938 }'`; fi
6939 else
6940   echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6942
6943 fi
6944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6946
6947        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6948         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"
6949        else
6950         if test "$host_cpu" = ia64; then
6951           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6952           allow_undefined_flag="-z nodefs"
6953           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"
6954         else
6955          # Determine the default libpath from the value encoded in an empty executable.
6956          cat >conftest.$ac_ext <<_ACEOF
6957 #line $LINENO "configure"
6958 /* confdefs.h.  */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h.  */
6963
6964 int
6965 main ()
6966 {
6967
6968   ;
6969   return 0;
6970 }
6971 _ACEOF
6972 rm -f conftest.$ac_objext conftest$ac_exeext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974   (eval $ac_link) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } &&
6978          { ac_try='test -s conftest$ac_exeext'
6979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980   (eval $ac_try) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; }; then
6984
6985 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6986 }'`
6987 # Check for a 64-bit object if we didn't find anything.
6988 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; }
6989 }'`; fi
6990 else
6991   echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994 fi
6995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6997
6998          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6999           # Warning - without using the other run time loading flags,
7000           # -berok will link without error, but may produce a broken library.
7001           no_undefined_flag=' ${wl}-bernotok'
7002           allow_undefined_flag=' ${wl}-berok'
7003           # -bexpall does not export symbols beginning with underscore (_)
7004           always_export_symbols=yes
7005           # Exported symbols can be pulled into shared objects from archives
7006           whole_archive_flag_spec=' '
7007           archive_cmds_need_lc=yes
7008           # This is similar to how AIX traditionally builds it's shared libraries.
7009           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'
7010         fi
7011       fi
7012       ;;
7013
7014     amigaos*)
7015       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)'
7016       hardcode_libdir_flag_spec='-L$libdir'
7017       hardcode_minus_L=yes
7018       # see comment about different semantics on the GNU ld section
7019       ld_shlibs=no
7020       ;;
7021
7022     bsdi4*)
7023       export_dynamic_flag_spec=-rdynamic
7024       ;;
7025
7026     cygwin* | mingw* | pw32*)
7027       # When not using gcc, we currently assume that we are using
7028       # Microsoft Visual C++.
7029       # hardcode_libdir_flag_spec is actually meaningless, as there is
7030       # no search path for DLLs.
7031       hardcode_libdir_flag_spec=' '
7032       allow_undefined_flag=unsupported
7033       # Tell ltmain to make .lib files, not .a files.
7034       libext=lib
7035       # Tell ltmain to make .dll files, not .so files.
7036       shrext=".dll"
7037       # FIXME: Setting linknames here is a bad hack.
7038       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7039       # The linker will automatically build a .lib file if we build a DLL.
7040       old_archive_From_new_cmds='true'
7041       # FIXME: Should let the user specify the lib program.
7042       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7043       fix_srcfile_path='`cygpath -w "$srcfile"`'
7044       enable_shared_with_static_runtimes=yes
7045       ;;
7046
7047     darwin* | rhapsody*)
7048     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7049       archive_cmds_need_lc=no
7050       case "$host_os" in
7051       rhapsody* | darwin1.[012])
7052         allow_undefined_flag='-undefined suppress'
7053         ;;
7054       *) # Darwin 1.3 on
7055         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7056         ;;
7057       esac
7058       # FIXME: Relying on posixy $() will cause problems for
7059       #        cross-compilation, but unfortunately the echo tests do not
7060       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7061       #        `"' quotes if we put them in here... so don't!
7062         lt_int_apple_cc_single_mod=no
7063         output_verbose_link_cmd='echo'
7064         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7065           lt_int_apple_cc_single_mod=yes
7066         fi
7067         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7068           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7069         else
7070         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'
7071       fi
7072       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7073       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7074         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7075           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}'
7076         else
7077           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}'
7078         fi
7079           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}'
7080       hardcode_direct=no
7081       hardcode_automatic=yes
7082       hardcode_shlibpath_var=unsupported
7083       whole_archive_flag_spec='-all_load $convenience'
7084       link_all_deplibs=yes
7085     fi
7086       ;;
7087
7088     dgux*)
7089       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7090       hardcode_libdir_flag_spec='-L$libdir'
7091       hardcode_shlibpath_var=no
7092       ;;
7093
7094     freebsd1*)
7095       ld_shlibs=no
7096       ;;
7097
7098     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7099     # support.  Future versions do this automatically, but an explicit c++rt0.o
7100     # does not break anything, and helps significantly (at the cost of a little
7101     # extra space).
7102     freebsd2.2*)
7103       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7104       hardcode_libdir_flag_spec='-R$libdir'
7105       hardcode_direct=yes
7106       hardcode_shlibpath_var=no
7107       ;;
7108
7109     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7110     freebsd2*)
7111       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7112       hardcode_direct=yes
7113       hardcode_minus_L=yes
7114       hardcode_shlibpath_var=no
7115       ;;
7116
7117     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7118     freebsd*)
7119       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7120       hardcode_libdir_flag_spec='-R$libdir'
7121       hardcode_direct=yes
7122       hardcode_shlibpath_var=no
7123       ;;
7124
7125     hpux9*)
7126       if test "$GCC" = yes; then
7127         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'
7128       else
7129         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'
7130       fi
7131       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7132       hardcode_libdir_separator=:
7133       hardcode_direct=yes
7134
7135       # hardcode_minus_L: Not really in the search PATH,
7136       # but as the default location of the library.
7137       hardcode_minus_L=yes
7138       export_dynamic_flag_spec='${wl}-E'
7139       ;;
7140
7141     hpux10* | hpux11*)
7142       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7143         case "$host_cpu" in
7144         hppa*64*|ia64*)
7145           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7146           ;;
7147         *)
7148           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7149           ;;
7150         esac
7151       else
7152         case "$host_cpu" in
7153         hppa*64*|ia64*)
7154           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7155           ;;
7156         *)
7157           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7158           ;;
7159         esac
7160       fi
7161       if test "$with_gnu_ld" = no; then
7162         case "$host_cpu" in
7163         hppa*64*)
7164           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7165           hardcode_libdir_flag_spec_ld='+b $libdir'
7166           hardcode_libdir_separator=:
7167           hardcode_direct=no
7168           hardcode_shlibpath_var=no
7169           ;;
7170         ia64*)
7171           hardcode_libdir_flag_spec='-L$libdir'
7172           hardcode_direct=no
7173           hardcode_shlibpath_var=no
7174
7175           # hardcode_minus_L: Not really in the search PATH,
7176           # but as the default location of the library.
7177           hardcode_minus_L=yes
7178           ;;
7179         *)
7180           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7181           hardcode_libdir_separator=:
7182           hardcode_direct=yes
7183           export_dynamic_flag_spec='${wl}-E'
7184
7185           # hardcode_minus_L: Not really in the search PATH,
7186           # but as the default location of the library.
7187           hardcode_minus_L=yes
7188           ;;
7189         esac
7190       fi
7191       ;;
7192
7193     irix5* | irix6* | nonstopux*)
7194       if test "$GCC" = yes; then
7195         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'
7196       else
7197         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'
7198         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7199       fi
7200       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7201       hardcode_libdir_separator=:
7202       link_all_deplibs=yes
7203       ;;
7204
7205     netbsd*)
7206       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7207         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7208       else
7209         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7210       fi
7211       hardcode_libdir_flag_spec='-R$libdir'
7212       hardcode_direct=yes
7213       hardcode_shlibpath_var=no
7214       ;;
7215
7216     newsos6)
7217       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7218       hardcode_direct=yes
7219       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7220       hardcode_libdir_separator=:
7221       hardcode_shlibpath_var=no
7222       ;;
7223
7224     openbsd*)
7225       hardcode_direct=yes
7226       hardcode_shlibpath_var=no
7227       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7228         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7229         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7230         export_dynamic_flag_spec='${wl}-E'
7231       else
7232        case $host_os in
7233          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7234            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7235            hardcode_libdir_flag_spec='-R$libdir'
7236            ;;
7237          *)
7238            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7239            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7240            ;;
7241        esac
7242       fi
7243       ;;
7244
7245     os2*)
7246       hardcode_libdir_flag_spec='-L$libdir'
7247       hardcode_minus_L=yes
7248       allow_undefined_flag=unsupported
7249       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'
7250       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7251       ;;
7252
7253     osf3*)
7254       if test "$GCC" = yes; then
7255         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7256         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'
7257       else
7258         allow_undefined_flag=' -expect_unresolved \*'
7259         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'
7260       fi
7261       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7262       hardcode_libdir_separator=:
7263       ;;
7264
7265     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7266       if test "$GCC" = yes; then
7267         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7268         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7269         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7270       else
7271         allow_undefined_flag=' -expect_unresolved \*'
7272         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'
7273         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7274         $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'
7275
7276         # Both c and cxx compiler support -rpath directly
7277         hardcode_libdir_flag_spec='-rpath $libdir'
7278       fi
7279       hardcode_libdir_separator=:
7280       ;;
7281
7282     sco3.2v5*)
7283       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7284       hardcode_shlibpath_var=no
7285       export_dynamic_flag_spec='${wl}-Bexport'
7286       runpath_var=LD_RUN_PATH
7287       hardcode_runpath_var=yes
7288       ;;
7289
7290     solaris*)
7291       no_undefined_flag=' -z text'
7292       if test "$GCC" = yes; then
7293         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7294         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7295           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7296       else
7297         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7298         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7299         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7300       fi
7301       hardcode_libdir_flag_spec='-R$libdir'
7302       hardcode_shlibpath_var=no
7303       case $host_os in
7304       solaris2.[0-5] | solaris2.[0-5].*) ;;
7305       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7306         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7307       esac
7308       link_all_deplibs=yes
7309       ;;
7310
7311     sunos4*)
7312       if test "x$host_vendor" = xsequent; then
7313         # Use $CC to link under sequent, because it throws in some extra .o
7314         # files that make .init and .fini sections work.
7315         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7316       else
7317         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7318       fi
7319       hardcode_libdir_flag_spec='-L$libdir'
7320       hardcode_direct=yes
7321       hardcode_minus_L=yes
7322       hardcode_shlibpath_var=no
7323       ;;
7324
7325     sysv4)
7326       case $host_vendor in
7327         sni)
7328           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7329           hardcode_direct=yes # is this really true???
7330         ;;
7331         siemens)
7332           ## LD is ld it makes a PLAMLIB
7333           ## CC just makes a GrossModule.
7334           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7335           reload_cmds='$CC -r -o $output$reload_objs'
7336           hardcode_direct=no
7337         ;;
7338         motorola)
7339           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7340           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7341         ;;
7342       esac
7343       runpath_var='LD_RUN_PATH'
7344       hardcode_shlibpath_var=no
7345       ;;
7346
7347     sysv4.3*)
7348       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7349       hardcode_shlibpath_var=no
7350       export_dynamic_flag_spec='-Bexport'
7351       ;;
7352
7353     sysv4*MP*)
7354       if test -d /usr/nec; then
7355         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7356         hardcode_shlibpath_var=no
7357         runpath_var=LD_RUN_PATH
7358         hardcode_runpath_var=yes
7359         ld_shlibs=yes
7360       fi
7361       ;;
7362
7363     sysv4.2uw2*)
7364       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7365       hardcode_direct=yes
7366       hardcode_minus_L=no
7367       hardcode_shlibpath_var=no
7368       hardcode_runpath_var=yes
7369       runpath_var=LD_RUN_PATH
7370       ;;
7371
7372    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7373       no_undefined_flag='${wl}-z ${wl}text'
7374       if test "$GCC" = yes; then
7375         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7376       else
7377         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7378       fi
7379       runpath_var='LD_RUN_PATH'
7380       hardcode_shlibpath_var=no
7381       ;;
7382
7383     sysv5*)
7384       no_undefined_flag=' -z text'
7385       # $CC -shared without GNU ld will not create a library from C++
7386       # object files and a static libstdc++, better avoid it by now
7387       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7388       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7389                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7390       hardcode_libdir_flag_spec=
7391       hardcode_shlibpath_var=no
7392       runpath_var='LD_RUN_PATH'
7393       ;;
7394
7395     uts4*)
7396       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7397       hardcode_libdir_flag_spec='-L$libdir'
7398       hardcode_shlibpath_var=no
7399       ;;
7400
7401     *)
7402       ld_shlibs=no
7403       ;;
7404     esac
7405   fi
7406
7407 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7408 echo "${ECHO_T}$ld_shlibs" >&6
7409 test "$ld_shlibs" = no && can_build_shared=no
7410
7411 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7412 if test "$GCC" = yes; then
7413   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7414 fi
7415
7416 #
7417 # Do we need to explicitly link libc?
7418 #
7419 case "x$archive_cmds_need_lc" in
7420 x|xyes)
7421   # Assume -lc should be added
7422   archive_cmds_need_lc=yes
7423
7424   if test "$enable_shared" = yes && test "$GCC" = yes; then
7425     case $archive_cmds in
7426     *'~'*)
7427       # FIXME: we may have to deal with multi-command sequences.
7428       ;;
7429     '$CC '*)
7430       # Test whether the compiler implicitly links with -lc since on some
7431       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7432       # to ld, don't add -lc before -lgcc.
7433       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7434 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7435       $rm conftest*
7436       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7437
7438       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7439   (eval $ac_compile) 2>&5
7440   ac_status=$?
7441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442   (exit $ac_status); } 2>conftest.err; then
7443         soname=conftest
7444         lib=conftest
7445         libobjs=conftest.$ac_objext
7446         deplibs=
7447         wl=$lt_prog_compiler_wl
7448         compiler_flags=-v
7449         linker_flags=-v
7450         verstring=
7451         output_objdir=.
7452         libname=conftest
7453         lt_save_allow_undefined_flag=$allow_undefined_flag
7454         allow_undefined_flag=
7455         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7456   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7457   ac_status=$?
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); }
7460         then
7461           archive_cmds_need_lc=no
7462         else
7463           archive_cmds_need_lc=yes
7464         fi
7465         allow_undefined_flag=$lt_save_allow_undefined_flag
7466       else
7467         cat conftest.err 1>&5
7468       fi
7469       $rm conftest*
7470       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7471 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7472       ;;
7473     esac
7474   fi
7475   ;;
7476 esac
7477
7478 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7479 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7480 hardcode_action=
7481 if test -n "$hardcode_libdir_flag_spec" || \
7482    test -n "$runpath_var " || \
7483    test "X$hardcode_automatic"="Xyes" ; then
7484
7485   # We can hardcode non-existant directories.
7486   if test "$hardcode_direct" != no &&
7487      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7488      # have to relink, otherwise we might link with an installed library
7489      # when we should be linking with a yet-to-be-installed one
7490      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7491      test "$hardcode_minus_L" != no; then
7492     # Linking always hardcodes the temporary library directory.
7493     hardcode_action=relink
7494   else
7495     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7496     hardcode_action=immediate
7497   fi
7498 else
7499   # We cannot hardcode anything, or else we can only hardcode existing
7500   # directories.
7501   hardcode_action=unsupported
7502 fi
7503 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7504 echo "${ECHO_T}$hardcode_action" >&6
7505
7506 if test "$hardcode_action" = relink; then
7507   # Fast installation is not supported
7508   enable_fast_install=no
7509 elif test "$shlibpath_overrides_runpath" = yes ||
7510      test "$enable_shared" = no; then
7511   # Fast installation is not necessary
7512   enable_fast_install=needless
7513 fi
7514
7515 striplib=
7516 old_striplib=
7517 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7518 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7519 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7520   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7521   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7522   echo "$as_me:$LINENO: result: yes" >&5
7523 echo "${ECHO_T}yes" >&6
7524 else
7525 # FIXME - insert some real tests, host_os isn't really good enough
7526   case $host_os in
7527    darwin*)
7528        if test -n "$STRIP" ; then
7529          striplib="$STRIP -x"
7530          echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6
7532        else
7533   echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6
7535 fi
7536        ;;
7537    *)
7538   echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6
7540     ;;
7541   esac
7542 fi
7543
7544 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7546 library_names_spec=
7547 libname_spec='lib$name'
7548 soname_spec=
7549 shrext=".so"
7550 postinstall_cmds=
7551 postuninstall_cmds=
7552 finish_cmds=
7553 finish_eval=
7554 shlibpath_var=
7555 shlibpath_overrides_runpath=unknown
7556 version_type=none
7557 dynamic_linker="$host_os ld.so"
7558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7559 if test "$GCC" = yes; then
7560   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7561   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7562     # if the path contains ";" then we assume it to be the separator
7563     # otherwise default to the standard path separator (i.e. ":") - it is
7564     # assumed that no part of a normal pathname contains ";" but that should
7565     # okay in the real world where ";" in dirpaths is itself problematic.
7566     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7567   else
7568     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7569   fi
7570 else
7571   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7572 fi
7573 need_lib_prefix=unknown
7574 hardcode_into_libs=no
7575
7576 # when you set need_version to no, make sure it does not cause -set_version
7577 # flags to be left without arguments
7578 need_version=unknown
7579
7580 case $host_os in
7581 aix3*)
7582   version_type=linux
7583   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7584   shlibpath_var=LIBPATH
7585
7586   # AIX 3 has no versioning support, so we append a major version to the name.
7587   soname_spec='${libname}${release}${shared_ext}$major'
7588   ;;
7589
7590 aix4* | aix5*)
7591   version_type=linux
7592   need_lib_prefix=no
7593   need_version=no
7594   hardcode_into_libs=yes
7595   if test "$host_cpu" = ia64; then
7596     # AIX 5 supports IA64
7597     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7598     shlibpath_var=LD_LIBRARY_PATH
7599   else
7600     # With GCC up to 2.95.x, collect2 would create an import file
7601     # for dependence libraries.  The import file would start with
7602     # the line `#! .'.  This would cause the generated library to
7603     # depend on `.', always an invalid library.  This was fixed in
7604     # development snapshots of GCC prior to 3.0.
7605     case $host_os in
7606       aix4 | aix4.[01] | aix4.[01].*)
7607       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7608            echo ' yes '
7609            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7610         :
7611       else
7612         can_build_shared=no
7613       fi
7614       ;;
7615     esac
7616     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7617     # soname into executable. Probably we can add versioning support to
7618     # collect2, so additional links can be useful in future.
7619     if test "$aix_use_runtimelinking" = yes; then
7620       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7621       # instead of lib<name>.a to let people know that these are not
7622       # typical AIX shared libraries.
7623       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7624     else
7625       # We preserve .a as extension for shared libraries through AIX4.2
7626       # and later when we are not doing run time linking.
7627       library_names_spec='${libname}${release}.a $libname.a'
7628       soname_spec='${libname}${release}${shared_ext}$major'
7629     fi
7630     shlibpath_var=LIBPATH
7631   fi
7632   ;;
7633
7634 amigaos*)
7635   library_names_spec='$libname.ixlibrary $libname.a'
7636   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7637   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'
7638   ;;
7639
7640 beos*)
7641   library_names_spec='${libname}${shared_ext}'
7642   dynamic_linker="$host_os ld.so"
7643   shlibpath_var=LIBRARY_PATH
7644   ;;
7645
7646 bsdi4*)
7647   version_type=linux
7648   need_version=no
7649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7650   soname_spec='${libname}${release}${shared_ext}$major'
7651   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7652   shlibpath_var=LD_LIBRARY_PATH
7653   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7654   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7655   # the default ld.so.conf also contains /usr/contrib/lib and
7656   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7657   # libtool to hard-code these into programs
7658   ;;
7659
7660 cygwin* | mingw* | pw32*)
7661   version_type=windows
7662   shrext=".dll"
7663   need_version=no
7664   need_lib_prefix=no
7665
7666   case $GCC,$host_os in
7667   yes,cygwin* | yes,mingw* | yes,pw32*)
7668     library_names_spec='$libname.dll.a'
7669     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7670     postinstall_cmds='base_file=`basename \${file}`~
7671       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7672       dldir=$destdir/`dirname \$dlpath`~
7673       test -d \$dldir || mkdir -p \$dldir~
7674       $install_prog $dir/$dlname \$dldir/$dlname'
7675     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7676       dlpath=$dir/\$dldll~
7677        $rm \$dlpath'
7678     shlibpath_overrides_runpath=yes
7679
7680     case $host_os in
7681     cygwin*)
7682       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7683       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7684       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7685       ;;
7686     mingw*)
7687       # MinGW DLLs use traditional 'lib' prefix
7688       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7689       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7690       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7691         # It is most probably a Windows format PATH printed by
7692         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7693         # path with ; separators, and with drive letters. We can handle the
7694         # drive letters (cygwin fileutils understands them), so leave them,
7695         # especially as we might pass files found there to a mingw objdump,
7696         # which wouldn't understand a cygwinified path. Ahh.
7697         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7698       else
7699         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7700       fi
7701       ;;
7702     pw32*)
7703       # pw32 DLLs use 'pw' prefix rather than 'lib'
7704       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7705       ;;
7706     esac
7707     ;;
7708
7709   *)
7710     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7711     ;;
7712   esac
7713   dynamic_linker='Win32 ld.exe'
7714   # FIXME: first we should search . and the directory the executable is in
7715   shlibpath_var=PATH
7716   ;;
7717
7718 darwin* | rhapsody*)
7719   dynamic_linker="$host_os dyld"
7720   version_type=darwin
7721   need_lib_prefix=no
7722   need_version=no
7723   # FIXME: Relying on posixy $() will cause problems for
7724   #        cross-compilation, but unfortunately the echo tests do not
7725   #        yet detect zsh echo's removal of \ escapes.
7726   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7727   soname_spec='${libname}${release}${major}$shared_ext'
7728   shlibpath_overrides_runpath=yes
7729   shlibpath_var=DYLD_LIBRARY_PATH
7730   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7731   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7732   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7733   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"`
7734   fi
7735   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7736   ;;
7737
7738 dgux*)
7739   version_type=linux
7740   need_lib_prefix=no
7741   need_version=no
7742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7743   soname_spec='${libname}${release}${shared_ext}$major'
7744   shlibpath_var=LD_LIBRARY_PATH
7745   ;;
7746
7747 freebsd1*)
7748   dynamic_linker=no
7749   ;;
7750
7751 freebsd*)
7752   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7753   version_type=freebsd-$objformat
7754   case $version_type in
7755     freebsd-elf*)
7756       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7757       need_version=no
7758       need_lib_prefix=no
7759       ;;
7760     freebsd-*)
7761       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7762       need_version=yes
7763       ;;
7764   esac
7765   shlibpath_var=LD_LIBRARY_PATH
7766   case $host_os in
7767   freebsd2*)
7768     shlibpath_overrides_runpath=yes
7769     ;;
7770   freebsd3.01* | freebsdelf3.01*)
7771     shlibpath_overrides_runpath=yes
7772     hardcode_into_libs=yes
7773     ;;
7774   *) # from 3.2 on
7775     shlibpath_overrides_runpath=no
7776     hardcode_into_libs=yes
7777     ;;
7778   esac
7779   ;;
7780
7781 gnu*)
7782   version_type=linux
7783   need_lib_prefix=no
7784   need_version=no
7785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7786   soname_spec='${libname}${release}${shared_ext}$major'
7787   shlibpath_var=LD_LIBRARY_PATH
7788   hardcode_into_libs=yes
7789   ;;
7790
7791 hpux9* | hpux10* | hpux11*)
7792   # Give a soname corresponding to the major version so that dld.sl refuses to
7793   # link against other versions.
7794   version_type=sunos
7795   need_lib_prefix=no
7796   need_version=no
7797   case "$host_cpu" in
7798   ia64*)
7799     shrext='.so'
7800     hardcode_into_libs=yes
7801     dynamic_linker="$host_os dld.so"
7802     shlibpath_var=LD_LIBRARY_PATH
7803     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7804     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7805     soname_spec='${libname}${release}${shared_ext}$major'
7806     if test "X$HPUX_IA64_MODE" = X32; then
7807       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7808     else
7809       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7810     fi
7811     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7812     ;;
7813    hppa*64*)
7814      shrext='.sl'
7815      hardcode_into_libs=yes
7816      dynamic_linker="$host_os dld.sl"
7817      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7818      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7819      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7820      soname_spec='${libname}${release}${shared_ext}$major'
7821      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7822      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7823      ;;
7824    *)
7825     shrext='.sl'
7826     dynamic_linker="$host_os dld.sl"
7827     shlibpath_var=SHLIB_PATH
7828     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7829     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7830     soname_spec='${libname}${release}${shared_ext}$major'
7831     ;;
7832   esac
7833   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7834   postinstall_cmds='chmod 555 $lib'
7835   ;;
7836
7837 irix5* | irix6* | nonstopux*)
7838   case $host_os in
7839     nonstopux*) version_type=nonstopux ;;
7840     *)
7841         if test "$lt_cv_prog_gnu_ld" = yes; then
7842                 version_type=linux
7843         else
7844                 version_type=irix
7845         fi ;;
7846   esac
7847   need_lib_prefix=no
7848   need_version=no
7849   soname_spec='${libname}${release}${shared_ext}$major'
7850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7851   case $host_os in
7852   irix5* | nonstopux*)
7853     libsuff= shlibsuff=
7854     ;;
7855   *)
7856     case $LD in # libtool.m4 will add one of these switches to LD
7857     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7858       libsuff= shlibsuff= libmagic=32-bit;;
7859     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7860       libsuff=32 shlibsuff=N32 libmagic=N32;;
7861     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7862       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7863     *) libsuff= shlibsuff= libmagic=never-match;;
7864     esac
7865     ;;
7866   esac
7867   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7868   shlibpath_overrides_runpath=no
7869   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7870   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7871   hardcode_into_libs=yes
7872   ;;
7873
7874 # No shared lib support for Linux oldld, aout, or coff.
7875 linux*oldld* | linux*aout* | linux*coff*)
7876   dynamic_linker=no
7877   ;;
7878
7879 # This must be Linux ELF.
7880 linux*)
7881   version_type=linux
7882   need_lib_prefix=no
7883   need_version=no
7884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7885   soname_spec='${libname}${release}${shared_ext}$major'
7886   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7887   shlibpath_var=LD_LIBRARY_PATH
7888   shlibpath_overrides_runpath=no
7889   # This implies no fast_install, which is unacceptable.
7890   # Some rework will be needed to allow for fast_install
7891   # before this can be enabled.
7892   hardcode_into_libs=yes
7893
7894   # We used to test for /lib/ld.so.1 and disable shared libraries on
7895   # powerpc, because MkLinux only supported shared libraries with the
7896   # GNU dynamic linker.  Since this was broken with cross compilers,
7897   # most powerpc-linux boxes support dynamic linking these days and
7898   # people can always --disable-shared, the test was removed, and we
7899   # assume the GNU/Linux dynamic linker is in use.
7900   dynamic_linker='GNU/Linux ld.so'
7901   ;;
7902
7903 netbsd*)
7904   version_type=sunos
7905   need_lib_prefix=no
7906   need_version=no
7907   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7909     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7910     dynamic_linker='NetBSD (a.out) ld.so'
7911   else
7912     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7913     soname_spec='${libname}${release}${shared_ext}$major'
7914     dynamic_linker='NetBSD ld.elf_so'
7915   fi
7916   shlibpath_var=LD_LIBRARY_PATH
7917   shlibpath_overrides_runpath=yes
7918   hardcode_into_libs=yes
7919   ;;
7920
7921 newsos6)
7922   version_type=linux
7923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924   shlibpath_var=LD_LIBRARY_PATH
7925   shlibpath_overrides_runpath=yes
7926   ;;
7927
7928 nto-qnx)
7929   version_type=linux
7930   need_lib_prefix=no
7931   need_version=no
7932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7933   soname_spec='${libname}${release}${shared_ext}$major'
7934   shlibpath_var=LD_LIBRARY_PATH
7935   shlibpath_overrides_runpath=yes
7936   ;;
7937
7938 openbsd*)
7939   version_type=sunos
7940   need_lib_prefix=no
7941   need_version=no
7942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7943   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7944   shlibpath_var=LD_LIBRARY_PATH
7945   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7946     case $host_os in
7947       openbsd2.[89] | openbsd2.[89].*)
7948         shlibpath_overrides_runpath=no
7949         ;;
7950       *)
7951         shlibpath_overrides_runpath=yes
7952         ;;
7953       esac
7954   else
7955     shlibpath_overrides_runpath=yes
7956   fi
7957   ;;
7958
7959 os2*)
7960   libname_spec='$name'
7961   shrext=".dll"
7962   need_lib_prefix=no
7963   library_names_spec='$libname${shared_ext} $libname.a'
7964   dynamic_linker='OS/2 ld.exe'
7965   shlibpath_var=LIBPATH
7966   ;;
7967
7968 osf3* | osf4* | osf5*)
7969   version_type=osf
7970   need_lib_prefix=no
7971   need_version=no
7972   soname_spec='${libname}${release}${shared_ext}$major'
7973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7974   shlibpath_var=LD_LIBRARY_PATH
7975   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7976   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7977   ;;
7978
7979 sco3.2v5*)
7980   version_type=osf
7981   soname_spec='${libname}${release}${shared_ext}$major'
7982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7983   shlibpath_var=LD_LIBRARY_PATH
7984   ;;
7985
7986 solaris*)
7987   version_type=linux
7988   need_lib_prefix=no
7989   need_version=no
7990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7991   soname_spec='${libname}${release}${shared_ext}$major'
7992   shlibpath_var=LD_LIBRARY_PATH
7993   shlibpath_overrides_runpath=yes
7994   hardcode_into_libs=yes
7995   # ldd complains unless libraries are executable
7996   postinstall_cmds='chmod +x $lib'
7997   ;;
7998
7999 sunos4*)
8000   version_type=sunos
8001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8002   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8003   shlibpath_var=LD_LIBRARY_PATH
8004   shlibpath_overrides_runpath=yes
8005   if test "$with_gnu_ld" = yes; then
8006     need_lib_prefix=no
8007   fi
8008   need_version=yes
8009   ;;
8010
8011 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8012   version_type=linux
8013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8014   soname_spec='${libname}${release}${shared_ext}$major'
8015   shlibpath_var=LD_LIBRARY_PATH
8016   case $host_vendor in
8017     sni)
8018       shlibpath_overrides_runpath=no
8019       need_lib_prefix=no
8020       export_dynamic_flag_spec='${wl}-Blargedynsym'
8021       runpath_var=LD_RUN_PATH
8022       ;;
8023     siemens)
8024       need_lib_prefix=no
8025       ;;
8026     motorola)
8027       need_lib_prefix=no
8028       need_version=no
8029       shlibpath_overrides_runpath=no
8030       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8031       ;;
8032   esac
8033   ;;
8034
8035 sysv4*MP*)
8036   if test -d /usr/nec ;then
8037     version_type=linux
8038     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8039     soname_spec='$libname${shared_ext}.$major'
8040     shlibpath_var=LD_LIBRARY_PATH
8041   fi
8042   ;;
8043
8044 uts4*)
8045   version_type=linux
8046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047   soname_spec='${libname}${release}${shared_ext}$major'
8048   shlibpath_var=LD_LIBRARY_PATH
8049   ;;
8050
8051 *)
8052   dynamic_linker=no
8053   ;;
8054 esac
8055 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8056 echo "${ECHO_T}$dynamic_linker" >&6
8057 test "$dynamic_linker" = no && can_build_shared=no
8058
8059 if test "x$enable_dlopen" != xyes; then
8060   enable_dlopen=unknown
8061   enable_dlopen_self=unknown
8062   enable_dlopen_self_static=unknown
8063 else
8064   lt_cv_dlopen=no
8065   lt_cv_dlopen_libs=
8066
8067   case $host_os in
8068   beos*)
8069     lt_cv_dlopen="load_add_on"
8070     lt_cv_dlopen_libs=
8071     lt_cv_dlopen_self=yes
8072     ;;
8073
8074   mingw* | pw32*)
8075     lt_cv_dlopen="LoadLibrary"
8076     lt_cv_dlopen_libs=
8077    ;;
8078
8079   cygwin*)
8080     lt_cv_dlopen="dlopen"
8081     lt_cv_dlopen_libs=
8082    ;;
8083
8084   darwin*)
8085   # if libdl is installed we need to link against it
8086     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8087 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8088 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   ac_check_lib_save_LIBS=$LIBS
8092 LIBS="-ldl  $LIBS"
8093 cat >conftest.$ac_ext <<_ACEOF
8094 #line $LINENO "configure"
8095 /* confdefs.h.  */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h.  */
8100
8101 /* Override any gcc2 internal prototype to avoid an error.  */
8102 #ifdef __cplusplus
8103 extern "C"
8104 #endif
8105 /* We use char because int might match the return type of a gcc2
8106    builtin and then its argument prototype would still apply.  */
8107 char dlopen ();
8108 int
8109 main ()
8110 {
8111 dlopen ();
8112   ;
8113   return 0;
8114 }
8115 _ACEOF
8116 rm -f conftest.$ac_objext conftest$ac_exeext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8118   (eval $ac_link) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -s conftest$ac_exeext'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; }; then
8128   ac_cv_lib_dl_dlopen=yes
8129 else
8130   echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ac_cv_lib_dl_dlopen=no
8134 fi
8135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8136 LIBS=$ac_check_lib_save_LIBS
8137 fi
8138 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8139 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8140 if test $ac_cv_lib_dl_dlopen = yes; then
8141   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8142 else
8143
8144     lt_cv_dlopen="dyld"
8145     lt_cv_dlopen_libs=
8146     lt_cv_dlopen_self=yes
8147
8148 fi
8149
8150    ;;
8151
8152   *)
8153     echo "$as_me:$LINENO: checking for shl_load" >&5
8154 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8155 if test "${ac_cv_func_shl_load+set}" = set; then
8156   echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158   cat >conftest.$ac_ext <<_ACEOF
8159 #line $LINENO "configure"
8160 /* confdefs.h.  */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h.  */
8165 /* System header to define __stub macros and hopefully few prototypes,
8166     which can conflict with char shl_load (); below.
8167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8168     <limits.h> exists even on freestanding compilers.  */
8169 #ifdef __STDC__
8170 # include <limits.h>
8171 #else
8172 # include <assert.h>
8173 #endif
8174 /* Override any gcc2 internal prototype to avoid an error.  */
8175 #ifdef __cplusplus
8176 extern "C"
8177 {
8178 #endif
8179 /* We use char because int might match the return type of a gcc2
8180    builtin and then its argument prototype would still apply.  */
8181 char shl_load ();
8182 /* The GNU C library defines this for functions which it implements
8183     to always fail with ENOSYS.  Some functions are actually named
8184     something starting with __ and the normal name is an alias.  */
8185 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8186 choke me
8187 #else
8188 char (*f) () = shl_load;
8189 #endif
8190 #ifdef __cplusplus
8191 }
8192 #endif
8193
8194 int
8195 main ()
8196 {
8197 return f != shl_load;
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204   (eval $ac_link) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -s conftest$ac_exeext'
8209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210   (eval $ac_try) 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; }; then
8214   ac_cv_func_shl_load=yes
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219 ac_cv_func_shl_load=no
8220 fi
8221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8222 fi
8223 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8224 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8225 if test $ac_cv_func_shl_load = yes; then
8226   lt_cv_dlopen="shl_load"
8227 else
8228   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8229 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8230 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8231   echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233   ac_check_lib_save_LIBS=$LIBS
8234 LIBS="-ldld  $LIBS"
8235 cat >conftest.$ac_ext <<_ACEOF
8236 #line $LINENO "configure"
8237 /* confdefs.h.  */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h.  */
8242
8243 /* Override any gcc2 internal prototype to avoid an error.  */
8244 #ifdef __cplusplus
8245 extern "C"
8246 #endif
8247 /* We use char because int might match the return type of a gcc2
8248    builtin and then its argument prototype would still apply.  */
8249 char shl_load ();
8250 int
8251 main ()
8252 {
8253 shl_load ();
8254   ;
8255   return 0;
8256 }
8257 _ACEOF
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260   (eval $ac_link) 2>&5
8261   ac_status=$?
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); } &&
8264          { ac_try='test -s conftest$ac_exeext'
8265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266   (eval $ac_try) 2>&5
8267   ac_status=$?
8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); }; }; then
8270   ac_cv_lib_dld_shl_load=yes
8271 else
8272   echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8274
8275 ac_cv_lib_dld_shl_load=no
8276 fi
8277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8278 LIBS=$ac_check_lib_save_LIBS
8279 fi
8280 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8281 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8282 if test $ac_cv_lib_dld_shl_load = yes; then
8283   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8284 else
8285   echo "$as_me:$LINENO: checking for dlopen" >&5
8286 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8287 if test "${ac_cv_func_dlopen+set}" = set; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290   cat >conftest.$ac_ext <<_ACEOF
8291 #line $LINENO "configure"
8292 /* confdefs.h.  */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h.  */
8297 /* System header to define __stub macros and hopefully few prototypes,
8298     which can conflict with char dlopen (); below.
8299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8300     <limits.h> exists even on freestanding compilers.  */
8301 #ifdef __STDC__
8302 # include <limits.h>
8303 #else
8304 # include <assert.h>
8305 #endif
8306 /* Override any gcc2 internal prototype to avoid an error.  */
8307 #ifdef __cplusplus
8308 extern "C"
8309 {
8310 #endif
8311 /* We use char because int might match the return type of a gcc2
8312    builtin and then its argument prototype would still apply.  */
8313 char dlopen ();
8314 /* The GNU C library defines this for functions which it implements
8315     to always fail with ENOSYS.  Some functions are actually named
8316     something starting with __ and the normal name is an alias.  */
8317 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8318 choke me
8319 #else
8320 char (*f) () = dlopen;
8321 #endif
8322 #ifdef __cplusplus
8323 }
8324 #endif
8325
8326 int
8327 main ()
8328 {
8329 return f != dlopen;
8330   ;
8331   return 0;
8332 }
8333 _ACEOF
8334 rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8336   (eval $ac_link) 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } &&
8340          { ac_try='test -s conftest$ac_exeext'
8341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342   (eval $ac_try) 2>&5
8343   ac_status=$?
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); }; }; then
8346   ac_cv_func_dlopen=yes
8347 else
8348   echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8350
8351 ac_cv_func_dlopen=no
8352 fi
8353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8354 fi
8355 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8356 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8357 if test $ac_cv_func_dlopen = yes; then
8358   lt_cv_dlopen="dlopen"
8359 else
8360   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8361 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8362 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   ac_check_lib_save_LIBS=$LIBS
8366 LIBS="-ldl  $LIBS"
8367 cat >conftest.$ac_ext <<_ACEOF
8368 #line $LINENO "configure"
8369 /* confdefs.h.  */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h.  */
8374
8375 /* Override any gcc2 internal prototype to avoid an error.  */
8376 #ifdef __cplusplus
8377 extern "C"
8378 #endif
8379 /* We use char because int might match the return type of a gcc2
8380    builtin and then its argument prototype would still apply.  */
8381 char dlopen ();
8382 int
8383 main ()
8384 {
8385 dlopen ();
8386   ;
8387   return 0;
8388 }
8389 _ACEOF
8390 rm -f conftest.$ac_objext conftest$ac_exeext
8391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8392   (eval $ac_link) 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } &&
8396          { ac_try='test -s conftest$ac_exeext'
8397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398   (eval $ac_try) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; }; then
8402   ac_cv_lib_dl_dlopen=yes
8403 else
8404   echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8406
8407 ac_cv_lib_dl_dlopen=no
8408 fi
8409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8410 LIBS=$ac_check_lib_save_LIBS
8411 fi
8412 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8413 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8414 if test $ac_cv_lib_dl_dlopen = yes; then
8415   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8416 else
8417   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8418 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8419 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422   ac_check_lib_save_LIBS=$LIBS
8423 LIBS="-lsvld  $LIBS"
8424 cat >conftest.$ac_ext <<_ACEOF
8425 #line $LINENO "configure"
8426 /* confdefs.h.  */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h.  */
8431
8432 /* Override any gcc2 internal prototype to avoid an error.  */
8433 #ifdef __cplusplus
8434 extern "C"
8435 #endif
8436 /* We use char because int might match the return type of a gcc2
8437    builtin and then its argument prototype would still apply.  */
8438 char dlopen ();
8439 int
8440 main ()
8441 {
8442 dlopen ();
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449   (eval $ac_link) 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); } &&
8453          { ac_try='test -s conftest$ac_exeext'
8454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455   (eval $ac_try) 2>&5
8456   ac_status=$?
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); }; }; then
8459   ac_cv_lib_svld_dlopen=yes
8460 else
8461   echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_cv_lib_svld_dlopen=no
8465 fi
8466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8467 LIBS=$ac_check_lib_save_LIBS
8468 fi
8469 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8470 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8471 if test $ac_cv_lib_svld_dlopen = yes; then
8472   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8473 else
8474   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8475 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8476 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479   ac_check_lib_save_LIBS=$LIBS
8480 LIBS="-ldld  $LIBS"
8481 cat >conftest.$ac_ext <<_ACEOF
8482 #line $LINENO "configure"
8483 /* confdefs.h.  */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h.  */
8488
8489 /* Override any gcc2 internal prototype to avoid an error.  */
8490 #ifdef __cplusplus
8491 extern "C"
8492 #endif
8493 /* We use char because int might match the return type of a gcc2
8494    builtin and then its argument prototype would still apply.  */
8495 char dld_link ();
8496 int
8497 main ()
8498 {
8499 dld_link ();
8500   ;
8501   return 0;
8502 }
8503 _ACEOF
8504 rm -f conftest.$ac_objext conftest$ac_exeext
8505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8506   (eval $ac_link) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); } &&
8510          { ac_try='test -s conftest$ac_exeext'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; }; then
8516   ac_cv_lib_dld_dld_link=yes
8517 else
8518   echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 ac_cv_lib_dld_dld_link=no
8522 fi
8523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8524 LIBS=$ac_check_lib_save_LIBS
8525 fi
8526 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8527 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8528 if test $ac_cv_lib_dld_dld_link = yes; then
8529   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8530 fi
8531
8532
8533 fi
8534
8535
8536 fi
8537
8538
8539 fi
8540
8541
8542 fi
8543
8544
8545 fi
8546
8547     ;;
8548   esac
8549
8550   if test "x$lt_cv_dlopen" != xno; then
8551     enable_dlopen=yes
8552   else
8553     enable_dlopen=no
8554   fi
8555
8556   case $lt_cv_dlopen in
8557   dlopen)
8558     save_CPPFLAGS="$CPPFLAGS"
8559     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8560
8561     save_LDFLAGS="$LDFLAGS"
8562     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8563
8564     save_LIBS="$LIBS"
8565     LIBS="$lt_cv_dlopen_libs $LIBS"
8566
8567     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8568 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8569 if test "${lt_cv_dlopen_self+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572           if test "$cross_compiling" = yes; then :
8573   lt_cv_dlopen_self=cross
8574 else
8575   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8576   lt_status=$lt_dlunknown
8577   cat > conftest.$ac_ext <<EOF
8578 #line 8578 "configure"
8579 #include "confdefs.h"
8580
8581 #if HAVE_DLFCN_H
8582 #include <dlfcn.h>
8583 #endif
8584
8585 #include <stdio.h>
8586
8587 #ifdef RTLD_GLOBAL
8588 #  define LT_DLGLOBAL           RTLD_GLOBAL
8589 #else
8590 #  ifdef DL_GLOBAL
8591 #    define LT_DLGLOBAL         DL_GLOBAL
8592 #  else
8593 #    define LT_DLGLOBAL         0
8594 #  endif
8595 #endif
8596
8597 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8598    find out it does not work in some platform. */
8599 #ifndef LT_DLLAZY_OR_NOW
8600 #  ifdef RTLD_LAZY
8601 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8602 #  else
8603 #    ifdef DL_LAZY
8604 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8605 #    else
8606 #      ifdef RTLD_NOW
8607 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8608 #      else
8609 #        ifdef DL_NOW
8610 #          define LT_DLLAZY_OR_NOW      DL_NOW
8611 #        else
8612 #          define LT_DLLAZY_OR_NOW      0
8613 #        endif
8614 #      endif
8615 #    endif
8616 #  endif
8617 #endif
8618
8619 #ifdef __cplusplus
8620 extern "C" void exit (int);
8621 #endif
8622
8623 void fnord() { int i=42;}
8624 int main ()
8625 {
8626   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8627   int status = $lt_dlunknown;
8628
8629   if (self)
8630     {
8631       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8632       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8633       /* dlclose (self); */
8634     }
8635
8636     exit (status);
8637 }
8638 EOF
8639   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640   (eval $ac_link) 2>&5
8641   ac_status=$?
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8644     (./conftest; exit; ) 2>/dev/null
8645     lt_status=$?
8646     case x$lt_status in
8647       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8648       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8649       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8650     esac
8651   else :
8652     # compilation failed
8653     lt_cv_dlopen_self=no
8654   fi
8655 fi
8656 rm -fr conftest*
8657
8658
8659 fi
8660 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8661 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8662
8663     if test "x$lt_cv_dlopen_self" = xyes; then
8664       LDFLAGS="$LDFLAGS $link_static_flag"
8665       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8666 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8667 if test "${lt_cv_dlopen_self_static+set}" = set; then
8668   echo $ECHO_N "(cached) $ECHO_C" >&6
8669 else
8670           if test "$cross_compiling" = yes; then :
8671   lt_cv_dlopen_self_static=cross
8672 else
8673   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8674   lt_status=$lt_dlunknown
8675   cat > conftest.$ac_ext <<EOF
8676 #line 8676 "configure"
8677 #include "confdefs.h"
8678
8679 #if HAVE_DLFCN_H
8680 #include <dlfcn.h>
8681 #endif
8682
8683 #include <stdio.h>
8684
8685 #ifdef RTLD_GLOBAL
8686 #  define LT_DLGLOBAL           RTLD_GLOBAL
8687 #else
8688 #  ifdef DL_GLOBAL
8689 #    define LT_DLGLOBAL         DL_GLOBAL
8690 #  else
8691 #    define LT_DLGLOBAL         0
8692 #  endif
8693 #endif
8694
8695 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8696    find out it does not work in some platform. */
8697 #ifndef LT_DLLAZY_OR_NOW
8698 #  ifdef RTLD_LAZY
8699 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8700 #  else
8701 #    ifdef DL_LAZY
8702 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8703 #    else
8704 #      ifdef RTLD_NOW
8705 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8706 #      else
8707 #        ifdef DL_NOW
8708 #          define LT_DLLAZY_OR_NOW      DL_NOW
8709 #        else
8710 #          define LT_DLLAZY_OR_NOW      0
8711 #        endif
8712 #      endif
8713 #    endif
8714 #  endif
8715 #endif
8716
8717 #ifdef __cplusplus
8718 extern "C" void exit (int);
8719 #endif
8720
8721 void fnord() { int i=42;}
8722 int main ()
8723 {
8724   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8725   int status = $lt_dlunknown;
8726
8727   if (self)
8728     {
8729       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8730       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8731       /* dlclose (self); */
8732     }
8733
8734     exit (status);
8735 }
8736 EOF
8737   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8738   (eval $ac_link) 2>&5
8739   ac_status=$?
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8742     (./conftest; exit; ) 2>/dev/null
8743     lt_status=$?
8744     case x$lt_status in
8745       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8746       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8747       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8748     esac
8749   else :
8750     # compilation failed
8751     lt_cv_dlopen_self_static=no
8752   fi
8753 fi
8754 rm -fr conftest*
8755
8756
8757 fi
8758 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8759 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8760     fi
8761
8762     CPPFLAGS="$save_CPPFLAGS"
8763     LDFLAGS="$save_LDFLAGS"
8764     LIBS="$save_LIBS"
8765     ;;
8766   esac
8767
8768   case $lt_cv_dlopen_self in
8769   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8770   *) enable_dlopen_self=unknown ;;
8771   esac
8772
8773   case $lt_cv_dlopen_self_static in
8774   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8775   *) enable_dlopen_self_static=unknown ;;
8776   esac
8777 fi
8778
8779
8780 # Report which librarie types wil actually be built
8781 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8782 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8783 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8784 echo "${ECHO_T}$can_build_shared" >&6
8785
8786 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8787 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8788 test "$can_build_shared" = "no" && enable_shared=no
8789
8790 # On AIX, shared libraries and static libraries use the same namespace, and
8791 # are all built from PIC.
8792 case "$host_os" in
8793 aix3*)
8794   test "$enable_shared" = yes && enable_static=no
8795   if test -n "$RANLIB"; then
8796     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8797     postinstall_cmds='$RANLIB $lib'
8798   fi
8799   ;;
8800
8801 aix4*)
8802   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8803     test "$enable_shared" = yes && enable_static=no
8804   fi
8805   ;;
8806   darwin* | rhapsody*)
8807   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8808     archive_cmds_need_lc=no
8809     case "$host_os" in
8810     rhapsody* | darwin1.[012])
8811       allow_undefined_flag='-undefined suppress'
8812       ;;
8813     *) # Darwin 1.3 on
8814       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8815       ;;
8816     esac
8817     # FIXME: Relying on posixy $() will cause problems for
8818     #        cross-compilation, but unfortunately the echo tests do not
8819     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8820     #          `"' quotes if we put them in here... so don't!
8821                 output_verbose_link_cmd='echo'
8822     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8823     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8824     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8825                   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}'
8826                   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}'
8827     hardcode_direct=no
8828     hardcode_automatic=yes
8829     hardcode_shlibpath_var=unsupported
8830     whole_archive_flag_spec='-all_load $convenience'
8831     link_all_deplibs=yes
8832     fi
8833     ;;
8834 esac
8835 echo "$as_me:$LINENO: result: $enable_shared" >&5
8836 echo "${ECHO_T}$enable_shared" >&6
8837
8838 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8839 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8840 # Make sure either enable_shared or enable_static is yes.
8841 test "$enable_shared" = yes || enable_static=yes
8842 echo "$as_me:$LINENO: result: $enable_static" >&5
8843 echo "${ECHO_T}$enable_static" >&6
8844
8845 # The else clause should only fire when bootstrapping the
8846 # libtool distribution, otherwise you forgot to ship ltmain.sh
8847 # with your package, and you will get complaints that there are
8848 # no rules to generate ltmain.sh.
8849 if test -f "$ltmain"; then
8850   # See if we are running on zsh, and set the options which allow our commands through
8851   # without removal of \ escapes.
8852   if test -n "${ZSH_VERSION+set}" ; then
8853     setopt NO_GLOB_SUBST
8854   fi
8855   # Now quote all the things that may contain metacharacters while being
8856   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8857   # variables and quote the copies for generation of the libtool script.
8858   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8859     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8860     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8861     deplibs_check_method reload_flag reload_cmds need_locks \
8862     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8863     lt_cv_sys_global_symbol_to_c_name_address \
8864     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8865     old_postinstall_cmds old_postuninstall_cmds \
8866     compiler \
8867     CC \
8868     LD \
8869     lt_prog_compiler_wl \
8870     lt_prog_compiler_pic \
8871     lt_prog_compiler_static \
8872     lt_prog_compiler_no_builtin_flag \
8873     export_dynamic_flag_spec \
8874     thread_safe_flag_spec \
8875     whole_archive_flag_spec \
8876     enable_shared_with_static_runtimes \
8877     old_archive_cmds \
8878     old_archive_from_new_cmds \
8879     predep_objects \
8880     postdep_objects \
8881     predeps \
8882     postdeps \
8883     compiler_lib_search_path \
8884     archive_cmds \
8885     archive_expsym_cmds \
8886     postinstall_cmds \
8887     postuninstall_cmds \
8888     old_archive_from_expsyms_cmds \
8889     allow_undefined_flag \
8890     no_undefined_flag \
8891     export_symbols_cmds \
8892     hardcode_libdir_flag_spec \
8893     hardcode_libdir_flag_spec_ld \
8894     hardcode_libdir_separator \
8895     hardcode_automatic \
8896     module_cmds \
8897     module_expsym_cmds \
8898     lt_cv_prog_compiler_c_o \
8899     exclude_expsyms \
8900     include_expsyms; do
8901
8902     case $var in
8903     old_archive_cmds | \
8904     old_archive_from_new_cmds | \
8905     archive_cmds | \
8906     archive_expsym_cmds | \
8907     module_cmds | \
8908     module_expsym_cmds | \
8909     old_archive_from_expsyms_cmds | \
8910     export_symbols_cmds | \
8911     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8912     postinstall_cmds | postuninstall_cmds | \
8913     old_postinstall_cmds | old_postuninstall_cmds | \
8914     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8915       # Double-quote double-evaled strings.
8916       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8917       ;;
8918     *)
8919       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8920       ;;
8921     esac
8922   done
8923
8924   case $lt_echo in
8925   *'\$0 --fallback-echo"')
8926     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8927     ;;
8928   esac
8929
8930 cfgfile="${ofile}T"
8931   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8932   $rm -f "$cfgfile"
8933   { echo "$as_me:$LINENO: creating $ofile" >&5
8934 echo "$as_me: creating $ofile" >&6;}
8935
8936   cat <<__EOF__ >> "$cfgfile"
8937 #! $SHELL
8938
8939 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8940 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8941 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8942 #
8943 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8944 # Free Software Foundation, Inc.
8945 #
8946 # This file is part of GNU Libtool:
8947 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8948 #
8949 # This program is free software; you can redistribute it and/or modify
8950 # it under the terms of the GNU General Public License as published by
8951 # the Free Software Foundation; either version 2 of the License, or
8952 # (at your option) any later version.
8953 #
8954 # This program is distributed in the hope that it will be useful, but
8955 # WITHOUT ANY WARRANTY; without even the implied warranty of
8956 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8957 # General Public License for more details.
8958 #
8959 # You should have received a copy of the GNU General Public License
8960 # along with this program; if not, write to the Free Software
8961 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8962 #
8963 # As a special exception to the GNU General Public License, if you
8964 # distribute this file as part of a program that contains a
8965 # configuration script generated by Autoconf, you may include it under
8966 # the same distribution terms that you use for the rest of that program.
8967
8968 # A sed program that does not truncate output.
8969 SED=$lt_SED
8970
8971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8972 Xsed="$SED -e s/^X//"
8973
8974 # The HP-UX ksh and POSIX shell print the target directory to stdout
8975 # if CDPATH is set.
8976 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8977
8978 # The names of the tagged configurations supported by this script.
8979 available_tags=
8980
8981 # ### BEGIN LIBTOOL CONFIG
8982
8983 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8984
8985 # Shell to use when invoking shell scripts.
8986 SHELL=$lt_SHELL
8987
8988 # Whether or not to build shared libraries.
8989 build_libtool_libs=$enable_shared
8990
8991 # Whether or not to build static libraries.
8992 build_old_libs=$enable_static
8993
8994 # Whether or not to add -lc for building shared libraries.
8995 build_libtool_need_lc=$archive_cmds_need_lc
8996
8997 # Whether or not to disallow shared libs when runtime libs are static
8998 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8999
9000 # Whether or not to optimize for fast installation.
9001 fast_install=$enable_fast_install
9002
9003 # The host system.
9004 host_alias=$host_alias
9005 host=$host
9006
9007 # An echo program that does not interpret backslashes.
9008 echo=$lt_echo
9009
9010 # The archiver.
9011 AR=$lt_AR
9012 AR_FLAGS=$lt_AR_FLAGS
9013
9014 # A C compiler.
9015 LTCC=$lt_LTCC
9016
9017 # A language-specific compiler.
9018 CC=$lt_compiler
9019
9020 # Is the compiler the GNU C compiler?
9021 with_gcc=$GCC
9022
9023 # An ERE matcher.
9024 EGREP=$lt_EGREP
9025
9026 # The linker used to build libraries.
9027 LD=$lt_LD
9028
9029 # Whether we need hard or soft links.
9030 LN_S=$lt_LN_S
9031
9032 # A BSD-compatible nm program.
9033 NM=$lt_NM
9034
9035 # A symbol stripping program
9036 STRIP=$STRIP
9037
9038 # Used to examine libraries when file_magic_cmd begins "file"
9039 MAGIC_CMD=$MAGIC_CMD
9040
9041 # Used on cygwin: DLL creation program.
9042 DLLTOOL="$DLLTOOL"
9043
9044 # Used on cygwin: object dumper.
9045 OBJDUMP="$OBJDUMP"
9046
9047 # Used on cygwin: assembler.
9048 AS="$AS"
9049
9050 # The name of the directory that contains temporary libtool files.
9051 objdir=$objdir
9052
9053 # How to create reloadable object files.
9054 reload_flag=$lt_reload_flag
9055 reload_cmds=$lt_reload_cmds
9056
9057 # How to pass a linker flag through the compiler.
9058 wl=$lt_lt_prog_compiler_wl
9059
9060 # Object file suffix (normally "o").
9061 objext="$ac_objext"
9062
9063 # Old archive suffix (normally "a").
9064 libext="$libext"
9065
9066 # Shared library suffix (normally ".so").
9067 shrext='$shrext'
9068
9069 # Executable file suffix (normally "").
9070 exeext="$exeext"
9071
9072 # Additional compiler flags for building library objects.
9073 pic_flag=$lt_lt_prog_compiler_pic
9074 pic_mode=$pic_mode
9075
9076 # What is the maximum length of a command?
9077 max_cmd_len=$lt_cv_sys_max_cmd_len
9078
9079 # Does compiler simultaneously support -c and -o options?
9080 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9081
9082 # Must we lock files when doing compilation ?
9083 need_locks=$lt_need_locks
9084
9085 # Do we need the lib prefix for modules?
9086 need_lib_prefix=$need_lib_prefix
9087
9088 # Do we need a version for libraries?
9089 need_version=$need_version
9090
9091 # Whether dlopen is supported.
9092 dlopen_support=$enable_dlopen
9093
9094 # Whether dlopen of programs is supported.
9095 dlopen_self=$enable_dlopen_self
9096
9097 # Whether dlopen of statically linked programs is supported.
9098 dlopen_self_static=$enable_dlopen_self_static
9099
9100 # Compiler flag to prevent dynamic linking.
9101 link_static_flag=$lt_lt_prog_compiler_static
9102
9103 # Compiler flag to turn off builtin functions.
9104 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9105
9106 # Compiler flag to allow reflexive dlopens.
9107 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9108
9109 # Compiler flag to generate shared objects directly from archives.
9110 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9111
9112 # Compiler flag to generate thread-safe objects.
9113 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9114
9115 # Library versioning type.
9116 version_type=$version_type
9117
9118 # Format of library name prefix.
9119 libname_spec=$lt_libname_spec
9120
9121 # List of archive names.  First name is the real one, the rest are links.
9122 # The last name is the one that the linker finds with -lNAME.
9123 library_names_spec=$lt_library_names_spec
9124
9125 # The coded name of the library, if different from the real name.
9126 soname_spec=$lt_soname_spec
9127
9128 # Commands used to build and install an old-style archive.
9129 RANLIB=$lt_RANLIB
9130 old_archive_cmds=$lt_old_archive_cmds
9131 old_postinstall_cmds=$lt_old_postinstall_cmds
9132 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9133
9134 # Create an old-style archive from a shared archive.
9135 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9136
9137 # Create a temporary old-style archive to link instead of a shared archive.
9138 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9139
9140 # Commands used to build and install a shared archive.
9141 archive_cmds=$lt_archive_cmds
9142 archive_expsym_cmds=$lt_archive_expsym_cmds
9143 postinstall_cmds=$lt_postinstall_cmds
9144 postuninstall_cmds=$lt_postuninstall_cmds
9145
9146 # Commands used to build a loadable module (assumed same as above if empty)
9147 module_cmds=$lt_module_cmds
9148 module_expsym_cmds=$lt_module_expsym_cmds
9149
9150 # Commands to strip libraries.
9151 old_striplib=$lt_old_striplib
9152 striplib=$lt_striplib
9153
9154 # Dependencies to place before the objects being linked to create a
9155 # shared library.
9156 predep_objects=$lt_predep_objects
9157
9158 # Dependencies to place after the objects being linked to create a
9159 # shared library.
9160 postdep_objects=$lt_postdep_objects
9161
9162 # Dependencies to place before the objects being linked to create a
9163 # shared library.
9164 predeps=$lt_predeps
9165
9166 # Dependencies to place after the objects being linked to create a
9167 # shared library.
9168 postdeps=$lt_postdeps
9169
9170 # The library search path used internally by the compiler when linking
9171 # a shared library.
9172 compiler_lib_search_path=$lt_compiler_lib_search_path
9173
9174 # Method to check whether dependent libraries are shared objects.
9175 deplibs_check_method=$lt_deplibs_check_method
9176
9177 # Command to use when deplibs_check_method == file_magic.
9178 file_magic_cmd=$lt_file_magic_cmd
9179
9180 # Flag that allows shared libraries with undefined symbols to be built.
9181 allow_undefined_flag=$lt_allow_undefined_flag
9182
9183 # Flag that forces no undefined symbols.
9184 no_undefined_flag=$lt_no_undefined_flag
9185
9186 # Commands used to finish a libtool library installation in a directory.
9187 finish_cmds=$lt_finish_cmds
9188
9189 # Same as above, but a single script fragment to be evaled but not shown.
9190 finish_eval=$lt_finish_eval
9191
9192 # Take the output of nm and produce a listing of raw symbols and C names.
9193 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9194
9195 # Transform the output of nm in a proper C declaration
9196 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9197
9198 # Transform the output of nm in a C name address pair
9199 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9200
9201 # This is the shared library runtime path variable.
9202 runpath_var=$runpath_var
9203
9204 # This is the shared library path variable.
9205 shlibpath_var=$shlibpath_var
9206
9207 # Is shlibpath searched before the hard-coded library search path?
9208 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9209
9210 # How to hardcode a shared library path into an executable.
9211 hardcode_action=$hardcode_action
9212
9213 # Whether we should hardcode library paths into libraries.
9214 hardcode_into_libs=$hardcode_into_libs
9215
9216 # Flag to hardcode \$libdir into a binary during linking.
9217 # This must work even if \$libdir does not exist.
9218 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9219
9220 # If ld is used when linking, flag to hardcode \$libdir into
9221 # a binary during linking. This must work even if \$libdir does
9222 # not exist.
9223 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9224
9225 # Whether we need a single -rpath flag with a separated argument.
9226 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9227
9228 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9229 # resulting binary.
9230 hardcode_direct=$hardcode_direct
9231
9232 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9233 # resulting binary.
9234 hardcode_minus_L=$hardcode_minus_L
9235
9236 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9237 # the resulting binary.
9238 hardcode_shlibpath_var=$hardcode_shlibpath_var
9239
9240 # Set to yes if building a shared library automatically hardcodes DIR into the library
9241 # and all subsequent libraries and executables linked against it.
9242 hardcode_automatic=$hardcode_automatic
9243
9244 # Variables whose values should be saved in libtool wrapper scripts and
9245 # restored at relink time.
9246 variables_saved_for_relink="$variables_saved_for_relink"
9247
9248 # Whether libtool must link a program against all its dependency libraries.
9249 link_all_deplibs=$link_all_deplibs
9250
9251 # Compile-time system search path for libraries
9252 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9253
9254 # Run-time system search path for libraries
9255 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9256
9257 # Fix the shell variable \$srcfile for the compiler.
9258 fix_srcfile_path="$fix_srcfile_path"
9259
9260 # Set to yes if exported symbols are required.
9261 always_export_symbols=$always_export_symbols
9262
9263 # The commands to list exported symbols.
9264 export_symbols_cmds=$lt_export_symbols_cmds
9265
9266 # The commands to extract the exported symbol list from a shared archive.
9267 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9268
9269 # Symbols that should not be listed in the preloaded symbols.
9270 exclude_expsyms=$lt_exclude_expsyms
9271
9272 # Symbols that must always be exported.
9273 include_expsyms=$lt_include_expsyms
9274
9275 # ### END LIBTOOL CONFIG
9276
9277 __EOF__
9278
9279
9280   case $host_os in
9281   aix3*)
9282     cat <<\EOF >> "$cfgfile"
9283
9284 # AIX sometimes has problems with the GCC collect2 program.  For some
9285 # reason, if we set the COLLECT_NAMES environment variable, the problems
9286 # vanish in a puff of smoke.
9287 if test "X${COLLECT_NAMES+set}" != Xset; then
9288   COLLECT_NAMES=
9289   export COLLECT_NAMES
9290 fi
9291 EOF
9292     ;;
9293   esac
9294
9295   # We use sed instead of cat because bash on DJGPP gets confused if
9296   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9297   # text mode, it properly converts lines to CR/LF.  This bash problem
9298   # is reportedly fixed, but why not run on old versions too?
9299   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9300
9301   mv -f "$cfgfile" "$ofile" || \
9302     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9303   chmod +x "$ofile"
9304
9305 else
9306   # If there is no Makefile yet, we rely on a make rule to execute
9307   # `config.status --recheck' to rerun these tests and create the
9308   # libtool script then.
9309   test -f Makefile && make "$ltmain"
9310 fi
9311
9312
9313 ac_ext=c
9314 ac_cpp='$CPP $CPPFLAGS'
9315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9318
9319 CC="$lt_save_CC"
9320
9321
9322 # Check whether --with-tags or --without-tags was given.
9323 if test "${with_tags+set}" = set; then
9324   withval="$with_tags"
9325   tagnames="$withval"
9326 fi;
9327
9328 if test -f "$ltmain" && test -n "$tagnames"; then
9329   if test ! -f "${ofile}"; then
9330     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9331 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9332   fi
9333
9334   if test -z "$LTCC"; then
9335     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9336     if test -z "$LTCC"; then
9337       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9338 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9339     else
9340       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9341 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9342     fi
9343   fi
9344
9345   # Extract list of available tagged configurations in $ofile.
9346   # Note that this assumes the entire list is on one line.
9347   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9348
9349   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9350   for tagname in $tagnames; do
9351     IFS="$lt_save_ifs"
9352     # Check whether tagname contains only valid characters
9353     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9354     "") ;;
9355     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9356 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9357    { (exit 1); exit 1; }; }
9358         ;;
9359     esac
9360
9361     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9362     then
9363       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9364 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9365    { (exit 1); exit 1; }; }
9366     fi
9367
9368     # Update the list of available tags.
9369     if test -n "$tagname"; then
9370       echo appending configuration tag \"$tagname\" to $ofile
9371
9372       case $tagname in
9373       CXX)
9374         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9375           ac_ext=cc
9376 ac_cpp='$CXXCPP $CPPFLAGS'
9377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9380
9381
9382
9383
9384 archive_cmds_need_lc_CXX=no
9385 allow_undefined_flag_CXX=
9386 always_export_symbols_CXX=no
9387 archive_expsym_cmds_CXX=
9388 export_dynamic_flag_spec_CXX=
9389 hardcode_direct_CXX=no
9390 hardcode_libdir_flag_spec_CXX=
9391 hardcode_libdir_flag_spec_ld_CXX=
9392 hardcode_libdir_separator_CXX=
9393 hardcode_minus_L_CXX=no
9394 hardcode_automatic_CXX=no
9395 module_cmds_CXX=
9396 module_expsym_cmds_CXX=
9397 link_all_deplibs_CXX=unknown
9398 old_archive_cmds_CXX=$old_archive_cmds
9399 no_undefined_flag_CXX=
9400 whole_archive_flag_spec_CXX=
9401 enable_shared_with_static_runtimes_CXX=no
9402
9403 # Dependencies to place before and after the object being linked:
9404 predep_objects_CXX=
9405 postdep_objects_CXX=
9406 predeps_CXX=
9407 postdeps_CXX=
9408 compiler_lib_search_path_CXX=
9409
9410 # Source file extension for C++ test sources.
9411 ac_ext=cc
9412
9413 # Object file extension for compiled C++ test sources.
9414 objext=o
9415 objext_CXX=$objext
9416
9417 # Code to be used in simple compile tests
9418 lt_simple_compile_test_code="int some_variable = 0;\n"
9419
9420 # Code to be used in simple link tests
9421 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9422
9423 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9424
9425 # If no C compiler was specified, use CC.
9426 LTCC=${LTCC-"$CC"}
9427
9428 # Allow CC to be a program name with arguments.
9429 compiler=$CC
9430
9431
9432 # Allow CC to be a program name with arguments.
9433 lt_save_CC=$CC
9434 lt_save_LD=$LD
9435 lt_save_GCC=$GCC
9436 GCC=$GXX
9437 lt_save_with_gnu_ld=$with_gnu_ld
9438 lt_save_path_LD=$lt_cv_path_LD
9439 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9440   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9441 else
9442   unset lt_cv_prog_gnu_ld
9443 fi
9444 if test -n "${lt_cv_path_LDCXX+set}"; then
9445   lt_cv_path_LD=$lt_cv_path_LDCXX
9446 else
9447   unset lt_cv_path_LD
9448 fi
9449 test -z "${LDCXX+set}" || LD=$LDCXX
9450 CC=${CXX-"c++"}
9451 compiler=$CC
9452 compiler_CXX=$CC
9453 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9454
9455 # We don't want -fno-exception wen compiling C++ code, so set the
9456 # no_builtin_flag separately
9457 if test "$GXX" = yes; then
9458   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9459 else
9460   lt_prog_compiler_no_builtin_flag_CXX=
9461 fi
9462
9463 if test "$GXX" = yes; then
9464   # Set up default GNU C++ configuration
9465
9466
9467 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9468 if test "${with_gnu_ld+set}" = set; then
9469   withval="$with_gnu_ld"
9470   test "$withval" = no || with_gnu_ld=yes
9471 else
9472   with_gnu_ld=no
9473 fi;
9474 ac_prog=ld
9475 if test "$GCC" = yes; then
9476   # Check if gcc -print-prog-name=ld gives a path.
9477   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9478 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9479   case $host in
9480   *-*-mingw*)
9481     # gcc leaves a trailing carriage return which upsets mingw
9482     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9483   *)
9484     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9485   esac
9486   case $ac_prog in
9487     # Accept absolute paths.
9488     [\\/]* | ?:[\\/]*)
9489       re_direlt='/[^/][^/]*/\.\./'
9490       # Canonicalize the path of ld
9491       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9492       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9493         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9494       done
9495       test -z "$LD" && LD="$ac_prog"
9496       ;;
9497   "")
9498     # If it fails, then pretend we aren't using GCC.
9499     ac_prog=ld
9500     ;;
9501   *)
9502     # If it is relative, then search for the first ld in PATH.
9503     with_gnu_ld=unknown
9504     ;;
9505   esac
9506 elif test "$with_gnu_ld" = yes; then
9507   echo "$as_me:$LINENO: checking for GNU ld" >&5
9508 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9509 else
9510   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9511 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9512 fi
9513 if test "${lt_cv_path_LD+set}" = set; then
9514   echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516   if test -z "$LD"; then
9517   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9518   for ac_dir in $PATH; do
9519     IFS="$lt_save_ifs"
9520     test -z "$ac_dir" && ac_dir=.
9521     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9522       lt_cv_path_LD="$ac_dir/$ac_prog"
9523       # Check to see if the program is GNU ld.  I'd rather use --version,
9524       # but apparently some GNU ld's only accept -v.
9525       # Break only if it was the GNU/non-GNU ld that we prefer.
9526       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9527       *GNU* | *'with BFD'*)
9528         test "$with_gnu_ld" != no && break
9529         ;;
9530       *)
9531         test "$with_gnu_ld" != yes && break
9532         ;;
9533       esac
9534     fi
9535   done
9536   IFS="$lt_save_ifs"
9537 else
9538   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9539 fi
9540 fi
9541
9542 LD="$lt_cv_path_LD"
9543 if test -n "$LD"; then
9544   echo "$as_me:$LINENO: result: $LD" >&5
9545 echo "${ECHO_T}$LD" >&6
9546 else
9547   echo "$as_me:$LINENO: result: no" >&5
9548 echo "${ECHO_T}no" >&6
9549 fi
9550 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9551 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9552    { (exit 1); exit 1; }; }
9553 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9554 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9555 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9556   echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9559 case `"$LD" -v 2>&1 </dev/null` in
9560 *GNU* | *'with BFD'*)
9561   lt_cv_prog_gnu_ld=yes
9562   ;;
9563 *)
9564   lt_cv_prog_gnu_ld=no
9565   ;;
9566 esac
9567 fi
9568 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9569 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9570 with_gnu_ld=$lt_cv_prog_gnu_ld
9571
9572
9573
9574   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9575   # archiving commands below assume that GNU ld is being used.
9576   if test "$with_gnu_ld" = yes; then
9577     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578     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'
9579
9580     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9581     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9582
9583     # If archive_cmds runs LD, not CC, wlarc should be empty
9584     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9585     #     investigate it a little bit more. (MM)
9586     wlarc='${wl}'
9587
9588     # ancient GNU ld didn't support --whole-archive et. al.
9589     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9590         grep 'no-whole-archive' > /dev/null; then
9591       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9592     else
9593       whole_archive_flag_spec_CXX=
9594     fi
9595   else
9596     with_gnu_ld=no
9597     wlarc=
9598
9599     # A generic and very simple default shared library creation
9600     # command for GNU C++ for the case where it uses the native
9601     # linker, instead of GNU ld.  If possible, this setting should
9602     # overridden to take advantage of the native linker features on
9603     # the platform it is being used on.
9604     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9605   fi
9606
9607   # Commands to make compiler produce verbose output that lists
9608   # what "hidden" libraries, object files and flags are used when
9609   # linking a shared library.
9610   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9611
9612 else
9613   GXX=no
9614   with_gnu_ld=no
9615   wlarc=
9616 fi
9617
9618 # PORTME: fill in a description of your system's C++ link characteristics
9619 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9620 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9621 ld_shlibs_CXX=yes
9622 case $host_os in
9623   aix3*)
9624     # FIXME: insert proper C++ library support
9625     ld_shlibs_CXX=no
9626     ;;
9627   aix4* | aix5*)
9628     if test "$host_cpu" = ia64; then
9629       # On IA64, the linker does run time linking by default, so we don't
9630       # have to do anything special.
9631       aix_use_runtimelinking=no
9632       exp_sym_flag='-Bexport'
9633       no_entry_flag=""
9634     else
9635       aix_use_runtimelinking=no
9636
9637       # Test if we are trying to use run time linking or normal
9638       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9639       # need to do runtime linking.
9640       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9641         for ld_flag in $LDFLAGS; do
9642           case $ld_flag in
9643           *-brtl*)
9644             aix_use_runtimelinking=yes
9645             break
9646             ;;
9647           esac
9648         done
9649       esac
9650
9651       exp_sym_flag='-bexport'
9652       no_entry_flag='-bnoentry'
9653     fi
9654
9655     # When large executables or shared objects are built, AIX ld can
9656     # have problems creating the table of contents.  If linking a library
9657     # or program results in "error TOC overflow" add -mminimal-toc to
9658     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9659     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9660
9661     archive_cmds_CXX=''
9662     hardcode_direct_CXX=yes
9663     hardcode_libdir_separator_CXX=':'
9664     link_all_deplibs_CXX=yes
9665
9666     if test "$GXX" = yes; then
9667       case $host_os in aix4.012|aix4.012.*)
9668       # We only want to do this on AIX 4.2 and lower, the check
9669       # below for broken collect2 doesn't work under 4.3+
9670         collect2name=`${CC} -print-prog-name=collect2`
9671         if test -f "$collect2name" && \
9672            strings "$collect2name" | grep resolve_lib_name >/dev/null
9673         then
9674           # We have reworked collect2
9675           hardcode_direct_CXX=yes
9676         else
9677           # We have old collect2
9678           hardcode_direct_CXX=unsupported
9679           # It fails to find uninstalled libraries when the uninstalled
9680           # path is not listed in the libpath.  Setting hardcode_minus_L
9681           # to unsupported forces relinking
9682           hardcode_minus_L_CXX=yes
9683           hardcode_libdir_flag_spec_CXX='-L$libdir'
9684           hardcode_libdir_separator_CXX=
9685         fi
9686       esac
9687       shared_flag='-shared'
9688     else
9689       # not using gcc
9690       if test "$host_cpu" = ia64; then
9691         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9692         # chokes on -Wl,-G. The following line is correct:
9693         shared_flag='-G'
9694       else
9695         if test "$aix_use_runtimelinking" = yes; then
9696           shared_flag='${wl}-G'
9697         else
9698           shared_flag='${wl}-bM:SRE'
9699         fi
9700       fi
9701     fi
9702
9703     # It seems that -bexpall does not export symbols beginning with
9704     # underscore (_), so it is better to generate a list of symbols to export.
9705     always_export_symbols_CXX=yes
9706     if test "$aix_use_runtimelinking" = yes; then
9707       # Warning - without using the other runtime loading flags (-brtl),
9708       # -berok will link without error, but may produce a broken library.
9709       allow_undefined_flag_CXX='-berok'
9710       # Determine the default libpath from the value encoded in an empty executable.
9711       cat >conftest.$ac_ext <<_ACEOF
9712 #line $LINENO "configure"
9713 /* confdefs.h.  */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h.  */
9718
9719 int
9720 main ()
9721 {
9722
9723   ;
9724   return 0;
9725 }
9726 _ACEOF
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729   (eval $ac_link) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); } &&
9733          { ac_try='test -s conftest$ac_exeext'
9734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735   (eval $ac_try) 2>&5
9736   ac_status=$?
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); }; }; then
9739
9740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9741 }'`
9742 # Check for a 64-bit object if we didn't find anything.
9743 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; }
9744 }'`; fi
9745 else
9746   echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9748
9749 fi
9750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9752
9753       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9754
9755       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"
9756      else
9757       if test "$host_cpu" = ia64; then
9758         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9759         allow_undefined_flag_CXX="-z nodefs"
9760         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"
9761       else
9762         # Determine the default libpath from the value encoded in an empty executable.
9763         cat >conftest.$ac_ext <<_ACEOF
9764 #line $LINENO "configure"
9765 /* confdefs.h.  */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h.  */
9770
9771 int
9772 main ()
9773 {
9774
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781   (eval $ac_link) 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } &&
9785          { ac_try='test -s conftest$ac_exeext'
9786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787   (eval $ac_try) 2>&5
9788   ac_status=$?
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); }; }; then
9791
9792 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9793 }'`
9794 # Check for a 64-bit object if we didn't find anything.
9795 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; }
9796 }'`; fi
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801 fi
9802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9804
9805         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9806         # Warning - without using the other run time loading flags,
9807         # -berok will link without error, but may produce a broken library.
9808         no_undefined_flag_CXX=' ${wl}-bernotok'
9809         allow_undefined_flag_CXX=' ${wl}-berok'
9810         # -bexpall does not export symbols beginning with underscore (_)
9811         always_export_symbols_CXX=yes
9812         # Exported symbols can be pulled into shared objects from archives
9813         whole_archive_flag_spec_CXX=' '
9814         archive_cmds_need_lc_CXX=yes
9815         # This is similar to how AIX traditionally builds it's shared libraries.
9816         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'
9817       fi
9818     fi
9819     ;;
9820   chorus*)
9821     case $cc_basename in
9822       *)
9823         # FIXME: insert proper C++ library support
9824         ld_shlibs_CXX=no
9825         ;;
9826     esac
9827     ;;
9828
9829   cygwin* | mingw* | pw32*)
9830     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9831     # as there is no search path for DLLs.
9832     hardcode_libdir_flag_spec_CXX='-L$libdir'
9833     allow_undefined_flag_CXX=unsupported
9834     always_export_symbols_CXX=no
9835     enable_shared_with_static_runtimes_CXX=yes
9836
9837     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9838       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'
9839       # If the export-symbols file already is a .def file (1st line
9840       # is EXPORTS), use it as is; otherwise, prepend...
9841       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9842         cp $export_symbols $output_objdir/$soname.def;
9843       else
9844         echo EXPORTS > $output_objdir/$soname.def;
9845         cat $export_symbols >> $output_objdir/$soname.def;
9846       fi~
9847       $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'
9848     else
9849       ld_shlibs_CXX=no
9850     fi
9851   ;;
9852
9853   darwin* | rhapsody*)
9854    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9855     archive_cmds_need_lc_CXX=no
9856     case "$host_os" in
9857     rhapsody* | darwin1.[012])
9858       allow_undefined_flag_CXX='-undefined suppress'
9859       ;;
9860     *) # Darwin 1.3 on
9861       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9862       ;;
9863     esac
9864         lt_int_apple_cc_single_mod=no
9865         output_verbose_link_cmd='echo'
9866         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9867           lt_int_apple_cc_single_mod=yes
9868         fi
9869         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9870           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9871         else
9872         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'
9873       fi
9874       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9875
9876     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9877       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9878         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}'
9879       else
9880         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}'
9881       fi
9882         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}'
9883     hardcode_direct_CXX=no
9884     hardcode_automatic_CXX=yes
9885     hardcode_shlibpath_var_CXX=unsupported
9886     whole_archive_flag_spec_CXX='-all_load $convenience'
9887     link_all_deplibs_CXX=yes
9888    fi
9889     ;;
9890
9891   dgux*)
9892     case $cc_basename in
9893       ec++)
9894         # FIXME: insert proper C++ library support
9895         ld_shlibs_CXX=no
9896         ;;
9897       ghcx)
9898         # Green Hills C++ Compiler
9899         # FIXME: insert proper C++ library support
9900         ld_shlibs_CXX=no
9901         ;;
9902       *)
9903         # FIXME: insert proper C++ library support
9904         ld_shlibs_CXX=no
9905         ;;
9906     esac
9907     ;;
9908   freebsd12*)
9909     # C++ shared libraries reported to be fairly broken before switch to ELF
9910     ld_shlibs_CXX=no
9911     ;;
9912   freebsd-elf*)
9913     archive_cmds_need_lc_CXX=no
9914     ;;
9915   freebsd*)
9916     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9917     # conventions
9918     ld_shlibs_CXX=yes
9919     ;;
9920   gnu*)
9921     ;;
9922   hpux9*)
9923     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9924     hardcode_libdir_separator_CXX=:
9925     export_dynamic_flag_spec_CXX='${wl}-E'
9926     hardcode_direct_CXX=yes
9927     hardcode_minus_L_CXX=yes # Not in the search PATH,
9928                                 # but as the default
9929                                 # location of the library.
9930
9931     case $cc_basename in
9932     CC)
9933       # FIXME: insert proper C++ library support
9934       ld_shlibs_CXX=no
9935       ;;
9936     aCC)
9937       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'
9938       # Commands to make compiler produce verbose output that lists
9939       # what "hidden" libraries, object files and flags are used when
9940       # linking a shared library.
9941       #
9942       # There doesn't appear to be a way to prevent this compiler from
9943       # explicitly linking system object files so we need to strip them
9944       # from the output so that they don't get included in the library
9945       # dependencies.
9946       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'
9947       ;;
9948     *)
9949       if test "$GXX" = yes; then
9950         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'
9951       else
9952         # FIXME: insert proper C++ library support
9953         ld_shlibs_CXX=no
9954       fi
9955       ;;
9956     esac
9957     ;;
9958   hpux10*|hpux11*)
9959     if test $with_gnu_ld = no; then
9960       case "$host_cpu" in
9961       hppa*64*)
9962         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9963         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9964         hardcode_libdir_separator_CXX=:
9965         ;;
9966       ia64*)
9967         hardcode_libdir_flag_spec_CXX='-L$libdir'
9968         ;;
9969       *)
9970         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9971         hardcode_libdir_separator_CXX=:
9972         export_dynamic_flag_spec_CXX='${wl}-E'
9973         ;;
9974       esac
9975     fi
9976     case "$host_cpu" in
9977     hppa*64*)
9978       hardcode_direct_CXX=no
9979       hardcode_shlibpath_var_CXX=no
9980       ;;
9981     ia64*)
9982       hardcode_direct_CXX=no
9983       hardcode_shlibpath_var_CXX=no
9984       hardcode_minus_L_CXX=yes # Not in the search PATH,
9985                                               # but as the default
9986                                               # location of the library.
9987       ;;
9988     *)
9989       hardcode_direct_CXX=yes
9990       hardcode_minus_L_CXX=yes # Not in the search PATH,
9991                                               # but as the default
9992                                               # location of the library.
9993       ;;
9994     esac
9995
9996     case $cc_basename in
9997       CC)
9998         # FIXME: insert proper C++ library support
9999         ld_shlibs_CXX=no
10000         ;;
10001       aCC)
10002         case "$host_cpu" in
10003         hppa*64*|ia64*)
10004           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10005           ;;
10006         *)
10007           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10008           ;;
10009         esac
10010         # Commands to make compiler produce verbose output that lists
10011         # what "hidden" libraries, object files and flags are used when
10012         # linking a shared library.
10013         #
10014         # There doesn't appear to be a way to prevent this compiler from
10015         # explicitly linking system object files so we need to strip them
10016         # from the output so that they don't get included in the library
10017         # dependencies.
10018         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'
10019         ;;
10020       *)
10021         if test "$GXX" = yes; then
10022           if test $with_gnu_ld = no; then
10023             case "$host_cpu" in
10024             ia64*|hppa*64*)
10025               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10026               ;;
10027             *)
10028               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'
10029               ;;
10030             esac
10031           fi
10032         else
10033           # FIXME: insert proper C++ library support
10034           ld_shlibs_CXX=no
10035         fi
10036         ;;
10037     esac
10038     ;;
10039   irix5* | irix6*)
10040     case $cc_basename in
10041       CC)
10042         # SGI C++
10043         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'
10044
10045         # Archives containing C++ object files must be created using
10046         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10047         # necessary to make sure instantiated templates are included
10048         # in the archive.
10049         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10050         ;;
10051       *)
10052         if test "$GXX" = yes; then
10053           if test "$with_gnu_ld" = no; then
10054             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'
10055           else
10056             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'
10057           fi
10058         fi
10059         link_all_deplibs_CXX=yes
10060         ;;
10061     esac
10062     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10063     hardcode_libdir_separator_CXX=:
10064     ;;
10065   linux*)
10066     case $cc_basename in
10067       KCC)
10068         # Kuck and Associates, Inc. (KAI) C++ Compiler
10069
10070         # KCC will only create a shared library if the output file
10071         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10072         # to its proper name (with version) after linking.
10073         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'
10074         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'
10075         # Commands to make compiler produce verbose output that lists
10076         # what "hidden" libraries, object files and flags are used when
10077         # linking a shared library.
10078         #
10079         # There doesn't appear to be a way to prevent this compiler from
10080         # explicitly linking system object files so we need to strip them
10081         # from the output so that they don't get included in the library
10082         # dependencies.
10083         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'
10084
10085         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10086         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10087
10088         # Archives containing C++ object files must be created using
10089         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10090         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10091         ;;
10092       icpc)
10093         # Intel C++
10094         with_gnu_ld=yes
10095         archive_cmds_need_lc_CXX=no
10096         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10097         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'
10098         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10099         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10100         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10101         ;;
10102       cxx)
10103         # Compaq C++
10104         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105         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'
10106
10107         runpath_var=LD_RUN_PATH
10108         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10109         hardcode_libdir_separator_CXX=:
10110
10111         # Commands to make compiler produce verbose output that lists
10112         # what "hidden" libraries, object files and flags are used when
10113         # linking a shared library.
10114         #
10115         # There doesn't appear to be a way to prevent this compiler from
10116         # explicitly linking system object files so we need to strip them
10117         # from the output so that they don't get included in the library
10118         # dependencies.
10119         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'
10120         ;;
10121     esac
10122     ;;
10123   lynxos*)
10124     # FIXME: insert proper C++ library support
10125     ld_shlibs_CXX=no
10126     ;;
10127   m88k*)
10128     # FIXME: insert proper C++ library support
10129     ld_shlibs_CXX=no
10130     ;;
10131   mvs*)
10132     case $cc_basename in
10133       cxx)
10134         # FIXME: insert proper C++ library support
10135         ld_shlibs_CXX=no
10136         ;;
10137       *)
10138         # FIXME: insert proper C++ library support
10139         ld_shlibs_CXX=no
10140         ;;
10141     esac
10142     ;;
10143   netbsd*)
10144     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10145       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10146       wlarc=
10147       hardcode_libdir_flag_spec_CXX='-R$libdir'
10148       hardcode_direct_CXX=yes
10149       hardcode_shlibpath_var_CXX=no
10150     fi
10151     # Workaround some broken pre-1.5 toolchains
10152     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10153     ;;
10154   osf3*)
10155     case $cc_basename in
10156       KCC)
10157         # Kuck and Associates, Inc. (KAI) C++ Compiler
10158
10159         # KCC will only create a shared library if the output file
10160         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10161         # to its proper name (with version) after linking.
10162         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'
10163
10164         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10165         hardcode_libdir_separator_CXX=:
10166
10167         # Archives containing C++ object files must be created using
10168         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10169         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10170
10171         ;;
10172       RCC)
10173         # Rational C++ 2.4.1
10174         # FIXME: insert proper C++ library support
10175         ld_shlibs_CXX=no
10176         ;;
10177       cxx)
10178         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10179         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'
10180
10181         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10182         hardcode_libdir_separator_CXX=:
10183
10184         # Commands to make compiler produce verbose output that lists
10185         # what "hidden" libraries, object files and flags are used when
10186         # linking a shared library.
10187         #
10188         # There doesn't appear to be a way to prevent this compiler from
10189         # explicitly linking system object files so we need to strip them
10190         # from the output so that they don't get included in the library
10191         # dependencies.
10192         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'
10193         ;;
10194       *)
10195         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10196           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10197           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'
10198
10199           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10200           hardcode_libdir_separator_CXX=:
10201
10202           # Commands to make compiler produce verbose output that lists
10203           # what "hidden" libraries, object files and flags are used when
10204           # linking a shared library.
10205           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10206
10207         else
10208           # FIXME: insert proper C++ library support
10209           ld_shlibs_CXX=no
10210         fi
10211         ;;
10212     esac
10213     ;;
10214   osf4* | osf5*)
10215     case $cc_basename in
10216       KCC)
10217         # Kuck and Associates, Inc. (KAI) C++ Compiler
10218
10219         # KCC will only create a shared library if the output file
10220         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10221         # to its proper name (with version) after linking.
10222         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'
10223
10224         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10225         hardcode_libdir_separator_CXX=:
10226
10227         # Archives containing C++ object files must be created using
10228         # the KAI C++ compiler.
10229         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10230         ;;
10231       RCC)
10232         # Rational C++ 2.4.1
10233         # FIXME: insert proper C++ library support
10234         ld_shlibs_CXX=no
10235         ;;
10236       cxx)
10237         allow_undefined_flag_CXX=' -expect_unresolved \*'
10238         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'
10239         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10240           echo "-hidden">> $lib.exp~
10241           $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~
10242           $rm $lib.exp'
10243
10244         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10245         hardcode_libdir_separator_CXX=:
10246
10247         # Commands to make compiler produce verbose output that lists
10248         # what "hidden" libraries, object files and flags are used when
10249         # linking a shared library.
10250         #
10251         # There doesn't appear to be a way to prevent this compiler from
10252         # explicitly linking system object files so we need to strip them
10253         # from the output so that they don't get included in the library
10254         # dependencies.
10255         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'
10256         ;;
10257       *)
10258         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10259           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10260          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'
10261
10262           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10263           hardcode_libdir_separator_CXX=:
10264
10265           # Commands to make compiler produce verbose output that lists
10266           # what "hidden" libraries, object files and flags are used when
10267           # linking a shared library.
10268           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10269
10270         else
10271           # FIXME: insert proper C++ library support
10272           ld_shlibs_CXX=no
10273         fi
10274         ;;
10275     esac
10276     ;;
10277   psos*)
10278     # FIXME: insert proper C++ library support
10279     ld_shlibs_CXX=no
10280     ;;
10281   sco*)
10282     archive_cmds_need_lc_CXX=no
10283     case $cc_basename in
10284       CC)
10285         # FIXME: insert proper C++ library support
10286         ld_shlibs_CXX=no
10287         ;;
10288       *)
10289         # FIXME: insert proper C++ library support
10290         ld_shlibs_CXX=no
10291         ;;
10292     esac
10293     ;;
10294   sunos4*)
10295     case $cc_basename in
10296       CC)
10297         # Sun C++ 4.x
10298         # FIXME: insert proper C++ library support
10299         ld_shlibs_CXX=no
10300         ;;
10301       lcc)
10302         # Lucid
10303         # FIXME: insert proper C++ library support
10304         ld_shlibs_CXX=no
10305         ;;
10306       *)
10307         # FIXME: insert proper C++ library support
10308         ld_shlibs_CXX=no
10309         ;;
10310     esac
10311     ;;
10312   solaris*)
10313     case $cc_basename in
10314       CC)
10315         # Sun C++ 4.2, 5.x and Centerline C++
10316         no_undefined_flag_CXX=' -zdefs'
10317         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10318         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10319         $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'
10320
10321         hardcode_libdir_flag_spec_CXX='-R$libdir'
10322         hardcode_shlibpath_var_CXX=no
10323         case $host_os in
10324           solaris2.0-5 | solaris2.0-5.*) ;;
10325           *)
10326             # The C++ compiler is used as linker so we must use $wl
10327             # flag to pass the commands to the underlying system
10328             # linker.
10329             # Supported since Solaris 2.6 (maybe 2.5.1?)
10330             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10331             ;;
10332         esac
10333         link_all_deplibs_CXX=yes
10334
10335         # Commands to make compiler produce verbose output that lists
10336         # what "hidden" libraries, object files and flags are used when
10337         # linking a shared library.
10338         #
10339         # There doesn't appear to be a way to prevent this compiler from
10340         # explicitly linking system object files so we need to strip them
10341         # from the output so that they don't get included in the library
10342         # dependencies.
10343         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'
10344
10345         # Archives containing C++ object files must be created using
10346         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10347         # necessary to make sure instantiated templates are included
10348         # in the archive.
10349         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10350         ;;
10351       gcx)
10352         # Green Hills C++ Compiler
10353         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10354
10355         # The C++ compiler must be used to create the archive.
10356         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10357         ;;
10358       *)
10359         # GNU C++ compiler with Solaris linker
10360         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10361           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10362           if $CC --version | grep -v '^2\.7' > /dev/null; then
10363             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10364             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10365                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10366
10367             # Commands to make compiler produce verbose output that lists
10368             # what "hidden" libraries, object files and flags are used when
10369             # linking a shared library.
10370             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10371           else
10372             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10373             # platform.
10374             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10375             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10376                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10377
10378             # Commands to make compiler produce verbose output that lists
10379             # what "hidden" libraries, object files and flags are used when
10380             # linking a shared library.
10381             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10382           fi
10383
10384           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10385         fi
10386         ;;
10387     esac
10388     ;;
10389   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10390     archive_cmds_need_lc_CXX=no
10391     ;;
10392   tandem*)
10393     case $cc_basename in
10394       NCC)
10395         # NonStop-UX NCC 3.20
10396         # FIXME: insert proper C++ library support
10397         ld_shlibs_CXX=no
10398         ;;
10399       *)
10400         # FIXME: insert proper C++ library support
10401         ld_shlibs_CXX=no
10402         ;;
10403     esac
10404     ;;
10405   vxworks*)
10406     # FIXME: insert proper C++ library support
10407     ld_shlibs_CXX=no
10408     ;;
10409   *)
10410     # FIXME: insert proper C++ library support
10411     ld_shlibs_CXX=no
10412     ;;
10413 esac
10414 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10415 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10416 test "$ld_shlibs_CXX" = no && can_build_shared=no
10417
10418 GCC_CXX="$GXX"
10419 LD_CXX="$LD"
10420
10421 ## CAVEAT EMPTOR:
10422 ## There is no encapsulation within the following macros, do not change
10423 ## the running order or otherwise move them around unless you know exactly
10424 ## what you are doing...
10425
10426 cat > conftest.$ac_ext <<EOF
10427 class Foo
10428 {
10429 public:
10430   Foo (void) { a = 0; }
10431 private:
10432   int a;
10433 };
10434 EOF
10435
10436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10437   (eval $ac_compile) 2>&5
10438   ac_status=$?
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); }; then
10441   # Parse the compiler output and extract the necessary
10442   # objects, libraries and library flags.
10443
10444   # Sentinel used to keep track of whether or not we are before
10445   # the conftest object file.
10446   pre_test_object_deps_done=no
10447
10448   # The `*' in the case matches for architectures that use `case' in
10449   # $output_verbose_cmd can trigger glob expansion during the loop
10450   # eval without this substitution.
10451   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10452
10453   for p in `eval $output_verbose_link_cmd`; do
10454     case $p in
10455
10456     -L* | -R* | -l*)
10457        # Some compilers place space between "-{L,R}" and the path.
10458        # Remove the space.
10459        if test $p = "-L" \
10460           || test $p = "-R"; then
10461          prev=$p
10462          continue
10463        else
10464          prev=
10465        fi
10466
10467        if test "$pre_test_object_deps_done" = no; then
10468          case $p in
10469          -L* | -R*)
10470            # Internal compiler library paths should come after those
10471            # provided the user.  The postdeps already come after the
10472            # user supplied libs so there is no need to process them.
10473            if test -z "$compiler_lib_search_path_CXX"; then
10474              compiler_lib_search_path_CXX="${prev}${p}"
10475            else
10476              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10477            fi
10478            ;;
10479          # The "-l" case would never come before the object being
10480          # linked, so don't bother handling this case.
10481          esac
10482        else
10483          if test -z "$postdeps_CXX"; then
10484            postdeps_CXX="${prev}${p}"
10485          else
10486            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10487          fi
10488        fi
10489        ;;
10490
10491     *.$objext)
10492        # This assumes that the test object file only shows up
10493        # once in the compiler output.
10494        if test "$p" = "conftest.$objext"; then
10495          pre_test_object_deps_done=yes
10496          continue
10497        fi
10498
10499        if test "$pre_test_object_deps_done" = no; then
10500          if test -z "$predep_objects_CXX"; then
10501            predep_objects_CXX="$p"
10502          else
10503            predep_objects_CXX="$predep_objects_CXX $p"
10504          fi
10505        else
10506          if test -z "$postdep_objects_CXX"; then
10507            postdep_objects_CXX="$p"
10508          else
10509            postdep_objects_CXX="$postdep_objects_CXX $p"
10510          fi
10511        fi
10512        ;;
10513
10514     *) ;; # Ignore the rest.
10515
10516     esac
10517   done
10518
10519   # Clean up.
10520   rm -f a.out a.exe
10521 else
10522   echo "libtool.m4: error: problem compiling CXX test program"
10523 fi
10524
10525 $rm -f confest.$objext
10526
10527 case " $postdeps_CXX " in
10528 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10529 esac
10530
10531 lt_prog_compiler_wl_CXX=
10532 lt_prog_compiler_pic_CXX=
10533 lt_prog_compiler_static_CXX=
10534
10535 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10536 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10537
10538   # C++ specific cases for pic, static, wl, etc.
10539   if test "$GXX" = yes; then
10540     lt_prog_compiler_wl_CXX='-Wl,'
10541     lt_prog_compiler_static_CXX='-static'
10542
10543     case $host_os in
10544     aix*)
10545       # All AIX code is PIC.
10546       if test "$host_cpu" = ia64; then
10547         # AIX 5 now supports IA64 processor
10548         lt_prog_compiler_static_CXX='-Bstatic'
10549       fi
10550       ;;
10551     amigaos*)
10552       # FIXME: we need at least 68020 code to build shared libraries, but
10553       # adding the `-m68020' flag to GCC prevents building anything better,
10554       # like `-m68040'.
10555       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10556       ;;
10557     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10558       # PIC is the default for these OSes.
10559       ;;
10560     mingw* | os2* | pw32*)
10561       # This hack is so that the source file can tell whether it is being
10562       # built for inclusion in a dll (and should export symbols for example).
10563       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10564       ;;
10565     darwin* | rhapsody*)
10566       # PIC is the default on this platform
10567       # Common symbols not allowed in MH_DYLIB files
10568       lt_prog_compiler_pic_CXX='-fno-common'
10569       ;;
10570     *djgpp*)
10571       # DJGPP does not support shared libraries at all
10572       lt_prog_compiler_pic_CXX=
10573       ;;
10574     sysv4*MP*)
10575       if test -d /usr/nec; then
10576         lt_prog_compiler_pic_CXX=-Kconform_pic
10577       fi
10578       ;;
10579     hpux*)
10580       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10581       # not for PA HP-UX.
10582       case "$host_cpu" in
10583       hppa*64*|ia64*)
10584         ;;
10585       *)
10586         lt_prog_compiler_pic_CXX='-fPIC'
10587         ;;
10588       esac
10589       ;;
10590     *)
10591       lt_prog_compiler_pic_CXX='-fPIC'
10592       ;;
10593     esac
10594   else
10595     case $host_os in
10596       aix4* | aix5*)
10597         # All AIX code is PIC.
10598         if test "$host_cpu" = ia64; then
10599           # AIX 5 now supports IA64 processor
10600           lt_prog_compiler_static_CXX='-Bstatic'
10601         else
10602           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10603         fi
10604         ;;
10605       chorus*)
10606         case $cc_basename in
10607         cxch68)
10608           # Green Hills C++ Compiler
10609           # _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"
10610           ;;
10611         esac
10612         ;;
10613       dgux*)
10614         case $cc_basename in
10615           ec++)
10616             lt_prog_compiler_pic_CXX='-KPIC'
10617             ;;
10618           ghcx)
10619             # Green Hills C++ Compiler
10620             lt_prog_compiler_pic_CXX='-pic'
10621             ;;
10622           *)
10623             ;;
10624         esac
10625         ;;
10626       freebsd*)
10627         # FreeBSD uses GNU C++
10628         ;;
10629       hpux9* | hpux10* | hpux11*)
10630         case $cc_basename in
10631           CC)
10632             lt_prog_compiler_wl_CXX='-Wl,'
10633             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10634             if test "$host_cpu" != ia64; then
10635               lt_prog_compiler_pic_CXX='+Z'
10636             fi
10637             ;;
10638           aCC)
10639             lt_prog_compiler_wl_CXX='-Wl,'
10640             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10641             case "$host_cpu" in
10642             hppa*64*|ia64*)
10643               # +Z the default
10644               ;;
10645             *)
10646               lt_prog_compiler_pic_CXX='+Z'
10647               ;;
10648             esac
10649             ;;
10650           *)
10651             ;;
10652         esac
10653         ;;
10654       irix5* | irix6* | nonstopux*)
10655         case $cc_basename in
10656           CC)
10657             lt_prog_compiler_wl_CXX='-Wl,'
10658             lt_prog_compiler_static_CXX='-non_shared'
10659             # CC pic flag -KPIC is the default.
10660             ;;
10661           *)
10662             ;;
10663         esac
10664         ;;
10665       linux*)
10666         case $cc_basename in
10667           KCC)
10668             # KAI C++ Compiler
10669             lt_prog_compiler_wl_CXX='--backend -Wl,'
10670             lt_prog_compiler_pic_CXX='-fPIC'
10671             ;;
10672           icpc)
10673             # Intel C++
10674             lt_prog_compiler_wl_CXX='-Wl,'
10675             lt_prog_compiler_pic_CXX='-KPIC'
10676             lt_prog_compiler_static_CXX='-static'
10677             ;;
10678           cxx)
10679             # Compaq C++
10680             # Make sure the PIC flag is empty.  It appears that all Alpha
10681             # Linux and Compaq Tru64 Unix objects are PIC.
10682             lt_prog_compiler_pic_CXX=
10683             lt_prog_compiler_static_CXX='-non_shared'
10684             ;;
10685           *)
10686             ;;
10687         esac
10688         ;;
10689       lynxos*)
10690         ;;
10691       m88k*)
10692         ;;
10693       mvs*)
10694         case $cc_basename in
10695           cxx)
10696             lt_prog_compiler_pic_CXX='-W c,exportall'
10697             ;;
10698           *)
10699             ;;
10700         esac
10701         ;;
10702       netbsd*)
10703         ;;
10704       osf3* | osf4* | osf5*)
10705         case $cc_basename in
10706           KCC)
10707             lt_prog_compiler_wl_CXX='--backend -Wl,'
10708             ;;
10709           RCC)
10710             # Rational C++ 2.4.1
10711             lt_prog_compiler_pic_CXX='-pic'
10712             ;;
10713           cxx)
10714             # Digital/Compaq C++
10715             lt_prog_compiler_wl_CXX='-Wl,'
10716             # Make sure the PIC flag is empty.  It appears that all Alpha
10717             # Linux and Compaq Tru64 Unix objects are PIC.
10718             lt_prog_compiler_pic_CXX=
10719             lt_prog_compiler_static_CXX='-non_shared'
10720             ;;
10721           *)
10722             ;;
10723         esac
10724         ;;
10725       psos*)
10726         ;;
10727       sco*)
10728         case $cc_basename in
10729           CC)
10730             lt_prog_compiler_pic_CXX='-fPIC'
10731             ;;
10732           *)
10733             ;;
10734         esac
10735         ;;
10736       solaris*)
10737         case $cc_basename in
10738           CC)
10739             # Sun C++ 4.2, 5.x and Centerline C++
10740             lt_prog_compiler_pic_CXX='-KPIC'
10741             lt_prog_compiler_static_CXX='-Bstatic'
10742             lt_prog_compiler_wl_CXX='-Qoption ld '
10743             ;;
10744           gcx)
10745             # Green Hills C++ Compiler
10746             lt_prog_compiler_pic_CXX='-PIC'
10747             ;;
10748           *)
10749             ;;
10750         esac
10751         ;;
10752       sunos4*)
10753         case $cc_basename in
10754           CC)
10755             # Sun C++ 4.x
10756             lt_prog_compiler_pic_CXX='-pic'
10757             lt_prog_compiler_static_CXX='-Bstatic'
10758             ;;
10759           lcc)
10760             # Lucid
10761             lt_prog_compiler_pic_CXX='-pic'
10762             ;;
10763           *)
10764             ;;
10765         esac
10766         ;;
10767       tandem*)
10768         case $cc_basename in
10769           NCC)
10770             # NonStop-UX NCC 3.20
10771             lt_prog_compiler_pic_CXX='-KPIC'
10772             ;;
10773           *)
10774             ;;
10775         esac
10776         ;;
10777       unixware*)
10778         ;;
10779       vxworks*)
10780         ;;
10781       *)
10782         lt_prog_compiler_can_build_shared_CXX=no
10783         ;;
10784     esac
10785   fi
10786
10787 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10788 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10789
10790 #
10791 # Check to make sure the PIC flag actually works.
10792 #
10793 if test -n "$lt_prog_compiler_pic_CXX"; then
10794   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10795 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10796 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10797   echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799   lt_prog_compiler_pic_works_CXX=no
10800   ac_outfile=conftest.$ac_objext
10801    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10802    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10803    # Insert the option either (1) after the last *FLAGS variable, or
10804    # (2) before a word containing "conftest.", or (3) at the end.
10805    # Note that $ac_compile itself does not contain backslashes and begins
10806    # with a dollar sign (not a hyphen), so the echo should work correctly.
10807    # The option is referenced via a variable to avoid confusing sed.
10808    lt_compile=`echo "$ac_compile" | $SED \
10809    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10810    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10811    -e 's:$: $lt_compiler_flag:'`
10812    (eval echo "\"\$as_me:10812: $lt_compile\"" >&5)
10813    (eval "$lt_compile" 2>conftest.err)
10814    ac_status=$?
10815    cat conftest.err >&5
10816    echo "$as_me:10816: \$? = $ac_status" >&5
10817    if (exit $ac_status) && test -s "$ac_outfile"; then
10818      # The compiler can only warn and ignore the option if not recognized
10819      # So say no if there are warnings
10820      if test ! -s conftest.err; then
10821        lt_prog_compiler_pic_works_CXX=yes
10822      fi
10823    fi
10824    $rm conftest*
10825
10826 fi
10827 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10828 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10829
10830 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10831     case $lt_prog_compiler_pic_CXX in
10832      "" | " "*) ;;
10833      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10834      esac
10835 else
10836     lt_prog_compiler_pic_CXX=
10837      lt_prog_compiler_can_build_shared_CXX=no
10838 fi
10839
10840 fi
10841 case "$host_os" in
10842   # For platforms which do not support PIC, -DPIC is meaningless:
10843   *djgpp*)
10844     lt_prog_compiler_pic_CXX=
10845     ;;
10846   *)
10847     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10848     ;;
10849 esac
10850
10851 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10852 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10853 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10854   echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856   lt_cv_prog_compiler_c_o_CXX=no
10857    $rm -r conftest 2>/dev/null
10858    mkdir conftest
10859    cd conftest
10860    mkdir out
10861    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10862
10863    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10864    # that will create temporary files in the current directory regardless of
10865    # the output directory.  Thus, making CWD read-only will cause this test
10866    # to fail, enabling locking or at least warning the user not to do parallel
10867    # builds.
10868    chmod -w .
10869
10870    lt_compiler_flag="-o out/conftest2.$ac_objext"
10871    # Insert the option either (1) after the last *FLAGS variable, or
10872    # (2) before a word containing "conftest.", or (3) at the end.
10873    # Note that $ac_compile itself does not contain backslashes and begins
10874    # with a dollar sign (not a hyphen), so the echo should work correctly.
10875    lt_compile=`echo "$ac_compile" | $SED \
10876    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10877    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10878    -e 's:$: $lt_compiler_flag:'`
10879    (eval echo "\"\$as_me:10879: $lt_compile\"" >&5)
10880    (eval "$lt_compile" 2>out/conftest.err)
10881    ac_status=$?
10882    cat out/conftest.err >&5
10883    echo "$as_me:10883: \$? = $ac_status" >&5
10884    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10885    then
10886      # The compiler can only warn and ignore the option if not recognized
10887      # So say no if there are warnings
10888      if test ! -s out/conftest.err; then
10889        lt_cv_prog_compiler_c_o_CXX=yes
10890      fi
10891    fi
10892    chmod u+w .
10893    $rm conftest* out/*
10894    rmdir out
10895    cd ..
10896    rmdir conftest
10897    $rm conftest*
10898
10899 fi
10900 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10901 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10902
10903
10904 hard_links="nottested"
10905 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10906   # do not overwrite the value of need_locks provided by the user
10907   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10908 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10909   hard_links=yes
10910   $rm conftest*
10911   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10912   touch conftest.a
10913   ln conftest.a conftest.b 2>&5 || hard_links=no
10914   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10915   echo "$as_me:$LINENO: result: $hard_links" >&5
10916 echo "${ECHO_T}$hard_links" >&6
10917   if test "$hard_links" = no; then
10918     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10919 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10920     need_locks=warn
10921   fi
10922 else
10923   need_locks=no
10924 fi
10925
10926 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10927 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10928
10929   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10930   case $host_os in
10931   aix4* | aix5*)
10932     # If we're using GNU nm, then we don't want the "-C" option.
10933     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10934     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10935       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'
10936     else
10937       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'
10938     fi
10939     ;;
10940   pw32*)
10941     export_symbols_cmds_CXX="$ltdll_cmds"
10942   ;;
10943   cygwin* | mingw*)
10944     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10945   ;;
10946   *)
10947     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10948   ;;
10949   esac
10950
10951 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10952 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10953 test "$ld_shlibs_CXX" = no && can_build_shared=no
10954
10955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10956 if test "$GCC" = yes; then
10957   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10958 fi
10959
10960 #
10961 # Do we need to explicitly link libc?
10962 #
10963 case "x$archive_cmds_need_lc_CXX" in
10964 x|xyes)
10965   # Assume -lc should be added
10966   archive_cmds_need_lc_CXX=yes
10967
10968   if test "$enable_shared" = yes && test "$GCC" = yes; then
10969     case $archive_cmds_CXX in
10970     *'~'*)
10971       # FIXME: we may have to deal with multi-command sequences.
10972       ;;
10973     '$CC '*)
10974       # Test whether the compiler implicitly links with -lc since on some
10975       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10976       # to ld, don't add -lc before -lgcc.
10977       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10978 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10979       $rm conftest*
10980       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10981
10982       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10983   (eval $ac_compile) 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } 2>conftest.err; then
10987         soname=conftest
10988         lib=conftest
10989         libobjs=conftest.$ac_objext
10990         deplibs=
10991         wl=$lt_prog_compiler_wl_CXX
10992         compiler_flags=-v
10993         linker_flags=-v
10994         verstring=
10995         output_objdir=.
10996         libname=conftest
10997         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10998         allow_undefined_flag_CXX=
10999         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11000   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); }
11004         then
11005           archive_cmds_need_lc_CXX=no
11006         else
11007           archive_cmds_need_lc_CXX=yes
11008         fi
11009         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11010       else
11011         cat conftest.err 1>&5
11012       fi
11013       $rm conftest*
11014       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11015 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11016       ;;
11017     esac
11018   fi
11019   ;;
11020 esac
11021
11022 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11023 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11024 hardcode_action_CXX=
11025 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11026    test -n "$runpath_var CXX" || \
11027    test "X$hardcode_automatic_CXX"="Xyes" ; then
11028
11029   # We can hardcode non-existant directories.
11030   if test "$hardcode_direct_CXX" != no &&
11031      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11032      # have to relink, otherwise we might link with an installed library
11033      # when we should be linking with a yet-to-be-installed one
11034      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11035      test "$hardcode_minus_L_CXX" != no; then
11036     # Linking always hardcodes the temporary library directory.
11037     hardcode_action_CXX=relink
11038   else
11039     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11040     hardcode_action_CXX=immediate
11041   fi
11042 else
11043   # We cannot hardcode anything, or else we can only hardcode existing
11044   # directories.
11045   hardcode_action_CXX=unsupported
11046 fi
11047 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11048 echo "${ECHO_T}$hardcode_action_CXX" >&6
11049
11050 if test "$hardcode_action_CXX" = relink; then
11051   # Fast installation is not supported
11052   enable_fast_install=no
11053 elif test "$shlibpath_overrides_runpath" = yes ||
11054      test "$enable_shared" = no; then
11055   # Fast installation is not necessary
11056   enable_fast_install=needless
11057 fi
11058
11059 striplib=
11060 old_striplib=
11061 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11062 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11063 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11064   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11065   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11066   echo "$as_me:$LINENO: result: yes" >&5
11067 echo "${ECHO_T}yes" >&6
11068 else
11069 # FIXME - insert some real tests, host_os isn't really good enough
11070   case $host_os in
11071    darwin*)
11072        if test -n "$STRIP" ; then
11073          striplib="$STRIP -x"
11074          echo "$as_me:$LINENO: result: yes" >&5
11075 echo "${ECHO_T}yes" >&6
11076        else
11077   echo "$as_me:$LINENO: result: no" >&5
11078 echo "${ECHO_T}no" >&6
11079 fi
11080        ;;
11081    *)
11082   echo "$as_me:$LINENO: result: no" >&5
11083 echo "${ECHO_T}no" >&6
11084     ;;
11085   esac
11086 fi
11087
11088 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11089 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11090 library_names_spec=
11091 libname_spec='lib$name'
11092 soname_spec=
11093 shrext=".so"
11094 postinstall_cmds=
11095 postuninstall_cmds=
11096 finish_cmds=
11097 finish_eval=
11098 shlibpath_var=
11099 shlibpath_overrides_runpath=unknown
11100 version_type=none
11101 dynamic_linker="$host_os ld.so"
11102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11103 if test "$GCC" = yes; then
11104   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11105   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11106     # if the path contains ";" then we assume it to be the separator
11107     # otherwise default to the standard path separator (i.e. ":") - it is
11108     # assumed that no part of a normal pathname contains ";" but that should
11109     # okay in the real world where ";" in dirpaths is itself problematic.
11110     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11111   else
11112     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11113   fi
11114 else
11115   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11116 fi
11117 need_lib_prefix=unknown
11118 hardcode_into_libs=no
11119
11120 # when you set need_version to no, make sure it does not cause -set_version
11121 # flags to be left without arguments
11122 need_version=unknown
11123
11124 case $host_os in
11125 aix3*)
11126   version_type=linux
11127   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11128   shlibpath_var=LIBPATH
11129
11130   # AIX 3 has no versioning support, so we append a major version to the name.
11131   soname_spec='${libname}${release}${shared_ext}$major'
11132   ;;
11133
11134 aix4* | aix5*)
11135   version_type=linux
11136   need_lib_prefix=no
11137   need_version=no
11138   hardcode_into_libs=yes
11139   if test "$host_cpu" = ia64; then
11140     # AIX 5 supports IA64
11141     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11142     shlibpath_var=LD_LIBRARY_PATH
11143   else
11144     # With GCC up to 2.95.x, collect2 would create an import file
11145     # for dependence libraries.  The import file would start with
11146     # the line `#! .'.  This would cause the generated library to
11147     # depend on `.', always an invalid library.  This was fixed in
11148     # development snapshots of GCC prior to 3.0.
11149     case $host_os in
11150       aix4 | aix4.[01] | aix4.[01].*)
11151       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11152            echo ' yes '
11153            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11154         :
11155       else
11156         can_build_shared=no
11157       fi
11158       ;;
11159     esac
11160     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11161     # soname into executable. Probably we can add versioning support to
11162     # collect2, so additional links can be useful in future.
11163     if test "$aix_use_runtimelinking" = yes; then
11164       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11165       # instead of lib<name>.a to let people know that these are not
11166       # typical AIX shared libraries.
11167       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168     else
11169       # We preserve .a as extension for shared libraries through AIX4.2
11170       # and later when we are not doing run time linking.
11171       library_names_spec='${libname}${release}.a $libname.a'
11172       soname_spec='${libname}${release}${shared_ext}$major'
11173     fi
11174     shlibpath_var=LIBPATH
11175   fi
11176   ;;
11177
11178 amigaos*)
11179   library_names_spec='$libname.ixlibrary $libname.a'
11180   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11181   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'
11182   ;;
11183
11184 beos*)
11185   library_names_spec='${libname}${shared_ext}'
11186   dynamic_linker="$host_os ld.so"
11187   shlibpath_var=LIBRARY_PATH
11188   ;;
11189
11190 bsdi4*)
11191   version_type=linux
11192   need_version=no
11193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194   soname_spec='${libname}${release}${shared_ext}$major'
11195   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11196   shlibpath_var=LD_LIBRARY_PATH
11197   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11198   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11199   # the default ld.so.conf also contains /usr/contrib/lib and
11200   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11201   # libtool to hard-code these into programs
11202   ;;
11203
11204 cygwin* | mingw* | pw32*)
11205   version_type=windows
11206   shrext=".dll"
11207   need_version=no
11208   need_lib_prefix=no
11209
11210   case $GCC,$host_os in
11211   yes,cygwin* | yes,mingw* | yes,pw32*)
11212     library_names_spec='$libname.dll.a'
11213     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11214     postinstall_cmds='base_file=`basename \${file}`~
11215       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11216       dldir=$destdir/`dirname \$dlpath`~
11217       test -d \$dldir || mkdir -p \$dldir~
11218       $install_prog $dir/$dlname \$dldir/$dlname'
11219     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11220       dlpath=$dir/\$dldll~
11221        $rm \$dlpath'
11222     shlibpath_overrides_runpath=yes
11223
11224     case $host_os in
11225     cygwin*)
11226       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11227       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11228       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11229       ;;
11230     mingw*)
11231       # MinGW DLLs use traditional 'lib' prefix
11232       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11233       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11234       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11235         # It is most probably a Windows format PATH printed by
11236         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11237         # path with ; separators, and with drive letters. We can handle the
11238         # drive letters (cygwin fileutils understands them), so leave them,
11239         # especially as we might pass files found there to a mingw objdump,
11240         # which wouldn't understand a cygwinified path. Ahh.
11241         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11242       else
11243         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11244       fi
11245       ;;
11246     pw32*)
11247       # pw32 DLLs use 'pw' prefix rather than 'lib'
11248       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11249       ;;
11250     esac
11251     ;;
11252
11253   *)
11254     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11255     ;;
11256   esac
11257   dynamic_linker='Win32 ld.exe'
11258   # FIXME: first we should search . and the directory the executable is in
11259   shlibpath_var=PATH
11260   ;;
11261
11262 darwin* | rhapsody*)
11263   dynamic_linker="$host_os dyld"
11264   version_type=darwin
11265   need_lib_prefix=no
11266   need_version=no
11267   # FIXME: Relying on posixy $() will cause problems for
11268   #        cross-compilation, but unfortunately the echo tests do not
11269   #        yet detect zsh echo's removal of \ escapes.
11270   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11271   soname_spec='${libname}${release}${major}$shared_ext'
11272   shlibpath_overrides_runpath=yes
11273   shlibpath_var=DYLD_LIBRARY_PATH
11274   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11275   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11276   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11277   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"`
11278   fi
11279   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11280   ;;
11281
11282 dgux*)
11283   version_type=linux
11284   need_lib_prefix=no
11285   need_version=no
11286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11287   soname_spec='${libname}${release}${shared_ext}$major'
11288   shlibpath_var=LD_LIBRARY_PATH
11289   ;;
11290
11291 freebsd1*)
11292   dynamic_linker=no
11293   ;;
11294
11295 freebsd*)
11296   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11297   version_type=freebsd-$objformat
11298   case $version_type in
11299     freebsd-elf*)
11300       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11301       need_version=no
11302       need_lib_prefix=no
11303       ;;
11304     freebsd-*)
11305       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11306       need_version=yes
11307       ;;
11308   esac
11309   shlibpath_var=LD_LIBRARY_PATH
11310   case $host_os in
11311   freebsd2*)
11312     shlibpath_overrides_runpath=yes
11313     ;;
11314   freebsd3.01* | freebsdelf3.01*)
11315     shlibpath_overrides_runpath=yes
11316     hardcode_into_libs=yes
11317     ;;
11318   *) # from 3.2 on
11319     shlibpath_overrides_runpath=no
11320     hardcode_into_libs=yes
11321     ;;
11322   esac
11323   ;;
11324
11325 gnu*)
11326   version_type=linux
11327   need_lib_prefix=no
11328   need_version=no
11329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11330   soname_spec='${libname}${release}${shared_ext}$major'
11331   shlibpath_var=LD_LIBRARY_PATH
11332   hardcode_into_libs=yes
11333   ;;
11334
11335 hpux9* | hpux10* | hpux11*)
11336   # Give a soname corresponding to the major version so that dld.sl refuses to
11337   # link against other versions.
11338   version_type=sunos
11339   need_lib_prefix=no
11340   need_version=no
11341   case "$host_cpu" in
11342   ia64*)
11343     shrext='.so'
11344     hardcode_into_libs=yes
11345     dynamic_linker="$host_os dld.so"
11346     shlibpath_var=LD_LIBRARY_PATH
11347     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11348     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349     soname_spec='${libname}${release}${shared_ext}$major'
11350     if test "X$HPUX_IA64_MODE" = X32; then
11351       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11352     else
11353       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11354     fi
11355     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11356     ;;
11357    hppa*64*)
11358      shrext='.sl'
11359      hardcode_into_libs=yes
11360      dynamic_linker="$host_os dld.sl"
11361      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11362      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11363      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364      soname_spec='${libname}${release}${shared_ext}$major'
11365      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11366      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11367      ;;
11368    *)
11369     shrext='.sl'
11370     dynamic_linker="$host_os dld.sl"
11371     shlibpath_var=SHLIB_PATH
11372     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374     soname_spec='${libname}${release}${shared_ext}$major'
11375     ;;
11376   esac
11377   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11378   postinstall_cmds='chmod 555 $lib'
11379   ;;
11380
11381 irix5* | irix6* | nonstopux*)
11382   case $host_os in
11383     nonstopux*) version_type=nonstopux ;;
11384     *)
11385         if test "$lt_cv_prog_gnu_ld" = yes; then
11386                 version_type=linux
11387         else
11388                 version_type=irix
11389         fi ;;
11390   esac
11391   need_lib_prefix=no
11392   need_version=no
11393   soname_spec='${libname}${release}${shared_ext}$major'
11394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11395   case $host_os in
11396   irix5* | nonstopux*)
11397     libsuff= shlibsuff=
11398     ;;
11399   *)
11400     case $LD in # libtool.m4 will add one of these switches to LD
11401     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11402       libsuff= shlibsuff= libmagic=32-bit;;
11403     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11404       libsuff=32 shlibsuff=N32 libmagic=N32;;
11405     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11406       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11407     *) libsuff= shlibsuff= libmagic=never-match;;
11408     esac
11409     ;;
11410   esac
11411   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11412   shlibpath_overrides_runpath=no
11413   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11414   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11415   hardcode_into_libs=yes
11416   ;;
11417
11418 # No shared lib support for Linux oldld, aout, or coff.
11419 linux*oldld* | linux*aout* | linux*coff*)
11420   dynamic_linker=no
11421   ;;
11422
11423 # This must be Linux ELF.
11424 linux*)
11425   version_type=linux
11426   need_lib_prefix=no
11427   need_version=no
11428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429   soname_spec='${libname}${release}${shared_ext}$major'
11430   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11431   shlibpath_var=LD_LIBRARY_PATH
11432   shlibpath_overrides_runpath=no
11433   # This implies no fast_install, which is unacceptable.
11434   # Some rework will be needed to allow for fast_install
11435   # before this can be enabled.
11436   hardcode_into_libs=yes
11437
11438   # We used to test for /lib/ld.so.1 and disable shared libraries on
11439   # powerpc, because MkLinux only supported shared libraries with the
11440   # GNU dynamic linker.  Since this was broken with cross compilers,
11441   # most powerpc-linux boxes support dynamic linking these days and
11442   # people can always --disable-shared, the test was removed, and we
11443   # assume the GNU/Linux dynamic linker is in use.
11444   dynamic_linker='GNU/Linux ld.so'
11445   ;;
11446
11447 netbsd*)
11448   version_type=sunos
11449   need_lib_prefix=no
11450   need_version=no
11451   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11452     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11453     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11454     dynamic_linker='NetBSD (a.out) ld.so'
11455   else
11456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11457     soname_spec='${libname}${release}${shared_ext}$major'
11458     dynamic_linker='NetBSD ld.elf_so'
11459   fi
11460   shlibpath_var=LD_LIBRARY_PATH
11461   shlibpath_overrides_runpath=yes
11462   hardcode_into_libs=yes
11463   ;;
11464
11465 newsos6)
11466   version_type=linux
11467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468   shlibpath_var=LD_LIBRARY_PATH
11469   shlibpath_overrides_runpath=yes
11470   ;;
11471
11472 nto-qnx)
11473   version_type=linux
11474   need_lib_prefix=no
11475   need_version=no
11476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477   soname_spec='${libname}${release}${shared_ext}$major'
11478   shlibpath_var=LD_LIBRARY_PATH
11479   shlibpath_overrides_runpath=yes
11480   ;;
11481
11482 openbsd*)
11483   version_type=sunos
11484   need_lib_prefix=no
11485   need_version=no
11486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11487   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11488   shlibpath_var=LD_LIBRARY_PATH
11489   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11490     case $host_os in
11491       openbsd2.[89] | openbsd2.[89].*)
11492         shlibpath_overrides_runpath=no
11493         ;;
11494       *)
11495         shlibpath_overrides_runpath=yes
11496         ;;
11497       esac
11498   else
11499     shlibpath_overrides_runpath=yes
11500   fi
11501   ;;
11502
11503 os2*)
11504   libname_spec='$name'
11505   shrext=".dll"
11506   need_lib_prefix=no
11507   library_names_spec='$libname${shared_ext} $libname.a'
11508   dynamic_linker='OS/2 ld.exe'
11509   shlibpath_var=LIBPATH
11510   ;;
11511
11512 osf3* | osf4* | osf5*)
11513   version_type=osf
11514   need_lib_prefix=no
11515   need_version=no
11516   soname_spec='${libname}${release}${shared_ext}$major'
11517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518   shlibpath_var=LD_LIBRARY_PATH
11519   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11520   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11521   ;;
11522
11523 sco3.2v5*)
11524   version_type=osf
11525   soname_spec='${libname}${release}${shared_ext}$major'
11526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527   shlibpath_var=LD_LIBRARY_PATH
11528   ;;
11529
11530 solaris*)
11531   version_type=linux
11532   need_lib_prefix=no
11533   need_version=no
11534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535   soname_spec='${libname}${release}${shared_ext}$major'
11536   shlibpath_var=LD_LIBRARY_PATH
11537   shlibpath_overrides_runpath=yes
11538   hardcode_into_libs=yes
11539   # ldd complains unless libraries are executable
11540   postinstall_cmds='chmod +x $lib'
11541   ;;
11542
11543 sunos4*)
11544   version_type=sunos
11545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11546   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11547   shlibpath_var=LD_LIBRARY_PATH
11548   shlibpath_overrides_runpath=yes
11549   if test "$with_gnu_ld" = yes; then
11550     need_lib_prefix=no
11551   fi
11552   need_version=yes
11553   ;;
11554
11555 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11556   version_type=linux
11557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558   soname_spec='${libname}${release}${shared_ext}$major'
11559   shlibpath_var=LD_LIBRARY_PATH
11560   case $host_vendor in
11561     sni)
11562       shlibpath_overrides_runpath=no
11563       need_lib_prefix=no
11564       export_dynamic_flag_spec='${wl}-Blargedynsym'
11565       runpath_var=LD_RUN_PATH
11566       ;;
11567     siemens)
11568       need_lib_prefix=no
11569       ;;
11570     motorola)
11571       need_lib_prefix=no
11572       need_version=no
11573       shlibpath_overrides_runpath=no
11574       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11575       ;;
11576   esac
11577   ;;
11578
11579 sysv4*MP*)
11580   if test -d /usr/nec ;then
11581     version_type=linux
11582     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11583     soname_spec='$libname${shared_ext}.$major'
11584     shlibpath_var=LD_LIBRARY_PATH
11585   fi
11586   ;;
11587
11588 uts4*)
11589   version_type=linux
11590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591   soname_spec='${libname}${release}${shared_ext}$major'
11592   shlibpath_var=LD_LIBRARY_PATH
11593   ;;
11594
11595 *)
11596   dynamic_linker=no
11597   ;;
11598 esac
11599 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11600 echo "${ECHO_T}$dynamic_linker" >&6
11601 test "$dynamic_linker" = no && can_build_shared=no
11602
11603 if test "x$enable_dlopen" != xyes; then
11604   enable_dlopen=unknown
11605   enable_dlopen_self=unknown
11606   enable_dlopen_self_static=unknown
11607 else
11608   lt_cv_dlopen=no
11609   lt_cv_dlopen_libs=
11610
11611   case $host_os in
11612   beos*)
11613     lt_cv_dlopen="load_add_on"
11614     lt_cv_dlopen_libs=
11615     lt_cv_dlopen_self=yes
11616     ;;
11617
11618   mingw* | pw32*)
11619     lt_cv_dlopen="LoadLibrary"
11620     lt_cv_dlopen_libs=
11621    ;;
11622
11623   cygwin*)
11624     lt_cv_dlopen="dlopen"
11625     lt_cv_dlopen_libs=
11626    ;;
11627
11628   darwin*)
11629   # if libdl is installed we need to link against it
11630     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11631 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11632 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11633   echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635   ac_check_lib_save_LIBS=$LIBS
11636 LIBS="-ldl  $LIBS"
11637 cat >conftest.$ac_ext <<_ACEOF
11638 #line $LINENO "configure"
11639 /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11644
11645 /* Override any gcc2 internal prototype to avoid an error.  */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 /* We use char because int might match the return type of a gcc2
11650    builtin and then its argument prototype would still apply.  */
11651 char dlopen ();
11652 int
11653 main ()
11654 {
11655 dlopen ();
11656   ;
11657   return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11662   (eval $ac_link) 2>&5
11663   ac_status=$?
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); } &&
11666          { ac_try='test -s conftest$ac_exeext'
11667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668   (eval $ac_try) 2>&5
11669   ac_status=$?
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); }; }; then
11672   ac_cv_lib_dl_dlopen=yes
11673 else
11674   echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11676
11677 ac_cv_lib_dl_dlopen=no
11678 fi
11679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11680 LIBS=$ac_check_lib_save_LIBS
11681 fi
11682 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11683 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11684 if test $ac_cv_lib_dl_dlopen = yes; then
11685   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11686 else
11687
11688     lt_cv_dlopen="dyld"
11689     lt_cv_dlopen_libs=
11690     lt_cv_dlopen_self=yes
11691
11692 fi
11693
11694    ;;
11695
11696   *)
11697     echo "$as_me:$LINENO: checking for shl_load" >&5
11698 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11699 if test "${ac_cv_func_shl_load+set}" = set; then
11700   echo $ECHO_N "(cached) $ECHO_C" >&6
11701 else
11702   cat >conftest.$ac_ext <<_ACEOF
11703 #line $LINENO "configure"
11704 /* confdefs.h.  */
11705 _ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h.  */
11709 /* System header to define __stub macros and hopefully few prototypes,
11710     which can conflict with char shl_load (); below.
11711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11712     <limits.h> exists even on freestanding compilers.  */
11713 #ifdef __STDC__
11714 # include <limits.h>
11715 #else
11716 # include <assert.h>
11717 #endif
11718 /* Override any gcc2 internal prototype to avoid an error.  */
11719 #ifdef __cplusplus
11720 extern "C"
11721 {
11722 #endif
11723 /* We use char because int might match the return type of a gcc2
11724    builtin and then its argument prototype would still apply.  */
11725 char shl_load ();
11726 /* The GNU C library defines this for functions which it implements
11727     to always fail with ENOSYS.  Some functions are actually named
11728     something starting with __ and the normal name is an alias.  */
11729 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11730 choke me
11731 #else
11732 char (*f) () = shl_load;
11733 #endif
11734 #ifdef __cplusplus
11735 }
11736 #endif
11737
11738 int
11739 main ()
11740 {
11741 return f != shl_load;
11742   ;
11743   return 0;
11744 }
11745 _ACEOF
11746 rm -f conftest.$ac_objext conftest$ac_exeext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748   (eval $ac_link) 2>&5
11749   ac_status=$?
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); } &&
11752          { ac_try='test -s conftest$ac_exeext'
11753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754   (eval $ac_try) 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); }; }; then
11758   ac_cv_func_shl_load=yes
11759 else
11760   echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11762
11763 ac_cv_func_shl_load=no
11764 fi
11765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11766 fi
11767 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11768 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11769 if test $ac_cv_func_shl_load = yes; then
11770   lt_cv_dlopen="shl_load"
11771 else
11772   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11773 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11774 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11775   echo $ECHO_N "(cached) $ECHO_C" >&6
11776 else
11777   ac_check_lib_save_LIBS=$LIBS
11778 LIBS="-ldld  $LIBS"
11779 cat >conftest.$ac_ext <<_ACEOF
11780 #line $LINENO "configure"
11781 /* confdefs.h.  */
11782 _ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h.  */
11786
11787 /* Override any gcc2 internal prototype to avoid an error.  */
11788 #ifdef __cplusplus
11789 extern "C"
11790 #endif
11791 /* We use char because int might match the return type of a gcc2
11792    builtin and then its argument prototype would still apply.  */
11793 char shl_load ();
11794 int
11795 main ()
11796 {
11797 shl_load ();
11798   ;
11799   return 0;
11800 }
11801 _ACEOF
11802 rm -f conftest.$ac_objext conftest$ac_exeext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804   (eval $ac_link) 2>&5
11805   ac_status=$?
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); } &&
11808          { ac_try='test -s conftest$ac_exeext'
11809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810   (eval $ac_try) 2>&5
11811   ac_status=$?
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); }; }; then
11814   ac_cv_lib_dld_shl_load=yes
11815 else
11816   echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11818
11819 ac_cv_lib_dld_shl_load=no
11820 fi
11821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11822 LIBS=$ac_check_lib_save_LIBS
11823 fi
11824 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11825 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11826 if test $ac_cv_lib_dld_shl_load = yes; then
11827   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11828 else
11829   echo "$as_me:$LINENO: checking for dlopen" >&5
11830 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11831 if test "${ac_cv_func_dlopen+set}" = set; then
11832   echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834   cat >conftest.$ac_ext <<_ACEOF
11835 #line $LINENO "configure"
11836 /* confdefs.h.  */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h.  */
11841 /* System header to define __stub macros and hopefully few prototypes,
11842     which can conflict with char dlopen (); below.
11843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11844     <limits.h> exists even on freestanding compilers.  */
11845 #ifdef __STDC__
11846 # include <limits.h>
11847 #else
11848 # include <assert.h>
11849 #endif
11850 /* Override any gcc2 internal prototype to avoid an error.  */
11851 #ifdef __cplusplus
11852 extern "C"
11853 {
11854 #endif
11855 /* We use char because int might match the return type of a gcc2
11856    builtin and then its argument prototype would still apply.  */
11857 char dlopen ();
11858 /* The GNU C library defines this for functions which it implements
11859     to always fail with ENOSYS.  Some functions are actually named
11860     something starting with __ and the normal name is an alias.  */
11861 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11862 choke me
11863 #else
11864 char (*f) () = dlopen;
11865 #endif
11866 #ifdef __cplusplus
11867 }
11868 #endif
11869
11870 int
11871 main ()
11872 {
11873 return f != dlopen;
11874   ;
11875   return 0;
11876 }
11877 _ACEOF
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880   (eval $ac_link) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); } &&
11884          { ac_try='test -s conftest$ac_exeext'
11885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886   (eval $ac_try) 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); }; }; then
11890   ac_cv_func_dlopen=yes
11891 else
11892   echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11894
11895 ac_cv_func_dlopen=no
11896 fi
11897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11898 fi
11899 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11900 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11901 if test $ac_cv_func_dlopen = yes; then
11902   lt_cv_dlopen="dlopen"
11903 else
11904   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11905 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11906 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11907   echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909   ac_check_lib_save_LIBS=$LIBS
11910 LIBS="-ldl  $LIBS"
11911 cat >conftest.$ac_ext <<_ACEOF
11912 #line $LINENO "configure"
11913 /* confdefs.h.  */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h.  */
11918
11919 /* Override any gcc2 internal prototype to avoid an error.  */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 /* We use char because int might match the return type of a gcc2
11924    builtin and then its argument prototype would still apply.  */
11925 char dlopen ();
11926 int
11927 main ()
11928 {
11929 dlopen ();
11930   ;
11931   return 0;
11932 }
11933 _ACEOF
11934 rm -f conftest.$ac_objext conftest$ac_exeext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11936   (eval $ac_link) 2>&5
11937   ac_status=$?
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); } &&
11940          { ac_try='test -s conftest$ac_exeext'
11941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942   (eval $ac_try) 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); }; }; then
11946   ac_cv_lib_dl_dlopen=yes
11947 else
11948   echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11950
11951 ac_cv_lib_dl_dlopen=no
11952 fi
11953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11954 LIBS=$ac_check_lib_save_LIBS
11955 fi
11956 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11957 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11958 if test $ac_cv_lib_dl_dlopen = yes; then
11959   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11960 else
11961   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11962 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11963 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11964   echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966   ac_check_lib_save_LIBS=$LIBS
11967 LIBS="-lsvld  $LIBS"
11968 cat >conftest.$ac_ext <<_ACEOF
11969 #line $LINENO "configure"
11970 /* confdefs.h.  */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h.  */
11975
11976 /* Override any gcc2 internal prototype to avoid an error.  */
11977 #ifdef __cplusplus
11978 extern "C"
11979 #endif
11980 /* We use char because int might match the return type of a gcc2
11981    builtin and then its argument prototype would still apply.  */
11982 char dlopen ();
11983 int
11984 main ()
11985 {
11986 dlopen ();
11987   ;
11988   return 0;
11989 }
11990 _ACEOF
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11993   (eval $ac_link) 2>&5
11994   ac_status=$?
11995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); } &&
11997          { ac_try='test -s conftest$ac_exeext'
11998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999   (eval $ac_try) 2>&5
12000   ac_status=$?
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); }; }; then
12003   ac_cv_lib_svld_dlopen=yes
12004 else
12005   echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008 ac_cv_lib_svld_dlopen=no
12009 fi
12010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12012 fi
12013 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12014 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12015 if test $ac_cv_lib_svld_dlopen = yes; then
12016   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12017 else
12018   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12019 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12020 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12021   echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023   ac_check_lib_save_LIBS=$LIBS
12024 LIBS="-ldld  $LIBS"
12025 cat >conftest.$ac_ext <<_ACEOF
12026 #line $LINENO "configure"
12027 /* confdefs.h.  */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h.  */
12032
12033 /* Override any gcc2 internal prototype to avoid an error.  */
12034 #ifdef __cplusplus
12035 extern "C"
12036 #endif
12037 /* We use char because int might match the return type of a gcc2
12038    builtin and then its argument prototype would still apply.  */
12039 char dld_link ();
12040 int
12041 main ()
12042 {
12043 dld_link ();
12044   ;
12045   return 0;
12046 }
12047 _ACEOF
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050   (eval $ac_link) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); } &&
12054          { ac_try='test -s conftest$ac_exeext'
12055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056   (eval $ac_try) 2>&5
12057   ac_status=$?
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); }; }; then
12060   ac_cv_lib_dld_dld_link=yes
12061 else
12062   echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 ac_cv_lib_dld_dld_link=no
12066 fi
12067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12068 LIBS=$ac_check_lib_save_LIBS
12069 fi
12070 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12071 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12072 if test $ac_cv_lib_dld_dld_link = yes; then
12073   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12074 fi
12075
12076
12077 fi
12078
12079
12080 fi
12081
12082
12083 fi
12084
12085
12086 fi
12087
12088
12089 fi
12090
12091     ;;
12092   esac
12093
12094   if test "x$lt_cv_dlopen" != xno; then
12095     enable_dlopen=yes
12096   else
12097     enable_dlopen=no
12098   fi
12099
12100   case $lt_cv_dlopen in
12101   dlopen)
12102     save_CPPFLAGS="$CPPFLAGS"
12103     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12104
12105     save_LDFLAGS="$LDFLAGS"
12106     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12107
12108     save_LIBS="$LIBS"
12109     LIBS="$lt_cv_dlopen_libs $LIBS"
12110
12111     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12112 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12113 if test "${lt_cv_dlopen_self+set}" = set; then
12114   echo $ECHO_N "(cached) $ECHO_C" >&6
12115 else
12116           if test "$cross_compiling" = yes; then :
12117   lt_cv_dlopen_self=cross
12118 else
12119   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12120   lt_status=$lt_dlunknown
12121   cat > conftest.$ac_ext <<EOF
12122 #line 12122 "configure"
12123 #include "confdefs.h"
12124
12125 #if HAVE_DLFCN_H
12126 #include <dlfcn.h>
12127 #endif
12128
12129 #include <stdio.h>
12130
12131 #ifdef RTLD_GLOBAL
12132 #  define LT_DLGLOBAL           RTLD_GLOBAL
12133 #else
12134 #  ifdef DL_GLOBAL
12135 #    define LT_DLGLOBAL         DL_GLOBAL
12136 #  else
12137 #    define LT_DLGLOBAL         0
12138 #  endif
12139 #endif
12140
12141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12142    find out it does not work in some platform. */
12143 #ifndef LT_DLLAZY_OR_NOW
12144 #  ifdef RTLD_LAZY
12145 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12146 #  else
12147 #    ifdef DL_LAZY
12148 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12149 #    else
12150 #      ifdef RTLD_NOW
12151 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12152 #      else
12153 #        ifdef DL_NOW
12154 #          define LT_DLLAZY_OR_NOW      DL_NOW
12155 #        else
12156 #          define LT_DLLAZY_OR_NOW      0
12157 #        endif
12158 #      endif
12159 #    endif
12160 #  endif
12161 #endif
12162
12163 #ifdef __cplusplus
12164 extern "C" void exit (int);
12165 #endif
12166
12167 void fnord() { int i=42;}
12168 int main ()
12169 {
12170   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12171   int status = $lt_dlunknown;
12172
12173   if (self)
12174     {
12175       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12176       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12177       /* dlclose (self); */
12178     }
12179
12180     exit (status);
12181 }
12182 EOF
12183   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12184   (eval $ac_link) 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12188     (./conftest; exit; ) 2>/dev/null
12189     lt_status=$?
12190     case x$lt_status in
12191       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12192       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12193       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12194     esac
12195   else :
12196     # compilation failed
12197     lt_cv_dlopen_self=no
12198   fi
12199 fi
12200 rm -fr conftest*
12201
12202
12203 fi
12204 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12205 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12206
12207     if test "x$lt_cv_dlopen_self" = xyes; then
12208       LDFLAGS="$LDFLAGS $link_static_flag"
12209       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12210 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12211 if test "${lt_cv_dlopen_self_static+set}" = set; then
12212   echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214           if test "$cross_compiling" = yes; then :
12215   lt_cv_dlopen_self_static=cross
12216 else
12217   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12218   lt_status=$lt_dlunknown
12219   cat > conftest.$ac_ext <<EOF
12220 #line 12220 "configure"
12221 #include "confdefs.h"
12222
12223 #if HAVE_DLFCN_H
12224 #include <dlfcn.h>
12225 #endif
12226
12227 #include <stdio.h>
12228
12229 #ifdef RTLD_GLOBAL
12230 #  define LT_DLGLOBAL           RTLD_GLOBAL
12231 #else
12232 #  ifdef DL_GLOBAL
12233 #    define LT_DLGLOBAL         DL_GLOBAL
12234 #  else
12235 #    define LT_DLGLOBAL         0
12236 #  endif
12237 #endif
12238
12239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12240    find out it does not work in some platform. */
12241 #ifndef LT_DLLAZY_OR_NOW
12242 #  ifdef RTLD_LAZY
12243 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12244 #  else
12245 #    ifdef DL_LAZY
12246 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12247 #    else
12248 #      ifdef RTLD_NOW
12249 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12250 #      else
12251 #        ifdef DL_NOW
12252 #          define LT_DLLAZY_OR_NOW      DL_NOW
12253 #        else
12254 #          define LT_DLLAZY_OR_NOW      0
12255 #        endif
12256 #      endif
12257 #    endif
12258 #  endif
12259 #endif
12260
12261 #ifdef __cplusplus
12262 extern "C" void exit (int);
12263 #endif
12264
12265 void fnord() { int i=42;}
12266 int main ()
12267 {
12268   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12269   int status = $lt_dlunknown;
12270
12271   if (self)
12272     {
12273       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12274       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12275       /* dlclose (self); */
12276     }
12277
12278     exit (status);
12279 }
12280 EOF
12281   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282   (eval $ac_link) 2>&5
12283   ac_status=$?
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12286     (./conftest; exit; ) 2>/dev/null
12287     lt_status=$?
12288     case x$lt_status in
12289       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12290       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12291       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12292     esac
12293   else :
12294     # compilation failed
12295     lt_cv_dlopen_self_static=no
12296   fi
12297 fi
12298 rm -fr conftest*
12299
12300
12301 fi
12302 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12303 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12304     fi
12305
12306     CPPFLAGS="$save_CPPFLAGS"
12307     LDFLAGS="$save_LDFLAGS"
12308     LIBS="$save_LIBS"
12309     ;;
12310   esac
12311
12312   case $lt_cv_dlopen_self in
12313   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12314   *) enable_dlopen_self=unknown ;;
12315   esac
12316
12317   case $lt_cv_dlopen_self_static in
12318   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12319   *) enable_dlopen_self_static=unknown ;;
12320   esac
12321 fi
12322
12323
12324 # The else clause should only fire when bootstrapping the
12325 # libtool distribution, otherwise you forgot to ship ltmain.sh
12326 # with your package, and you will get complaints that there are
12327 # no rules to generate ltmain.sh.
12328 if test -f "$ltmain"; then
12329   # See if we are running on zsh, and set the options which allow our commands through
12330   # without removal of \ escapes.
12331   if test -n "${ZSH_VERSION+set}" ; then
12332     setopt NO_GLOB_SUBST
12333   fi
12334   # Now quote all the things that may contain metacharacters while being
12335   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12336   # variables and quote the copies for generation of the libtool script.
12337   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12338     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12339     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12340     deplibs_check_method reload_flag reload_cmds need_locks \
12341     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12342     lt_cv_sys_global_symbol_to_c_name_address \
12343     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12344     old_postinstall_cmds old_postuninstall_cmds \
12345     compiler_CXX \
12346     CC_CXX \
12347     LD_CXX \
12348     lt_prog_compiler_wl_CXX \
12349     lt_prog_compiler_pic_CXX \
12350     lt_prog_compiler_static_CXX \
12351     lt_prog_compiler_no_builtin_flag_CXX \
12352     export_dynamic_flag_spec_CXX \
12353     thread_safe_flag_spec_CXX \
12354     whole_archive_flag_spec_CXX \
12355     enable_shared_with_static_runtimes_CXX \
12356     old_archive_cmds_CXX \
12357     old_archive_from_new_cmds_CXX \
12358     predep_objects_CXX \
12359     postdep_objects_CXX \
12360     predeps_CXX \
12361     postdeps_CXX \
12362     compiler_lib_search_path_CXX \
12363     archive_cmds_CXX \
12364     archive_expsym_cmds_CXX \
12365     postinstall_cmds_CXX \
12366     postuninstall_cmds_CXX \
12367     old_archive_from_expsyms_cmds_CXX \
12368     allow_undefined_flag_CXX \
12369     no_undefined_flag_CXX \
12370     export_symbols_cmds_CXX \
12371     hardcode_libdir_flag_spec_CXX \
12372     hardcode_libdir_flag_spec_ld_CXX \
12373     hardcode_libdir_separator_CXX \
12374     hardcode_automatic_CXX \
12375     module_cmds_CXX \
12376     module_expsym_cmds_CXX \
12377     lt_cv_prog_compiler_c_o_CXX \
12378     exclude_expsyms_CXX \
12379     include_expsyms_CXX; do
12380
12381     case $var in
12382     old_archive_cmds_CXX | \
12383     old_archive_from_new_cmds_CXX | \
12384     archive_cmds_CXX | \
12385     archive_expsym_cmds_CXX | \
12386     module_cmds_CXX | \
12387     module_expsym_cmds_CXX | \
12388     old_archive_from_expsyms_cmds_CXX | \
12389     export_symbols_cmds_CXX | \
12390     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12391     postinstall_cmds | postuninstall_cmds | \
12392     old_postinstall_cmds | old_postuninstall_cmds | \
12393     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12394       # Double-quote double-evaled strings.
12395       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12396       ;;
12397     *)
12398       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12399       ;;
12400     esac
12401   done
12402
12403   case $lt_echo in
12404   *'\$0 --fallback-echo"')
12405     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12406     ;;
12407   esac
12408
12409 cfgfile="$ofile"
12410
12411   cat <<__EOF__ >> "$cfgfile"
12412 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12413
12414 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12415
12416 # Shell to use when invoking shell scripts.
12417 SHELL=$lt_SHELL
12418
12419 # Whether or not to build shared libraries.
12420 build_libtool_libs=$enable_shared
12421
12422 # Whether or not to build static libraries.
12423 build_old_libs=$enable_static
12424
12425 # Whether or not to add -lc for building shared libraries.
12426 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12427
12428 # Whether or not to disallow shared libs when runtime libs are static
12429 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12430
12431 # Whether or not to optimize for fast installation.
12432 fast_install=$enable_fast_install
12433
12434 # The host system.
12435 host_alias=$host_alias
12436 host=$host
12437
12438 # An echo program that does not interpret backslashes.
12439 echo=$lt_echo
12440
12441 # The archiver.
12442 AR=$lt_AR
12443 AR_FLAGS=$lt_AR_FLAGS
12444
12445 # A C compiler.
12446 LTCC=$lt_LTCC
12447
12448 # A language-specific compiler.
12449 CC=$lt_compiler_CXX
12450
12451 # Is the compiler the GNU C compiler?
12452 with_gcc=$GCC_CXX
12453
12454 # An ERE matcher.
12455 EGREP=$lt_EGREP
12456
12457 # The linker used to build libraries.
12458 LD=$lt_LD_CXX
12459
12460 # Whether we need hard or soft links.
12461 LN_S=$lt_LN_S
12462
12463 # A BSD-compatible nm program.
12464 NM=$lt_NM
12465
12466 # A symbol stripping program
12467 STRIP=$STRIP
12468
12469 # Used to examine libraries when file_magic_cmd begins "file"
12470 MAGIC_CMD=$MAGIC_CMD
12471
12472 # Used on cygwin: DLL creation program.
12473 DLLTOOL="$DLLTOOL"
12474
12475 # Used on cygwin: object dumper.
12476 OBJDUMP="$OBJDUMP"
12477
12478 # Used on cygwin: assembler.
12479 AS="$AS"
12480
12481 # The name of the directory that contains temporary libtool files.
12482 objdir=$objdir
12483
12484 # How to create reloadable object files.
12485 reload_flag=$lt_reload_flag
12486 reload_cmds=$lt_reload_cmds
12487
12488 # How to pass a linker flag through the compiler.
12489 wl=$lt_lt_prog_compiler_wl_CXX
12490
12491 # Object file suffix (normally "o").
12492 objext="$ac_objext"
12493
12494 # Old archive suffix (normally "a").
12495 libext="$libext"
12496
12497 # Shared library suffix (normally ".so").
12498 shrext='$shrext'
12499
12500 # Executable file suffix (normally "").
12501 exeext="$exeext"
12502
12503 # Additional compiler flags for building library objects.
12504 pic_flag=$lt_lt_prog_compiler_pic_CXX
12505 pic_mode=$pic_mode
12506
12507 # What is the maximum length of a command?
12508 max_cmd_len=$lt_cv_sys_max_cmd_len
12509
12510 # Does compiler simultaneously support -c and -o options?
12511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12512
12513 # Must we lock files when doing compilation ?
12514 need_locks=$lt_need_locks
12515
12516 # Do we need the lib prefix for modules?
12517 need_lib_prefix=$need_lib_prefix
12518
12519 # Do we need a version for libraries?
12520 need_version=$need_version
12521
12522 # Whether dlopen is supported.
12523 dlopen_support=$enable_dlopen
12524
12525 # Whether dlopen of programs is supported.
12526 dlopen_self=$enable_dlopen_self
12527
12528 # Whether dlopen of statically linked programs is supported.
12529 dlopen_self_static=$enable_dlopen_self_static
12530
12531 # Compiler flag to prevent dynamic linking.
12532 link_static_flag=$lt_lt_prog_compiler_static_CXX
12533
12534 # Compiler flag to turn off builtin functions.
12535 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12536
12537 # Compiler flag to allow reflexive dlopens.
12538 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12539
12540 # Compiler flag to generate shared objects directly from archives.
12541 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12542
12543 # Compiler flag to generate thread-safe objects.
12544 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12545
12546 # Library versioning type.
12547 version_type=$version_type
12548
12549 # Format of library name prefix.
12550 libname_spec=$lt_libname_spec
12551
12552 # List of archive names.  First name is the real one, the rest are links.
12553 # The last name is the one that the linker finds with -lNAME.
12554 library_names_spec=$lt_library_names_spec
12555
12556 # The coded name of the library, if different from the real name.
12557 soname_spec=$lt_soname_spec
12558
12559 # Commands used to build and install an old-style archive.
12560 RANLIB=$lt_RANLIB
12561 old_archive_cmds=$lt_old_archive_cmds_CXX
12562 old_postinstall_cmds=$lt_old_postinstall_cmds
12563 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12564
12565 # Create an old-style archive from a shared archive.
12566 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12567
12568 # Create a temporary old-style archive to link instead of a shared archive.
12569 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12570
12571 # Commands used to build and install a shared archive.
12572 archive_cmds=$lt_archive_cmds_CXX
12573 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12574 postinstall_cmds=$lt_postinstall_cmds
12575 postuninstall_cmds=$lt_postuninstall_cmds
12576
12577 # Commands used to build a loadable module (assumed same as above if empty)
12578 module_cmds=$lt_module_cmds_CXX
12579 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12580
12581 # Commands to strip libraries.
12582 old_striplib=$lt_old_striplib
12583 striplib=$lt_striplib
12584
12585 # Dependencies to place before the objects being linked to create a
12586 # shared library.
12587 predep_objects=$lt_predep_objects_CXX
12588
12589 # Dependencies to place after the objects being linked to create a
12590 # shared library.
12591 postdep_objects=$lt_postdep_objects_CXX
12592
12593 # Dependencies to place before the objects being linked to create a
12594 # shared library.
12595 predeps=$lt_predeps_CXX
12596
12597 # Dependencies to place after the objects being linked to create a
12598 # shared library.
12599 postdeps=$lt_postdeps_CXX
12600
12601 # The library search path used internally by the compiler when linking
12602 # a shared library.
12603 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12604
12605 # Method to check whether dependent libraries are shared objects.
12606 deplibs_check_method=$lt_deplibs_check_method
12607
12608 # Command to use when deplibs_check_method == file_magic.
12609 file_magic_cmd=$lt_file_magic_cmd
12610
12611 # Flag that allows shared libraries with undefined symbols to be built.
12612 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12613
12614 # Flag that forces no undefined symbols.
12615 no_undefined_flag=$lt_no_undefined_flag_CXX
12616
12617 # Commands used to finish a libtool library installation in a directory.
12618 finish_cmds=$lt_finish_cmds
12619
12620 # Same as above, but a single script fragment to be evaled but not shown.
12621 finish_eval=$lt_finish_eval
12622
12623 # Take the output of nm and produce a listing of raw symbols and C names.
12624 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12625
12626 # Transform the output of nm in a proper C declaration
12627 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12628
12629 # Transform the output of nm in a C name address pair
12630 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12631
12632 # This is the shared library runtime path variable.
12633 runpath_var=$runpath_var
12634
12635 # This is the shared library path variable.
12636 shlibpath_var=$shlibpath_var
12637
12638 # Is shlibpath searched before the hard-coded library search path?
12639 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12640
12641 # How to hardcode a shared library path into an executable.
12642 hardcode_action=$hardcode_action_CXX
12643
12644 # Whether we should hardcode library paths into libraries.
12645 hardcode_into_libs=$hardcode_into_libs
12646
12647 # Flag to hardcode \$libdir into a binary during linking.
12648 # This must work even if \$libdir does not exist.
12649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12650
12651 # If ld is used when linking, flag to hardcode \$libdir into
12652 # a binary during linking. This must work even if \$libdir does
12653 # not exist.
12654 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12655
12656 # Whether we need a single -rpath flag with a separated argument.
12657 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12658
12659 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12660 # resulting binary.
12661 hardcode_direct=$hardcode_direct_CXX
12662
12663 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12664 # resulting binary.
12665 hardcode_minus_L=$hardcode_minus_L_CXX
12666
12667 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12668 # the resulting binary.
12669 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12670
12671 # Set to yes if building a shared library automatically hardcodes DIR into the library
12672 # and all subsequent libraries and executables linked against it.
12673 hardcode_automatic=$hardcode_automatic_CXX
12674
12675 # Variables whose values should be saved in libtool wrapper scripts and
12676 # restored at relink time.
12677 variables_saved_for_relink="$variables_saved_for_relink"
12678
12679 # Whether libtool must link a program against all its dependency libraries.
12680 link_all_deplibs=$link_all_deplibs_CXX
12681
12682 # Compile-time system search path for libraries
12683 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12684
12685 # Run-time system search path for libraries
12686 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12687
12688 # Fix the shell variable \$srcfile for the compiler.
12689 fix_srcfile_path="$fix_srcfile_path_CXX"
12690
12691 # Set to yes if exported symbols are required.
12692 always_export_symbols=$always_export_symbols_CXX
12693
12694 # The commands to list exported symbols.
12695 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12696
12697 # The commands to extract the exported symbol list from a shared archive.
12698 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12699
12700 # Symbols that should not be listed in the preloaded symbols.
12701 exclude_expsyms=$lt_exclude_expsyms_CXX
12702
12703 # Symbols that must always be exported.
12704 include_expsyms=$lt_include_expsyms_CXX
12705
12706 # ### END LIBTOOL TAG CONFIG: $tagname
12707
12708 __EOF__
12709
12710
12711 else
12712   # If there is no Makefile yet, we rely on a make rule to execute
12713   # `config.status --recheck' to rerun these tests and create the
12714   # libtool script then.
12715   test -f Makefile && make "$ltmain"
12716 fi
12717
12718
12719 ac_ext=c
12720 ac_cpp='$CPP $CPPFLAGS'
12721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12724
12725 CC=$lt_save_CC
12726 LDCXX=$LD
12727 LD=$lt_save_LD
12728 GCC=$lt_save_GCC
12729 with_gnu_ldcxx=$with_gnu_ld
12730 with_gnu_ld=$lt_save_with_gnu_ld
12731 lt_cv_path_LDCXX=$lt_cv_path_LD
12732 lt_cv_path_LD=$lt_save_path_LD
12733 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12734 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12735
12736         else
12737           tagname=""
12738         fi
12739         ;;
12740
12741       F77)
12742         if test -n "$F77" && test "X$F77" != "Xno"; then
12743
12744 ac_ext=f
12745 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12746 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12747 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12748
12749
12750 archive_cmds_need_lc_F77=no
12751 allow_undefined_flag_F77=
12752 always_export_symbols_F77=no
12753 archive_expsym_cmds_F77=
12754 export_dynamic_flag_spec_F77=
12755 hardcode_direct_F77=no
12756 hardcode_libdir_flag_spec_F77=
12757 hardcode_libdir_flag_spec_ld_F77=
12758 hardcode_libdir_separator_F77=
12759 hardcode_minus_L_F77=no
12760 hardcode_automatic_F77=no
12761 module_cmds_F77=
12762 module_expsym_cmds_F77=
12763 link_all_deplibs_F77=unknown
12764 old_archive_cmds_F77=$old_archive_cmds
12765 no_undefined_flag_F77=
12766 whole_archive_flag_spec_F77=
12767 enable_shared_with_static_runtimes_F77=no
12768
12769 # Source file extension for f77 test sources.
12770 ac_ext=f
12771
12772 # Object file extension for compiled f77 test sources.
12773 objext=o
12774 objext_F77=$objext
12775
12776 # Code to be used in simple compile tests
12777 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12778
12779 # Code to be used in simple link tests
12780 lt_simple_link_test_code="      program t\n      end\n"
12781
12782 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12783
12784 # If no C compiler was specified, use CC.
12785 LTCC=${LTCC-"$CC"}
12786
12787 # Allow CC to be a program name with arguments.
12788 compiler=$CC
12789
12790
12791 # Allow CC to be a program name with arguments.
12792 lt_save_CC="$CC"
12793 CC=${F77-"f77"}
12794 compiler=$CC
12795 compiler_F77=$CC
12796 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12797
12798 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12799 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12800 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12801 echo "${ECHO_T}$can_build_shared" >&6
12802
12803 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12804 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12805 test "$can_build_shared" = "no" && enable_shared=no
12806
12807 # On AIX, shared libraries and static libraries use the same namespace, and
12808 # are all built from PIC.
12809 case "$host_os" in
12810 aix3*)
12811   test "$enable_shared" = yes && enable_static=no
12812   if test -n "$RANLIB"; then
12813     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12814     postinstall_cmds='$RANLIB $lib'
12815   fi
12816   ;;
12817 aix4*)
12818   test "$enable_shared" = yes && enable_static=no
12819   ;;
12820 esac
12821 echo "$as_me:$LINENO: result: $enable_shared" >&5
12822 echo "${ECHO_T}$enable_shared" >&6
12823
12824 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12825 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12826 # Make sure either enable_shared or enable_static is yes.
12827 test "$enable_shared" = yes || enable_static=yes
12828 echo "$as_me:$LINENO: result: $enable_static" >&5
12829 echo "${ECHO_T}$enable_static" >&6
12830
12831 test "$ld_shlibs_F77" = no && can_build_shared=no
12832
12833 GCC_F77="$G77"
12834 LD_F77="$LD"
12835
12836 lt_prog_compiler_wl_F77=
12837 lt_prog_compiler_pic_F77=
12838 lt_prog_compiler_static_F77=
12839
12840 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12841 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12842
12843   if test "$GCC" = yes; then
12844     lt_prog_compiler_wl_F77='-Wl,'
12845     lt_prog_compiler_static_F77='-static'
12846
12847     case $host_os in
12848       aix*)
12849       # All AIX code is PIC.
12850       if test "$host_cpu" = ia64; then
12851         # AIX 5 now supports IA64 processor
12852         lt_prog_compiler_static_F77='-Bstatic'
12853       fi
12854       ;;
12855
12856     amigaos*)
12857       # FIXME: we need at least 68020 code to build shared libraries, but
12858       # adding the `-m68020' flag to GCC prevents building anything better,
12859       # like `-m68040'.
12860       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12861       ;;
12862
12863     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12864       # PIC is the default for these OSes.
12865       ;;
12866
12867     mingw* | pw32* | os2*)
12868       # This hack is so that the source file can tell whether it is being
12869       # built for inclusion in a dll (and should export symbols for example).
12870       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12871       ;;
12872
12873     darwin* | rhapsody*)
12874       # PIC is the default on this platform
12875       # Common symbols not allowed in MH_DYLIB files
12876       lt_prog_compiler_pic_F77='-fno-common'
12877       ;;
12878
12879     msdosdjgpp*)
12880       # Just because we use GCC doesn't mean we suddenly get shared libraries
12881       # on systems that don't support them.
12882       lt_prog_compiler_can_build_shared_F77=no
12883       enable_shared=no
12884       ;;
12885
12886     sysv4*MP*)
12887       if test -d /usr/nec; then
12888         lt_prog_compiler_pic_F77=-Kconform_pic
12889       fi
12890       ;;
12891
12892     hpux*)
12893       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12894       # not for PA HP-UX.
12895       case "$host_cpu" in
12896       hppa*64*|ia64*)
12897         # +Z the default
12898         ;;
12899       *)
12900         lt_prog_compiler_pic_F77='-fPIC'
12901         ;;
12902       esac
12903       ;;
12904
12905     *)
12906       lt_prog_compiler_pic_F77='-fPIC'
12907       ;;
12908     esac
12909   else
12910     # PORTME Check for flag to pass linker flags through the system compiler.
12911     case $host_os in
12912     aix*)
12913       lt_prog_compiler_wl_F77='-Wl,'
12914       if test "$host_cpu" = ia64; then
12915         # AIX 5 now supports IA64 processor
12916         lt_prog_compiler_static_F77='-Bstatic'
12917       else
12918         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12919       fi
12920       ;;
12921
12922     mingw* | pw32* | os2*)
12923       # This hack is so that the source file can tell whether it is being
12924       # built for inclusion in a dll (and should export symbols for example).
12925       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12926       ;;
12927
12928     hpux9* | hpux10* | hpux11*)
12929       lt_prog_compiler_wl_F77='-Wl,'
12930       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12931       # not for PA HP-UX.
12932       case "$host_cpu" in
12933       hppa*64*|ia64*)
12934         # +Z the default
12935         ;;
12936       *)
12937         lt_prog_compiler_pic_F77='+Z'
12938         ;;
12939       esac
12940       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12941       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12942       ;;
12943
12944     irix5* | irix6* | nonstopux*)
12945       lt_prog_compiler_wl_F77='-Wl,'
12946       # PIC (with -KPIC) is the default.
12947       lt_prog_compiler_static_F77='-non_shared'
12948       ;;
12949
12950     newsos6)
12951       lt_prog_compiler_pic_F77='-KPIC'
12952       lt_prog_compiler_static_F77='-Bstatic'
12953       ;;
12954
12955     linux*)
12956       case $CC in
12957       icc|ecc)
12958         lt_prog_compiler_wl_F77='-Wl,'
12959         lt_prog_compiler_pic_F77='-KPIC'
12960         lt_prog_compiler_static_F77='-static'
12961         ;;
12962       ccc)
12963         lt_prog_compiler_wl_F77='-Wl,'
12964         # All Alpha code is PIC.
12965         lt_prog_compiler_static_F77='-non_shared'
12966         ;;
12967       esac
12968       ;;
12969
12970     osf3* | osf4* | osf5*)
12971       lt_prog_compiler_wl_F77='-Wl,'
12972       # All OSF/1 code is PIC.
12973       lt_prog_compiler_static_F77='-non_shared'
12974       ;;
12975
12976     sco3.2v5*)
12977       lt_prog_compiler_pic_F77='-Kpic'
12978       lt_prog_compiler_static_F77='-dn'
12979       ;;
12980
12981     solaris*)
12982       lt_prog_compiler_wl_F77='-Wl,'
12983       lt_prog_compiler_pic_F77='-KPIC'
12984       lt_prog_compiler_static_F77='-Bstatic'
12985       ;;
12986
12987     sunos4*)
12988       lt_prog_compiler_wl_F77='-Qoption ld '
12989       lt_prog_compiler_pic_F77='-PIC'
12990       lt_prog_compiler_static_F77='-Bstatic'
12991       ;;
12992
12993     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12994       lt_prog_compiler_wl_F77='-Wl,'
12995       lt_prog_compiler_pic_F77='-KPIC'
12996       lt_prog_compiler_static_F77='-Bstatic'
12997       ;;
12998
12999     sysv4*MP*)
13000       if test -d /usr/nec ;then
13001         lt_prog_compiler_pic_F77='-Kconform_pic'
13002         lt_prog_compiler_static_F77='-Bstatic'
13003       fi
13004       ;;
13005
13006     uts4*)
13007       lt_prog_compiler_pic_F77='-pic'
13008       lt_prog_compiler_static_F77='-Bstatic'
13009       ;;
13010
13011     *)
13012       lt_prog_compiler_can_build_shared_F77=no
13013       ;;
13014     esac
13015   fi
13016
13017 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13018 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13019
13020 #
13021 # Check to make sure the PIC flag actually works.
13022 #
13023 if test -n "$lt_prog_compiler_pic_F77"; then
13024   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13025 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13026 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13027   echo $ECHO_N "(cached) $ECHO_C" >&6
13028 else
13029   lt_prog_compiler_pic_works_F77=no
13030   ac_outfile=conftest.$ac_objext
13031    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13032    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13033    # Insert the option either (1) after the last *FLAGS variable, or
13034    # (2) before a word containing "conftest.", or (3) at the end.
13035    # Note that $ac_compile itself does not contain backslashes and begins
13036    # with a dollar sign (not a hyphen), so the echo should work correctly.
13037    # The option is referenced via a variable to avoid confusing sed.
13038    lt_compile=`echo "$ac_compile" | $SED \
13039    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13040    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13041    -e 's:$: $lt_compiler_flag:'`
13042    (eval echo "\"\$as_me:13042: $lt_compile\"" >&5)
13043    (eval "$lt_compile" 2>conftest.err)
13044    ac_status=$?
13045    cat conftest.err >&5
13046    echo "$as_me:13046: \$? = $ac_status" >&5
13047    if (exit $ac_status) && test -s "$ac_outfile"; then
13048      # The compiler can only warn and ignore the option if not recognized
13049      # So say no if there are warnings
13050      if test ! -s conftest.err; then
13051        lt_prog_compiler_pic_works_F77=yes
13052      fi
13053    fi
13054    $rm conftest*
13055
13056 fi
13057 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13058 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13059
13060 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13061     case $lt_prog_compiler_pic_F77 in
13062      "" | " "*) ;;
13063      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13064      esac
13065 else
13066     lt_prog_compiler_pic_F77=
13067      lt_prog_compiler_can_build_shared_F77=no
13068 fi
13069
13070 fi
13071 case "$host_os" in
13072   # For platforms which do not support PIC, -DPIC is meaningless:
13073   *djgpp*)
13074     lt_prog_compiler_pic_F77=
13075     ;;
13076   *)
13077     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13078     ;;
13079 esac
13080
13081 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13082 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13083 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13084   echo $ECHO_N "(cached) $ECHO_C" >&6
13085 else
13086   lt_cv_prog_compiler_c_o_F77=no
13087    $rm -r conftest 2>/dev/null
13088    mkdir conftest
13089    cd conftest
13090    mkdir out
13091    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13092
13093    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13094    # that will create temporary files in the current directory regardless of
13095    # the output directory.  Thus, making CWD read-only will cause this test
13096    # to fail, enabling locking or at least warning the user not to do parallel
13097    # builds.
13098    chmod -w .
13099
13100    lt_compiler_flag="-o out/conftest2.$ac_objext"
13101    # Insert the option either (1) after the last *FLAGS variable, or
13102    # (2) before a word containing "conftest.", or (3) at the end.
13103    # Note that $ac_compile itself does not contain backslashes and begins
13104    # with a dollar sign (not a hyphen), so the echo should work correctly.
13105    lt_compile=`echo "$ac_compile" | $SED \
13106    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13108    -e 's:$: $lt_compiler_flag:'`
13109    (eval echo "\"\$as_me:13109: $lt_compile\"" >&5)
13110    (eval "$lt_compile" 2>out/conftest.err)
13111    ac_status=$?
13112    cat out/conftest.err >&5
13113    echo "$as_me:13113: \$? = $ac_status" >&5
13114    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13115    then
13116      # The compiler can only warn and ignore the option if not recognized
13117      # So say no if there are warnings
13118      if test ! -s out/conftest.err; then
13119        lt_cv_prog_compiler_c_o_F77=yes
13120      fi
13121    fi
13122    chmod u+w .
13123    $rm conftest* out/*
13124    rmdir out
13125    cd ..
13126    rmdir conftest
13127    $rm conftest*
13128
13129 fi
13130 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13131 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13132
13133
13134 hard_links="nottested"
13135 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13136   # do not overwrite the value of need_locks provided by the user
13137   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13138 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13139   hard_links=yes
13140   $rm conftest*
13141   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13142   touch conftest.a
13143   ln conftest.a conftest.b 2>&5 || hard_links=no
13144   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13145   echo "$as_me:$LINENO: result: $hard_links" >&5
13146 echo "${ECHO_T}$hard_links" >&6
13147   if test "$hard_links" = no; then
13148     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13149 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13150     need_locks=warn
13151   fi
13152 else
13153   need_locks=no
13154 fi
13155
13156 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13157 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13158
13159   runpath_var=
13160   allow_undefined_flag_F77=
13161   enable_shared_with_static_runtimes_F77=no
13162   archive_cmds_F77=
13163   archive_expsym_cmds_F77=
13164   old_archive_From_new_cmds_F77=
13165   old_archive_from_expsyms_cmds_F77=
13166   export_dynamic_flag_spec_F77=
13167   whole_archive_flag_spec_F77=
13168   thread_safe_flag_spec_F77=
13169   hardcode_libdir_flag_spec_F77=
13170   hardcode_libdir_flag_spec_ld_F77=
13171   hardcode_libdir_separator_F77=
13172   hardcode_direct_F77=no
13173   hardcode_minus_L_F77=no
13174   hardcode_shlibpath_var_F77=unsupported
13175   link_all_deplibs_F77=unknown
13176   hardcode_automatic_F77=no
13177   module_cmds_F77=
13178   module_expsym_cmds_F77=
13179   always_export_symbols_F77=no
13180   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13181   # include_expsyms should be a list of space-separated symbols to be *always*
13182   # included in the symbol list
13183   include_expsyms_F77=
13184   # exclude_expsyms can be an extended regexp of symbols to exclude
13185   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13186   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13187   # as well as any symbol that contains `d'.
13188   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13189   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13190   # platforms (ab)use it in PIC code, but their linkers get confused if
13191   # the symbol is explicitly referenced.  Since portable code cannot
13192   # rely on this symbol name, it's probably fine to never include it in
13193   # preloaded symbol tables.
13194   extract_expsyms_cmds=
13195
13196   case $host_os in
13197   cygwin* | mingw* | pw32*)
13198     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13199     # When not using gcc, we currently assume that we are using
13200     # Microsoft Visual C++.
13201     if test "$GCC" != yes; then
13202       with_gnu_ld=no
13203     fi
13204     ;;
13205   openbsd*)
13206     with_gnu_ld=no
13207     ;;
13208   esac
13209
13210   ld_shlibs_F77=yes
13211   if test "$with_gnu_ld" = yes; then
13212     # If archive_cmds runs LD, not CC, wlarc should be empty
13213     wlarc='${wl}'
13214
13215     # See if GNU ld supports shared libraries.
13216     case $host_os in
13217     aix3* | aix4* | aix5*)
13218       # On AIX/PPC, the GNU linker is very broken
13219       if test "$host_cpu" != ia64; then
13220         ld_shlibs_F77=no
13221         cat <<EOF 1>&2
13222
13223 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13224 *** to be unable to reliably create shared libraries on AIX.
13225 *** Therefore, libtool is disabling shared libraries support.  If you
13226 *** really care for shared libraries, you may want to modify your PATH
13227 *** so that a non-GNU linker is found, and then restart.
13228
13229 EOF
13230       fi
13231       ;;
13232
13233     amigaos*)
13234       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)'
13235       hardcode_libdir_flag_spec_F77='-L$libdir'
13236       hardcode_minus_L_F77=yes
13237
13238       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13239       # that the semantics of dynamic libraries on AmigaOS, at least up
13240       # to version 4, is to share data among multiple programs linked
13241       # with the same dynamic library.  Since this doesn't match the
13242       # behavior of shared libraries on other platforms, we can't use
13243       # them.
13244       ld_shlibs_F77=no
13245       ;;
13246
13247     beos*)
13248       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13249         allow_undefined_flag_F77=unsupported
13250         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13251         # support --undefined.  This deserves some investigation.  FIXME
13252         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13253       else
13254         ld_shlibs_F77=no
13255       fi
13256       ;;
13257
13258     cygwin* | mingw* | pw32*)
13259       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13260       # as there is no search path for DLLs.
13261       hardcode_libdir_flag_spec_F77='-L$libdir'
13262       allow_undefined_flag_F77=unsupported
13263       always_export_symbols_F77=no
13264       enable_shared_with_static_runtimes_F77=yes
13265       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13266
13267       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13268         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13269         # If the export-symbols file already is a .def file (1st line
13270         # is EXPORTS), use it as is; otherwise, prepend...
13271         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13272           cp $export_symbols $output_objdir/$soname.def;
13273         else
13274           echo EXPORTS > $output_objdir/$soname.def;
13275           cat $export_symbols >> $output_objdir/$soname.def;
13276         fi~
13277         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13278       else
13279         ld_shlibs=no
13280       fi
13281       ;;
13282
13283     netbsd*)
13284       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13285         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13286         wlarc=
13287       else
13288         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13290       fi
13291       ;;
13292
13293     solaris* | sysv5*)
13294       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13295         ld_shlibs_F77=no
13296         cat <<EOF 1>&2
13297
13298 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13299 *** create shared libraries on Solaris systems.  Therefore, libtool
13300 *** is disabling shared libraries support.  We urge you to upgrade GNU
13301 *** binutils to release 2.9.1 or newer.  Another option is to modify
13302 *** your PATH or compiler configuration so that the native linker is
13303 *** used, and then restart.
13304
13305 EOF
13306       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13307         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13308         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13309       else
13310         ld_shlibs_F77=no
13311       fi
13312       ;;
13313
13314     sunos4*)
13315       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13316       wlarc=
13317       hardcode_direct_F77=yes
13318       hardcode_shlibpath_var_F77=no
13319       ;;
13320
13321     *)
13322       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13323         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13324         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13325       else
13326         ld_shlibs_F77=no
13327       fi
13328       ;;
13329     esac
13330
13331     if test "$ld_shlibs_F77" = yes; then
13332       runpath_var=LD_RUN_PATH
13333       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13334       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13335       # ancient GNU ld didn't support --whole-archive et. al.
13336       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13337         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13338       else
13339         whole_archive_flag_spec_F77=
13340       fi
13341     fi
13342   else
13343     # PORTME fill in a description of your system's linker (not GNU ld)
13344     case $host_os in
13345     aix3*)
13346       allow_undefined_flag_F77=unsupported
13347       always_export_symbols_F77=yes
13348       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'
13349       # Note: this linker hardcodes the directories in LIBPATH if there
13350       # are no directories specified by -L.
13351       hardcode_minus_L_F77=yes
13352       if test "$GCC" = yes && test -z "$link_static_flag"; then
13353         # Neither direct hardcoding nor static linking is supported with a
13354         # broken collect2.
13355         hardcode_direct_F77=unsupported
13356       fi
13357       ;;
13358
13359     aix4* | aix5*)
13360       if test "$host_cpu" = ia64; then
13361         # On IA64, the linker does run time linking by default, so we don't
13362         # have to do anything special.
13363         aix_use_runtimelinking=no
13364         exp_sym_flag='-Bexport'
13365         no_entry_flag=""
13366       else
13367         # If we're using GNU nm, then we don't want the "-C" option.
13368         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13369         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13370           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'
13371         else
13372           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'
13373         fi
13374         aix_use_runtimelinking=no
13375
13376         # Test if we are trying to use run time linking or normal
13377         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13378         # need to do runtime linking.
13379         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13380           for ld_flag in $LDFLAGS; do
13381           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13382             aix_use_runtimelinking=yes
13383             break
13384           fi
13385           done
13386         esac
13387
13388         exp_sym_flag='-bexport'
13389         no_entry_flag='-bnoentry'
13390       fi
13391
13392       # When large executables or shared objects are built, AIX ld can
13393       # have problems creating the table of contents.  If linking a library
13394       # or program results in "error TOC overflow" add -mminimal-toc to
13395       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13396       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13397
13398       archive_cmds_F77=''
13399       hardcode_direct_F77=yes
13400       hardcode_libdir_separator_F77=':'
13401       link_all_deplibs_F77=yes
13402
13403       if test "$GCC" = yes; then
13404         case $host_os in aix4.012|aix4.012.*)
13405         # We only want to do this on AIX 4.2 and lower, the check
13406         # below for broken collect2 doesn't work under 4.3+
13407           collect2name=`${CC} -print-prog-name=collect2`
13408           if test -f "$collect2name" && \
13409            strings "$collect2name" | grep resolve_lib_name >/dev/null
13410           then
13411           # We have reworked collect2
13412           hardcode_direct_F77=yes
13413           else
13414           # We have old collect2
13415           hardcode_direct_F77=unsupported
13416           # It fails to find uninstalled libraries when the uninstalled
13417           # path is not listed in the libpath.  Setting hardcode_minus_L
13418           # to unsupported forces relinking
13419           hardcode_minus_L_F77=yes
13420           hardcode_libdir_flag_spec_F77='-L$libdir'
13421           hardcode_libdir_separator_F77=
13422           fi
13423         esac
13424         shared_flag='-shared'
13425       else
13426         # not using gcc
13427         if test "$host_cpu" = ia64; then
13428         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13429         # chokes on -Wl,-G. The following line is correct:
13430           shared_flag='-G'
13431         else
13432         if test "$aix_use_runtimelinking" = yes; then
13433             shared_flag='${wl}-G'
13434           else
13435             shared_flag='${wl}-bM:SRE'
13436         fi
13437         fi
13438       fi
13439
13440       # It seems that -bexpall does not export symbols beginning with
13441       # underscore (_), so it is better to generate a list of symbols to export.
13442       always_export_symbols_F77=yes
13443       if test "$aix_use_runtimelinking" = yes; then
13444         # Warning - without using the other runtime loading flags (-brtl),
13445         # -berok will link without error, but may produce a broken library.
13446         allow_undefined_flag_F77='-berok'
13447        # Determine the default libpath from the value encoded in an empty executable.
13448        cat >conftest.$ac_ext <<_ACEOF
13449       program main
13450
13451       end
13452 _ACEOF
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455   (eval $ac_link) 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); } &&
13459          { ac_try='test -s conftest$ac_exeext'
13460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461   (eval $ac_try) 2>&5
13462   ac_status=$?
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); }; }; then
13465
13466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13467 }'`
13468 # Check for a 64-bit object if we didn't find anything.
13469 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; }
13470 }'`; fi
13471 else
13472   echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13474
13475 fi
13476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13478
13479        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13480         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"
13481        else
13482         if test "$host_cpu" = ia64; then
13483           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13484           allow_undefined_flag_F77="-z nodefs"
13485           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"
13486         else
13487          # Determine the default libpath from the value encoded in an empty executable.
13488          cat >conftest.$ac_ext <<_ACEOF
13489       program main
13490
13491       end
13492 _ACEOF
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13495   (eval $ac_link) 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); } &&
13499          { ac_try='test -s conftest$ac_exeext'
13500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501   (eval $ac_try) 2>&5
13502   ac_status=$?
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); }; }; then
13505
13506 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13507 }'`
13508 # Check for a 64-bit object if we didn't find anything.
13509 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; }
13510 }'`; fi
13511 else
13512   echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 fi
13516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13518
13519          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13520           # Warning - without using the other run time loading flags,
13521           # -berok will link without error, but may produce a broken library.
13522           no_undefined_flag_F77=' ${wl}-bernotok'
13523           allow_undefined_flag_F77=' ${wl}-berok'
13524           # -bexpall does not export symbols beginning with underscore (_)
13525           always_export_symbols_F77=yes
13526           # Exported symbols can be pulled into shared objects from archives
13527           whole_archive_flag_spec_F77=' '
13528           archive_cmds_need_lc_F77=yes
13529           # This is similar to how AIX traditionally builds it's shared libraries.
13530           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'
13531         fi
13532       fi
13533       ;;
13534
13535     amigaos*)
13536       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)'
13537       hardcode_libdir_flag_spec_F77='-L$libdir'
13538       hardcode_minus_L_F77=yes
13539       # see comment about different semantics on the GNU ld section
13540       ld_shlibs_F77=no
13541       ;;
13542
13543     bsdi4*)
13544       export_dynamic_flag_spec_F77=-rdynamic
13545       ;;
13546
13547     cygwin* | mingw* | pw32*)
13548       # When not using gcc, we currently assume that we are using
13549       # Microsoft Visual C++.
13550       # hardcode_libdir_flag_spec is actually meaningless, as there is
13551       # no search path for DLLs.
13552       hardcode_libdir_flag_spec_F77=' '
13553       allow_undefined_flag_F77=unsupported
13554       # Tell ltmain to make .lib files, not .a files.
13555       libext=lib
13556       # Tell ltmain to make .dll files, not .so files.
13557       shrext=".dll"
13558       # FIXME: Setting linknames here is a bad hack.
13559       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13560       # The linker will automatically build a .lib file if we build a DLL.
13561       old_archive_From_new_cmds_F77='true'
13562       # FIXME: Should let the user specify the lib program.
13563       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13564       fix_srcfile_path='`cygpath -w "$srcfile"`'
13565       enable_shared_with_static_runtimes_F77=yes
13566       ;;
13567
13568     darwin* | rhapsody*)
13569     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13570       archive_cmds_need_lc_F77=no
13571       case "$host_os" in
13572       rhapsody* | darwin1.[012])
13573         allow_undefined_flag_F77='-undefined suppress'
13574         ;;
13575       *) # Darwin 1.3 on
13576         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13577         ;;
13578       esac
13579       # FIXME: Relying on posixy $() will cause problems for
13580       #        cross-compilation, but unfortunately the echo tests do not
13581       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13582       #        `"' quotes if we put them in here... so don't!
13583         lt_int_apple_cc_single_mod=no
13584         output_verbose_link_cmd='echo'
13585         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13586           lt_int_apple_cc_single_mod=yes
13587         fi
13588         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13589           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13590         else
13591         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'
13592       fi
13593       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13594       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13595         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13596           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}'
13597         else
13598           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}'
13599         fi
13600           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}'
13601       hardcode_direct_F77=no
13602       hardcode_automatic_F77=yes
13603       hardcode_shlibpath_var_F77=unsupported
13604       whole_archive_flag_spec_F77='-all_load $convenience'
13605       link_all_deplibs_F77=yes
13606     fi
13607       ;;
13608
13609     dgux*)
13610       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13611       hardcode_libdir_flag_spec_F77='-L$libdir'
13612       hardcode_shlibpath_var_F77=no
13613       ;;
13614
13615     freebsd1*)
13616       ld_shlibs_F77=no
13617       ;;
13618
13619     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13620     # support.  Future versions do this automatically, but an explicit c++rt0.o
13621     # does not break anything, and helps significantly (at the cost of a little
13622     # extra space).
13623     freebsd2.2*)
13624       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13625       hardcode_libdir_flag_spec_F77='-R$libdir'
13626       hardcode_direct_F77=yes
13627       hardcode_shlibpath_var_F77=no
13628       ;;
13629
13630     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13631     freebsd2*)
13632       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13633       hardcode_direct_F77=yes
13634       hardcode_minus_L_F77=yes
13635       hardcode_shlibpath_var_F77=no
13636       ;;
13637
13638     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13639     freebsd*)
13640       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13641       hardcode_libdir_flag_spec_F77='-R$libdir'
13642       hardcode_direct_F77=yes
13643       hardcode_shlibpath_var_F77=no
13644       ;;
13645
13646     hpux9*)
13647       if test "$GCC" = yes; then
13648         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'
13649       else
13650         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'
13651       fi
13652       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13653       hardcode_libdir_separator_F77=:
13654       hardcode_direct_F77=yes
13655
13656       # hardcode_minus_L: Not really in the search PATH,
13657       # but as the default location of the library.
13658       hardcode_minus_L_F77=yes
13659       export_dynamic_flag_spec_F77='${wl}-E'
13660       ;;
13661
13662     hpux10* | hpux11*)
13663       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13664         case "$host_cpu" in
13665         hppa*64*|ia64*)
13666           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13667           ;;
13668         *)
13669           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13670           ;;
13671         esac
13672       else
13673         case "$host_cpu" in
13674         hppa*64*|ia64*)
13675           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13676           ;;
13677         *)
13678           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13679           ;;
13680         esac
13681       fi
13682       if test "$with_gnu_ld" = no; then
13683         case "$host_cpu" in
13684         hppa*64*)
13685           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13686           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13687           hardcode_libdir_separator_F77=:
13688           hardcode_direct_F77=no
13689           hardcode_shlibpath_var_F77=no
13690           ;;
13691         ia64*)
13692           hardcode_libdir_flag_spec_F77='-L$libdir'
13693           hardcode_direct_F77=no
13694           hardcode_shlibpath_var_F77=no
13695
13696           # hardcode_minus_L: Not really in the search PATH,
13697           # but as the default location of the library.
13698           hardcode_minus_L_F77=yes
13699           ;;
13700         *)
13701           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13702           hardcode_libdir_separator_F77=:
13703           hardcode_direct_F77=yes
13704           export_dynamic_flag_spec_F77='${wl}-E'
13705
13706           # hardcode_minus_L: Not really in the search PATH,
13707           # but as the default location of the library.
13708           hardcode_minus_L_F77=yes
13709           ;;
13710         esac
13711       fi
13712       ;;
13713
13714     irix5* | irix6* | nonstopux*)
13715       if test "$GCC" = yes; then
13716         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'
13717       else
13718         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'
13719         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13720       fi
13721       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13722       hardcode_libdir_separator_F77=:
13723       link_all_deplibs_F77=yes
13724       ;;
13725
13726     netbsd*)
13727       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13728         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13729       else
13730         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13731       fi
13732       hardcode_libdir_flag_spec_F77='-R$libdir'
13733       hardcode_direct_F77=yes
13734       hardcode_shlibpath_var_F77=no
13735       ;;
13736
13737     newsos6)
13738       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13739       hardcode_direct_F77=yes
13740       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13741       hardcode_libdir_separator_F77=:
13742       hardcode_shlibpath_var_F77=no
13743       ;;
13744
13745     openbsd*)
13746       hardcode_direct_F77=yes
13747       hardcode_shlibpath_var_F77=no
13748       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13749         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13750         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13751         export_dynamic_flag_spec_F77='${wl}-E'
13752       else
13753        case $host_os in
13754          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13755            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13756            hardcode_libdir_flag_spec_F77='-R$libdir'
13757            ;;
13758          *)
13759            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13760            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13761            ;;
13762        esac
13763       fi
13764       ;;
13765
13766     os2*)
13767       hardcode_libdir_flag_spec_F77='-L$libdir'
13768       hardcode_minus_L_F77=yes
13769       allow_undefined_flag_F77=unsupported
13770       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'
13771       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13772       ;;
13773
13774     osf3*)
13775       if test "$GCC" = yes; then
13776         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13777         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'
13778       else
13779         allow_undefined_flag_F77=' -expect_unresolved \*'
13780         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'
13781       fi
13782       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13783       hardcode_libdir_separator_F77=:
13784       ;;
13785
13786     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13787       if test "$GCC" = yes; then
13788         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13789         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13790         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13791       else
13792         allow_undefined_flag_F77=' -expect_unresolved \*'
13793         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'
13794         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~
13795         $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'
13796
13797         # Both c and cxx compiler support -rpath directly
13798         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13799       fi
13800       hardcode_libdir_separator_F77=:
13801       ;;
13802
13803     sco3.2v5*)
13804       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13805       hardcode_shlibpath_var_F77=no
13806       export_dynamic_flag_spec_F77='${wl}-Bexport'
13807       runpath_var=LD_RUN_PATH
13808       hardcode_runpath_var=yes
13809       ;;
13810
13811     solaris*)
13812       no_undefined_flag_F77=' -z text'
13813       if test "$GCC" = yes; then
13814         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13815         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13816           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13817       else
13818         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13820         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13821       fi
13822       hardcode_libdir_flag_spec_F77='-R$libdir'
13823       hardcode_shlibpath_var_F77=no
13824       case $host_os in
13825       solaris2.[0-5] | solaris2.[0-5].*) ;;
13826       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13827         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13828       esac
13829       link_all_deplibs_F77=yes
13830       ;;
13831
13832     sunos4*)
13833       if test "x$host_vendor" = xsequent; then
13834         # Use $CC to link under sequent, because it throws in some extra .o
13835         # files that make .init and .fini sections work.
13836         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13837       else
13838         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13839       fi
13840       hardcode_libdir_flag_spec_F77='-L$libdir'
13841       hardcode_direct_F77=yes
13842       hardcode_minus_L_F77=yes
13843       hardcode_shlibpath_var_F77=no
13844       ;;
13845
13846     sysv4)
13847       case $host_vendor in
13848         sni)
13849           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13850           hardcode_direct_F77=yes # is this really true???
13851         ;;
13852         siemens)
13853           ## LD is ld it makes a PLAMLIB
13854           ## CC just makes a GrossModule.
13855           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13856           reload_cmds_F77='$CC -r -o $output$reload_objs'
13857           hardcode_direct_F77=no
13858         ;;
13859         motorola)
13860           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13861           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13862         ;;
13863       esac
13864       runpath_var='LD_RUN_PATH'
13865       hardcode_shlibpath_var_F77=no
13866       ;;
13867
13868     sysv4.3*)
13869       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13870       hardcode_shlibpath_var_F77=no
13871       export_dynamic_flag_spec_F77='-Bexport'
13872       ;;
13873
13874     sysv4*MP*)
13875       if test -d /usr/nec; then
13876         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13877         hardcode_shlibpath_var_F77=no
13878         runpath_var=LD_RUN_PATH
13879         hardcode_runpath_var=yes
13880         ld_shlibs_F77=yes
13881       fi
13882       ;;
13883
13884     sysv4.2uw2*)
13885       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13886       hardcode_direct_F77=yes
13887       hardcode_minus_L_F77=no
13888       hardcode_shlibpath_var_F77=no
13889       hardcode_runpath_var=yes
13890       runpath_var=LD_RUN_PATH
13891       ;;
13892
13893    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13894       no_undefined_flag_F77='${wl}-z ${wl}text'
13895       if test "$GCC" = yes; then
13896         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13897       else
13898         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13899       fi
13900       runpath_var='LD_RUN_PATH'
13901       hardcode_shlibpath_var_F77=no
13902       ;;
13903
13904     sysv5*)
13905       no_undefined_flag_F77=' -z text'
13906       # $CC -shared without GNU ld will not create a library from C++
13907       # object files and a static libstdc++, better avoid it by now
13908       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13909       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13910                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13911       hardcode_libdir_flag_spec_F77=
13912       hardcode_shlibpath_var_F77=no
13913       runpath_var='LD_RUN_PATH'
13914       ;;
13915
13916     uts4*)
13917       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13918       hardcode_libdir_flag_spec_F77='-L$libdir'
13919       hardcode_shlibpath_var_F77=no
13920       ;;
13921
13922     *)
13923       ld_shlibs_F77=no
13924       ;;
13925     esac
13926   fi
13927
13928 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13929 echo "${ECHO_T}$ld_shlibs_F77" >&6
13930 test "$ld_shlibs_F77" = no && can_build_shared=no
13931
13932 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13933 if test "$GCC" = yes; then
13934   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13935 fi
13936
13937 #
13938 # Do we need to explicitly link libc?
13939 #
13940 case "x$archive_cmds_need_lc_F77" in
13941 x|xyes)
13942   # Assume -lc should be added
13943   archive_cmds_need_lc_F77=yes
13944
13945   if test "$enable_shared" = yes && test "$GCC" = yes; then
13946     case $archive_cmds_F77 in
13947     *'~'*)
13948       # FIXME: we may have to deal with multi-command sequences.
13949       ;;
13950     '$CC '*)
13951       # Test whether the compiler implicitly links with -lc since on some
13952       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13953       # to ld, don't add -lc before -lgcc.
13954       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13955 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13956       $rm conftest*
13957       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13958
13959       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960   (eval $ac_compile) 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); } 2>conftest.err; then
13964         soname=conftest
13965         lib=conftest
13966         libobjs=conftest.$ac_objext
13967         deplibs=
13968         wl=$lt_prog_compiler_wl_F77
13969         compiler_flags=-v
13970         linker_flags=-v
13971         verstring=
13972         output_objdir=.
13973         libname=conftest
13974         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13975         allow_undefined_flag_F77=
13976         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13977   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13978   ac_status=$?
13979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980   (exit $ac_status); }
13981         then
13982           archive_cmds_need_lc_F77=no
13983         else
13984           archive_cmds_need_lc_F77=yes
13985         fi
13986         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13987       else
13988         cat conftest.err 1>&5
13989       fi
13990       $rm conftest*
13991       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13992 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13993       ;;
13994     esac
13995   fi
13996   ;;
13997 esac
13998
13999 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14000 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14001 hardcode_action_F77=
14002 if test -n "$hardcode_libdir_flag_spec_F77" || \
14003    test -n "$runpath_var F77" || \
14004    test "X$hardcode_automatic_F77"="Xyes" ; then
14005
14006   # We can hardcode non-existant directories.
14007   if test "$hardcode_direct_F77" != no &&
14008      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14009      # have to relink, otherwise we might link with an installed library
14010      # when we should be linking with a yet-to-be-installed one
14011      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14012      test "$hardcode_minus_L_F77" != no; then
14013     # Linking always hardcodes the temporary library directory.
14014     hardcode_action_F77=relink
14015   else
14016     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14017     hardcode_action_F77=immediate
14018   fi
14019 else
14020   # We cannot hardcode anything, or else we can only hardcode existing
14021   # directories.
14022   hardcode_action_F77=unsupported
14023 fi
14024 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14025 echo "${ECHO_T}$hardcode_action_F77" >&6
14026
14027 if test "$hardcode_action_F77" = relink; then
14028   # Fast installation is not supported
14029   enable_fast_install=no
14030 elif test "$shlibpath_overrides_runpath" = yes ||
14031      test "$enable_shared" = no; then
14032   # Fast installation is not necessary
14033   enable_fast_install=needless
14034 fi
14035
14036 striplib=
14037 old_striplib=
14038 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14039 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14040 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14041   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14042   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14043   echo "$as_me:$LINENO: result: yes" >&5
14044 echo "${ECHO_T}yes" >&6
14045 else
14046 # FIXME - insert some real tests, host_os isn't really good enough
14047   case $host_os in
14048    darwin*)
14049        if test -n "$STRIP" ; then
14050          striplib="$STRIP -x"
14051          echo "$as_me:$LINENO: result: yes" >&5
14052 echo "${ECHO_T}yes" >&6
14053        else
14054   echo "$as_me:$LINENO: result: no" >&5
14055 echo "${ECHO_T}no" >&6
14056 fi
14057        ;;
14058    *)
14059   echo "$as_me:$LINENO: result: no" >&5
14060 echo "${ECHO_T}no" >&6
14061     ;;
14062   esac
14063 fi
14064
14065 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14066 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14067 library_names_spec=
14068 libname_spec='lib$name'
14069 soname_spec=
14070 shrext=".so"
14071 postinstall_cmds=
14072 postuninstall_cmds=
14073 finish_cmds=
14074 finish_eval=
14075 shlibpath_var=
14076 shlibpath_overrides_runpath=unknown
14077 version_type=none
14078 dynamic_linker="$host_os ld.so"
14079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14080 if test "$GCC" = yes; then
14081   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14082   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14083     # if the path contains ";" then we assume it to be the separator
14084     # otherwise default to the standard path separator (i.e. ":") - it is
14085     # assumed that no part of a normal pathname contains ";" but that should
14086     # okay in the real world where ";" in dirpaths is itself problematic.
14087     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14088   else
14089     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14090   fi
14091 else
14092   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14093 fi
14094 need_lib_prefix=unknown
14095 hardcode_into_libs=no
14096
14097 # when you set need_version to no, make sure it does not cause -set_version
14098 # flags to be left without arguments
14099 need_version=unknown
14100
14101 case $host_os in
14102 aix3*)
14103   version_type=linux
14104   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14105   shlibpath_var=LIBPATH
14106
14107   # AIX 3 has no versioning support, so we append a major version to the name.
14108   soname_spec='${libname}${release}${shared_ext}$major'
14109   ;;
14110
14111 aix4* | aix5*)
14112   version_type=linux
14113   need_lib_prefix=no
14114   need_version=no
14115   hardcode_into_libs=yes
14116   if test "$host_cpu" = ia64; then
14117     # AIX 5 supports IA64
14118     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14119     shlibpath_var=LD_LIBRARY_PATH
14120   else
14121     # With GCC up to 2.95.x, collect2 would create an import file
14122     # for dependence libraries.  The import file would start with
14123     # the line `#! .'.  This would cause the generated library to
14124     # depend on `.', always an invalid library.  This was fixed in
14125     # development snapshots of GCC prior to 3.0.
14126     case $host_os in
14127       aix4 | aix4.[01] | aix4.[01].*)
14128       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14129            echo ' yes '
14130            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14131         :
14132       else
14133         can_build_shared=no
14134       fi
14135       ;;
14136     esac
14137     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14138     # soname into executable. Probably we can add versioning support to
14139     # collect2, so additional links can be useful in future.
14140     if test "$aix_use_runtimelinking" = yes; then
14141       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14142       # instead of lib<name>.a to let people know that these are not
14143       # typical AIX shared libraries.
14144       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14145     else
14146       # We preserve .a as extension for shared libraries through AIX4.2
14147       # and later when we are not doing run time linking.
14148       library_names_spec='${libname}${release}.a $libname.a'
14149       soname_spec='${libname}${release}${shared_ext}$major'
14150     fi
14151     shlibpath_var=LIBPATH
14152   fi
14153   ;;
14154
14155 amigaos*)
14156   library_names_spec='$libname.ixlibrary $libname.a'
14157   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14158   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'
14159   ;;
14160
14161 beos*)
14162   library_names_spec='${libname}${shared_ext}'
14163   dynamic_linker="$host_os ld.so"
14164   shlibpath_var=LIBRARY_PATH
14165   ;;
14166
14167 bsdi4*)
14168   version_type=linux
14169   need_version=no
14170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171   soname_spec='${libname}${release}${shared_ext}$major'
14172   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14173   shlibpath_var=LD_LIBRARY_PATH
14174   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14175   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14176   # the default ld.so.conf also contains /usr/contrib/lib and
14177   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14178   # libtool to hard-code these into programs
14179   ;;
14180
14181 cygwin* | mingw* | pw32*)
14182   version_type=windows
14183   shrext=".dll"
14184   need_version=no
14185   need_lib_prefix=no
14186
14187   case $GCC,$host_os in
14188   yes,cygwin* | yes,mingw* | yes,pw32*)
14189     library_names_spec='$libname.dll.a'
14190     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14191     postinstall_cmds='base_file=`basename \${file}`~
14192       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14193       dldir=$destdir/`dirname \$dlpath`~
14194       test -d \$dldir || mkdir -p \$dldir~
14195       $install_prog $dir/$dlname \$dldir/$dlname'
14196     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14197       dlpath=$dir/\$dldll~
14198        $rm \$dlpath'
14199     shlibpath_overrides_runpath=yes
14200
14201     case $host_os in
14202     cygwin*)
14203       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14204       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14205       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14206       ;;
14207     mingw*)
14208       # MinGW DLLs use traditional 'lib' prefix
14209       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14210       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14211       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14212         # It is most probably a Windows format PATH printed by
14213         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14214         # path with ; separators, and with drive letters. We can handle the
14215         # drive letters (cygwin fileutils understands them), so leave them,
14216         # especially as we might pass files found there to a mingw objdump,
14217         # which wouldn't understand a cygwinified path. Ahh.
14218         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14219       else
14220         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14221       fi
14222       ;;
14223     pw32*)
14224       # pw32 DLLs use 'pw' prefix rather than 'lib'
14225       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14226       ;;
14227     esac
14228     ;;
14229
14230   *)
14231     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14232     ;;
14233   esac
14234   dynamic_linker='Win32 ld.exe'
14235   # FIXME: first we should search . and the directory the executable is in
14236   shlibpath_var=PATH
14237   ;;
14238
14239 darwin* | rhapsody*)
14240   dynamic_linker="$host_os dyld"
14241   version_type=darwin
14242   need_lib_prefix=no
14243   need_version=no
14244   # FIXME: Relying on posixy $() will cause problems for
14245   #        cross-compilation, but unfortunately the echo tests do not
14246   #        yet detect zsh echo's removal of \ escapes.
14247   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14248   soname_spec='${libname}${release}${major}$shared_ext'
14249   shlibpath_overrides_runpath=yes
14250   shlibpath_var=DYLD_LIBRARY_PATH
14251   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14252   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14253   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14254   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"`
14255   fi
14256   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14257   ;;
14258
14259 dgux*)
14260   version_type=linux
14261   need_lib_prefix=no
14262   need_version=no
14263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14264   soname_spec='${libname}${release}${shared_ext}$major'
14265   shlibpath_var=LD_LIBRARY_PATH
14266   ;;
14267
14268 freebsd1*)
14269   dynamic_linker=no
14270   ;;
14271
14272 freebsd*)
14273   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14274   version_type=freebsd-$objformat
14275   case $version_type in
14276     freebsd-elf*)
14277       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14278       need_version=no
14279       need_lib_prefix=no
14280       ;;
14281     freebsd-*)
14282       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14283       need_version=yes
14284       ;;
14285   esac
14286   shlibpath_var=LD_LIBRARY_PATH
14287   case $host_os in
14288   freebsd2*)
14289     shlibpath_overrides_runpath=yes
14290     ;;
14291   freebsd3.01* | freebsdelf3.01*)
14292     shlibpath_overrides_runpath=yes
14293     hardcode_into_libs=yes
14294     ;;
14295   *) # from 3.2 on
14296     shlibpath_overrides_runpath=no
14297     hardcode_into_libs=yes
14298     ;;
14299   esac
14300   ;;
14301
14302 gnu*)
14303   version_type=linux
14304   need_lib_prefix=no
14305   need_version=no
14306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14307   soname_spec='${libname}${release}${shared_ext}$major'
14308   shlibpath_var=LD_LIBRARY_PATH
14309   hardcode_into_libs=yes
14310   ;;
14311
14312 hpux9* | hpux10* | hpux11*)
14313   # Give a soname corresponding to the major version so that dld.sl refuses to
14314   # link against other versions.
14315   version_type=sunos
14316   need_lib_prefix=no
14317   need_version=no
14318   case "$host_cpu" in
14319   ia64*)
14320     shrext='.so'
14321     hardcode_into_libs=yes
14322     dynamic_linker="$host_os dld.so"
14323     shlibpath_var=LD_LIBRARY_PATH
14324     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326     soname_spec='${libname}${release}${shared_ext}$major'
14327     if test "X$HPUX_IA64_MODE" = X32; then
14328       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14329     else
14330       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14331     fi
14332     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14333     ;;
14334    hppa*64*)
14335      shrext='.sl'
14336      hardcode_into_libs=yes
14337      dynamic_linker="$host_os dld.sl"
14338      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14339      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14340      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341      soname_spec='${libname}${release}${shared_ext}$major'
14342      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14343      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14344      ;;
14345    *)
14346     shrext='.sl'
14347     dynamic_linker="$host_os dld.sl"
14348     shlibpath_var=SHLIB_PATH
14349     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14351     soname_spec='${libname}${release}${shared_ext}$major'
14352     ;;
14353   esac
14354   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14355   postinstall_cmds='chmod 555 $lib'
14356   ;;
14357
14358 irix5* | irix6* | nonstopux*)
14359   case $host_os in
14360     nonstopux*) version_type=nonstopux ;;
14361     *)
14362         if test "$lt_cv_prog_gnu_ld" = yes; then
14363                 version_type=linux
14364         else
14365                 version_type=irix
14366         fi ;;
14367   esac
14368   need_lib_prefix=no
14369   need_version=no
14370   soname_spec='${libname}${release}${shared_ext}$major'
14371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14372   case $host_os in
14373   irix5* | nonstopux*)
14374     libsuff= shlibsuff=
14375     ;;
14376   *)
14377     case $LD in # libtool.m4 will add one of these switches to LD
14378     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14379       libsuff= shlibsuff= libmagic=32-bit;;
14380     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14381       libsuff=32 shlibsuff=N32 libmagic=N32;;
14382     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14383       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14384     *) libsuff= shlibsuff= libmagic=never-match;;
14385     esac
14386     ;;
14387   esac
14388   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14389   shlibpath_overrides_runpath=no
14390   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14391   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14392   hardcode_into_libs=yes
14393   ;;
14394
14395 # No shared lib support for Linux oldld, aout, or coff.
14396 linux*oldld* | linux*aout* | linux*coff*)
14397   dynamic_linker=no
14398   ;;
14399
14400 # This must be Linux ELF.
14401 linux*)
14402   version_type=linux
14403   need_lib_prefix=no
14404   need_version=no
14405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406   soname_spec='${libname}${release}${shared_ext}$major'
14407   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14408   shlibpath_var=LD_LIBRARY_PATH
14409   shlibpath_overrides_runpath=no
14410   # This implies no fast_install, which is unacceptable.
14411   # Some rework will be needed to allow for fast_install
14412   # before this can be enabled.
14413   hardcode_into_libs=yes
14414
14415   # We used to test for /lib/ld.so.1 and disable shared libraries on
14416   # powerpc, because MkLinux only supported shared libraries with the
14417   # GNU dynamic linker.  Since this was broken with cross compilers,
14418   # most powerpc-linux boxes support dynamic linking these days and
14419   # people can always --disable-shared, the test was removed, and we
14420   # assume the GNU/Linux dynamic linker is in use.
14421   dynamic_linker='GNU/Linux ld.so'
14422   ;;
14423
14424 netbsd*)
14425   version_type=sunos
14426   need_lib_prefix=no
14427   need_version=no
14428   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14430     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14431     dynamic_linker='NetBSD (a.out) ld.so'
14432   else
14433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14434     soname_spec='${libname}${release}${shared_ext}$major'
14435     dynamic_linker='NetBSD ld.elf_so'
14436   fi
14437   shlibpath_var=LD_LIBRARY_PATH
14438   shlibpath_overrides_runpath=yes
14439   hardcode_into_libs=yes
14440   ;;
14441
14442 newsos6)
14443   version_type=linux
14444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445   shlibpath_var=LD_LIBRARY_PATH
14446   shlibpath_overrides_runpath=yes
14447   ;;
14448
14449 nto-qnx)
14450   version_type=linux
14451   need_lib_prefix=no
14452   need_version=no
14453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454   soname_spec='${libname}${release}${shared_ext}$major'
14455   shlibpath_var=LD_LIBRARY_PATH
14456   shlibpath_overrides_runpath=yes
14457   ;;
14458
14459 openbsd*)
14460   version_type=sunos
14461   need_lib_prefix=no
14462   need_version=no
14463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14464   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14465   shlibpath_var=LD_LIBRARY_PATH
14466   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14467     case $host_os in
14468       openbsd2.[89] | openbsd2.[89].*)
14469         shlibpath_overrides_runpath=no
14470         ;;
14471       *)
14472         shlibpath_overrides_runpath=yes
14473         ;;
14474       esac
14475   else
14476     shlibpath_overrides_runpath=yes
14477   fi
14478   ;;
14479
14480 os2*)
14481   libname_spec='$name'
14482   shrext=".dll"
14483   need_lib_prefix=no
14484   library_names_spec='$libname${shared_ext} $libname.a'
14485   dynamic_linker='OS/2 ld.exe'
14486   shlibpath_var=LIBPATH
14487   ;;
14488
14489 osf3* | osf4* | osf5*)
14490   version_type=osf
14491   need_lib_prefix=no
14492   need_version=no
14493   soname_spec='${libname}${release}${shared_ext}$major'
14494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14495   shlibpath_var=LD_LIBRARY_PATH
14496   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14497   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14498   ;;
14499
14500 sco3.2v5*)
14501   version_type=osf
14502   soname_spec='${libname}${release}${shared_ext}$major'
14503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504   shlibpath_var=LD_LIBRARY_PATH
14505   ;;
14506
14507 solaris*)
14508   version_type=linux
14509   need_lib_prefix=no
14510   need_version=no
14511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14512   soname_spec='${libname}${release}${shared_ext}$major'
14513   shlibpath_var=LD_LIBRARY_PATH
14514   shlibpath_overrides_runpath=yes
14515   hardcode_into_libs=yes
14516   # ldd complains unless libraries are executable
14517   postinstall_cmds='chmod +x $lib'
14518   ;;
14519
14520 sunos4*)
14521   version_type=sunos
14522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14523   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14524   shlibpath_var=LD_LIBRARY_PATH
14525   shlibpath_overrides_runpath=yes
14526   if test "$with_gnu_ld" = yes; then
14527     need_lib_prefix=no
14528   fi
14529   need_version=yes
14530   ;;
14531
14532 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14533   version_type=linux
14534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535   soname_spec='${libname}${release}${shared_ext}$major'
14536   shlibpath_var=LD_LIBRARY_PATH
14537   case $host_vendor in
14538     sni)
14539       shlibpath_overrides_runpath=no
14540       need_lib_prefix=no
14541       export_dynamic_flag_spec='${wl}-Blargedynsym'
14542       runpath_var=LD_RUN_PATH
14543       ;;
14544     siemens)
14545       need_lib_prefix=no
14546       ;;
14547     motorola)
14548       need_lib_prefix=no
14549       need_version=no
14550       shlibpath_overrides_runpath=no
14551       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14552       ;;
14553   esac
14554   ;;
14555
14556 sysv4*MP*)
14557   if test -d /usr/nec ;then
14558     version_type=linux
14559     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14560     soname_spec='$libname${shared_ext}.$major'
14561     shlibpath_var=LD_LIBRARY_PATH
14562   fi
14563   ;;
14564
14565 uts4*)
14566   version_type=linux
14567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568   soname_spec='${libname}${release}${shared_ext}$major'
14569   shlibpath_var=LD_LIBRARY_PATH
14570   ;;
14571
14572 *)
14573   dynamic_linker=no
14574   ;;
14575 esac
14576 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14577 echo "${ECHO_T}$dynamic_linker" >&6
14578 test "$dynamic_linker" = no && can_build_shared=no
14579
14580
14581 # The else clause should only fire when bootstrapping the
14582 # libtool distribution, otherwise you forgot to ship ltmain.sh
14583 # with your package, and you will get complaints that there are
14584 # no rules to generate ltmain.sh.
14585 if test -f "$ltmain"; then
14586   # See if we are running on zsh, and set the options which allow our commands through
14587   # without removal of \ escapes.
14588   if test -n "${ZSH_VERSION+set}" ; then
14589     setopt NO_GLOB_SUBST
14590   fi
14591   # Now quote all the things that may contain metacharacters while being
14592   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14593   # variables and quote the copies for generation of the libtool script.
14594   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14595     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14596     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14597     deplibs_check_method reload_flag reload_cmds need_locks \
14598     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14599     lt_cv_sys_global_symbol_to_c_name_address \
14600     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14601     old_postinstall_cmds old_postuninstall_cmds \
14602     compiler_F77 \
14603     CC_F77 \
14604     LD_F77 \
14605     lt_prog_compiler_wl_F77 \
14606     lt_prog_compiler_pic_F77 \
14607     lt_prog_compiler_static_F77 \
14608     lt_prog_compiler_no_builtin_flag_F77 \
14609     export_dynamic_flag_spec_F77 \
14610     thread_safe_flag_spec_F77 \
14611     whole_archive_flag_spec_F77 \
14612     enable_shared_with_static_runtimes_F77 \
14613     old_archive_cmds_F77 \
14614     old_archive_from_new_cmds_F77 \
14615     predep_objects_F77 \
14616     postdep_objects_F77 \
14617     predeps_F77 \
14618     postdeps_F77 \
14619     compiler_lib_search_path_F77 \
14620     archive_cmds_F77 \
14621     archive_expsym_cmds_F77 \
14622     postinstall_cmds_F77 \
14623     postuninstall_cmds_F77 \
14624     old_archive_from_expsyms_cmds_F77 \
14625     allow_undefined_flag_F77 \
14626     no_undefined_flag_F77 \
14627     export_symbols_cmds_F77 \
14628     hardcode_libdir_flag_spec_F77 \
14629     hardcode_libdir_flag_spec_ld_F77 \
14630     hardcode_libdir_separator_F77 \
14631     hardcode_automatic_F77 \
14632     module_cmds_F77 \
14633     module_expsym_cmds_F77 \
14634     lt_cv_prog_compiler_c_o_F77 \
14635     exclude_expsyms_F77 \
14636     include_expsyms_F77; do
14637
14638     case $var in
14639     old_archive_cmds_F77 | \
14640     old_archive_from_new_cmds_F77 | \
14641     archive_cmds_F77 | \
14642     archive_expsym_cmds_F77 | \
14643     module_cmds_F77 | \
14644     module_expsym_cmds_F77 | \
14645     old_archive_from_expsyms_cmds_F77 | \
14646     export_symbols_cmds_F77 | \
14647     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14648     postinstall_cmds | postuninstall_cmds | \
14649     old_postinstall_cmds | old_postuninstall_cmds | \
14650     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14651       # Double-quote double-evaled strings.
14652       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14653       ;;
14654     *)
14655       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14656       ;;
14657     esac
14658   done
14659
14660   case $lt_echo in
14661   *'\$0 --fallback-echo"')
14662     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14663     ;;
14664   esac
14665
14666 cfgfile="$ofile"
14667
14668   cat <<__EOF__ >> "$cfgfile"
14669 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14670
14671 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14672
14673 # Shell to use when invoking shell scripts.
14674 SHELL=$lt_SHELL
14675
14676 # Whether or not to build shared libraries.
14677 build_libtool_libs=$enable_shared
14678
14679 # Whether or not to build static libraries.
14680 build_old_libs=$enable_static
14681
14682 # Whether or not to add -lc for building shared libraries.
14683 build_libtool_need_lc=$archive_cmds_need_lc_F77
14684
14685 # Whether or not to disallow shared libs when runtime libs are static
14686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14687
14688 # Whether or not to optimize for fast installation.
14689 fast_install=$enable_fast_install
14690
14691 # The host system.
14692 host_alias=$host_alias
14693 host=$host
14694
14695 # An echo program that does not interpret backslashes.
14696 echo=$lt_echo
14697
14698 # The archiver.
14699 AR=$lt_AR
14700 AR_FLAGS=$lt_AR_FLAGS
14701
14702 # A C compiler.
14703 LTCC=$lt_LTCC
14704
14705 # A language-specific compiler.
14706 CC=$lt_compiler_F77
14707
14708 # Is the compiler the GNU C compiler?
14709 with_gcc=$GCC_F77
14710
14711 # An ERE matcher.
14712 EGREP=$lt_EGREP
14713
14714 # The linker used to build libraries.
14715 LD=$lt_LD_F77
14716
14717 # Whether we need hard or soft links.
14718 LN_S=$lt_LN_S
14719
14720 # A BSD-compatible nm program.
14721 NM=$lt_NM
14722
14723 # A symbol stripping program
14724 STRIP=$STRIP
14725
14726 # Used to examine libraries when file_magic_cmd begins "file"
14727 MAGIC_CMD=$MAGIC_CMD
14728
14729 # Used on cygwin: DLL creation program.
14730 DLLTOOL="$DLLTOOL"
14731
14732 # Used on cygwin: object dumper.
14733 OBJDUMP="$OBJDUMP"
14734
14735 # Used on cygwin: assembler.
14736 AS="$AS"
14737
14738 # The name of the directory that contains temporary libtool files.
14739 objdir=$objdir
14740
14741 # How to create reloadable object files.
14742 reload_flag=$lt_reload_flag
14743 reload_cmds=$lt_reload_cmds
14744
14745 # How to pass a linker flag through the compiler.
14746 wl=$lt_lt_prog_compiler_wl_F77
14747
14748 # Object file suffix (normally "o").
14749 objext="$ac_objext"
14750
14751 # Old archive suffix (normally "a").
14752 libext="$libext"
14753
14754 # Shared library suffix (normally ".so").
14755 shrext='$shrext'
14756
14757 # Executable file suffix (normally "").
14758 exeext="$exeext"
14759
14760 # Additional compiler flags for building library objects.
14761 pic_flag=$lt_lt_prog_compiler_pic_F77
14762 pic_mode=$pic_mode
14763
14764 # What is the maximum length of a command?
14765 max_cmd_len=$lt_cv_sys_max_cmd_len
14766
14767 # Does compiler simultaneously support -c and -o options?
14768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14769
14770 # Must we lock files when doing compilation ?
14771 need_locks=$lt_need_locks
14772
14773 # Do we need the lib prefix for modules?
14774 need_lib_prefix=$need_lib_prefix
14775
14776 # Do we need a version for libraries?
14777 need_version=$need_version
14778
14779 # Whether dlopen is supported.
14780 dlopen_support=$enable_dlopen
14781
14782 # Whether dlopen of programs is supported.
14783 dlopen_self=$enable_dlopen_self
14784
14785 # Whether dlopen of statically linked programs is supported.
14786 dlopen_self_static=$enable_dlopen_self_static
14787
14788 # Compiler flag to prevent dynamic linking.
14789 link_static_flag=$lt_lt_prog_compiler_static_F77
14790
14791 # Compiler flag to turn off builtin functions.
14792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14793
14794 # Compiler flag to allow reflexive dlopens.
14795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14796
14797 # Compiler flag to generate shared objects directly from archives.
14798 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14799
14800 # Compiler flag to generate thread-safe objects.
14801 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14802
14803 # Library versioning type.
14804 version_type=$version_type
14805
14806 # Format of library name prefix.
14807 libname_spec=$lt_libname_spec
14808
14809 # List of archive names.  First name is the real one, the rest are links.
14810 # The last name is the one that the linker finds with -lNAME.
14811 library_names_spec=$lt_library_names_spec
14812
14813 # The coded name of the library, if different from the real name.
14814 soname_spec=$lt_soname_spec
14815
14816 # Commands used to build and install an old-style archive.
14817 RANLIB=$lt_RANLIB
14818 old_archive_cmds=$lt_old_archive_cmds_F77
14819 old_postinstall_cmds=$lt_old_postinstall_cmds
14820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14821
14822 # Create an old-style archive from a shared archive.
14823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14824
14825 # Create a temporary old-style archive to link instead of a shared archive.
14826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14827
14828 # Commands used to build and install a shared archive.
14829 archive_cmds=$lt_archive_cmds_F77
14830 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14831 postinstall_cmds=$lt_postinstall_cmds
14832 postuninstall_cmds=$lt_postuninstall_cmds
14833
14834 # Commands used to build a loadable module (assumed same as above if empty)
14835 module_cmds=$lt_module_cmds_F77
14836 module_expsym_cmds=$lt_module_expsym_cmds_F77
14837
14838 # Commands to strip libraries.
14839 old_striplib=$lt_old_striplib
14840 striplib=$lt_striplib
14841
14842 # Dependencies to place before the objects being linked to create a
14843 # shared library.
14844 predep_objects=$lt_predep_objects_F77
14845
14846 # Dependencies to place after the objects being linked to create a
14847 # shared library.
14848 postdep_objects=$lt_postdep_objects_F77
14849
14850 # Dependencies to place before the objects being linked to create a
14851 # shared library.
14852 predeps=$lt_predeps_F77
14853
14854 # Dependencies to place after the objects being linked to create a
14855 # shared library.
14856 postdeps=$lt_postdeps_F77
14857
14858 # The library search path used internally by the compiler when linking
14859 # a shared library.
14860 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14861
14862 # Method to check whether dependent libraries are shared objects.
14863 deplibs_check_method=$lt_deplibs_check_method
14864
14865 # Command to use when deplibs_check_method == file_magic.
14866 file_magic_cmd=$lt_file_magic_cmd
14867
14868 # Flag that allows shared libraries with undefined symbols to be built.
14869 allow_undefined_flag=$lt_allow_undefined_flag_F77
14870
14871 # Flag that forces no undefined symbols.
14872 no_undefined_flag=$lt_no_undefined_flag_F77
14873
14874 # Commands used to finish a libtool library installation in a directory.
14875 finish_cmds=$lt_finish_cmds
14876
14877 # Same as above, but a single script fragment to be evaled but not shown.
14878 finish_eval=$lt_finish_eval
14879
14880 # Take the output of nm and produce a listing of raw symbols and C names.
14881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14882
14883 # Transform the output of nm in a proper C declaration
14884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14885
14886 # Transform the output of nm in a C name address pair
14887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14888
14889 # This is the shared library runtime path variable.
14890 runpath_var=$runpath_var
14891
14892 # This is the shared library path variable.
14893 shlibpath_var=$shlibpath_var
14894
14895 # Is shlibpath searched before the hard-coded library search path?
14896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14897
14898 # How to hardcode a shared library path into an executable.
14899 hardcode_action=$hardcode_action_F77
14900
14901 # Whether we should hardcode library paths into libraries.
14902 hardcode_into_libs=$hardcode_into_libs
14903
14904 # Flag to hardcode \$libdir into a binary during linking.
14905 # This must work even if \$libdir does not exist.
14906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14907
14908 # If ld is used when linking, flag to hardcode \$libdir into
14909 # a binary during linking. This must work even if \$libdir does
14910 # not exist.
14911 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14912
14913 # Whether we need a single -rpath flag with a separated argument.
14914 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14915
14916 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14917 # resulting binary.
14918 hardcode_direct=$hardcode_direct_F77
14919
14920 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14921 # resulting binary.
14922 hardcode_minus_L=$hardcode_minus_L_F77
14923
14924 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14925 # the resulting binary.
14926 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14927
14928 # Set to yes if building a shared library automatically hardcodes DIR into the library
14929 # and all subsequent libraries and executables linked against it.
14930 hardcode_automatic=$hardcode_automatic_F77
14931
14932 # Variables whose values should be saved in libtool wrapper scripts and
14933 # restored at relink time.
14934 variables_saved_for_relink="$variables_saved_for_relink"
14935
14936 # Whether libtool must link a program against all its dependency libraries.
14937 link_all_deplibs=$link_all_deplibs_F77
14938
14939 # Compile-time system search path for libraries
14940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14941
14942 # Run-time system search path for libraries
14943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14944
14945 # Fix the shell variable \$srcfile for the compiler.
14946 fix_srcfile_path="$fix_srcfile_path_F77"
14947
14948 # Set to yes if exported symbols are required.
14949 always_export_symbols=$always_export_symbols_F77
14950
14951 # The commands to list exported symbols.
14952 export_symbols_cmds=$lt_export_symbols_cmds_F77
14953
14954 # The commands to extract the exported symbol list from a shared archive.
14955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14956
14957 # Symbols that should not be listed in the preloaded symbols.
14958 exclude_expsyms=$lt_exclude_expsyms_F77
14959
14960 # Symbols that must always be exported.
14961 include_expsyms=$lt_include_expsyms_F77
14962
14963 # ### END LIBTOOL TAG CONFIG: $tagname
14964
14965 __EOF__
14966
14967
14968 else
14969   # If there is no Makefile yet, we rely on a make rule to execute
14970   # `config.status --recheck' to rerun these tests and create the
14971   # libtool script then.
14972   test -f Makefile && make "$ltmain"
14973 fi
14974
14975
14976 ac_ext=c
14977 ac_cpp='$CPP $CPPFLAGS'
14978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14981
14982 CC="$lt_save_CC"
14983
14984         else
14985           tagname=""
14986         fi
14987         ;;
14988
14989       GCJ)
14990         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14991
14992
14993
14994 # Source file extension for Java test sources.
14995 ac_ext=java
14996
14997 # Object file extension for compiled Java test sources.
14998 objext=o
14999 objext_GCJ=$objext
15000
15001 # Code to be used in simple compile tests
15002 lt_simple_compile_test_code="class foo {}\n"
15003
15004 # Code to be used in simple link tests
15005 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15006
15007 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15008
15009 # If no C compiler was specified, use CC.
15010 LTCC=${LTCC-"$CC"}
15011
15012 # Allow CC to be a program name with arguments.
15013 compiler=$CC
15014
15015
15016 # Allow CC to be a program name with arguments.
15017 lt_save_CC="$CC"
15018 CC=${GCJ-"gcj"}
15019 compiler=$CC
15020 compiler_GCJ=$CC
15021
15022 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15023 archive_cmds_need_lc_GCJ=no
15024
15025 ## CAVEAT EMPTOR:
15026 ## There is no encapsulation within the following macros, do not change
15027 ## the running order or otherwise move them around unless you know exactly
15028 ## what you are doing...
15029
15030 lt_prog_compiler_no_builtin_flag_GCJ=
15031
15032 if test "$GCC" = yes; then
15033   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15034
15035   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15036 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15037 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15038   echo $ECHO_N "(cached) $ECHO_C" >&6
15039 else
15040   lt_cv_prog_compiler_rtti_exceptions=no
15041   ac_outfile=conftest.$ac_objext
15042    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15043    lt_compiler_flag="-fno-rtti -fno-exceptions"
15044    # Insert the option either (1) after the last *FLAGS variable, or
15045    # (2) before a word containing "conftest.", or (3) at the end.
15046    # Note that $ac_compile itself does not contain backslashes and begins
15047    # with a dollar sign (not a hyphen), so the echo should work correctly.
15048    # The option is referenced via a variable to avoid confusing sed.
15049    lt_compile=`echo "$ac_compile" | $SED \
15050    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15052    -e 's:$: $lt_compiler_flag:'`
15053    (eval echo "\"\$as_me:15053: $lt_compile\"" >&5)
15054    (eval "$lt_compile" 2>conftest.err)
15055    ac_status=$?
15056    cat conftest.err >&5
15057    echo "$as_me:15057: \$? = $ac_status" >&5
15058    if (exit $ac_status) && test -s "$ac_outfile"; then
15059      # The compiler can only warn and ignore the option if not recognized
15060      # So say no if there are warnings
15061      if test ! -s conftest.err; then
15062        lt_cv_prog_compiler_rtti_exceptions=yes
15063      fi
15064    fi
15065    $rm conftest*
15066
15067 fi
15068 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15069 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15070
15071 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15072     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15073 else
15074     :
15075 fi
15076
15077 fi
15078
15079 lt_prog_compiler_wl_GCJ=
15080 lt_prog_compiler_pic_GCJ=
15081 lt_prog_compiler_static_GCJ=
15082
15083 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15084 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15085
15086   if test "$GCC" = yes; then
15087     lt_prog_compiler_wl_GCJ='-Wl,'
15088     lt_prog_compiler_static_GCJ='-static'
15089
15090     case $host_os in
15091       aix*)
15092       # All AIX code is PIC.
15093       if test "$host_cpu" = ia64; then
15094         # AIX 5 now supports IA64 processor
15095         lt_prog_compiler_static_GCJ='-Bstatic'
15096       fi
15097       ;;
15098
15099     amigaos*)
15100       # FIXME: we need at least 68020 code to build shared libraries, but
15101       # adding the `-m68020' flag to GCC prevents building anything better,
15102       # like `-m68040'.
15103       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15104       ;;
15105
15106     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15107       # PIC is the default for these OSes.
15108       ;;
15109
15110     mingw* | pw32* | os2*)
15111       # This hack is so that the source file can tell whether it is being
15112       # built for inclusion in a dll (and should export symbols for example).
15113       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15114       ;;
15115
15116     darwin* | rhapsody*)
15117       # PIC is the default on this platform
15118       # Common symbols not allowed in MH_DYLIB files
15119       lt_prog_compiler_pic_GCJ='-fno-common'
15120       ;;
15121
15122     msdosdjgpp*)
15123       # Just because we use GCC doesn't mean we suddenly get shared libraries
15124       # on systems that don't support them.
15125       lt_prog_compiler_can_build_shared_GCJ=no
15126       enable_shared=no
15127       ;;
15128
15129     sysv4*MP*)
15130       if test -d /usr/nec; then
15131         lt_prog_compiler_pic_GCJ=-Kconform_pic
15132       fi
15133       ;;
15134
15135     hpux*)
15136       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15137       # not for PA HP-UX.
15138       case "$host_cpu" in
15139       hppa*64*|ia64*)
15140         # +Z the default
15141         ;;
15142       *)
15143         lt_prog_compiler_pic_GCJ='-fPIC'
15144         ;;
15145       esac
15146       ;;
15147
15148     *)
15149       lt_prog_compiler_pic_GCJ='-fPIC'
15150       ;;
15151     esac
15152   else
15153     # PORTME Check for flag to pass linker flags through the system compiler.
15154     case $host_os in
15155     aix*)
15156       lt_prog_compiler_wl_GCJ='-Wl,'
15157       if test "$host_cpu" = ia64; then
15158         # AIX 5 now supports IA64 processor
15159         lt_prog_compiler_static_GCJ='-Bstatic'
15160       else
15161         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15162       fi
15163       ;;
15164
15165     mingw* | pw32* | os2*)
15166       # This hack is so that the source file can tell whether it is being
15167       # built for inclusion in a dll (and should export symbols for example).
15168       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15169       ;;
15170
15171     hpux9* | hpux10* | hpux11*)
15172       lt_prog_compiler_wl_GCJ='-Wl,'
15173       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15174       # not for PA HP-UX.
15175       case "$host_cpu" in
15176       hppa*64*|ia64*)
15177         # +Z the default
15178         ;;
15179       *)
15180         lt_prog_compiler_pic_GCJ='+Z'
15181         ;;
15182       esac
15183       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15184       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15185       ;;
15186
15187     irix5* | irix6* | nonstopux*)
15188       lt_prog_compiler_wl_GCJ='-Wl,'
15189       # PIC (with -KPIC) is the default.
15190       lt_prog_compiler_static_GCJ='-non_shared'
15191       ;;
15192
15193     newsos6)
15194       lt_prog_compiler_pic_GCJ='-KPIC'
15195       lt_prog_compiler_static_GCJ='-Bstatic'
15196       ;;
15197
15198     linux*)
15199       case $CC in
15200       icc|ecc)
15201         lt_prog_compiler_wl_GCJ='-Wl,'
15202         lt_prog_compiler_pic_GCJ='-KPIC'
15203         lt_prog_compiler_static_GCJ='-static'
15204         ;;
15205       ccc)
15206         lt_prog_compiler_wl_GCJ='-Wl,'
15207         # All Alpha code is PIC.
15208         lt_prog_compiler_static_GCJ='-non_shared'
15209         ;;
15210       esac
15211       ;;
15212
15213     osf3* | osf4* | osf5*)
15214       lt_prog_compiler_wl_GCJ='-Wl,'
15215       # All OSF/1 code is PIC.
15216       lt_prog_compiler_static_GCJ='-non_shared'
15217       ;;
15218
15219     sco3.2v5*)
15220       lt_prog_compiler_pic_GCJ='-Kpic'
15221       lt_prog_compiler_static_GCJ='-dn'
15222       ;;
15223
15224     solaris*)
15225       lt_prog_compiler_wl_GCJ='-Wl,'
15226       lt_prog_compiler_pic_GCJ='-KPIC'
15227       lt_prog_compiler_static_GCJ='-Bstatic'
15228       ;;
15229
15230     sunos4*)
15231       lt_prog_compiler_wl_GCJ='-Qoption ld '
15232       lt_prog_compiler_pic_GCJ='-PIC'
15233       lt_prog_compiler_static_GCJ='-Bstatic'
15234       ;;
15235
15236     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15237       lt_prog_compiler_wl_GCJ='-Wl,'
15238       lt_prog_compiler_pic_GCJ='-KPIC'
15239       lt_prog_compiler_static_GCJ='-Bstatic'
15240       ;;
15241
15242     sysv4*MP*)
15243       if test -d /usr/nec ;then
15244         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15245         lt_prog_compiler_static_GCJ='-Bstatic'
15246       fi
15247       ;;
15248
15249     uts4*)
15250       lt_prog_compiler_pic_GCJ='-pic'
15251       lt_prog_compiler_static_GCJ='-Bstatic'
15252       ;;
15253
15254     *)
15255       lt_prog_compiler_can_build_shared_GCJ=no
15256       ;;
15257     esac
15258   fi
15259
15260 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15261 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15262
15263 #
15264 # Check to make sure the PIC flag actually works.
15265 #
15266 if test -n "$lt_prog_compiler_pic_GCJ"; then
15267   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15268 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15269 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15270   echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272   lt_prog_compiler_pic_works_GCJ=no
15273   ac_outfile=conftest.$ac_objext
15274    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15275    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15276    # Insert the option either (1) after the last *FLAGS variable, or
15277    # (2) before a word containing "conftest.", or (3) at the end.
15278    # Note that $ac_compile itself does not contain backslashes and begins
15279    # with a dollar sign (not a hyphen), so the echo should work correctly.
15280    # The option is referenced via a variable to avoid confusing sed.
15281    lt_compile=`echo "$ac_compile" | $SED \
15282    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15283    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15284    -e 's:$: $lt_compiler_flag:'`
15285    (eval echo "\"\$as_me:15285: $lt_compile\"" >&5)
15286    (eval "$lt_compile" 2>conftest.err)
15287    ac_status=$?
15288    cat conftest.err >&5
15289    echo "$as_me:15289: \$? = $ac_status" >&5
15290    if (exit $ac_status) && test -s "$ac_outfile"; then
15291      # The compiler can only warn and ignore the option if not recognized
15292      # So say no if there are warnings
15293      if test ! -s conftest.err; then
15294        lt_prog_compiler_pic_works_GCJ=yes
15295      fi
15296    fi
15297    $rm conftest*
15298
15299 fi
15300 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15301 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15302
15303 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15304     case $lt_prog_compiler_pic_GCJ in
15305      "" | " "*) ;;
15306      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15307      esac
15308 else
15309     lt_prog_compiler_pic_GCJ=
15310      lt_prog_compiler_can_build_shared_GCJ=no
15311 fi
15312
15313 fi
15314 case "$host_os" in
15315   # For platforms which do not support PIC, -DPIC is meaningless:
15316   *djgpp*)
15317     lt_prog_compiler_pic_GCJ=
15318     ;;
15319   *)
15320     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15321     ;;
15322 esac
15323
15324 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15325 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15326 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15327   echo $ECHO_N "(cached) $ECHO_C" >&6
15328 else
15329   lt_cv_prog_compiler_c_o_GCJ=no
15330    $rm -r conftest 2>/dev/null
15331    mkdir conftest
15332    cd conftest
15333    mkdir out
15334    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15335
15336    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15337    # that will create temporary files in the current directory regardless of
15338    # the output directory.  Thus, making CWD read-only will cause this test
15339    # to fail, enabling locking or at least warning the user not to do parallel
15340    # builds.
15341    chmod -w .
15342
15343    lt_compiler_flag="-o out/conftest2.$ac_objext"
15344    # Insert the option either (1) after the last *FLAGS variable, or
15345    # (2) before a word containing "conftest.", or (3) at the end.
15346    # Note that $ac_compile itself does not contain backslashes and begins
15347    # with a dollar sign (not a hyphen), so the echo should work correctly.
15348    lt_compile=`echo "$ac_compile" | $SED \
15349    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15350    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15351    -e 's:$: $lt_compiler_flag:'`
15352    (eval echo "\"\$as_me:15352: $lt_compile\"" >&5)
15353    (eval "$lt_compile" 2>out/conftest.err)
15354    ac_status=$?
15355    cat out/conftest.err >&5
15356    echo "$as_me:15356: \$? = $ac_status" >&5
15357    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15358    then
15359      # The compiler can only warn and ignore the option if not recognized
15360      # So say no if there are warnings
15361      if test ! -s out/conftest.err; then
15362        lt_cv_prog_compiler_c_o_GCJ=yes
15363      fi
15364    fi
15365    chmod u+w .
15366    $rm conftest* out/*
15367    rmdir out
15368    cd ..
15369    rmdir conftest
15370    $rm conftest*
15371
15372 fi
15373 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15374 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15375
15376
15377 hard_links="nottested"
15378 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15379   # do not overwrite the value of need_locks provided by the user
15380   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15381 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15382   hard_links=yes
15383   $rm conftest*
15384   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15385   touch conftest.a
15386   ln conftest.a conftest.b 2>&5 || hard_links=no
15387   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15388   echo "$as_me:$LINENO: result: $hard_links" >&5
15389 echo "${ECHO_T}$hard_links" >&6
15390   if test "$hard_links" = no; then
15391     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15392 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15393     need_locks=warn
15394   fi
15395 else
15396   need_locks=no
15397 fi
15398
15399 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15400 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15401
15402   runpath_var=
15403   allow_undefined_flag_GCJ=
15404   enable_shared_with_static_runtimes_GCJ=no
15405   archive_cmds_GCJ=
15406   archive_expsym_cmds_GCJ=
15407   old_archive_From_new_cmds_GCJ=
15408   old_archive_from_expsyms_cmds_GCJ=
15409   export_dynamic_flag_spec_GCJ=
15410   whole_archive_flag_spec_GCJ=
15411   thread_safe_flag_spec_GCJ=
15412   hardcode_libdir_flag_spec_GCJ=
15413   hardcode_libdir_flag_spec_ld_GCJ=
15414   hardcode_libdir_separator_GCJ=
15415   hardcode_direct_GCJ=no
15416   hardcode_minus_L_GCJ=no
15417   hardcode_shlibpath_var_GCJ=unsupported
15418   link_all_deplibs_GCJ=unknown
15419   hardcode_automatic_GCJ=no
15420   module_cmds_GCJ=
15421   module_expsym_cmds_GCJ=
15422   always_export_symbols_GCJ=no
15423   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15424   # include_expsyms should be a list of space-separated symbols to be *always*
15425   # included in the symbol list
15426   include_expsyms_GCJ=
15427   # exclude_expsyms can be an extended regexp of symbols to exclude
15428   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15429   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15430   # as well as any symbol that contains `d'.
15431   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15432   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15433   # platforms (ab)use it in PIC code, but their linkers get confused if
15434   # the symbol is explicitly referenced.  Since portable code cannot
15435   # rely on this symbol name, it's probably fine to never include it in
15436   # preloaded symbol tables.
15437   extract_expsyms_cmds=
15438
15439   case $host_os in
15440   cygwin* | mingw* | pw32*)
15441     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15442     # When not using gcc, we currently assume that we are using
15443     # Microsoft Visual C++.
15444     if test "$GCC" != yes; then
15445       with_gnu_ld=no
15446     fi
15447     ;;
15448   openbsd*)
15449     with_gnu_ld=no
15450     ;;
15451   esac
15452
15453   ld_shlibs_GCJ=yes
15454   if test "$with_gnu_ld" = yes; then
15455     # If archive_cmds runs LD, not CC, wlarc should be empty
15456     wlarc='${wl}'
15457
15458     # See if GNU ld supports shared libraries.
15459     case $host_os in
15460     aix3* | aix4* | aix5*)
15461       # On AIX/PPC, the GNU linker is very broken
15462       if test "$host_cpu" != ia64; then
15463         ld_shlibs_GCJ=no
15464         cat <<EOF 1>&2
15465
15466 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15467 *** to be unable to reliably create shared libraries on AIX.
15468 *** Therefore, libtool is disabling shared libraries support.  If you
15469 *** really care for shared libraries, you may want to modify your PATH
15470 *** so that a non-GNU linker is found, and then restart.
15471
15472 EOF
15473       fi
15474       ;;
15475
15476     amigaos*)
15477       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)'
15478       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15479       hardcode_minus_L_GCJ=yes
15480
15481       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15482       # that the semantics of dynamic libraries on AmigaOS, at least up
15483       # to version 4, is to share data among multiple programs linked
15484       # with the same dynamic library.  Since this doesn't match the
15485       # behavior of shared libraries on other platforms, we can't use
15486       # them.
15487       ld_shlibs_GCJ=no
15488       ;;
15489
15490     beos*)
15491       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15492         allow_undefined_flag_GCJ=unsupported
15493         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15494         # support --undefined.  This deserves some investigation.  FIXME
15495         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15496       else
15497         ld_shlibs_GCJ=no
15498       fi
15499       ;;
15500
15501     cygwin* | mingw* | pw32*)
15502       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15503       # as there is no search path for DLLs.
15504       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15505       allow_undefined_flag_GCJ=unsupported
15506       always_export_symbols_GCJ=no
15507       enable_shared_with_static_runtimes_GCJ=yes
15508       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15509
15510       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15511         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15512         # If the export-symbols file already is a .def file (1st line
15513         # is EXPORTS), use it as is; otherwise, prepend...
15514         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15515           cp $export_symbols $output_objdir/$soname.def;
15516         else
15517           echo EXPORTS > $output_objdir/$soname.def;
15518           cat $export_symbols >> $output_objdir/$soname.def;
15519         fi~
15520         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15521       else
15522         ld_shlibs=no
15523       fi
15524       ;;
15525
15526     netbsd*)
15527       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15528         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15529         wlarc=
15530       else
15531         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15532         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15533       fi
15534       ;;
15535
15536     solaris* | sysv5*)
15537       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15538         ld_shlibs_GCJ=no
15539         cat <<EOF 1>&2
15540
15541 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15542 *** create shared libraries on Solaris systems.  Therefore, libtool
15543 *** is disabling shared libraries support.  We urge you to upgrade GNU
15544 *** binutils to release 2.9.1 or newer.  Another option is to modify
15545 *** your PATH or compiler configuration so that the native linker is
15546 *** used, and then restart.
15547
15548 EOF
15549       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15550         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15551         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15552       else
15553         ld_shlibs_GCJ=no
15554       fi
15555       ;;
15556
15557     sunos4*)
15558       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15559       wlarc=
15560       hardcode_direct_GCJ=yes
15561       hardcode_shlibpath_var_GCJ=no
15562       ;;
15563
15564     *)
15565       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15566         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15567         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15568       else
15569         ld_shlibs_GCJ=no
15570       fi
15571       ;;
15572     esac
15573
15574     if test "$ld_shlibs_GCJ" = yes; then
15575       runpath_var=LD_RUN_PATH
15576       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15577       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15578       # ancient GNU ld didn't support --whole-archive et. al.
15579       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15580         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15581       else
15582         whole_archive_flag_spec_GCJ=
15583       fi
15584     fi
15585   else
15586     # PORTME fill in a description of your system's linker (not GNU ld)
15587     case $host_os in
15588     aix3*)
15589       allow_undefined_flag_GCJ=unsupported
15590       always_export_symbols_GCJ=yes
15591       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'
15592       # Note: this linker hardcodes the directories in LIBPATH if there
15593       # are no directories specified by -L.
15594       hardcode_minus_L_GCJ=yes
15595       if test "$GCC" = yes && test -z "$link_static_flag"; then
15596         # Neither direct hardcoding nor static linking is supported with a
15597         # broken collect2.
15598         hardcode_direct_GCJ=unsupported
15599       fi
15600       ;;
15601
15602     aix4* | aix5*)
15603       if test "$host_cpu" = ia64; then
15604         # On IA64, the linker does run time linking by default, so we don't
15605         # have to do anything special.
15606         aix_use_runtimelinking=no
15607         exp_sym_flag='-Bexport'
15608         no_entry_flag=""
15609       else
15610         # If we're using GNU nm, then we don't want the "-C" option.
15611         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15612         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15613           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'
15614         else
15615           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'
15616         fi
15617         aix_use_runtimelinking=no
15618
15619         # Test if we are trying to use run time linking or normal
15620         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15621         # need to do runtime linking.
15622         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15623           for ld_flag in $LDFLAGS; do
15624           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15625             aix_use_runtimelinking=yes
15626             break
15627           fi
15628           done
15629         esac
15630
15631         exp_sym_flag='-bexport'
15632         no_entry_flag='-bnoentry'
15633       fi
15634
15635       # When large executables or shared objects are built, AIX ld can
15636       # have problems creating the table of contents.  If linking a library
15637       # or program results in "error TOC overflow" add -mminimal-toc to
15638       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15639       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15640
15641       archive_cmds_GCJ=''
15642       hardcode_direct_GCJ=yes
15643       hardcode_libdir_separator_GCJ=':'
15644       link_all_deplibs_GCJ=yes
15645
15646       if test "$GCC" = yes; then
15647         case $host_os in aix4.012|aix4.012.*)
15648         # We only want to do this on AIX 4.2 and lower, the check
15649         # below for broken collect2 doesn't work under 4.3+
15650           collect2name=`${CC} -print-prog-name=collect2`
15651           if test -f "$collect2name" && \
15652            strings "$collect2name" | grep resolve_lib_name >/dev/null
15653           then
15654           # We have reworked collect2
15655           hardcode_direct_GCJ=yes
15656           else
15657           # We have old collect2
15658           hardcode_direct_GCJ=unsupported
15659           # It fails to find uninstalled libraries when the uninstalled
15660           # path is not listed in the libpath.  Setting hardcode_minus_L
15661           # to unsupported forces relinking
15662           hardcode_minus_L_GCJ=yes
15663           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15664           hardcode_libdir_separator_GCJ=
15665           fi
15666         esac
15667         shared_flag='-shared'
15668       else
15669         # not using gcc
15670         if test "$host_cpu" = ia64; then
15671         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15672         # chokes on -Wl,-G. The following line is correct:
15673           shared_flag='-G'
15674         else
15675         if test "$aix_use_runtimelinking" = yes; then
15676             shared_flag='${wl}-G'
15677           else
15678             shared_flag='${wl}-bM:SRE'
15679         fi
15680         fi
15681       fi
15682
15683       # It seems that -bexpall does not export symbols beginning with
15684       # underscore (_), so it is better to generate a list of symbols to export.
15685       always_export_symbols_GCJ=yes
15686       if test "$aix_use_runtimelinking" = yes; then
15687         # Warning - without using the other runtime loading flags (-brtl),
15688         # -berok will link without error, but may produce a broken library.
15689         allow_undefined_flag_GCJ='-berok'
15690        # Determine the default libpath from the value encoded in an empty executable.
15691        cat >conftest.$ac_ext <<_ACEOF
15692 #line $LINENO "configure"
15693 /* confdefs.h.  */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h.  */
15698
15699 int
15700 main ()
15701 {
15702
15703   ;
15704   return 0;
15705 }
15706 _ACEOF
15707 rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15709   (eval $ac_link) 2>&5
15710   ac_status=$?
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); } &&
15713          { ac_try='test -s conftest$ac_exeext'
15714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715   (eval $ac_try) 2>&5
15716   ac_status=$?
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); }; }; then
15719
15720 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15721 }'`
15722 # Check for a 64-bit object if we didn't find anything.
15723 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; }
15724 }'`; fi
15725 else
15726   echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15728
15729 fi
15730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15732
15733        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15734         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"
15735        else
15736         if test "$host_cpu" = ia64; then
15737           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15738           allow_undefined_flag_GCJ="-z nodefs"
15739           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"
15740         else
15741          # Determine the default libpath from the value encoded in an empty executable.
15742          cat >conftest.$ac_ext <<_ACEOF
15743 #line $LINENO "configure"
15744 /* confdefs.h.  */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h.  */
15749
15750 int
15751 main ()
15752 {
15753
15754   ;
15755   return 0;
15756 }
15757 _ACEOF
15758 rm -f conftest.$ac_objext conftest$ac_exeext
15759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15760   (eval $ac_link) 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); } &&
15764          { ac_try='test -s conftest$ac_exeext'
15765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766   (eval $ac_try) 2>&5
15767   ac_status=$?
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); }; }; then
15770
15771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15772 }'`
15773 # Check for a 64-bit object if we didn't find anything.
15774 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; }
15775 }'`; fi
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 fi
15781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15783
15784          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15785           # Warning - without using the other run time loading flags,
15786           # -berok will link without error, but may produce a broken library.
15787           no_undefined_flag_GCJ=' ${wl}-bernotok'
15788           allow_undefined_flag_GCJ=' ${wl}-berok'
15789           # -bexpall does not export symbols beginning with underscore (_)
15790           always_export_symbols_GCJ=yes
15791           # Exported symbols can be pulled into shared objects from archives
15792           whole_archive_flag_spec_GCJ=' '
15793           archive_cmds_need_lc_GCJ=yes
15794           # This is similar to how AIX traditionally builds it's shared libraries.
15795           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'
15796         fi
15797       fi
15798       ;;
15799
15800     amigaos*)
15801       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)'
15802       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15803       hardcode_minus_L_GCJ=yes
15804       # see comment about different semantics on the GNU ld section
15805       ld_shlibs_GCJ=no
15806       ;;
15807
15808     bsdi4*)
15809       export_dynamic_flag_spec_GCJ=-rdynamic
15810       ;;
15811
15812     cygwin* | mingw* | pw32*)
15813       # When not using gcc, we currently assume that we are using
15814       # Microsoft Visual C++.
15815       # hardcode_libdir_flag_spec is actually meaningless, as there is
15816       # no search path for DLLs.
15817       hardcode_libdir_flag_spec_GCJ=' '
15818       allow_undefined_flag_GCJ=unsupported
15819       # Tell ltmain to make .lib files, not .a files.
15820       libext=lib
15821       # Tell ltmain to make .dll files, not .so files.
15822       shrext=".dll"
15823       # FIXME: Setting linknames here is a bad hack.
15824       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15825       # The linker will automatically build a .lib file if we build a DLL.
15826       old_archive_From_new_cmds_GCJ='true'
15827       # FIXME: Should let the user specify the lib program.
15828       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15829       fix_srcfile_path='`cygpath -w "$srcfile"`'
15830       enable_shared_with_static_runtimes_GCJ=yes
15831       ;;
15832
15833     darwin* | rhapsody*)
15834     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15835       archive_cmds_need_lc_GCJ=no
15836       case "$host_os" in
15837       rhapsody* | darwin1.[012])
15838         allow_undefined_flag_GCJ='-undefined suppress'
15839         ;;
15840       *) # Darwin 1.3 on
15841         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15842         ;;
15843       esac
15844       # FIXME: Relying on posixy $() will cause problems for
15845       #        cross-compilation, but unfortunately the echo tests do not
15846       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15847       #        `"' quotes if we put them in here... so don't!
15848         lt_int_apple_cc_single_mod=no
15849         output_verbose_link_cmd='echo'
15850         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15851           lt_int_apple_cc_single_mod=yes
15852         fi
15853         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15854           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15855         else
15856         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'
15857       fi
15858       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15859       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15860         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15861           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}'
15862         else
15863           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}'
15864         fi
15865           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}'
15866       hardcode_direct_GCJ=no
15867       hardcode_automatic_GCJ=yes
15868       hardcode_shlibpath_var_GCJ=unsupported
15869       whole_archive_flag_spec_GCJ='-all_load $convenience'
15870       link_all_deplibs_GCJ=yes
15871     fi
15872       ;;
15873
15874     dgux*)
15875       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15876       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15877       hardcode_shlibpath_var_GCJ=no
15878       ;;
15879
15880     freebsd1*)
15881       ld_shlibs_GCJ=no
15882       ;;
15883
15884     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15885     # support.  Future versions do this automatically, but an explicit c++rt0.o
15886     # does not break anything, and helps significantly (at the cost of a little
15887     # extra space).
15888     freebsd2.2*)
15889       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15890       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15891       hardcode_direct_GCJ=yes
15892       hardcode_shlibpath_var_GCJ=no
15893       ;;
15894
15895     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15896     freebsd2*)
15897       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15898       hardcode_direct_GCJ=yes
15899       hardcode_minus_L_GCJ=yes
15900       hardcode_shlibpath_var_GCJ=no
15901       ;;
15902
15903     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15904     freebsd*)
15905       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15906       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15907       hardcode_direct_GCJ=yes
15908       hardcode_shlibpath_var_GCJ=no
15909       ;;
15910
15911     hpux9*)
15912       if test "$GCC" = yes; then
15913         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'
15914       else
15915         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'
15916       fi
15917       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15918       hardcode_libdir_separator_GCJ=:
15919       hardcode_direct_GCJ=yes
15920
15921       # hardcode_minus_L: Not really in the search PATH,
15922       # but as the default location of the library.
15923       hardcode_minus_L_GCJ=yes
15924       export_dynamic_flag_spec_GCJ='${wl}-E'
15925       ;;
15926
15927     hpux10* | hpux11*)
15928       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15929         case "$host_cpu" in
15930         hppa*64*|ia64*)
15931           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15932           ;;
15933         *)
15934           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15935           ;;
15936         esac
15937       else
15938         case "$host_cpu" in
15939         hppa*64*|ia64*)
15940           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15941           ;;
15942         *)
15943           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15944           ;;
15945         esac
15946       fi
15947       if test "$with_gnu_ld" = no; then
15948         case "$host_cpu" in
15949         hppa*64*)
15950           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15951           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15952           hardcode_libdir_separator_GCJ=:
15953           hardcode_direct_GCJ=no
15954           hardcode_shlibpath_var_GCJ=no
15955           ;;
15956         ia64*)
15957           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15958           hardcode_direct_GCJ=no
15959           hardcode_shlibpath_var_GCJ=no
15960
15961           # hardcode_minus_L: Not really in the search PATH,
15962           # but as the default location of the library.
15963           hardcode_minus_L_GCJ=yes
15964           ;;
15965         *)
15966           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15967           hardcode_libdir_separator_GCJ=:
15968           hardcode_direct_GCJ=yes
15969           export_dynamic_flag_spec_GCJ='${wl}-E'
15970
15971           # hardcode_minus_L: Not really in the search PATH,
15972           # but as the default location of the library.
15973           hardcode_minus_L_GCJ=yes
15974           ;;
15975         esac
15976       fi
15977       ;;
15978
15979     irix5* | irix6* | nonstopux*)
15980       if test "$GCC" = yes; then
15981         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'
15982       else
15983         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'
15984         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15985       fi
15986       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15987       hardcode_libdir_separator_GCJ=:
15988       link_all_deplibs_GCJ=yes
15989       ;;
15990
15991     netbsd*)
15992       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15993         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15994       else
15995         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15996       fi
15997       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15998       hardcode_direct_GCJ=yes
15999       hardcode_shlibpath_var_GCJ=no
16000       ;;
16001
16002     newsos6)
16003       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16004       hardcode_direct_GCJ=yes
16005       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16006       hardcode_libdir_separator_GCJ=:
16007       hardcode_shlibpath_var_GCJ=no
16008       ;;
16009
16010     openbsd*)
16011       hardcode_direct_GCJ=yes
16012       hardcode_shlibpath_var_GCJ=no
16013       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16014         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16015         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16016         export_dynamic_flag_spec_GCJ='${wl}-E'
16017       else
16018        case $host_os in
16019          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16020            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16021            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16022            ;;
16023          *)
16024            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16025            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16026            ;;
16027        esac
16028       fi
16029       ;;
16030
16031     os2*)
16032       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16033       hardcode_minus_L_GCJ=yes
16034       allow_undefined_flag_GCJ=unsupported
16035       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'
16036       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16037       ;;
16038
16039     osf3*)
16040       if test "$GCC" = yes; then
16041         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16042         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'
16043       else
16044         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16045         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'
16046       fi
16047       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16048       hardcode_libdir_separator_GCJ=:
16049       ;;
16050
16051     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16052       if test "$GCC" = yes; then
16053         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16054         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16055         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16056       else
16057         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16058         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'
16059         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~
16060         $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'
16061
16062         # Both c and cxx compiler support -rpath directly
16063         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16064       fi
16065       hardcode_libdir_separator_GCJ=:
16066       ;;
16067
16068     sco3.2v5*)
16069       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16070       hardcode_shlibpath_var_GCJ=no
16071       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16072       runpath_var=LD_RUN_PATH
16073       hardcode_runpath_var=yes
16074       ;;
16075
16076     solaris*)
16077       no_undefined_flag_GCJ=' -z text'
16078       if test "$GCC" = yes; then
16079         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16080         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16081           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16082       else
16083         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16084         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16085         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16086       fi
16087       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16088       hardcode_shlibpath_var_GCJ=no
16089       case $host_os in
16090       solaris2.[0-5] | solaris2.[0-5].*) ;;
16091       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16092         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16093       esac
16094       link_all_deplibs_GCJ=yes
16095       ;;
16096
16097     sunos4*)
16098       if test "x$host_vendor" = xsequent; then
16099         # Use $CC to link under sequent, because it throws in some extra .o
16100         # files that make .init and .fini sections work.
16101         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16102       else
16103         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16104       fi
16105       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16106       hardcode_direct_GCJ=yes
16107       hardcode_minus_L_GCJ=yes
16108       hardcode_shlibpath_var_GCJ=no
16109       ;;
16110
16111     sysv4)
16112       case $host_vendor in
16113         sni)
16114           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115           hardcode_direct_GCJ=yes # is this really true???
16116         ;;
16117         siemens)
16118           ## LD is ld it makes a PLAMLIB
16119           ## CC just makes a GrossModule.
16120           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16121           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16122           hardcode_direct_GCJ=no
16123         ;;
16124         motorola)
16125           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16127         ;;
16128       esac
16129       runpath_var='LD_RUN_PATH'
16130       hardcode_shlibpath_var_GCJ=no
16131       ;;
16132
16133     sysv4.3*)
16134       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135       hardcode_shlibpath_var_GCJ=no
16136       export_dynamic_flag_spec_GCJ='-Bexport'
16137       ;;
16138
16139     sysv4*MP*)
16140       if test -d /usr/nec; then
16141         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16142         hardcode_shlibpath_var_GCJ=no
16143         runpath_var=LD_RUN_PATH
16144         hardcode_runpath_var=yes
16145         ld_shlibs_GCJ=yes
16146       fi
16147       ;;
16148
16149     sysv4.2uw2*)
16150       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16151       hardcode_direct_GCJ=yes
16152       hardcode_minus_L_GCJ=no
16153       hardcode_shlibpath_var_GCJ=no
16154       hardcode_runpath_var=yes
16155       runpath_var=LD_RUN_PATH
16156       ;;
16157
16158    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16159       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16160       if test "$GCC" = yes; then
16161         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16162       else
16163         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16164       fi
16165       runpath_var='LD_RUN_PATH'
16166       hardcode_shlibpath_var_GCJ=no
16167       ;;
16168
16169     sysv5*)
16170       no_undefined_flag_GCJ=' -z text'
16171       # $CC -shared without GNU ld will not create a library from C++
16172       # object files and a static libstdc++, better avoid it by now
16173       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16174       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16175                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16176       hardcode_libdir_flag_spec_GCJ=
16177       hardcode_shlibpath_var_GCJ=no
16178       runpath_var='LD_RUN_PATH'
16179       ;;
16180
16181     uts4*)
16182       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16183       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16184       hardcode_shlibpath_var_GCJ=no
16185       ;;
16186
16187     *)
16188       ld_shlibs_GCJ=no
16189       ;;
16190     esac
16191   fi
16192
16193 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16194 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16195 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16196
16197 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16198 if test "$GCC" = yes; then
16199   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16200 fi
16201
16202 #
16203 # Do we need to explicitly link libc?
16204 #
16205 case "x$archive_cmds_need_lc_GCJ" in
16206 x|xyes)
16207   # Assume -lc should be added
16208   archive_cmds_need_lc_GCJ=yes
16209
16210   if test "$enable_shared" = yes && test "$GCC" = yes; then
16211     case $archive_cmds_GCJ in
16212     *'~'*)
16213       # FIXME: we may have to deal with multi-command sequences.
16214       ;;
16215     '$CC '*)
16216       # Test whether the compiler implicitly links with -lc since on some
16217       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16218       # to ld, don't add -lc before -lgcc.
16219       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16220 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16221       $rm conftest*
16222       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16223
16224       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225   (eval $ac_compile) 2>&5
16226   ac_status=$?
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); } 2>conftest.err; then
16229         soname=conftest
16230         lib=conftest
16231         libobjs=conftest.$ac_objext
16232         deplibs=
16233         wl=$lt_prog_compiler_wl_GCJ
16234         compiler_flags=-v
16235         linker_flags=-v
16236         verstring=
16237         output_objdir=.
16238         libname=conftest
16239         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16240         allow_undefined_flag_GCJ=
16241         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16242   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16243   ac_status=$?
16244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245   (exit $ac_status); }
16246         then
16247           archive_cmds_need_lc_GCJ=no
16248         else
16249           archive_cmds_need_lc_GCJ=yes
16250         fi
16251         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16252       else
16253         cat conftest.err 1>&5
16254       fi
16255       $rm conftest*
16256       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16257 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16258       ;;
16259     esac
16260   fi
16261   ;;
16262 esac
16263
16264 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16266 hardcode_action_GCJ=
16267 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16268    test -n "$runpath_var GCJ" || \
16269    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16270
16271   # We can hardcode non-existant directories.
16272   if test "$hardcode_direct_GCJ" != no &&
16273      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16274      # have to relink, otherwise we might link with an installed library
16275      # when we should be linking with a yet-to-be-installed one
16276      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16277      test "$hardcode_minus_L_GCJ" != no; then
16278     # Linking always hardcodes the temporary library directory.
16279     hardcode_action_GCJ=relink
16280   else
16281     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16282     hardcode_action_GCJ=immediate
16283   fi
16284 else
16285   # We cannot hardcode anything, or else we can only hardcode existing
16286   # directories.
16287   hardcode_action_GCJ=unsupported
16288 fi
16289 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16290 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16291
16292 if test "$hardcode_action_GCJ" = relink; then
16293   # Fast installation is not supported
16294   enable_fast_install=no
16295 elif test "$shlibpath_overrides_runpath" = yes ||
16296      test "$enable_shared" = no; then
16297   # Fast installation is not necessary
16298   enable_fast_install=needless
16299 fi
16300
16301 striplib=
16302 old_striplib=
16303 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16304 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16305 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16306   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16307   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16308   echo "$as_me:$LINENO: result: yes" >&5
16309 echo "${ECHO_T}yes" >&6
16310 else
16311 # FIXME - insert some real tests, host_os isn't really good enough
16312   case $host_os in
16313    darwin*)
16314        if test -n "$STRIP" ; then
16315          striplib="$STRIP -x"
16316          echo "$as_me:$LINENO: result: yes" >&5
16317 echo "${ECHO_T}yes" >&6
16318        else
16319   echo "$as_me:$LINENO: result: no" >&5
16320 echo "${ECHO_T}no" >&6
16321 fi
16322        ;;
16323    *)
16324   echo "$as_me:$LINENO: result: no" >&5
16325 echo "${ECHO_T}no" >&6
16326     ;;
16327   esac
16328 fi
16329
16330 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16331 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16332 library_names_spec=
16333 libname_spec='lib$name'
16334 soname_spec=
16335 shrext=".so"
16336 postinstall_cmds=
16337 postuninstall_cmds=
16338 finish_cmds=
16339 finish_eval=
16340 shlibpath_var=
16341 shlibpath_overrides_runpath=unknown
16342 version_type=none
16343 dynamic_linker="$host_os ld.so"
16344 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16345 if test "$GCC" = yes; then
16346   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16347   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16348     # if the path contains ";" then we assume it to be the separator
16349     # otherwise default to the standard path separator (i.e. ":") - it is
16350     # assumed that no part of a normal pathname contains ";" but that should
16351     # okay in the real world where ";" in dirpaths is itself problematic.
16352     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16353   else
16354     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16355   fi
16356 else
16357   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16358 fi
16359 need_lib_prefix=unknown
16360 hardcode_into_libs=no
16361
16362 # when you set need_version to no, make sure it does not cause -set_version
16363 # flags to be left without arguments
16364 need_version=unknown
16365
16366 case $host_os in
16367 aix3*)
16368   version_type=linux
16369   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16370   shlibpath_var=LIBPATH
16371
16372   # AIX 3 has no versioning support, so we append a major version to the name.
16373   soname_spec='${libname}${release}${shared_ext}$major'
16374   ;;
16375
16376 aix4* | aix5*)
16377   version_type=linux
16378   need_lib_prefix=no
16379   need_version=no
16380   hardcode_into_libs=yes
16381   if test "$host_cpu" = ia64; then
16382     # AIX 5 supports IA64
16383     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16384     shlibpath_var=LD_LIBRARY_PATH
16385   else
16386     # With GCC up to 2.95.x, collect2 would create an import file
16387     # for dependence libraries.  The import file would start with
16388     # the line `#! .'.  This would cause the generated library to
16389     # depend on `.', always an invalid library.  This was fixed in
16390     # development snapshots of GCC prior to 3.0.
16391     case $host_os in
16392       aix4 | aix4.[01] | aix4.[01].*)
16393       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16394            echo ' yes '
16395            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16396         :
16397       else
16398         can_build_shared=no
16399       fi
16400       ;;
16401     esac
16402     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16403     # soname into executable. Probably we can add versioning support to
16404     # collect2, so additional links can be useful in future.
16405     if test "$aix_use_runtimelinking" = yes; then
16406       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16407       # instead of lib<name>.a to let people know that these are not
16408       # typical AIX shared libraries.
16409       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410     else
16411       # We preserve .a as extension for shared libraries through AIX4.2
16412       # and later when we are not doing run time linking.
16413       library_names_spec='${libname}${release}.a $libname.a'
16414       soname_spec='${libname}${release}${shared_ext}$major'
16415     fi
16416     shlibpath_var=LIBPATH
16417   fi
16418   ;;
16419
16420 amigaos*)
16421   library_names_spec='$libname.ixlibrary $libname.a'
16422   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16423   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'
16424   ;;
16425
16426 beos*)
16427   library_names_spec='${libname}${shared_ext}'
16428   dynamic_linker="$host_os ld.so"
16429   shlibpath_var=LIBRARY_PATH
16430   ;;
16431
16432 bsdi4*)
16433   version_type=linux
16434   need_version=no
16435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436   soname_spec='${libname}${release}${shared_ext}$major'
16437   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16438   shlibpath_var=LD_LIBRARY_PATH
16439   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16440   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16441   # the default ld.so.conf also contains /usr/contrib/lib and
16442   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16443   # libtool to hard-code these into programs
16444   ;;
16445
16446 cygwin* | mingw* | pw32*)
16447   version_type=windows
16448   shrext=".dll"
16449   need_version=no
16450   need_lib_prefix=no
16451
16452   case $GCC,$host_os in
16453   yes,cygwin* | yes,mingw* | yes,pw32*)
16454     library_names_spec='$libname.dll.a'
16455     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16456     postinstall_cmds='base_file=`basename \${file}`~
16457       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16458       dldir=$destdir/`dirname \$dlpath`~
16459       test -d \$dldir || mkdir -p \$dldir~
16460       $install_prog $dir/$dlname \$dldir/$dlname'
16461     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16462       dlpath=$dir/\$dldll~
16463        $rm \$dlpath'
16464     shlibpath_overrides_runpath=yes
16465
16466     case $host_os in
16467     cygwin*)
16468       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16469       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16470       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16471       ;;
16472     mingw*)
16473       # MinGW DLLs use traditional 'lib' prefix
16474       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16475       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16476       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16477         # It is most probably a Windows format PATH printed by
16478         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16479         # path with ; separators, and with drive letters. We can handle the
16480         # drive letters (cygwin fileutils understands them), so leave them,
16481         # especially as we might pass files found there to a mingw objdump,
16482         # which wouldn't understand a cygwinified path. Ahh.
16483         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16484       else
16485         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16486       fi
16487       ;;
16488     pw32*)
16489       # pw32 DLLs use 'pw' prefix rather than 'lib'
16490       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16491       ;;
16492     esac
16493     ;;
16494
16495   *)
16496     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16497     ;;
16498   esac
16499   dynamic_linker='Win32 ld.exe'
16500   # FIXME: first we should search . and the directory the executable is in
16501   shlibpath_var=PATH
16502   ;;
16503
16504 darwin* | rhapsody*)
16505   dynamic_linker="$host_os dyld"
16506   version_type=darwin
16507   need_lib_prefix=no
16508   need_version=no
16509   # FIXME: Relying on posixy $() will cause problems for
16510   #        cross-compilation, but unfortunately the echo tests do not
16511   #        yet detect zsh echo's removal of \ escapes.
16512   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16513   soname_spec='${libname}${release}${major}$shared_ext'
16514   shlibpath_overrides_runpath=yes
16515   shlibpath_var=DYLD_LIBRARY_PATH
16516   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16517   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16518   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16519   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"`
16520   fi
16521   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16522   ;;
16523
16524 dgux*)
16525   version_type=linux
16526   need_lib_prefix=no
16527   need_version=no
16528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16529   soname_spec='${libname}${release}${shared_ext}$major'
16530   shlibpath_var=LD_LIBRARY_PATH
16531   ;;
16532
16533 freebsd1*)
16534   dynamic_linker=no
16535   ;;
16536
16537 freebsd*)
16538   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16539   version_type=freebsd-$objformat
16540   case $version_type in
16541     freebsd-elf*)
16542       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16543       need_version=no
16544       need_lib_prefix=no
16545       ;;
16546     freebsd-*)
16547       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16548       need_version=yes
16549       ;;
16550   esac
16551   shlibpath_var=LD_LIBRARY_PATH
16552   case $host_os in
16553   freebsd2*)
16554     shlibpath_overrides_runpath=yes
16555     ;;
16556   freebsd3.01* | freebsdelf3.01*)
16557     shlibpath_overrides_runpath=yes
16558     hardcode_into_libs=yes
16559     ;;
16560   *) # from 3.2 on
16561     shlibpath_overrides_runpath=no
16562     hardcode_into_libs=yes
16563     ;;
16564   esac
16565   ;;
16566
16567 gnu*)
16568   version_type=linux
16569   need_lib_prefix=no
16570   need_version=no
16571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16572   soname_spec='${libname}${release}${shared_ext}$major'
16573   shlibpath_var=LD_LIBRARY_PATH
16574   hardcode_into_libs=yes
16575   ;;
16576
16577 hpux9* | hpux10* | hpux11*)
16578   # Give a soname corresponding to the major version so that dld.sl refuses to
16579   # link against other versions.
16580   version_type=sunos
16581   need_lib_prefix=no
16582   need_version=no
16583   case "$host_cpu" in
16584   ia64*)
16585     shrext='.so'
16586     hardcode_into_libs=yes
16587     dynamic_linker="$host_os dld.so"
16588     shlibpath_var=LD_LIBRARY_PATH
16589     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16590     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16591     soname_spec='${libname}${release}${shared_ext}$major'
16592     if test "X$HPUX_IA64_MODE" = X32; then
16593       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16594     else
16595       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16596     fi
16597     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16598     ;;
16599    hppa*64*)
16600      shrext='.sl'
16601      hardcode_into_libs=yes
16602      dynamic_linker="$host_os dld.sl"
16603      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16604      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16605      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606      soname_spec='${libname}${release}${shared_ext}$major'
16607      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16608      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16609      ;;
16610    *)
16611     shrext='.sl'
16612     dynamic_linker="$host_os dld.sl"
16613     shlibpath_var=SHLIB_PATH
16614     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616     soname_spec='${libname}${release}${shared_ext}$major'
16617     ;;
16618   esac
16619   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16620   postinstall_cmds='chmod 555 $lib'
16621   ;;
16622
16623 irix5* | irix6* | nonstopux*)
16624   case $host_os in
16625     nonstopux*) version_type=nonstopux ;;
16626     *)
16627         if test "$lt_cv_prog_gnu_ld" = yes; then
16628                 version_type=linux
16629         else
16630                 version_type=irix
16631         fi ;;
16632   esac
16633   need_lib_prefix=no
16634   need_version=no
16635   soname_spec='${libname}${release}${shared_ext}$major'
16636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16637   case $host_os in
16638   irix5* | nonstopux*)
16639     libsuff= shlibsuff=
16640     ;;
16641   *)
16642     case $LD in # libtool.m4 will add one of these switches to LD
16643     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16644       libsuff= shlibsuff= libmagic=32-bit;;
16645     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16646       libsuff=32 shlibsuff=N32 libmagic=N32;;
16647     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16648       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16649     *) libsuff= shlibsuff= libmagic=never-match;;
16650     esac
16651     ;;
16652   esac
16653   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16654   shlibpath_overrides_runpath=no
16655   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16656   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16657   hardcode_into_libs=yes
16658   ;;
16659
16660 # No shared lib support for Linux oldld, aout, or coff.
16661 linux*oldld* | linux*aout* | linux*coff*)
16662   dynamic_linker=no
16663   ;;
16664
16665 # This must be Linux ELF.
16666 linux*)
16667   version_type=linux
16668   need_lib_prefix=no
16669   need_version=no
16670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16671   soname_spec='${libname}${release}${shared_ext}$major'
16672   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16673   shlibpath_var=LD_LIBRARY_PATH
16674   shlibpath_overrides_runpath=no
16675   # This implies no fast_install, which is unacceptable.
16676   # Some rework will be needed to allow for fast_install
16677   # before this can be enabled.
16678   hardcode_into_libs=yes
16679
16680   # We used to test for /lib/ld.so.1 and disable shared libraries on
16681   # powerpc, because MkLinux only supported shared libraries with the
16682   # GNU dynamic linker.  Since this was broken with cross compilers,
16683   # most powerpc-linux boxes support dynamic linking these days and
16684   # people can always --disable-shared, the test was removed, and we
16685   # assume the GNU/Linux dynamic linker is in use.
16686   dynamic_linker='GNU/Linux ld.so'
16687   ;;
16688
16689 netbsd*)
16690   version_type=sunos
16691   need_lib_prefix=no
16692   need_version=no
16693   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16694     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16695     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16696     dynamic_linker='NetBSD (a.out) ld.so'
16697   else
16698     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16699     soname_spec='${libname}${release}${shared_ext}$major'
16700     dynamic_linker='NetBSD ld.elf_so'
16701   fi
16702   shlibpath_var=LD_LIBRARY_PATH
16703   shlibpath_overrides_runpath=yes
16704   hardcode_into_libs=yes
16705   ;;
16706
16707 newsos6)
16708   version_type=linux
16709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16710   shlibpath_var=LD_LIBRARY_PATH
16711   shlibpath_overrides_runpath=yes
16712   ;;
16713
16714 nto-qnx)
16715   version_type=linux
16716   need_lib_prefix=no
16717   need_version=no
16718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16719   soname_spec='${libname}${release}${shared_ext}$major'
16720   shlibpath_var=LD_LIBRARY_PATH
16721   shlibpath_overrides_runpath=yes
16722   ;;
16723
16724 openbsd*)
16725   version_type=sunos
16726   need_lib_prefix=no
16727   need_version=no
16728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16729   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16730   shlibpath_var=LD_LIBRARY_PATH
16731   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16732     case $host_os in
16733       openbsd2.[89] | openbsd2.[89].*)
16734         shlibpath_overrides_runpath=no
16735         ;;
16736       *)
16737         shlibpath_overrides_runpath=yes
16738         ;;
16739       esac
16740   else
16741     shlibpath_overrides_runpath=yes
16742   fi
16743   ;;
16744
16745 os2*)
16746   libname_spec='$name'
16747   shrext=".dll"
16748   need_lib_prefix=no
16749   library_names_spec='$libname${shared_ext} $libname.a'
16750   dynamic_linker='OS/2 ld.exe'
16751   shlibpath_var=LIBPATH
16752   ;;
16753
16754 osf3* | osf4* | osf5*)
16755   version_type=osf
16756   need_lib_prefix=no
16757   need_version=no
16758   soname_spec='${libname}${release}${shared_ext}$major'
16759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16760   shlibpath_var=LD_LIBRARY_PATH
16761   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16762   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16763   ;;
16764
16765 sco3.2v5*)
16766   version_type=osf
16767   soname_spec='${libname}${release}${shared_ext}$major'
16768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16769   shlibpath_var=LD_LIBRARY_PATH
16770   ;;
16771
16772 solaris*)
16773   version_type=linux
16774   need_lib_prefix=no
16775   need_version=no
16776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16777   soname_spec='${libname}${release}${shared_ext}$major'
16778   shlibpath_var=LD_LIBRARY_PATH
16779   shlibpath_overrides_runpath=yes
16780   hardcode_into_libs=yes
16781   # ldd complains unless libraries are executable
16782   postinstall_cmds='chmod +x $lib'
16783   ;;
16784
16785 sunos4*)
16786   version_type=sunos
16787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16788   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16789   shlibpath_var=LD_LIBRARY_PATH
16790   shlibpath_overrides_runpath=yes
16791   if test "$with_gnu_ld" = yes; then
16792     need_lib_prefix=no
16793   fi
16794   need_version=yes
16795   ;;
16796
16797 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16798   version_type=linux
16799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16800   soname_spec='${libname}${release}${shared_ext}$major'
16801   shlibpath_var=LD_LIBRARY_PATH
16802   case $host_vendor in
16803     sni)
16804       shlibpath_overrides_runpath=no
16805       need_lib_prefix=no
16806       export_dynamic_flag_spec='${wl}-Blargedynsym'
16807       runpath_var=LD_RUN_PATH
16808       ;;
16809     siemens)
16810       need_lib_prefix=no
16811       ;;
16812     motorola)
16813       need_lib_prefix=no
16814       need_version=no
16815       shlibpath_overrides_runpath=no
16816       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16817       ;;
16818   esac
16819   ;;
16820
16821 sysv4*MP*)
16822   if test -d /usr/nec ;then
16823     version_type=linux
16824     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16825     soname_spec='$libname${shared_ext}.$major'
16826     shlibpath_var=LD_LIBRARY_PATH
16827   fi
16828   ;;
16829
16830 uts4*)
16831   version_type=linux
16832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833   soname_spec='${libname}${release}${shared_ext}$major'
16834   shlibpath_var=LD_LIBRARY_PATH
16835   ;;
16836
16837 *)
16838   dynamic_linker=no
16839   ;;
16840 esac
16841 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16842 echo "${ECHO_T}$dynamic_linker" >&6
16843 test "$dynamic_linker" = no && can_build_shared=no
16844
16845 if test "x$enable_dlopen" != xyes; then
16846   enable_dlopen=unknown
16847   enable_dlopen_self=unknown
16848   enable_dlopen_self_static=unknown
16849 else
16850   lt_cv_dlopen=no
16851   lt_cv_dlopen_libs=
16852
16853   case $host_os in
16854   beos*)
16855     lt_cv_dlopen="load_add_on"
16856     lt_cv_dlopen_libs=
16857     lt_cv_dlopen_self=yes
16858     ;;
16859
16860   mingw* | pw32*)
16861     lt_cv_dlopen="LoadLibrary"
16862     lt_cv_dlopen_libs=
16863    ;;
16864
16865   cygwin*)
16866     lt_cv_dlopen="dlopen"
16867     lt_cv_dlopen_libs=
16868    ;;
16869
16870   darwin*)
16871   # if libdl is installed we need to link against it
16872     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16873 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16874 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16875   echo $ECHO_N "(cached) $ECHO_C" >&6
16876 else
16877   ac_check_lib_save_LIBS=$LIBS
16878 LIBS="-ldl  $LIBS"
16879 cat >conftest.$ac_ext <<_ACEOF
16880 #line $LINENO "configure"
16881 /* confdefs.h.  */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h.  */
16886
16887 /* Override any gcc2 internal prototype to avoid an error.  */
16888 #ifdef __cplusplus
16889 extern "C"
16890 #endif
16891 /* We use char because int might match the return type of a gcc2
16892    builtin and then its argument prototype would still apply.  */
16893 char dlopen ();
16894 int
16895 main ()
16896 {
16897 dlopen ();
16898   ;
16899   return 0;
16900 }
16901 _ACEOF
16902 rm -f conftest.$ac_objext conftest$ac_exeext
16903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16904   (eval $ac_link) 2>&5
16905   ac_status=$?
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); } &&
16908          { ac_try='test -s conftest$ac_exeext'
16909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910   (eval $ac_try) 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); }; }; then
16914   ac_cv_lib_dl_dlopen=yes
16915 else
16916   echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16918
16919 ac_cv_lib_dl_dlopen=no
16920 fi
16921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16922 LIBS=$ac_check_lib_save_LIBS
16923 fi
16924 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16925 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16926 if test $ac_cv_lib_dl_dlopen = yes; then
16927   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16928 else
16929
16930     lt_cv_dlopen="dyld"
16931     lt_cv_dlopen_libs=
16932     lt_cv_dlopen_self=yes
16933
16934 fi
16935
16936    ;;
16937
16938   *)
16939     echo "$as_me:$LINENO: checking for shl_load" >&5
16940 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16941 if test "${ac_cv_func_shl_load+set}" = set; then
16942   echo $ECHO_N "(cached) $ECHO_C" >&6
16943 else
16944   cat >conftest.$ac_ext <<_ACEOF
16945 #line $LINENO "configure"
16946 /* confdefs.h.  */
16947 _ACEOF
16948 cat confdefs.h >>conftest.$ac_ext
16949 cat >>conftest.$ac_ext <<_ACEOF
16950 /* end confdefs.h.  */
16951 /* System header to define __stub macros and hopefully few prototypes,
16952     which can conflict with char shl_load (); below.
16953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16954     <limits.h> exists even on freestanding compilers.  */
16955 #ifdef __STDC__
16956 # include <limits.h>
16957 #else
16958 # include <assert.h>
16959 #endif
16960 /* Override any gcc2 internal prototype to avoid an error.  */
16961 #ifdef __cplusplus
16962 extern "C"
16963 {
16964 #endif
16965 /* We use char because int might match the return type of a gcc2
16966    builtin and then its argument prototype would still apply.  */
16967 char shl_load ();
16968 /* The GNU C library defines this for functions which it implements
16969     to always fail with ENOSYS.  Some functions are actually named
16970     something starting with __ and the normal name is an alias.  */
16971 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16972 choke me
16973 #else
16974 char (*f) () = shl_load;
16975 #endif
16976 #ifdef __cplusplus
16977 }
16978 #endif
16979
16980 int
16981 main ()
16982 {
16983 return f != shl_load;
16984   ;
16985   return 0;
16986 }
16987 _ACEOF
16988 rm -f conftest.$ac_objext conftest$ac_exeext
16989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16990   (eval $ac_link) 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } &&
16994          { ac_try='test -s conftest$ac_exeext'
16995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996   (eval $ac_try) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; }; then
17000   ac_cv_func_shl_load=yes
17001 else
17002   echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 ac_cv_func_shl_load=no
17006 fi
17007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17008 fi
17009 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17010 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17011 if test $ac_cv_func_shl_load = yes; then
17012   lt_cv_dlopen="shl_load"
17013 else
17014   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17015 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17016 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17017   echo $ECHO_N "(cached) $ECHO_C" >&6
17018 else
17019   ac_check_lib_save_LIBS=$LIBS
17020 LIBS="-ldld  $LIBS"
17021 cat >conftest.$ac_ext <<_ACEOF
17022 #line $LINENO "configure"
17023 /* confdefs.h.  */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h.  */
17028
17029 /* Override any gcc2 internal prototype to avoid an error.  */
17030 #ifdef __cplusplus
17031 extern "C"
17032 #endif
17033 /* We use char because int might match the return type of a gcc2
17034    builtin and then its argument prototype would still apply.  */
17035 char shl_load ();
17036 int
17037 main ()
17038 {
17039 shl_load ();
17040   ;
17041   return 0;
17042 }
17043 _ACEOF
17044 rm -f conftest.$ac_objext conftest$ac_exeext
17045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17046   (eval $ac_link) 2>&5
17047   ac_status=$?
17048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049   (exit $ac_status); } &&
17050          { ac_try='test -s conftest$ac_exeext'
17051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052   (eval $ac_try) 2>&5
17053   ac_status=$?
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); }; }; then
17056   ac_cv_lib_dld_shl_load=yes
17057 else
17058   echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17060
17061 ac_cv_lib_dld_shl_load=no
17062 fi
17063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17064 LIBS=$ac_check_lib_save_LIBS
17065 fi
17066 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17067 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17068 if test $ac_cv_lib_dld_shl_load = yes; then
17069   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17070 else
17071   echo "$as_me:$LINENO: checking for dlopen" >&5
17072 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17073 if test "${ac_cv_func_dlopen+set}" = set; then
17074   echo $ECHO_N "(cached) $ECHO_C" >&6
17075 else
17076   cat >conftest.$ac_ext <<_ACEOF
17077 #line $LINENO "configure"
17078 /* confdefs.h.  */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h.  */
17083 /* System header to define __stub macros and hopefully few prototypes,
17084     which can conflict with char dlopen (); below.
17085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17086     <limits.h> exists even on freestanding compilers.  */
17087 #ifdef __STDC__
17088 # include <limits.h>
17089 #else
17090 # include <assert.h>
17091 #endif
17092 /* Override any gcc2 internal prototype to avoid an error.  */
17093 #ifdef __cplusplus
17094 extern "C"
17095 {
17096 #endif
17097 /* We use char because int might match the return type of a gcc2
17098    builtin and then its argument prototype would still apply.  */
17099 char dlopen ();
17100 /* The GNU C library defines this for functions which it implements
17101     to always fail with ENOSYS.  Some functions are actually named
17102     something starting with __ and the normal name is an alias.  */
17103 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17104 choke me
17105 #else
17106 char (*f) () = dlopen;
17107 #endif
17108 #ifdef __cplusplus
17109 }
17110 #endif
17111
17112 int
17113 main ()
17114 {
17115 return f != dlopen;
17116   ;
17117   return 0;
17118 }
17119 _ACEOF
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17122   (eval $ac_link) 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); } &&
17126          { ac_try='test -s conftest$ac_exeext'
17127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128   (eval $ac_try) 2>&5
17129   ac_status=$?
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); }; }; then
17132   ac_cv_func_dlopen=yes
17133 else
17134   echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17136
17137 ac_cv_func_dlopen=no
17138 fi
17139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17140 fi
17141 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17142 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17143 if test $ac_cv_func_dlopen = yes; then
17144   lt_cv_dlopen="dlopen"
17145 else
17146   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17147 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-ldl  $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17154 #line $LINENO "configure"
17155 /* confdefs.h.  */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h.  */
17160
17161 /* Override any gcc2 internal prototype to avoid an error.  */
17162 #ifdef __cplusplus
17163 extern "C"
17164 #endif
17165 /* We use char because int might match the return type of a gcc2
17166    builtin and then its argument prototype would still apply.  */
17167 char dlopen ();
17168 int
17169 main ()
17170 {
17171 dlopen ();
17172   ;
17173   return 0;
17174 }
17175 _ACEOF
17176 rm -f conftest.$ac_objext conftest$ac_exeext
17177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17178   (eval $ac_link) 2>&5
17179   ac_status=$?
17180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); } &&
17182          { ac_try='test -s conftest$ac_exeext'
17183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184   (eval $ac_try) 2>&5
17185   ac_status=$?
17186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187   (exit $ac_status); }; }; then
17188   ac_cv_lib_dl_dlopen=yes
17189 else
17190   echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17192
17193 ac_cv_lib_dl_dlopen=no
17194 fi
17195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17196 LIBS=$ac_check_lib_save_LIBS
17197 fi
17198 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17199 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17200 if test $ac_cv_lib_dl_dlopen = yes; then
17201   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17202 else
17203   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17204 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17205 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17206   echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208   ac_check_lib_save_LIBS=$LIBS
17209 LIBS="-lsvld  $LIBS"
17210 cat >conftest.$ac_ext <<_ACEOF
17211 #line $LINENO "configure"
17212 /* confdefs.h.  */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h.  */
17217
17218 /* Override any gcc2 internal prototype to avoid an error.  */
17219 #ifdef __cplusplus
17220 extern "C"
17221 #endif
17222 /* We use char because int might match the return type of a gcc2
17223    builtin and then its argument prototype would still apply.  */
17224 char dlopen ();
17225 int
17226 main ()
17227 {
17228 dlopen ();
17229   ;
17230   return 0;
17231 }
17232 _ACEOF
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17235   (eval $ac_link) 2>&5
17236   ac_status=$?
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); } &&
17239          { ac_try='test -s conftest$ac_exeext'
17240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241   (eval $ac_try) 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; }; then
17245   ac_cv_lib_svld_dlopen=yes
17246 else
17247   echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17249
17250 ac_cv_lib_svld_dlopen=no
17251 fi
17252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17253 LIBS=$ac_check_lib_save_LIBS
17254 fi
17255 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17256 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17257 if test $ac_cv_lib_svld_dlopen = yes; then
17258   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17259 else
17260   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17261 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17262 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17263   echo $ECHO_N "(cached) $ECHO_C" >&6
17264 else
17265   ac_check_lib_save_LIBS=$LIBS
17266 LIBS="-ldld  $LIBS"
17267 cat >conftest.$ac_ext <<_ACEOF
17268 #line $LINENO "configure"
17269 /* confdefs.h.  */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h.  */
17274
17275 /* Override any gcc2 internal prototype to avoid an error.  */
17276 #ifdef __cplusplus
17277 extern "C"
17278 #endif
17279 /* We use char because int might match the return type of a gcc2
17280    builtin and then its argument prototype would still apply.  */
17281 char dld_link ();
17282 int
17283 main ()
17284 {
17285 dld_link ();
17286   ;
17287   return 0;
17288 }
17289 _ACEOF
17290 rm -f conftest.$ac_objext conftest$ac_exeext
17291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17292   (eval $ac_link) 2>&5
17293   ac_status=$?
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); } &&
17296          { ac_try='test -s conftest$ac_exeext'
17297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298   (eval $ac_try) 2>&5
17299   ac_status=$?
17300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301   (exit $ac_status); }; }; then
17302   ac_cv_lib_dld_dld_link=yes
17303 else
17304   echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17306
17307 ac_cv_lib_dld_dld_link=no
17308 fi
17309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17310 LIBS=$ac_check_lib_save_LIBS
17311 fi
17312 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17313 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17314 if test $ac_cv_lib_dld_dld_link = yes; then
17315   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17316 fi
17317
17318
17319 fi
17320
17321
17322 fi
17323
17324
17325 fi
17326
17327
17328 fi
17329
17330
17331 fi
17332
17333     ;;
17334   esac
17335
17336   if test "x$lt_cv_dlopen" != xno; then
17337     enable_dlopen=yes
17338   else
17339     enable_dlopen=no
17340   fi
17341
17342   case $lt_cv_dlopen in
17343   dlopen)
17344     save_CPPFLAGS="$CPPFLAGS"
17345     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17346
17347     save_LDFLAGS="$LDFLAGS"
17348     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17349
17350     save_LIBS="$LIBS"
17351     LIBS="$lt_cv_dlopen_libs $LIBS"
17352
17353     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17354 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17355 if test "${lt_cv_dlopen_self+set}" = set; then
17356   echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17358           if test "$cross_compiling" = yes; then :
17359   lt_cv_dlopen_self=cross
17360 else
17361   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17362   lt_status=$lt_dlunknown
17363   cat > conftest.$ac_ext <<EOF
17364 #line 17364 "configure"
17365 #include "confdefs.h"
17366
17367 #if HAVE_DLFCN_H
17368 #include <dlfcn.h>
17369 #endif
17370
17371 #include <stdio.h>
17372
17373 #ifdef RTLD_GLOBAL
17374 #  define LT_DLGLOBAL           RTLD_GLOBAL
17375 #else
17376 #  ifdef DL_GLOBAL
17377 #    define LT_DLGLOBAL         DL_GLOBAL
17378 #  else
17379 #    define LT_DLGLOBAL         0
17380 #  endif
17381 #endif
17382
17383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17384    find out it does not work in some platform. */
17385 #ifndef LT_DLLAZY_OR_NOW
17386 #  ifdef RTLD_LAZY
17387 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17388 #  else
17389 #    ifdef DL_LAZY
17390 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17391 #    else
17392 #      ifdef RTLD_NOW
17393 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17394 #      else
17395 #        ifdef DL_NOW
17396 #          define LT_DLLAZY_OR_NOW      DL_NOW
17397 #        else
17398 #          define LT_DLLAZY_OR_NOW      0
17399 #        endif
17400 #      endif
17401 #    endif
17402 #  endif
17403 #endif
17404
17405 #ifdef __cplusplus
17406 extern "C" void exit (int);
17407 #endif
17408
17409 void fnord() { int i=42;}
17410 int main ()
17411 {
17412   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17413   int status = $lt_dlunknown;
17414
17415   if (self)
17416     {
17417       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17418       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17419       /* dlclose (self); */
17420     }
17421
17422     exit (status);
17423 }
17424 EOF
17425   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426   (eval $ac_link) 2>&5
17427   ac_status=$?
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17430     (./conftest; exit; ) 2>/dev/null
17431     lt_status=$?
17432     case x$lt_status in
17433       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17434       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17435       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17436     esac
17437   else :
17438     # compilation failed
17439     lt_cv_dlopen_self=no
17440   fi
17441 fi
17442 rm -fr conftest*
17443
17444
17445 fi
17446 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17447 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17448
17449     if test "x$lt_cv_dlopen_self" = xyes; then
17450       LDFLAGS="$LDFLAGS $link_static_flag"
17451       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17452 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17453 if test "${lt_cv_dlopen_self_static+set}" = set; then
17454   echo $ECHO_N "(cached) $ECHO_C" >&6
17455 else
17456           if test "$cross_compiling" = yes; then :
17457   lt_cv_dlopen_self_static=cross
17458 else
17459   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17460   lt_status=$lt_dlunknown
17461   cat > conftest.$ac_ext <<EOF
17462 #line 17462 "configure"
17463 #include "confdefs.h"
17464
17465 #if HAVE_DLFCN_H
17466 #include <dlfcn.h>
17467 #endif
17468
17469 #include <stdio.h>
17470
17471 #ifdef RTLD_GLOBAL
17472 #  define LT_DLGLOBAL           RTLD_GLOBAL
17473 #else
17474 #  ifdef DL_GLOBAL
17475 #    define LT_DLGLOBAL         DL_GLOBAL
17476 #  else
17477 #    define LT_DLGLOBAL         0
17478 #  endif
17479 #endif
17480
17481 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17482    find out it does not work in some platform. */
17483 #ifndef LT_DLLAZY_OR_NOW
17484 #  ifdef RTLD_LAZY
17485 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17486 #  else
17487 #    ifdef DL_LAZY
17488 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17489 #    else
17490 #      ifdef RTLD_NOW
17491 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17492 #      else
17493 #        ifdef DL_NOW
17494 #          define LT_DLLAZY_OR_NOW      DL_NOW
17495 #        else
17496 #          define LT_DLLAZY_OR_NOW      0
17497 #        endif
17498 #      endif
17499 #    endif
17500 #  endif
17501 #endif
17502
17503 #ifdef __cplusplus
17504 extern "C" void exit (int);
17505 #endif
17506
17507 void fnord() { int i=42;}
17508 int main ()
17509 {
17510   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17511   int status = $lt_dlunknown;
17512
17513   if (self)
17514     {
17515       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17516       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17517       /* dlclose (self); */
17518     }
17519
17520     exit (status);
17521 }
17522 EOF
17523   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17524   (eval $ac_link) 2>&5
17525   ac_status=$?
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17528     (./conftest; exit; ) 2>/dev/null
17529     lt_status=$?
17530     case x$lt_status in
17531       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17532       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17533       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17534     esac
17535   else :
17536     # compilation failed
17537     lt_cv_dlopen_self_static=no
17538   fi
17539 fi
17540 rm -fr conftest*
17541
17542
17543 fi
17544 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17545 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17546     fi
17547
17548     CPPFLAGS="$save_CPPFLAGS"
17549     LDFLAGS="$save_LDFLAGS"
17550     LIBS="$save_LIBS"
17551     ;;
17552   esac
17553
17554   case $lt_cv_dlopen_self in
17555   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17556   *) enable_dlopen_self=unknown ;;
17557   esac
17558
17559   case $lt_cv_dlopen_self_static in
17560   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17561   *) enable_dlopen_self_static=unknown ;;
17562   esac
17563 fi
17564
17565
17566 # The else clause should only fire when bootstrapping the
17567 # libtool distribution, otherwise you forgot to ship ltmain.sh
17568 # with your package, and you will get complaints that there are
17569 # no rules to generate ltmain.sh.
17570 if test -f "$ltmain"; then
17571   # See if we are running on zsh, and set the options which allow our commands through
17572   # without removal of \ escapes.
17573   if test -n "${ZSH_VERSION+set}" ; then
17574     setopt NO_GLOB_SUBST
17575   fi
17576   # Now quote all the things that may contain metacharacters while being
17577   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17578   # variables and quote the copies for generation of the libtool script.
17579   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17580     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17581     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17582     deplibs_check_method reload_flag reload_cmds need_locks \
17583     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17584     lt_cv_sys_global_symbol_to_c_name_address \
17585     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17586     old_postinstall_cmds old_postuninstall_cmds \
17587     compiler_GCJ \
17588     CC_GCJ \
17589     LD_GCJ \
17590     lt_prog_compiler_wl_GCJ \
17591     lt_prog_compiler_pic_GCJ \
17592     lt_prog_compiler_static_GCJ \
17593     lt_prog_compiler_no_builtin_flag_GCJ \
17594     export_dynamic_flag_spec_GCJ \
17595     thread_safe_flag_spec_GCJ \
17596     whole_archive_flag_spec_GCJ \
17597     enable_shared_with_static_runtimes_GCJ \
17598     old_archive_cmds_GCJ \
17599     old_archive_from_new_cmds_GCJ \
17600     predep_objects_GCJ \
17601     postdep_objects_GCJ \
17602     predeps_GCJ \
17603     postdeps_GCJ \
17604     compiler_lib_search_path_GCJ \
17605     archive_cmds_GCJ \
17606     archive_expsym_cmds_GCJ \
17607     postinstall_cmds_GCJ \
17608     postuninstall_cmds_GCJ \
17609     old_archive_from_expsyms_cmds_GCJ \
17610     allow_undefined_flag_GCJ \
17611     no_undefined_flag_GCJ \
17612     export_symbols_cmds_GCJ \
17613     hardcode_libdir_flag_spec_GCJ \
17614     hardcode_libdir_flag_spec_ld_GCJ \
17615     hardcode_libdir_separator_GCJ \
17616     hardcode_automatic_GCJ \
17617     module_cmds_GCJ \
17618     module_expsym_cmds_GCJ \
17619     lt_cv_prog_compiler_c_o_GCJ \
17620     exclude_expsyms_GCJ \
17621     include_expsyms_GCJ; do
17622
17623     case $var in
17624     old_archive_cmds_GCJ | \
17625     old_archive_from_new_cmds_GCJ | \
17626     archive_cmds_GCJ | \
17627     archive_expsym_cmds_GCJ | \
17628     module_cmds_GCJ | \
17629     module_expsym_cmds_GCJ | \
17630     old_archive_from_expsyms_cmds_GCJ | \
17631     export_symbols_cmds_GCJ | \
17632     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17633     postinstall_cmds | postuninstall_cmds | \
17634     old_postinstall_cmds | old_postuninstall_cmds | \
17635     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17636       # Double-quote double-evaled strings.
17637       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17638       ;;
17639     *)
17640       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17641       ;;
17642     esac
17643   done
17644
17645   case $lt_echo in
17646   *'\$0 --fallback-echo"')
17647     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17648     ;;
17649   esac
17650
17651 cfgfile="$ofile"
17652
17653   cat <<__EOF__ >> "$cfgfile"
17654 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17655
17656 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17657
17658 # Shell to use when invoking shell scripts.
17659 SHELL=$lt_SHELL
17660
17661 # Whether or not to build shared libraries.
17662 build_libtool_libs=$enable_shared
17663
17664 # Whether or not to build static libraries.
17665 build_old_libs=$enable_static
17666
17667 # Whether or not to add -lc for building shared libraries.
17668 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17669
17670 # Whether or not to disallow shared libs when runtime libs are static
17671 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17672
17673 # Whether or not to optimize for fast installation.
17674 fast_install=$enable_fast_install
17675
17676 # The host system.
17677 host_alias=$host_alias
17678 host=$host
17679
17680 # An echo program that does not interpret backslashes.
17681 echo=$lt_echo
17682
17683 # The archiver.
17684 AR=$lt_AR
17685 AR_FLAGS=$lt_AR_FLAGS
17686
17687 # A C compiler.
17688 LTCC=$lt_LTCC
17689
17690 # A language-specific compiler.
17691 CC=$lt_compiler_GCJ
17692
17693 # Is the compiler the GNU C compiler?
17694 with_gcc=$GCC_GCJ
17695
17696 # An ERE matcher.
17697 EGREP=$lt_EGREP
17698
17699 # The linker used to build libraries.
17700 LD=$lt_LD_GCJ
17701
17702 # Whether we need hard or soft links.
17703 LN_S=$lt_LN_S
17704
17705 # A BSD-compatible nm program.
17706 NM=$lt_NM
17707
17708 # A symbol stripping program
17709 STRIP=$STRIP
17710
17711 # Used to examine libraries when file_magic_cmd begins "file"
17712 MAGIC_CMD=$MAGIC_CMD
17713
17714 # Used on cygwin: DLL creation program.
17715 DLLTOOL="$DLLTOOL"
17716
17717 # Used on cygwin: object dumper.
17718 OBJDUMP="$OBJDUMP"
17719
17720 # Used on cygwin: assembler.
17721 AS="$AS"
17722
17723 # The name of the directory that contains temporary libtool files.
17724 objdir=$objdir
17725
17726 # How to create reloadable object files.
17727 reload_flag=$lt_reload_flag
17728 reload_cmds=$lt_reload_cmds
17729
17730 # How to pass a linker flag through the compiler.
17731 wl=$lt_lt_prog_compiler_wl_GCJ
17732
17733 # Object file suffix (normally "o").
17734 objext="$ac_objext"
17735
17736 # Old archive suffix (normally "a").
17737 libext="$libext"
17738
17739 # Shared library suffix (normally ".so").
17740 shrext='$shrext'
17741
17742 # Executable file suffix (normally "").
17743 exeext="$exeext"
17744
17745 # Additional compiler flags for building library objects.
17746 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17747 pic_mode=$pic_mode
17748
17749 # What is the maximum length of a command?
17750 max_cmd_len=$lt_cv_sys_max_cmd_len
17751
17752 # Does compiler simultaneously support -c and -o options?
17753 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17754
17755 # Must we lock files when doing compilation ?
17756 need_locks=$lt_need_locks
17757
17758 # Do we need the lib prefix for modules?
17759 need_lib_prefix=$need_lib_prefix
17760
17761 # Do we need a version for libraries?
17762 need_version=$need_version
17763
17764 # Whether dlopen is supported.
17765 dlopen_support=$enable_dlopen
17766
17767 # Whether dlopen of programs is supported.
17768 dlopen_self=$enable_dlopen_self
17769
17770 # Whether dlopen of statically linked programs is supported.
17771 dlopen_self_static=$enable_dlopen_self_static
17772
17773 # Compiler flag to prevent dynamic linking.
17774 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17775
17776 # Compiler flag to turn off builtin functions.
17777 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17778
17779 # Compiler flag to allow reflexive dlopens.
17780 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17781
17782 # Compiler flag to generate shared objects directly from archives.
17783 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17784
17785 # Compiler flag to generate thread-safe objects.
17786 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17787
17788 # Library versioning type.
17789 version_type=$version_type
17790
17791 # Format of library name prefix.
17792 libname_spec=$lt_libname_spec
17793
17794 # List of archive names.  First name is the real one, the rest are links.
17795 # The last name is the one that the linker finds with -lNAME.
17796 library_names_spec=$lt_library_names_spec
17797
17798 # The coded name of the library, if different from the real name.
17799 soname_spec=$lt_soname_spec
17800
17801 # Commands used to build and install an old-style archive.
17802 RANLIB=$lt_RANLIB
17803 old_archive_cmds=$lt_old_archive_cmds_GCJ
17804 old_postinstall_cmds=$lt_old_postinstall_cmds
17805 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17806
17807 # Create an old-style archive from a shared archive.
17808 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17809
17810 # Create a temporary old-style archive to link instead of a shared archive.
17811 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17812
17813 # Commands used to build and install a shared archive.
17814 archive_cmds=$lt_archive_cmds_GCJ
17815 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17816 postinstall_cmds=$lt_postinstall_cmds
17817 postuninstall_cmds=$lt_postuninstall_cmds
17818
17819 # Commands used to build a loadable module (assumed same as above if empty)
17820 module_cmds=$lt_module_cmds_GCJ
17821 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17822
17823 # Commands to strip libraries.
17824 old_striplib=$lt_old_striplib
17825 striplib=$lt_striplib
17826
17827 # Dependencies to place before the objects being linked to create a
17828 # shared library.
17829 predep_objects=$lt_predep_objects_GCJ
17830
17831 # Dependencies to place after the objects being linked to create a
17832 # shared library.
17833 postdep_objects=$lt_postdep_objects_GCJ
17834
17835 # Dependencies to place before the objects being linked to create a
17836 # shared library.
17837 predeps=$lt_predeps_GCJ
17838
17839 # Dependencies to place after the objects being linked to create a
17840 # shared library.
17841 postdeps=$lt_postdeps_GCJ
17842
17843 # The library search path used internally by the compiler when linking
17844 # a shared library.
17845 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17846
17847 # Method to check whether dependent libraries are shared objects.
17848 deplibs_check_method=$lt_deplibs_check_method
17849
17850 # Command to use when deplibs_check_method == file_magic.
17851 file_magic_cmd=$lt_file_magic_cmd
17852
17853 # Flag that allows shared libraries with undefined symbols to be built.
17854 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17855
17856 # Flag that forces no undefined symbols.
17857 no_undefined_flag=$lt_no_undefined_flag_GCJ
17858
17859 # Commands used to finish a libtool library installation in a directory.
17860 finish_cmds=$lt_finish_cmds
17861
17862 # Same as above, but a single script fragment to be evaled but not shown.
17863 finish_eval=$lt_finish_eval
17864
17865 # Take the output of nm and produce a listing of raw symbols and C names.
17866 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17867
17868 # Transform the output of nm in a proper C declaration
17869 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17870
17871 # Transform the output of nm in a C name address pair
17872 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17873
17874 # This is the shared library runtime path variable.
17875 runpath_var=$runpath_var
17876
17877 # This is the shared library path variable.
17878 shlibpath_var=$shlibpath_var
17879
17880 # Is shlibpath searched before the hard-coded library search path?
17881 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17882
17883 # How to hardcode a shared library path into an executable.
17884 hardcode_action=$hardcode_action_GCJ
17885
17886 # Whether we should hardcode library paths into libraries.
17887 hardcode_into_libs=$hardcode_into_libs
17888
17889 # Flag to hardcode \$libdir into a binary during linking.
17890 # This must work even if \$libdir does not exist.
17891 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17892
17893 # If ld is used when linking, flag to hardcode \$libdir into
17894 # a binary during linking. This must work even if \$libdir does
17895 # not exist.
17896 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17897
17898 # Whether we need a single -rpath flag with a separated argument.
17899 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17900
17901 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17902 # resulting binary.
17903 hardcode_direct=$hardcode_direct_GCJ
17904
17905 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17906 # resulting binary.
17907 hardcode_minus_L=$hardcode_minus_L_GCJ
17908
17909 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17910 # the resulting binary.
17911 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17912
17913 # Set to yes if building a shared library automatically hardcodes DIR into the library
17914 # and all subsequent libraries and executables linked against it.
17915 hardcode_automatic=$hardcode_automatic_GCJ
17916
17917 # Variables whose values should be saved in libtool wrapper scripts and
17918 # restored at relink time.
17919 variables_saved_for_relink="$variables_saved_for_relink"
17920
17921 # Whether libtool must link a program against all its dependency libraries.
17922 link_all_deplibs=$link_all_deplibs_GCJ
17923
17924 # Compile-time system search path for libraries
17925 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17926
17927 # Run-time system search path for libraries
17928 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17929
17930 # Fix the shell variable \$srcfile for the compiler.
17931 fix_srcfile_path="$fix_srcfile_path_GCJ"
17932
17933 # Set to yes if exported symbols are required.
17934 always_export_symbols=$always_export_symbols_GCJ
17935
17936 # The commands to list exported symbols.
17937 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17938
17939 # The commands to extract the exported symbol list from a shared archive.
17940 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17941
17942 # Symbols that should not be listed in the preloaded symbols.
17943 exclude_expsyms=$lt_exclude_expsyms_GCJ
17944
17945 # Symbols that must always be exported.
17946 include_expsyms=$lt_include_expsyms_GCJ
17947
17948 # ### END LIBTOOL TAG CONFIG: $tagname
17949
17950 __EOF__
17951
17952
17953 else
17954   # If there is no Makefile yet, we rely on a make rule to execute
17955   # `config.status --recheck' to rerun these tests and create the
17956   # libtool script then.
17957   test -f Makefile && make "$ltmain"
17958 fi
17959
17960
17961 ac_ext=c
17962 ac_cpp='$CPP $CPPFLAGS'
17963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17966
17967 CC="$lt_save_CC"
17968
17969         else
17970           tagname=""
17971         fi
17972         ;;
17973
17974       RC)
17975
17976
17977
17978 # Source file extension for RC test sources.
17979 ac_ext=rc
17980
17981 # Object file extension for compiled RC test sources.
17982 objext=o
17983 objext_RC=$objext
17984
17985 # Code to be used in simple compile tests
17986 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17987
17988 # Code to be used in simple link tests
17989 lt_simple_link_test_code="$lt_simple_compile_test_code"
17990
17991 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17992
17993 # If no C compiler was specified, use CC.
17994 LTCC=${LTCC-"$CC"}
17995
17996 # Allow CC to be a program name with arguments.
17997 compiler=$CC
17998
17999
18000 # Allow CC to be a program name with arguments.
18001 lt_save_CC="$CC"
18002 CC=${RC-"windres"}
18003 compiler=$CC
18004 compiler_RC=$CC
18005 lt_cv_prog_compiler_c_o_RC=yes
18006
18007 # The else clause should only fire when bootstrapping the
18008 # libtool distribution, otherwise you forgot to ship ltmain.sh
18009 # with your package, and you will get complaints that there are
18010 # no rules to generate ltmain.sh.
18011 if test -f "$ltmain"; then
18012   # See if we are running on zsh, and set the options which allow our commands through
18013   # without removal of \ escapes.
18014   if test -n "${ZSH_VERSION+set}" ; then
18015     setopt NO_GLOB_SUBST
18016   fi
18017   # Now quote all the things that may contain metacharacters while being
18018   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18019   # variables and quote the copies for generation of the libtool script.
18020   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18021     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18022     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18023     deplibs_check_method reload_flag reload_cmds need_locks \
18024     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18025     lt_cv_sys_global_symbol_to_c_name_address \
18026     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18027     old_postinstall_cmds old_postuninstall_cmds \
18028     compiler_RC \
18029     CC_RC \
18030     LD_RC \
18031     lt_prog_compiler_wl_RC \
18032     lt_prog_compiler_pic_RC \
18033     lt_prog_compiler_static_RC \
18034     lt_prog_compiler_no_builtin_flag_RC \
18035     export_dynamic_flag_spec_RC \
18036     thread_safe_flag_spec_RC \
18037     whole_archive_flag_spec_RC \
18038     enable_shared_with_static_runtimes_RC \
18039     old_archive_cmds_RC \
18040     old_archive_from_new_cmds_RC \
18041     predep_objects_RC \
18042     postdep_objects_RC \
18043     predeps_RC \
18044     postdeps_RC \
18045     compiler_lib_search_path_RC \
18046     archive_cmds_RC \
18047     archive_expsym_cmds_RC \
18048     postinstall_cmds_RC \
18049     postuninstall_cmds_RC \
18050     old_archive_from_expsyms_cmds_RC \
18051     allow_undefined_flag_RC \
18052     no_undefined_flag_RC \
18053     export_symbols_cmds_RC \
18054     hardcode_libdir_flag_spec_RC \
18055     hardcode_libdir_flag_spec_ld_RC \
18056     hardcode_libdir_separator_RC \
18057     hardcode_automatic_RC \
18058     module_cmds_RC \
18059     module_expsym_cmds_RC \
18060     lt_cv_prog_compiler_c_o_RC \
18061     exclude_expsyms_RC \
18062     include_expsyms_RC; do
18063
18064     case $var in
18065     old_archive_cmds_RC | \
18066     old_archive_from_new_cmds_RC | \
18067     archive_cmds_RC | \
18068     archive_expsym_cmds_RC | \
18069     module_cmds_RC | \
18070     module_expsym_cmds_RC | \
18071     old_archive_from_expsyms_cmds_RC | \
18072     export_symbols_cmds_RC | \
18073     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18074     postinstall_cmds | postuninstall_cmds | \
18075     old_postinstall_cmds | old_postuninstall_cmds | \
18076     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18077       # Double-quote double-evaled strings.
18078       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18079       ;;
18080     *)
18081       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18082       ;;
18083     esac
18084   done
18085
18086   case $lt_echo in
18087   *'\$0 --fallback-echo"')
18088     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18089     ;;
18090   esac
18091
18092 cfgfile="$ofile"
18093
18094   cat <<__EOF__ >> "$cfgfile"
18095 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18096
18097 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18098
18099 # Shell to use when invoking shell scripts.
18100 SHELL=$lt_SHELL
18101
18102 # Whether or not to build shared libraries.
18103 build_libtool_libs=$enable_shared
18104
18105 # Whether or not to build static libraries.
18106 build_old_libs=$enable_static
18107
18108 # Whether or not to add -lc for building shared libraries.
18109 build_libtool_need_lc=$archive_cmds_need_lc_RC
18110
18111 # Whether or not to disallow shared libs when runtime libs are static
18112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18113
18114 # Whether or not to optimize for fast installation.
18115 fast_install=$enable_fast_install
18116
18117 # The host system.
18118 host_alias=$host_alias
18119 host=$host
18120
18121 # An echo program that does not interpret backslashes.
18122 echo=$lt_echo
18123
18124 # The archiver.
18125 AR=$lt_AR
18126 AR_FLAGS=$lt_AR_FLAGS
18127
18128 # A C compiler.
18129 LTCC=$lt_LTCC
18130
18131 # A language-specific compiler.
18132 CC=$lt_compiler_RC
18133
18134 # Is the compiler the GNU C compiler?
18135 with_gcc=$GCC_RC
18136
18137 # An ERE matcher.
18138 EGREP=$lt_EGREP
18139
18140 # The linker used to build libraries.
18141 LD=$lt_LD_RC
18142
18143 # Whether we need hard or soft links.
18144 LN_S=$lt_LN_S
18145
18146 # A BSD-compatible nm program.
18147 NM=$lt_NM
18148
18149 # A symbol stripping program
18150 STRIP=$STRIP
18151
18152 # Used to examine libraries when file_magic_cmd begins "file"
18153 MAGIC_CMD=$MAGIC_CMD
18154
18155 # Used on cygwin: DLL creation program.
18156 DLLTOOL="$DLLTOOL"
18157
18158 # Used on cygwin: object dumper.
18159 OBJDUMP="$OBJDUMP"
18160
18161 # Used on cygwin: assembler.
18162 AS="$AS"
18163
18164 # The name of the directory that contains temporary libtool files.
18165 objdir=$objdir
18166
18167 # How to create reloadable object files.
18168 reload_flag=$lt_reload_flag
18169 reload_cmds=$lt_reload_cmds
18170
18171 # How to pass a linker flag through the compiler.
18172 wl=$lt_lt_prog_compiler_wl_RC
18173
18174 # Object file suffix (normally "o").
18175 objext="$ac_objext"
18176
18177 # Old archive suffix (normally "a").
18178 libext="$libext"
18179
18180 # Shared library suffix (normally ".so").
18181 shrext='$shrext'
18182
18183 # Executable file suffix (normally "").
18184 exeext="$exeext"
18185
18186 # Additional compiler flags for building library objects.
18187 pic_flag=$lt_lt_prog_compiler_pic_RC
18188 pic_mode=$pic_mode
18189
18190 # What is the maximum length of a command?
18191 max_cmd_len=$lt_cv_sys_max_cmd_len
18192
18193 # Does compiler simultaneously support -c and -o options?
18194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18195
18196 # Must we lock files when doing compilation ?
18197 need_locks=$lt_need_locks
18198
18199 # Do we need the lib prefix for modules?
18200 need_lib_prefix=$need_lib_prefix
18201
18202 # Do we need a version for libraries?
18203 need_version=$need_version
18204
18205 # Whether dlopen is supported.
18206 dlopen_support=$enable_dlopen
18207
18208 # Whether dlopen of programs is supported.
18209 dlopen_self=$enable_dlopen_self
18210
18211 # Whether dlopen of statically linked programs is supported.
18212 dlopen_self_static=$enable_dlopen_self_static
18213
18214 # Compiler flag to prevent dynamic linking.
18215 link_static_flag=$lt_lt_prog_compiler_static_RC
18216
18217 # Compiler flag to turn off builtin functions.
18218 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18219
18220 # Compiler flag to allow reflexive dlopens.
18221 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18222
18223 # Compiler flag to generate shared objects directly from archives.
18224 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18225
18226 # Compiler flag to generate thread-safe objects.
18227 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18228
18229 # Library versioning type.
18230 version_type=$version_type
18231
18232 # Format of library name prefix.
18233 libname_spec=$lt_libname_spec
18234
18235 # List of archive names.  First name is the real one, the rest are links.
18236 # The last name is the one that the linker finds with -lNAME.
18237 library_names_spec=$lt_library_names_spec
18238
18239 # The coded name of the library, if different from the real name.
18240 soname_spec=$lt_soname_spec
18241
18242 # Commands used to build and install an old-style archive.
18243 RANLIB=$lt_RANLIB
18244 old_archive_cmds=$lt_old_archive_cmds_RC
18245 old_postinstall_cmds=$lt_old_postinstall_cmds
18246 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18247
18248 # Create an old-style archive from a shared archive.
18249 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18250
18251 # Create a temporary old-style archive to link instead of a shared archive.
18252 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18253
18254 # Commands used to build and install a shared archive.
18255 archive_cmds=$lt_archive_cmds_RC
18256 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18257 postinstall_cmds=$lt_postinstall_cmds
18258 postuninstall_cmds=$lt_postuninstall_cmds
18259
18260 # Commands used to build a loadable module (assumed same as above if empty)
18261 module_cmds=$lt_module_cmds_RC
18262 module_expsym_cmds=$lt_module_expsym_cmds_RC
18263
18264 # Commands to strip libraries.
18265 old_striplib=$lt_old_striplib
18266 striplib=$lt_striplib
18267
18268 # Dependencies to place before the objects being linked to create a
18269 # shared library.
18270 predep_objects=$lt_predep_objects_RC
18271
18272 # Dependencies to place after the objects being linked to create a
18273 # shared library.
18274 postdep_objects=$lt_postdep_objects_RC
18275
18276 # Dependencies to place before the objects being linked to create a
18277 # shared library.
18278 predeps=$lt_predeps_RC
18279
18280 # Dependencies to place after the objects being linked to create a
18281 # shared library.
18282 postdeps=$lt_postdeps_RC
18283
18284 # The library search path used internally by the compiler when linking
18285 # a shared library.
18286 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18287
18288 # Method to check whether dependent libraries are shared objects.
18289 deplibs_check_method=$lt_deplibs_check_method
18290
18291 # Command to use when deplibs_check_method == file_magic.
18292 file_magic_cmd=$lt_file_magic_cmd
18293
18294 # Flag that allows shared libraries with undefined symbols to be built.
18295 allow_undefined_flag=$lt_allow_undefined_flag_RC
18296
18297 # Flag that forces no undefined symbols.
18298 no_undefined_flag=$lt_no_undefined_flag_RC
18299
18300 # Commands used to finish a libtool library installation in a directory.
18301 finish_cmds=$lt_finish_cmds
18302
18303 # Same as above, but a single script fragment to be evaled but not shown.
18304 finish_eval=$lt_finish_eval
18305
18306 # Take the output of nm and produce a listing of raw symbols and C names.
18307 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18308
18309 # Transform the output of nm in a proper C declaration
18310 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18311
18312 # Transform the output of nm in a C name address pair
18313 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18314
18315 # This is the shared library runtime path variable.
18316 runpath_var=$runpath_var
18317
18318 # This is the shared library path variable.
18319 shlibpath_var=$shlibpath_var
18320
18321 # Is shlibpath searched before the hard-coded library search path?
18322 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18323
18324 # How to hardcode a shared library path into an executable.
18325 hardcode_action=$hardcode_action_RC
18326
18327 # Whether we should hardcode library paths into libraries.
18328 hardcode_into_libs=$hardcode_into_libs
18329
18330 # Flag to hardcode \$libdir into a binary during linking.
18331 # This must work even if \$libdir does not exist.
18332 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18333
18334 # If ld is used when linking, flag to hardcode \$libdir into
18335 # a binary during linking. This must work even if \$libdir does
18336 # not exist.
18337 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18338
18339 # Whether we need a single -rpath flag with a separated argument.
18340 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18341
18342 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18343 # resulting binary.
18344 hardcode_direct=$hardcode_direct_RC
18345
18346 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18347 # resulting binary.
18348 hardcode_minus_L=$hardcode_minus_L_RC
18349
18350 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18351 # the resulting binary.
18352 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18353
18354 # Set to yes if building a shared library automatically hardcodes DIR into the library
18355 # and all subsequent libraries and executables linked against it.
18356 hardcode_automatic=$hardcode_automatic_RC
18357
18358 # Variables whose values should be saved in libtool wrapper scripts and
18359 # restored at relink time.
18360 variables_saved_for_relink="$variables_saved_for_relink"
18361
18362 # Whether libtool must link a program against all its dependency libraries.
18363 link_all_deplibs=$link_all_deplibs_RC
18364
18365 # Compile-time system search path for libraries
18366 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18367
18368 # Run-time system search path for libraries
18369 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18370
18371 # Fix the shell variable \$srcfile for the compiler.
18372 fix_srcfile_path="$fix_srcfile_path_RC"
18373
18374 # Set to yes if exported symbols are required.
18375 always_export_symbols=$always_export_symbols_RC
18376
18377 # The commands to list exported symbols.
18378 export_symbols_cmds=$lt_export_symbols_cmds_RC
18379
18380 # The commands to extract the exported symbol list from a shared archive.
18381 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18382
18383 # Symbols that should not be listed in the preloaded symbols.
18384 exclude_expsyms=$lt_exclude_expsyms_RC
18385
18386 # Symbols that must always be exported.
18387 include_expsyms=$lt_include_expsyms_RC
18388
18389 # ### END LIBTOOL TAG CONFIG: $tagname
18390
18391 __EOF__
18392
18393
18394 else
18395   # If there is no Makefile yet, we rely on a make rule to execute
18396   # `config.status --recheck' to rerun these tests and create the
18397   # libtool script then.
18398   test -f Makefile && make "$ltmain"
18399 fi
18400
18401
18402 ac_ext=c
18403 ac_cpp='$CPP $CPPFLAGS'
18404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18407
18408 CC="$lt_save_CC"
18409
18410         ;;
18411
18412       *)
18413         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18414 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18415    { (exit 1); exit 1; }; }
18416         ;;
18417       esac
18418
18419       # Append the new tag name to the list of available tags.
18420       if test -n "$tagname" ; then
18421       available_tags="$available_tags $tagname"
18422     fi
18423     fi
18424   done
18425   IFS="$lt_save_ifs"
18426
18427   # Now substitute the updated list of available tags.
18428   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18429     mv "${ofile}T" "$ofile"
18430     chmod +x "$ofile"
18431   else
18432     rm -f "${ofile}T"
18433     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18434 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18435    { (exit 1); exit 1; }; }
18436   fi
18437 fi
18438
18439
18440
18441 # This can be used to rebuild libtool when needed
18442 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18443
18444 # Always use our own libtool.
18445 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18446
18447 # Prevent multiple expansion
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469 # Extract the first word of "pwd", so it can be a program name with args.
18470 set dummy pwd; ac_word=$2
18471 echo "$as_me:$LINENO: checking for $ac_word" >&5
18472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18473 if test "${ac_cv_path_RPWD+set}" = set; then
18474   echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476   case $RPWD in
18477   [\\/]* | ?:[\\/]*)
18478   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18479   ;;
18480   *)
18481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18482 for as_dir in $PATH
18483 do
18484   IFS=$as_save_IFS
18485   test -z "$as_dir" && as_dir=.
18486   for ac_exec_ext in '' $ac_executable_extensions; do
18487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18488     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18490     break 2
18491   fi
18492 done
18493 done
18494
18495   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18496   ;;
18497 esac
18498 fi
18499 RPWD=$ac_cv_path_RPWD
18500
18501 if test -n "$RPWD"; then
18502   echo "$as_me:$LINENO: result: $RPWD" >&5
18503 echo "${ECHO_T}$RPWD" >&6
18504 else
18505   echo "$as_me:$LINENO: result: no" >&5
18506 echo "${ECHO_T}no" >&6
18507 fi
18508
18509 if test ${RPWD} = "false"
18510 then
18511         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18512 echo "$as_me: error: pwd required but not found" >&2;}
18513    { (exit 1); exit 1; }; }
18514 fi
18515
18516 # Extract the first word of "ar", so it can be a program name with args.
18517 set dummy ar; 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_AR+set}" = set; then
18521   echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523   case $AR in
18524   [\\/]* | ?:[\\/]*)
18525   ac_cv_path_AR="$AR" # 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_AR="$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   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18543   ;;
18544 esac
18545 fi
18546 AR=$ac_cv_path_AR
18547
18548 if test -n "$AR"; then
18549   echo "$as_me:$LINENO: result: $AR" >&5
18550 echo "${ECHO_T}$AR" >&6
18551 else
18552   echo "$as_me:$LINENO: result: no" >&5
18553 echo "${ECHO_T}no" >&6
18554 fi
18555
18556 if test ${AR} = "false"
18557 then
18558         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18559 echo "$as_me: error: ar required but not found" >&2;}
18560    { (exit 1); exit 1; }; }
18561 fi
18562
18563 # Extract the first word of "sed", so it can be a program name with args.
18564 set dummy sed; ac_word=$2
18565 echo "$as_me:$LINENO: checking for $ac_word" >&5
18566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18567 if test "${ac_cv_path_SED+set}" = set; then
18568   echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570   case $SED in
18571   [\\/]* | ?:[\\/]*)
18572   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18573   ;;
18574   *)
18575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18576 for as_dir in $PATH
18577 do
18578   IFS=$as_save_IFS
18579   test -z "$as_dir" && as_dir=.
18580   for ac_exec_ext in '' $ac_executable_extensions; do
18581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18582     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18584     break 2
18585   fi
18586 done
18587 done
18588
18589   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18590   ;;
18591 esac
18592 fi
18593 SED=$ac_cv_path_SED
18594
18595 if test -n "$SED"; then
18596   echo "$as_me:$LINENO: result: $SED" >&5
18597 echo "${ECHO_T}$SED" >&6
18598 else
18599   echo "$as_me:$LINENO: result: no" >&5
18600 echo "${ECHO_T}no" >&6
18601 fi
18602
18603 if test ${SED} = "false"
18604 then
18605         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18606 echo "$as_me: error: sed required but not found" >&2;}
18607    { (exit 1); exit 1; }; }
18608 fi
18609
18610 # Extract the first word of "rm", so it can be a program name with args.
18611 set dummy rm; ac_word=$2
18612 echo "$as_me:$LINENO: checking for $ac_word" >&5
18613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18614 if test "${ac_cv_path_RM+set}" = set; then
18615   echo $ECHO_N "(cached) $ECHO_C" >&6
18616 else
18617   case $RM in
18618   [\\/]* | ?:[\\/]*)
18619   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18620   ;;
18621   *)
18622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18623 for as_dir in $PATH
18624 do
18625   IFS=$as_save_IFS
18626   test -z "$as_dir" && as_dir=.
18627   for ac_exec_ext in '' $ac_executable_extensions; do
18628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18629     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18631     break 2
18632   fi
18633 done
18634 done
18635
18636   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18637   ;;
18638 esac
18639 fi
18640 RM=$ac_cv_path_RM
18641
18642 if test -n "$RM"; then
18643   echo "$as_me:$LINENO: result: $RM" >&5
18644 echo "${ECHO_T}$RM" >&6
18645 else
18646   echo "$as_me:$LINENO: result: no" >&5
18647 echo "${ECHO_T}no" >&6
18648 fi
18649
18650 if test ${RM} = "false"
18651 then
18652         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18653 echo "$as_me: error: rm required but not found" >&2;}
18654    { (exit 1); exit 1; }; }
18655 fi
18656
18657 # Extract the first word of "echo", so it can be a program name with args.
18658 set dummy echo; ac_word=$2
18659 echo "$as_me:$LINENO: checking for $ac_word" >&5
18660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18661 if test "${ac_cv_path_ECHO+set}" = set; then
18662   echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664   case $ECHO in
18665   [\\/]* | ?:[\\/]*)
18666   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18667   ;;
18668   *)
18669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18670 for as_dir in $PATH
18671 do
18672   IFS=$as_save_IFS
18673   test -z "$as_dir" && as_dir=.
18674   for ac_exec_ext in '' $ac_executable_extensions; do
18675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18676     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18678     break 2
18679   fi
18680 done
18681 done
18682
18683   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18684   ;;
18685 esac
18686 fi
18687 ECHO=$ac_cv_path_ECHO
18688
18689 if test -n "$ECHO"; then
18690   echo "$as_me:$LINENO: result: $ECHO" >&5
18691 echo "${ECHO_T}$ECHO" >&6
18692 else
18693   echo "$as_me:$LINENO: result: no" >&5
18694 echo "${ECHO_T}no" >&6
18695 fi
18696
18697 if test ${ECHO} = "false"
18698 then
18699         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18700 echo "$as_me: error: echo required but not found" >&2;}
18701    { (exit 1); exit 1; }; }
18702 fi
18703
18704 # Extract the first word of "mkdir", so it can be a program name with args.
18705 set dummy mkdir; ac_word=$2
18706 echo "$as_me:$LINENO: checking for $ac_word" >&5
18707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18708 if test "${ac_cv_path_MKDIR+set}" = set; then
18709   echo $ECHO_N "(cached) $ECHO_C" >&6
18710 else
18711   case $MKDIR in
18712   [\\/]* | ?:[\\/]*)
18713   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18714   ;;
18715   *)
18716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18717 for as_dir in $PATH
18718 do
18719   IFS=$as_save_IFS
18720   test -z "$as_dir" && as_dir=.
18721   for ac_exec_ext in '' $ac_executable_extensions; do
18722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18723     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18725     break 2
18726   fi
18727 done
18728 done
18729
18730   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18731   ;;
18732 esac
18733 fi
18734 MKDIR=$ac_cv_path_MKDIR
18735
18736 if test -n "$MKDIR"; then
18737   echo "$as_me:$LINENO: result: $MKDIR" >&5
18738 echo "${ECHO_T}$MKDIR" >&6
18739 else
18740   echo "$as_me:$LINENO: result: no" >&5
18741 echo "${ECHO_T}no" >&6
18742 fi
18743
18744 if test ${MKDIR} = "false"
18745 then
18746         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18747 echo "$as_me: error: mkdir required but not found" >&2;}
18748    { (exit 1); exit 1; }; }
18749 fi
18750
18751 # Extract the first word of "date", so it can be a program name with args.
18752 set dummy date; ac_word=$2
18753 echo "$as_me:$LINENO: checking for $ac_word" >&5
18754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18755 if test "${ac_cv_path_DATE+set}" = set; then
18756   echo $ECHO_N "(cached) $ECHO_C" >&6
18757 else
18758   case $DATE in
18759   [\\/]* | ?:[\\/]*)
18760   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18761   ;;
18762   *)
18763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18764 for as_dir in $PATH
18765 do
18766   IFS=$as_save_IFS
18767   test -z "$as_dir" && as_dir=.
18768   for ac_exec_ext in '' $ac_executable_extensions; do
18769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18770     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18772     break 2
18773   fi
18774 done
18775 done
18776
18777   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18778   ;;
18779 esac
18780 fi
18781 DATE=$ac_cv_path_DATE
18782
18783 if test -n "$DATE"; then
18784   echo "$as_me:$LINENO: result: $DATE" >&5
18785 echo "${ECHO_T}$DATE" >&6
18786 else
18787   echo "$as_me:$LINENO: result: no" >&5
18788 echo "${ECHO_T}no" >&6
18789 fi
18790
18791 if test ${DATE} = "false"
18792 then
18793         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18794 echo "$as_me: error: date required but not found" >&2;}
18795    { (exit 1); exit 1; }; }
18796 fi
18797
18798 # Extract the first word of "mv", so it can be a program name with args.
18799 set dummy mv; ac_word=$2
18800 echo "$as_me:$LINENO: checking for $ac_word" >&5
18801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18802 if test "${ac_cv_path_MV+set}" = set; then
18803   echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805   case $MV in
18806   [\\/]* | ?:[\\/]*)
18807   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18808   ;;
18809   *)
18810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18811 for as_dir in $PATH
18812 do
18813   IFS=$as_save_IFS
18814   test -z "$as_dir" && as_dir=.
18815   for ac_exec_ext in '' $ac_executable_extensions; do
18816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18817     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18819     break 2
18820   fi
18821 done
18822 done
18823
18824   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18825   ;;
18826 esac
18827 fi
18828 MV=$ac_cv_path_MV
18829
18830 if test -n "$MV"; then
18831   echo "$as_me:$LINENO: result: $MV" >&5
18832 echo "${ECHO_T}$MV" >&6
18833 else
18834   echo "$as_me:$LINENO: result: no" >&5
18835 echo "${ECHO_T}no" >&6
18836 fi
18837
18838 if test ${MV} = "false"
18839 then
18840         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18841 echo "$as_me: error: mv required but not found" >&2;}
18842    { (exit 1); exit 1; }; }
18843 fi
18844
18845 # Extract the first word of "dot", so it can be a program name with args.
18846 set dummy dot; ac_word=$2
18847 echo "$as_me:$LINENO: checking for $ac_word" >&5
18848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18849 if test "${ac_cv_path_DOT+set}" = set; then
18850   echo $ECHO_N "(cached) $ECHO_C" >&6
18851 else
18852   case $DOT in
18853   [\\/]* | ?:[\\/]*)
18854   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18855   ;;
18856   *)
18857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18858 for as_dir in $PATH
18859 do
18860   IFS=$as_save_IFS
18861   test -z "$as_dir" && as_dir=.
18862   for ac_exec_ext in '' $ac_executable_extensions; do
18863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18864     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18866     break 2
18867   fi
18868 done
18869 done
18870
18871   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18872   ;;
18873 esac
18874 fi
18875 DOT=$ac_cv_path_DOT
18876
18877 if test -n "$DOT"; then
18878   echo "$as_me:$LINENO: result: $DOT" >&5
18879 echo "${ECHO_T}$DOT" >&6
18880 else
18881   echo "$as_me:$LINENO: result: no" >&5
18882 echo "${ECHO_T}no" >&6
18883 fi
18884
18885
18886 # Extract the first word of "etags", so it can be a program name with args.
18887 set dummy etags; ac_word=$2
18888 echo "$as_me:$LINENO: checking for $ac_word" >&5
18889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18890 if test "${ac_cv_path_ETAGS+set}" = set; then
18891   echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893   case $ETAGS in
18894   [\\/]* | ?:[\\/]*)
18895   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18896   ;;
18897   *)
18898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18899 for as_dir in $PATH
18900 do
18901   IFS=$as_save_IFS
18902   test -z "$as_dir" && as_dir=.
18903   for ac_exec_ext in '' $ac_executable_extensions; do
18904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18905     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18907     break 2
18908   fi
18909 done
18910 done
18911
18912   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18913   ;;
18914 esac
18915 fi
18916 ETAGS=$ac_cv_path_ETAGS
18917
18918 if test -n "$ETAGS"; then
18919   echo "$as_me:$LINENO: result: $ETAGS" >&5
18920 echo "${ECHO_T}$ETAGS" >&6
18921 else
18922   echo "$as_me:$LINENO: result: no" >&5
18923 echo "${ECHO_T}no" >&6
18924 fi
18925
18926
18927 # Extract the first word of "purify", so it can be a program name with args.
18928 set dummy purify; ac_word=$2
18929 echo "$as_me:$LINENO: checking for $ac_word" >&5
18930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18931 if test "${ac_cv_path_PURIFY+set}" = set; then
18932   echo $ECHO_N "(cached) $ECHO_C" >&6
18933 else
18934   case $PURIFY in
18935   [\\/]* | ?:[\\/]*)
18936   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18937   ;;
18938   *)
18939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18940 for as_dir in $PATH
18941 do
18942   IFS=$as_save_IFS
18943   test -z "$as_dir" && as_dir=.
18944   for ac_exec_ext in '' $ac_executable_extensions; do
18945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18946     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18948     break 2
18949   fi
18950 done
18951 done
18952
18953   test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
18954   ;;
18955 esac
18956 fi
18957 PURIFY=$ac_cv_path_PURIFY
18958
18959 if test -n "$PURIFY"; then
18960   echo "$as_me:$LINENO: result: $PURIFY" >&5
18961 echo "${ECHO_T}$PURIFY" >&6
18962 else
18963   echo "$as_me:$LINENO: result: no" >&5
18964 echo "${ECHO_T}no" >&6
18965 fi
18966
18967
18968 # Extract the first word of "python", so it can be a program name with args.
18969 set dummy python; ac_word=$2
18970 echo "$as_me:$LINENO: checking for $ac_word" >&5
18971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18972 if test "${ac_cv_path_PYTHON+set}" = set; then
18973   echo $ECHO_N "(cached) $ECHO_C" >&6
18974 else
18975   case $PYTHON in
18976   [\\/]* | ?:[\\/]*)
18977   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18978   ;;
18979   *)
18980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18981 for as_dir in $PATH
18982 do
18983   IFS=$as_save_IFS
18984   test -z "$as_dir" && as_dir=.
18985   for ac_exec_ext in '' $ac_executable_extensions; do
18986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18987     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18989     break 2
18990   fi
18991 done
18992 done
18993
18994   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18995   ;;
18996 esac
18997 fi
18998 PYTHON=$ac_cv_path_PYTHON
18999
19000 if test -n "$PYTHON"; then
19001   echo "$as_me:$LINENO: result: $PYTHON" >&5
19002 echo "${ECHO_T}$PYTHON" >&6
19003 else
19004   echo "$as_me:$LINENO: result: no" >&5
19005 echo "${ECHO_T}no" >&6
19006 fi
19007
19008 if test ${PYTHON} = "false"
19009 then
19010         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19011 echo "$as_me: WARNING: python required but not found" >&2;}
19012 fi
19013
19014 # Extract the first word of "qmtest", so it can be a program name with args.
19015 set dummy qmtest; ac_word=$2
19016 echo "$as_me:$LINENO: checking for $ac_word" >&5
19017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19018 if test "${ac_cv_path_QMTEST+set}" = set; then
19019   echo $ECHO_N "(cached) $ECHO_C" >&6
19020 else
19021   case $QMTEST in
19022   [\\/]* | ?:[\\/]*)
19023   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19024   ;;
19025   *)
19026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19027 for as_dir in $PATH
19028 do
19029   IFS=$as_save_IFS
19030   test -z "$as_dir" && as_dir=.
19031   for ac_exec_ext in '' $ac_executable_extensions; do
19032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19033     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19035     break 2
19036   fi
19037 done
19038 done
19039
19040   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19041   ;;
19042 esac
19043 fi
19044 QMTEST=$ac_cv_path_QMTEST
19045
19046 if test -n "$QMTEST"; then
19047   echo "$as_me:$LINENO: result: $QMTEST" >&5
19048 echo "${ECHO_T}$QMTEST" >&6
19049 else
19050   echo "$as_me:$LINENO: result: no" >&5
19051 echo "${ECHO_T}no" >&6
19052 fi
19053
19054 if test ${QMTEST} = "false"
19055 then
19056         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19057 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19058 fi
19059
19060 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19061 pymajor=`echo $pyversion | cut -d. -f1`
19062 pyminor=`echo $pyversion | cut -d. -f2`
19063
19064 if test "$pymajor" -ge "2"
19065 then
19066         if test "$pymajor" -eq "2"
19067         then
19068                 if test "$pyminor" -lt "2"
19069                 then
19070                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19071 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19072    { (exit 1); exit 1; }; }
19073                 fi
19074         fi
19075 else
19076         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19077 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19078    { (exit 1); exit 1; }; }
19079 fi
19080
19081
19082
19083
19084
19085 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19086 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19087 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19088   echo $ECHO_N "(cached) $ECHO_C" >&6
19089 else
19090   ac_check_lib_save_LIBS=$LIBS
19091 LIBS="-lelf  $LIBS"
19092 cat >conftest.$ac_ext <<_ACEOF
19093 #line $LINENO "configure"
19094 /* confdefs.h.  */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h.  */
19099
19100 /* Override any gcc2 internal prototype to avoid an error.  */
19101 #ifdef __cplusplus
19102 extern "C"
19103 #endif
19104 /* We use char because int might match the return type of a gcc2
19105    builtin and then its argument prototype would still apply.  */
19106 char elf_begin ();
19107 int
19108 main ()
19109 {
19110 elf_begin ();
19111   ;
19112   return 0;
19113 }
19114 _ACEOF
19115 rm -f conftest.$ac_objext conftest$ac_exeext
19116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19117   (eval $ac_link) 2>&5
19118   ac_status=$?
19119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); } &&
19121          { ac_try='test -s conftest$ac_exeext'
19122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123   (eval $ac_try) 2>&5
19124   ac_status=$?
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); }; }; then
19127   ac_cv_lib_elf_elf_begin=yes
19128 else
19129   echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19131
19132 ac_cv_lib_elf_elf_begin=no
19133 fi
19134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19135 LIBS=$ac_check_lib_save_LIBS
19136 fi
19137 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19138 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19139 if test $ac_cv_lib_elf_elf_begin = yes; then
19140   cat >>confdefs.h <<_ACEOF
19141 #define HAVE_LIBELF 1
19142 _ACEOF
19143
19144   LIBS="-lelf $LIBS"
19145
19146 fi
19147
19148
19149 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19150 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19151 if test "${ac_cv_search_dlopen+set}" = set; then
19152   echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154   ac_func_search_save_LIBS=$LIBS
19155 ac_cv_search_dlopen=no
19156 cat >conftest.$ac_ext <<_ACEOF
19157 #line $LINENO "configure"
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163
19164 /* Override any gcc2 internal prototype to avoid an error.  */
19165 #ifdef __cplusplus
19166 extern "C"
19167 #endif
19168 /* We use char because int might match the return type of a gcc2
19169    builtin and then its argument prototype would still apply.  */
19170 char dlopen ();
19171 int
19172 main ()
19173 {
19174 dlopen ();
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181   (eval $ac_link) 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); } &&
19185          { ac_try='test -s conftest$ac_exeext'
19186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187   (eval $ac_try) 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; }; then
19191   ac_cv_search_dlopen="none required"
19192 else
19193   echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19195
19196 fi
19197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19198 if test "$ac_cv_search_dlopen" = no; then
19199   for ac_lib in dl; do
19200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19201     cat >conftest.$ac_ext <<_ACEOF
19202 #line $LINENO "configure"
19203 /* confdefs.h.  */
19204 _ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h.  */
19208
19209 /* Override any gcc2 internal prototype to avoid an error.  */
19210 #ifdef __cplusplus
19211 extern "C"
19212 #endif
19213 /* We use char because int might match the return type of a gcc2
19214    builtin and then its argument prototype would still apply.  */
19215 char dlopen ();
19216 int
19217 main ()
19218 {
19219 dlopen ();
19220   ;
19221   return 0;
19222 }
19223 _ACEOF
19224 rm -f conftest.$ac_objext conftest$ac_exeext
19225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19226   (eval $ac_link) 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); } &&
19230          { ac_try='test -s conftest$ac_exeext'
19231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232   (eval $ac_try) 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); }; }; then
19236   ac_cv_search_dlopen="-l$ac_lib"
19237 break
19238 else
19239   echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19241
19242 fi
19243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19244   done
19245 fi
19246 LIBS=$ac_func_search_save_LIBS
19247 fi
19248 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19249 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19250 if test "$ac_cv_search_dlopen" != no; then
19251   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19252
19253 else
19254   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19255 echo "$as_me: error: dlopen() required but not found" >&2;}
19256    { (exit 1); exit 1; }; }
19257 fi
19258
19259
19260 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19261 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19262 if test "${ac_cv_search_mallinfo+set}" = set; then
19263   echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265   ac_func_search_save_LIBS=$LIBS
19266 ac_cv_search_mallinfo=no
19267 cat >conftest.$ac_ext <<_ACEOF
19268 #line $LINENO "configure"
19269 /* confdefs.h.  */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h.  */
19274
19275 /* Override any gcc2 internal prototype to avoid an error.  */
19276 #ifdef __cplusplus
19277 extern "C"
19278 #endif
19279 /* We use char because int might match the return type of a gcc2
19280    builtin and then its argument prototype would still apply.  */
19281 char mallinfo ();
19282 int
19283 main ()
19284 {
19285 mallinfo ();
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292   (eval $ac_link) 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); } &&
19296          { ac_try='test -s conftest$ac_exeext'
19297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298   (eval $ac_try) 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; }; then
19302   ac_cv_search_mallinfo="none required"
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307 fi
19308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19309 if test "$ac_cv_search_mallinfo" = no; then
19310   for ac_lib in malloc; do
19311     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19312     cat >conftest.$ac_ext <<_ACEOF
19313 #line $LINENO "configure"
19314 /* confdefs.h.  */
19315 _ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h.  */
19319
19320 /* Override any gcc2 internal prototype to avoid an error.  */
19321 #ifdef __cplusplus
19322 extern "C"
19323 #endif
19324 /* We use char because int might match the return type of a gcc2
19325    builtin and then its argument prototype would still apply.  */
19326 char mallinfo ();
19327 int
19328 main ()
19329 {
19330 mallinfo ();
19331   ;
19332   return 0;
19333 }
19334 _ACEOF
19335 rm -f conftest.$ac_objext conftest$ac_exeext
19336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19337   (eval $ac_link) 2>&5
19338   ac_status=$?
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); } &&
19341          { ac_try='test -s conftest$ac_exeext'
19342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343   (eval $ac_try) 2>&5
19344   ac_status=$?
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); }; }; then
19347   ac_cv_search_mallinfo="-l$ac_lib"
19348 break
19349 else
19350   echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19352
19353 fi
19354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19355   done
19356 fi
19357 LIBS=$ac_func_search_save_LIBS
19358 fi
19359 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19360 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19361 if test "$ac_cv_search_mallinfo" != no; then
19362   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19363   cat >>confdefs.h <<\_ACEOF
19364 #define HAVE_MALLINFO 1
19365 _ACEOF
19366
19367 fi
19368
19369
19370
19371 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19372 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19373 if test "${ac_cv_header_stdc+set}" = set; then
19374   echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19376   cat >conftest.$ac_ext <<_ACEOF
19377 #line $LINENO "configure"
19378 /* confdefs.h.  */
19379 _ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h.  */
19383 #include <stdlib.h>
19384 #include <stdarg.h>
19385 #include <string.h>
19386 #include <float.h>
19387
19388 int
19389 main ()
19390 {
19391
19392   ;
19393   return 0;
19394 }
19395 _ACEOF
19396 rm -f conftest.$ac_objext
19397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19398   (eval $ac_compile) 2>&5
19399   ac_status=$?
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); } &&
19402          { ac_try='test -s conftest.$ac_objext'
19403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404   (eval $ac_try) 2>&5
19405   ac_status=$?
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); }; }; then
19408   ac_cv_header_stdc=yes
19409 else
19410   echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19412
19413 ac_cv_header_stdc=no
19414 fi
19415 rm -f conftest.$ac_objext conftest.$ac_ext
19416
19417 if test $ac_cv_header_stdc = yes; then
19418   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19419   cat >conftest.$ac_ext <<_ACEOF
19420 #line $LINENO "configure"
19421 /* confdefs.h.  */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h.  */
19426 #include <string.h>
19427
19428 _ACEOF
19429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19430   $EGREP "memchr" >/dev/null 2>&1; then
19431   :
19432 else
19433   ac_cv_header_stdc=no
19434 fi
19435 rm -f conftest*
19436
19437 fi
19438
19439 if test $ac_cv_header_stdc = yes; then
19440   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19441   cat >conftest.$ac_ext <<_ACEOF
19442 #line $LINENO "configure"
19443 /* confdefs.h.  */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h.  */
19448 #include <stdlib.h>
19449
19450 _ACEOF
19451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19452   $EGREP "free" >/dev/null 2>&1; then
19453   :
19454 else
19455   ac_cv_header_stdc=no
19456 fi
19457 rm -f conftest*
19458
19459 fi
19460
19461 if test $ac_cv_header_stdc = yes; then
19462   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19463   if test "$cross_compiling" = yes; then
19464   :
19465 else
19466   cat >conftest.$ac_ext <<_ACEOF
19467 #line $LINENO "configure"
19468 /* confdefs.h.  */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h.  */
19473 #include <ctype.h>
19474 #if ((' ' & 0x0FF) == 0x020)
19475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19477 #else
19478 # define ISLOWER(c) \
19479                    (('a' <= (c) && (c) <= 'i') \
19480                      || ('j' <= (c) && (c) <= 'r') \
19481                      || ('s' <= (c) && (c) <= 'z'))
19482 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19483 #endif
19484
19485 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19486 int
19487 main ()
19488 {
19489   int i;
19490   for (i = 0; i < 256; i++)
19491     if (XOR (islower (i), ISLOWER (i))
19492         || toupper (i) != TOUPPER (i))
19493       exit(2);
19494   exit (0);
19495 }
19496 _ACEOF
19497 rm -f conftest$ac_exeext
19498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19499   (eval $ac_link) 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504   (eval $ac_try) 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); }; }; then
19508   :
19509 else
19510   echo "$as_me: program exited with status $ac_status" >&5
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19513
19514 ( exit $ac_status )
19515 ac_cv_header_stdc=no
19516 fi
19517 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19518 fi
19519 fi
19520 fi
19521 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19522 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19523 if test $ac_cv_header_stdc = yes; then
19524
19525 cat >>confdefs.h <<\_ACEOF
19526 #define STDC_HEADERS 1
19527 _ACEOF
19528
19529 fi
19530
19531 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19532 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19533 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19534   echo $ECHO_N "(cached) $ECHO_C" >&6
19535 else
19536   cat >conftest.$ac_ext <<_ACEOF
19537 #line $LINENO "configure"
19538 /* confdefs.h.  */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h.  */
19543 #include <sys/types.h>
19544 #include <sys/wait.h>
19545 #ifndef WEXITSTATUS
19546 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19547 #endif
19548 #ifndef WIFEXITED
19549 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19550 #endif
19551
19552 int
19553 main ()
19554 {
19555   int s;
19556   wait (&s);
19557   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 rm -f conftest.$ac_objext
19563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564   (eval $ac_compile) 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); } &&
19568          { ac_try='test -s conftest.$ac_objext'
19569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570   (eval $ac_try) 2>&5
19571   ac_status=$?
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); }; }; then
19574   ac_cv_header_sys_wait_h=yes
19575 else
19576   echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19578
19579 ac_cv_header_sys_wait_h=no
19580 fi
19581 rm -f conftest.$ac_objext conftest.$ac_ext
19582 fi
19583 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19584 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19585 if test $ac_cv_header_sys_wait_h = yes; then
19586
19587 cat >>confdefs.h <<\_ACEOF
19588 #define HAVE_SYS_WAIT_H 1
19589 _ACEOF
19590
19591 fi
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19603 do
19604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19606   echo "$as_me:$LINENO: checking for $ac_header" >&5
19607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19609   echo $ECHO_N "(cached) $ECHO_C" >&6
19610 fi
19611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19613 else
19614   # Is the header compilable?
19615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19617 cat >conftest.$ac_ext <<_ACEOF
19618 #line $LINENO "configure"
19619 /* confdefs.h.  */
19620 _ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h.  */
19624 $ac_includes_default
19625 #include <$ac_header>
19626 _ACEOF
19627 rm -f conftest.$ac_objext
19628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19629   (eval $ac_compile) 2>&5
19630   ac_status=$?
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } &&
19633          { ac_try='test -s conftest.$ac_objext'
19634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635   (eval $ac_try) 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; }; then
19639   ac_header_compiler=yes
19640 else
19641   echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19643
19644 ac_header_compiler=no
19645 fi
19646 rm -f conftest.$ac_objext conftest.$ac_ext
19647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19648 echo "${ECHO_T}$ac_header_compiler" >&6
19649
19650 # Is the header present?
19651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19653 cat >conftest.$ac_ext <<_ACEOF
19654 #line $LINENO "configure"
19655 /* confdefs.h.  */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h.  */
19660 #include <$ac_header>
19661 _ACEOF
19662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19663   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19664   ac_status=$?
19665   grep -v '^ *+' conftest.er1 >conftest.err
19666   rm -f conftest.er1
19667   cat conftest.err >&5
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); } >/dev/null; then
19670   if test -s conftest.err; then
19671     ac_cpp_err=$ac_c_preproc_warn_flag
19672   else
19673     ac_cpp_err=
19674   fi
19675 else
19676   ac_cpp_err=yes
19677 fi
19678 if test -z "$ac_cpp_err"; then
19679   ac_header_preproc=yes
19680 else
19681   echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19683
19684   ac_header_preproc=no
19685 fi
19686 rm -f conftest.err conftest.$ac_ext
19687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19688 echo "${ECHO_T}$ac_header_preproc" >&6
19689
19690 # So?  What about this header?
19691 case $ac_header_compiler:$ac_header_preproc in
19692   yes:no )
19693     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19697     (
19698       cat <<\_ASBOX
19699 ## ------------------------------------ ##
19700 ## Report this to bug-autoconf@gnu.org. ##
19701 ## ------------------------------------ ##
19702 _ASBOX
19703     ) |
19704       sed "s/^/$as_me: WARNING:     /" >&2
19705     ;;
19706   no:yes )
19707     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19709     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19713     (
19714       cat <<\_ASBOX
19715 ## ------------------------------------ ##
19716 ## Report this to bug-autoconf@gnu.org. ##
19717 ## ------------------------------------ ##
19718 _ASBOX
19719     ) |
19720       sed "s/^/$as_me: WARNING:     /" >&2
19721     ;;
19722 esac
19723 echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726   echo $ECHO_N "(cached) $ECHO_C" >&6
19727 else
19728   eval "$as_ac_Header=$ac_header_preproc"
19729 fi
19730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19732
19733 fi
19734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19735   cat >>confdefs.h <<_ACEOF
19736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19737 _ACEOF
19738
19739 fi
19740
19741 done
19742
19743
19744
19745
19746
19747
19748 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19749 do
19750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19752   echo "$as_me:$LINENO: checking for $ac_header" >&5
19753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19755   echo $ECHO_N "(cached) $ECHO_C" >&6
19756 fi
19757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19759 else
19760   # Is the header compilable?
19761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19763 cat >conftest.$ac_ext <<_ACEOF
19764 #line $LINENO "configure"
19765 /* confdefs.h.  */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h.  */
19770 $ac_includes_default
19771 #include <$ac_header>
19772 _ACEOF
19773 rm -f conftest.$ac_objext
19774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19775   (eval $ac_compile) 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); } &&
19779          { ac_try='test -s conftest.$ac_objext'
19780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781   (eval $ac_try) 2>&5
19782   ac_status=$?
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); }; }; then
19785   ac_header_compiler=yes
19786 else
19787   echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790 ac_header_compiler=no
19791 fi
19792 rm -f conftest.$ac_objext conftest.$ac_ext
19793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19794 echo "${ECHO_T}$ac_header_compiler" >&6
19795
19796 # Is the header present?
19797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19799 cat >conftest.$ac_ext <<_ACEOF
19800 #line $LINENO "configure"
19801 /* confdefs.h.  */
19802 _ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h.  */
19806 #include <$ac_header>
19807 _ACEOF
19808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19809   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19810   ac_status=$?
19811   grep -v '^ *+' conftest.er1 >conftest.err
19812   rm -f conftest.er1
19813   cat conftest.err >&5
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); } >/dev/null; then
19816   if test -s conftest.err; then
19817     ac_cpp_err=$ac_c_preproc_warn_flag
19818   else
19819     ac_cpp_err=
19820   fi
19821 else
19822   ac_cpp_err=yes
19823 fi
19824 if test -z "$ac_cpp_err"; then
19825   ac_header_preproc=yes
19826 else
19827   echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830   ac_header_preproc=no
19831 fi
19832 rm -f conftest.err conftest.$ac_ext
19833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19834 echo "${ECHO_T}$ac_header_preproc" >&6
19835
19836 # So?  What about this header?
19837 case $ac_header_compiler:$ac_header_preproc in
19838   yes:no )
19839     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19843     (
19844       cat <<\_ASBOX
19845 ## ------------------------------------ ##
19846 ## Report this to bug-autoconf@gnu.org. ##
19847 ## ------------------------------------ ##
19848 _ASBOX
19849     ) |
19850       sed "s/^/$as_me: WARNING:     /" >&2
19851     ;;
19852   no:yes )
19853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19855     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19859     (
19860       cat <<\_ASBOX
19861 ## ------------------------------------ ##
19862 ## Report this to bug-autoconf@gnu.org. ##
19863 ## ------------------------------------ ##
19864 _ASBOX
19865     ) |
19866       sed "s/^/$as_me: WARNING:     /" >&2
19867     ;;
19868 esac
19869 echo "$as_me:$LINENO: checking for $ac_header" >&5
19870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19872   echo $ECHO_N "(cached) $ECHO_C" >&6
19873 else
19874   eval "$as_ac_Header=$ac_header_preproc"
19875 fi
19876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19878
19879 fi
19880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19881   cat >>confdefs.h <<_ACEOF
19882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19883 _ACEOF
19884
19885 fi
19886
19887 done
19888
19889
19890
19891
19892 for ac_header in dlfcn.h link.h
19893 do
19894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19896   echo "$as_me:$LINENO: checking for $ac_header" >&5
19897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19899   echo $ECHO_N "(cached) $ECHO_C" >&6
19900 fi
19901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19903 else
19904   # Is the header compilable?
19905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19907 cat >conftest.$ac_ext <<_ACEOF
19908 #line $LINENO "configure"
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914 $ac_includes_default
19915 #include <$ac_header>
19916 _ACEOF
19917 rm -f conftest.$ac_objext
19918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19919   (eval $ac_compile) 2>&5
19920   ac_status=$?
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); } &&
19923          { ac_try='test -s conftest.$ac_objext'
19924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925   (eval $ac_try) 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); }; }; then
19929   ac_header_compiler=yes
19930 else
19931   echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934 ac_header_compiler=no
19935 fi
19936 rm -f conftest.$ac_objext conftest.$ac_ext
19937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19938 echo "${ECHO_T}$ac_header_compiler" >&6
19939
19940 # Is the header present?
19941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19943 cat >conftest.$ac_ext <<_ACEOF
19944 #line $LINENO "configure"
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 #include <$ac_header>
19951 _ACEOF
19952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19954   ac_status=$?
19955   grep -v '^ *+' conftest.er1 >conftest.err
19956   rm -f conftest.er1
19957   cat conftest.err >&5
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); } >/dev/null; then
19960   if test -s conftest.err; then
19961     ac_cpp_err=$ac_c_preproc_warn_flag
19962   else
19963     ac_cpp_err=
19964   fi
19965 else
19966   ac_cpp_err=yes
19967 fi
19968 if test -z "$ac_cpp_err"; then
19969   ac_header_preproc=yes
19970 else
19971   echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974   ac_header_preproc=no
19975 fi
19976 rm -f conftest.err conftest.$ac_ext
19977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978 echo "${ECHO_T}$ac_header_preproc" >&6
19979
19980 # So?  What about this header?
19981 case $ac_header_compiler:$ac_header_preproc in
19982   yes:no )
19983     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19987     (
19988       cat <<\_ASBOX
19989 ## ------------------------------------ ##
19990 ## Report this to bug-autoconf@gnu.org. ##
19991 ## ------------------------------------ ##
19992 _ASBOX
19993     ) |
19994       sed "s/^/$as_me: WARNING:     /" >&2
19995     ;;
19996   no:yes )
19997     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19999     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20003     (
20004       cat <<\_ASBOX
20005 ## ------------------------------------ ##
20006 ## Report this to bug-autoconf@gnu.org. ##
20007 ## ------------------------------------ ##
20008 _ASBOX
20009     ) |
20010       sed "s/^/$as_me: WARNING:     /" >&2
20011     ;;
20012 esac
20013 echo "$as_me:$LINENO: checking for $ac_header" >&5
20014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20016   echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018   eval "$as_ac_Header=$ac_header_preproc"
20019 fi
20020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20022
20023 fi
20024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20025   cat >>confdefs.h <<_ACEOF
20026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20027 _ACEOF
20028
20029 fi
20030
20031 done
20032
20033
20034
20035 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20036 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20037 if test "${ac_cv_c_const+set}" = set; then
20038   echo $ECHO_N "(cached) $ECHO_C" >&6
20039 else
20040   cat >conftest.$ac_ext <<_ACEOF
20041 #line $LINENO "configure"
20042 /* confdefs.h.  */
20043 _ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h.  */
20047
20048 int
20049 main ()
20050 {
20051 /* FIXME: Include the comments suggested by Paul. */
20052 #ifndef __cplusplus
20053   /* Ultrix mips cc rejects this.  */
20054   typedef int charset[2];
20055   const charset x;
20056   /* SunOS 4.1.1 cc rejects this.  */
20057   char const *const *ccp;
20058   char **p;
20059   /* NEC SVR4.0.2 mips cc rejects this.  */
20060   struct point {int x, y;};
20061   static struct point const zero = {0,0};
20062   /* AIX XL C 1.02.0.0 rejects this.
20063      It does not let you subtract one const X* pointer from another in
20064      an arm of an if-expression whose if-part is not a constant
20065      expression */
20066   const char *g = "string";
20067   ccp = &g + (g ? g-g : 0);
20068   /* HPUX 7.0 cc rejects these. */
20069   ++ccp;
20070   p = (char**) ccp;
20071   ccp = (char const *const *) p;
20072   { /* SCO 3.2v4 cc rejects this.  */
20073     char *t;
20074     char const *s = 0 ? (char *) 0 : (char const *) 0;
20075
20076     *t++ = 0;
20077   }
20078   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20079     int x[] = {25, 17};
20080     const int *foo = &x[0];
20081     ++foo;
20082   }
20083   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20084     typedef const int *iptr;
20085     iptr p = 0;
20086     ++p;
20087   }
20088   { /* AIX XL C 1.02.0.0 rejects this saying
20089        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20090     struct s { int j; const int *ap[3]; };
20091     struct s *b; b->j = 5;
20092   }
20093   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20094     const int foo = 10;
20095   }
20096 #endif
20097
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20104   (eval $ac_compile) 2>&5
20105   ac_status=$?
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); } &&
20108          { ac_try='test -s conftest.$ac_objext'
20109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110   (eval $ac_try) 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); }; }; then
20114   ac_cv_c_const=yes
20115 else
20116   echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 ac_cv_c_const=no
20120 fi
20121 rm -f conftest.$ac_objext conftest.$ac_ext
20122 fi
20123 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20124 echo "${ECHO_T}$ac_cv_c_const" >&6
20125 if test $ac_cv_c_const = no; then
20126
20127 cat >>confdefs.h <<\_ACEOF
20128 #define const
20129 _ACEOF
20130
20131 fi
20132
20133 echo "$as_me:$LINENO: checking for inline" >&5
20134 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20135 if test "${ac_cv_c_inline+set}" = set; then
20136   echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138   ac_cv_c_inline=no
20139 for ac_kw in inline __inline__ __inline; do
20140   cat >conftest.$ac_ext <<_ACEOF
20141 #line $LINENO "configure"
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147 #ifndef __cplusplus
20148 typedef int foo_t;
20149 static $ac_kw foo_t static_foo () {return 0; }
20150 $ac_kw foo_t foo () {return 0; }
20151 #endif
20152
20153 _ACEOF
20154 rm -f conftest.$ac_objext
20155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20156   (eval $ac_compile) 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); } &&
20160          { ac_try='test -s conftest.$ac_objext'
20161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162   (eval $ac_try) 2>&5
20163   ac_status=$?
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); }; }; then
20166   ac_cv_c_inline=$ac_kw; break
20167 else
20168   echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171 fi
20172 rm -f conftest.$ac_objext conftest.$ac_ext
20173 done
20174
20175 fi
20176 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20177 echo "${ECHO_T}$ac_cv_c_inline" >&6
20178 case $ac_cv_c_inline in
20179   inline | yes) ;;
20180   no)
20181 cat >>confdefs.h <<\_ACEOF
20182 #define inline
20183 _ACEOF
20184  ;;
20185   *)  cat >>confdefs.h <<_ACEOF
20186 #define inline $ac_cv_c_inline
20187 _ACEOF
20188  ;;
20189 esac
20190
20191
20192 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20193 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20194 if test "${ac_cv_c_bigendian+set}" = set; then
20195   echo $ECHO_N "(cached) $ECHO_C" >&6
20196 else
20197   # See if sys/param.h defines the BYTE_ORDER macro.
20198 cat >conftest.$ac_ext <<_ACEOF
20199 #line $LINENO "configure"
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205 #include <sys/types.h>
20206 #include <sys/param.h>
20207
20208 int
20209 main ()
20210 {
20211 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20212  bogus endian macros
20213 #endif
20214
20215   ;
20216   return 0;
20217 }
20218 _ACEOF
20219 rm -f conftest.$ac_objext
20220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20221   (eval $ac_compile) 2>&5
20222   ac_status=$?
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); } &&
20225          { ac_try='test -s conftest.$ac_objext'
20226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227   (eval $ac_try) 2>&5
20228   ac_status=$?
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); }; }; then
20231   # It does; now see whether it defined to BIG_ENDIAN or not.
20232 cat >conftest.$ac_ext <<_ACEOF
20233 #line $LINENO "configure"
20234 /* confdefs.h.  */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h.  */
20239 #include <sys/types.h>
20240 #include <sys/param.h>
20241
20242 int
20243 main ()
20244 {
20245 #if BYTE_ORDER != BIG_ENDIAN
20246  not big endian
20247 #endif
20248
20249   ;
20250   return 0;
20251 }
20252 _ACEOF
20253 rm -f conftest.$ac_objext
20254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20255   (eval $ac_compile) 2>&5
20256   ac_status=$?
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); } &&
20259          { ac_try='test -s conftest.$ac_objext'
20260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261   (eval $ac_try) 2>&5
20262   ac_status=$?
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); }; }; then
20265   ac_cv_c_bigendian=yes
20266 else
20267   echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20269
20270 ac_cv_c_bigendian=no
20271 fi
20272 rm -f conftest.$ac_objext conftest.$ac_ext
20273 else
20274   echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277 # It does not; compile a test program.
20278 if test "$cross_compiling" = yes; then
20279   # try to guess the endianness by grepping values into an object file
20280   ac_cv_c_bigendian=unknown
20281   cat >conftest.$ac_ext <<_ACEOF
20282 #line $LINENO "configure"
20283 /* confdefs.h.  */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h.  */
20288 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20289 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20290 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20291 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20292 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20293 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20294 int
20295 main ()
20296 {
20297  _ascii (); _ebcdic ();
20298   ;
20299   return 0;
20300 }
20301 _ACEOF
20302 rm -f conftest.$ac_objext
20303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20304   (eval $ac_compile) 2>&5
20305   ac_status=$?
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); } &&
20308          { ac_try='test -s conftest.$ac_objext'
20309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310   (eval $ac_try) 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); }; }; then
20314   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20315   ac_cv_c_bigendian=yes
20316 fi
20317 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20318   if test "$ac_cv_c_bigendian" = unknown; then
20319     ac_cv_c_bigendian=no
20320   else
20321     # finding both strings is unlikely to happen, but who knows?
20322     ac_cv_c_bigendian=unknown
20323   fi
20324 fi
20325 else
20326   echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20328
20329 fi
20330 rm -f conftest.$ac_objext conftest.$ac_ext
20331 else
20332   cat >conftest.$ac_ext <<_ACEOF
20333 #line $LINENO "configure"
20334 /* confdefs.h.  */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h.  */
20339 int
20340 main ()
20341 {
20342   /* Are we little or big endian?  From Harbison&Steele.  */
20343   union
20344   {
20345     long l;
20346     char c[sizeof (long)];
20347   } u;
20348   u.l = 1;
20349   exit (u.c[sizeof (long) - 1] == 1);
20350 }
20351 _ACEOF
20352 rm -f conftest$ac_exeext
20353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20354   (eval $ac_link) 2>&5
20355   ac_status=$?
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359   (eval $ac_try) 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); }; }; then
20363   ac_cv_c_bigendian=no
20364 else
20365   echo "$as_me: program exited with status $ac_status" >&5
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20368
20369 ( exit $ac_status )
20370 ac_cv_c_bigendian=yes
20371 fi
20372 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20373 fi
20374 fi
20375 rm -f conftest.$ac_objext conftest.$ac_ext
20376 fi
20377 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20378 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20379 case $ac_cv_c_bigendian in
20380   yes)
20381     cat >>confdefs.h <<\_ACEOF
20382 #define ENDIAN_BIG 1
20383 _ACEOF
20384  ;;
20385   no)
20386     cat >>confdefs.h <<\_ACEOF
20387 #define ENDIAN_LITTLE 1
20388 _ACEOF
20389  ;;
20390   *)
20391     { { echo "$as_me:$LINENO: error: unknown endianness
20392 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20393 echo "$as_me: error: unknown endianness
20394 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20395    { (exit 1); exit 1; }; } ;;
20396 esac
20397
20398
20399 echo "$as_me:$LINENO: checking for pid_t" >&5
20400 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20401 if test "${ac_cv_type_pid_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 ((pid_t *) 0)
20416   return 0;
20417 if (sizeof (pid_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_pid_t=yes
20436 else
20437   echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20439
20440 ac_cv_type_pid_t=no
20441 fi
20442 rm -f conftest.$ac_objext conftest.$ac_ext
20443 fi
20444 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20445 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20446 if test $ac_cv_type_pid_t = yes; then
20447   :
20448 else
20449
20450 cat >>confdefs.h <<_ACEOF
20451 #define pid_t int
20452 _ACEOF
20453
20454 fi
20455
20456 echo "$as_me:$LINENO: checking for size_t" >&5
20457 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20458 if test "${ac_cv_type_size_t+set}" = set; then
20459   echo $ECHO_N "(cached) $ECHO_C" >&6
20460 else
20461   cat >conftest.$ac_ext <<_ACEOF
20462 #line $LINENO "configure"
20463 /* confdefs.h.  */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h.  */
20468 $ac_includes_default
20469 int
20470 main ()
20471 {
20472 if ((size_t *) 0)
20473   return 0;
20474 if (sizeof (size_t))
20475   return 0;
20476   ;
20477   return 0;
20478 }
20479 _ACEOF
20480 rm -f conftest.$ac_objext
20481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20482   (eval $ac_compile) 2>&5
20483   ac_status=$?
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); } &&
20486          { ac_try='test -s conftest.$ac_objext'
20487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488   (eval $ac_try) 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); }; }; then
20492   ac_cv_type_size_t=yes
20493 else
20494   echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_cv_type_size_t=no
20498 fi
20499 rm -f conftest.$ac_objext conftest.$ac_ext
20500 fi
20501 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20502 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20503 if test $ac_cv_type_size_t = yes; then
20504   :
20505 else
20506
20507 cat >>confdefs.h <<_ACEOF
20508 #define size_t unsigned
20509 _ACEOF
20510
20511 fi
20512
20513 echo "$as_me:$LINENO: checking for int64_t" >&5
20514 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20515 if test "${ac_cv_type_int64_t+set}" = set; then
20516   echo $ECHO_N "(cached) $ECHO_C" >&6
20517 else
20518   cat >conftest.$ac_ext <<_ACEOF
20519 #line $LINENO "configure"
20520 /* confdefs.h.  */
20521 _ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h.  */
20525 $ac_includes_default
20526 int
20527 main ()
20528 {
20529 if ((int64_t *) 0)
20530   return 0;
20531 if (sizeof (int64_t))
20532   return 0;
20533   ;
20534   return 0;
20535 }
20536 _ACEOF
20537 rm -f conftest.$ac_objext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539   (eval $ac_compile) 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); } &&
20543          { ac_try='test -s conftest.$ac_objext'
20544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545   (eval $ac_try) 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); }; }; then
20549   ac_cv_type_int64_t=yes
20550 else
20551   echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554 ac_cv_type_int64_t=no
20555 fi
20556 rm -f conftest.$ac_objext conftest.$ac_ext
20557 fi
20558 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20559 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20560 if test $ac_cv_type_int64_t = yes; then
20561
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_INT64_T 1
20564 _ACEOF
20565
20566
20567 else
20568   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20569 echo "$as_me: error: Type int64_t required but not found" >&2;}
20570    { (exit 1); exit 1; }; }
20571 fi
20572
20573 echo "$as_me:$LINENO: checking for uint64_t" >&5
20574 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20575 if test "${ac_cv_type_uint64_t+set}" = set; then
20576   echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578   cat >conftest.$ac_ext <<_ACEOF
20579 #line $LINENO "configure"
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585 $ac_includes_default
20586 int
20587 main ()
20588 {
20589 if ((uint64_t *) 0)
20590   return 0;
20591 if (sizeof (uint64_t))
20592   return 0;
20593   ;
20594   return 0;
20595 }
20596 _ACEOF
20597 rm -f conftest.$ac_objext
20598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20599   (eval $ac_compile) 2>&5
20600   ac_status=$?
20601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602   (exit $ac_status); } &&
20603          { ac_try='test -s conftest.$ac_objext'
20604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605   (eval $ac_try) 2>&5
20606   ac_status=$?
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); }; }; then
20609   ac_cv_type_uint64_t=yes
20610 else
20611   echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20613
20614 ac_cv_type_uint64_t=no
20615 fi
20616 rm -f conftest.$ac_objext conftest.$ac_ext
20617 fi
20618 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20619 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20620 if test $ac_cv_type_uint64_t = yes; then
20621
20622 cat >>confdefs.h <<_ACEOF
20623 #define HAVE_UINT64_T 1
20624 _ACEOF
20625
20626
20627 else
20628   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20629 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20630    { (exit 1); exit 1; }; }
20631 fi
20632
20633 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20634 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20635 if test "${ac_cv_header_time+set}" = set; then
20636   echo $ECHO_N "(cached) $ECHO_C" >&6
20637 else
20638   cat >conftest.$ac_ext <<_ACEOF
20639 #line $LINENO "configure"
20640 /* confdefs.h.  */
20641 _ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h.  */
20645 #include <sys/types.h>
20646 #include <sys/time.h>
20647 #include <time.h>
20648
20649 int
20650 main ()
20651 {
20652 if ((struct tm *) 0)
20653 return 0;
20654   ;
20655   return 0;
20656 }
20657 _ACEOF
20658 rm -f conftest.$ac_objext
20659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20660   (eval $ac_compile) 2>&5
20661   ac_status=$?
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); } &&
20664          { ac_try='test -s conftest.$ac_objext'
20665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666   (eval $ac_try) 2>&5
20667   ac_status=$?
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); }; }; then
20670   ac_cv_header_time=yes
20671 else
20672   echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20674
20675 ac_cv_header_time=no
20676 fi
20677 rm -f conftest.$ac_objext conftest.$ac_ext
20678 fi
20679 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20680 echo "${ECHO_T}$ac_cv_header_time" >&6
20681 if test $ac_cv_header_time = yes; then
20682
20683 cat >>confdefs.h <<\_ACEOF
20684 #define TIME_WITH_SYS_TIME 1
20685 _ACEOF
20686
20687 fi
20688
20689 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20690 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20691 if test "${ac_cv_struct_tm+set}" = set; then
20692   echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694   cat >conftest.$ac_ext <<_ACEOF
20695 #line $LINENO "configure"
20696 /* confdefs.h.  */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h.  */
20701 #include <sys/types.h>
20702 #include <time.h>
20703
20704 int
20705 main ()
20706 {
20707 struct tm *tp; tp->tm_sec;
20708   ;
20709   return 0;
20710 }
20711 _ACEOF
20712 rm -f conftest.$ac_objext
20713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20714   (eval $ac_compile) 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } &&
20718          { ac_try='test -s conftest.$ac_objext'
20719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720   (eval $ac_try) 2>&5
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); }; }; then
20724   ac_cv_struct_tm=time.h
20725 else
20726   echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20728
20729 ac_cv_struct_tm=sys/time.h
20730 fi
20731 rm -f conftest.$ac_objext conftest.$ac_ext
20732 fi
20733 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20734 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20735 if test $ac_cv_struct_tm = sys/time.h; then
20736
20737 cat >>confdefs.h <<\_ACEOF
20738 #define TM_IN_SYS_TIME 1
20739 _ACEOF
20740
20741 fi
20742
20743
20744 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20745 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20746 if test "${ac_cv_cxx_namespaces+set}" = set; then
20747   echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20749
20750
20751  ac_ext=cc
20752 ac_cpp='$CXXCPP $CPPFLAGS'
20753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20756
20757  cat >conftest.$ac_ext <<_ACEOF
20758 #line $LINENO "configure"
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764 namespace Outer { namespace Inner { int i = 0; }}
20765 int
20766 main ()
20767 {
20768 using namespace Outer::Inner; return i;
20769   ;
20770   return 0;
20771 }
20772 _ACEOF
20773 rm -f conftest.$ac_objext
20774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20775   (eval $ac_compile) 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); } &&
20779          { ac_try='test -s conftest.$ac_objext'
20780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781   (eval $ac_try) 2>&5
20782   ac_status=$?
20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); }; }; then
20785   ac_cv_cxx_namespaces=yes
20786 else
20787   echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20789
20790 ac_cv_cxx_namespaces=no
20791 fi
20792 rm -f conftest.$ac_objext conftest.$ac_ext
20793  ac_ext=c
20794 ac_cpp='$CPP $CPPFLAGS'
20795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20798
20799
20800 fi
20801 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20802 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20803 if test "$ac_cv_cxx_namespaces" = yes; then
20804
20805 cat >>confdefs.h <<\_ACEOF
20806 #define HAVE_NAMESPACES
20807 _ACEOF
20808
20809 fi
20810
20811 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20812 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20813 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816
20817
20818
20819   ac_ext=cc
20820 ac_cpp='$CXXCPP $CPPFLAGS'
20821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20824
20825   cat >conftest.$ac_ext <<_ACEOF
20826 #line $LINENO "configure"
20827 /* confdefs.h.  */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h.  */
20832 #include <ext/hash_map>
20833 #ifdef HAVE_NAMESPACES
20834 using namespace std;
20835 #endif
20836 int
20837 main ()
20838 {
20839 hash_map<int, int> t; return 0;
20840   ;
20841   return 0;
20842 }
20843 _ACEOF
20844 rm -f conftest.$ac_objext
20845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20846   (eval $ac_compile) 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); } &&
20850          { ac_try='test -s conftest.$ac_objext'
20851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852   (eval $ac_try) 2>&5
20853   ac_status=$?
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); }; }; then
20856   ac_cv_cxx_have_ext_hash_map=std
20857 else
20858   echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20860
20861 ac_cv_cxx_have_ext_hash_map=no
20862 fi
20863 rm -f conftest.$ac_objext conftest.$ac_ext
20864   cat >conftest.$ac_ext <<_ACEOF
20865 #line $LINENO "configure"
20866 /* confdefs.h.  */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h.  */
20871 #include <ext/hash_map>
20872 #ifdef HAVE_NAMESPACES
20873 using namespace __gnu_cxx;
20874 #endif
20875 int
20876 main ()
20877 {
20878 hash_map<int, int> t; return 0;
20879   ;
20880   return 0;
20881 }
20882 _ACEOF
20883 rm -f conftest.$ac_objext
20884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20885   (eval $ac_compile) 2>&5
20886   ac_status=$?
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); } &&
20889          { ac_try='test -s conftest.$ac_objext'
20890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891   (eval $ac_try) 2>&5
20892   ac_status=$?
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); }; }; then
20895   ac_cv_cxx_have_ext_hash_map=gnu
20896 else
20897   echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900 ac_cv_cxx_have_ext_hash_map=no
20901 fi
20902 rm -f conftest.$ac_objext conftest.$ac_ext
20903   ac_ext=c
20904 ac_cpp='$CPP $CPPFLAGS'
20905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20908
20909
20910 fi
20911 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20912 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20913 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20914
20915 cat >>confdefs.h <<\_ACEOF
20916 #define HAVE_STD_EXT_HASH_MAP
20917 _ACEOF
20918
20919 fi
20920 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20921
20922 cat >>confdefs.h <<\_ACEOF
20923 #define HAVE_GNU_EXT_HASH_MAP
20924 _ACEOF
20925
20926 fi
20927
20928 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20929 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20930 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20931   echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933
20934
20935
20936   ac_ext=cc
20937 ac_cpp='$CXXCPP $CPPFLAGS'
20938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20941
20942   cat >conftest.$ac_ext <<_ACEOF
20943 #line $LINENO "configure"
20944 /* confdefs.h.  */
20945 _ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h.  */
20949 #include <ext/hash_set>
20950 #ifdef HAVE_NAMESPACES
20951 using namespace std;
20952 #endif
20953 int
20954 main ()
20955 {
20956 hash_set<int> t; return 0;
20957   ;
20958   return 0;
20959 }
20960 _ACEOF
20961 rm -f conftest.$ac_objext
20962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20963   (eval $ac_compile) 2>&5
20964   ac_status=$?
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); } &&
20967          { ac_try='test -s conftest.$ac_objext'
20968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20969   (eval $ac_try) 2>&5
20970   ac_status=$?
20971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); }; }; then
20973   ac_cv_cxx_have_ext_hash_set=std
20974 else
20975   echo "$as_me: failed program was:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20977
20978 ac_cv_cxx_have_ext_hash_set=no
20979 fi
20980 rm -f conftest.$ac_objext conftest.$ac_ext
20981   cat >conftest.$ac_ext <<_ACEOF
20982 #line $LINENO "configure"
20983 /* confdefs.h.  */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h.  */
20988 #include <ext/hash_set>
20989 #ifdef HAVE_NAMESPACES
20990 using namespace __gnu_cxx;
20991 #endif
20992 int
20993 main ()
20994 {
20995 hash_set<int> t; return 0;
20996   ;
20997   return 0;
20998 }
20999 _ACEOF
21000 rm -f conftest.$ac_objext
21001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21002   (eval $ac_compile) 2>&5
21003   ac_status=$?
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); } &&
21006          { ac_try='test -s conftest.$ac_objext'
21007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008   (eval $ac_try) 2>&5
21009   ac_status=$?
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); }; }; then
21012   ac_cv_cxx_have_ext_hash_set=gnu
21013 else
21014   echo "$as_me: failed program was:" >&5
21015 sed 's/^/| /' conftest.$ac_ext >&5
21016
21017 ac_cv_cxx_have_ext_hash_set=no
21018 fi
21019 rm -f conftest.$ac_objext conftest.$ac_ext
21020   ac_ext=c
21021 ac_cpp='$CPP $CPPFLAGS'
21022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21025
21026
21027 fi
21028 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21029 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21030 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21031
21032 cat >>confdefs.h <<\_ACEOF
21033 #define HAVE_STD_EXT_HASH_SET
21034 _ACEOF
21035
21036 fi
21037 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21038
21039 cat >>confdefs.h <<\_ACEOF
21040 #define HAVE_GNU_EXT_HASH_SET
21041 _ACEOF
21042
21043 fi
21044
21045 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21046 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21047 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21048   echo $ECHO_N "(cached) $ECHO_C" >&6
21049 else
21050
21051
21052
21053   ac_ext=cc
21054 ac_cpp='$CXXCPP $CPPFLAGS'
21055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21058
21059   cat >conftest.$ac_ext <<_ACEOF
21060 #line $LINENO "configure"
21061 /* confdefs.h.  */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h.  */
21066 #include <ext/slist>
21067 #ifdef HAVE_NAMESPACES
21068 using namespace std;
21069 #endif
21070 int
21071 main ()
21072 {
21073 slist<int> s; return 0;
21074   ;
21075   return 0;
21076 }
21077 _ACEOF
21078 rm -f conftest.$ac_objext
21079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21080   (eval $ac_compile) 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); } &&
21084          { ac_try='test -s conftest.$ac_objext'
21085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086   (eval $ac_try) 2>&5
21087   ac_status=$?
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); }; }; then
21090   ac_cv_cxx_have_ext_slist=std
21091 else
21092   echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21094
21095 ac_cv_cxx_have_ext_slist=no
21096 fi
21097 rm -f conftest.$ac_objext conftest.$ac_ext
21098   cat >conftest.$ac_ext <<_ACEOF
21099 #line $LINENO "configure"
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105 #include <ext/slist>
21106 #ifdef HAVE_NAMESPACES
21107 using namespace __gnu_cxx;
21108 #endif
21109 int
21110 main ()
21111 {
21112 slist<int> s; return 0;
21113   ;
21114   return 0;
21115 }
21116 _ACEOF
21117 rm -f conftest.$ac_objext
21118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21119   (eval $ac_compile) 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } &&
21123          { ac_try='test -s conftest.$ac_objext'
21124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125   (eval $ac_try) 2>&5
21126   ac_status=$?
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); }; }; then
21129   ac_cv_cxx_have_ext_slist=gnu
21130 else
21131   echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21133
21134 ac_cv_cxx_have_ext_slist=no
21135 fi
21136 rm -f conftest.$ac_objext conftest.$ac_ext
21137
21138   ac_ext=c
21139 ac_cpp='$CPP $CPPFLAGS'
21140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21143
21144
21145 fi
21146 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21147 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21148 if test "$ac_cv_cxx_have_ext_slist" = std; then
21149
21150 cat >>confdefs.h <<\_ACEOF
21151 #define HAVE_EXT_SLIST std
21152 _ACEOF
21153
21154 fi
21155 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21156
21157 cat >>confdefs.h <<\_ACEOF
21158 #define HAVE_EXT_SLIST gnu
21159 _ACEOF
21160
21161 fi
21162
21163 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21164 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21165 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21166   echo $ECHO_N "(cached) $ECHO_C" >&6
21167 else
21168
21169
21170
21171   ac_ext=cc
21172 ac_cpp='$CXXCPP $CPPFLAGS'
21173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21176
21177   cat >conftest.$ac_ext <<_ACEOF
21178 #line $LINENO "configure"
21179 /* confdefs.h.  */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h.  */
21184 #include <iterator>
21185 #ifdef HAVE_NAMESPACES
21186 using namespace std;
21187 #endif
21188 int
21189 main ()
21190 {
21191 iterator<int,int,int> t; return 0;
21192   ;
21193   return 0;
21194 }
21195 _ACEOF
21196 rm -f conftest.$ac_objext
21197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21198   (eval $ac_compile) 2>&5
21199   ac_status=$?
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); } &&
21202          { ac_try='test -s conftest.$ac_objext'
21203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204   (eval $ac_try) 2>&5
21205   ac_status=$?
21206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207   (exit $ac_status); }; }; then
21208   ac_cv_cxx_have_std_iterator=yes
21209 else
21210   echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21212
21213 ac_cv_cxx_have_std_iterator=no
21214 fi
21215 rm -f conftest.$ac_objext conftest.$ac_ext
21216   ac_ext=c
21217 ac_cpp='$CPP $CPPFLAGS'
21218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21221
21222
21223 fi
21224 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21225 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21226 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21227
21228 cat >>confdefs.h <<\_ACEOF
21229 #define HAVE_STD_ITERATOR
21230 _ACEOF
21231
21232 fi
21233
21234 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21235 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21236 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21237   echo $ECHO_N "(cached) $ECHO_C" >&6
21238 else
21239
21240
21241
21242   ac_ext=cc
21243 ac_cpp='$CXXCPP $CPPFLAGS'
21244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21247
21248   cat >conftest.$ac_ext <<_ACEOF
21249 #line $LINENO "configure"
21250 /* confdefs.h.  */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h.  */
21255 #include <iterator>
21256 #ifdef HAVE_NAMESPACES
21257 using namespace std;
21258 #endif
21259 int
21260 main ()
21261 {
21262 bidirectional_iterator<int,int> t; return 0;
21263   ;
21264   return 0;
21265 }
21266 _ACEOF
21267 rm -f conftest.$ac_objext
21268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21269   (eval $ac_compile) 2>&5
21270   ac_status=$?
21271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272   (exit $ac_status); } &&
21273          { ac_try='test -s conftest.$ac_objext'
21274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275   (eval $ac_try) 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); }; }; then
21279   ac_cv_cxx_have_bi_iterator=yes
21280 else
21281   echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21283
21284 ac_cv_cxx_have_bi_iterator=no
21285 fi
21286 rm -f conftest.$ac_objext conftest.$ac_ext
21287   ac_ext=c
21288 ac_cpp='$CPP $CPPFLAGS'
21289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21292
21293
21294 fi
21295 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21296 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21297 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21298
21299 cat >>confdefs.h <<\_ACEOF
21300 #define HAVE_BI_ITERATOR
21301 _ACEOF
21302
21303 fi
21304
21305 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21306 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21307 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21308   echo $ECHO_N "(cached) $ECHO_C" >&6
21309 else
21310
21311
21312
21313   ac_ext=cc
21314 ac_cpp='$CXXCPP $CPPFLAGS'
21315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21318
21319   cat >conftest.$ac_ext <<_ACEOF
21320 #line $LINENO "configure"
21321 /* confdefs.h.  */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h.  */
21326 #include <iterator>
21327 #ifdef HAVE_NAMESPACES
21328 using namespace std;
21329 #endif
21330 int
21331 main ()
21332 {
21333 forward_iterator<int,int> t; return 0;
21334   ;
21335   return 0;
21336 }
21337 _ACEOF
21338 rm -f conftest.$ac_objext
21339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21340   (eval $ac_compile) 2>&5
21341   ac_status=$?
21342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343   (exit $ac_status); } &&
21344          { ac_try='test -s conftest.$ac_objext'
21345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346   (eval $ac_try) 2>&5
21347   ac_status=$?
21348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349   (exit $ac_status); }; }; then
21350   ac_cv_cxx_have_fwd_iterator=yes
21351 else
21352   echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21354
21355 ac_cv_cxx_have_fwd_iterator=no
21356 fi
21357 rm -f conftest.$ac_objext conftest.$ac_ext
21358   ac_ext=c
21359 ac_cpp='$CPP $CPPFLAGS'
21360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21363
21364
21365 fi
21366 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21367 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21368 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21369
21370 cat >>confdefs.h <<\_ACEOF
21371 #define HAVE_FWD_ITERATOR
21372 _ACEOF
21373
21374 fi
21375
21376
21377 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21378 # for constant arguments.  Useless!
21379 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21380 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21381 if test "${ac_cv_working_alloca_h+set}" = set; then
21382   echo $ECHO_N "(cached) $ECHO_C" >&6
21383 else
21384   cat >conftest.$ac_ext <<_ACEOF
21385 #line $LINENO "configure"
21386 /* confdefs.h.  */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h.  */
21391 #include <alloca.h>
21392 int
21393 main ()
21394 {
21395 char *p = (char *) alloca (2 * sizeof (int));
21396   ;
21397   return 0;
21398 }
21399 _ACEOF
21400 rm -f conftest.$ac_objext conftest$ac_exeext
21401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21402   (eval $ac_link) 2>&5
21403   ac_status=$?
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } &&
21406          { ac_try='test -s conftest$ac_exeext'
21407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408   (eval $ac_try) 2>&5
21409   ac_status=$?
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); }; }; then
21412   ac_cv_working_alloca_h=yes
21413 else
21414   echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21416
21417 ac_cv_working_alloca_h=no
21418 fi
21419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21420 fi
21421 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21422 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21423 if test $ac_cv_working_alloca_h = yes; then
21424
21425 cat >>confdefs.h <<\_ACEOF
21426 #define HAVE_ALLOCA_H 1
21427 _ACEOF
21428
21429 fi
21430
21431 echo "$as_me:$LINENO: checking for alloca" >&5
21432 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21433 if test "${ac_cv_func_alloca_works+set}" = set; then
21434   echo $ECHO_N "(cached) $ECHO_C" >&6
21435 else
21436   cat >conftest.$ac_ext <<_ACEOF
21437 #line $LINENO "configure"
21438 /* confdefs.h.  */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h.  */
21443 #ifdef __GNUC__
21444 # define alloca __builtin_alloca
21445 #else
21446 # ifdef _MSC_VER
21447 #  include <malloc.h>
21448 #  define alloca _alloca
21449 # else
21450 #  if HAVE_ALLOCA_H
21451 #   include <alloca.h>
21452 #  else
21453 #   ifdef _AIX
21454  #pragma alloca
21455 #   else
21456 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21457 char *alloca ();
21458 #    endif
21459 #   endif
21460 #  endif
21461 # endif
21462 #endif
21463
21464 int
21465 main ()
21466 {
21467 char *p = (char *) alloca (1);
21468   ;
21469   return 0;
21470 }
21471 _ACEOF
21472 rm -f conftest.$ac_objext conftest$ac_exeext
21473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21474   (eval $ac_link) 2>&5
21475   ac_status=$?
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); } &&
21478          { ac_try='test -s conftest$ac_exeext'
21479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480   (eval $ac_try) 2>&5
21481   ac_status=$?
21482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483   (exit $ac_status); }; }; then
21484   ac_cv_func_alloca_works=yes
21485 else
21486   echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21488
21489 ac_cv_func_alloca_works=no
21490 fi
21491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21492 fi
21493 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21494 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21495
21496 if test $ac_cv_func_alloca_works = yes; then
21497
21498 cat >>confdefs.h <<\_ACEOF
21499 #define HAVE_ALLOCA 1
21500 _ACEOF
21501
21502 else
21503   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21504 # that cause trouble.  Some versions do not even contain alloca or
21505 # contain a buggy version.  If you still want to use their alloca,
21506 # use ar to extract alloca.o from them instead of compiling alloca.c.
21507
21508 ALLOCA=alloca.$ac_objext
21509
21510 cat >>confdefs.h <<\_ACEOF
21511 #define C_ALLOCA 1
21512 _ACEOF
21513
21514
21515 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21516 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21517 if test "${ac_cv_os_cray+set}" = set; then
21518   echo $ECHO_N "(cached) $ECHO_C" >&6
21519 else
21520   cat >conftest.$ac_ext <<_ACEOF
21521 #line $LINENO "configure"
21522 /* confdefs.h.  */
21523 _ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h.  */
21527 #if defined(CRAY) && ! defined(CRAY2)
21528 webecray
21529 #else
21530 wenotbecray
21531 #endif
21532
21533 _ACEOF
21534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21535   $EGREP "webecray" >/dev/null 2>&1; then
21536   ac_cv_os_cray=yes
21537 else
21538   ac_cv_os_cray=no
21539 fi
21540 rm -f conftest*
21541
21542 fi
21543 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21544 echo "${ECHO_T}$ac_cv_os_cray" >&6
21545 if test $ac_cv_os_cray = yes; then
21546   for ac_func in _getb67 GETB67 getb67; do
21547     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21548 echo "$as_me:$LINENO: checking for $ac_func" >&5
21549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21550 if eval "test \"\${$as_ac_var+set}\" = set"; then
21551   echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553   cat >conftest.$ac_ext <<_ACEOF
21554 #line $LINENO "configure"
21555 /* confdefs.h.  */
21556 _ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h.  */
21560 /* System header to define __stub macros and hopefully few prototypes,
21561     which can conflict with char $ac_func (); below.
21562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21563     <limits.h> exists even on freestanding compilers.  */
21564 #ifdef __STDC__
21565 # include <limits.h>
21566 #else
21567 # include <assert.h>
21568 #endif
21569 /* Override any gcc2 internal prototype to avoid an error.  */
21570 #ifdef __cplusplus
21571 extern "C"
21572 {
21573 #endif
21574 /* We use char because int might match the return type of a gcc2
21575    builtin and then its argument prototype would still apply.  */
21576 char $ac_func ();
21577 /* The GNU C library defines this for functions which it implements
21578     to always fail with ENOSYS.  Some functions are actually named
21579     something starting with __ and the normal name is an alias.  */
21580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21581 choke me
21582 #else
21583 char (*f) () = $ac_func;
21584 #endif
21585 #ifdef __cplusplus
21586 }
21587 #endif
21588
21589 int
21590 main ()
21591 {
21592 return f != $ac_func;
21593   ;
21594   return 0;
21595 }
21596 _ACEOF
21597 rm -f conftest.$ac_objext conftest$ac_exeext
21598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21599   (eval $ac_link) 2>&5
21600   ac_status=$?
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); } &&
21603          { ac_try='test -s conftest$ac_exeext'
21604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605   (eval $ac_try) 2>&5
21606   ac_status=$?
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); }; }; then
21609   eval "$as_ac_var=yes"
21610 else
21611   echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21613
21614 eval "$as_ac_var=no"
21615 fi
21616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21617 fi
21618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21620 if test `eval echo '${'$as_ac_var'}'` = yes; then
21621
21622 cat >>confdefs.h <<_ACEOF
21623 #define CRAY_STACKSEG_END $ac_func
21624 _ACEOF
21625
21626     break
21627 fi
21628
21629   done
21630 fi
21631
21632 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21633 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21634 if test "${ac_cv_c_stack_direction+set}" = set; then
21635   echo $ECHO_N "(cached) $ECHO_C" >&6
21636 else
21637   if test "$cross_compiling" = yes; then
21638   ac_cv_c_stack_direction=0
21639 else
21640   cat >conftest.$ac_ext <<_ACEOF
21641 #line $LINENO "configure"
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647 int
21648 find_stack_direction ()
21649 {
21650   static char *addr = 0;
21651   auto char dummy;
21652   if (addr == 0)
21653     {
21654       addr = &dummy;
21655       return find_stack_direction ();
21656     }
21657   else
21658     return (&dummy > addr) ? 1 : -1;
21659 }
21660
21661 int
21662 main ()
21663 {
21664   exit (find_stack_direction () < 0);
21665 }
21666 _ACEOF
21667 rm -f conftest$ac_exeext
21668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21669   (eval $ac_link) 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674   (eval $ac_try) 2>&5
21675   ac_status=$?
21676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677   (exit $ac_status); }; }; then
21678   ac_cv_c_stack_direction=1
21679 else
21680   echo "$as_me: program exited with status $ac_status" >&5
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21683
21684 ( exit $ac_status )
21685 ac_cv_c_stack_direction=-1
21686 fi
21687 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21688 fi
21689 fi
21690 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21691 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21692
21693 cat >>confdefs.h <<_ACEOF
21694 #define STACK_DIRECTION $ac_cv_c_stack_direction
21695 _ACEOF
21696
21697
21698 fi
21699
21700 if test $ac_cv_c_compiler_gnu = yes; then
21701     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21702 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21703 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21704   echo $ECHO_N "(cached) $ECHO_C" >&6
21705 else
21706     ac_pattern="Autoconf.*'x'"
21707   cat >conftest.$ac_ext <<_ACEOF
21708 #line $LINENO "configure"
21709 /* confdefs.h.  */
21710 _ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h.  */
21714 #include <sgtty.h>
21715 Autoconf TIOCGETP
21716 _ACEOF
21717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21718   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21719   ac_cv_prog_gcc_traditional=yes
21720 else
21721   ac_cv_prog_gcc_traditional=no
21722 fi
21723 rm -f conftest*
21724
21725
21726   if test $ac_cv_prog_gcc_traditional = no; then
21727     cat >conftest.$ac_ext <<_ACEOF
21728 #line $LINENO "configure"
21729 /* confdefs.h.  */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h.  */
21734 #include <termio.h>
21735 Autoconf TCGETA
21736 _ACEOF
21737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21738   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21739   ac_cv_prog_gcc_traditional=yes
21740 fi
21741 rm -f conftest*
21742
21743   fi
21744 fi
21745 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21746 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21747   if test $ac_cv_prog_gcc_traditional = yes; then
21748     CC="$CC -traditional"
21749   fi
21750 fi
21751
21752 echo "$as_me:$LINENO: checking for working memcmp" >&5
21753 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21754 if test "${ac_cv_func_memcmp_working+set}" = set; then
21755   echo $ECHO_N "(cached) $ECHO_C" >&6
21756 else
21757   if test "$cross_compiling" = yes; then
21758   ac_cv_func_memcmp_working=no
21759 else
21760   cat >conftest.$ac_ext <<_ACEOF
21761 #line $LINENO "configure"
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767
21768 int
21769 main ()
21770 {
21771
21772   /* Some versions of memcmp are not 8-bit clean.  */
21773   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21774   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21775     exit (1);
21776
21777   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21778      or more and with at least one buffer not starting on a 4-byte boundary.
21779      William Lewis provided this test program.   */
21780   {
21781     char foo[21];
21782     char bar[21];
21783     int i;
21784     for (i = 0; i < 4; i++)
21785       {
21786         char *a = foo + i;
21787         char *b = bar + i;
21788         strcpy (a, "--------01111111");
21789         strcpy (b, "--------10000000");
21790         if (memcmp (a, b, 16) >= 0)
21791           exit (1);
21792       }
21793     exit (0);
21794   }
21795
21796   ;
21797   return 0;
21798 }
21799 _ACEOF
21800 rm -f conftest$ac_exeext
21801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21802   (eval $ac_link) 2>&5
21803   ac_status=$?
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807   (eval $ac_try) 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); }; }; then
21811   ac_cv_func_memcmp_working=yes
21812 else
21813   echo "$as_me: program exited with status $ac_status" >&5
21814 echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21816
21817 ( exit $ac_status )
21818 ac_cv_func_memcmp_working=no
21819 fi
21820 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21821 fi
21822 fi
21823 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21824 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21825 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21826
21827
21828
21829 for ac_header in stdlib.h unistd.h
21830 do
21831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21833   echo "$as_me:$LINENO: checking for $ac_header" >&5
21834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21836   echo $ECHO_N "(cached) $ECHO_C" >&6
21837 fi
21838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21840 else
21841   # Is the header compilable?
21842 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21844 cat >conftest.$ac_ext <<_ACEOF
21845 #line $LINENO "configure"
21846 /* confdefs.h.  */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h.  */
21851 $ac_includes_default
21852 #include <$ac_header>
21853 _ACEOF
21854 rm -f conftest.$ac_objext
21855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21856   (eval $ac_compile) 2>&5
21857   ac_status=$?
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); } &&
21860          { ac_try='test -s conftest.$ac_objext'
21861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862   (eval $ac_try) 2>&5
21863   ac_status=$?
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); }; }; then
21866   ac_header_compiler=yes
21867 else
21868   echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21870
21871 ac_header_compiler=no
21872 fi
21873 rm -f conftest.$ac_objext conftest.$ac_ext
21874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21875 echo "${ECHO_T}$ac_header_compiler" >&6
21876
21877 # Is the header present?
21878 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21880 cat >conftest.$ac_ext <<_ACEOF
21881 #line $LINENO "configure"
21882 /* confdefs.h.  */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h.  */
21887 #include <$ac_header>
21888 _ACEOF
21889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21891   ac_status=$?
21892   grep -v '^ *+' conftest.er1 >conftest.err
21893   rm -f conftest.er1
21894   cat conftest.err >&5
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); } >/dev/null; then
21897   if test -s conftest.err; then
21898     ac_cpp_err=$ac_c_preproc_warn_flag
21899   else
21900     ac_cpp_err=
21901   fi
21902 else
21903   ac_cpp_err=yes
21904 fi
21905 if test -z "$ac_cpp_err"; then
21906   ac_header_preproc=yes
21907 else
21908   echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21910
21911   ac_header_preproc=no
21912 fi
21913 rm -f conftest.err conftest.$ac_ext
21914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21915 echo "${ECHO_T}$ac_header_preproc" >&6
21916
21917 # So?  What about this header?
21918 case $ac_header_compiler:$ac_header_preproc in
21919   yes:no )
21920     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21924     (
21925       cat <<\_ASBOX
21926 ## ------------------------------------ ##
21927 ## Report this to bug-autoconf@gnu.org. ##
21928 ## ------------------------------------ ##
21929 _ASBOX
21930     ) |
21931       sed "s/^/$as_me: WARNING:     /" >&2
21932     ;;
21933   no:yes )
21934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21936     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21940     (
21941       cat <<\_ASBOX
21942 ## ------------------------------------ ##
21943 ## Report this to bug-autoconf@gnu.org. ##
21944 ## ------------------------------------ ##
21945 _ASBOX
21946     ) |
21947       sed "s/^/$as_me: WARNING:     /" >&2
21948     ;;
21949 esac
21950 echo "$as_me:$LINENO: checking for $ac_header" >&5
21951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21953   echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955   eval "$as_ac_Header=$ac_header_preproc"
21956 fi
21957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21959
21960 fi
21961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21962   cat >>confdefs.h <<_ACEOF
21963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21964 _ACEOF
21965
21966 fi
21967
21968 done
21969
21970
21971 for ac_func in getpagesize
21972 do
21973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21974 echo "$as_me:$LINENO: checking for $ac_func" >&5
21975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21976 if eval "test \"\${$as_ac_var+set}\" = set"; then
21977   echo $ECHO_N "(cached) $ECHO_C" >&6
21978 else
21979   cat >conftest.$ac_ext <<_ACEOF
21980 #line $LINENO "configure"
21981 /* confdefs.h.  */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h.  */
21986 /* System header to define __stub macros and hopefully few prototypes,
21987     which can conflict with char $ac_func (); below.
21988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21989     <limits.h> exists even on freestanding compilers.  */
21990 #ifdef __STDC__
21991 # include <limits.h>
21992 #else
21993 # include <assert.h>
21994 #endif
21995 /* Override any gcc2 internal prototype to avoid an error.  */
21996 #ifdef __cplusplus
21997 extern "C"
21998 {
21999 #endif
22000 /* We use char because int might match the return type of a gcc2
22001    builtin and then its argument prototype would still apply.  */
22002 char $ac_func ();
22003 /* The GNU C library defines this for functions which it implements
22004     to always fail with ENOSYS.  Some functions are actually named
22005     something starting with __ and the normal name is an alias.  */
22006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22007 choke me
22008 #else
22009 char (*f) () = $ac_func;
22010 #endif
22011 #ifdef __cplusplus
22012 }
22013 #endif
22014
22015 int
22016 main ()
22017 {
22018 return f != $ac_func;
22019   ;
22020   return 0;
22021 }
22022 _ACEOF
22023 rm -f conftest.$ac_objext conftest$ac_exeext
22024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22025   (eval $ac_link) 2>&5
22026   ac_status=$?
22027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); } &&
22029          { ac_try='test -s conftest$ac_exeext'
22030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031   (eval $ac_try) 2>&5
22032   ac_status=$?
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); }; }; then
22035   eval "$as_ac_var=yes"
22036 else
22037   echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22039
22040 eval "$as_ac_var=no"
22041 fi
22042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22043 fi
22044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22046 if test `eval echo '${'$as_ac_var'}'` = yes; then
22047   cat >>confdefs.h <<_ACEOF
22048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22049 _ACEOF
22050
22051 fi
22052 done
22053
22054 echo "$as_me:$LINENO: checking for working mmap" >&5
22055 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22056 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22057   echo $ECHO_N "(cached) $ECHO_C" >&6
22058 else
22059   if test "$cross_compiling" = yes; then
22060   ac_cv_func_mmap_fixed_mapped=no
22061 else
22062   cat >conftest.$ac_ext <<_ACEOF
22063 #line $LINENO "configure"
22064 /* confdefs.h.  */
22065 _ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h.  */
22069 $ac_includes_default
22070 /* malloc might have been renamed as rpl_malloc. */
22071 #undef malloc
22072
22073 /* Thanks to Mike Haertel and Jim Avera for this test.
22074    Here is a matrix of mmap possibilities:
22075         mmap private not fixed
22076         mmap private fixed at somewhere currently unmapped
22077         mmap private fixed at somewhere already mapped
22078         mmap shared not fixed
22079         mmap shared fixed at somewhere currently unmapped
22080         mmap shared fixed at somewhere already mapped
22081    For private mappings, we should verify that changes cannot be read()
22082    back from the file, nor mmap's back from the file at a different
22083    address.  (There have been systems where private was not correctly
22084    implemented like the infamous i386 svr4.0, and systems where the
22085    VM page cache was not coherent with the file system buffer cache
22086    like early versions of FreeBSD and possibly contemporary NetBSD.)
22087    For shared mappings, we should conversely verify that changes get
22088    propagated back to all the places they're supposed to be.
22089
22090    Grep wants private fixed already mapped.
22091    The main things grep needs to know about mmap are:
22092    * does it exist and is it safe to write into the mmap'd area
22093    * how to use it (BSD variants)  */
22094
22095 #include <fcntl.h>
22096 #include <sys/mman.h>
22097
22098 #if !STDC_HEADERS && !HAVE_STDLIB_H
22099 char *malloc ();
22100 #endif
22101
22102 /* This mess was copied from the GNU getpagesize.h.  */
22103 #if !HAVE_GETPAGESIZE
22104 /* Assume that all systems that can run configure have sys/param.h.  */
22105 # if !HAVE_SYS_PARAM_H
22106 #  define HAVE_SYS_PARAM_H 1
22107 # endif
22108
22109 # ifdef _SC_PAGESIZE
22110 #  define getpagesize() sysconf(_SC_PAGESIZE)
22111 # else /* no _SC_PAGESIZE */
22112 #  if HAVE_SYS_PARAM_H
22113 #   include <sys/param.h>
22114 #   ifdef EXEC_PAGESIZE
22115 #    define getpagesize() EXEC_PAGESIZE
22116 #   else /* no EXEC_PAGESIZE */
22117 #    ifdef NBPG
22118 #     define getpagesize() NBPG * CLSIZE
22119 #     ifndef CLSIZE
22120 #      define CLSIZE 1
22121 #     endif /* no CLSIZE */
22122 #    else /* no NBPG */
22123 #     ifdef NBPC
22124 #      define getpagesize() NBPC
22125 #     else /* no NBPC */
22126 #      ifdef PAGESIZE
22127 #       define getpagesize() PAGESIZE
22128 #      endif /* PAGESIZE */
22129 #     endif /* no NBPC */
22130 #    endif /* no NBPG */
22131 #   endif /* no EXEC_PAGESIZE */
22132 #  else /* no HAVE_SYS_PARAM_H */
22133 #   define getpagesize() 8192   /* punt totally */
22134 #  endif /* no HAVE_SYS_PARAM_H */
22135 # endif /* no _SC_PAGESIZE */
22136
22137 #endif /* no HAVE_GETPAGESIZE */
22138
22139 int
22140 main ()
22141 {
22142   char *data, *data2, *data3;
22143   int i, pagesize;
22144   int fd;
22145
22146   pagesize = getpagesize ();
22147
22148   /* First, make a file with some known garbage in it. */
22149   data = (char *) malloc (pagesize);
22150   if (!data)
22151     exit (1);
22152   for (i = 0; i < pagesize; ++i)
22153     *(data + i) = rand ();
22154   umask (0);
22155   fd = creat ("conftest.mmap", 0600);
22156   if (fd < 0)
22157     exit (1);
22158   if (write (fd, data, pagesize) != pagesize)
22159     exit (1);
22160   close (fd);
22161
22162   /* Next, try to mmap the file at a fixed address which already has
22163      something else allocated at it.  If we can, also make sure that
22164      we see the same garbage.  */
22165   fd = open ("conftest.mmap", O_RDWR);
22166   if (fd < 0)
22167     exit (1);
22168   data2 = (char *) malloc (2 * pagesize);
22169   if (!data2)
22170     exit (1);
22171   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22172   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22173                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22174     exit (1);
22175   for (i = 0; i < pagesize; ++i)
22176     if (*(data + i) != *(data2 + i))
22177       exit (1);
22178
22179   /* Finally, make sure that changes to the mapped area do not
22180      percolate back to the file as seen by read().  (This is a bug on
22181      some variants of i386 svr4.0.)  */
22182   for (i = 0; i < pagesize; ++i)
22183     *(data2 + i) = *(data2 + i) + 1;
22184   data3 = (char *) malloc (pagesize);
22185   if (!data3)
22186     exit (1);
22187   if (read (fd, data3, pagesize) != pagesize)
22188     exit (1);
22189   for (i = 0; i < pagesize; ++i)
22190     if (*(data + i) != *(data3 + i))
22191       exit (1);
22192   close (fd);
22193   exit (0);
22194 }
22195 _ACEOF
22196 rm -f conftest$ac_exeext
22197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22198   (eval $ac_link) 2>&5
22199   ac_status=$?
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203   (eval $ac_try) 2>&5
22204   ac_status=$?
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); }; }; then
22207   ac_cv_func_mmap_fixed_mapped=yes
22208 else
22209   echo "$as_me: program exited with status $ac_status" >&5
22210 echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22212
22213 ( exit $ac_status )
22214 ac_cv_func_mmap_fixed_mapped=no
22215 fi
22216 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22217 fi
22218 fi
22219 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22220 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22221 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22222
22223 cat >>confdefs.h <<\_ACEOF
22224 #define HAVE_MMAP 1
22225 _ACEOF
22226
22227 fi
22228 rm -f conftest.mmap
22229
22230 echo "$as_me:$LINENO: checking for mmap of files" >&5
22231 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22232 if test "${ac_cv_func_mmap_file+set}" = set; then
22233   echo $ECHO_N "(cached) $ECHO_C" >&6
22234 else
22235
22236
22237   ac_ext=c
22238 ac_cpp='$CPP $CPPFLAGS'
22239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22242
22243   if test "$cross_compiling" = yes; then
22244   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22245 See \`config.log' for more details." >&5
22246 echo "$as_me: error: cannot run test program while cross compiling
22247 See \`config.log' for more details." >&2;}
22248    { (exit 1); exit 1; }; }
22249 else
22250   cat >conftest.$ac_ext <<_ACEOF
22251 #line $LINENO "configure"
22252 /* confdefs.h.  */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h.  */
22257
22258 #ifdef HAVE_SYS_MMAN_H
22259 #include <sys/mman.h>
22260 #endif
22261
22262 #ifdef HAVE_SYS_TYPES_H
22263 #include <sys/types.h>
22264 #endif
22265
22266 #ifdef HAVE_FCNTL_H
22267 #include <fcntl.h>
22268 #endif
22269
22270   int fd;
22271   int main () {
22272   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22273 _ACEOF
22274 rm -f conftest$ac_exeext
22275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22276   (eval $ac_link) 2>&5
22277   ac_status=$?
22278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281   (eval $ac_try) 2>&5
22282   ac_status=$?
22283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284   (exit $ac_status); }; }; then
22285   ac_cv_func_mmap_file=yes
22286 else
22287   echo "$as_me: program exited with status $ac_status" >&5
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22290
22291 ( exit $ac_status )
22292 ac_cv_func_mmap_file=no
22293 fi
22294 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22295 fi
22296   ac_ext=c
22297 ac_cpp='$CPP $CPPFLAGS'
22298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22301
22302
22303 fi
22304 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22305 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22306 if test "$ac_cv_func_mmap_file" = yes; then
22307    cat >>confdefs.h <<\_ACEOF
22308 #define HAVE_MMAP_FILE 1
22309 _ACEOF
22310
22311    MMAP_FILE=yes
22312
22313 fi
22314
22315 if test ${ac_cv_func_mmap_file} = "no"
22316 then
22317         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22318 echo "$as_me: error: mmap() of files required but not found" >&2;}
22319    { (exit 1); exit 1; }; }
22320 fi
22321 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22322 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22323 if test "${ac_cv_header_mmap_anon+set}" = set; then
22324   echo $ECHO_N "(cached) $ECHO_C" >&6
22325 else
22326
22327
22328   ac_ext=c
22329 ac_cpp='$CPP $CPPFLAGS'
22330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22333
22334   cat >conftest.$ac_ext <<_ACEOF
22335 #line $LINENO "configure"
22336 /* confdefs.h.  */
22337 _ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h.  */
22341 #include <sys/mman.h>
22342   #include <unistd.h>
22343   #include <fcntl.h>
22344 int
22345 main ()
22346 {
22347 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22348   ;
22349   return 0;
22350 }
22351 _ACEOF
22352 rm -f conftest.$ac_objext
22353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22354   (eval $ac_compile) 2>&5
22355   ac_status=$?
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); } &&
22358          { ac_try='test -s conftest.$ac_objext'
22359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22360   (eval $ac_try) 2>&5
22361   ac_status=$?
22362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363   (exit $ac_status); }; }; then
22364   ac_cv_header_mmap_anon=yes
22365 else
22366   echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22368
22369 ac_cv_header_mmap_anon=no
22370 fi
22371 rm -f conftest.$ac_objext conftest.$ac_ext
22372   ac_ext=c
22373 ac_cpp='$CPP $CPPFLAGS'
22374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22377
22378
22379 fi
22380 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22381 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22382 if test "$ac_cv_header_mmap_anon" = yes; then
22383    cat >>confdefs.h <<\_ACEOF
22384 #define HAVE_MMAP_ANONYMOUS 1
22385 _ACEOF
22386
22387 fi
22388
22389 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22390 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22391 if test "${ac_cv_type_signal+set}" = set; then
22392   echo $ECHO_N "(cached) $ECHO_C" >&6
22393 else
22394   cat >conftest.$ac_ext <<_ACEOF
22395 #line $LINENO "configure"
22396 /* confdefs.h.  */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h.  */
22401 #include <sys/types.h>
22402 #include <signal.h>
22403 #ifdef signal
22404 # undef signal
22405 #endif
22406 #ifdef __cplusplus
22407 extern "C" void (*signal (int, void (*)(int)))(int);
22408 #else
22409 void (*signal ()) ();
22410 #endif
22411
22412 int
22413 main ()
22414 {
22415 int i;
22416   ;
22417   return 0;
22418 }
22419 _ACEOF
22420 rm -f conftest.$ac_objext
22421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22422   (eval $ac_compile) 2>&5
22423   ac_status=$?
22424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425   (exit $ac_status); } &&
22426          { ac_try='test -s conftest.$ac_objext'
22427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22428   (eval $ac_try) 2>&5
22429   ac_status=$?
22430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); }; }; then
22432   ac_cv_type_signal=void
22433 else
22434   echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22436
22437 ac_cv_type_signal=int
22438 fi
22439 rm -f conftest.$ac_objext conftest.$ac_ext
22440 fi
22441 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22442 echo "${ECHO_T}$ac_cv_type_signal" >&6
22443
22444 cat >>confdefs.h <<_ACEOF
22445 #define RETSIGTYPE $ac_cv_type_signal
22446 _ACEOF
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22459 do
22460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22461 echo "$as_me:$LINENO: checking for $ac_func" >&5
22462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22463 if eval "test \"\${$as_ac_var+set}\" = set"; then
22464   echo $ECHO_N "(cached) $ECHO_C" >&6
22465 else
22466   cat >conftest.$ac_ext <<_ACEOF
22467 #line $LINENO "configure"
22468 /* confdefs.h.  */
22469 _ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h.  */
22473 /* System header to define __stub macros and hopefully few prototypes,
22474     which can conflict with char $ac_func (); below.
22475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22476     <limits.h> exists even on freestanding compilers.  */
22477 #ifdef __STDC__
22478 # include <limits.h>
22479 #else
22480 # include <assert.h>
22481 #endif
22482 /* Override any gcc2 internal prototype to avoid an error.  */
22483 #ifdef __cplusplus
22484 extern "C"
22485 {
22486 #endif
22487 /* We use char because int might match the return type of a gcc2
22488    builtin and then its argument prototype would still apply.  */
22489 char $ac_func ();
22490 /* The GNU C library defines this for functions which it implements
22491     to always fail with ENOSYS.  Some functions are actually named
22492     something starting with __ and the normal name is an alias.  */
22493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22494 choke me
22495 #else
22496 char (*f) () = $ac_func;
22497 #endif
22498 #ifdef __cplusplus
22499 }
22500 #endif
22501
22502 int
22503 main ()
22504 {
22505 return f != $ac_func;
22506   ;
22507   return 0;
22508 }
22509 _ACEOF
22510 rm -f conftest.$ac_objext conftest$ac_exeext
22511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22512   (eval $ac_link) 2>&5
22513   ac_status=$?
22514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515   (exit $ac_status); } &&
22516          { ac_try='test -s conftest$ac_exeext'
22517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518   (eval $ac_try) 2>&5
22519   ac_status=$?
22520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); }; }; then
22522   eval "$as_ac_var=yes"
22523 else
22524   echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22526
22527 eval "$as_ac_var=no"
22528 fi
22529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22530 fi
22531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22533 if test `eval echo '${'$as_ac_var'}'` = yes; then
22534   cat >>confdefs.h <<_ACEOF
22535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22536 _ACEOF
22537
22538 fi
22539 done
22540
22541
22542
22543 echo "$as_me:$LINENO: checking for mmap" >&5
22544 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22545 if test "${ac_cv_func_mmap+set}" = set; then
22546   echo $ECHO_N "(cached) $ECHO_C" >&6
22547 else
22548   cat >conftest.$ac_ext <<_ACEOF
22549 #line $LINENO "configure"
22550 /* confdefs.h.  */
22551 _ACEOF
22552 cat confdefs.h >>conftest.$ac_ext
22553 cat >>conftest.$ac_ext <<_ACEOF
22554 /* end confdefs.h.  */
22555 /* System header to define __stub macros and hopefully few prototypes,
22556     which can conflict with char mmap (); below.
22557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22558     <limits.h> exists even on freestanding compilers.  */
22559 #ifdef __STDC__
22560 # include <limits.h>
22561 #else
22562 # include <assert.h>
22563 #endif
22564 /* Override any gcc2 internal prototype to avoid an error.  */
22565 #ifdef __cplusplus
22566 extern "C"
22567 {
22568 #endif
22569 /* We use char because int might match the return type of a gcc2
22570    builtin and then its argument prototype would still apply.  */
22571 char mmap ();
22572 /* The GNU C library defines this for functions which it implements
22573     to always fail with ENOSYS.  Some functions are actually named
22574     something starting with __ and the normal name is an alias.  */
22575 #if defined (__stub_mmap) || defined (__stub___mmap)
22576 choke me
22577 #else
22578 char (*f) () = mmap;
22579 #endif
22580 #ifdef __cplusplus
22581 }
22582 #endif
22583
22584 int
22585 main ()
22586 {
22587 return f != mmap;
22588   ;
22589   return 0;
22590 }
22591 _ACEOF
22592 rm -f conftest.$ac_objext conftest$ac_exeext
22593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22594   (eval $ac_link) 2>&5
22595   ac_status=$?
22596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); } &&
22598          { ac_try='test -s conftest$ac_exeext'
22599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600   (eval $ac_try) 2>&5
22601   ac_status=$?
22602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603   (exit $ac_status); }; }; then
22604   ac_cv_func_mmap=yes
22605 else
22606   echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22608
22609 ac_cv_func_mmap=no
22610 fi
22611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22612 fi
22613 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22614 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22615 if test $ac_cv_func_mmap = yes; then
22616   :
22617 else
22618   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22619 echo "$as_me: error: Function mmap() required but not found" >&2;}
22620    { (exit 1); exit 1; }; }
22621 fi
22622
22623 echo "$as_me:$LINENO: checking for mprotect" >&5
22624 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22625 if test "${ac_cv_func_mprotect+set}" = set; then
22626   echo $ECHO_N "(cached) $ECHO_C" >&6
22627 else
22628   cat >conftest.$ac_ext <<_ACEOF
22629 #line $LINENO "configure"
22630 /* confdefs.h.  */
22631 _ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h.  */
22635 /* System header to define __stub macros and hopefully few prototypes,
22636     which can conflict with char mprotect (); below.
22637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22638     <limits.h> exists even on freestanding compilers.  */
22639 #ifdef __STDC__
22640 # include <limits.h>
22641 #else
22642 # include <assert.h>
22643 #endif
22644 /* Override any gcc2 internal prototype to avoid an error.  */
22645 #ifdef __cplusplus
22646 extern "C"
22647 {
22648 #endif
22649 /* We use char because int might match the return type of a gcc2
22650    builtin and then its argument prototype would still apply.  */
22651 char mprotect ();
22652 /* The GNU C library defines this for functions which it implements
22653     to always fail with ENOSYS.  Some functions are actually named
22654     something starting with __ and the normal name is an alias.  */
22655 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22656 choke me
22657 #else
22658 char (*f) () = mprotect;
22659 #endif
22660 #ifdef __cplusplus
22661 }
22662 #endif
22663
22664 int
22665 main ()
22666 {
22667 return f != mprotect;
22668   ;
22669   return 0;
22670 }
22671 _ACEOF
22672 rm -f conftest.$ac_objext conftest$ac_exeext
22673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22674   (eval $ac_link) 2>&5
22675   ac_status=$?
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); } &&
22678          { ac_try='test -s conftest$ac_exeext'
22679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680   (eval $ac_try) 2>&5
22681   ac_status=$?
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); }; }; then
22684   ac_cv_func_mprotect=yes
22685 else
22686   echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22688
22689 ac_cv_func_mprotect=no
22690 fi
22691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22692 fi
22693 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22694 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22695 if test $ac_cv_func_mprotect = yes; then
22696   :
22697 else
22698   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22699 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22700    { (exit 1); exit 1; }; }
22701 fi
22702
22703
22704
22705 # Check whether --enable-purify or --disable-purify was given.
22706 if test "${enable_purify+set}" = set; then
22707   enableval="$enable_purify"
22708
22709 else
22710   enableval="no"
22711 fi;
22712 if test ${enableval} = "no"
22713 then
22714         ENABLE_PURIFY=
22715
22716 else
22717         ENABLE_PURIFY=ENABLE_PURIFY=1
22718
22719 fi
22720
22721 # Check whether --enable-optimized or --disable-optimized was given.
22722 if test "${enable_optimized+set}" = set; then
22723   enableval="$enable_optimized"
22724
22725 else
22726   enableval=no
22727 fi;
22728 if test ${enableval} = "no"
22729 then
22730         ENABLE_OPTIMIZED=
22731
22732 else
22733         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22734
22735 fi
22736
22737 # Check whether --enable-spec or --disable-spec was given.
22738 if test "${enable_spec+set}" = set; then
22739   enableval="$enable_spec"
22740
22741 else
22742   enableval=no
22743 fi;
22744 if test ${enableval} = "no"
22745 then
22746         USE_SPEC=
22747
22748 else
22749         USE_SPEC=USE_SPEC=1
22750
22751 fi
22752
22753 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22754 if test "${enable_precompiled_bytecode+set}" = set; then
22755   enableval="$enable_precompiled_bytecode"
22756
22757 else
22758   enableval=no
22759 fi;
22760 if test ${enableval} = "no"
22761 then
22762         UPB=
22763
22764 else
22765         UPB=USE_PRECOMPILED_BYTECODE=1
22766
22767 fi
22768
22769
22770 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22771 if test "${enable_llc_diffs+set}" = set; then
22772   enableval="$enable_llc_diffs"
22773
22774 else
22775   enableval=yes
22776 fi;
22777 if test ${enableval} = "no"
22778 then
22779         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22780
22781 else
22782         DISABLE_LLC_DIFFS=
22783
22784 fi
22785
22786 # Check whether --enable-jit or --disable-jit was given.
22787 if test "${enable_jit+set}" = set; then
22788   enableval="$enable_jit"
22789
22790 else
22791   enableval=default
22792 fi;
22793
22794 if test ${enableval} = "no"
22795 then
22796         JIT=
22797
22798 else
22799         case $target in
22800                 *i*86*)
22801                         JIT=TARGET_HAS_JIT=1
22802
22803                         ;;
22804                 *sparc*)
22805                         JIT=TARGET_HAS_JIT=1
22806
22807                         ;;
22808                 *)
22809                         JIT=
22810
22811                         ;;
22812         esac
22813 fi
22814
22815
22816
22817 # Check whether --with-spec or --without-spec was given.
22818 if test "${with_spec+set}" = set; then
22819   withval="$with_spec"
22820   SPEC_ROOT=$withval
22821
22822 else
22823   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22824
22825 fi;
22826
22827
22828 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22829 if test "${with_llvmgccdir+set}" = set; then
22830   withval="$with_llvmgccdir"
22831   LLVMGCCDIR=$withval
22832
22833 fi;
22834
22835
22836 # Check whether --with-bcrepos or --without-bcrepos was given.
22837 if test "${with_bcrepos+set}" = set; then
22838   withval="$with_bcrepos"
22839   BCR=$withval
22840
22841 else
22842   BCR=/home/vadve/lattner/LLVMPrograms
22843
22844 fi;
22845
22846
22847 # Check whether --with-papi or --without-papi was given.
22848 if test "${with_papi+set}" = set; then
22849   withval="$with_papi"
22850   PAPIDIR=$withval
22851
22852 else
22853   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22854
22855 fi;
22856
22857
22858 # Check whether --with-purify or --without-purify was given.
22859 if test "${with_purify+set}" = set; then
22860   withval="$with_purify"
22861   PURIFY=$withval
22862
22863 fi;
22864
22865
22866           ac_config_files="$ac_config_files Makefile.config"
22867 cat >confcache <<\_ACEOF
22868 # This file is a shell script that caches the results of configure
22869 # tests run on this system so they can be shared between configure
22870 # scripts and configure runs, see configure's option --config-cache.
22871 # It is not useful on other systems.  If it contains results you don't
22872 # want to keep, you may remove or edit it.
22873 #
22874 # config.status only pays attention to the cache file if you give it
22875 # the --recheck option to rerun configure.
22876 #
22877 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22878 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22879 # following values.
22880
22881 _ACEOF
22882
22883 # The following way of writing the cache mishandles newlines in values,
22884 # but we know of no workaround that is simple, portable, and efficient.
22885 # So, don't put newlines in cache variables' values.
22886 # Ultrix sh set writes to stderr and can't be redirected directly,
22887 # and sets the high bit in the cache file unless we assign to the vars.
22888 {
22889   (set) 2>&1 |
22890     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22891     *ac_space=\ *)
22892       # `set' does not quote correctly, so add quotes (double-quote
22893       # substitution turns \\\\ into \\, and sed turns \\ into \).
22894       sed -n \
22895         "s/'/'\\\\''/g;
22896           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22897       ;;
22898     *)
22899       # `set' quotes correctly as required by POSIX, so do not add quotes.
22900       sed -n \
22901         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22902       ;;
22903     esac;
22904 } |
22905   sed '
22906      t clear
22907      : clear
22908      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22909      t end
22910      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22911      : end' >>confcache
22912 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22913   if test -w $cache_file; then
22914     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22915     cat confcache >$cache_file
22916   else
22917     echo "not updating unwritable cache $cache_file"
22918   fi
22919 fi
22920 rm -f confcache
22921
22922 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22923 # Let make expand exec_prefix.
22924 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22925
22926 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22927 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22928 # trailing colons and then remove the whole line if VPATH becomes empty
22929 # (actually we leave an empty line to preserve line numbers).
22930 if test "x$srcdir" = x.; then
22931   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22932 s/:*\$(srcdir):*/:/;
22933 s/:*\${srcdir}:*/:/;
22934 s/:*@srcdir@:*/:/;
22935 s/^\([^=]*=[    ]*\):*/\1/;
22936 s/:*$//;
22937 s/^[^=]*=[      ]*$//;
22938 }'
22939 fi
22940
22941 DEFS=-DHAVE_CONFIG_H
22942
22943 ac_libobjs=
22944 ac_ltlibobjs=
22945 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22946   # 1. Remove the extension, and $U if already installed.
22947   ac_i=`echo "$ac_i" |
22948          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22949   # 2. Add them.
22950   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22951   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22952 done
22953 LIBOBJS=$ac_libobjs
22954
22955 LTLIBOBJS=$ac_ltlibobjs
22956
22957
22958
22959 : ${CONFIG_STATUS=./config.status}
22960 ac_clean_files_save=$ac_clean_files
22961 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22962 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22963 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22964 cat >$CONFIG_STATUS <<_ACEOF
22965 #! $SHELL
22966 # Generated by $as_me.
22967 # Run this file to recreate the current configuration.
22968 # Compiler output produced by configure, useful for debugging
22969 # configure, is in config.log if it exists.
22970
22971 debug=false
22972 ac_cs_recheck=false
22973 ac_cs_silent=false
22974 SHELL=\${CONFIG_SHELL-$SHELL}
22975 _ACEOF
22976
22977 cat >>$CONFIG_STATUS <<\_ACEOF
22978 ## --------------------- ##
22979 ## M4sh Initialization.  ##
22980 ## --------------------- ##
22981
22982 # Be Bourne compatible
22983 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22984   emulate sh
22985   NULLCMD=:
22986   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22987   # is contrary to our usage.  Disable this feature.
22988   alias -g '${1+"$@"}'='"$@"'
22989 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22990   set -o posix
22991 fi
22992
22993 # Support unset when possible.
22994 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22995   as_unset=unset
22996 else
22997   as_unset=false
22998 fi
22999
23000
23001 # Work around bugs in pre-3.0 UWIN ksh.
23002 $as_unset ENV MAIL MAILPATH
23003 PS1='$ '
23004 PS2='> '
23005 PS4='+ '
23006
23007 # NLS nuisances.
23008 for as_var in \
23009   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23010   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23011   LC_TELEPHONE LC_TIME
23012 do
23013   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23014     eval $as_var=C; export $as_var
23015   else
23016     $as_unset $as_var
23017   fi
23018 done
23019
23020 # Required to use basename.
23021 if expr a : '\(a\)' >/dev/null 2>&1; then
23022   as_expr=expr
23023 else
23024   as_expr=false
23025 fi
23026
23027 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23028   as_basename=basename
23029 else
23030   as_basename=false
23031 fi
23032
23033
23034 # Name of the executable.
23035 as_me=`$as_basename "$0" ||
23036 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23037          X"$0" : 'X\(//\)$' \| \
23038          X"$0" : 'X\(/\)$' \| \
23039          .     : '\(.\)' 2>/dev/null ||
23040 echo X/"$0" |
23041     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23042           /^X\/\(\/\/\)$/{ s//\1/; q; }
23043           /^X\/\(\/\).*/{ s//\1/; q; }
23044           s/.*/./; q'`
23045
23046
23047 # PATH needs CR, and LINENO needs CR and PATH.
23048 # Avoid depending upon Character Ranges.
23049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23052 as_cr_digits='0123456789'
23053 as_cr_alnum=$as_cr_Letters$as_cr_digits
23054
23055 # The user is always right.
23056 if test "${PATH_SEPARATOR+set}" != set; then
23057   echo "#! /bin/sh" >conf$$.sh
23058   echo  "exit 0"   >>conf$$.sh
23059   chmod +x conf$$.sh
23060   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23061     PATH_SEPARATOR=';'
23062   else
23063     PATH_SEPARATOR=:
23064   fi
23065   rm -f conf$$.sh
23066 fi
23067
23068
23069   as_lineno_1=$LINENO
23070   as_lineno_2=$LINENO
23071   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23072   test "x$as_lineno_1" != "x$as_lineno_2" &&
23073   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23074   # Find who we are.  Look in the path if we contain no path at all
23075   # relative or not.
23076   case $0 in
23077     *[\\/]* ) as_myself=$0 ;;
23078     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23079 for as_dir in $PATH
23080 do
23081   IFS=$as_save_IFS
23082   test -z "$as_dir" && as_dir=.
23083   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23084 done
23085
23086        ;;
23087   esac
23088   # We did not find ourselves, most probably we were run as `sh COMMAND'
23089   # in which case we are not to be found in the path.
23090   if test "x$as_myself" = x; then
23091     as_myself=$0
23092   fi
23093   if test ! -f "$as_myself"; then
23094     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23095 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23096    { (exit 1); exit 1; }; }
23097   fi
23098   case $CONFIG_SHELL in
23099   '')
23100     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23101 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23102 do
23103   IFS=$as_save_IFS
23104   test -z "$as_dir" && as_dir=.
23105   for as_base in sh bash ksh sh5; do
23106          case $as_dir in
23107          /*)
23108            if ("$as_dir/$as_base" -c '
23109   as_lineno_1=$LINENO
23110   as_lineno_2=$LINENO
23111   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23112   test "x$as_lineno_1" != "x$as_lineno_2" &&
23113   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23114              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23115              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23116              CONFIG_SHELL=$as_dir/$as_base
23117              export CONFIG_SHELL
23118              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23119            fi;;
23120          esac
23121        done
23122 done
23123 ;;
23124   esac
23125
23126   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23127   # uniformly replaced by the line number.  The first 'sed' inserts a
23128   # line-number line before each line; the second 'sed' does the real
23129   # work.  The second script uses 'N' to pair each line-number line
23130   # with the numbered line, and appends trailing '-' during
23131   # substitution so that $LINENO is not a special case at line end.
23132   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23133   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23134   sed '=' <$as_myself |
23135     sed '
23136       N
23137       s,$,-,
23138       : loop
23139       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23140       t loop
23141       s,-$,,
23142       s,^['$as_cr_digits']*\n,,
23143     ' >$as_me.lineno &&
23144   chmod +x $as_me.lineno ||
23145     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23146 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23147    { (exit 1); exit 1; }; }
23148
23149   # Don't try to exec as it changes $[0], causing all sort of problems
23150   # (the dirname of $[0] is not the place where we might find the
23151   # original and so on.  Autoconf is especially sensible to this).
23152   . ./$as_me.lineno
23153   # Exit status is that of the last command.
23154   exit
23155 }
23156
23157
23158 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23159   *c*,-n*) ECHO_N= ECHO_C='
23160 ' ECHO_T='      ' ;;
23161   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23162   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23163 esac
23164
23165 if expr a : '\(a\)' >/dev/null 2>&1; then
23166   as_expr=expr
23167 else
23168   as_expr=false
23169 fi
23170
23171 rm -f conf$$ conf$$.exe conf$$.file
23172 echo >conf$$.file
23173 if ln -s conf$$.file conf$$ 2>/dev/null; then
23174   # We could just check for DJGPP; but this test a) works b) is more generic
23175   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23176   if test -f conf$$.exe; then
23177     # Don't use ln at all; we don't have any links
23178     as_ln_s='cp -p'
23179   else
23180     as_ln_s='ln -s'
23181   fi
23182 elif ln conf$$.file conf$$ 2>/dev/null; then
23183   as_ln_s=ln
23184 else
23185   as_ln_s='cp -p'
23186 fi
23187 rm -f conf$$ conf$$.exe conf$$.file
23188
23189 if mkdir -p . 2>/dev/null; then
23190   as_mkdir_p=:
23191 else
23192   as_mkdir_p=false
23193 fi
23194
23195 as_executable_p="test -f"
23196
23197 # Sed expression to map a string onto a valid CPP name.
23198 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23199
23200 # Sed expression to map a string onto a valid variable name.
23201 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23202
23203
23204 # IFS
23205 # We need space, tab and new line, in precisely that order.
23206 as_nl='
23207 '
23208 IFS="   $as_nl"
23209
23210 # CDPATH.
23211 $as_unset CDPATH
23212
23213 exec 6>&1
23214
23215 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23216 # report actual input values of CONFIG_FILES etc. instead of their
23217 # values after options handling.  Logging --version etc. is OK.
23218 exec 5>>config.log
23219 {
23220   echo
23221   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23222 ## Running $as_me. ##
23223 _ASBOX
23224 } >&5
23225 cat >&5 <<_CSEOF
23226
23227 This file was extended by [LLVM] $as_me [1.0], which was
23228 generated by GNU Autoconf 2.57.  Invocation command line was
23229
23230   CONFIG_FILES    = $CONFIG_FILES
23231   CONFIG_HEADERS  = $CONFIG_HEADERS
23232   CONFIG_LINKS    = $CONFIG_LINKS
23233   CONFIG_COMMANDS = $CONFIG_COMMANDS
23234   $ $0 $@
23235
23236 _CSEOF
23237 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23238 echo >&5
23239 _ACEOF
23240
23241 # Files that config.status was made for.
23242 if test -n "$ac_config_files"; then
23243   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23244 fi
23245
23246 if test -n "$ac_config_headers"; then
23247   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23248 fi
23249
23250 if test -n "$ac_config_links"; then
23251   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23252 fi
23253
23254 if test -n "$ac_config_commands"; then
23255   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23256 fi
23257
23258 cat >>$CONFIG_STATUS <<\_ACEOF
23259
23260 ac_cs_usage="\
23261 \`$as_me' instantiates files from templates according to the
23262 current configuration.
23263
23264 Usage: $0 [OPTIONS] [FILE]...
23265
23266   -h, --help       print this help, then exit
23267   -V, --version    print version number, then exit
23268   -q, --quiet      do not print progress messages
23269   -d, --debug      don't remove temporary files
23270       --recheck    update $as_me by reconfiguring in the same conditions
23271   --file=FILE[:TEMPLATE]
23272                    instantiate the configuration file FILE
23273   --header=FILE[:TEMPLATE]
23274                    instantiate the configuration header FILE
23275
23276 Configuration files:
23277 $config_files
23278
23279 Configuration headers:
23280 $config_headers
23281
23282 Configuration commands:
23283 $config_commands
23284
23285 Report bugs to <bug-autoconf@gnu.org>."
23286 _ACEOF
23287
23288 cat >>$CONFIG_STATUS <<_ACEOF
23289 ac_cs_version="\\
23290 [LLVM] config.status [1.0]
23291 configured by $0, generated by GNU Autoconf 2.57,
23292   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23293
23294 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23295 Free Software Foundation, Inc.
23296 This config.status script is free software; the Free Software Foundation
23297 gives unlimited permission to copy, distribute and modify it."
23298 srcdir=$srcdir
23299 INSTALL="$INSTALL"
23300 _ACEOF
23301
23302 cat >>$CONFIG_STATUS <<\_ACEOF
23303 # If no file are specified by the user, then we need to provide default
23304 # value.  By we need to know if files were specified by the user.
23305 ac_need_defaults=:
23306 while test $# != 0
23307 do
23308   case $1 in
23309   --*=*)
23310     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23311     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23312     ac_shift=:
23313     ;;
23314   -*)
23315     ac_option=$1
23316     ac_optarg=$2
23317     ac_shift=shift
23318     ;;
23319   *) # This is not an option, so the user has probably given explicit
23320      # arguments.
23321      ac_option=$1
23322      ac_need_defaults=false;;
23323   esac
23324
23325   case $ac_option in
23326   # Handling of the options.
23327 _ACEOF
23328 cat >>$CONFIG_STATUS <<\_ACEOF
23329   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23330     ac_cs_recheck=: ;;
23331   --version | --vers* | -V )
23332     echo "$ac_cs_version"; exit 0 ;;
23333   --he | --h)
23334     # Conflict between --help and --header
23335     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23336 Try \`$0 --help' for more information." >&5
23337 echo "$as_me: error: ambiguous option: $1
23338 Try \`$0 --help' for more information." >&2;}
23339    { (exit 1); exit 1; }; };;
23340   --help | --hel | -h )
23341     echo "$ac_cs_usage"; exit 0 ;;
23342   --debug | --d* | -d )
23343     debug=: ;;
23344   --file | --fil | --fi | --f )
23345     $ac_shift
23346     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23347     ac_need_defaults=false;;
23348   --header | --heade | --head | --hea )
23349     $ac_shift
23350     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23351     ac_need_defaults=false;;
23352   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23353   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23354     ac_cs_silent=: ;;
23355
23356   # This is an error.
23357   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23358 Try \`$0 --help' for more information." >&5
23359 echo "$as_me: error: unrecognized option: $1
23360 Try \`$0 --help' for more information." >&2;}
23361    { (exit 1); exit 1; }; } ;;
23362
23363   *) ac_config_targets="$ac_config_targets $1" ;;
23364
23365   esac
23366   shift
23367 done
23368
23369 ac_configure_extra_args=
23370
23371 if $ac_cs_silent; then
23372   exec 6>/dev/null
23373   ac_configure_extra_args="$ac_configure_extra_args --silent"
23374 fi
23375
23376 _ACEOF
23377 cat >>$CONFIG_STATUS <<_ACEOF
23378 if \$ac_cs_recheck; then
23379   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23380   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23381 fi
23382
23383 _ACEOF
23384
23385 cat >>$CONFIG_STATUS <<_ACEOF
23386 #
23387 # INIT-COMMANDS section.
23388 #
23389
23390 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/CompileFail/Makefile`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23541 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23542 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23543 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23544 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23545 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23546 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23547 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23548 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23549 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23550 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23551 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23552 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23553 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23554 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23555 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23556 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23557 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23558 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23559 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23560 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23561 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23562 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23563 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23564 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23565 ${srcdir}/autoconf/mkinstalldirs `dirname support/Makefile`
23566 ${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Makefile`
23567 ${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Support/Makefile`
23568 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Makefile`
23569 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Makefile`
23570 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Doc/Makefile`
23571 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/TableGen/Makefile`
23572
23573 _ACEOF
23574
23575
23576
23577 cat >>$CONFIG_STATUS <<\_ACEOF
23578 for ac_config_target in $ac_config_targets
23579 do
23580   case "$ac_config_target" in
23581   # Handling of arguments.
23582   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23583   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23584   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23585   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23586   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23587   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23588   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23589   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23590   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23591   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23592   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23593   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23594   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23595   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23596   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23597   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23598   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23599   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23600   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23601   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23602   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23603   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23604   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23605   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23606   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23607   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23608   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23609   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23610   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23611   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23612   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23613   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23614   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23615   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23616   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23617   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23618   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23619   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23620   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23621   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23622   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23623   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23624   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23625   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23626   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23627   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23628   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23629   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23630   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23631   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23632   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23633   "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
23634   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23635   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23636   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23637   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23638   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23639   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23640   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23641   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23642   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23643   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23644   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23645   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23646   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23647   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23648   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23649   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23650   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23651   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23652   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23653   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23654   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23655   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23656   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23657   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23658   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23659   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23660   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23661   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23662   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23663   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23664   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23665   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23666   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23667   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23668   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23669   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23670   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23671   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23672   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23673   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23674   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23675   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23676   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23677   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23678   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23679   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23680   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23681   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23682   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23683   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23684   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23685   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23686   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23687   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23688   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23689   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23690   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23691   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23692   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23693   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23694   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23695   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23696   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23697   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23698   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23699   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23700   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23701   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23702   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23703   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23704   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23705   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23706   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23707   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23708   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23709   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23710   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23711   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23712   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23713   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23714   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23715   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23716   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23717   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23718   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23719   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23720   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23721   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23722   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23723   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23724   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23725   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23726   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23727   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23728   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23729   "test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ;;
23730   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23731   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23732   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23733   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23734   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23735   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23736   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23737   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23738   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23739   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23740   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23741   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23742   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23743   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23744   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23745   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23746   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23747   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23748   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23749   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23750   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23751   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23752   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23753   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23754   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23755   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23756   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23757   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23758   "support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/Makefile" ;;
23759   "support/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Makefile" ;;
23760   "support/lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Support/Makefile" ;;
23761   "support/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Makefile" ;;
23762   "support/tools/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Makefile" ;;
23763   "support/tools/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Doc/Makefile" ;;
23764   "support/tools/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/TableGen/Makefile" ;;
23765   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23766   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23767 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23768    { (exit 1); exit 1; }; };;
23769   esac
23770 done
23771
23772 # If the user did not use the arguments to specify the items to instantiate,
23773 # then the envvar interface is used.  Set only those that are not.
23774 # We use the long form for the default assignment because of an extremely
23775 # bizarre bug on SunOS 4.1.3.
23776 if $ac_need_defaults; then
23777   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23778   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23779   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23780 fi
23781
23782 # Have a temporary directory for convenience.  Make it in the build tree
23783 # simply because there is no reason to put it here, and in addition,
23784 # creating and moving files from /tmp can sometimes cause problems.
23785 # Create a temporary directory, and hook for its removal unless debugging.
23786 $debug ||
23787 {
23788   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23789   trap '{ (exit 1); exit 1; }' 1 2 13 15
23790 }
23791
23792 # Create a (secure) tmp directory for tmp files.
23793
23794 {
23795   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23796   test -n "$tmp" && test -d "$tmp"
23797 }  ||
23798 {
23799   tmp=./confstat$$-$RANDOM
23800   (umask 077 && mkdir $tmp)
23801 } ||
23802 {
23803    echo "$me: cannot create a temporary directory in ." >&2
23804    { (exit 1); exit 1; }
23805 }
23806
23807 _ACEOF
23808
23809 cat >>$CONFIG_STATUS <<_ACEOF
23810
23811 #
23812 # CONFIG_FILES section.
23813 #
23814
23815 # No need to generate the scripts if there are no CONFIG_FILES.
23816 # This happens for instance when ./config.status config.h
23817 if test -n "\$CONFIG_FILES"; then
23818   # Protect against being on the right side of a sed subst in config.status.
23819   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23820    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23821 s,@SHELL@,$SHELL,;t t
23822 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23823 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23824 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23825 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23826 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23827 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23828 s,@exec_prefix@,$exec_prefix,;t t
23829 s,@prefix@,$prefix,;t t
23830 s,@program_transform_name@,$program_transform_name,;t t
23831 s,@bindir@,$bindir,;t t
23832 s,@sbindir@,$sbindir,;t t
23833 s,@libexecdir@,$libexecdir,;t t
23834 s,@datadir@,$datadir,;t t
23835 s,@sysconfdir@,$sysconfdir,;t t
23836 s,@sharedstatedir@,$sharedstatedir,;t t
23837 s,@localstatedir@,$localstatedir,;t t
23838 s,@libdir@,$libdir,;t t
23839 s,@includedir@,$includedir,;t t
23840 s,@oldincludedir@,$oldincludedir,;t t
23841 s,@infodir@,$infodir,;t t
23842 s,@mandir@,$mandir,;t t
23843 s,@build_alias@,$build_alias,;t t
23844 s,@host_alias@,$host_alias,;t t
23845 s,@target_alias@,$target_alias,;t t
23846 s,@DEFS@,$DEFS,;t t
23847 s,@ECHO_C@,$ECHO_C,;t t
23848 s,@ECHO_N@,$ECHO_N,;t t
23849 s,@ECHO_T@,$ECHO_T,;t t
23850 s,@LIBS@,$LIBS,;t t
23851 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23852 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23853 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23854 s,@build@,$build,;t t
23855 s,@build_cpu@,$build_cpu,;t t
23856 s,@build_vendor@,$build_vendor,;t t
23857 s,@build_os@,$build_os,;t t
23858 s,@host@,$host,;t t
23859 s,@host_cpu@,$host_cpu,;t t
23860 s,@host_vendor@,$host_vendor,;t t
23861 s,@host_os@,$host_os,;t t
23862 s,@target@,$target,;t t
23863 s,@target_cpu@,$target_cpu,;t t
23864 s,@target_vendor@,$target_vendor,;t t
23865 s,@target_os@,$target_os,;t t
23866 s,@OS@,$OS,;t t
23867 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23868 s,@ARCH@,$ARCH,;t t
23869 s,@CXX@,$CXX,;t t
23870 s,@CXXFLAGS@,$CXXFLAGS,;t t
23871 s,@LDFLAGS@,$LDFLAGS,;t t
23872 s,@CPPFLAGS@,$CPPFLAGS,;t t
23873 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23874 s,@EXEEXT@,$EXEEXT,;t t
23875 s,@OBJEXT@,$OBJEXT,;t t
23876 s,@CC@,$CC,;t t
23877 s,@CFLAGS@,$CFLAGS,;t t
23878 s,@ac_ct_CC@,$ac_ct_CC,;t t
23879 s,@CPP@,$CPP,;t t
23880 s,@ifGNUmake@,$ifGNUmake,;t t
23881 s,@LEX@,$LEX,;t t
23882 s,@LEXLIB@,$LEXLIB,;t t
23883 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23884 s,@YACC@,$YACC,;t t
23885 s,@EGREP@,$EGREP,;t t
23886 s,@LN_S@,$LN_S,;t t
23887 s,@ECHO@,$ECHO,;t t
23888 s,@AR@,$AR,;t t
23889 s,@ac_ct_AR@,$ac_ct_AR,;t t
23890 s,@RANLIB@,$RANLIB,;t t
23891 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23892 s,@STRIP@,$STRIP,;t t
23893 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23894 s,@CXXCPP@,$CXXCPP,;t t
23895 s,@F77@,$F77,;t t
23896 s,@FFLAGS@,$FFLAGS,;t t
23897 s,@ac_ct_F77@,$ac_ct_F77,;t t
23898 s,@LIBTOOL@,$LIBTOOL,;t t
23899 s,@RPWD@,$RPWD,;t t
23900 s,@SED@,$SED,;t t
23901 s,@RM@,$RM,;t t
23902 s,@MKDIR@,$MKDIR,;t t
23903 s,@DATE@,$DATE,;t t
23904 s,@MV@,$MV,;t t
23905 s,@DOT@,$DOT,;t t
23906 s,@ETAGS@,$ETAGS,;t t
23907 s,@PURIFY@,$PURIFY,;t t
23908 s,@PYTHON@,$PYTHON,;t t
23909 s,@QMTEST@,$QMTEST,;t t
23910 s,@ALLOCA@,$ALLOCA,;t t
23911 s,@LIBOBJS@,$LIBOBJS,;t t
23912 s,@MMAP_FILE@,$MMAP_FILE,;t t
23913 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23914 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23915 s,@USE_SPEC@,$USE_SPEC,;t t
23916 s,@UPB@,$UPB,;t t
23917 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23918 s,@JIT@,$JIT,;t t
23919 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23920 s,@BCR@,$BCR,;t t
23921 s,@PAPIDIR@,$PAPIDIR,;t t
23922 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23923 CEOF
23924
23925 _ACEOF
23926
23927   cat >>$CONFIG_STATUS <<\_ACEOF
23928   # Split the substitutions into bite-sized pieces for seds with
23929   # small command number limits, like on Digital OSF/1 and HP-UX.
23930   ac_max_sed_lines=48
23931   ac_sed_frag=1 # Number of current file.
23932   ac_beg=1 # First line for current file.
23933   ac_end=$ac_max_sed_lines # Line after last line for current file.
23934   ac_more_lines=:
23935   ac_sed_cmds=
23936   while $ac_more_lines; do
23937     if test $ac_beg -gt 1; then
23938       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23939     else
23940       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23941     fi
23942     if test ! -s $tmp/subs.frag; then
23943       ac_more_lines=false
23944     else
23945       # The purpose of the label and of the branching condition is to
23946       # speed up the sed processing (if there are no `@' at all, there
23947       # is no need to browse any of the substitutions).
23948       # These are the two extra sed commands mentioned above.
23949       (echo ':t
23950   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23951       if test -z "$ac_sed_cmds"; then
23952         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23953       else
23954         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23955       fi
23956       ac_sed_frag=`expr $ac_sed_frag + 1`
23957       ac_beg=$ac_end
23958       ac_end=`expr $ac_end + $ac_max_sed_lines`
23959     fi
23960   done
23961   if test -z "$ac_sed_cmds"; then
23962     ac_sed_cmds=cat
23963   fi
23964 fi # test -n "$CONFIG_FILES"
23965
23966 _ACEOF
23967 cat >>$CONFIG_STATUS <<\_ACEOF
23968 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23969   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23970   case $ac_file in
23971   - | *:- | *:-:* ) # input from stdin
23972         cat >$tmp/stdin
23973         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23974         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23975   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23976         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23977   * )   ac_file_in=$ac_file.in ;;
23978   esac
23979
23980   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23981   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23983          X"$ac_file" : 'X\(//\)[^/]' \| \
23984          X"$ac_file" : 'X\(//\)$' \| \
23985          X"$ac_file" : 'X\(/\)' \| \
23986          .     : '\(.\)' 2>/dev/null ||
23987 echo X"$ac_file" |
23988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23989           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23990           /^X\(\/\/\)$/{ s//\1/; q; }
23991           /^X\(\/\).*/{ s//\1/; q; }
23992           s/.*/./; q'`
23993   { if $as_mkdir_p; then
23994     mkdir -p "$ac_dir"
23995   else
23996     as_dir="$ac_dir"
23997     as_dirs=
23998     while test ! -d "$as_dir"; do
23999       as_dirs="$as_dir $as_dirs"
24000       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24002          X"$as_dir" : 'X\(//\)[^/]' \| \
24003          X"$as_dir" : 'X\(//\)$' \| \
24004          X"$as_dir" : 'X\(/\)' \| \
24005          .     : '\(.\)' 2>/dev/null ||
24006 echo X"$as_dir" |
24007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24008           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24009           /^X\(\/\/\)$/{ s//\1/; q; }
24010           /^X\(\/\).*/{ s//\1/; q; }
24011           s/.*/./; q'`
24012     done
24013     test ! -n "$as_dirs" || mkdir $as_dirs
24014   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24015 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24016    { (exit 1); exit 1; }; }; }
24017
24018   ac_builddir=.
24019
24020 if test "$ac_dir" != .; then
24021   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24022   # A "../" for each directory in $ac_dir_suffix.
24023   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24024 else
24025   ac_dir_suffix= ac_top_builddir=
24026 fi
24027
24028 case $srcdir in
24029   .)  # No --srcdir option.  We are building in place.
24030     ac_srcdir=.
24031     if test -z "$ac_top_builddir"; then
24032        ac_top_srcdir=.
24033     else
24034        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24035     fi ;;
24036   [\\/]* | ?:[\\/]* )  # Absolute path.
24037     ac_srcdir=$srcdir$ac_dir_suffix;
24038     ac_top_srcdir=$srcdir ;;
24039   *) # Relative path.
24040     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24041     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24042 esac
24043 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24044 # absolute.
24045 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24046 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24047 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24048 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24049
24050
24051   case $INSTALL in
24052   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24053   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24054   esac
24055
24056   if test x"$ac_file" != x-; then
24057     { echo "$as_me:$LINENO: creating $ac_file" >&5
24058 echo "$as_me: creating $ac_file" >&6;}
24059     rm -f "$ac_file"
24060   fi
24061   # Let's still pretend it is `configure' which instantiates (i.e., don't
24062   # use $as_me), people would be surprised to read:
24063   #    /* config.h.  Generated by config.status.  */
24064   if test x"$ac_file" = x-; then
24065     configure_input=
24066   else
24067     configure_input="$ac_file.  "
24068   fi
24069   configure_input=$configure_input"Generated from `echo $ac_file_in |
24070                                      sed 's,.*/,,'` by configure."
24071
24072   # First look for the input files in the build tree, otherwise in the
24073   # src tree.
24074   ac_file_inputs=`IFS=:
24075     for f in $ac_file_in; do
24076       case $f in
24077       -) echo $tmp/stdin ;;
24078       [\\/$]*)
24079          # Absolute (can't be DOS-style, as IFS=:)
24080          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24081 echo "$as_me: error: cannot find input file: $f" >&2;}
24082    { (exit 1); exit 1; }; }
24083          echo $f;;
24084       *) # Relative
24085          if test -f "$f"; then
24086            # Build tree
24087            echo $f
24088          elif test -f "$srcdir/$f"; then
24089            # Source tree
24090            echo $srcdir/$f
24091          else
24092            # /dev/null tree
24093            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24094 echo "$as_me: error: cannot find input file: $f" >&2;}
24095    { (exit 1); exit 1; }; }
24096          fi;;
24097       esac
24098     done` || { (exit 1); exit 1; }
24099 _ACEOF
24100 cat >>$CONFIG_STATUS <<_ACEOF
24101   sed "$ac_vpsub
24102 $extrasub
24103 _ACEOF
24104 cat >>$CONFIG_STATUS <<\_ACEOF
24105 :t
24106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24107 s,@configure_input@,$configure_input,;t t
24108 s,@srcdir@,$ac_srcdir,;t t
24109 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24110 s,@top_srcdir@,$ac_top_srcdir,;t t
24111 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24112 s,@builddir@,$ac_builddir,;t t
24113 s,@abs_builddir@,$ac_abs_builddir,;t t
24114 s,@top_builddir@,$ac_top_builddir,;t t
24115 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24116 s,@INSTALL@,$ac_INSTALL,;t t
24117 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24118   rm -f $tmp/stdin
24119   if test x"$ac_file" != x-; then
24120     mv $tmp/out $ac_file
24121   else
24122     cat $tmp/out
24123     rm -f $tmp/out
24124   fi
24125
24126 done
24127 _ACEOF
24128 cat >>$CONFIG_STATUS <<\_ACEOF
24129
24130 #
24131 # CONFIG_HEADER section.
24132 #
24133
24134 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24135 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24136 #
24137 # ac_d sets the value in "#define NAME VALUE" lines.
24138 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24139 ac_dB='[        ].*$,\1#\2'
24140 ac_dC=' '
24141 ac_dD=',;t'
24142 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24143 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24144 ac_uB='$,\1#\2define\3'
24145 ac_uC=' '
24146 ac_uD=',;t'
24147
24148 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24149   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24150   case $ac_file in
24151   - | *:- | *:-:* ) # input from stdin
24152         cat >$tmp/stdin
24153         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24154         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24155   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24156         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24157   * )   ac_file_in=$ac_file.in ;;
24158   esac
24159
24160   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24161 echo "$as_me: creating $ac_file" >&6;}
24162
24163   # First look for the input files in the build tree, otherwise in the
24164   # src tree.
24165   ac_file_inputs=`IFS=:
24166     for f in $ac_file_in; do
24167       case $f in
24168       -) echo $tmp/stdin ;;
24169       [\\/$]*)
24170          # Absolute (can't be DOS-style, as IFS=:)
24171          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24172 echo "$as_me: error: cannot find input file: $f" >&2;}
24173    { (exit 1); exit 1; }; }
24174          echo $f;;
24175       *) # Relative
24176          if test -f "$f"; then
24177            # Build tree
24178            echo $f
24179          elif test -f "$srcdir/$f"; then
24180            # Source tree
24181            echo $srcdir/$f
24182          else
24183            # /dev/null tree
24184            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24185 echo "$as_me: error: cannot find input file: $f" >&2;}
24186    { (exit 1); exit 1; }; }
24187          fi;;
24188       esac
24189     done` || { (exit 1); exit 1; }
24190   # Remove the trailing spaces.
24191   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24192
24193 _ACEOF
24194
24195 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24196 # `conftest.undefs', that substitutes the proper values into
24197 # config.h.in to produce config.h.  The first handles `#define'
24198 # templates, and the second `#undef' templates.
24199 # And first: Protect against being on the right side of a sed subst in
24200 # config.status.  Protect against being in an unquoted here document
24201 # in config.status.
24202 rm -f conftest.defines conftest.undefs
24203 # Using a here document instead of a string reduces the quoting nightmare.
24204 # Putting comments in sed scripts is not portable.
24205 #
24206 # `end' is used to avoid that the second main sed command (meant for
24207 # 0-ary CPP macros) applies to n-ary macro definitions.
24208 # See the Autoconf documentation for `clear'.
24209 cat >confdef2sed.sed <<\_ACEOF
24210 s/[\\&,]/\\&/g
24211 s,[\\$`],\\&,g
24212 t clear
24213 : clear
24214 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24215 t end
24216 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24217 : end
24218 _ACEOF
24219 # If some macros were called several times there might be several times
24220 # the same #defines, which is useless.  Nevertheless, we may not want to
24221 # sort them, since we want the *last* AC-DEFINE to be honored.
24222 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24223 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24224 rm -f confdef2sed.sed
24225
24226 # This sed command replaces #undef with comments.  This is necessary, for
24227 # example, in the case of _POSIX_SOURCE, which is predefined and required
24228 # on some systems where configure will not decide to define it.
24229 cat >>conftest.undefs <<\_ACEOF
24230 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24231 _ACEOF
24232
24233 # Break up conftest.defines because some shells have a limit on the size
24234 # of here documents, and old seds have small limits too (100 cmds).
24235 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24236 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24237 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24238 echo '  :' >>$CONFIG_STATUS
24239 rm -f conftest.tail
24240 while grep . conftest.defines >/dev/null
24241 do
24242   # Write a limited-size here document to $tmp/defines.sed.
24243   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24244   # Speed up: don't consider the non `#define' lines.
24245   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24246   # Work around the forget-to-reset-the-flag bug.
24247   echo 't clr' >>$CONFIG_STATUS
24248   echo ': clr' >>$CONFIG_STATUS
24249   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24250   echo 'CEOF
24251   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24252   rm -f $tmp/in
24253   mv $tmp/out $tmp/in
24254 ' >>$CONFIG_STATUS
24255   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24256   rm -f conftest.defines
24257   mv conftest.tail conftest.defines
24258 done
24259 rm -f conftest.defines
24260 echo '  fi # grep' >>$CONFIG_STATUS
24261 echo >>$CONFIG_STATUS
24262
24263 # Break up conftest.undefs because some shells have a limit on the size
24264 # of here documents, and old seds have small limits too (100 cmds).
24265 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24266 rm -f conftest.tail
24267 while grep . conftest.undefs >/dev/null
24268 do
24269   # Write a limited-size here document to $tmp/undefs.sed.
24270   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24271   # Speed up: don't consider the non `#undef'
24272   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24273   # Work around the forget-to-reset-the-flag bug.
24274   echo 't clr' >>$CONFIG_STATUS
24275   echo ': clr' >>$CONFIG_STATUS
24276   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24277   echo 'CEOF
24278   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24279   rm -f $tmp/in
24280   mv $tmp/out $tmp/in
24281 ' >>$CONFIG_STATUS
24282   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24283   rm -f conftest.undefs
24284   mv conftest.tail conftest.undefs
24285 done
24286 rm -f conftest.undefs
24287
24288 cat >>$CONFIG_STATUS <<\_ACEOF
24289   # Let's still pretend it is `configure' which instantiates (i.e., don't
24290   # use $as_me), people would be surprised to read:
24291   #    /* config.h.  Generated by config.status.  */
24292   if test x"$ac_file" = x-; then
24293     echo "/* Generated by configure.  */" >$tmp/config.h
24294   else
24295     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24296   fi
24297   cat $tmp/in >>$tmp/config.h
24298   rm -f $tmp/in
24299   if test x"$ac_file" != x-; then
24300     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24301       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24302 echo "$as_me: $ac_file is unchanged" >&6;}
24303     else
24304       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24306          X"$ac_file" : 'X\(//\)[^/]' \| \
24307          X"$ac_file" : 'X\(//\)$' \| \
24308          X"$ac_file" : 'X\(/\)' \| \
24309          .     : '\(.\)' 2>/dev/null ||
24310 echo X"$ac_file" |
24311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24312           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24313           /^X\(\/\/\)$/{ s//\1/; q; }
24314           /^X\(\/\).*/{ s//\1/; q; }
24315           s/.*/./; q'`
24316       { if $as_mkdir_p; then
24317     mkdir -p "$ac_dir"
24318   else
24319     as_dir="$ac_dir"
24320     as_dirs=
24321     while test ! -d "$as_dir"; do
24322       as_dirs="$as_dir $as_dirs"
24323       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24325          X"$as_dir" : 'X\(//\)[^/]' \| \
24326          X"$as_dir" : 'X\(//\)$' \| \
24327          X"$as_dir" : 'X\(/\)' \| \
24328          .     : '\(.\)' 2>/dev/null ||
24329 echo X"$as_dir" |
24330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24331           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24332           /^X\(\/\/\)$/{ s//\1/; q; }
24333           /^X\(\/\).*/{ s//\1/; q; }
24334           s/.*/./; q'`
24335     done
24336     test ! -n "$as_dirs" || mkdir $as_dirs
24337   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24338 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24339    { (exit 1); exit 1; }; }; }
24340
24341       rm -f $ac_file
24342       mv $tmp/config.h $ac_file
24343     fi
24344   else
24345     cat $tmp/config.h
24346     rm -f $tmp/config.h
24347   fi
24348 done
24349 _ACEOF
24350 cat >>$CONFIG_STATUS <<\_ACEOF
24351
24352 #
24353 # CONFIG_COMMANDS section.
24354 #
24355 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24356   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24357   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24358   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24359 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24360          X"$ac_dest" : 'X\(//\)[^/]' \| \
24361          X"$ac_dest" : 'X\(//\)$' \| \
24362          X"$ac_dest" : 'X\(/\)' \| \
24363          .     : '\(.\)' 2>/dev/null ||
24364 echo X"$ac_dest" |
24365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24366           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24367           /^X\(\/\/\)$/{ s//\1/; q; }
24368           /^X\(\/\).*/{ s//\1/; q; }
24369           s/.*/./; q'`
24370   ac_builddir=.
24371
24372 if test "$ac_dir" != .; then
24373   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24374   # A "../" for each directory in $ac_dir_suffix.
24375   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24376 else
24377   ac_dir_suffix= ac_top_builddir=
24378 fi
24379
24380 case $srcdir in
24381   .)  # No --srcdir option.  We are building in place.
24382     ac_srcdir=.
24383     if test -z "$ac_top_builddir"; then
24384        ac_top_srcdir=.
24385     else
24386        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24387     fi ;;
24388   [\\/]* | ?:[\\/]* )  # Absolute path.
24389     ac_srcdir=$srcdir$ac_dir_suffix;
24390     ac_top_srcdir=$srcdir ;;
24391   *) # Relative path.
24392     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24393     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24394 esac
24395 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24396 # absolute.
24397 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24398 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24399 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24400 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24401
24402
24403   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24404 echo "$as_me: executing $ac_dest commands" >&6;}
24405   case $ac_dest in
24406     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24407     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24408     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24409     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24410     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24411     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24412     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24413     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24414     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24415     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24416     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24417     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24418     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24419     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24420     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24421     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24422     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24423     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24424     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24425     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24426     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24427     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24428     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24429     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24430     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24431     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24432     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24433     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24434     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24435     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24436     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24437     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24438     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24439     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24440     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24441     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24442     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24443     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24444     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24445     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24446     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24447     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24448     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24449     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24450     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24451     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24452     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24453     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24454     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24455     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24456     test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
24457     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24458     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24459     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24460     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24461     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24462     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24463     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24464     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24465     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24466     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24467     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24468     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24469     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24470     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24471     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24472     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24473     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24474     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24475     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 ;;
24476     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 ;;
24477     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 ;;
24478     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 ;;
24479     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 ;;
24480     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 ;;
24481     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 ;;
24482     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 ;;
24483     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 ;;
24484     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 ;;
24485     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 ;;
24486     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 ;;
24487     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 ;;
24488     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 ;;
24489     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 ;;
24490     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 ;;
24491     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24492     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24493     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24494     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24495     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 ;;
24496     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 ;;
24497     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 ;;
24498     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24499     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 ;;
24500     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 ;;
24501     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 ;;
24502     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 ;;
24503     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 ;;
24504     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 ;;
24505     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 ;;
24506     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 ;;
24507     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 ;;
24508     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 ;;
24509     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 ;;
24510     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 ;;
24511     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 ;;
24512     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 ;;
24513     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 ;;
24514     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 ;;
24515     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 ;;
24516     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 ;;
24517     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 ;;
24518     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 ;;
24519     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 ;;
24520     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 ;;
24521     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 ;;
24522     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 ;;
24523     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 ;;
24524     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 ;;
24525     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 ;;
24526     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 ;;
24527     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 ;;
24528     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 ;;
24529     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 ;;
24530     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 ;;
24531     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24532     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24533     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24534     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 ;;
24535     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24536     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24537     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24538     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24539     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24540     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24541     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 ;;
24542     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 ;;
24543     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 ;;
24544     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 ;;
24545     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24546     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24547     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 ;;
24548     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24549     test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24550     test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
24551     test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
24552     test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/CompileFail/Makefile test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ;;
24553     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24554     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24555     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24556     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24557     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24558     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24559     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24560     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24561     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24562     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24563     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24564     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24565     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24566     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24567     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24568     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24569     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24570     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24571     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24572     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24573     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24574     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24575     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24576     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24577     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24578     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24579     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24580     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24581     support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/Makefile support/Makefile ;;
24582     support/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Makefile support/lib/Makefile ;;
24583     support/lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Support/Makefile support/lib/Support/Makefile ;;
24584     support/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Makefile support/tools/Makefile ;;
24585     support/tools/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Makefile support/tools/Burg/Makefile ;;
24586     support/tools/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Doc/Makefile support/tools/Burg/Doc/Makefile ;;
24587     support/tools/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/TableGen/Makefile support/tools/TableGen/Makefile ;;
24588   esac
24589 done
24590 _ACEOF
24591
24592 cat >>$CONFIG_STATUS <<\_ACEOF
24593
24594 { (exit 0); exit 0; }
24595 _ACEOF
24596 chmod +x $CONFIG_STATUS
24597 ac_clean_files=$ac_clean_files_save
24598
24599
24600 # configure is writing to config.log, and then calls config.status.
24601 # config.status does its own redirection, appending to config.log.
24602 # Unfortunately, on DOS this fails, as config.log is still kept open
24603 # by configure, so config.status won't be able to write to it; its
24604 # output is simply discarded.  So we exec the FD to /dev/null,
24605 # effectively closing config.log, so it can be properly (re)opened and
24606 # appended to by config.status.  When coming back to configure, we
24607 # need to make the FD available again.
24608 if test "$no_create" != yes; then
24609   ac_cs_success=:
24610   ac_config_status_args=
24611   test "$silent" = yes &&
24612     ac_config_status_args="$ac_config_status_args --quiet"
24613   exec 5>/dev/null
24614   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24615   exec 5>>config.log
24616   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24617   # would make configure fail if this is the last instruction.
24618   $ac_cs_success || { (exit 1); exit 1; }
24619 fi
24620