Added LLVM project notice to the top of every C++ source file.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/sample"
430 ac_subdirs_all="$ac_subdirs_all projects/reopt"
431 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_unique_file=""Makefile.config.in""
470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CC_set=${CC+set}
928 ac_env_CC_value=$CC
929 ac_cv_env_CC_set=${CC+set}
930 ac_cv_env_CC_value=$CC
931 ac_env_CFLAGS_set=${CFLAGS+set}
932 ac_env_CFLAGS_value=$CFLAGS
933 ac_cv_env_CFLAGS_set=${CFLAGS+set}
934 ac_cv_env_CFLAGS_value=$CFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951
952 #
953 # Report the --help message.
954 #
955 if test "$ac_init_help" = "long"; then
956   # Omit some internal or obsolete options to make the list less imposing.
957   # This message is too long to be a string in the A/UX 3.1 sh.
958   cat <<_ACEOF
959 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
960
961 Usage: $0 [OPTION]... [VAR=VALUE]...
962
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966 Defaults for the options are specified in brackets.
967
968 Configuration:
969   -h, --help              display this help and exit
970       --help=short        display options specific to this package
971       --help=recursive    display the short help of all the included packages
972   -V, --version           display version information and exit
973   -q, --quiet, --silent   do not print \`checking...' messages
974       --cache-file=FILE   cache test results in FILE [disabled]
975   -C, --config-cache      alias for \`--cache-file=config.cache'
976   -n, --no-create         do not create output files
977       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979 _ACEOF
980
981   cat <<_ACEOF
982 Installation directories:
983   --prefix=PREFIX         install architecture-independent files in PREFIX
984                           [$ac_default_prefix]
985   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986                           [PREFIX]
987
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
992
993 For better control, use the options below.
994
995 Fine tuning of the installation directories:
996   --bindir=DIR           user executables [EPREFIX/bin]
997   --sbindir=DIR          system admin executables [EPREFIX/sbin]
998   --libexecdir=DIR       program executables [EPREFIX/libexec]
999   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003   --libdir=DIR           object code libraries [EPREFIX/lib]
1004   --includedir=DIR       C header files [PREFIX/include]
1005   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006   --infodir=DIR          info documentation [PREFIX/info]
1007   --mandir=DIR           man documentation [PREFIX/man]
1008 _ACEOF
1009
1010   cat <<\_ACEOF
1011
1012 System types:
1013   --build=BUILD     configure for building on BUILD [guessed]
1014   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1015   --target=TARGET   configure for building compilers for TARGET [HOST]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020   case $ac_init_help in
1021      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1022    esac
1023   cat <<\_ACEOF
1024
1025 Optional Features:
1026   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1035   --enable-purify         Compile with purify (default is NO)
1036   --enable-optimized      Compile with optimizations enabled (default is NO)
1037   --enable-spec           Compile SPEC 2000 benchmarks (default is NO)
1038   --enable-precompiled_bytecode
1039                           Use pre-compiled bytecode (default is NO)
1040   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051   --with-llvmgccdir       Location of LLVM GCC front-end
1052   --with-bcrepos          Location of Bytecode Repository
1053   --with-papi             Location of PAPI
1054   --with-purify           Location of purify program
1055
1056 Some influential environment variables:
1057   CXX         C++ compiler command
1058   CXXFLAGS    C++ compiler flags
1059   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060               nonstandard directory <lib dir>
1061   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062               headers in a nonstandard directory <include dir>
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   CPP         C preprocessor
1066   CXXCPP      C++ preprocessor
1067   F77         Fortran 77 compiler command
1068   FFLAGS      Fortran 77 compiler flags
1069
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1072
1073 Report bugs to <llvmbugs@cs.uiuc.edu>.
1074 _ACEOF
1075 fi
1076
1077 if test "$ac_init_help" = "recursive"; then
1078   # If there are subdirs, report their specific --help.
1079   ac_popdir=`pwd`
1080   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081     test -d $ac_dir || continue
1082     ac_builddir=.
1083
1084 if test "$ac_dir" != .; then
1085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086   # A "../" for each directory in $ac_dir_suffix.
1087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 else
1089   ac_dir_suffix= ac_top_builddir=
1090 fi
1091
1092 case $srcdir in
1093   .)  # No --srcdir option.  We are building in place.
1094     ac_srcdir=.
1095     if test -z "$ac_top_builddir"; then
1096        ac_top_srcdir=.
1097     else
1098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099     fi ;;
1100   [\\/]* | ?:[\\/]* )  # Absolute path.
1101     ac_srcdir=$srcdir$ac_dir_suffix;
1102     ac_top_srcdir=$srcdir ;;
1103   *) # Relative path.
1104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 esac
1107 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108 # absolute.
1109 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114     cd $ac_dir
1115     # Check for guested configure; otherwise get Cygnus style configure.
1116     if test -f $ac_srcdir/configure.gnu; then
1117       echo
1118       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1119     elif test -f $ac_srcdir/configure; then
1120       echo
1121       $SHELL $ac_srcdir/configure  --help=recursive
1122     elif test -f $ac_srcdir/configure.ac ||
1123            test -f $ac_srcdir/configure.in; then
1124       echo
1125       $ac_configure --help
1126     else
1127       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128     fi
1129     cd $ac_popdir
1130   done
1131 fi
1132
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1135   cat <<\_ACEOF
1136 [LLVM] configure [1.0]
1137 generated by GNU Autoconf 2.57
1138
1139 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1143 _ACEOF
1144   exit 0
1145 fi
1146 exec 5>config.log
1147 cat >&5 <<_ACEOF
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1150
1151 It was created by [LLVM] $as_me [1.0], which was
1152 generated by GNU Autoconf 2.57.  Invocation command line was
1153
1154   $ $0 $@
1155
1156 _ACEOF
1157 {
1158 cat <<_ASUNAME
1159 ## --------- ##
1160 ## Platform. ##
1161 ## --------- ##
1162
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1171
1172 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1173 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1176 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1177 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1178 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1179
1180 _ASUNAME
1181
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 for as_dir in $PATH
1184 do
1185   IFS=$as_save_IFS
1186   test -z "$as_dir" && as_dir=.
1187   echo "PATH: $as_dir"
1188 done
1189
1190 } >&5
1191
1192 cat >&5 <<_ACEOF
1193
1194
1195 ## ----------- ##
1196 ## Core tests. ##
1197 ## ----------- ##
1198
1199 _ACEOF
1200
1201
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_configure_args=
1208 ac_configure_args0=
1209 ac_configure_args1=
1210 ac_sep=
1211 ac_must_keep_next=false
1212 for ac_pass in 1 2
1213 do
1214   for ac_arg
1215   do
1216     case $ac_arg in
1217     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219     | -silent | --silent | --silen | --sile | --sil)
1220       continue ;;
1221     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223     esac
1224     case $ac_pass in
1225     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226     2)
1227       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228       if test $ac_must_keep_next = true; then
1229         ac_must_keep_next=false # Got value, back to normal.
1230       else
1231         case $ac_arg in
1232           *=* | --config-cache | -C | -disable-* | --disable-* \
1233           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235           | -with-* | --with-* | -without-* | --without-* | --x)
1236             case "$ac_configure_args0 " in
1237               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238             esac
1239             ;;
1240           -* ) ac_must_keep_next=true ;;
1241         esac
1242       fi
1243       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244       # Get rid of the leading space.
1245       ac_sep=" "
1246       ;;
1247     esac
1248   done
1249 done
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log.  We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259   # Save into config.log some information that might help in debugging.
1260   {
1261     echo
1262
1263     cat <<\_ASBOX
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1267 _ASBOX
1268     echo
1269     # The following way of writing the cache mishandles newlines in values,
1270 {
1271   (set) 2>&1 |
1272     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273     *ac_space=\ *)
1274       sed -n \
1275         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277       ;;
1278     *)
1279       sed -n \
1280         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281       ;;
1282     esac;
1283 }
1284     echo
1285
1286     cat <<\_ASBOX
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1290 _ASBOX
1291     echo
1292     for ac_var in $ac_subst_vars
1293     do
1294       eval ac_val=$`echo $ac_var`
1295       echo "$ac_var='"'"'$ac_val'"'"'"
1296     done | sort
1297     echo
1298
1299     if test -n "$ac_subst_files"; then
1300       cat <<\_ASBOX
1301 ## ------------- ##
1302 ## Output files. ##
1303 ## ------------- ##
1304 _ASBOX
1305       echo
1306       for ac_var in $ac_subst_files
1307       do
1308         eval ac_val=$`echo $ac_var`
1309         echo "$ac_var='"'"'$ac_val'"'"'"
1310       done | sort
1311       echo
1312     fi
1313
1314     if test -s confdefs.h; then
1315       cat <<\_ASBOX
1316 ## ----------- ##
1317 ## confdefs.h. ##
1318 ## ----------- ##
1319 _ASBOX
1320       echo
1321       sed "/^$/d" confdefs.h | sort
1322       echo
1323     fi
1324     test "$ac_signal" != 0 &&
1325       echo "$as_me: caught signal $ac_signal"
1326     echo "$as_me: exit $exit_status"
1327   } >&5
1328   rm -f core core.* *.core &&
1329   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330     exit $exit_status
1331      ' 0
1332 for ac_signal in 1 2 13 15; do
1333   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 done
1335 ac_signal=0
1336
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 echo >confdefs.h
1341
1342 # Predefined preprocessor variables.
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 _ACEOF
1367
1368
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372   if test "x$prefix" != xNONE; then
1373     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374   else
1375     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376   fi
1377 fi
1378 for ac_site_file in $CONFIG_SITE; do
1379   if test -r "$ac_site_file"; then
1380     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382     sed 's/^/| /' "$ac_site_file" >&5
1383     . "$ac_site_file"
1384   fi
1385 done
1386
1387 if test -r "$cache_file"; then
1388   # Some versions of bash will fail to source /dev/null (special
1389   # files actually), so we avoid doing that.
1390   if test -f "$cache_file"; then
1391     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1393     case $cache_file in
1394       [\\/]* | ?:[\\/]* ) . $cache_file;;
1395       *)                      . ./$cache_file;;
1396     esac
1397   fi
1398 else
1399   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1401   >$cache_file
1402 fi
1403
1404 # Check that the precious variables saved in the cache have kept the same
1405 # value.
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410   eval ac_new_set=\$ac_env_${ac_var}_set
1411   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412   eval ac_new_val="\$ac_env_${ac_var}_value"
1413   case $ac_old_set,$ac_new_set in
1414     set,)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,set)
1419       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421       ac_cache_corrupted=: ;;
1422     ,);;
1423     *)
1424       if test "x$ac_old_val" != "x$ac_new_val"; then
1425         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1428 echo "$as_me:   former value:  $ac_old_val" >&2;}
1429         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1430 echo "$as_me:   current value: $ac_new_val" >&2;}
1431         ac_cache_corrupted=:
1432       fi;;
1433   esac
1434   # Pass precious variables to config.status.
1435   if test "$ac_new_set" = set; then
1436     case $ac_new_val in
1437     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439     *) ac_arg=$ac_var=$ac_new_val ;;
1440     esac
1441     case " $ac_configure_args " in
1442       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1443       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444     esac
1445   fi
1446 done
1447 if $ac_cache_corrupted; then
1448   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452    { (exit 1); exit 1; }; }
1453 fi
1454
1455 ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488 ac_aux_dir=
1489 for ac_dir in autoconf $srcdir/autoconf; do
1490   if test -f $ac_dir/install-sh; then
1491     ac_aux_dir=$ac_dir
1492     ac_install_sh="$ac_aux_dir/install-sh -c"
1493     break
1494   elif test -f $ac_dir/install.sh; then
1495     ac_aux_dir=$ac_dir
1496     ac_install_sh="$ac_aux_dir/install.sh -c"
1497     break
1498   elif test -f $ac_dir/shtool; then
1499     ac_aux_dir=$ac_dir
1500     ac_install_sh="$ac_aux_dir/shtool install -c"
1501     break
1502   fi
1503 done
1504 if test -z "$ac_aux_dir"; then
1505   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513
1514 if test ${srcdir} != "."
1515 then
1516         if test -f ${srcdir}/include/Config/config.h
1517         then
1518                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1519 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520    { (exit 1); exit 1; }; }
1521         fi
1522 fi
1523
1524 if test -d ${srcdir}/projects/sample
1525 then
1526
1527
1528 subdirs="$subdirs projects/sample"
1529
1530 fi
1531
1532 if test -d ${srcdir}/projects/reopt
1533 then
1534
1535
1536 subdirs="$subdirs projects/reopt"
1537
1538 fi
1539
1540 if test -d ${srcdir}/projects/poolalloc
1541 then
1542
1543
1544 subdirs="$subdirs projects/poolalloc"
1545
1546 fi
1547
1548           ac_config_headers="$ac_config_headers include/Config/config.h"
1549
1550           ac_config_commands="$ac_config_commands Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands Makefile.common"
1554
1555
1556           ac_config_commands="$ac_config_commands Makefile.rules"
1557
1558
1559           ac_config_commands="$ac_config_commands lib/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands runtime/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1668
1669
1670           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1683
1684
1685           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1686
1687
1688           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1692
1693
1694           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1695
1696
1697           ac_config_commands="$ac_config_commands test/Makefile"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Makefile.tests"
1701
1702
1703           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1704
1705
1706           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1707
1708
1709           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1944
1945
1946           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands tools/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1992
1993
1994           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands tools/llc/Makefile"
2004
2005
2006           ac_config_commands="$ac_config_commands tools/llee/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands tools/lli/Makefile"
2010
2011
2012           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2013
2014
2015           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2016
2017
2018           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands tools/llvm-nm/Makefile"
2025
2026
2027           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands utils/Makefile"
2031
2032
2033           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2034
2035
2036           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2037
2038
2039           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2040
2041
2042           ac_config_commands="$ac_config_commands projects/Makefile"
2043
2044
2045           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2046
2047
2048           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2049
2050
2051           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2052
2053
2054           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2055
2056
2057
2058
2059 # Find a good install program.  We prefer a C program (faster),
2060 # so one script is as good as another.  But avoid the broken or
2061 # incompatible versions:
2062 # SysV /etc/install, /usr/sbin/install
2063 # SunOS /usr/etc/install
2064 # IRIX /sbin/install
2065 # AIX /bin/install
2066 # AmigaOS /C/install, which installs bootblocks on floppy discs
2067 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2068 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2069 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2070 # ./install, which can be erroneously created by make from ./install.sh.
2071 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2072 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2073 if test -z "$INSTALL"; then
2074 if test "${ac_cv_path_install+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   # Account for people who put trailing slashes in PATH elements.
2083 case $as_dir/ in
2084   ./ | .// | /cC/* | \
2085   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2086   /usr/ucb/* ) ;;
2087   *)
2088     # OSF1 and SCO ODT 3.0 have their own names for install.
2089     # Don't use installbsd from OSF since it installs stuff as root
2090     # by default.
2091     for ac_prog in ginstall scoinst install; do
2092       for ac_exec_ext in '' $ac_executable_extensions; do
2093         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2094           if test $ac_prog = install &&
2095             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2096             # AIX install.  It has an incompatible calling convention.
2097             :
2098           elif test $ac_prog = install &&
2099             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2100             # program-specific install script used by HP pwplus--don't use.
2101             :
2102           else
2103             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2104             break 3
2105           fi
2106         fi
2107       done
2108     done
2109     ;;
2110 esac
2111 done
2112
2113
2114 fi
2115   if test "${ac_cv_path_install+set}" = set; then
2116     INSTALL=$ac_cv_path_install
2117   else
2118     # As a last resort, use the slow shell script.  We don't cache a
2119     # path for INSTALL within a source directory, because that will
2120     # break other packages using the cache if that directory is
2121     # removed, or if the path is relative.
2122     INSTALL=$ac_install_sh
2123   fi
2124 fi
2125 echo "$as_me:$LINENO: result: $INSTALL" >&5
2126 echo "${ECHO_T}$INSTALL" >&6
2127
2128 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2129 # It thinks the first close brace ends the variable substitution.
2130 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2131
2132 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2133
2134 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2135
2136
2137 # Make sure we can run config.sub.
2138 $ac_config_sub sun4 >/dev/null 2>&1 ||
2139   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2140 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2141    { (exit 1); exit 1; }; }
2142
2143 echo "$as_me:$LINENO: checking build system type" >&5
2144 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2145 if test "${ac_cv_build+set}" = set; then
2146   echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148   ac_cv_build_alias=$build_alias
2149 test -z "$ac_cv_build_alias" &&
2150   ac_cv_build_alias=`$ac_config_guess`
2151 test -z "$ac_cv_build_alias" &&
2152   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2153 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2154    { (exit 1); exit 1; }; }
2155 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2156   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2157 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2158    { (exit 1); exit 1; }; }
2159
2160 fi
2161 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2162 echo "${ECHO_T}$ac_cv_build" >&6
2163 build=$ac_cv_build
2164 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2165 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2166 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2167
2168
2169 echo "$as_me:$LINENO: checking host system type" >&5
2170 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2171 if test "${ac_cv_host+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   ac_cv_host_alias=$host_alias
2175 test -z "$ac_cv_host_alias" &&
2176   ac_cv_host_alias=$ac_cv_build_alias
2177 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2178   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2179 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2180    { (exit 1); exit 1; }; }
2181
2182 fi
2183 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184 echo "${ECHO_T}$ac_cv_host" >&6
2185 host=$ac_cv_host
2186 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2187 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2188 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2189
2190
2191 echo "$as_me:$LINENO: checking target system type" >&5
2192 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2193 if test "${ac_cv_target+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   ac_cv_target_alias=$target_alias
2197 test "x$ac_cv_target_alias" = "x" &&
2198   ac_cv_target_alias=$ac_cv_host_alias
2199 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2200   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2201 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2202    { (exit 1); exit 1; }; }
2203
2204 fi
2205 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2206 echo "${ECHO_T}$ac_cv_target" >&6
2207 target=$ac_cv_target
2208 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2209 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2210 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2211
2212
2213 # The aliases save the names the user supplied, while $host etc.
2214 # will get canonicalized.
2215 test -n "$target_alias" &&
2216   test "$program_prefix$program_suffix$program_transform_name" = \
2217     NONENONEs,x,x, &&
2218   program_prefix=${target_alias}-
2219
2220 case $build in
2221         *i*86*)  OS=Linux
2222
2223                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2224
2225                  ;;
2226
2227         *sparc*) OS=SunOS
2228
2229                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2230
2231                  ;;
2232
2233         *)       OS=Unknown
2234
2235                  ;;
2236 esac
2237
2238 case $target in
2239         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2240
2241                           ;;
2242 esac
2243
2244 case $target in
2245         *i*86*)           ARCH=x86
2246
2247                           ;;
2248         *sparc*solaris*)  ARCH=Sparc
2249
2250                           ;;
2251 esac
2252
2253
2254 ac_ext=cc
2255 ac_cpp='$CXXCPP $CPPFLAGS'
2256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2259 if test -n "$ac_tool_prefix"; then
2260   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2261   do
2262     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_prog_CXX+set}" = set; then
2267   echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269   if test -n "$CXX"; then
2270   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2271 else
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275   IFS=$as_save_IFS
2276   test -z "$as_dir" && as_dir=.
2277   for ac_exec_ext in '' $ac_executable_extensions; do
2278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281     break 2
2282   fi
2283 done
2284 done
2285
2286 fi
2287 fi
2288 CXX=$ac_cv_prog_CXX
2289 if test -n "$CXX"; then
2290   echo "$as_me:$LINENO: result: $CXX" >&5
2291 echo "${ECHO_T}$CXX" >&6
2292 else
2293   echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6
2295 fi
2296
2297     test -n "$CXX" && break
2298   done
2299 fi
2300 if test -z "$CXX"; then
2301   ac_ct_CXX=$CXX
2302   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2303 do
2304   # Extract the first word of "$ac_prog", so it can be a program name with args.
2305 set dummy $ac_prog; ac_word=$2
2306 echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   if test -n "$ac_ct_CXX"; then
2312   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317   IFS=$as_save_IFS
2318   test -z "$as_dir" && as_dir=.
2319   for ac_exec_ext in '' $ac_executable_extensions; do
2320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2321     ac_cv_prog_ac_ct_CXX="$ac_prog"
2322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323     break 2
2324   fi
2325 done
2326 done
2327
2328 fi
2329 fi
2330 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2331 if test -n "$ac_ct_CXX"; then
2332   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2333 echo "${ECHO_T}$ac_ct_CXX" >&6
2334 else
2335   echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6
2337 fi
2338
2339   test -n "$ac_ct_CXX" && break
2340 done
2341 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2342
2343   CXX=$ac_ct_CXX
2344 fi
2345
2346
2347 # Provide some information about the compiler.
2348 echo "$as_me:$LINENO:" \
2349      "checking for C++ compiler version" >&5
2350 ac_compiler=`set X $ac_compile; echo $2`
2351 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2352   (eval $ac_compiler --version </dev/null >&5) 2>&5
2353   ac_status=$?
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); }
2356 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2357   (eval $ac_compiler -v </dev/null >&5) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }
2361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2362   (eval $ac_compiler -V </dev/null >&5) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }
2366
2367 cat >conftest.$ac_ext <<_ACEOF
2368 #line $LINENO "configure"
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374
2375 int
2376 main ()
2377 {
2378
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 ac_clean_files_save=$ac_clean_files
2384 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2385 # Try to create an executable without -o first, disregard a.out.
2386 # It will help us diagnose broken compilers, and finding out an intuition
2387 # of exeext.
2388 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2389 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2390 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2391 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2392   (eval $ac_link_default) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; then
2396   # Find the output, starting from the most likely.  This scheme is
2397 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2398 # resort.
2399
2400 # Be careful to initialize this variable, since it used to be cached.
2401 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2402 ac_cv_exeext=
2403 # b.out is created by i960 compilers.
2404 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2405 do
2406   test -f "$ac_file" || continue
2407   case $ac_file in
2408     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2409         ;;
2410     conftest.$ac_ext )
2411         # This is the source file.
2412         ;;
2413     [ab].out )
2414         # We found the default executable, but exeext='' is most
2415         # certainly right.
2416         break;;
2417     *.* )
2418         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2419         # FIXME: I believe we export ac_cv_exeext for Libtool,
2420         # but it would be cool to find out if it's true.  Does anybody
2421         # maintain Libtool? --akim.
2422         export ac_cv_exeext
2423         break;;
2424     * )
2425         break;;
2426   esac
2427 done
2428 else
2429   echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: C++ compiler cannot create executables
2435 See \`config.log' for more details." >&2;}
2436    { (exit 77); exit 77; }; }
2437 fi
2438
2439 ac_exeext=$ac_cv_exeext
2440 echo "$as_me:$LINENO: result: $ac_file" >&5
2441 echo "${ECHO_T}$ac_file" >&6
2442
2443 # Check the compiler produces executables we can run.  If not, either
2444 # the compiler is broken, or we cross compile.
2445 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2446 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2447 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2448 # If not cross compiling, check that we can run a simple program.
2449 if test "$cross_compiling" != yes; then
2450   if { ac_try='./$ac_file'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456     cross_compiling=no
2457   else
2458     if test "$cross_compiling" = maybe; then
2459         cross_compiling=yes
2460     else
2461         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2462 If you meant to cross compile, use \`--host'.
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: cannot run C++ compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&2;}
2467    { (exit 1); exit 1; }; }
2468     fi
2469   fi
2470 fi
2471 echo "$as_me:$LINENO: result: yes" >&5
2472 echo "${ECHO_T}yes" >&6
2473
2474 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2475 ac_clean_files=$ac_clean_files_save
2476 # Check the compiler produces executables we can run.  If not, either
2477 # the compiler is broken, or we cross compile.
2478 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2479 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2480 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2481 echo "${ECHO_T}$cross_compiling" >&6
2482
2483 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2484 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2486   (eval $ac_link) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; then
2490   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2491 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2492 # work properly (i.e., refer to `conftest.exe'), while it won't with
2493 # `rm'.
2494 for ac_file in conftest.exe conftest conftest.*; do
2495   test -f "$ac_file" || continue
2496   case $ac_file in
2497     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2498     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2499           export ac_cv_exeext
2500           break;;
2501     * ) break;;
2502   esac
2503 done
2504 else
2505   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2508 See \`config.log' for more details." >&2;}
2509    { (exit 1); exit 1; }; }
2510 fi
2511
2512 rm -f conftest$ac_cv_exeext
2513 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2514 echo "${ECHO_T}$ac_cv_exeext" >&6
2515
2516 rm -f conftest.$ac_ext
2517 EXEEXT=$ac_cv_exeext
2518 ac_exeext=$EXEEXT
2519 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2520 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2521 if test "${ac_cv_objext+set}" = set; then
2522   echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524   cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 /* confdefs.h.  */
2527 _ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h.  */
2531
2532 int
2533 main ()
2534 {
2535
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.o conftest.obj
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542   (eval $ac_compile) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; then
2546   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2547   case $ac_file in
2548     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2549     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2550        break;;
2551   esac
2552 done
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2560 See \`config.log' for more details." >&2;}
2561    { (exit 1); exit 1; }; }
2562 fi
2563
2564 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2565 fi
2566 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2567 echo "${ECHO_T}$ac_cv_objext" >&6
2568 OBJEXT=$ac_cv_objext
2569 ac_objext=$OBJEXT
2570 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2571 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2572 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2573   echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575   cat >conftest.$ac_ext <<_ACEOF
2576 #line $LINENO "configure"
2577 /* confdefs.h.  */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h.  */
2582
2583 int
2584 main ()
2585 {
2586 #ifndef __GNUC__
2587        choke me
2588 #endif
2589
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596   (eval $ac_compile) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); } &&
2600          { ac_try='test -s conftest.$ac_objext'
2601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602   (eval $ac_try) 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; }; then
2606   ac_compiler_gnu=yes
2607 else
2608   echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 ac_compiler_gnu=no
2612 fi
2613 rm -f conftest.$ac_objext conftest.$ac_ext
2614 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2615
2616 fi
2617 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2618 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2619 GXX=`test $ac_compiler_gnu = yes && echo yes`
2620 ac_test_CXXFLAGS=${CXXFLAGS+set}
2621 ac_save_CXXFLAGS=$CXXFLAGS
2622 CXXFLAGS="-g"
2623 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2624 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2625 if test "${ac_cv_prog_cxx_g+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   cat >conftest.$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635
2636 int
2637 main ()
2638 {
2639
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646   (eval $ac_compile) 2>&5
2647   ac_status=$?
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); } &&
2650          { ac_try='test -s conftest.$ac_objext'
2651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652   (eval $ac_try) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; }; then
2656   ac_cv_prog_cxx_g=yes
2657 else
2658   echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661 ac_cv_prog_cxx_g=no
2662 fi
2663 rm -f conftest.$ac_objext conftest.$ac_ext
2664 fi
2665 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2666 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2667 if test "$ac_test_CXXFLAGS" = set; then
2668   CXXFLAGS=$ac_save_CXXFLAGS
2669 elif test $ac_cv_prog_cxx_g = yes; then
2670   if test "$GXX" = yes; then
2671     CXXFLAGS="-g -O2"
2672   else
2673     CXXFLAGS="-g"
2674   fi
2675 else
2676   if test "$GXX" = yes; then
2677     CXXFLAGS="-O2"
2678   else
2679     CXXFLAGS=
2680   fi
2681 fi
2682 for ac_declaration in \
2683    ''\
2684    '#include <stdlib.h>' \
2685    'extern "C" void std::exit (int) throw (); using std::exit;' \
2686    'extern "C" void std::exit (int); using std::exit;' \
2687    'extern "C" void exit (int) throw ();' \
2688    'extern "C" void exit (int);' \
2689    'void exit (int);'
2690 do
2691   cat >conftest.$ac_ext <<_ACEOF
2692 #line $LINENO "configure"
2693 /* confdefs.h.  */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h.  */
2698 #include <stdlib.h>
2699 $ac_declaration
2700 int
2701 main ()
2702 {
2703 exit (42);
2704   ;
2705   return 0;
2706 }
2707 _ACEOF
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710   (eval $ac_compile) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          { ac_try='test -s conftest.$ac_objext'
2715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716   (eval $ac_try) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; }; then
2720   :
2721 else
2722   echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 continue
2726 fi
2727 rm -f conftest.$ac_objext conftest.$ac_ext
2728   cat >conftest.$ac_ext <<_ACEOF
2729 #line $LINENO "configure"
2730 /* confdefs.h.  */
2731 _ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h.  */
2735 $ac_declaration
2736 int
2737 main ()
2738 {
2739 exit (42);
2740   ;
2741   return 0;
2742 }
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746   (eval $ac_compile) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); } &&
2750          { ac_try='test -s conftest.$ac_objext'
2751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752   (eval $ac_try) 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); }; }; then
2756   break
2757 else
2758   echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 fi
2762 rm -f conftest.$ac_objext conftest.$ac_ext
2763 done
2764 rm -f conftest*
2765 if test -n "$ac_declaration"; then
2766   echo '#ifdef __cplusplus' >>confdefs.h
2767   echo $ac_declaration      >>confdefs.h
2768   echo '#endif'             >>confdefs.h
2769 fi
2770
2771 ac_ext=c
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776
2777 ac_ext=c
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782 if test -n "$ac_tool_prefix"; then
2783   for ac_prog in gcc
2784   do
2785     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_CC+set}" = set; then
2790   echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792   if test -n "$CC"; then
2793   ac_cv_prog_CC="$CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800   for ac_exec_ext in '' $ac_executable_extensions; do
2801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807 done
2808
2809 fi
2810 fi
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813   echo "$as_me:$LINENO: result: $CC" >&5
2814 echo "${ECHO_T}$CC" >&6
2815 else
2816   echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2818 fi
2819
2820     test -n "$CC" && break
2821   done
2822 fi
2823 if test -z "$CC"; then
2824   ac_ct_CC=$CC
2825   for ac_prog in gcc
2826 do
2827   # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   if test -n "$ac_ct_CC"; then
2835   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842   for ac_exec_ext in '' $ac_executable_extensions; do
2843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844     ac_cv_prog_ac_ct_CC="$ac_prog"
2845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849 done
2850
2851 fi
2852 fi
2853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2854 if test -n "$ac_ct_CC"; then
2855   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2856 echo "${ECHO_T}$ac_ct_CC" >&6
2857 else
2858   echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2860 fi
2861
2862   test -n "$ac_ct_CC" && break
2863 done
2864
2865   CC=$ac_ct_CC
2866 fi
2867
2868
2869 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: no acceptable C compiler found in \$PATH
2872 See \`config.log' for more details." >&2;}
2873    { (exit 1); exit 1; }; }
2874
2875 # Provide some information about the compiler.
2876 echo "$as_me:$LINENO:" \
2877      "checking for C compiler version" >&5
2878 ac_compiler=`set X $ac_compile; echo $2`
2879 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2880   (eval $ac_compiler --version </dev/null >&5) 2>&5
2881   ac_status=$?
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); }
2884 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2885   (eval $ac_compiler -v </dev/null >&5) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }
2889 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2890   (eval $ac_compiler -V </dev/null >&5) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }
2894
2895 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2896 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2897 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2898   echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900   cat >conftest.$ac_ext <<_ACEOF
2901 #line $LINENO "configure"
2902 /* confdefs.h.  */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h.  */
2907
2908 int
2909 main ()
2910 {
2911 #ifndef __GNUC__
2912        choke me
2913 #endif
2914
2915   ;
2916   return 0;
2917 }
2918 _ACEOF
2919 rm -f conftest.$ac_objext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921   (eval $ac_compile) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } &&
2925          { ac_try='test -s conftest.$ac_objext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   ac_compiler_gnu=yes
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 ac_compiler_gnu=no
2937 fi
2938 rm -f conftest.$ac_objext conftest.$ac_ext
2939 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2940
2941 fi
2942 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2943 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2944 GCC=`test $ac_compiler_gnu = yes && echo yes`
2945 ac_test_CFLAGS=${CFLAGS+set}
2946 ac_save_CFLAGS=$CFLAGS
2947 CFLAGS="-g"
2948 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2949 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2950 if test "${ac_cv_prog_cc_g+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   cat >conftest.$ac_ext <<_ACEOF
2954 #line $LINENO "configure"
2955 /* confdefs.h.  */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h.  */
2960
2961 int
2962 main ()
2963 {
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2971   (eval $ac_compile) 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); } &&
2975          { ac_try='test -s conftest.$ac_objext'
2976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977   (eval $ac_try) 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; }; then
2981   ac_cv_prog_cc_g=yes
2982 else
2983   echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 ac_cv_prog_cc_g=no
2987 fi
2988 rm -f conftest.$ac_objext conftest.$ac_ext
2989 fi
2990 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2991 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2992 if test "$ac_test_CFLAGS" = set; then
2993   CFLAGS=$ac_save_CFLAGS
2994 elif test $ac_cv_prog_cc_g = yes; then
2995   if test "$GCC" = yes; then
2996     CFLAGS="-g -O2"
2997   else
2998     CFLAGS="-g"
2999   fi
3000 else
3001   if test "$GCC" = yes; then
3002     CFLAGS="-O2"
3003   else
3004     CFLAGS=
3005   fi
3006 fi
3007 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3008 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3009 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   ac_cv_prog_cc_stdc=no
3013 ac_save_CC=$CC
3014 cat >conftest.$ac_ext <<_ACEOF
3015 #line $LINENO "configure"
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021 #include <stdarg.h>
3022 #include <stdio.h>
3023 #include <sys/types.h>
3024 #include <sys/stat.h>
3025 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3026 struct buf { int x; };
3027 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3028 static char *e (p, i)
3029      char **p;
3030      int i;
3031 {
3032   return p[i];
3033 }
3034 static char *f (char * (*g) (char **, int), char **p, ...)
3035 {
3036   char *s;
3037   va_list v;
3038   va_start (v,p);
3039   s = g (p, va_arg (v,int));
3040   va_end (v);
3041   return s;
3042 }
3043 int test (int i, double x);
3044 struct s1 {int (*f) (int a);};
3045 struct s2 {int (*f) (double a);};
3046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3047 int argc;
3048 char **argv;
3049 int
3050 main ()
3051 {
3052 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3053   ;
3054   return 0;
3055 }
3056 _ACEOF
3057 # Don't try gcc -ansi; that turns off useful extensions and
3058 # breaks some systems' header files.
3059 # AIX                   -qlanglvl=ansi
3060 # Ultrix and OSF/1      -std1
3061 # HP-UX 10.20 and later -Ae
3062 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3063 # SVR4                  -Xc -D__EXTENSIONS__
3064 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3065 do
3066   CC="$ac_save_CC $ac_arg"
3067   rm -f conftest.$ac_objext
3068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069   (eval $ac_compile) 2>&5
3070   ac_status=$?
3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072   (exit $ac_status); } &&
3073          { ac_try='test -s conftest.$ac_objext'
3074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075   (eval $ac_try) 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }; }; then
3079   ac_cv_prog_cc_stdc=$ac_arg
3080 break
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 fi
3086 rm -f conftest.$ac_objext
3087 done
3088 rm -f conftest.$ac_ext conftest.$ac_objext
3089 CC=$ac_save_CC
3090
3091 fi
3092
3093 case "x$ac_cv_prog_cc_stdc" in
3094   x|xno)
3095     echo "$as_me:$LINENO: result: none needed" >&5
3096 echo "${ECHO_T}none needed" >&6 ;;
3097   *)
3098     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3099 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3100     CC="$CC $ac_cv_prog_cc_stdc" ;;
3101 esac
3102
3103 # Some people use a C++ compiler to compile C.  Since we use `exit',
3104 # in C++ we need to declare it.  In case someone uses the same compiler
3105 # for both compiling C and C++ we need to have the C++ compiler decide
3106 # the declaration of exit, since it's the most demanding environment.
3107 cat >conftest.$ac_ext <<_ACEOF
3108 #ifndef __cplusplus
3109   choke me
3110 #endif
3111 _ACEOF
3112 rm -f conftest.$ac_objext
3113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3114   (eval $ac_compile) 2>&5
3115   ac_status=$?
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); } &&
3118          { ac_try='test -s conftest.$ac_objext'
3119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120   (eval $ac_try) 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; }; then
3124   for ac_declaration in \
3125    ''\
3126    '#include <stdlib.h>' \
3127    'extern "C" void std::exit (int) throw (); using std::exit;' \
3128    'extern "C" void std::exit (int); using std::exit;' \
3129    'extern "C" void exit (int) throw ();' \
3130    'extern "C" void exit (int);' \
3131    'void exit (int);'
3132 do
3133   cat >conftest.$ac_ext <<_ACEOF
3134 #line $LINENO "configure"
3135 /* confdefs.h.  */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h.  */
3140 #include <stdlib.h>
3141 $ac_declaration
3142 int
3143 main ()
3144 {
3145 exit (42);
3146   ;
3147   return 0;
3148 }
3149 _ACEOF
3150 rm -f conftest.$ac_objext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152   (eval $ac_compile) 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); } &&
3156          { ac_try='test -s conftest.$ac_objext'
3157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158   (eval $ac_try) 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; }; then
3162   :
3163 else
3164   echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 continue
3168 fi
3169 rm -f conftest.$ac_objext conftest.$ac_ext
3170   cat >conftest.$ac_ext <<_ACEOF
3171 #line $LINENO "configure"
3172 /* confdefs.h.  */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h.  */
3177 $ac_declaration
3178 int
3179 main ()
3180 {
3181 exit (42);
3182   ;
3183   return 0;
3184 }
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188   (eval $ac_compile) 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); } &&
3192          { ac_try='test -s conftest.$ac_objext'
3193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194   (eval $ac_try) 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; }; then
3198   break
3199 else
3200   echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 fi
3204 rm -f conftest.$ac_objext conftest.$ac_ext
3205 done
3206 rm -f conftest*
3207 if test -n "$ac_declaration"; then
3208   echo '#ifdef __cplusplus' >>confdefs.h
3209   echo $ac_declaration      >>confdefs.h
3210   echo '#endif'             >>confdefs.h
3211 fi
3212
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 fi
3218 rm -f conftest.$ac_objext conftest.$ac_ext
3219 ac_ext=c
3220 ac_cpp='$CPP $CPPFLAGS'
3221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3231 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3232 # On Suns, sometimes $CPP names a directory.
3233 if test -n "$CPP" && test -d "$CPP"; then
3234   CPP=
3235 fi
3236 if test -z "$CPP"; then
3237   if test "${ac_cv_prog_CPP+set}" = set; then
3238   echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240       # Double quotes because CPP needs to be expanded
3241     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3242     do
3243       ac_preproc_ok=false
3244 for ac_c_preproc_warn_flag in '' yes
3245 do
3246   # Use a header file that comes with gcc, so configuring glibc
3247   # with a fresh cross-compiler works.
3248   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3249   # <limits.h> exists even on freestanding compilers.
3250   # On the NeXT, cc -E runs the code through the compiler's parser,
3251   # not just through cpp. "Syntax error" is here to catch this case.
3252   cat >conftest.$ac_ext <<_ACEOF
3253 #line $LINENO "configure"
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259 #ifdef __STDC__
3260 # include <limits.h>
3261 #else
3262 # include <assert.h>
3263 #endif
3264                      Syntax error
3265 _ACEOF
3266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3267   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3268   ac_status=$?
3269   grep -v '^ *+' conftest.er1 >conftest.err
3270   rm -f conftest.er1
3271   cat conftest.err >&5
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); } >/dev/null; then
3274   if test -s conftest.err; then
3275     ac_cpp_err=$ac_c_preproc_warn_flag
3276   else
3277     ac_cpp_err=
3278   fi
3279 else
3280   ac_cpp_err=yes
3281 fi
3282 if test -z "$ac_cpp_err"; then
3283   :
3284 else
3285   echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288   # Broken: fails on valid input.
3289 continue
3290 fi
3291 rm -f conftest.err conftest.$ac_ext
3292
3293   # OK, works on sane cases.  Now check whether non-existent headers
3294   # can be detected and how.
3295   cat >conftest.$ac_ext <<_ACEOF
3296 #line $LINENO "configure"
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302 #include <ac_nonexistent.h>
3303 _ACEOF
3304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3306   ac_status=$?
3307   grep -v '^ *+' conftest.er1 >conftest.err
3308   rm -f conftest.er1
3309   cat conftest.err >&5
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); } >/dev/null; then
3312   if test -s conftest.err; then
3313     ac_cpp_err=$ac_c_preproc_warn_flag
3314   else
3315     ac_cpp_err=
3316   fi
3317 else
3318   ac_cpp_err=yes
3319 fi
3320 if test -z "$ac_cpp_err"; then
3321   # Broken: success on invalid input.
3322 continue
3323 else
3324   echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327   # Passes both tests.
3328 ac_preproc_ok=:
3329 break
3330 fi
3331 rm -f conftest.err conftest.$ac_ext
3332
3333 done
3334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3335 rm -f conftest.err conftest.$ac_ext
3336 if $ac_preproc_ok; then
3337   break
3338 fi
3339
3340     done
3341     ac_cv_prog_CPP=$CPP
3342
3343 fi
3344   CPP=$ac_cv_prog_CPP
3345 else
3346   ac_cv_prog_CPP=$CPP
3347 fi
3348 echo "$as_me:$LINENO: result: $CPP" >&5
3349 echo "${ECHO_T}$CPP" >&6
3350 ac_preproc_ok=false
3351 for ac_c_preproc_warn_flag in '' yes
3352 do
3353   # Use a header file that comes with gcc, so configuring glibc
3354   # with a fresh cross-compiler works.
3355   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3356   # <limits.h> exists even on freestanding compilers.
3357   # On the NeXT, cc -E runs the code through the compiler's parser,
3358   # not just through cpp. "Syntax error" is here to catch this case.
3359   cat >conftest.$ac_ext <<_ACEOF
3360 #line $LINENO "configure"
3361 /* confdefs.h.  */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h.  */
3366 #ifdef __STDC__
3367 # include <limits.h>
3368 #else
3369 # include <assert.h>
3370 #endif
3371                      Syntax error
3372 _ACEOF
3373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3374   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3375   ac_status=$?
3376   grep -v '^ *+' conftest.er1 >conftest.err
3377   rm -f conftest.er1
3378   cat conftest.err >&5
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); } >/dev/null; then
3381   if test -s conftest.err; then
3382     ac_cpp_err=$ac_c_preproc_warn_flag
3383   else
3384     ac_cpp_err=
3385   fi
3386 else
3387   ac_cpp_err=yes
3388 fi
3389 if test -z "$ac_cpp_err"; then
3390   :
3391 else
3392   echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395   # Broken: fails on valid input.
3396 continue
3397 fi
3398 rm -f conftest.err conftest.$ac_ext
3399
3400   # OK, works on sane cases.  Now check whether non-existent headers
3401   # can be detected and how.
3402   cat >conftest.$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409 #include <ac_nonexistent.h>
3410 _ACEOF
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } >/dev/null; then
3419   if test -s conftest.err; then
3420     ac_cpp_err=$ac_c_preproc_warn_flag
3421   else
3422     ac_cpp_err=
3423   fi
3424 else
3425   ac_cpp_err=yes
3426 fi
3427 if test -z "$ac_cpp_err"; then
3428   # Broken: success on invalid input.
3429 continue
3430 else
3431   echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434   # Passes both tests.
3435 ac_preproc_ok=:
3436 break
3437 fi
3438 rm -f conftest.err conftest.$ac_ext
3439
3440 done
3441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3442 rm -f conftest.err conftest.$ac_ext
3443 if $ac_preproc_ok; then
3444   :
3445 else
3446   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details." >&5
3448 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3449 See \`config.log' for more details." >&2;}
3450    { (exit 1); exit 1; }; }
3451 fi
3452
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458
3459
3460 if test "$GCC" != "yes"
3461 then
3462         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3463 echo "$as_me: error: gcc required but not found" >&2;}
3464    { (exit 1); exit 1; }; }
3465 fi
3466
3467 if test "$GXX" != "yes"
3468 then
3469         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3470 echo "$as_me: error: g++ required but not found" >&2;}
3471    { (exit 1); exit 1; }; }
3472 fi
3473
3474 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3475 if test "$gccmajor" -lt "3"
3476 then
3477         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3478 echo "$as_me: error: gcc 3.x required" >&2;}
3479    { (exit 1); exit 1; }; }
3480 fi
3481
3482  echo "$as_me:$LINENO: checking for GNU make" >&5
3483 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3484 if test "${_cv_gnu_make_command+set}" = set; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487   _cv_gnu_make_command='' ;
3488                 for a in "$MAKE" make gmake gnumake ; do
3489                         if test -z "$a" ; then continue ; fi ;
3490                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3491                                 _cv_gnu_make_command=$a ;
3492                                 break;
3493                         fi
3494                 done ;
3495
3496 fi
3497 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3498 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3499         if test  "x$_cv_gnu_make_command" != "x"  ; then
3500                 ifGNUmake='' ;
3501         else
3502                 ifGNUmake='#' ;
3503                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3504 echo "${ECHO_T}\"Not found\"" >&6;
3505         fi
3506
3507
3508 if test -z "$_cv_gnu_make_command"
3509 then
3510         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3511 echo "$as_me: error: GNU Make required but not found" >&2;}
3512    { (exit 1); exit 1; }; }
3513 fi
3514
3515
3516 echo "$as_me:$LINENO: checking " >&5
3517 echo $ECHO_N "checking ... $ECHO_C" >&6
3518 if test "${ac_cv_has_flex+set}" = set; then
3519   echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521   for ac_prog in flex lex
3522 do
3523   # Extract the first word of "$ac_prog", so it can be a program name with args.
3524 set dummy $ac_prog; ac_word=$2
3525 echo "$as_me:$LINENO: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 if test "${ac_cv_prog_LEX+set}" = set; then
3528   echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530   if test -n "$LEX"; then
3531   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538   for ac_exec_ext in '' $ac_executable_extensions; do
3539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540     ac_cv_prog_LEX="$ac_prog"
3541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545 done
3546
3547 fi
3548 fi
3549 LEX=$ac_cv_prog_LEX
3550 if test -n "$LEX"; then
3551   echo "$as_me:$LINENO: result: $LEX" >&5
3552 echo "${ECHO_T}$LEX" >&6
3553 else
3554   echo "$as_me:$LINENO: result: no" >&5
3555 echo "${ECHO_T}no" >&6
3556 fi
3557
3558   test -n "$LEX" && break
3559 done
3560 test -n "$LEX" || LEX=":"
3561
3562 if test -z "$LEXLIB"
3563 then
3564   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3565 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3566 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3567   echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569   ac_check_lib_save_LIBS=$LIBS
3570 LIBS="-lfl  $LIBS"
3571 cat >conftest.$ac_ext <<_ACEOF
3572 #line $LINENO "configure"
3573 /* confdefs.h.  */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h.  */
3578
3579 /* Override any gcc2 internal prototype to avoid an error.  */
3580 #ifdef __cplusplus
3581 extern "C"
3582 #endif
3583 /* We use char because int might match the return type of a gcc2
3584    builtin and then its argument prototype would still apply.  */
3585 char yywrap ();
3586 int
3587 main ()
3588 {
3589 yywrap ();
3590   ;
3591   return 0;
3592 }
3593 _ACEOF
3594 rm -f conftest.$ac_objext conftest$ac_exeext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596   (eval $ac_link) 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } &&
3600          { ac_try='test -s conftest$ac_exeext'
3601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602   (eval $ac_try) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }; }; then
3606   ac_cv_lib_fl_yywrap=yes
3607 else
3608   echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 ac_cv_lib_fl_yywrap=no
3612 fi
3613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3614 LIBS=$ac_check_lib_save_LIBS
3615 fi
3616 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3617 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3618 if test $ac_cv_lib_fl_yywrap = yes; then
3619   LEXLIB="-lfl"
3620 else
3621   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3622 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3623 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   ac_check_lib_save_LIBS=$LIBS
3627 LIBS="-ll  $LIBS"
3628 cat >conftest.$ac_ext <<_ACEOF
3629 #line $LINENO "configure"
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635
3636 /* Override any gcc2 internal prototype to avoid an error.  */
3637 #ifdef __cplusplus
3638 extern "C"
3639 #endif
3640 /* We use char because int might match the return type of a gcc2
3641    builtin and then its argument prototype would still apply.  */
3642 char yywrap ();
3643 int
3644 main ()
3645 {
3646 yywrap ();
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 rm -f conftest.$ac_objext conftest$ac_exeext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653   (eval $ac_link) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); } &&
3657          { ac_try='test -s conftest$ac_exeext'
3658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659   (eval $ac_try) 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); }; }; then
3663   ac_cv_lib_l_yywrap=yes
3664 else
3665   echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668 ac_cv_lib_l_yywrap=no
3669 fi
3670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3671 LIBS=$ac_check_lib_save_LIBS
3672 fi
3673 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3674 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3675 if test $ac_cv_lib_l_yywrap = yes; then
3676   LEXLIB="-ll"
3677 fi
3678
3679 fi
3680
3681 fi
3682
3683 if test "x$LEX" != "x:"; then
3684   echo "$as_me:$LINENO: checking lex output file root" >&5
3685 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3686 if test "${ac_cv_prog_lex_root+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   # The minimal lex program is just a single line: %%.  But some broken lexes
3690 # (Solaris, I think it was) want two %% lines, so accommodate them.
3691 cat >conftest.l <<_ACEOF
3692 %%
3693 %%
3694 _ACEOF
3695 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3696   (eval $LEX conftest.l) 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }
3700 if test -f lex.yy.c; then
3701   ac_cv_prog_lex_root=lex.yy
3702 elif test -f lexyy.c; then
3703   ac_cv_prog_lex_root=lexyy
3704 else
3705   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3706 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3707    { (exit 1); exit 1; }; }
3708 fi
3709 fi
3710 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3711 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3712 rm -f conftest.l
3713 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3714
3715 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3716 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3717 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   # POSIX says lex can declare yytext either as a pointer or an array; the
3721 # default is implementation-dependent. Figure out which it is, since
3722 # not all implementations provide the %pointer and %array declarations.
3723 ac_cv_prog_lex_yytext_pointer=no
3724 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3725 ac_save_LIBS=$LIBS
3726 LIBS="$LIBS $LEXLIB"
3727 cat >conftest.$ac_ext <<_ACEOF
3728 `cat $LEX_OUTPUT_ROOT.c`
3729 _ACEOF
3730 rm -f conftest.$ac_objext conftest$ac_exeext
3731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3732   (eval $ac_link) 2>&5
3733   ac_status=$?
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); } &&
3736          { ac_try='test -s conftest$ac_exeext'
3737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738   (eval $ac_try) 2>&5
3739   ac_status=$?
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); }; }; then
3742   ac_cv_prog_lex_yytext_pointer=yes
3743 else
3744   echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3746
3747 fi
3748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3749 LIBS=$ac_save_LIBS
3750 rm -f "${LEX_OUTPUT_ROOT}.c"
3751
3752 fi
3753 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3754 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3755 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3756
3757 cat >>confdefs.h <<\_ACEOF
3758 #define YYTEXT_POINTER 1
3759 _ACEOF
3760
3761 fi
3762
3763 fi
3764
3765 fi
3766 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3767 echo "${ECHO_T}$ac_cv_has_flex" >&6
3768 if test "$LEX" != "flex"; then
3769   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3770 echo "$as_me: error: flex not found but required" >&2;}
3771    { (exit 1); exit 1; }; }
3772 fi
3773
3774 echo "$as_me:$LINENO: checking " >&5
3775 echo $ECHO_N "checking ... $ECHO_C" >&6
3776 if test "${ac_cv_has_bison+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   for ac_prog in 'bison -y' byacc
3780 do
3781   # Extract the first word of "$ac_prog", so it can be a program name with args.
3782 set dummy $ac_prog; ac_word=$2
3783 echo "$as_me:$LINENO: checking for $ac_word" >&5
3784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3785 if test "${ac_cv_prog_YACC+set}" = set; then
3786   echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788   if test -n "$YACC"; then
3789   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3790 else
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3793 do
3794   IFS=$as_save_IFS
3795   test -z "$as_dir" && as_dir=.
3796   for ac_exec_ext in '' $ac_executable_extensions; do
3797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798     ac_cv_prog_YACC="$ac_prog"
3799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3800     break 2
3801   fi
3802 done
3803 done
3804
3805 fi
3806 fi
3807 YACC=$ac_cv_prog_YACC
3808 if test -n "$YACC"; then
3809   echo "$as_me:$LINENO: result: $YACC" >&5
3810 echo "${ECHO_T}$YACC" >&6
3811 else
3812   echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3814 fi
3815
3816   test -n "$YACC" && break
3817 done
3818 test -n "$YACC" || YACC="yacc"
3819
3820
3821 fi
3822 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3823 echo "${ECHO_T}$ac_cv_has_bison" >&6
3824 if test "$YACC" != "bison -y"; then
3825   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3826 echo "$as_me: error: bison not found but required" >&2;}
3827    { (exit 1); exit 1; }; }
3828 else
3829   YACC=bison
3830
3831 fi
3832
3833
3834 # Check whether --enable-shared or --disable-shared was given.
3835 if test "${enable_shared+set}" = set; then
3836   enableval="$enable_shared"
3837   p=${PACKAGE-default}
3838     case $enableval in
3839     yes) enable_shared=yes ;;
3840     no) enable_shared=no ;;
3841     *)
3842       enable_shared=no
3843       # Look at the argument we got.  We use all the common list separators.
3844       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3845       for pkg in $enableval; do
3846         IFS="$lt_save_ifs"
3847         if test "X$pkg" = "X$p"; then
3848           enable_shared=yes
3849         fi
3850       done
3851       IFS="$lt_save_ifs"
3852       ;;
3853     esac
3854 else
3855   enable_shared=yes
3856 fi;
3857
3858 # Check whether --enable-static or --disable-static was given.
3859 if test "${enable_static+set}" = set; then
3860   enableval="$enable_static"
3861   p=${PACKAGE-default}
3862     case $enableval in
3863     yes) enable_static=yes ;;
3864     no) enable_static=no ;;
3865     *)
3866      enable_static=no
3867       # Look at the argument we got.  We use all the common list separators.
3868       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3869       for pkg in $enableval; do
3870         IFS="$lt_save_ifs"
3871         if test "X$pkg" = "X$p"; then
3872           enable_static=yes
3873         fi
3874       done
3875       IFS="$lt_save_ifs"
3876       ;;
3877     esac
3878 else
3879   enable_static=yes
3880 fi;
3881
3882 # Check whether --enable-fast-install or --disable-fast-install was given.
3883 if test "${enable_fast_install+set}" = set; then
3884   enableval="$enable_fast_install"
3885   p=${PACKAGE-default}
3886     case $enableval in
3887     yes) enable_fast_install=yes ;;
3888     no) enable_fast_install=no ;;
3889     *)
3890       enable_fast_install=no
3891       # Look at the argument we got.  We use all the common list separators.
3892       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3893       for pkg in $enableval; do
3894         IFS="$lt_save_ifs"
3895         if test "X$pkg" = "X$p"; then
3896           enable_fast_install=yes
3897         fi
3898       done
3899       IFS="$lt_save_ifs"
3900       ;;
3901     esac
3902 else
3903   enable_fast_install=yes
3904 fi;
3905
3906 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3907 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3908 if test "${lt_cv_path_SED+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911   # Loop through the user's path and test for sed and gsed.
3912 # Then use that list of sed's as ones to test for truncation.
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3915 do
3916   IFS=$as_save_IFS
3917   test -z "$as_dir" && as_dir=.
3918   for lt_ac_prog in sed gsed; do
3919     for ac_exec_ext in '' $ac_executable_extensions; do
3920       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3921         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3922       fi
3923     done
3924   done
3925 done
3926 lt_ac_max=0
3927 lt_ac_count=0
3928 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3929 # along with /bin/sed that truncates output.
3930 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3931   test ! -f $lt_ac_sed && break
3932   cat /dev/null > conftest.in
3933   lt_ac_count=0
3934   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3935   # Check for GNU sed and select it if it is found.
3936   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3937     lt_cv_path_SED=$lt_ac_sed
3938     break
3939   fi
3940   while true; do
3941     cat conftest.in conftest.in >conftest.tmp
3942     mv conftest.tmp conftest.in
3943     cp conftest.in conftest.nl
3944     echo >>conftest.nl
3945     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3946     cmp -s conftest.out conftest.nl || break
3947     # 10000 chars as input seems more than enough
3948     test $lt_ac_count -gt 10 && break
3949     lt_ac_count=`expr $lt_ac_count + 1`
3950     if test $lt_ac_count -gt $lt_ac_max; then
3951       lt_ac_max=$lt_ac_count
3952       lt_cv_path_SED=$lt_ac_sed
3953     fi
3954   done
3955 done
3956 SED=$lt_cv_path_SED
3957
3958 fi
3959
3960 echo "$as_me:$LINENO: result: $SED" >&5
3961 echo "${ECHO_T}$SED" >&6
3962
3963 echo "$as_me:$LINENO: checking for egrep" >&5
3964 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3965 if test "${ac_cv_prog_egrep+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3969     then ac_cv_prog_egrep='grep -E'
3970     else ac_cv_prog_egrep='egrep'
3971     fi
3972 fi
3973 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3974 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3975  EGREP=$ac_cv_prog_egrep
3976
3977
3978
3979 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3980 if test "${with_gnu_ld+set}" = set; then
3981   withval="$with_gnu_ld"
3982   test "$withval" = no || with_gnu_ld=yes
3983 else
3984   with_gnu_ld=no
3985 fi;
3986 ac_prog=ld
3987 if test "$GCC" = yes; then
3988   # Check if gcc -print-prog-name=ld gives a path.
3989   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3990 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3991   case $host in
3992   *-*-mingw*)
3993     # gcc leaves a trailing carriage return which upsets mingw
3994     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3995   *)
3996     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3997   esac
3998   case $ac_prog in
3999     # Accept absolute paths.
4000     [\\/]* | ?:[\\/]*)
4001       re_direlt='/[^/][^/]*/\.\./'
4002       # Canonicalize the path of ld
4003       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4004       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4005         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4006       done
4007       test -z "$LD" && LD="$ac_prog"
4008       ;;
4009   "")
4010     # If it fails, then pretend we aren't using GCC.
4011     ac_prog=ld
4012     ;;
4013   *)
4014     # If it is relative, then search for the first ld in PATH.
4015     with_gnu_ld=unknown
4016     ;;
4017   esac
4018 elif test "$with_gnu_ld" = yes; then
4019   echo "$as_me:$LINENO: checking for GNU ld" >&5
4020 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4021 else
4022   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4023 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4024 fi
4025 if test "${lt_cv_path_LD+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   if test -z "$LD"; then
4029   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4030   for ac_dir in $PATH; do
4031     IFS="$lt_save_ifs"
4032     test -z "$ac_dir" && ac_dir=.
4033     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4034       lt_cv_path_LD="$ac_dir/$ac_prog"
4035       # Check to see if the program is GNU ld.  I'd rather use --version,
4036       # but apparently some GNU ld's only accept -v.
4037       # Break only if it was the GNU/non-GNU ld that we prefer.
4038       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4039       *GNU* | *'with BFD'*)
4040         test "$with_gnu_ld" != no && break
4041         ;;
4042       *)
4043         test "$with_gnu_ld" != yes && break
4044         ;;
4045       esac
4046     fi
4047   done
4048   IFS="$lt_save_ifs"
4049 else
4050   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4051 fi
4052 fi
4053
4054 LD="$lt_cv_path_LD"
4055 if test -n "$LD"; then
4056   echo "$as_me:$LINENO: result: $LD" >&5
4057 echo "${ECHO_T}$LD" >&6
4058 else
4059   echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4061 fi
4062 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4063 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4064    { (exit 1); exit 1; }; }
4065 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4066 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4067 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4071 case `"$LD" -v 2>&1 </dev/null` in
4072 *GNU* | *'with BFD'*)
4073   lt_cv_prog_gnu_ld=yes
4074   ;;
4075 *)
4076   lt_cv_prog_gnu_ld=no
4077   ;;
4078 esac
4079 fi
4080 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4081 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4082 with_gnu_ld=$lt_cv_prog_gnu_ld
4083
4084
4085 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4086 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4087 if test "${lt_cv_ld_reload_flag+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   lt_cv_ld_reload_flag='-r'
4091 fi
4092 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4093 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4094 reload_flag=$lt_cv_ld_reload_flag
4095 case $reload_flag in
4096 "" | " "*) ;;
4097 *) reload_flag=" $reload_flag" ;;
4098 esac
4099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4100
4101 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4102 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4103 if test "${lt_cv_path_NM+set}" = set; then
4104   echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106   if test -n "$NM"; then
4107   # Let the user override the test.
4108   lt_cv_path_NM="$NM"
4109 else
4110   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4111   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4112     IFS="$lt_save_ifs"
4113     test -z "$ac_dir" && ac_dir=.
4114     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4115     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4116       # Check to see if the nm accepts a BSD-compat flag.
4117       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4118       #   nm: unknown option "B" ignored
4119       # Tru64's nm complains that /dev/null is an invalid object file
4120       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4121       */dev/null* | *'Invalid file or object type'*)
4122         lt_cv_path_NM="$tmp_nm -B"
4123         break
4124         ;;
4125       *)
4126         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4127         */dev/null*)
4128           lt_cv_path_NM="$tmp_nm -p"
4129           break
4130           ;;
4131         *)
4132           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4133           continue # so that we can try to find one that supports BSD flags
4134           ;;
4135         esac
4136       esac
4137     fi
4138   done
4139   IFS="$lt_save_ifs"
4140   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4141 fi
4142 fi
4143 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4144 echo "${ECHO_T}$lt_cv_path_NM" >&6
4145 NM="$lt_cv_path_NM"
4146
4147 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4148 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4149 LN_S=$as_ln_s
4150 if test "$LN_S" = "ln -s"; then
4151   echo "$as_me:$LINENO: result: yes" >&5
4152 echo "${ECHO_T}yes" >&6
4153 else
4154   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4155 echo "${ECHO_T}no, using $LN_S" >&6
4156 fi
4157
4158 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4159 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4160 if test "${lt_cv_deplibs_check_method+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   lt_cv_file_magic_cmd='$MAGIC_CMD'
4164 lt_cv_file_magic_test_file=
4165 lt_cv_deplibs_check_method='unknown'
4166 # Need to set the preceding variable on all platforms that support
4167 # interlibrary dependencies.
4168 # 'none' -- dependencies not supported.
4169 # `unknown' -- same as none, but documents that we really don't know.
4170 # 'pass_all' -- all dependencies passed with no checks.
4171 # 'test_compile' -- check by making test program.
4172 # 'file_magic [[regex]]' -- check by looking for files in library path
4173 # which responds to the $file_magic_cmd with a given extended regex.
4174 # If you have `file' or equivalent on your system and you're not sure
4175 # whether `pass_all' will *always* work, you probably want this one.
4176
4177 case $host_os in
4178 aix4* | aix5*)
4179   lt_cv_deplibs_check_method=pass_all
4180   ;;
4181
4182 beos*)
4183   lt_cv_deplibs_check_method=pass_all
4184   ;;
4185
4186 bsdi4*)
4187   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4188   lt_cv_file_magic_cmd='/usr/bin/file -L'
4189   lt_cv_file_magic_test_file=/shlib/libc.so
4190   ;;
4191
4192 cygwin* | mingw* | pw32*)
4193   # win32_libid is a shell function defined in ltmain.sh
4194   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4195   lt_cv_file_magic_cmd='win32_libid'
4196   ;;
4197
4198 darwin* | rhapsody*)
4199   # this will be overwritten by pass_all, but leave it in just in case
4200   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4201   lt_cv_file_magic_cmd='/usr/bin/file -L'
4202   case "$host_os" in
4203   rhapsody* | darwin1.[012])
4204     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4205     ;;
4206   *) # Darwin 1.3 on
4207     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4208     ;;
4209   esac
4210   lt_cv_deplibs_check_method=pass_all
4211   ;;
4212
4213 freebsd*)
4214   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4215     case $host_cpu in
4216     i*86 )
4217       # Not sure whether the presence of OpenBSD here was a mistake.
4218       # Let's accept both of them until this is cleared up.
4219       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4220       lt_cv_file_magic_cmd=/usr/bin/file
4221       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4222       ;;
4223     esac
4224   else
4225     lt_cv_deplibs_check_method=pass_all
4226   fi
4227   ;;
4228
4229 gnu*)
4230   lt_cv_deplibs_check_method=pass_all
4231   ;;
4232
4233 hpux10.20* | hpux11*)
4234   lt_cv_file_magic_cmd=/usr/bin/file
4235   case "$host_cpu" in
4236   ia64*)
4237     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4238     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4239     ;;
4240   hppa*64*)
4241     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]'
4242     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4243     ;;
4244   *)
4245     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4246     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4247     ;;
4248   esac
4249   ;;
4250
4251 irix5* | irix6* | nonstopux*)
4252   case $host_os in
4253   irix5* | nonstopux*)
4254     # this will be overridden with pass_all, but let us keep it just in case
4255     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4256     ;;
4257   *)
4258     case $LD in
4259     *-32|*"-32 ") libmagic=32-bit;;
4260     *-n32|*"-n32 ") libmagic=N32;;
4261     *-64|*"-64 ") libmagic=64-bit;;
4262     *) libmagic=never-match;;
4263     esac
4264     # this will be overridden with pass_all, but let us keep it just in case
4265     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4266     ;;
4267   esac
4268   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4269   lt_cv_deplibs_check_method=pass_all
4270   ;;
4271
4272 # This must be Linux ELF.
4273 linux*)
4274   case $host_cpu in
4275   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4276     lt_cv_deplibs_check_method=pass_all ;;
4277   *)
4278     # glibc up to 2.1.1 does not perform some relocations on ARM
4279     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4280   esac
4281   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4282   ;;
4283
4284 netbsd*)
4285   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4286     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4287   else
4288     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4289   fi
4290   ;;
4291
4292 newos6*)
4293   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4294   lt_cv_file_magic_cmd=/usr/bin/file
4295   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4296   ;;
4297
4298 nto-qnx)
4299   lt_cv_deplibs_check_method=unknown
4300   ;;
4301
4302 openbsd*)
4303   lt_cv_file_magic_cmd=/usr/bin/file
4304   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4305   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4306     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4307   else
4308     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4309   fi
4310   ;;
4311
4312 osf3* | osf4* | osf5*)
4313   # this will be overridden with pass_all, but let us keep it just in case
4314   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4315   lt_cv_file_magic_test_file=/shlib/libc.so
4316   lt_cv_deplibs_check_method=pass_all
4317   ;;
4318
4319 sco3.2v5*)
4320   lt_cv_deplibs_check_method=pass_all
4321   ;;
4322
4323 solaris*)
4324   lt_cv_deplibs_check_method=pass_all
4325   lt_cv_file_magic_test_file=/lib/libc.so
4326   ;;
4327
4328 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4329   case $host_vendor in
4330   motorola)
4331     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]'
4332     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4333     ;;
4334   ncr)
4335     lt_cv_deplibs_check_method=pass_all
4336     ;;
4337   sequent)
4338     lt_cv_file_magic_cmd='/bin/file'
4339     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4340     ;;
4341   sni)
4342     lt_cv_file_magic_cmd='/bin/file'
4343     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4344     lt_cv_file_magic_test_file=/lib/libc.so
4345     ;;
4346   siemens)
4347     lt_cv_deplibs_check_method=pass_all
4348     ;;
4349   esac
4350   ;;
4351
4352 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4353   lt_cv_deplibs_check_method=pass_all
4354   ;;
4355 esac
4356
4357 fi
4358 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4359 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4360 file_magic_cmd=$lt_cv_file_magic_cmd
4361 deplibs_check_method=$lt_cv_deplibs_check_method
4362 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4363
4364
4365
4366
4367 # If no C compiler was specified, use CC.
4368 LTCC=${LTCC-"$CC"}
4369
4370 # Allow CC to be a program name with arguments.
4371 compiler=$CC
4372
4373 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4374 if test "${enable_libtool_lock+set}" = set; then
4375   enableval="$enable_libtool_lock"
4376
4377 fi;
4378 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4379
4380 # Some flags need to be propagated to the compiler or linker for good
4381 # libtool support.
4382 case $host in
4383 ia64-*-hpux*)
4384   # Find out which ABI we are using.
4385   echo 'int i;' > conftest.$ac_ext
4386   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387   (eval $ac_compile) 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; then
4391     case `/usr/bin/file conftest.$ac_objext` in
4392     *ELF-32*)
4393       HPUX_IA64_MODE="32"
4394       ;;
4395     *ELF-64*)
4396       HPUX_IA64_MODE="64"
4397       ;;
4398     esac
4399   fi
4400   rm -rf conftest*
4401   ;;
4402 *-*-irix6*)
4403   # Find out which ABI we are using.
4404   echo '#line 4404 "configure"' > conftest.$ac_ext
4405   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406   (eval $ac_compile) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; then
4410    if test "$lt_cv_prog_gnu_ld" = yes; then
4411     case `/usr/bin/file conftest.$ac_objext` in
4412     *32-bit*)
4413       LD="${LD-ld} -melf32bsmip"
4414       ;;
4415     *N32*)
4416       LD="${LD-ld} -melf32bmipn32"
4417       ;;
4418     *64-bit*)
4419       LD="${LD-ld} -melf64bmip"
4420       ;;
4421     esac
4422    else
4423     case `/usr/bin/file conftest.$ac_objext` in
4424     *32-bit*)
4425       LD="${LD-ld} -32"
4426       ;;
4427     *N32*)
4428       LD="${LD-ld} -n32"
4429       ;;
4430     *64-bit*)
4431       LD="${LD-ld} -64"
4432       ;;
4433     esac
4434    fi
4435   fi
4436   rm -rf conftest*
4437   ;;
4438
4439 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4440   # Find out which ABI we are using.
4441   echo 'int i;' > conftest.$ac_ext
4442   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443   (eval $ac_compile) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }; then
4447     case "`/usr/bin/file conftest.o`" in
4448     *32-bit*)
4449       case $host in
4450         x86_64-*linux*)
4451           LD="${LD-ld} -m elf_i386"
4452           ;;
4453         ppc64-*linux*)
4454           LD="${LD-ld} -m elf32ppclinux"
4455           ;;
4456         s390x-*linux*)
4457           LD="${LD-ld} -m elf_s390"
4458           ;;
4459         sparc64-*linux*)
4460           LD="${LD-ld} -m elf32_sparc"
4461           ;;
4462       esac
4463       ;;
4464     *64-bit*)
4465       case $host in
4466         x86_64-*linux*)
4467           LD="${LD-ld} -m elf_x86_64"
4468           ;;
4469         ppc*-*linux*|powerpc*-*linux*)
4470           LD="${LD-ld} -m elf64ppc"
4471           ;;
4472         s390*-*linux*)
4473           LD="${LD-ld} -m elf64_s390"
4474           ;;
4475         sparc*-*linux*)
4476           LD="${LD-ld} -m elf64_sparc"
4477           ;;
4478       esac
4479       ;;
4480     esac
4481   fi
4482   rm -rf conftest*
4483   ;;
4484
4485 *-*-sco3.2v5*)
4486   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4487   SAVE_CFLAGS="$CFLAGS"
4488   CFLAGS="$CFLAGS -belf"
4489   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4490 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4491 if test "${lt_cv_cc_needs_belf+set}" = set; then
4492   echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494   ac_ext=c
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
4500      cat >conftest.$ac_ext <<_ACEOF
4501 #line $LINENO "configure"
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507
4508 int
4509 main ()
4510 {
4511
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4518   (eval $ac_link) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); } &&
4522          { ac_try='test -s conftest$ac_exeext'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; }; then
4528   lt_cv_cc_needs_belf=yes
4529 else
4530   echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 lt_cv_cc_needs_belf=no
4534 fi
4535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4536      ac_ext=c
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541
4542 fi
4543 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4544 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4545   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4546     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4547     CFLAGS="$SAVE_CFLAGS"
4548   fi
4549   ;;
4550
4551 esac
4552
4553 need_locks="$enable_libtool_lock"
4554
4555
4556
4557 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4558 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4559 if test "${ac_cv_header_stdc+set}" = set; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   cat >conftest.$ac_ext <<_ACEOF
4563 #line $LINENO "configure"
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569 #include <stdlib.h>
4570 #include <stdarg.h>
4571 #include <string.h>
4572 #include <float.h>
4573
4574 int
4575 main ()
4576 {
4577
4578   ;
4579   return 0;
4580 }
4581 _ACEOF
4582 rm -f conftest.$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584   (eval $ac_compile) 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } &&
4588          { ac_try='test -s conftest.$ac_objext'
4589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590   (eval $ac_try) 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); }; }; then
4594   ac_cv_header_stdc=yes
4595 else
4596   echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 ac_cv_header_stdc=no
4600 fi
4601 rm -f conftest.$ac_objext conftest.$ac_ext
4602
4603 if test $ac_cv_header_stdc = yes; then
4604   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4605   cat >conftest.$ac_ext <<_ACEOF
4606 #line $LINENO "configure"
4607 /* confdefs.h.  */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h.  */
4612 #include <string.h>
4613
4614 _ACEOF
4615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616   $EGREP "memchr" >/dev/null 2>&1; then
4617   :
4618 else
4619   ac_cv_header_stdc=no
4620 fi
4621 rm -f conftest*
4622
4623 fi
4624
4625 if test $ac_cv_header_stdc = yes; then
4626   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4627   cat >conftest.$ac_ext <<_ACEOF
4628 #line $LINENO "configure"
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634 #include <stdlib.h>
4635
4636 _ACEOF
4637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4638   $EGREP "free" >/dev/null 2>&1; then
4639   :
4640 else
4641   ac_cv_header_stdc=no
4642 fi
4643 rm -f conftest*
4644
4645 fi
4646
4647 if test $ac_cv_header_stdc = yes; then
4648   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4649   if test "$cross_compiling" = yes; then
4650   :
4651 else
4652   cat >conftest.$ac_ext <<_ACEOF
4653 #line $LINENO "configure"
4654 /* confdefs.h.  */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h.  */
4659 #include <ctype.h>
4660 #if ((' ' & 0x0FF) == 0x020)
4661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4663 #else
4664 # define ISLOWER(c) \
4665                    (('a' <= (c) && (c) <= 'i') \
4666                      || ('j' <= (c) && (c) <= 'r') \
4667                      || ('s' <= (c) && (c) <= 'z'))
4668 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4669 #endif
4670
4671 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4672 int
4673 main ()
4674 {
4675   int i;
4676   for (i = 0; i < 256; i++)
4677     if (XOR (islower (i), ISLOWER (i))
4678         || toupper (i) != TOUPPER (i))
4679       exit(2);
4680   exit (0);
4681 }
4682 _ACEOF
4683 rm -f conftest$ac_exeext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685   (eval $ac_link) 2>&5
4686   ac_status=$?
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690   (eval $ac_try) 2>&5
4691   ac_status=$?
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); }; }; then
4694   :
4695 else
4696   echo "$as_me: program exited with status $ac_status" >&5
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4699
4700 ( exit $ac_status )
4701 ac_cv_header_stdc=no
4702 fi
4703 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4704 fi
4705 fi
4706 fi
4707 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4708 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4709 if test $ac_cv_header_stdc = yes; then
4710
4711 cat >>confdefs.h <<\_ACEOF
4712 #define STDC_HEADERS 1
4713 _ACEOF
4714
4715 fi
4716
4717 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4728                   inttypes.h stdint.h unistd.h
4729 do
4730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4731 echo "$as_me:$LINENO: checking for $ac_header" >&5
4732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   cat >conftest.$ac_ext <<_ACEOF
4737 #line $LINENO "configure"
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 $ac_includes_default
4744
4745 #include <$ac_header>
4746 _ACEOF
4747 rm -f conftest.$ac_objext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749   (eval $ac_compile) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } &&
4753          { ac_try='test -s conftest.$ac_objext'
4754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755   (eval $ac_try) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; }; then
4759   eval "$as_ac_Header=yes"
4760 else
4761   echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 eval "$as_ac_Header=no"
4765 fi
4766 rm -f conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4771   cat >>confdefs.h <<_ACEOF
4772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4773 _ACEOF
4774
4775 fi
4776
4777 done
4778
4779
4780
4781 for ac_header in dlfcn.h
4782 do
4783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785   echo "$as_me:$LINENO: checking for $ac_header" >&5
4786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788   echo $ECHO_N "(cached) $ECHO_C" >&6
4789 fi
4790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4792 else
4793   # Is the header compilable?
4794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4796 cat >conftest.$ac_ext <<_ACEOF
4797 #line $LINENO "configure"
4798 /* confdefs.h.  */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h.  */
4803 $ac_includes_default
4804 #include <$ac_header>
4805 _ACEOF
4806 rm -f conftest.$ac_objext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808   (eval $ac_compile) 2>&5
4809   ac_status=$?
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); } &&
4812          { ac_try='test -s conftest.$ac_objext'
4813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814   (eval $ac_try) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; }; then
4818   ac_header_compiler=yes
4819 else
4820   echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 ac_header_compiler=no
4824 fi
4825 rm -f conftest.$ac_objext conftest.$ac_ext
4826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4827 echo "${ECHO_T}$ac_header_compiler" >&6
4828
4829 # Is the header present?
4830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4832 cat >conftest.$ac_ext <<_ACEOF
4833 #line $LINENO "configure"
4834 /* confdefs.h.  */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h.  */
4839 #include <$ac_header>
4840 _ACEOF
4841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4843   ac_status=$?
4844   grep -v '^ *+' conftest.er1 >conftest.err
4845   rm -f conftest.er1
4846   cat conftest.err >&5
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); } >/dev/null; then
4849   if test -s conftest.err; then
4850     ac_cpp_err=$ac_c_preproc_warn_flag
4851   else
4852     ac_cpp_err=
4853   fi
4854 else
4855   ac_cpp_err=yes
4856 fi
4857 if test -z "$ac_cpp_err"; then
4858   ac_header_preproc=yes
4859 else
4860   echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4862
4863   ac_header_preproc=no
4864 fi
4865 rm -f conftest.err conftest.$ac_ext
4866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4867 echo "${ECHO_T}$ac_header_preproc" >&6
4868
4869 # So?  What about this header?
4870 case $ac_header_compiler:$ac_header_preproc in
4871   yes:no )
4872     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4876     (
4877       cat <<\_ASBOX
4878 ## ------------------------------------ ##
4879 ## Report this to bug-autoconf@gnu.org. ##
4880 ## ------------------------------------ ##
4881 _ASBOX
4882     ) |
4883       sed "s/^/$as_me: WARNING:     /" >&2
4884     ;;
4885   no:yes )
4886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4888     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4892     (
4893       cat <<\_ASBOX
4894 ## ------------------------------------ ##
4895 ## Report this to bug-autoconf@gnu.org. ##
4896 ## ------------------------------------ ##
4897 _ASBOX
4898     ) |
4899       sed "s/^/$as_me: WARNING:     /" >&2
4900     ;;
4901 esac
4902 echo "$as_me:$LINENO: checking for $ac_header" >&5
4903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   eval "$as_ac_Header=$ac_header_preproc"
4908 fi
4909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4911
4912 fi
4913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4914   cat >>confdefs.h <<_ACEOF
4915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4916 _ACEOF
4917
4918 fi
4919
4920 done
4921
4922 ac_ext=cc
4923 ac_cpp='$CXXCPP $CPPFLAGS'
4924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4927 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4928 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4929 if test -z "$CXXCPP"; then
4930   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4931   echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933       # Double quotes because CXXCPP needs to be expanded
4934     for CXXCPP in "$CXX -E" "/lib/cpp"
4935     do
4936       ac_preproc_ok=false
4937 for ac_cxx_preproc_warn_flag in '' yes
4938 do
4939   # Use a header file that comes with gcc, so configuring glibc
4940   # with a fresh cross-compiler works.
4941   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4942   # <limits.h> exists even on freestanding compilers.
4943   # On the NeXT, cc -E runs the code through the compiler's parser,
4944   # not just through cpp. "Syntax error" is here to catch this case.
4945   cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 /* confdefs.h.  */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h.  */
4952 #ifdef __STDC__
4953 # include <limits.h>
4954 #else
4955 # include <assert.h>
4956 #endif
4957                      Syntax error
4958 _ACEOF
4959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } >/dev/null; then
4967   if test -s conftest.err; then
4968     ac_cpp_err=$ac_cxx_preproc_warn_flag
4969   else
4970     ac_cpp_err=
4971   fi
4972 else
4973   ac_cpp_err=yes
4974 fi
4975 if test -z "$ac_cpp_err"; then
4976   :
4977 else
4978   echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4980
4981   # Broken: fails on valid input.
4982 continue
4983 fi
4984 rm -f conftest.err conftest.$ac_ext
4985
4986   # OK, works on sane cases.  Now check whether non-existent headers
4987   # can be detected and how.
4988   cat >conftest.$ac_ext <<_ACEOF
4989 #line $LINENO "configure"
4990 /* confdefs.h.  */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h.  */
4995 #include <ac_nonexistent.h>
4996 _ACEOF
4997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } >/dev/null; then
5005   if test -s conftest.err; then
5006     ac_cpp_err=$ac_cxx_preproc_warn_flag
5007   else
5008     ac_cpp_err=
5009   fi
5010 else
5011   ac_cpp_err=yes
5012 fi
5013 if test -z "$ac_cpp_err"; then
5014   # Broken: success on invalid input.
5015 continue
5016 else
5017   echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5019
5020   # Passes both tests.
5021 ac_preproc_ok=:
5022 break
5023 fi
5024 rm -f conftest.err conftest.$ac_ext
5025
5026 done
5027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5028 rm -f conftest.err conftest.$ac_ext
5029 if $ac_preproc_ok; then
5030   break
5031 fi
5032
5033     done
5034     ac_cv_prog_CXXCPP=$CXXCPP
5035
5036 fi
5037   CXXCPP=$ac_cv_prog_CXXCPP
5038 else
5039   ac_cv_prog_CXXCPP=$CXXCPP
5040 fi
5041 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5042 echo "${ECHO_T}$CXXCPP" >&6
5043 ac_preproc_ok=false
5044 for ac_cxx_preproc_warn_flag in '' yes
5045 do
5046   # Use a header file that comes with gcc, so configuring glibc
5047   # with a fresh cross-compiler works.
5048   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5049   # <limits.h> exists even on freestanding compilers.
5050   # On the NeXT, cc -E runs the code through the compiler's parser,
5051   # not just through cpp. "Syntax error" is here to catch this case.
5052   cat >conftest.$ac_ext <<_ACEOF
5053 #line $LINENO "configure"
5054 /* confdefs.h.  */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h.  */
5059 #ifdef __STDC__
5060 # include <limits.h>
5061 #else
5062 # include <assert.h>
5063 #endif
5064                      Syntax error
5065 _ACEOF
5066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5068   ac_status=$?
5069   grep -v '^ *+' conftest.er1 >conftest.err
5070   rm -f conftest.er1
5071   cat conftest.err >&5
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); } >/dev/null; then
5074   if test -s conftest.err; then
5075     ac_cpp_err=$ac_cxx_preproc_warn_flag
5076   else
5077     ac_cpp_err=
5078   fi
5079 else
5080   ac_cpp_err=yes
5081 fi
5082 if test -z "$ac_cpp_err"; then
5083   :
5084 else
5085   echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
5088   # Broken: fails on valid input.
5089 continue
5090 fi
5091 rm -f conftest.err conftest.$ac_ext
5092
5093   # OK, works on sane cases.  Now check whether non-existent headers
5094   # can be detected and how.
5095   cat >conftest.$ac_ext <<_ACEOF
5096 #line $LINENO "configure"
5097 /* confdefs.h.  */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h.  */
5102 #include <ac_nonexistent.h>
5103 _ACEOF
5104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5106   ac_status=$?
5107   grep -v '^ *+' conftest.er1 >conftest.err
5108   rm -f conftest.er1
5109   cat conftest.err >&5
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); } >/dev/null; then
5112   if test -s conftest.err; then
5113     ac_cpp_err=$ac_cxx_preproc_warn_flag
5114   else
5115     ac_cpp_err=
5116   fi
5117 else
5118   ac_cpp_err=yes
5119 fi
5120 if test -z "$ac_cpp_err"; then
5121   # Broken: success on invalid input.
5122 continue
5123 else
5124   echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5126
5127   # Passes both tests.
5128 ac_preproc_ok=:
5129 break
5130 fi
5131 rm -f conftest.err conftest.$ac_ext
5132
5133 done
5134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5135 rm -f conftest.err conftest.$ac_ext
5136 if $ac_preproc_ok; then
5137   :
5138 else
5139   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5140 See \`config.log' for more details." >&5
5141 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5142 See \`config.log' for more details." >&2;}
5143    { (exit 1); exit 1; }; }
5144 fi
5145
5146 ac_ext=cc
5147 ac_cpp='$CXXCPP $CPPFLAGS'
5148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151
5152
5153 ac_ext=f
5154 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5155 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5157 if test -n "$ac_tool_prefix"; then
5158   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5159   do
5160     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5162 echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5164 if test "${ac_cv_prog_F77+set}" = set; then
5165   echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167   if test -n "$F77"; then
5168   ac_cv_prog_F77="$F77" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173   IFS=$as_save_IFS
5174   test -z "$as_dir" && as_dir=.
5175   for ac_exec_ext in '' $ac_executable_extensions; do
5176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179     break 2
5180   fi
5181 done
5182 done
5183
5184 fi
5185 fi
5186 F77=$ac_cv_prog_F77
5187 if test -n "$F77"; then
5188   echo "$as_me:$LINENO: result: $F77" >&5
5189 echo "${ECHO_T}$F77" >&6
5190 else
5191   echo "$as_me:$LINENO: result: no" >&5
5192 echo "${ECHO_T}no" >&6
5193 fi
5194
5195     test -n "$F77" && break
5196   done
5197 fi
5198 if test -z "$F77"; then
5199   ac_ct_F77=$F77
5200   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5201 do
5202   # Extract the first word of "$ac_prog", so it can be a program name with args.
5203 set dummy $ac_prog; ac_word=$2
5204 echo "$as_me:$LINENO: checking for $ac_word" >&5
5205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5206 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5207   echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209   if test -n "$ac_ct_F77"; then
5210   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5211 else
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5214 do
5215   IFS=$as_save_IFS
5216   test -z "$as_dir" && as_dir=.
5217   for ac_exec_ext in '' $ac_executable_extensions; do
5218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219     ac_cv_prog_ac_ct_F77="$ac_prog"
5220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221     break 2
5222   fi
5223 done
5224 done
5225
5226 fi
5227 fi
5228 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5229 if test -n "$ac_ct_F77"; then
5230   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5231 echo "${ECHO_T}$ac_ct_F77" >&6
5232 else
5233   echo "$as_me:$LINENO: result: no" >&5
5234 echo "${ECHO_T}no" >&6
5235 fi
5236
5237   test -n "$ac_ct_F77" && break
5238 done
5239
5240   F77=$ac_ct_F77
5241 fi
5242
5243
5244 # Provide some information about the compiler.
5245 echo "$as_me:5245:" \
5246      "checking for Fortran 77 compiler version" >&5
5247 ac_compiler=`set X $ac_compile; echo $2`
5248 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5249   (eval $ac_compiler --version </dev/null >&5) 2>&5
5250   ac_status=$?
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); }
5253 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5254   (eval $ac_compiler -v </dev/null >&5) 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); }
5258 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5259   (eval $ac_compiler -V </dev/null >&5) 2>&5
5260   ac_status=$?
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); }
5263
5264 # If we don't use `.F' as extension, the preprocessor is not run on the
5265 # input file.
5266 ac_save_ext=$ac_ext
5267 ac_ext=F
5268 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5269 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5270 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   cat >conftest.$ac_ext <<_ACEOF
5274       program main
5275 #ifndef __GNUC__
5276        choke me
5277 #endif
5278
5279       end
5280 _ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283   (eval $ac_compile) 2>&5
5284   ac_status=$?
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); } &&
5287          { ac_try='test -s conftest.$ac_objext'
5288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289   (eval $ac_try) 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); }; }; then
5293   ac_compiler_gnu=yes
5294 else
5295   echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5297
5298 ac_compiler_gnu=no
5299 fi
5300 rm -f conftest.$ac_objext conftest.$ac_ext
5301 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5302
5303 fi
5304 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5305 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5306 ac_ext=$ac_save_ext
5307 G77=`test $ac_compiler_gnu = yes && echo yes`
5308 ac_test_FFLAGS=${FFLAGS+set}
5309 ac_save_FFLAGS=$FFLAGS
5310 FFLAGS=
5311 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5312 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5313 if test "${ac_cv_prog_f77_g+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   FFLAGS=-g
5317 cat >conftest.$ac_ext <<_ACEOF
5318       program main
5319
5320       end
5321 _ACEOF
5322 rm -f conftest.$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324   (eval $ac_compile) 2>&5
5325   ac_status=$?
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); } &&
5328          { ac_try='test -s conftest.$ac_objext'
5329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330   (eval $ac_try) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }; }; then
5334   ac_cv_prog_f77_g=yes
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 ac_cv_prog_f77_g=no
5340 fi
5341 rm -f conftest.$ac_objext conftest.$ac_ext
5342
5343 fi
5344 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5345 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5346 if test "$ac_test_FFLAGS" = set; then
5347   FFLAGS=$ac_save_FFLAGS
5348 elif test $ac_cv_prog_f77_g = yes; then
5349   if test "$G77" = yes; then
5350     FFLAGS="-g -O2"
5351   else
5352     FFLAGS="-g"
5353   fi
5354 else
5355   if test "$G77" = yes; then
5356     FFLAGS="-O2"
5357   else
5358     FFLAGS=
5359   fi
5360 fi
5361 ac_ext=c
5362 ac_cpp='$CPP $CPPFLAGS'
5363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5366
5367
5368
5369 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5370
5371 # find the maximum length of command line arguments
5372 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5373 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5374 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377     i=0
5378   testring="ABCD"
5379
5380   case $build_os in
5381   msdosdjgpp*)
5382     # On DJGPP, this test can blow up pretty badly due to problems in libc
5383     # (any single argument exceeding 2000 bytes causes a buffer overrun
5384     # during glob expansion).  Even if it were fixed, the result of this
5385     # check would be larger than it should be.
5386     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5387     ;;
5388
5389   gnu*)
5390     # Under GNU Hurd, this test is not required because there is
5391     # no limit to the length of command line arguments.
5392     # Libtool will interpret -1 as no limit whatsoever
5393     lt_cv_sys_max_cmd_len=-1;
5394     ;;
5395
5396   cygwin* | mingw*)
5397     # On Win9x/ME, this test blows up -- it succeeds, but takes
5398     # about 5 minutes as the teststring grows exponentially.
5399     # Worse, since 9x/ME are not pre-emptively multitasking,
5400     # you end up with a "frozen" computer, even though with patience
5401     # the test eventually succeeds (with a max line length of 256k).
5402     # Instead, let's just punt: use the minimum linelength reported by
5403     # all of the supported platforms: 8192 (on NT/2K/XP).
5404     lt_cv_sys_max_cmd_len=8192;
5405     ;;
5406
5407  *)
5408     # If test is not a shell built-in, we'll probably end up computing a
5409     # maximum length that is only half of the actual maximum length, but
5410     # we can't tell.
5411     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5412                = "XX$testring") >/dev/null 2>&1 &&
5413             new_result=`expr "X$testring" : ".*" 2>&1` &&
5414             lt_cv_sys_max_cmd_len=$new_result &&
5415             test $i != 17 # 1/2 MB should be enough
5416     do
5417       i=`expr $i + 1`
5418       testring=$testring$testring
5419     done
5420     testring=
5421     # Add a significant safety factor because C++ compilers can tack on massive
5422     # amounts of additional arguments before passing them to the linker.
5423     # It appears as though 1/2 is a usable value.
5424     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5425     ;;
5426   esac
5427
5428 fi
5429
5430 if test -n $lt_cv_sys_max_cmd_len ; then
5431   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5432 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5433 else
5434   echo "$as_me:$LINENO: result: none" >&5
5435 echo "${ECHO_T}none" >&6
5436 fi
5437
5438
5439
5440
5441 # Check for command to grab the raw symbol name followed by C symbol from nm.
5442 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5443 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5444 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5445   echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447
5448 # These are sane defaults that work on at least a few old systems.
5449 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5450
5451 # Character class describing NM global symbol codes.
5452 symcode='[BCDEGRST]'
5453
5454 # Regexp to match symbols that can be accessed directly from C.
5455 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5456
5457 # Transform the above into a raw symbol and a C symbol.
5458 symxfrm='\1 \2\3 \3'
5459
5460 # Transform an extracted symbol line into a proper C declaration
5461 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5462
5463 # Transform an extracted symbol line into symbol name and symbol address
5464 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'"
5465
5466 # Define system-specific variables.
5467 case $host_os in
5468 aix*)
5469   symcode='[BCDT]'
5470   ;;
5471 cygwin* | mingw* | pw32*)
5472   symcode='[ABCDGISTW]'
5473   ;;
5474 hpux*) # Its linker distinguishes data from code symbols
5475   if test "$host_cpu" = ia64; then
5476     symcode='[ABCDEGRST]'
5477   fi
5478   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5479   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'"
5480   ;;
5481 irix* | nonstopux*)
5482   symcode='[BCDEGRST]'
5483   ;;
5484 osf*)
5485   symcode='[BCDEGQRST]'
5486   ;;
5487 solaris* | sysv5*)
5488   symcode='[BDT]'
5489   ;;
5490 sysv4)
5491   symcode='[DFNSTU]'
5492   ;;
5493 esac
5494
5495 # Handle CRLF in mingw tool chain
5496 opt_cr=
5497 case $build_os in
5498 mingw*)
5499   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5500   ;;
5501 esac
5502
5503 # If we're using GNU nm, then use its standard symbol codes.
5504 case `$NM -V 2>&1` in
5505 *GNU* | *'with BFD'*)
5506   symcode='[ABCDGISTW]' ;;
5507 esac
5508
5509 # Try without a prefix undercore, then with it.
5510 for ac_symprfx in "" "_"; do
5511
5512   # Write the raw and C identifiers.
5513   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5514
5515   # Check to see that the pipe works correctly.
5516   pipe_works=no
5517
5518   rm -f conftest*
5519   cat > conftest.$ac_ext <<EOF
5520 #ifdef __cplusplus
5521 extern "C" {
5522 #endif
5523 char nm_test_var;
5524 void nm_test_func(){}
5525 #ifdef __cplusplus
5526 }
5527 #endif
5528 int main(){nm_test_var='a';nm_test_func();return(0);}
5529 EOF
5530
5531   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532   (eval $ac_compile) 2>&5
5533   ac_status=$?
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); }; then
5536     # Now try to grab the symbols.
5537     nlist=conftest.nm
5538     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5539   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5540   ac_status=$?
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } && test -s "$nlist"; then
5543       # Try sorting and uniquifying the output.
5544       if sort "$nlist" | uniq > "$nlist"T; then
5545         mv -f "$nlist"T "$nlist"
5546       else
5547         rm -f "$nlist"T
5548       fi
5549
5550       # Make sure that we snagged all the symbols we need.
5551       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5552         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5553           cat <<EOF > conftest.$ac_ext
5554 #ifdef __cplusplus
5555 extern "C" {
5556 #endif
5557
5558 EOF
5559           # Now generate the symbol file.
5560           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5561
5562           cat <<EOF >> conftest.$ac_ext
5563 #if defined (__STDC__) && __STDC__
5564 # define lt_ptr_t void *
5565 #else
5566 # define lt_ptr_t char *
5567 # define const
5568 #endif
5569
5570 /* The mapping between symbol names and symbols. */
5571 const struct {
5572   const char *name;
5573   lt_ptr_t address;
5574 }
5575 lt_preloaded_symbols[] =
5576 {
5577 EOF
5578           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5579           cat <<\EOF >> conftest.$ac_ext
5580   {0, (lt_ptr_t) 0}
5581 };
5582
5583 #ifdef __cplusplus
5584 }
5585 #endif
5586 EOF
5587           # Now try linking the two files.
5588           mv conftest.$ac_objext conftstm.$ac_objext
5589           lt_save_LIBS="$LIBS"
5590           lt_save_CFLAGS="$CFLAGS"
5591           LIBS="conftstm.$ac_objext"
5592           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5593           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5594   (eval $ac_link) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5598             pipe_works=yes
5599           fi
5600           LIBS="$lt_save_LIBS"
5601           CFLAGS="$lt_save_CFLAGS"
5602         else
5603           echo "cannot find nm_test_func in $nlist" >&5
5604         fi
5605       else
5606         echo "cannot find nm_test_var in $nlist" >&5
5607       fi
5608     else
5609       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5610     fi
5611   else
5612     echo "$progname: failed program was:" >&5
5613     cat conftest.$ac_ext >&5
5614   fi
5615   rm -f conftest* conftst*
5616
5617   # Do not use the global_symbol_pipe unless it works.
5618   if test "$pipe_works" = yes; then
5619     break
5620   else
5621     lt_cv_sys_global_symbol_pipe=
5622   fi
5623 done
5624
5625 fi
5626
5627 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5628   lt_cv_sys_global_symbol_to_cdecl=
5629 fi
5630 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5631   echo "$as_me:$LINENO: result: failed" >&5
5632 echo "${ECHO_T}failed" >&6
5633 else
5634   echo "$as_me:$LINENO: result: ok" >&5
5635 echo "${ECHO_T}ok" >&6
5636 fi
5637
5638 echo "$as_me:$LINENO: checking for objdir" >&5
5639 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5640 if test "${lt_cv_objdir+set}" = set; then
5641   echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643   rm -f .libs 2>/dev/null
5644 mkdir .libs 2>/dev/null
5645 if test -d .libs; then
5646   lt_cv_objdir=.libs
5647 else
5648   # MS-DOS does not allow filenames that begin with a dot.
5649   lt_cv_objdir=_libs
5650 fi
5651 rmdir .libs 2>/dev/null
5652 fi
5653 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5654 echo "${ECHO_T}$lt_cv_objdir" >&6
5655 objdir=$lt_cv_objdir
5656
5657
5658
5659
5660
5661 case $host_os in
5662 aix3*)
5663   # AIX sometimes has problems with the GCC collect2 program.  For some
5664   # reason, if we set the COLLECT_NAMES environment variable, the problems
5665   # vanish in a puff of smoke.
5666   if test "X${COLLECT_NAMES+set}" != Xset; then
5667     COLLECT_NAMES=
5668     export COLLECT_NAMES
5669   fi
5670   ;;
5671 esac
5672
5673 # Sed substitution that helps us do robust quoting.  It backslashifies
5674 # metacharacters that are still active within double-quoted strings.
5675 Xsed='sed -e s/^X//'
5676 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5677
5678 # Same as above, but do not quote variable references.
5679 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5680
5681 # Sed substitution to delay expansion of an escaped shell variable in a
5682 # double_quote_subst'ed string.
5683 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5684
5685 # Sed substitution to avoid accidental globbing in evaled expressions
5686 no_glob_subst='s/\*/\\\*/g'
5687
5688 # Constants:
5689 rm="rm -f"
5690
5691 # Global variables:
5692 default_ofile=mklib
5693 can_build_shared=yes
5694
5695 # All known linkers require a `.a' archive for static linking (except M$VC,
5696 # which needs '.lib').
5697 libext=a
5698 ltmain="$ac_aux_dir/ltmain.sh"
5699 ofile="$default_ofile"
5700 with_gnu_ld="$lt_cv_prog_gnu_ld"
5701
5702 if test -n "$ac_tool_prefix"; then
5703   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5704 set dummy ${ac_tool_prefix}ar; ac_word=$2
5705 echo "$as_me:$LINENO: checking for $ac_word" >&5
5706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5707 if test "${ac_cv_prog_AR+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   if test -n "$AR"; then
5711   ac_cv_prog_AR="$AR" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716   IFS=$as_save_IFS
5717   test -z "$as_dir" && as_dir=.
5718   for ac_exec_ext in '' $ac_executable_extensions; do
5719   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720     ac_cv_prog_AR="${ac_tool_prefix}ar"
5721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722     break 2
5723   fi
5724 done
5725 done
5726
5727 fi
5728 fi
5729 AR=$ac_cv_prog_AR
5730 if test -n "$AR"; then
5731   echo "$as_me:$LINENO: result: $AR" >&5
5732 echo "${ECHO_T}$AR" >&6
5733 else
5734   echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6
5736 fi
5737
5738 fi
5739 if test -z "$ac_cv_prog_AR"; then
5740   ac_ct_AR=$AR
5741   # Extract the first word of "ar", so it can be a program name with args.
5742 set dummy ar; ac_word=$2
5743 echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5745 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5746   echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748   if test -n "$ac_ct_AR"; then
5749   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756   for ac_exec_ext in '' $ac_executable_extensions; do
5757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758     ac_cv_prog_ac_ct_AR="ar"
5759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763 done
5764
5765   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5766 fi
5767 fi
5768 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5769 if test -n "$ac_ct_AR"; then
5770   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5771 echo "${ECHO_T}$ac_ct_AR" >&6
5772 else
5773   echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6
5775 fi
5776
5777   AR=$ac_ct_AR
5778 else
5779   AR="$ac_cv_prog_AR"
5780 fi
5781
5782 if test -n "$ac_tool_prefix"; then
5783   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5785 echo "$as_me:$LINENO: checking for $ac_word" >&5
5786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5787 if test "${ac_cv_prog_RANLIB+set}" = set; then
5788   echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790   if test -n "$RANLIB"; then
5791   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796   IFS=$as_save_IFS
5797   test -z "$as_dir" && as_dir=.
5798   for ac_exec_ext in '' $ac_executable_extensions; do
5799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5802     break 2
5803   fi
5804 done
5805 done
5806
5807 fi
5808 fi
5809 RANLIB=$ac_cv_prog_RANLIB
5810 if test -n "$RANLIB"; then
5811   echo "$as_me:$LINENO: result: $RANLIB" >&5
5812 echo "${ECHO_T}$RANLIB" >&6
5813 else
5814   echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6
5816 fi
5817
5818 fi
5819 if test -z "$ac_cv_prog_RANLIB"; then
5820   ac_ct_RANLIB=$RANLIB
5821   # Extract the first word of "ranlib", so it can be a program name with args.
5822 set dummy ranlib; ac_word=$2
5823 echo "$as_me:$LINENO: checking for $ac_word" >&5
5824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5825 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5826   echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828   if test -n "$ac_ct_RANLIB"; then
5829   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834   IFS=$as_save_IFS
5835   test -z "$as_dir" && as_dir=.
5836   for ac_exec_ext in '' $ac_executable_extensions; do
5837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838     ac_cv_prog_ac_ct_RANLIB="ranlib"
5839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840     break 2
5841   fi
5842 done
5843 done
5844
5845   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5846 fi
5847 fi
5848 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5849 if test -n "$ac_ct_RANLIB"; then
5850   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5851 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5852 else
5853   echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6
5855 fi
5856
5857   RANLIB=$ac_ct_RANLIB
5858 else
5859   RANLIB="$ac_cv_prog_RANLIB"
5860 fi
5861
5862 if test -n "$ac_tool_prefix"; then
5863   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5864 set dummy ${ac_tool_prefix}strip; ac_word=$2
5865 echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5867 if test "${ac_cv_prog_STRIP+set}" = set; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   if test -n "$STRIP"; then
5871   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5872 else
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878   for ac_exec_ext in '' $ac_executable_extensions; do
5879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885 done
5886
5887 fi
5888 fi
5889 STRIP=$ac_cv_prog_STRIP
5890 if test -n "$STRIP"; then
5891   echo "$as_me:$LINENO: result: $STRIP" >&5
5892 echo "${ECHO_T}$STRIP" >&6
5893 else
5894   echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6
5896 fi
5897
5898 fi
5899 if test -z "$ac_cv_prog_STRIP"; then
5900   ac_ct_STRIP=$STRIP
5901   # Extract the first word of "strip", so it can be a program name with args.
5902 set dummy strip; ac_word=$2
5903 echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   if test -n "$ac_ct_STRIP"; then
5909   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916   for ac_exec_ext in '' $ac_executable_extensions; do
5917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918     ac_cv_prog_ac_ct_STRIP="strip"
5919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923 done
5924
5925   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5926 fi
5927 fi
5928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5929 if test -n "$ac_ct_STRIP"; then
5930   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5931 echo "${ECHO_T}$ac_ct_STRIP" >&6
5932 else
5933   echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5935 fi
5936
5937   STRIP=$ac_ct_STRIP
5938 else
5939   STRIP="$ac_cv_prog_STRIP"
5940 fi
5941
5942
5943 old_CC="$CC"
5944 old_CFLAGS="$CFLAGS"
5945
5946 # Set sane defaults for various variables
5947 test -z "$AR" && AR=ar
5948 test -z "$AR_FLAGS" && AR_FLAGS=cru
5949 test -z "$AS" && AS=as
5950 test -z "$CC" && CC=cc
5951 test -z "$LTCC" && LTCC=$CC
5952 test -z "$DLLTOOL" && DLLTOOL=dlltool
5953 test -z "$LD" && LD=ld
5954 test -z "$LN_S" && LN_S="ln -s"
5955 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5956 test -z "$NM" && NM=nm
5957 test -z "$SED" && SED=sed
5958 test -z "$OBJDUMP" && OBJDUMP=objdump
5959 test -z "$RANLIB" && RANLIB=:
5960 test -z "$STRIP" && STRIP=:
5961 test -z "$ac_objext" && ac_objext=o
5962
5963 # Determine commands to create old-style static archives.
5964 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5965 old_postinstall_cmds='chmod 644 $oldlib'
5966 old_postuninstall_cmds=
5967
5968 if test -n "$RANLIB"; then
5969   case $host_os in
5970   openbsd*)
5971     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5972     ;;
5973   *)
5974     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5975     ;;
5976   esac
5977   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5978 fi
5979
5980 # Only perform the check for file, if the check method requires it
5981 case $deplibs_check_method in
5982 file_magic*)
5983   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5984     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5985 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5986 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   case $MAGIC_CMD in
5990 [\\/*] |  ?:[\\/]*)
5991   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5992   ;;
5993 *)
5994   lt_save_MAGIC_CMD="$MAGIC_CMD"
5995   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5996   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5997   for ac_dir in $ac_dummy; do
5998     IFS="$lt_save_ifs"
5999     test -z "$ac_dir" && ac_dir=.
6000     if test -f $ac_dir/${ac_tool_prefix}file; then
6001       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6002       if test -n "$file_magic_test_file"; then
6003         case $deplibs_check_method in
6004         "file_magic "*)
6005           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6006           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6007           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6008             $EGREP "$file_magic_regex" > /dev/null; then
6009             :
6010           else
6011             cat <<EOF 1>&2
6012
6013 *** Warning: the command libtool uses to detect shared libraries,
6014 *** $file_magic_cmd, produces output that libtool cannot recognize.
6015 *** The result is that libtool may fail to recognize shared libraries
6016 *** as such.  This will affect the creation of libtool libraries that
6017 *** depend on shared libraries, but programs linked with such libtool
6018 *** libraries will work regardless of this problem.  Nevertheless, you
6019 *** may want to report the problem to your system manager and/or to
6020 *** bug-libtool@gnu.org
6021
6022 EOF
6023           fi ;;
6024         esac
6025       fi
6026       break
6027     fi
6028   done
6029   IFS="$lt_save_ifs"
6030   MAGIC_CMD="$lt_save_MAGIC_CMD"
6031   ;;
6032 esac
6033 fi
6034
6035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6036 if test -n "$MAGIC_CMD"; then
6037   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6038 echo "${ECHO_T}$MAGIC_CMD" >&6
6039 else
6040   echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6
6042 fi
6043
6044 if test -z "$lt_cv_path_MAGIC_CMD"; then
6045   if test -n "$ac_tool_prefix"; then
6046     echo "$as_me:$LINENO: checking for file" >&5
6047 echo $ECHO_N "checking for file... $ECHO_C" >&6
6048 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   case $MAGIC_CMD in
6052 [\\/*] |  ?:[\\/]*)
6053   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6054   ;;
6055 *)
6056   lt_save_MAGIC_CMD="$MAGIC_CMD"
6057   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6058   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6059   for ac_dir in $ac_dummy; do
6060     IFS="$lt_save_ifs"
6061     test -z "$ac_dir" && ac_dir=.
6062     if test -f $ac_dir/file; then
6063       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6064       if test -n "$file_magic_test_file"; then
6065         case $deplibs_check_method in
6066         "file_magic "*)
6067           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6068           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6069           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6070             $EGREP "$file_magic_regex" > /dev/null; then
6071             :
6072           else
6073             cat <<EOF 1>&2
6074
6075 *** Warning: the command libtool uses to detect shared libraries,
6076 *** $file_magic_cmd, produces output that libtool cannot recognize.
6077 *** The result is that libtool may fail to recognize shared libraries
6078 *** as such.  This will affect the creation of libtool libraries that
6079 *** depend on shared libraries, but programs linked with such libtool
6080 *** libraries will work regardless of this problem.  Nevertheless, you
6081 *** may want to report the problem to your system manager and/or to
6082 *** bug-libtool@gnu.org
6083
6084 EOF
6085           fi ;;
6086         esac
6087       fi
6088       break
6089     fi
6090   done
6091   IFS="$lt_save_ifs"
6092   MAGIC_CMD="$lt_save_MAGIC_CMD"
6093   ;;
6094 esac
6095 fi
6096
6097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6098 if test -n "$MAGIC_CMD"; then
6099   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6100 echo "${ECHO_T}$MAGIC_CMD" >&6
6101 else
6102   echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6
6104 fi
6105
6106   else
6107     MAGIC_CMD=:
6108   fi
6109 fi
6110
6111   fi
6112   ;;
6113 esac
6114
6115 enable_dlopen=no
6116 enable_win32_dll=no
6117
6118 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6119 if test "${enable_libtool_lock+set}" = set; then
6120   enableval="$enable_libtool_lock"
6121
6122 fi;
6123 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6124
6125
6126 # Check whether --with-pic or --without-pic was given.
6127 if test "${with_pic+set}" = set; then
6128   withval="$with_pic"
6129   pic_mode="$withval"
6130 else
6131   pic_mode=default
6132 fi;
6133 test -z "$pic_mode" && pic_mode=default
6134
6135 # Use C for the default configuration in the libtool script
6136 tagname=
6137 lt_save_CC="$CC"
6138 ac_ext=c
6139 ac_cpp='$CPP $CPPFLAGS'
6140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6143
6144
6145 # Source file extension for C test sources.
6146 ac_ext=c
6147
6148 # Object file extension for compiled C test sources.
6149 objext=o
6150 objext=$objext
6151
6152 # Code to be used in simple compile tests
6153 lt_simple_compile_test_code="int some_variable = 0;\n"
6154
6155 # Code to be used in simple link tests
6156 lt_simple_link_test_code='int main(){return(0);}\n'
6157
6158
6159 # If no C compiler was specified, use CC.
6160 LTCC=${LTCC-"$CC"}
6161
6162 # Allow CC to be a program name with arguments.
6163 compiler=$CC
6164
6165
6166 #
6167 # Check for any special shared library compilation flags.
6168 #
6169 lt_prog_cc_shlib=
6170 if test "$GCC" = no; then
6171   case $host_os in
6172   sco3.2v5*)
6173     lt_prog_cc_shlib='-belf'
6174     ;;
6175   esac
6176 fi
6177 if test -n "$lt_prog_cc_shlib"; then
6178   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6179 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6180   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6181   else
6182     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6183 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6184     lt_cv_prog_cc_can_build_shared=no
6185   fi
6186 fi
6187
6188
6189 #
6190 # Check to make sure the static flag actually works.
6191 #
6192 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6193 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6194 if test "${lt_prog_compiler_static_works+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   lt_prog_compiler_static_works=no
6198    save_LDFLAGS="$LDFLAGS"
6199    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6200    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6201    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6202      # The compiler can only warn and ignore the option if not recognized
6203      # So say no if there are warnings
6204      if test -s conftest.err; then
6205        # Append any errors to the config.log.
6206        cat conftest.err 1>&5
6207      else
6208        lt_prog_compiler_static_works=yes
6209      fi
6210    fi
6211    $rm conftest*
6212    LDFLAGS="$save_LDFLAGS"
6213
6214 fi
6215 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6216 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6217
6218 if test x"$lt_prog_compiler_static_works" = xyes; then
6219     :
6220 else
6221     lt_prog_compiler_static=
6222 fi
6223
6224
6225
6226 ## CAVEAT EMPTOR:
6227 ## There is no encapsulation within the following macros, do not change
6228 ## the running order or otherwise move them around unless you know exactly
6229 ## what you are doing...
6230
6231 lt_prog_compiler_no_builtin_flag=
6232
6233 if test "$GCC" = yes; then
6234   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6235
6236   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6237 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6238 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   lt_cv_prog_compiler_rtti_exceptions=no
6242   ac_outfile=conftest.$ac_objext
6243    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6244    lt_compiler_flag="-fno-rtti -fno-exceptions"
6245    # Insert the option either (1) after the last *FLAGS variable, or
6246    # (2) before a word containing "conftest.", or (3) at the end.
6247    # Note that $ac_compile itself does not contain backslashes and begins
6248    # with a dollar sign (not a hyphen), so the echo should work correctly.
6249    # The option is referenced via a variable to avoid confusing sed.
6250    lt_compile=`echo "$ac_compile" | $SED \
6251    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6252    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6253    -e 's:$: $lt_compiler_flag:'`
6254    (eval echo "\"\$as_me:6254: $lt_compile\"" >&5)
6255    (eval "$lt_compile" 2>conftest.err)
6256    ac_status=$?
6257    cat conftest.err >&5
6258    echo "$as_me:6258: \$? = $ac_status" >&5
6259    if (exit $ac_status) && test -s "$ac_outfile"; then
6260      # The compiler can only warn and ignore the option if not recognized
6261      # So say no if there are warnings
6262      if test ! -s conftest.err; then
6263        lt_cv_prog_compiler_rtti_exceptions=yes
6264      fi
6265    fi
6266    $rm conftest*
6267
6268 fi
6269 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6270 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6271
6272 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6273     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6274 else
6275     :
6276 fi
6277
6278 fi
6279
6280 lt_prog_compiler_wl=
6281 lt_prog_compiler_pic=
6282 lt_prog_compiler_static=
6283
6284 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6285 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6286
6287   if test "$GCC" = yes; then
6288     lt_prog_compiler_wl='-Wl,'
6289     lt_prog_compiler_static='-static'
6290
6291     case $host_os in
6292       aix*)
6293       # All AIX code is PIC.
6294       if test "$host_cpu" = ia64; then
6295         # AIX 5 now supports IA64 processor
6296         lt_prog_compiler_static='-Bstatic'
6297       fi
6298       ;;
6299
6300     amigaos*)
6301       # FIXME: we need at least 68020 code to build shared libraries, but
6302       # adding the `-m68020' flag to GCC prevents building anything better,
6303       # like `-m68040'.
6304       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6305       ;;
6306
6307     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6308       # PIC is the default for these OSes.
6309       ;;
6310
6311     mingw* | pw32* | os2*)
6312       # This hack is so that the source file can tell whether it is being
6313       # built for inclusion in a dll (and should export symbols for example).
6314       lt_prog_compiler_pic='-DDLL_EXPORT'
6315       ;;
6316
6317     darwin* | rhapsody*)
6318       # PIC is the default on this platform
6319       # Common symbols not allowed in MH_DYLIB files
6320       lt_prog_compiler_pic='-fno-common'
6321       ;;
6322
6323     msdosdjgpp*)
6324       # Just because we use GCC doesn't mean we suddenly get shared libraries
6325       # on systems that don't support them.
6326       lt_prog_compiler_can_build_shared=no
6327       enable_shared=no
6328       ;;
6329
6330     sysv4*MP*)
6331       if test -d /usr/nec; then
6332         lt_prog_compiler_pic=-Kconform_pic
6333       fi
6334       ;;
6335
6336     hpux*)
6337       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6338       # not for PA HP-UX.
6339       case "$host_cpu" in
6340       hppa*64*|ia64*)
6341         # +Z the default
6342         ;;
6343       *)
6344         lt_prog_compiler_pic='-fPIC'
6345         ;;
6346       esac
6347       ;;
6348
6349     *)
6350       lt_prog_compiler_pic='-fPIC'
6351       ;;
6352     esac
6353   else
6354     # PORTME Check for flag to pass linker flags through the system compiler.
6355     case $host_os in
6356     aix*)
6357       lt_prog_compiler_wl='-Wl,'
6358       if test "$host_cpu" = ia64; then
6359         # AIX 5 now supports IA64 processor
6360         lt_prog_compiler_static='-Bstatic'
6361       else
6362         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6363       fi
6364       ;;
6365
6366     mingw* | pw32* | os2*)
6367       # This hack is so that the source file can tell whether it is being
6368       # built for inclusion in a dll (and should export symbols for example).
6369       lt_prog_compiler_pic='-DDLL_EXPORT'
6370       ;;
6371
6372     hpux9* | hpux10* | hpux11*)
6373       lt_prog_compiler_wl='-Wl,'
6374       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6375       # not for PA HP-UX.
6376       case "$host_cpu" in
6377       hppa*64*|ia64*)
6378         # +Z the default
6379         ;;
6380       *)
6381         lt_prog_compiler_pic='+Z'
6382         ;;
6383       esac
6384       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6385       lt_prog_compiler_static='${wl}-a ${wl}archive'
6386       ;;
6387
6388     irix5* | irix6* | nonstopux*)
6389       lt_prog_compiler_wl='-Wl,'
6390       # PIC (with -KPIC) is the default.
6391       lt_prog_compiler_static='-non_shared'
6392       ;;
6393
6394     newsos6)
6395       lt_prog_compiler_pic='-KPIC'
6396       lt_prog_compiler_static='-Bstatic'
6397       ;;
6398
6399     linux*)
6400       case $CC in
6401       icc|ecc)
6402         lt_prog_compiler_wl='-Wl,'
6403         lt_prog_compiler_pic='-KPIC'
6404         lt_prog_compiler_static='-static'
6405         ;;
6406       ccc)
6407         lt_prog_compiler_wl='-Wl,'
6408         # All Alpha code is PIC.
6409         lt_prog_compiler_static='-non_shared'
6410         ;;
6411       esac
6412       ;;
6413
6414     osf3* | osf4* | osf5*)
6415       lt_prog_compiler_wl='-Wl,'
6416       # All OSF/1 code is PIC.
6417       lt_prog_compiler_static='-non_shared'
6418       ;;
6419
6420     sco3.2v5*)
6421       lt_prog_compiler_pic='-Kpic'
6422       lt_prog_compiler_static='-dn'
6423       ;;
6424
6425     solaris*)
6426       lt_prog_compiler_wl='-Wl,'
6427       lt_prog_compiler_pic='-KPIC'
6428       lt_prog_compiler_static='-Bstatic'
6429       ;;
6430
6431     sunos4*)
6432       lt_prog_compiler_wl='-Qoption ld '
6433       lt_prog_compiler_pic='-PIC'
6434       lt_prog_compiler_static='-Bstatic'
6435       ;;
6436
6437     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6438       lt_prog_compiler_wl='-Wl,'
6439       lt_prog_compiler_pic='-KPIC'
6440       lt_prog_compiler_static='-Bstatic'
6441       ;;
6442
6443     sysv4*MP*)
6444       if test -d /usr/nec ;then
6445         lt_prog_compiler_pic='-Kconform_pic'
6446         lt_prog_compiler_static='-Bstatic'
6447       fi
6448       ;;
6449
6450     uts4*)
6451       lt_prog_compiler_pic='-pic'
6452       lt_prog_compiler_static='-Bstatic'
6453       ;;
6454
6455     *)
6456       lt_prog_compiler_can_build_shared=no
6457       ;;
6458     esac
6459   fi
6460
6461 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6462 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6463
6464 #
6465 # Check to make sure the PIC flag actually works.
6466 #
6467 if test -n "$lt_prog_compiler_pic"; then
6468   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6469 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6470 if test "${lt_prog_compiler_pic_works+set}" = set; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473   lt_prog_compiler_pic_works=no
6474   ac_outfile=conftest.$ac_objext
6475    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6476    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6477    # Insert the option either (1) after the last *FLAGS variable, or
6478    # (2) before a word containing "conftest.", or (3) at the end.
6479    # Note that $ac_compile itself does not contain backslashes and begins
6480    # with a dollar sign (not a hyphen), so the echo should work correctly.
6481    # The option is referenced via a variable to avoid confusing sed.
6482    lt_compile=`echo "$ac_compile" | $SED \
6483    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6485    -e 's:$: $lt_compiler_flag:'`
6486    (eval echo "\"\$as_me:6486: $lt_compile\"" >&5)
6487    (eval "$lt_compile" 2>conftest.err)
6488    ac_status=$?
6489    cat conftest.err >&5
6490    echo "$as_me:6490: \$? = $ac_status" >&5
6491    if (exit $ac_status) && test -s "$ac_outfile"; then
6492      # The compiler can only warn and ignore the option if not recognized
6493      # So say no if there are warnings
6494      if test ! -s conftest.err; then
6495        lt_prog_compiler_pic_works=yes
6496      fi
6497    fi
6498    $rm conftest*
6499
6500 fi
6501 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6502 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6503
6504 if test x"$lt_prog_compiler_pic_works" = xyes; then
6505     case $lt_prog_compiler_pic in
6506      "" | " "*) ;;
6507      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6508      esac
6509 else
6510     lt_prog_compiler_pic=
6511      lt_prog_compiler_can_build_shared=no
6512 fi
6513
6514 fi
6515 case "$host_os" in
6516   # For platforms which do not support PIC, -DPIC is meaningless:
6517   *djgpp*)
6518     lt_prog_compiler_pic=
6519     ;;
6520   *)
6521     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6522     ;;
6523 esac
6524
6525 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6526 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6527 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   lt_cv_prog_compiler_c_o=no
6531    $rm -r conftest 2>/dev/null
6532    mkdir conftest
6533    cd conftest
6534    mkdir out
6535    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6536
6537    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6538    # that will create temporary files in the current directory regardless of
6539    # the output directory.  Thus, making CWD read-only will cause this test
6540    # to fail, enabling locking or at least warning the user not to do parallel
6541    # builds.
6542    chmod -w .
6543
6544    lt_compiler_flag="-o out/conftest2.$ac_objext"
6545    # Insert the option either (1) after the last *FLAGS variable, or
6546    # (2) before a word containing "conftest.", or (3) at the end.
6547    # Note that $ac_compile itself does not contain backslashes and begins
6548    # with a dollar sign (not a hyphen), so the echo should work correctly.
6549    lt_compile=`echo "$ac_compile" | $SED \
6550    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6551    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6552    -e 's:$: $lt_compiler_flag:'`
6553    (eval echo "\"\$as_me:6553: $lt_compile\"" >&5)
6554    (eval "$lt_compile" 2>out/conftest.err)
6555    ac_status=$?
6556    cat out/conftest.err >&5
6557    echo "$as_me:6557: \$? = $ac_status" >&5
6558    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6559    then
6560      # The compiler can only warn and ignore the option if not recognized
6561      # So say no if there are warnings
6562      if test ! -s out/conftest.err; then
6563        lt_cv_prog_compiler_c_o=yes
6564      fi
6565    fi
6566    chmod u+w .
6567    $rm conftest* out/*
6568    rmdir out
6569    cd ..
6570    rmdir conftest
6571    $rm conftest*
6572
6573 fi
6574 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6575 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6576
6577
6578 hard_links="nottested"
6579 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6580   # do not overwrite the value of need_locks provided by the user
6581   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6582 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6583   hard_links=yes
6584   $rm conftest*
6585   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6586   touch conftest.a
6587   ln conftest.a conftest.b 2>&5 || hard_links=no
6588   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6589   echo "$as_me:$LINENO: result: $hard_links" >&5
6590 echo "${ECHO_T}$hard_links" >&6
6591   if test "$hard_links" = no; then
6592     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6593 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6594     need_locks=warn
6595   fi
6596 else
6597   need_locks=no
6598 fi
6599
6600 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6601 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6602
6603   runpath_var=
6604   allow_undefined_flag=
6605   enable_shared_with_static_runtimes=no
6606   archive_cmds=
6607   archive_expsym_cmds=
6608   old_archive_From_new_cmds=
6609   old_archive_from_expsyms_cmds=
6610   export_dynamic_flag_spec=
6611   whole_archive_flag_spec=
6612   thread_safe_flag_spec=
6613   hardcode_libdir_flag_spec=
6614   hardcode_libdir_flag_spec_ld=
6615   hardcode_libdir_separator=
6616   hardcode_direct=no
6617   hardcode_minus_L=no
6618   hardcode_shlibpath_var=unsupported
6619   link_all_deplibs=unknown
6620   hardcode_automatic=no
6621   module_cmds=
6622   module_expsym_cmds=
6623   always_export_symbols=no
6624   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6625   # include_expsyms should be a list of space-separated symbols to be *always*
6626   # included in the symbol list
6627   include_expsyms=
6628   # exclude_expsyms can be an extended regexp of symbols to exclude
6629   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6630   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6631   # as well as any symbol that contains `d'.
6632   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6633   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6634   # platforms (ab)use it in PIC code, but their linkers get confused if
6635   # the symbol is explicitly referenced.  Since portable code cannot
6636   # rely on this symbol name, it's probably fine to never include it in
6637   # preloaded symbol tables.
6638   extract_expsyms_cmds=
6639
6640   case $host_os in
6641   cygwin* | mingw* | pw32*)
6642     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6643     # When not using gcc, we currently assume that we are using
6644     # Microsoft Visual C++.
6645     if test "$GCC" != yes; then
6646       with_gnu_ld=no
6647     fi
6648     ;;
6649   openbsd*)
6650     with_gnu_ld=no
6651     ;;
6652   esac
6653
6654   ld_shlibs=yes
6655   if test "$with_gnu_ld" = yes; then
6656     # If archive_cmds runs LD, not CC, wlarc should be empty
6657     wlarc='${wl}'
6658
6659     # See if GNU ld supports shared libraries.
6660     case $host_os in
6661     aix3* | aix4* | aix5*)
6662       # On AIX/PPC, the GNU linker is very broken
6663       if test "$host_cpu" != ia64; then
6664         ld_shlibs=no
6665         cat <<EOF 1>&2
6666
6667 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6668 *** to be unable to reliably create shared libraries on AIX.
6669 *** Therefore, libtool is disabling shared libraries support.  If you
6670 *** really care for shared libraries, you may want to modify your PATH
6671 *** so that a non-GNU linker is found, and then restart.
6672
6673 EOF
6674       fi
6675       ;;
6676
6677     amigaos*)
6678       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)'
6679       hardcode_libdir_flag_spec='-L$libdir'
6680       hardcode_minus_L=yes
6681
6682       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6683       # that the semantics of dynamic libraries on AmigaOS, at least up
6684       # to version 4, is to share data among multiple programs linked
6685       # with the same dynamic library.  Since this doesn't match the
6686       # behavior of shared libraries on other platforms, we can't use
6687       # them.
6688       ld_shlibs=no
6689       ;;
6690
6691     beos*)
6692       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6693         allow_undefined_flag=unsupported
6694         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6695         # support --undefined.  This deserves some investigation.  FIXME
6696         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6697       else
6698         ld_shlibs=no
6699       fi
6700       ;;
6701
6702     cygwin* | mingw* | pw32*)
6703       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6704       # as there is no search path for DLLs.
6705       hardcode_libdir_flag_spec='-L$libdir'
6706       allow_undefined_flag=unsupported
6707       always_export_symbols=no
6708       enable_shared_with_static_runtimes=yes
6709       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6710
6711       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6712         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6713         # If the export-symbols file already is a .def file (1st line
6714         # is EXPORTS), use it as is; otherwise, prepend...
6715         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6716           cp $export_symbols $output_objdir/$soname.def;
6717         else
6718           echo EXPORTS > $output_objdir/$soname.def;
6719           cat $export_symbols >> $output_objdir/$soname.def;
6720         fi~
6721         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6722       else
6723         ld_shlibs=no
6724       fi
6725       ;;
6726
6727     netbsd*)
6728       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6729         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6730         wlarc=
6731       else
6732         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6733         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6734       fi
6735       ;;
6736
6737     solaris* | sysv5*)
6738       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6739         ld_shlibs=no
6740         cat <<EOF 1>&2
6741
6742 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6743 *** create shared libraries on Solaris systems.  Therefore, libtool
6744 *** is disabling shared libraries support.  We urge you to upgrade GNU
6745 *** binutils to release 2.9.1 or newer.  Another option is to modify
6746 *** your PATH or compiler configuration so that the native linker is
6747 *** used, and then restart.
6748
6749 EOF
6750       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6751         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6752         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6753       else
6754         ld_shlibs=no
6755       fi
6756       ;;
6757
6758     sunos4*)
6759       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6760       wlarc=
6761       hardcode_direct=yes
6762       hardcode_shlibpath_var=no
6763       ;;
6764
6765     *)
6766       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6767         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6768         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6769       else
6770         ld_shlibs=no
6771       fi
6772       ;;
6773     esac
6774
6775     if test "$ld_shlibs" = yes; then
6776       runpath_var=LD_RUN_PATH
6777       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6778       export_dynamic_flag_spec='${wl}--export-dynamic'
6779       # ancient GNU ld didn't support --whole-archive et. al.
6780       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6781         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6782       else
6783         whole_archive_flag_spec=
6784       fi
6785     fi
6786   else
6787     # PORTME fill in a description of your system's linker (not GNU ld)
6788     case $host_os in
6789     aix3*)
6790       allow_undefined_flag=unsupported
6791       always_export_symbols=yes
6792       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'
6793       # Note: this linker hardcodes the directories in LIBPATH if there
6794       # are no directories specified by -L.
6795       hardcode_minus_L=yes
6796       if test "$GCC" = yes && test -z "$link_static_flag"; then
6797         # Neither direct hardcoding nor static linking is supported with a
6798         # broken collect2.
6799         hardcode_direct=unsupported
6800       fi
6801       ;;
6802
6803     aix4* | aix5*)
6804       if test "$host_cpu" = ia64; then
6805         # On IA64, the linker does run time linking by default, so we don't
6806         # have to do anything special.
6807         aix_use_runtimelinking=no
6808         exp_sym_flag='-Bexport'
6809         no_entry_flag=""
6810       else
6811         # If we're using GNU nm, then we don't want the "-C" option.
6812         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6813         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6814           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'
6815         else
6816           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'
6817         fi
6818         aix_use_runtimelinking=no
6819
6820         # Test if we are trying to use run time linking or normal
6821         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6822         # need to do runtime linking.
6823         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6824           for ld_flag in $LDFLAGS; do
6825           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6826             aix_use_runtimelinking=yes
6827             break
6828           fi
6829           done
6830         esac
6831
6832         exp_sym_flag='-bexport'
6833         no_entry_flag='-bnoentry'
6834       fi
6835
6836       # When large executables or shared objects are built, AIX ld can
6837       # have problems creating the table of contents.  If linking a library
6838       # or program results in "error TOC overflow" add -mminimal-toc to
6839       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6840       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6841
6842       archive_cmds=''
6843       hardcode_direct=yes
6844       hardcode_libdir_separator=':'
6845       link_all_deplibs=yes
6846
6847       if test "$GCC" = yes; then
6848         case $host_os in aix4.012|aix4.012.*)
6849         # We only want to do this on AIX 4.2 and lower, the check
6850         # below for broken collect2 doesn't work under 4.3+
6851           collect2name=`${CC} -print-prog-name=collect2`
6852           if test -f "$collect2name" && \
6853            strings "$collect2name" | grep resolve_lib_name >/dev/null
6854           then
6855           # We have reworked collect2
6856           hardcode_direct=yes
6857           else
6858           # We have old collect2
6859           hardcode_direct=unsupported
6860           # It fails to find uninstalled libraries when the uninstalled
6861           # path is not listed in the libpath.  Setting hardcode_minus_L
6862           # to unsupported forces relinking
6863           hardcode_minus_L=yes
6864           hardcode_libdir_flag_spec='-L$libdir'
6865           hardcode_libdir_separator=
6866           fi
6867         esac
6868         shared_flag='-shared'
6869       else
6870         # not using gcc
6871         if test "$host_cpu" = ia64; then
6872         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6873         # chokes on -Wl,-G. The following line is correct:
6874           shared_flag='-G'
6875         else
6876         if test "$aix_use_runtimelinking" = yes; then
6877             shared_flag='${wl}-G'
6878           else
6879             shared_flag='${wl}-bM:SRE'
6880         fi
6881         fi
6882       fi
6883
6884       # It seems that -bexpall does not export symbols beginning with
6885       # underscore (_), so it is better to generate a list of symbols to export.
6886       always_export_symbols=yes
6887       if test "$aix_use_runtimelinking" = yes; then
6888         # Warning - without using the other runtime loading flags (-brtl),
6889         # -berok will link without error, but may produce a broken library.
6890         allow_undefined_flag='-berok'
6891        # Determine the default libpath from the value encoded in an empty executable.
6892        cat >conftest.$ac_ext <<_ACEOF
6893 #line $LINENO "configure"
6894 /* confdefs.h.  */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h.  */
6899
6900 int
6901 main ()
6902 {
6903
6904   ;
6905   return 0;
6906 }
6907 _ACEOF
6908 rm -f conftest.$ac_objext conftest$ac_exeext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910   (eval $ac_link) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } &&
6914          { ac_try='test -s conftest$ac_exeext'
6915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916   (eval $ac_try) 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); }; }; then
6920
6921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6922 }'`
6923 # Check for a 64-bit object if we didn't find anything.
6924 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; }
6925 }'`; fi
6926 else
6927   echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930 fi
6931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6932 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6933
6934        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6935         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"
6936        else
6937         if test "$host_cpu" = ia64; then
6938           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6939           allow_undefined_flag="-z nodefs"
6940           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"
6941         else
6942          # Determine the default libpath from the value encoded in an empty executable.
6943          cat >conftest.$ac_ext <<_ACEOF
6944 #line $LINENO "configure"
6945 /* confdefs.h.  */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h.  */
6950
6951 int
6952 main ()
6953 {
6954
6955   ;
6956   return 0;
6957 }
6958 _ACEOF
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961   (eval $ac_link) 2>&5
6962   ac_status=$?
6963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); } &&
6965          { ac_try='test -s conftest$ac_exeext'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971
6972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6973 }'`
6974 # Check for a 64-bit object if we didn't find anything.
6975 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; }
6976 }'`; fi
6977 else
6978   echo "$as_me: failed program was:" >&5
6979 sed 's/^/| /' conftest.$ac_ext >&5
6980
6981 fi
6982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6984
6985          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6986           # Warning - without using the other run time loading flags,
6987           # -berok will link without error, but may produce a broken library.
6988           no_undefined_flag=' ${wl}-bernotok'
6989           allow_undefined_flag=' ${wl}-berok'
6990           # -bexpall does not export symbols beginning with underscore (_)
6991           always_export_symbols=yes
6992           # Exported symbols can be pulled into shared objects from archives
6993           whole_archive_flag_spec=' '
6994           archive_cmds_need_lc=yes
6995           # This is similar to how AIX traditionally builds it's shared libraries.
6996           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'
6997         fi
6998       fi
6999       ;;
7000
7001     amigaos*)
7002       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)'
7003       hardcode_libdir_flag_spec='-L$libdir'
7004       hardcode_minus_L=yes
7005       # see comment about different semantics on the GNU ld section
7006       ld_shlibs=no
7007       ;;
7008
7009     bsdi4*)
7010       export_dynamic_flag_spec=-rdynamic
7011       ;;
7012
7013     cygwin* | mingw* | pw32*)
7014       # When not using gcc, we currently assume that we are using
7015       # Microsoft Visual C++.
7016       # hardcode_libdir_flag_spec is actually meaningless, as there is
7017       # no search path for DLLs.
7018       hardcode_libdir_flag_spec=' '
7019       allow_undefined_flag=unsupported
7020       # Tell ltmain to make .lib files, not .a files.
7021       libext=lib
7022       # Tell ltmain to make .dll files, not .so files.
7023       shrext=".dll"
7024       # FIXME: Setting linknames here is a bad hack.
7025       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7026       # The linker will automatically build a .lib file if we build a DLL.
7027       old_archive_From_new_cmds='true'
7028       # FIXME: Should let the user specify the lib program.
7029       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7030       fix_srcfile_path='`cygpath -w "$srcfile"`'
7031       enable_shared_with_static_runtimes=yes
7032       ;;
7033
7034     darwin* | rhapsody*)
7035     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7036       archive_cmds_need_lc=no
7037       case "$host_os" in
7038       rhapsody* | darwin1.[012])
7039         allow_undefined_flag='-undefined suppress'
7040         ;;
7041       *) # Darwin 1.3 on
7042         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7043         ;;
7044       esac
7045       # FIXME: Relying on posixy $() will cause problems for
7046       #        cross-compilation, but unfortunately the echo tests do not
7047       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7048       #        `"' quotes if we put them in here... so don't!
7049         lt_int_apple_cc_single_mod=no
7050         output_verbose_link_cmd='echo'
7051         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7052           lt_int_apple_cc_single_mod=yes
7053         fi
7054         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7055           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7056         else
7057         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'
7058       fi
7059       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7060       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7061         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7062           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}'
7063         else
7064           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}'
7065         fi
7066           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}'
7067       hardcode_direct=no
7068       hardcode_automatic=yes
7069       hardcode_shlibpath_var=unsupported
7070       whole_archive_flag_spec='-all_load $convenience'
7071       link_all_deplibs=yes
7072     fi
7073       ;;
7074
7075     dgux*)
7076       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7077       hardcode_libdir_flag_spec='-L$libdir'
7078       hardcode_shlibpath_var=no
7079       ;;
7080
7081     freebsd1*)
7082       ld_shlibs=no
7083       ;;
7084
7085     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7086     # support.  Future versions do this automatically, but an explicit c++rt0.o
7087     # does not break anything, and helps significantly (at the cost of a little
7088     # extra space).
7089     freebsd2.2*)
7090       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7091       hardcode_libdir_flag_spec='-R$libdir'
7092       hardcode_direct=yes
7093       hardcode_shlibpath_var=no
7094       ;;
7095
7096     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7097     freebsd2*)
7098       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7099       hardcode_direct=yes
7100       hardcode_minus_L=yes
7101       hardcode_shlibpath_var=no
7102       ;;
7103
7104     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7105     freebsd*)
7106       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7107       hardcode_libdir_flag_spec='-R$libdir'
7108       hardcode_direct=yes
7109       hardcode_shlibpath_var=no
7110       ;;
7111
7112     hpux9*)
7113       if test "$GCC" = yes; then
7114         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'
7115       else
7116         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'
7117       fi
7118       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7119       hardcode_libdir_separator=:
7120       hardcode_direct=yes
7121
7122       # hardcode_minus_L: Not really in the search PATH,
7123       # but as the default location of the library.
7124       hardcode_minus_L=yes
7125       export_dynamic_flag_spec='${wl}-E'
7126       ;;
7127
7128     hpux10* | hpux11*)
7129       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7130         case "$host_cpu" in
7131         hppa*64*|ia64*)
7132           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7133           ;;
7134         *)
7135           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7136           ;;
7137         esac
7138       else
7139         case "$host_cpu" in
7140         hppa*64*|ia64*)
7141           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7142           ;;
7143         *)
7144           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7145           ;;
7146         esac
7147       fi
7148       if test "$with_gnu_ld" = no; then
7149         case "$host_cpu" in
7150         hppa*64*)
7151           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7152           hardcode_libdir_flag_spec_ld='+b $libdir'
7153           hardcode_libdir_separator=:
7154           hardcode_direct=no
7155           hardcode_shlibpath_var=no
7156           ;;
7157         ia64*)
7158           hardcode_libdir_flag_spec='-L$libdir'
7159           hardcode_direct=no
7160           hardcode_shlibpath_var=no
7161
7162           # hardcode_minus_L: Not really in the search PATH,
7163           # but as the default location of the library.
7164           hardcode_minus_L=yes
7165           ;;
7166         *)
7167           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7168           hardcode_libdir_separator=:
7169           hardcode_direct=yes
7170           export_dynamic_flag_spec='${wl}-E'
7171
7172           # hardcode_minus_L: Not really in the search PATH,
7173           # but as the default location of the library.
7174           hardcode_minus_L=yes
7175           ;;
7176         esac
7177       fi
7178       ;;
7179
7180     irix5* | irix6* | nonstopux*)
7181       if test "$GCC" = yes; then
7182         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'
7183       else
7184         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'
7185         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7186       fi
7187       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7188       hardcode_libdir_separator=:
7189       link_all_deplibs=yes
7190       ;;
7191
7192     netbsd*)
7193       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7194         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7195       else
7196         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7197       fi
7198       hardcode_libdir_flag_spec='-R$libdir'
7199       hardcode_direct=yes
7200       hardcode_shlibpath_var=no
7201       ;;
7202
7203     newsos6)
7204       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7205       hardcode_direct=yes
7206       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7207       hardcode_libdir_separator=:
7208       hardcode_shlibpath_var=no
7209       ;;
7210
7211     openbsd*)
7212       hardcode_direct=yes
7213       hardcode_shlibpath_var=no
7214       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7215         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7216         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7217         export_dynamic_flag_spec='${wl}-E'
7218       else
7219        case $host_os in
7220          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7221            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7222            hardcode_libdir_flag_spec='-R$libdir'
7223            ;;
7224          *)
7225            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7226            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7227            ;;
7228        esac
7229       fi
7230       ;;
7231
7232     os2*)
7233       hardcode_libdir_flag_spec='-L$libdir'
7234       hardcode_minus_L=yes
7235       allow_undefined_flag=unsupported
7236       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'
7237       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7238       ;;
7239
7240     osf3*)
7241       if test "$GCC" = yes; then
7242         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7243         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'
7244       else
7245         allow_undefined_flag=' -expect_unresolved \*'
7246         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'
7247       fi
7248       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7249       hardcode_libdir_separator=:
7250       ;;
7251
7252     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7253       if test "$GCC" = yes; then
7254         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7255         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'
7256         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7257       else
7258         allow_undefined_flag=' -expect_unresolved \*'
7259         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'
7260         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7261         $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'
7262
7263         # Both c and cxx compiler support -rpath directly
7264         hardcode_libdir_flag_spec='-rpath $libdir'
7265       fi
7266       hardcode_libdir_separator=:
7267       ;;
7268
7269     sco3.2v5*)
7270       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7271       hardcode_shlibpath_var=no
7272       export_dynamic_flag_spec='${wl}-Bexport'
7273       runpath_var=LD_RUN_PATH
7274       hardcode_runpath_var=yes
7275       ;;
7276
7277     solaris*)
7278       no_undefined_flag=' -z text'
7279       if test "$GCC" = yes; then
7280         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7281         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7282           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7283       else
7284         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7285         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7286         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7287       fi
7288       hardcode_libdir_flag_spec='-R$libdir'
7289       hardcode_shlibpath_var=no
7290       case $host_os in
7291       solaris2.[0-5] | solaris2.[0-5].*) ;;
7292       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7293         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7294       esac
7295       link_all_deplibs=yes
7296       ;;
7297
7298     sunos4*)
7299       if test "x$host_vendor" = xsequent; then
7300         # Use $CC to link under sequent, because it throws in some extra .o
7301         # files that make .init and .fini sections work.
7302         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7303       else
7304         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7305       fi
7306       hardcode_libdir_flag_spec='-L$libdir'
7307       hardcode_direct=yes
7308       hardcode_minus_L=yes
7309       hardcode_shlibpath_var=no
7310       ;;
7311
7312     sysv4)
7313       case $host_vendor in
7314         sni)
7315           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316           hardcode_direct=yes # is this really true???
7317         ;;
7318         siemens)
7319           ## LD is ld it makes a PLAMLIB
7320           ## CC just makes a GrossModule.
7321           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7322           reload_cmds='$CC -r -o $output$reload_objs'
7323           hardcode_direct=no
7324         ;;
7325         motorola)
7326           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7327           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7328         ;;
7329       esac
7330       runpath_var='LD_RUN_PATH'
7331       hardcode_shlibpath_var=no
7332       ;;
7333
7334     sysv4.3*)
7335       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336       hardcode_shlibpath_var=no
7337       export_dynamic_flag_spec='-Bexport'
7338       ;;
7339
7340     sysv4*MP*)
7341       if test -d /usr/nec; then
7342         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7343         hardcode_shlibpath_var=no
7344         runpath_var=LD_RUN_PATH
7345         hardcode_runpath_var=yes
7346         ld_shlibs=yes
7347       fi
7348       ;;
7349
7350     sysv4.2uw2*)
7351       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7352       hardcode_direct=yes
7353       hardcode_minus_L=no
7354       hardcode_shlibpath_var=no
7355       hardcode_runpath_var=yes
7356       runpath_var=LD_RUN_PATH
7357       ;;
7358
7359    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7360       no_undefined_flag='${wl}-z ${wl}text'
7361       if test "$GCC" = yes; then
7362         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7363       else
7364         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7365       fi
7366       runpath_var='LD_RUN_PATH'
7367       hardcode_shlibpath_var=no
7368       ;;
7369
7370     sysv5*)
7371       no_undefined_flag=' -z text'
7372       # $CC -shared without GNU ld will not create a library from C++
7373       # object files and a static libstdc++, better avoid it by now
7374       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7375       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7376                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7377       hardcode_libdir_flag_spec=
7378       hardcode_shlibpath_var=no
7379       runpath_var='LD_RUN_PATH'
7380       ;;
7381
7382     uts4*)
7383       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7384       hardcode_libdir_flag_spec='-L$libdir'
7385       hardcode_shlibpath_var=no
7386       ;;
7387
7388     *)
7389       ld_shlibs=no
7390       ;;
7391     esac
7392   fi
7393
7394 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7395 echo "${ECHO_T}$ld_shlibs" >&6
7396 test "$ld_shlibs" = no && can_build_shared=no
7397
7398 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7399 if test "$GCC" = yes; then
7400   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7401 fi
7402
7403 #
7404 # Do we need to explicitly link libc?
7405 #
7406 case "x$archive_cmds_need_lc" in
7407 x|xyes)
7408   # Assume -lc should be added
7409   archive_cmds_need_lc=yes
7410
7411   if test "$enable_shared" = yes && test "$GCC" = yes; then
7412     case $archive_cmds in
7413     *'~'*)
7414       # FIXME: we may have to deal with multi-command sequences.
7415       ;;
7416     '$CC '*)
7417       # Test whether the compiler implicitly links with -lc since on some
7418       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7419       # to ld, don't add -lc before -lgcc.
7420       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7421 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7422       $rm conftest*
7423       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7424
7425       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7426   (eval $ac_compile) 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); } 2>conftest.err; then
7430         soname=conftest
7431         lib=conftest
7432         libobjs=conftest.$ac_objext
7433         deplibs=
7434         wl=$lt_prog_compiler_wl
7435         compiler_flags=-v
7436         linker_flags=-v
7437         verstring=
7438         output_objdir=.
7439         libname=conftest
7440         lt_save_allow_undefined_flag=$allow_undefined_flag
7441         allow_undefined_flag=
7442         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7443   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); }
7447         then
7448           archive_cmds_need_lc=no
7449         else
7450           archive_cmds_need_lc=yes
7451         fi
7452         allow_undefined_flag=$lt_save_allow_undefined_flag
7453       else
7454         cat conftest.err 1>&5
7455       fi
7456       $rm conftest*
7457       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7458 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7459       ;;
7460     esac
7461   fi
7462   ;;
7463 esac
7464
7465 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7466 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7467 hardcode_action=
7468 if test -n "$hardcode_libdir_flag_spec" || \
7469    test -n "$runpath_var " || \
7470    test "X$hardcode_automatic"="Xyes" ; then
7471
7472   # We can hardcode non-existant directories.
7473   if test "$hardcode_direct" != no &&
7474      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7475      # have to relink, otherwise we might link with an installed library
7476      # when we should be linking with a yet-to-be-installed one
7477      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7478      test "$hardcode_minus_L" != no; then
7479     # Linking always hardcodes the temporary library directory.
7480     hardcode_action=relink
7481   else
7482     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7483     hardcode_action=immediate
7484   fi
7485 else
7486   # We cannot hardcode anything, or else we can only hardcode existing
7487   # directories.
7488   hardcode_action=unsupported
7489 fi
7490 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7491 echo "${ECHO_T}$hardcode_action" >&6
7492
7493 if test "$hardcode_action" = relink; then
7494   # Fast installation is not supported
7495   enable_fast_install=no
7496 elif test "$shlibpath_overrides_runpath" = yes ||
7497      test "$enable_shared" = no; then
7498   # Fast installation is not necessary
7499   enable_fast_install=needless
7500 fi
7501
7502 striplib=
7503 old_striplib=
7504 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7505 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7506 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7507   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7508   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7509   echo "$as_me:$LINENO: result: yes" >&5
7510 echo "${ECHO_T}yes" >&6
7511 else
7512 # FIXME - insert some real tests, host_os isn't really good enough
7513   case $host_os in
7514    darwin*)
7515        if test -n "$STRIP" ; then
7516          striplib="$STRIP -x"
7517          echo "$as_me:$LINENO: result: yes" >&5
7518 echo "${ECHO_T}yes" >&6
7519        else
7520   echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6
7522 fi
7523        ;;
7524    *)
7525   echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6
7527     ;;
7528   esac
7529 fi
7530
7531 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7532 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7533 library_names_spec=
7534 libname_spec='lib$name'
7535 soname_spec=
7536 shrext=".so"
7537 postinstall_cmds=
7538 postuninstall_cmds=
7539 finish_cmds=
7540 finish_eval=
7541 shlibpath_var=
7542 shlibpath_overrides_runpath=unknown
7543 version_type=none
7544 dynamic_linker="$host_os ld.so"
7545 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7546 if test "$GCC" = yes; then
7547   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7548   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7549     # if the path contains ";" then we assume it to be the separator
7550     # otherwise default to the standard path separator (i.e. ":") - it is
7551     # assumed that no part of a normal pathname contains ";" but that should
7552     # okay in the real world where ";" in dirpaths is itself problematic.
7553     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7554   else
7555     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7556   fi
7557 else
7558   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7559 fi
7560 need_lib_prefix=unknown
7561 hardcode_into_libs=no
7562
7563 # when you set need_version to no, make sure it does not cause -set_version
7564 # flags to be left without arguments
7565 need_version=unknown
7566
7567 case $host_os in
7568 aix3*)
7569   version_type=linux
7570   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7571   shlibpath_var=LIBPATH
7572
7573   # AIX 3 has no versioning support, so we append a major version to the name.
7574   soname_spec='${libname}${release}${shared_ext}$major'
7575   ;;
7576
7577 aix4* | aix5*)
7578   version_type=linux
7579   need_lib_prefix=no
7580   need_version=no
7581   hardcode_into_libs=yes
7582   if test "$host_cpu" = ia64; then
7583     # AIX 5 supports IA64
7584     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7585     shlibpath_var=LD_LIBRARY_PATH
7586   else
7587     # With GCC up to 2.95.x, collect2 would create an import file
7588     # for dependence libraries.  The import file would start with
7589     # the line `#! .'.  This would cause the generated library to
7590     # depend on `.', always an invalid library.  This was fixed in
7591     # development snapshots of GCC prior to 3.0.
7592     case $host_os in
7593       aix4 | aix4.[01] | aix4.[01].*)
7594       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7595            echo ' yes '
7596            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7597         :
7598       else
7599         can_build_shared=no
7600       fi
7601       ;;
7602     esac
7603     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7604     # soname into executable. Probably we can add versioning support to
7605     # collect2, so additional links can be useful in future.
7606     if test "$aix_use_runtimelinking" = yes; then
7607       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7608       # instead of lib<name>.a to let people know that these are not
7609       # typical AIX shared libraries.
7610       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7611     else
7612       # We preserve .a as extension for shared libraries through AIX4.2
7613       # and later when we are not doing run time linking.
7614       library_names_spec='${libname}${release}.a $libname.a'
7615       soname_spec='${libname}${release}${shared_ext}$major'
7616     fi
7617     shlibpath_var=LIBPATH
7618   fi
7619   ;;
7620
7621 amigaos*)
7622   library_names_spec='$libname.ixlibrary $libname.a'
7623   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7624   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'
7625   ;;
7626
7627 beos*)
7628   library_names_spec='${libname}${shared_ext}'
7629   dynamic_linker="$host_os ld.so"
7630   shlibpath_var=LIBRARY_PATH
7631   ;;
7632
7633 bsdi4*)
7634   version_type=linux
7635   need_version=no
7636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7637   soname_spec='${libname}${release}${shared_ext}$major'
7638   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7639   shlibpath_var=LD_LIBRARY_PATH
7640   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7641   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7642   # the default ld.so.conf also contains /usr/contrib/lib and
7643   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7644   # libtool to hard-code these into programs
7645   ;;
7646
7647 cygwin* | mingw* | pw32*)
7648   version_type=windows
7649   shrext=".dll"
7650   need_version=no
7651   need_lib_prefix=no
7652
7653   case $GCC,$host_os in
7654   yes,cygwin* | yes,mingw* | yes,pw32*)
7655     library_names_spec='$libname.dll.a'
7656     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7657     postinstall_cmds='base_file=`basename \${file}`~
7658       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7659       dldir=$destdir/`dirname \$dlpath`~
7660       test -d \$dldir || mkdir -p \$dldir~
7661       $install_prog $dir/$dlname \$dldir/$dlname'
7662     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7663       dlpath=$dir/\$dldll~
7664        $rm \$dlpath'
7665     shlibpath_overrides_runpath=yes
7666
7667     case $host_os in
7668     cygwin*)
7669       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7670       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7671       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7672       ;;
7673     mingw*)
7674       # MinGW DLLs use traditional 'lib' prefix
7675       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7676       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7677       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7678         # It is most probably a Windows format PATH printed by
7679         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7680         # path with ; separators, and with drive letters. We can handle the
7681         # drive letters (cygwin fileutils understands them), so leave them,
7682         # especially as we might pass files found there to a mingw objdump,
7683         # which wouldn't understand a cygwinified path. Ahh.
7684         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7685       else
7686         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7687       fi
7688       ;;
7689     pw32*)
7690       # pw32 DLLs use 'pw' prefix rather than 'lib'
7691       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7692       ;;
7693     esac
7694     ;;
7695
7696   *)
7697     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7698     ;;
7699   esac
7700   dynamic_linker='Win32 ld.exe'
7701   # FIXME: first we should search . and the directory the executable is in
7702   shlibpath_var=PATH
7703   ;;
7704
7705 darwin* | rhapsody*)
7706   dynamic_linker="$host_os dyld"
7707   version_type=darwin
7708   need_lib_prefix=no
7709   need_version=no
7710   # FIXME: Relying on posixy $() will cause problems for
7711   #        cross-compilation, but unfortunately the echo tests do not
7712   #        yet detect zsh echo's removal of \ escapes.
7713   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7714   soname_spec='${libname}${release}${major}$shared_ext'
7715   shlibpath_overrides_runpath=yes
7716   shlibpath_var=DYLD_LIBRARY_PATH
7717   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7718   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7719   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7720   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"`
7721   fi
7722   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7723   ;;
7724
7725 dgux*)
7726   version_type=linux
7727   need_lib_prefix=no
7728   need_version=no
7729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7730   soname_spec='${libname}${release}${shared_ext}$major'
7731   shlibpath_var=LD_LIBRARY_PATH
7732   ;;
7733
7734 freebsd1*)
7735   dynamic_linker=no
7736   ;;
7737
7738 freebsd*)
7739   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7740   version_type=freebsd-$objformat
7741   case $version_type in
7742     freebsd-elf*)
7743       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7744       need_version=no
7745       need_lib_prefix=no
7746       ;;
7747     freebsd-*)
7748       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7749       need_version=yes
7750       ;;
7751   esac
7752   shlibpath_var=LD_LIBRARY_PATH
7753   case $host_os in
7754   freebsd2*)
7755     shlibpath_overrides_runpath=yes
7756     ;;
7757   freebsd3.01* | freebsdelf3.01*)
7758     shlibpath_overrides_runpath=yes
7759     hardcode_into_libs=yes
7760     ;;
7761   *) # from 3.2 on
7762     shlibpath_overrides_runpath=no
7763     hardcode_into_libs=yes
7764     ;;
7765   esac
7766   ;;
7767
7768 gnu*)
7769   version_type=linux
7770   need_lib_prefix=no
7771   need_version=no
7772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7773   soname_spec='${libname}${release}${shared_ext}$major'
7774   shlibpath_var=LD_LIBRARY_PATH
7775   hardcode_into_libs=yes
7776   ;;
7777
7778 hpux9* | hpux10* | hpux11*)
7779   # Give a soname corresponding to the major version so that dld.sl refuses to
7780   # link against other versions.
7781   version_type=sunos
7782   need_lib_prefix=no
7783   need_version=no
7784   case "$host_cpu" in
7785   ia64*)
7786     shrext='.so'
7787     hardcode_into_libs=yes
7788     dynamic_linker="$host_os dld.so"
7789     shlibpath_var=LD_LIBRARY_PATH
7790     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7792     soname_spec='${libname}${release}${shared_ext}$major'
7793     if test "X$HPUX_IA64_MODE" = X32; then
7794       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7795     else
7796       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7797     fi
7798     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7799     ;;
7800    hppa*64*)
7801      shrext='.sl'
7802      hardcode_into_libs=yes
7803      dynamic_linker="$host_os dld.sl"
7804      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7805      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7806      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807      soname_spec='${libname}${release}${shared_ext}$major'
7808      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7809      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7810      ;;
7811    *)
7812     shrext='.sl'
7813     dynamic_linker="$host_os dld.sl"
7814     shlibpath_var=SHLIB_PATH
7815     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7817     soname_spec='${libname}${release}${shared_ext}$major'
7818     ;;
7819   esac
7820   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7821   postinstall_cmds='chmod 555 $lib'
7822   ;;
7823
7824 irix5* | irix6* | nonstopux*)
7825   case $host_os in
7826     nonstopux*) version_type=nonstopux ;;
7827     *)
7828         if test "$lt_cv_prog_gnu_ld" = yes; then
7829                 version_type=linux
7830         else
7831                 version_type=irix
7832         fi ;;
7833   esac
7834   need_lib_prefix=no
7835   need_version=no
7836   soname_spec='${libname}${release}${shared_ext}$major'
7837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7838   case $host_os in
7839   irix5* | nonstopux*)
7840     libsuff= shlibsuff=
7841     ;;
7842   *)
7843     case $LD in # libtool.m4 will add one of these switches to LD
7844     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7845       libsuff= shlibsuff= libmagic=32-bit;;
7846     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7847       libsuff=32 shlibsuff=N32 libmagic=N32;;
7848     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7849       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7850     *) libsuff= shlibsuff= libmagic=never-match;;
7851     esac
7852     ;;
7853   esac
7854   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7855   shlibpath_overrides_runpath=no
7856   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7857   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7858   hardcode_into_libs=yes
7859   ;;
7860
7861 # No shared lib support for Linux oldld, aout, or coff.
7862 linux*oldld* | linux*aout* | linux*coff*)
7863   dynamic_linker=no
7864   ;;
7865
7866 # This must be Linux ELF.
7867 linux*)
7868   version_type=linux
7869   need_lib_prefix=no
7870   need_version=no
7871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7872   soname_spec='${libname}${release}${shared_ext}$major'
7873   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7874   shlibpath_var=LD_LIBRARY_PATH
7875   shlibpath_overrides_runpath=no
7876   # This implies no fast_install, which is unacceptable.
7877   # Some rework will be needed to allow for fast_install
7878   # before this can be enabled.
7879   hardcode_into_libs=yes
7880
7881   # We used to test for /lib/ld.so.1 and disable shared libraries on
7882   # powerpc, because MkLinux only supported shared libraries with the
7883   # GNU dynamic linker.  Since this was broken with cross compilers,
7884   # most powerpc-linux boxes support dynamic linking these days and
7885   # people can always --disable-shared, the test was removed, and we
7886   # assume the GNU/Linux dynamic linker is in use.
7887   dynamic_linker='GNU/Linux ld.so'
7888   ;;
7889
7890 netbsd*)
7891   version_type=sunos
7892   need_lib_prefix=no
7893   need_version=no
7894   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7896     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7897     dynamic_linker='NetBSD (a.out) ld.so'
7898   else
7899     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7900     soname_spec='${libname}${release}${shared_ext}$major'
7901     dynamic_linker='NetBSD ld.elf_so'
7902   fi
7903   shlibpath_var=LD_LIBRARY_PATH
7904   shlibpath_overrides_runpath=yes
7905   hardcode_into_libs=yes
7906   ;;
7907
7908 newsos6)
7909   version_type=linux
7910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7911   shlibpath_var=LD_LIBRARY_PATH
7912   shlibpath_overrides_runpath=yes
7913   ;;
7914
7915 nto-qnx)
7916   version_type=linux
7917   need_lib_prefix=no
7918   need_version=no
7919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7920   soname_spec='${libname}${release}${shared_ext}$major'
7921   shlibpath_var=LD_LIBRARY_PATH
7922   shlibpath_overrides_runpath=yes
7923   ;;
7924
7925 openbsd*)
7926   version_type=sunos
7927   need_lib_prefix=no
7928   need_version=no
7929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7930   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7931   shlibpath_var=LD_LIBRARY_PATH
7932   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7933     case $host_os in
7934       openbsd2.[89] | openbsd2.[89].*)
7935         shlibpath_overrides_runpath=no
7936         ;;
7937       *)
7938         shlibpath_overrides_runpath=yes
7939         ;;
7940       esac
7941   else
7942     shlibpath_overrides_runpath=yes
7943   fi
7944   ;;
7945
7946 os2*)
7947   libname_spec='$name'
7948   shrext=".dll"
7949   need_lib_prefix=no
7950   library_names_spec='$libname${shared_ext} $libname.a'
7951   dynamic_linker='OS/2 ld.exe'
7952   shlibpath_var=LIBPATH
7953   ;;
7954
7955 osf3* | osf4* | osf5*)
7956   version_type=osf
7957   need_lib_prefix=no
7958   need_version=no
7959   soname_spec='${libname}${release}${shared_ext}$major'
7960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961   shlibpath_var=LD_LIBRARY_PATH
7962   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7963   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7964   ;;
7965
7966 sco3.2v5*)
7967   version_type=osf
7968   soname_spec='${libname}${release}${shared_ext}$major'
7969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7970   shlibpath_var=LD_LIBRARY_PATH
7971   ;;
7972
7973 solaris*)
7974   version_type=linux
7975   need_lib_prefix=no
7976   need_version=no
7977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7978   soname_spec='${libname}${release}${shared_ext}$major'
7979   shlibpath_var=LD_LIBRARY_PATH
7980   shlibpath_overrides_runpath=yes
7981   hardcode_into_libs=yes
7982   # ldd complains unless libraries are executable
7983   postinstall_cmds='chmod +x $lib'
7984   ;;
7985
7986 sunos4*)
7987   version_type=sunos
7988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7989   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7990   shlibpath_var=LD_LIBRARY_PATH
7991   shlibpath_overrides_runpath=yes
7992   if test "$with_gnu_ld" = yes; then
7993     need_lib_prefix=no
7994   fi
7995   need_version=yes
7996   ;;
7997
7998 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7999   version_type=linux
8000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8001   soname_spec='${libname}${release}${shared_ext}$major'
8002   shlibpath_var=LD_LIBRARY_PATH
8003   case $host_vendor in
8004     sni)
8005       shlibpath_overrides_runpath=no
8006       need_lib_prefix=no
8007       export_dynamic_flag_spec='${wl}-Blargedynsym'
8008       runpath_var=LD_RUN_PATH
8009       ;;
8010     siemens)
8011       need_lib_prefix=no
8012       ;;
8013     motorola)
8014       need_lib_prefix=no
8015       need_version=no
8016       shlibpath_overrides_runpath=no
8017       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8018       ;;
8019   esac
8020   ;;
8021
8022 sysv4*MP*)
8023   if test -d /usr/nec ;then
8024     version_type=linux
8025     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8026     soname_spec='$libname${shared_ext}.$major'
8027     shlibpath_var=LD_LIBRARY_PATH
8028   fi
8029   ;;
8030
8031 uts4*)
8032   version_type=linux
8033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8034   soname_spec='${libname}${release}${shared_ext}$major'
8035   shlibpath_var=LD_LIBRARY_PATH
8036   ;;
8037
8038 *)
8039   dynamic_linker=no
8040   ;;
8041 esac
8042 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8043 echo "${ECHO_T}$dynamic_linker" >&6
8044 test "$dynamic_linker" = no && can_build_shared=no
8045
8046 if test "x$enable_dlopen" != xyes; then
8047   enable_dlopen=unknown
8048   enable_dlopen_self=unknown
8049   enable_dlopen_self_static=unknown
8050 else
8051   lt_cv_dlopen=no
8052   lt_cv_dlopen_libs=
8053
8054   case $host_os in
8055   beos*)
8056     lt_cv_dlopen="load_add_on"
8057     lt_cv_dlopen_libs=
8058     lt_cv_dlopen_self=yes
8059     ;;
8060
8061   mingw* | pw32*)
8062     lt_cv_dlopen="LoadLibrary"
8063     lt_cv_dlopen_libs=
8064    ;;
8065
8066   cygwin*)
8067     lt_cv_dlopen="dlopen"
8068     lt_cv_dlopen_libs=
8069    ;;
8070
8071   darwin*)
8072   # if libdl is installed we need to link against it
8073     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8074 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8075 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8076   echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078   ac_check_lib_save_LIBS=$LIBS
8079 LIBS="-ldl  $LIBS"
8080 cat >conftest.$ac_ext <<_ACEOF
8081 #line $LINENO "configure"
8082 /* confdefs.h.  */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h.  */
8087
8088 /* Override any gcc2 internal prototype to avoid an error.  */
8089 #ifdef __cplusplus
8090 extern "C"
8091 #endif
8092 /* We use char because int might match the return type of a gcc2
8093    builtin and then its argument prototype would still apply.  */
8094 char dlopen ();
8095 int
8096 main ()
8097 {
8098 dlopen ();
8099   ;
8100   return 0;
8101 }
8102 _ACEOF
8103 rm -f conftest.$ac_objext conftest$ac_exeext
8104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8105   (eval $ac_link) 2>&5
8106   ac_status=$?
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); } &&
8109          { ac_try='test -s conftest$ac_exeext'
8110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111   (eval $ac_try) 2>&5
8112   ac_status=$?
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); }; }; then
8115   ac_cv_lib_dl_dlopen=yes
8116 else
8117   echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8119
8120 ac_cv_lib_dl_dlopen=no
8121 fi
8122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8123 LIBS=$ac_check_lib_save_LIBS
8124 fi
8125 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8126 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8127 if test $ac_cv_lib_dl_dlopen = yes; then
8128   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8129 else
8130
8131     lt_cv_dlopen="dyld"
8132     lt_cv_dlopen_libs=
8133     lt_cv_dlopen_self=yes
8134
8135 fi
8136
8137    ;;
8138
8139   *)
8140     echo "$as_me:$LINENO: checking for shl_load" >&5
8141 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8142 if test "${ac_cv_func_shl_load+set}" = set; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145   cat >conftest.$ac_ext <<_ACEOF
8146 #line $LINENO "configure"
8147 /* confdefs.h.  */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h.  */
8152 /* System header to define __stub macros and hopefully few prototypes,
8153     which can conflict with char shl_load (); below.
8154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8155     <limits.h> exists even on freestanding compilers.  */
8156 #ifdef __STDC__
8157 # include <limits.h>
8158 #else
8159 # include <assert.h>
8160 #endif
8161 /* Override any gcc2 internal prototype to avoid an error.  */
8162 #ifdef __cplusplus
8163 extern "C"
8164 {
8165 #endif
8166 /* We use char because int might match the return type of a gcc2
8167    builtin and then its argument prototype would still apply.  */
8168 char shl_load ();
8169 /* The GNU C library defines this for functions which it implements
8170     to always fail with ENOSYS.  Some functions are actually named
8171     something starting with __ and the normal name is an alias.  */
8172 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8173 choke me
8174 #else
8175 char (*f) () = shl_load;
8176 #endif
8177 #ifdef __cplusplus
8178 }
8179 #endif
8180
8181 int
8182 main ()
8183 {
8184 return f != shl_load;
8185   ;
8186   return 0;
8187 }
8188 _ACEOF
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191   (eval $ac_link) 2>&5
8192   ac_status=$?
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); } &&
8195          { ac_try='test -s conftest$ac_exeext'
8196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197   (eval $ac_try) 2>&5
8198   ac_status=$?
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); }; }; then
8201   ac_cv_func_shl_load=yes
8202 else
8203   echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8205
8206 ac_cv_func_shl_load=no
8207 fi
8208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8209 fi
8210 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8211 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8212 if test $ac_cv_func_shl_load = yes; then
8213   lt_cv_dlopen="shl_load"
8214 else
8215   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8216 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8217 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8218   echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220   ac_check_lib_save_LIBS=$LIBS
8221 LIBS="-ldld  $LIBS"
8222 cat >conftest.$ac_ext <<_ACEOF
8223 #line $LINENO "configure"
8224 /* confdefs.h.  */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h.  */
8229
8230 /* Override any gcc2 internal prototype to avoid an error.  */
8231 #ifdef __cplusplus
8232 extern "C"
8233 #endif
8234 /* We use char because int might match the return type of a gcc2
8235    builtin and then its argument prototype would still apply.  */
8236 char shl_load ();
8237 int
8238 main ()
8239 {
8240 shl_load ();
8241   ;
8242   return 0;
8243 }
8244 _ACEOF
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8247   (eval $ac_link) 2>&5
8248   ac_status=$?
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   (exit $ac_status); } &&
8251          { ac_try='test -s conftest$ac_exeext'
8252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253   (eval $ac_try) 2>&5
8254   ac_status=$?
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); }; }; then
8257   ac_cv_lib_dld_shl_load=yes
8258 else
8259   echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8261
8262 ac_cv_lib_dld_shl_load=no
8263 fi
8264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8266 fi
8267 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8268 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8269 if test $ac_cv_lib_dld_shl_load = yes; then
8270   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8271 else
8272   echo "$as_me:$LINENO: checking for dlopen" >&5
8273 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8274 if test "${ac_cv_func_dlopen+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   cat >conftest.$ac_ext <<_ACEOF
8278 #line $LINENO "configure"
8279 /* confdefs.h.  */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h.  */
8284 /* System header to define __stub macros and hopefully few prototypes,
8285     which can conflict with char dlopen (); below.
8286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8287     <limits.h> exists even on freestanding compilers.  */
8288 #ifdef __STDC__
8289 # include <limits.h>
8290 #else
8291 # include <assert.h>
8292 #endif
8293 /* Override any gcc2 internal prototype to avoid an error.  */
8294 #ifdef __cplusplus
8295 extern "C"
8296 {
8297 #endif
8298 /* We use char because int might match the return type of a gcc2
8299    builtin and then its argument prototype would still apply.  */
8300 char dlopen ();
8301 /* The GNU C library defines this for functions which it implements
8302     to always fail with ENOSYS.  Some functions are actually named
8303     something starting with __ and the normal name is an alias.  */
8304 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8305 choke me
8306 #else
8307 char (*f) () = dlopen;
8308 #endif
8309 #ifdef __cplusplus
8310 }
8311 #endif
8312
8313 int
8314 main ()
8315 {
8316 return f != dlopen;
8317   ;
8318   return 0;
8319 }
8320 _ACEOF
8321 rm -f conftest.$ac_objext conftest$ac_exeext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8323   (eval $ac_link) 2>&5
8324   ac_status=$?
8325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326   (exit $ac_status); } &&
8327          { ac_try='test -s conftest$ac_exeext'
8328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329   (eval $ac_try) 2>&5
8330   ac_status=$?
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); }; }; then
8333   ac_cv_func_dlopen=yes
8334 else
8335   echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8337
8338 ac_cv_func_dlopen=no
8339 fi
8340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8341 fi
8342 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8343 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8344 if test $ac_cv_func_dlopen = yes; then
8345   lt_cv_dlopen="dlopen"
8346 else
8347   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8350   echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352   ac_check_lib_save_LIBS=$LIBS
8353 LIBS="-ldl  $LIBS"
8354 cat >conftest.$ac_ext <<_ACEOF
8355 #line $LINENO "configure"
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361
8362 /* Override any gcc2 internal prototype to avoid an error.  */
8363 #ifdef __cplusplus
8364 extern "C"
8365 #endif
8366 /* We use char because int might match the return type of a gcc2
8367    builtin and then its argument prototype would still apply.  */
8368 char dlopen ();
8369 int
8370 main ()
8371 {
8372 dlopen ();
8373   ;
8374   return 0;
8375 }
8376 _ACEOF
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8379   (eval $ac_link) 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -s conftest$ac_exeext'
8384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385   (eval $ac_try) 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); }; }; then
8389   ac_cv_lib_dl_dlopen=yes
8390 else
8391   echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8393
8394 ac_cv_lib_dl_dlopen=no
8395 fi
8396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8397 LIBS=$ac_check_lib_save_LIBS
8398 fi
8399 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8400 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8401 if test $ac_cv_lib_dl_dlopen = yes; then
8402   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8403 else
8404   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8405 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8406 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8407   echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409   ac_check_lib_save_LIBS=$LIBS
8410 LIBS="-lsvld  $LIBS"
8411 cat >conftest.$ac_ext <<_ACEOF
8412 #line $LINENO "configure"
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418
8419 /* Override any gcc2 internal prototype to avoid an error.  */
8420 #ifdef __cplusplus
8421 extern "C"
8422 #endif
8423 /* We use char because int might match the return type of a gcc2
8424    builtin and then its argument prototype would still apply.  */
8425 char dlopen ();
8426 int
8427 main ()
8428 {
8429 dlopen ();
8430   ;
8431   return 0;
8432 }
8433 _ACEOF
8434 rm -f conftest.$ac_objext conftest$ac_exeext
8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436   (eval $ac_link) 2>&5
8437   ac_status=$?
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); } &&
8440          { ac_try='test -s conftest$ac_exeext'
8441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442   (eval $ac_try) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); }; }; then
8446   ac_cv_lib_svld_dlopen=yes
8447 else
8448   echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 ac_cv_lib_svld_dlopen=no
8452 fi
8453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8454 LIBS=$ac_check_lib_save_LIBS
8455 fi
8456 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8457 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8458 if test $ac_cv_lib_svld_dlopen = yes; then
8459   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8460 else
8461   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8462 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8463 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8464   echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466   ac_check_lib_save_LIBS=$LIBS
8467 LIBS="-ldld  $LIBS"
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8470 /* confdefs.h.  */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h.  */
8475
8476 /* Override any gcc2 internal prototype to avoid an error.  */
8477 #ifdef __cplusplus
8478 extern "C"
8479 #endif
8480 /* We use char because int might match the return type of a gcc2
8481    builtin and then its argument prototype would still apply.  */
8482 char dld_link ();
8483 int
8484 main ()
8485 {
8486 dld_link ();
8487   ;
8488   return 0;
8489 }
8490 _ACEOF
8491 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8493   (eval $ac_link) 2>&5
8494   ac_status=$?
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); } &&
8497          { ac_try='test -s conftest$ac_exeext'
8498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499   (eval $ac_try) 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; }; then
8503   ac_cv_lib_dld_dld_link=yes
8504 else
8505   echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 ac_cv_lib_dld_dld_link=no
8509 fi
8510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8511 LIBS=$ac_check_lib_save_LIBS
8512 fi
8513 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8514 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8515 if test $ac_cv_lib_dld_dld_link = yes; then
8516   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8517 fi
8518
8519
8520 fi
8521
8522
8523 fi
8524
8525
8526 fi
8527
8528
8529 fi
8530
8531
8532 fi
8533
8534     ;;
8535   esac
8536
8537   if test "x$lt_cv_dlopen" != xno; then
8538     enable_dlopen=yes
8539   else
8540     enable_dlopen=no
8541   fi
8542
8543   case $lt_cv_dlopen in
8544   dlopen)
8545     save_CPPFLAGS="$CPPFLAGS"
8546     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8547
8548     save_LDFLAGS="$LDFLAGS"
8549     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8550
8551     save_LIBS="$LIBS"
8552     LIBS="$lt_cv_dlopen_libs $LIBS"
8553
8554     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8555 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8556 if test "${lt_cv_dlopen_self+set}" = set; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559           if test "$cross_compiling" = yes; then :
8560   lt_cv_dlopen_self=cross
8561 else
8562   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8563   lt_status=$lt_dlunknown
8564   cat > conftest.$ac_ext <<EOF
8565 #line 8565 "configure"
8566 #include "confdefs.h"
8567
8568 #if HAVE_DLFCN_H
8569 #include <dlfcn.h>
8570 #endif
8571
8572 #include <stdio.h>
8573
8574 #ifdef RTLD_GLOBAL
8575 #  define LT_DLGLOBAL           RTLD_GLOBAL
8576 #else
8577 #  ifdef DL_GLOBAL
8578 #    define LT_DLGLOBAL         DL_GLOBAL
8579 #  else
8580 #    define LT_DLGLOBAL         0
8581 #  endif
8582 #endif
8583
8584 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8585    find out it does not work in some platform. */
8586 #ifndef LT_DLLAZY_OR_NOW
8587 #  ifdef RTLD_LAZY
8588 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8589 #  else
8590 #    ifdef DL_LAZY
8591 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8592 #    else
8593 #      ifdef RTLD_NOW
8594 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8595 #      else
8596 #        ifdef DL_NOW
8597 #          define LT_DLLAZY_OR_NOW      DL_NOW
8598 #        else
8599 #          define LT_DLLAZY_OR_NOW      0
8600 #        endif
8601 #      endif
8602 #    endif
8603 #  endif
8604 #endif
8605
8606 #ifdef __cplusplus
8607 extern "C" void exit (int);
8608 #endif
8609
8610 void fnord() { int i=42;}
8611 int main ()
8612 {
8613   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8614   int status = $lt_dlunknown;
8615
8616   if (self)
8617     {
8618       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8619       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8620       /* dlclose (self); */
8621     }
8622
8623     exit (status);
8624 }
8625 EOF
8626   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8627   (eval $ac_link) 2>&5
8628   ac_status=$?
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8631     (./conftest; exit; ) 2>/dev/null
8632     lt_status=$?
8633     case x$lt_status in
8634       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8635       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8636       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8637     esac
8638   else :
8639     # compilation failed
8640     lt_cv_dlopen_self=no
8641   fi
8642 fi
8643 rm -fr conftest*
8644
8645
8646 fi
8647 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8648 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8649
8650     if test "x$lt_cv_dlopen_self" = xyes; then
8651       LDFLAGS="$LDFLAGS $link_static_flag"
8652       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8653 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8654 if test "${lt_cv_dlopen_self_static+set}" = set; then
8655   echo $ECHO_N "(cached) $ECHO_C" >&6
8656 else
8657           if test "$cross_compiling" = yes; then :
8658   lt_cv_dlopen_self_static=cross
8659 else
8660   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8661   lt_status=$lt_dlunknown
8662   cat > conftest.$ac_ext <<EOF
8663 #line 8663 "configure"
8664 #include "confdefs.h"
8665
8666 #if HAVE_DLFCN_H
8667 #include <dlfcn.h>
8668 #endif
8669
8670 #include <stdio.h>
8671
8672 #ifdef RTLD_GLOBAL
8673 #  define LT_DLGLOBAL           RTLD_GLOBAL
8674 #else
8675 #  ifdef DL_GLOBAL
8676 #    define LT_DLGLOBAL         DL_GLOBAL
8677 #  else
8678 #    define LT_DLGLOBAL         0
8679 #  endif
8680 #endif
8681
8682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8683    find out it does not work in some platform. */
8684 #ifndef LT_DLLAZY_OR_NOW
8685 #  ifdef RTLD_LAZY
8686 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8687 #  else
8688 #    ifdef DL_LAZY
8689 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8690 #    else
8691 #      ifdef RTLD_NOW
8692 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8693 #      else
8694 #        ifdef DL_NOW
8695 #          define LT_DLLAZY_OR_NOW      DL_NOW
8696 #        else
8697 #          define LT_DLLAZY_OR_NOW      0
8698 #        endif
8699 #      endif
8700 #    endif
8701 #  endif
8702 #endif
8703
8704 #ifdef __cplusplus
8705 extern "C" void exit (int);
8706 #endif
8707
8708 void fnord() { int i=42;}
8709 int main ()
8710 {
8711   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8712   int status = $lt_dlunknown;
8713
8714   if (self)
8715     {
8716       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8717       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8718       /* dlclose (self); */
8719     }
8720
8721     exit (status);
8722 }
8723 EOF
8724   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8725   (eval $ac_link) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8729     (./conftest; exit; ) 2>/dev/null
8730     lt_status=$?
8731     case x$lt_status in
8732       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8733       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8734       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8735     esac
8736   else :
8737     # compilation failed
8738     lt_cv_dlopen_self_static=no
8739   fi
8740 fi
8741 rm -fr conftest*
8742
8743
8744 fi
8745 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8746 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8747     fi
8748
8749     CPPFLAGS="$save_CPPFLAGS"
8750     LDFLAGS="$save_LDFLAGS"
8751     LIBS="$save_LIBS"
8752     ;;
8753   esac
8754
8755   case $lt_cv_dlopen_self in
8756   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8757   *) enable_dlopen_self=unknown ;;
8758   esac
8759
8760   case $lt_cv_dlopen_self_static in
8761   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8762   *) enable_dlopen_self_static=unknown ;;
8763   esac
8764 fi
8765
8766
8767 # Report which librarie types wil actually be built
8768 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8769 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8770 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8771 echo "${ECHO_T}$can_build_shared" >&6
8772
8773 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8774 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8775 test "$can_build_shared" = "no" && enable_shared=no
8776
8777 # On AIX, shared libraries and static libraries use the same namespace, and
8778 # are all built from PIC.
8779 case "$host_os" in
8780 aix3*)
8781   test "$enable_shared" = yes && enable_static=no
8782   if test -n "$RANLIB"; then
8783     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8784     postinstall_cmds='$RANLIB $lib'
8785   fi
8786   ;;
8787
8788 aix4*)
8789   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8790     test "$enable_shared" = yes && enable_static=no
8791   fi
8792   ;;
8793   darwin* | rhapsody*)
8794   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8795     archive_cmds_need_lc=no
8796     case "$host_os" in
8797     rhapsody* | darwin1.[012])
8798       allow_undefined_flag='-undefined suppress'
8799       ;;
8800     *) # Darwin 1.3 on
8801       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8802       ;;
8803     esac
8804     # FIXME: Relying on posixy $() will cause problems for
8805     #        cross-compilation, but unfortunately the echo tests do not
8806     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8807     #          `"' quotes if we put them in here... so don't!
8808                 output_verbose_link_cmd='echo'
8809     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8810     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8811     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8812                   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}'
8813                   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}'
8814     hardcode_direct=no
8815     hardcode_automatic=yes
8816     hardcode_shlibpath_var=unsupported
8817     whole_archive_flag_spec='-all_load $convenience'
8818     link_all_deplibs=yes
8819     fi
8820     ;;
8821 esac
8822 echo "$as_me:$LINENO: result: $enable_shared" >&5
8823 echo "${ECHO_T}$enable_shared" >&6
8824
8825 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8826 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8827 # Make sure either enable_shared or enable_static is yes.
8828 test "$enable_shared" = yes || enable_static=yes
8829 echo "$as_me:$LINENO: result: $enable_static" >&5
8830 echo "${ECHO_T}$enable_static" >&6
8831
8832 # The else clause should only fire when bootstrapping the
8833 # libtool distribution, otherwise you forgot to ship ltmain.sh
8834 # with your package, and you will get complaints that there are
8835 # no rules to generate ltmain.sh.
8836 if test -f "$ltmain"; then
8837   # See if we are running on zsh, and set the options which allow our commands through
8838   # without removal of \ escapes.
8839   if test -n "${ZSH_VERSION+set}" ; then
8840     setopt NO_GLOB_SUBST
8841   fi
8842   # Now quote all the things that may contain metacharacters while being
8843   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8844   # variables and quote the copies for generation of the libtool script.
8845   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8846     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8847     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8848     deplibs_check_method reload_flag reload_cmds need_locks \
8849     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8850     lt_cv_sys_global_symbol_to_c_name_address \
8851     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8852     old_postinstall_cmds old_postuninstall_cmds \
8853     compiler \
8854     CC \
8855     LD \
8856     lt_prog_compiler_wl \
8857     lt_prog_compiler_pic \
8858     lt_prog_compiler_static \
8859     lt_prog_compiler_no_builtin_flag \
8860     export_dynamic_flag_spec \
8861     thread_safe_flag_spec \
8862     whole_archive_flag_spec \
8863     enable_shared_with_static_runtimes \
8864     old_archive_cmds \
8865     old_archive_from_new_cmds \
8866     predep_objects \
8867     postdep_objects \
8868     predeps \
8869     postdeps \
8870     compiler_lib_search_path \
8871     archive_cmds \
8872     archive_expsym_cmds \
8873     postinstall_cmds \
8874     postuninstall_cmds \
8875     old_archive_from_expsyms_cmds \
8876     allow_undefined_flag \
8877     no_undefined_flag \
8878     export_symbols_cmds \
8879     hardcode_libdir_flag_spec \
8880     hardcode_libdir_flag_spec_ld \
8881     hardcode_libdir_separator \
8882     hardcode_automatic \
8883     module_cmds \
8884     module_expsym_cmds \
8885     lt_cv_prog_compiler_c_o \
8886     exclude_expsyms \
8887     include_expsyms; do
8888
8889     case $var in
8890     old_archive_cmds | \
8891     old_archive_from_new_cmds | \
8892     archive_cmds | \
8893     archive_expsym_cmds | \
8894     module_cmds | \
8895     module_expsym_cmds | \
8896     old_archive_from_expsyms_cmds | \
8897     export_symbols_cmds | \
8898     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8899     postinstall_cmds | postuninstall_cmds | \
8900     old_postinstall_cmds | old_postuninstall_cmds | \
8901     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8902       # Double-quote double-evaled strings.
8903       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8904       ;;
8905     *)
8906       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8907       ;;
8908     esac
8909   done
8910
8911   case $lt_echo in
8912   *'\$0 --fallback-echo"')
8913     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8914     ;;
8915   esac
8916
8917 cfgfile="${ofile}T"
8918   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8919   $rm -f "$cfgfile"
8920   { echo "$as_me:$LINENO: creating $ofile" >&5
8921 echo "$as_me: creating $ofile" >&6;}
8922
8923   cat <<__EOF__ >> "$cfgfile"
8924 #! $SHELL
8925
8926 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8927 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8928 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8929 #
8930 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8931 # Free Software Foundation, Inc.
8932 #
8933 # This file is part of GNU Libtool:
8934 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8935 #
8936 # This program is free software; you can redistribute it and/or modify
8937 # it under the terms of the GNU General Public License as published by
8938 # the Free Software Foundation; either version 2 of the License, or
8939 # (at your option) any later version.
8940 #
8941 # This program is distributed in the hope that it will be useful, but
8942 # WITHOUT ANY WARRANTY; without even the implied warranty of
8943 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8944 # General Public License for more details.
8945 #
8946 # You should have received a copy of the GNU General Public License
8947 # along with this program; if not, write to the Free Software
8948 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8949 #
8950 # As a special exception to the GNU General Public License, if you
8951 # distribute this file as part of a program that contains a
8952 # configuration script generated by Autoconf, you may include it under
8953 # the same distribution terms that you use for the rest of that program.
8954
8955 # A sed program that does not truncate output.
8956 SED=$lt_SED
8957
8958 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8959 Xsed="$SED -e s/^X//"
8960
8961 # The HP-UX ksh and POSIX shell print the target directory to stdout
8962 # if CDPATH is set.
8963 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8964
8965 # The names of the tagged configurations supported by this script.
8966 available_tags=
8967
8968 # ### BEGIN LIBTOOL CONFIG
8969
8970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8971
8972 # Shell to use when invoking shell scripts.
8973 SHELL=$lt_SHELL
8974
8975 # Whether or not to build shared libraries.
8976 build_libtool_libs=$enable_shared
8977
8978 # Whether or not to build static libraries.
8979 build_old_libs=$enable_static
8980
8981 # Whether or not to add -lc for building shared libraries.
8982 build_libtool_need_lc=$archive_cmds_need_lc
8983
8984 # Whether or not to disallow shared libs when runtime libs are static
8985 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8986
8987 # Whether or not to optimize for fast installation.
8988 fast_install=$enable_fast_install
8989
8990 # The host system.
8991 host_alias=$host_alias
8992 host=$host
8993
8994 # An echo program that does not interpret backslashes.
8995 echo=$lt_echo
8996
8997 # The archiver.
8998 AR=$lt_AR
8999 AR_FLAGS=$lt_AR_FLAGS
9000
9001 # A C compiler.
9002 LTCC=$lt_LTCC
9003
9004 # A language-specific compiler.
9005 CC=$lt_compiler
9006
9007 # Is the compiler the GNU C compiler?
9008 with_gcc=$GCC
9009
9010 # An ERE matcher.
9011 EGREP=$lt_EGREP
9012
9013 # The linker used to build libraries.
9014 LD=$lt_LD
9015
9016 # Whether we need hard or soft links.
9017 LN_S=$lt_LN_S
9018
9019 # A BSD-compatible nm program.
9020 NM=$lt_NM
9021
9022 # A symbol stripping program
9023 STRIP=$STRIP
9024
9025 # Used to examine libraries when file_magic_cmd begins "file"
9026 MAGIC_CMD=$MAGIC_CMD
9027
9028 # Used on cygwin: DLL creation program.
9029 DLLTOOL="$DLLTOOL"
9030
9031 # Used on cygwin: object dumper.
9032 OBJDUMP="$OBJDUMP"
9033
9034 # Used on cygwin: assembler.
9035 AS="$AS"
9036
9037 # The name of the directory that contains temporary libtool files.
9038 objdir=$objdir
9039
9040 # How to create reloadable object files.
9041 reload_flag=$lt_reload_flag
9042 reload_cmds=$lt_reload_cmds
9043
9044 # How to pass a linker flag through the compiler.
9045 wl=$lt_lt_prog_compiler_wl
9046
9047 # Object file suffix (normally "o").
9048 objext="$ac_objext"
9049
9050 # Old archive suffix (normally "a").
9051 libext="$libext"
9052
9053 # Shared library suffix (normally ".so").
9054 shrext='$shrext'
9055
9056 # Executable file suffix (normally "").
9057 exeext="$exeext"
9058
9059 # Additional compiler flags for building library objects.
9060 pic_flag=$lt_lt_prog_compiler_pic
9061 pic_mode=$pic_mode
9062
9063 # What is the maximum length of a command?
9064 max_cmd_len=$lt_cv_sys_max_cmd_len
9065
9066 # Does compiler simultaneously support -c and -o options?
9067 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9068
9069 # Must we lock files when doing compilation ?
9070 need_locks=$lt_need_locks
9071
9072 # Do we need the lib prefix for modules?
9073 need_lib_prefix=$need_lib_prefix
9074
9075 # Do we need a version for libraries?
9076 need_version=$need_version
9077
9078 # Whether dlopen is supported.
9079 dlopen_support=$enable_dlopen
9080
9081 # Whether dlopen of programs is supported.
9082 dlopen_self=$enable_dlopen_self
9083
9084 # Whether dlopen of statically linked programs is supported.
9085 dlopen_self_static=$enable_dlopen_self_static
9086
9087 # Compiler flag to prevent dynamic linking.
9088 link_static_flag=$lt_lt_prog_compiler_static
9089
9090 # Compiler flag to turn off builtin functions.
9091 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9092
9093 # Compiler flag to allow reflexive dlopens.
9094 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9095
9096 # Compiler flag to generate shared objects directly from archives.
9097 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9098
9099 # Compiler flag to generate thread-safe objects.
9100 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9101
9102 # Library versioning type.
9103 version_type=$version_type
9104
9105 # Format of library name prefix.
9106 libname_spec=$lt_libname_spec
9107
9108 # List of archive names.  First name is the real one, the rest are links.
9109 # The last name is the one that the linker finds with -lNAME.
9110 library_names_spec=$lt_library_names_spec
9111
9112 # The coded name of the library, if different from the real name.
9113 soname_spec=$lt_soname_spec
9114
9115 # Commands used to build and install an old-style archive.
9116 RANLIB=$lt_RANLIB
9117 old_archive_cmds=$lt_old_archive_cmds
9118 old_postinstall_cmds=$lt_old_postinstall_cmds
9119 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9120
9121 # Create an old-style archive from a shared archive.
9122 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9123
9124 # Create a temporary old-style archive to link instead of a shared archive.
9125 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9126
9127 # Commands used to build and install a shared archive.
9128 archive_cmds=$lt_archive_cmds
9129 archive_expsym_cmds=$lt_archive_expsym_cmds
9130 postinstall_cmds=$lt_postinstall_cmds
9131 postuninstall_cmds=$lt_postuninstall_cmds
9132
9133 # Commands used to build a loadable module (assumed same as above if empty)
9134 module_cmds=$lt_module_cmds
9135 module_expsym_cmds=$lt_module_expsym_cmds
9136
9137 # Commands to strip libraries.
9138 old_striplib=$lt_old_striplib
9139 striplib=$lt_striplib
9140
9141 # Dependencies to place before the objects being linked to create a
9142 # shared library.
9143 predep_objects=$lt_predep_objects
9144
9145 # Dependencies to place after the objects being linked to create a
9146 # shared library.
9147 postdep_objects=$lt_postdep_objects
9148
9149 # Dependencies to place before the objects being linked to create a
9150 # shared library.
9151 predeps=$lt_predeps
9152
9153 # Dependencies to place after the objects being linked to create a
9154 # shared library.
9155 postdeps=$lt_postdeps
9156
9157 # The library search path used internally by the compiler when linking
9158 # a shared library.
9159 compiler_lib_search_path=$lt_compiler_lib_search_path
9160
9161 # Method to check whether dependent libraries are shared objects.
9162 deplibs_check_method=$lt_deplibs_check_method
9163
9164 # Command to use when deplibs_check_method == file_magic.
9165 file_magic_cmd=$lt_file_magic_cmd
9166
9167 # Flag that allows shared libraries with undefined symbols to be built.
9168 allow_undefined_flag=$lt_allow_undefined_flag
9169
9170 # Flag that forces no undefined symbols.
9171 no_undefined_flag=$lt_no_undefined_flag
9172
9173 # Commands used to finish a libtool library installation in a directory.
9174 finish_cmds=$lt_finish_cmds
9175
9176 # Same as above, but a single script fragment to be evaled but not shown.
9177 finish_eval=$lt_finish_eval
9178
9179 # Take the output of nm and produce a listing of raw symbols and C names.
9180 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9181
9182 # Transform the output of nm in a proper C declaration
9183 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9184
9185 # Transform the output of nm in a C name address pair
9186 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9187
9188 # This is the shared library runtime path variable.
9189 runpath_var=$runpath_var
9190
9191 # This is the shared library path variable.
9192 shlibpath_var=$shlibpath_var
9193
9194 # Is shlibpath searched before the hard-coded library search path?
9195 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9196
9197 # How to hardcode a shared library path into an executable.
9198 hardcode_action=$hardcode_action
9199
9200 # Whether we should hardcode library paths into libraries.
9201 hardcode_into_libs=$hardcode_into_libs
9202
9203 # Flag to hardcode \$libdir into a binary during linking.
9204 # This must work even if \$libdir does not exist.
9205 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9206
9207 # If ld is used when linking, flag to hardcode \$libdir into
9208 # a binary during linking. This must work even if \$libdir does
9209 # not exist.
9210 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9211
9212 # Whether we need a single -rpath flag with a separated argument.
9213 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9214
9215 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9216 # resulting binary.
9217 hardcode_direct=$hardcode_direct
9218
9219 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9220 # resulting binary.
9221 hardcode_minus_L=$hardcode_minus_L
9222
9223 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9224 # the resulting binary.
9225 hardcode_shlibpath_var=$hardcode_shlibpath_var
9226
9227 # Set to yes if building a shared library automatically hardcodes DIR into the library
9228 # and all subsequent libraries and executables linked against it.
9229 hardcode_automatic=$hardcode_automatic
9230
9231 # Variables whose values should be saved in libtool wrapper scripts and
9232 # restored at relink time.
9233 variables_saved_for_relink="$variables_saved_for_relink"
9234
9235 # Whether libtool must link a program against all its dependency libraries.
9236 link_all_deplibs=$link_all_deplibs
9237
9238 # Compile-time system search path for libraries
9239 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9240
9241 # Run-time system search path for libraries
9242 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9243
9244 # Fix the shell variable \$srcfile for the compiler.
9245 fix_srcfile_path="$fix_srcfile_path"
9246
9247 # Set to yes if exported symbols are required.
9248 always_export_symbols=$always_export_symbols
9249
9250 # The commands to list exported symbols.
9251 export_symbols_cmds=$lt_export_symbols_cmds
9252
9253 # The commands to extract the exported symbol list from a shared archive.
9254 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9255
9256 # Symbols that should not be listed in the preloaded symbols.
9257 exclude_expsyms=$lt_exclude_expsyms
9258
9259 # Symbols that must always be exported.
9260 include_expsyms=$lt_include_expsyms
9261
9262 # ### END LIBTOOL CONFIG
9263
9264 __EOF__
9265
9266
9267   case $host_os in
9268   aix3*)
9269     cat <<\EOF >> "$cfgfile"
9270
9271 # AIX sometimes has problems with the GCC collect2 program.  For some
9272 # reason, if we set the COLLECT_NAMES environment variable, the problems
9273 # vanish in a puff of smoke.
9274 if test "X${COLLECT_NAMES+set}" != Xset; then
9275   COLLECT_NAMES=
9276   export COLLECT_NAMES
9277 fi
9278 EOF
9279     ;;
9280   esac
9281
9282   # We use sed instead of cat because bash on DJGPP gets confused if
9283   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9284   # text mode, it properly converts lines to CR/LF.  This bash problem
9285   # is reportedly fixed, but why not run on old versions too?
9286   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9287
9288   mv -f "$cfgfile" "$ofile" || \
9289     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9290   chmod +x "$ofile"
9291
9292 else
9293   # If there is no Makefile yet, we rely on a make rule to execute
9294   # `config.status --recheck' to rerun these tests and create the
9295   # libtool script then.
9296   test -f Makefile && make "$ltmain"
9297 fi
9298
9299
9300 ac_ext=c
9301 ac_cpp='$CPP $CPPFLAGS'
9302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9305
9306 CC="$lt_save_CC"
9307
9308
9309 # Check whether --with-tags or --without-tags was given.
9310 if test "${with_tags+set}" = set; then
9311   withval="$with_tags"
9312   tagnames="$withval"
9313 fi;
9314
9315 if test -f "$ltmain" && test -n "$tagnames"; then
9316   if test ! -f "${ofile}"; then
9317     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9318 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9319   fi
9320
9321   if test -z "$LTCC"; then
9322     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9323     if test -z "$LTCC"; then
9324       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9325 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9326     else
9327       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9328 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9329     fi
9330   fi
9331
9332   # Extract list of available tagged configurations in $ofile.
9333   # Note that this assumes the entire list is on one line.
9334   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9335
9336   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9337   for tagname in $tagnames; do
9338     IFS="$lt_save_ifs"
9339     # Check whether tagname contains only valid characters
9340     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9341     "") ;;
9342     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9343 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9344    { (exit 1); exit 1; }; }
9345         ;;
9346     esac
9347
9348     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9349     then
9350       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9351 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9352    { (exit 1); exit 1; }; }
9353     fi
9354
9355     # Update the list of available tags.
9356     if test -n "$tagname"; then
9357       echo appending configuration tag \"$tagname\" to $ofile
9358
9359       case $tagname in
9360       CXX)
9361         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9362           ac_ext=cc
9363 ac_cpp='$CXXCPP $CPPFLAGS'
9364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9367
9368
9369
9370
9371 archive_cmds_need_lc_CXX=no
9372 allow_undefined_flag_CXX=
9373 always_export_symbols_CXX=no
9374 archive_expsym_cmds_CXX=
9375 export_dynamic_flag_spec_CXX=
9376 hardcode_direct_CXX=no
9377 hardcode_libdir_flag_spec_CXX=
9378 hardcode_libdir_flag_spec_ld_CXX=
9379 hardcode_libdir_separator_CXX=
9380 hardcode_minus_L_CXX=no
9381 hardcode_automatic_CXX=no
9382 module_cmds_CXX=
9383 module_expsym_cmds_CXX=
9384 link_all_deplibs_CXX=unknown
9385 old_archive_cmds_CXX=$old_archive_cmds
9386 no_undefined_flag_CXX=
9387 whole_archive_flag_spec_CXX=
9388 enable_shared_with_static_runtimes_CXX=no
9389
9390 # Dependencies to place before and after the object being linked:
9391 predep_objects_CXX=
9392 postdep_objects_CXX=
9393 predeps_CXX=
9394 postdeps_CXX=
9395 compiler_lib_search_path_CXX=
9396
9397 # Source file extension for C++ test sources.
9398 ac_ext=cc
9399
9400 # Object file extension for compiled C++ test sources.
9401 objext=o
9402 objext_CXX=$objext
9403
9404 # Code to be used in simple compile tests
9405 lt_simple_compile_test_code="int some_variable = 0;\n"
9406
9407 # Code to be used in simple link tests
9408 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9409
9410 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9411
9412 # If no C compiler was specified, use CC.
9413 LTCC=${LTCC-"$CC"}
9414
9415 # Allow CC to be a program name with arguments.
9416 compiler=$CC
9417
9418
9419 # Allow CC to be a program name with arguments.
9420 lt_save_CC=$CC
9421 lt_save_LD=$LD
9422 lt_save_GCC=$GCC
9423 GCC=$GXX
9424 lt_save_with_gnu_ld=$with_gnu_ld
9425 lt_save_path_LD=$lt_cv_path_LD
9426 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9427   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9428 else
9429   unset lt_cv_prog_gnu_ld
9430 fi
9431 if test -n "${lt_cv_path_LDCXX+set}"; then
9432   lt_cv_path_LD=$lt_cv_path_LDCXX
9433 else
9434   unset lt_cv_path_LD
9435 fi
9436 test -z "${LDCXX+set}" || LD=$LDCXX
9437 CC=${CXX-"c++"}
9438 compiler=$CC
9439 compiler_CXX=$CC
9440 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9441
9442 # We don't want -fno-exception wen compiling C++ code, so set the
9443 # no_builtin_flag separately
9444 if test "$GXX" = yes; then
9445   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9446 else
9447   lt_prog_compiler_no_builtin_flag_CXX=
9448 fi
9449
9450 if test "$GXX" = yes; then
9451   # Set up default GNU C++ configuration
9452
9453
9454 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9455 if test "${with_gnu_ld+set}" = set; then
9456   withval="$with_gnu_ld"
9457   test "$withval" = no || with_gnu_ld=yes
9458 else
9459   with_gnu_ld=no
9460 fi;
9461 ac_prog=ld
9462 if test "$GCC" = yes; then
9463   # Check if gcc -print-prog-name=ld gives a path.
9464   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9465 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9466   case $host in
9467   *-*-mingw*)
9468     # gcc leaves a trailing carriage return which upsets mingw
9469     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9470   *)
9471     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9472   esac
9473   case $ac_prog in
9474     # Accept absolute paths.
9475     [\\/]* | ?:[\\/]*)
9476       re_direlt='/[^/][^/]*/\.\./'
9477       # Canonicalize the path of ld
9478       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9479       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9480         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9481       done
9482       test -z "$LD" && LD="$ac_prog"
9483       ;;
9484   "")
9485     # If it fails, then pretend we aren't using GCC.
9486     ac_prog=ld
9487     ;;
9488   *)
9489     # If it is relative, then search for the first ld in PATH.
9490     with_gnu_ld=unknown
9491     ;;
9492   esac
9493 elif test "$with_gnu_ld" = yes; then
9494   echo "$as_me:$LINENO: checking for GNU ld" >&5
9495 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9496 else
9497   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9498 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9499 fi
9500 if test "${lt_cv_path_LD+set}" = set; then
9501   echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503   if test -z "$LD"; then
9504   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9505   for ac_dir in $PATH; do
9506     IFS="$lt_save_ifs"
9507     test -z "$ac_dir" && ac_dir=.
9508     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9509       lt_cv_path_LD="$ac_dir/$ac_prog"
9510       # Check to see if the program is GNU ld.  I'd rather use --version,
9511       # but apparently some GNU ld's only accept -v.
9512       # Break only if it was the GNU/non-GNU ld that we prefer.
9513       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9514       *GNU* | *'with BFD'*)
9515         test "$with_gnu_ld" != no && break
9516         ;;
9517       *)
9518         test "$with_gnu_ld" != yes && break
9519         ;;
9520       esac
9521     fi
9522   done
9523   IFS="$lt_save_ifs"
9524 else
9525   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9526 fi
9527 fi
9528
9529 LD="$lt_cv_path_LD"
9530 if test -n "$LD"; then
9531   echo "$as_me:$LINENO: result: $LD" >&5
9532 echo "${ECHO_T}$LD" >&6
9533 else
9534   echo "$as_me:$LINENO: result: no" >&5
9535 echo "${ECHO_T}no" >&6
9536 fi
9537 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9538 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9539    { (exit 1); exit 1; }; }
9540 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9541 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9542 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9543   echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9546 case `"$LD" -v 2>&1 </dev/null` in
9547 *GNU* | *'with BFD'*)
9548   lt_cv_prog_gnu_ld=yes
9549   ;;
9550 *)
9551   lt_cv_prog_gnu_ld=no
9552   ;;
9553 esac
9554 fi
9555 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9556 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9557 with_gnu_ld=$lt_cv_prog_gnu_ld
9558
9559
9560
9561   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9562   # archiving commands below assume that GNU ld is being used.
9563   if test "$with_gnu_ld" = yes; then
9564     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565     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'
9566
9567     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9568     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9569
9570     # If archive_cmds runs LD, not CC, wlarc should be empty
9571     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9572     #     investigate it a little bit more. (MM)
9573     wlarc='${wl}'
9574
9575     # ancient GNU ld didn't support --whole-archive et. al.
9576     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9577         grep 'no-whole-archive' > /dev/null; then
9578       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9579     else
9580       whole_archive_flag_spec_CXX=
9581     fi
9582   else
9583     with_gnu_ld=no
9584     wlarc=
9585
9586     # A generic and very simple default shared library creation
9587     # command for GNU C++ for the case where it uses the native
9588     # linker, instead of GNU ld.  If possible, this setting should
9589     # overridden to take advantage of the native linker features on
9590     # the platform it is being used on.
9591     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9592   fi
9593
9594   # Commands to make compiler produce verbose output that lists
9595   # what "hidden" libraries, object files and flags are used when
9596   # linking a shared library.
9597   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9598
9599 else
9600   GXX=no
9601   with_gnu_ld=no
9602   wlarc=
9603 fi
9604
9605 # PORTME: fill in a description of your system's C++ link characteristics
9606 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9607 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9608 ld_shlibs_CXX=yes
9609 case $host_os in
9610   aix3*)
9611     # FIXME: insert proper C++ library support
9612     ld_shlibs_CXX=no
9613     ;;
9614   aix4* | aix5*)
9615     if test "$host_cpu" = ia64; then
9616       # On IA64, the linker does run time linking by default, so we don't
9617       # have to do anything special.
9618       aix_use_runtimelinking=no
9619       exp_sym_flag='-Bexport'
9620       no_entry_flag=""
9621     else
9622       aix_use_runtimelinking=no
9623
9624       # Test if we are trying to use run time linking or normal
9625       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9626       # need to do runtime linking.
9627       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9628         for ld_flag in $LDFLAGS; do
9629           case $ld_flag in
9630           *-brtl*)
9631             aix_use_runtimelinking=yes
9632             break
9633             ;;
9634           esac
9635         done
9636       esac
9637
9638       exp_sym_flag='-bexport'
9639       no_entry_flag='-bnoentry'
9640     fi
9641
9642     # When large executables or shared objects are built, AIX ld can
9643     # have problems creating the table of contents.  If linking a library
9644     # or program results in "error TOC overflow" add -mminimal-toc to
9645     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9646     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9647
9648     archive_cmds_CXX=''
9649     hardcode_direct_CXX=yes
9650     hardcode_libdir_separator_CXX=':'
9651     link_all_deplibs_CXX=yes
9652
9653     if test "$GXX" = yes; then
9654       case $host_os in aix4.012|aix4.012.*)
9655       # We only want to do this on AIX 4.2 and lower, the check
9656       # below for broken collect2 doesn't work under 4.3+
9657         collect2name=`${CC} -print-prog-name=collect2`
9658         if test -f "$collect2name" && \
9659            strings "$collect2name" | grep resolve_lib_name >/dev/null
9660         then
9661           # We have reworked collect2
9662           hardcode_direct_CXX=yes
9663         else
9664           # We have old collect2
9665           hardcode_direct_CXX=unsupported
9666           # It fails to find uninstalled libraries when the uninstalled
9667           # path is not listed in the libpath.  Setting hardcode_minus_L
9668           # to unsupported forces relinking
9669           hardcode_minus_L_CXX=yes
9670           hardcode_libdir_flag_spec_CXX='-L$libdir'
9671           hardcode_libdir_separator_CXX=
9672         fi
9673       esac
9674       shared_flag='-shared'
9675     else
9676       # not using gcc
9677       if test "$host_cpu" = ia64; then
9678         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9679         # chokes on -Wl,-G. The following line is correct:
9680         shared_flag='-G'
9681       else
9682         if test "$aix_use_runtimelinking" = yes; then
9683           shared_flag='${wl}-G'
9684         else
9685           shared_flag='${wl}-bM:SRE'
9686         fi
9687       fi
9688     fi
9689
9690     # It seems that -bexpall does not export symbols beginning with
9691     # underscore (_), so it is better to generate a list of symbols to export.
9692     always_export_symbols_CXX=yes
9693     if test "$aix_use_runtimelinking" = yes; then
9694       # Warning - without using the other runtime loading flags (-brtl),
9695       # -berok will link without error, but may produce a broken library.
9696       allow_undefined_flag_CXX='-berok'
9697       # Determine the default libpath from the value encoded in an empty executable.
9698       cat >conftest.$ac_ext <<_ACEOF
9699 #line $LINENO "configure"
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705
9706 int
9707 main ()
9708 {
9709
9710   ;
9711   return 0;
9712 }
9713 _ACEOF
9714 rm -f conftest.$ac_objext conftest$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716   (eval $ac_link) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } &&
9720          { ac_try='test -s conftest$ac_exeext'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726
9727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9728 }'`
9729 # Check for a 64-bit object if we didn't find anything.
9730 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; }
9731 }'`; fi
9732 else
9733   echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9735
9736 fi
9737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9739
9740       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9741
9742       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"
9743      else
9744       if test "$host_cpu" = ia64; then
9745         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9746         allow_undefined_flag_CXX="-z nodefs"
9747         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"
9748       else
9749         # Determine the default libpath from the value encoded in an empty executable.
9750         cat >conftest.$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757
9758 int
9759 main ()
9760 {
9761
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768   (eval $ac_link) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); } &&
9772          { ac_try='test -s conftest$ac_exeext'
9773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774   (eval $ac_try) 2>&5
9775   ac_status=$?
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); }; }; then
9778
9779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9780 }'`
9781 # Check for a 64-bit object if we didn't find anything.
9782 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; }
9783 }'`; fi
9784 else
9785   echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788 fi
9789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9790 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9791
9792         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9793         # Warning - without using the other run time loading flags,
9794         # -berok will link without error, but may produce a broken library.
9795         no_undefined_flag_CXX=' ${wl}-bernotok'
9796         allow_undefined_flag_CXX=' ${wl}-berok'
9797         # -bexpall does not export symbols beginning with underscore (_)
9798         always_export_symbols_CXX=yes
9799         # Exported symbols can be pulled into shared objects from archives
9800         whole_archive_flag_spec_CXX=' '
9801         archive_cmds_need_lc_CXX=yes
9802         # This is similar to how AIX traditionally builds it's shared libraries.
9803         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'
9804       fi
9805     fi
9806     ;;
9807   chorus*)
9808     case $cc_basename in
9809       *)
9810         # FIXME: insert proper C++ library support
9811         ld_shlibs_CXX=no
9812         ;;
9813     esac
9814     ;;
9815
9816   cygwin* | mingw* | pw32*)
9817     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9818     # as there is no search path for DLLs.
9819     hardcode_libdir_flag_spec_CXX='-L$libdir'
9820     allow_undefined_flag_CXX=unsupported
9821     always_export_symbols_CXX=no
9822     enable_shared_with_static_runtimes_CXX=yes
9823
9824     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9825       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'
9826       # If the export-symbols file already is a .def file (1st line
9827       # is EXPORTS), use it as is; otherwise, prepend...
9828       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9829         cp $export_symbols $output_objdir/$soname.def;
9830       else
9831         echo EXPORTS > $output_objdir/$soname.def;
9832         cat $export_symbols >> $output_objdir/$soname.def;
9833       fi~
9834       $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'
9835     else
9836       ld_shlibs_CXX=no
9837     fi
9838   ;;
9839
9840   darwin* | rhapsody*)
9841    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9842     archive_cmds_need_lc_CXX=no
9843     case "$host_os" in
9844     rhapsody* | darwin1.[012])
9845       allow_undefined_flag_CXX='-undefined suppress'
9846       ;;
9847     *) # Darwin 1.3 on
9848       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9849       ;;
9850     esac
9851         lt_int_apple_cc_single_mod=no
9852         output_verbose_link_cmd='echo'
9853         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9854           lt_int_apple_cc_single_mod=yes
9855         fi
9856         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9857           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9858         else
9859         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'
9860       fi
9861       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9862
9863     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9864       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9865         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}'
9866       else
9867         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}'
9868       fi
9869         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}'
9870     hardcode_direct_CXX=no
9871     hardcode_automatic_CXX=yes
9872     hardcode_shlibpath_var_CXX=unsupported
9873     whole_archive_flag_spec_CXX='-all_load $convenience'
9874     link_all_deplibs_CXX=yes
9875    fi
9876     ;;
9877
9878   dgux*)
9879     case $cc_basename in
9880       ec++)
9881         # FIXME: insert proper C++ library support
9882         ld_shlibs_CXX=no
9883         ;;
9884       ghcx)
9885         # Green Hills C++ Compiler
9886         # FIXME: insert proper C++ library support
9887         ld_shlibs_CXX=no
9888         ;;
9889       *)
9890         # FIXME: insert proper C++ library support
9891         ld_shlibs_CXX=no
9892         ;;
9893     esac
9894     ;;
9895   freebsd12*)
9896     # C++ shared libraries reported to be fairly broken before switch to ELF
9897     ld_shlibs_CXX=no
9898     ;;
9899   freebsd-elf*)
9900     archive_cmds_need_lc_CXX=no
9901     ;;
9902   freebsd*)
9903     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9904     # conventions
9905     ld_shlibs_CXX=yes
9906     ;;
9907   gnu*)
9908     ;;
9909   hpux9*)
9910     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9911     hardcode_libdir_separator_CXX=:
9912     export_dynamic_flag_spec_CXX='${wl}-E'
9913     hardcode_direct_CXX=yes
9914     hardcode_minus_L_CXX=yes # Not in the search PATH,
9915                                 # but as the default
9916                                 # location of the library.
9917
9918     case $cc_basename in
9919     CC)
9920       # FIXME: insert proper C++ library support
9921       ld_shlibs_CXX=no
9922       ;;
9923     aCC)
9924       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'
9925       # Commands to make compiler produce verbose output that lists
9926       # what "hidden" libraries, object files and flags are used when
9927       # linking a shared library.
9928       #
9929       # There doesn't appear to be a way to prevent this compiler from
9930       # explicitly linking system object files so we need to strip them
9931       # from the output so that they don't get included in the library
9932       # dependencies.
9933       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'
9934       ;;
9935     *)
9936       if test "$GXX" = yes; then
9937         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'
9938       else
9939         # FIXME: insert proper C++ library support
9940         ld_shlibs_CXX=no
9941       fi
9942       ;;
9943     esac
9944     ;;
9945   hpux10*|hpux11*)
9946     if test $with_gnu_ld = no; then
9947       case "$host_cpu" in
9948       hppa*64*)
9949         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9950         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9951         hardcode_libdir_separator_CXX=:
9952         ;;
9953       ia64*)
9954         hardcode_libdir_flag_spec_CXX='-L$libdir'
9955         ;;
9956       *)
9957         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9958         hardcode_libdir_separator_CXX=:
9959         export_dynamic_flag_spec_CXX='${wl}-E'
9960         ;;
9961       esac
9962     fi
9963     case "$host_cpu" in
9964     hppa*64*)
9965       hardcode_direct_CXX=no
9966       hardcode_shlibpath_var_CXX=no
9967       ;;
9968     ia64*)
9969       hardcode_direct_CXX=no
9970       hardcode_shlibpath_var_CXX=no
9971       hardcode_minus_L_CXX=yes # Not in the search PATH,
9972                                               # but as the default
9973                                               # location of the library.
9974       ;;
9975     *)
9976       hardcode_direct_CXX=yes
9977       hardcode_minus_L_CXX=yes # Not in the search PATH,
9978                                               # but as the default
9979                                               # location of the library.
9980       ;;
9981     esac
9982
9983     case $cc_basename in
9984       CC)
9985         # FIXME: insert proper C++ library support
9986         ld_shlibs_CXX=no
9987         ;;
9988       aCC)
9989         case "$host_cpu" in
9990         hppa*64*|ia64*)
9991           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9992           ;;
9993         *)
9994           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9995           ;;
9996         esac
9997         # Commands to make compiler produce verbose output that lists
9998         # what "hidden" libraries, object files and flags are used when
9999         # linking a shared library.
10000         #
10001         # There doesn't appear to be a way to prevent this compiler from
10002         # explicitly linking system object files so we need to strip them
10003         # from the output so that they don't get included in the library
10004         # dependencies.
10005         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'
10006         ;;
10007       *)
10008         if test "$GXX" = yes; then
10009           if test $with_gnu_ld = no; then
10010             case "$host_cpu" in
10011             ia64*|hppa*64*)
10012               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10013               ;;
10014             *)
10015               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'
10016               ;;
10017             esac
10018           fi
10019         else
10020           # FIXME: insert proper C++ library support
10021           ld_shlibs_CXX=no
10022         fi
10023         ;;
10024     esac
10025     ;;
10026   irix5* | irix6*)
10027     case $cc_basename in
10028       CC)
10029         # SGI C++
10030         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'
10031
10032         # Archives containing C++ object files must be created using
10033         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10034         # necessary to make sure instantiated templates are included
10035         # in the archive.
10036         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10037         ;;
10038       *)
10039         if test "$GXX" = yes; then
10040           if test "$with_gnu_ld" = no; then
10041             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'
10042           else
10043             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'
10044           fi
10045         fi
10046         link_all_deplibs_CXX=yes
10047         ;;
10048     esac
10049     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10050     hardcode_libdir_separator_CXX=:
10051     ;;
10052   linux*)
10053     case $cc_basename in
10054       KCC)
10055         # Kuck and Associates, Inc. (KAI) C++ Compiler
10056
10057         # KCC will only create a shared library if the output file
10058         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10059         # to its proper name (with version) after linking.
10060         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'
10061         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'
10062         # Commands to make compiler produce verbose output that lists
10063         # what "hidden" libraries, object files and flags are used when
10064         # linking a shared library.
10065         #
10066         # There doesn't appear to be a way to prevent this compiler from
10067         # explicitly linking system object files so we need to strip them
10068         # from the output so that they don't get included in the library
10069         # dependencies.
10070         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'
10071
10072         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10073         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10074
10075         # Archives containing C++ object files must be created using
10076         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10077         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10078         ;;
10079       icpc)
10080         # Intel C++
10081         with_gnu_ld=yes
10082         archive_cmds_need_lc_CXX=no
10083         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10084         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'
10085         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10086         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10087         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10088         ;;
10089       cxx)
10090         # Compaq C++
10091         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10092         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'
10093
10094         runpath_var=LD_RUN_PATH
10095         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10096         hardcode_libdir_separator_CXX=:
10097
10098         # Commands to make compiler produce verbose output that lists
10099         # what "hidden" libraries, object files and flags are used when
10100         # linking a shared library.
10101         #
10102         # There doesn't appear to be a way to prevent this compiler from
10103         # explicitly linking system object files so we need to strip them
10104         # from the output so that they don't get included in the library
10105         # dependencies.
10106         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'
10107         ;;
10108     esac
10109     ;;
10110   lynxos*)
10111     # FIXME: insert proper C++ library support
10112     ld_shlibs_CXX=no
10113     ;;
10114   m88k*)
10115     # FIXME: insert proper C++ library support
10116     ld_shlibs_CXX=no
10117     ;;
10118   mvs*)
10119     case $cc_basename in
10120       cxx)
10121         # FIXME: insert proper C++ library support
10122         ld_shlibs_CXX=no
10123         ;;
10124       *)
10125         # FIXME: insert proper C++ library support
10126         ld_shlibs_CXX=no
10127         ;;
10128     esac
10129     ;;
10130   netbsd*)
10131     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10132       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10133       wlarc=
10134       hardcode_libdir_flag_spec_CXX='-R$libdir'
10135       hardcode_direct_CXX=yes
10136       hardcode_shlibpath_var_CXX=no
10137     fi
10138     # Workaround some broken pre-1.5 toolchains
10139     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10140     ;;
10141   osf3*)
10142     case $cc_basename in
10143       KCC)
10144         # Kuck and Associates, Inc. (KAI) C++ Compiler
10145
10146         # KCC will only create a shared library if the output file
10147         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10148         # to its proper name (with version) after linking.
10149         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'
10150
10151         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10152         hardcode_libdir_separator_CXX=:
10153
10154         # Archives containing C++ object files must be created using
10155         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10156         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10157
10158         ;;
10159       RCC)
10160         # Rational C++ 2.4.1
10161         # FIXME: insert proper C++ library support
10162         ld_shlibs_CXX=no
10163         ;;
10164       cxx)
10165         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10166         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'
10167
10168         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10169         hardcode_libdir_separator_CXX=:
10170
10171         # Commands to make compiler produce verbose output that lists
10172         # what "hidden" libraries, object files and flags are used when
10173         # linking a shared library.
10174         #
10175         # There doesn't appear to be a way to prevent this compiler from
10176         # explicitly linking system object files so we need to strip them
10177         # from the output so that they don't get included in the library
10178         # dependencies.
10179         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'
10180         ;;
10181       *)
10182         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10183           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10184           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'
10185
10186           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10187           hardcode_libdir_separator_CXX=:
10188
10189           # Commands to make compiler produce verbose output that lists
10190           # what "hidden" libraries, object files and flags are used when
10191           # linking a shared library.
10192           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10193
10194         else
10195           # FIXME: insert proper C++ library support
10196           ld_shlibs_CXX=no
10197         fi
10198         ;;
10199     esac
10200     ;;
10201   osf4* | osf5*)
10202     case $cc_basename in
10203       KCC)
10204         # Kuck and Associates, Inc. (KAI) C++ Compiler
10205
10206         # KCC will only create a shared library if the output file
10207         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10208         # to its proper name (with version) after linking.
10209         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'
10210
10211         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10212         hardcode_libdir_separator_CXX=:
10213
10214         # Archives containing C++ object files must be created using
10215         # the KAI C++ compiler.
10216         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10217         ;;
10218       RCC)
10219         # Rational C++ 2.4.1
10220         # FIXME: insert proper C++ library support
10221         ld_shlibs_CXX=no
10222         ;;
10223       cxx)
10224         allow_undefined_flag_CXX=' -expect_unresolved \*'
10225         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'
10226         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10227           echo "-hidden">> $lib.exp~
10228           $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~
10229           $rm $lib.exp'
10230
10231         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10232         hardcode_libdir_separator_CXX=:
10233
10234         # Commands to make compiler produce verbose output that lists
10235         # what "hidden" libraries, object files and flags are used when
10236         # linking a shared library.
10237         #
10238         # There doesn't appear to be a way to prevent this compiler from
10239         # explicitly linking system object files so we need to strip them
10240         # from the output so that they don't get included in the library
10241         # dependencies.
10242         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'
10243         ;;
10244       *)
10245         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10246           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10247          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'
10248
10249           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10250           hardcode_libdir_separator_CXX=:
10251
10252           # Commands to make compiler produce verbose output that lists
10253           # what "hidden" libraries, object files and flags are used when
10254           # linking a shared library.
10255           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10256
10257         else
10258           # FIXME: insert proper C++ library support
10259           ld_shlibs_CXX=no
10260         fi
10261         ;;
10262     esac
10263     ;;
10264   psos*)
10265     # FIXME: insert proper C++ library support
10266     ld_shlibs_CXX=no
10267     ;;
10268   sco*)
10269     archive_cmds_need_lc_CXX=no
10270     case $cc_basename in
10271       CC)
10272         # FIXME: insert proper C++ library support
10273         ld_shlibs_CXX=no
10274         ;;
10275       *)
10276         # FIXME: insert proper C++ library support
10277         ld_shlibs_CXX=no
10278         ;;
10279     esac
10280     ;;
10281   sunos4*)
10282     case $cc_basename in
10283       CC)
10284         # Sun C++ 4.x
10285         # FIXME: insert proper C++ library support
10286         ld_shlibs_CXX=no
10287         ;;
10288       lcc)
10289         # Lucid
10290         # FIXME: insert proper C++ library support
10291         ld_shlibs_CXX=no
10292         ;;
10293       *)
10294         # FIXME: insert proper C++ library support
10295         ld_shlibs_CXX=no
10296         ;;
10297     esac
10298     ;;
10299   solaris*)
10300     case $cc_basename in
10301       CC)
10302         # Sun C++ 4.2, 5.x and Centerline C++
10303         no_undefined_flag_CXX=' -zdefs'
10304         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10305         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10306         $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'
10307
10308         hardcode_libdir_flag_spec_CXX='-R$libdir'
10309         hardcode_shlibpath_var_CXX=no
10310         case $host_os in
10311           solaris2.0-5 | solaris2.0-5.*) ;;
10312           *)
10313             # The C++ compiler is used as linker so we must use $wl
10314             # flag to pass the commands to the underlying system
10315             # linker.
10316             # Supported since Solaris 2.6 (maybe 2.5.1?)
10317             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10318             ;;
10319         esac
10320         link_all_deplibs_CXX=yes
10321
10322         # Commands to make compiler produce verbose output that lists
10323         # what "hidden" libraries, object files and flags are used when
10324         # linking a shared library.
10325         #
10326         # There doesn't appear to be a way to prevent this compiler from
10327         # explicitly linking system object files so we need to strip them
10328         # from the output so that they don't get included in the library
10329         # dependencies.
10330         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'
10331
10332         # Archives containing C++ object files must be created using
10333         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10334         # necessary to make sure instantiated templates are included
10335         # in the archive.
10336         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10337         ;;
10338       gcx)
10339         # Green Hills C++ Compiler
10340         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10341
10342         # The C++ compiler must be used to create the archive.
10343         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10344         ;;
10345       *)
10346         # GNU C++ compiler with Solaris linker
10347         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10348           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10349           if $CC --version | grep -v '^2\.7' > /dev/null; then
10350             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10351             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10352                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10353
10354             # Commands to make compiler produce verbose output that lists
10355             # what "hidden" libraries, object files and flags are used when
10356             # linking a shared library.
10357             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10358           else
10359             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10360             # platform.
10361             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10362             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10363                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10364
10365             # Commands to make compiler produce verbose output that lists
10366             # what "hidden" libraries, object files and flags are used when
10367             # linking a shared library.
10368             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10369           fi
10370
10371           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10372         fi
10373         ;;
10374     esac
10375     ;;
10376   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10377     archive_cmds_need_lc_CXX=no
10378     ;;
10379   tandem*)
10380     case $cc_basename in
10381       NCC)
10382         # NonStop-UX NCC 3.20
10383         # FIXME: insert proper C++ library support
10384         ld_shlibs_CXX=no
10385         ;;
10386       *)
10387         # FIXME: insert proper C++ library support
10388         ld_shlibs_CXX=no
10389         ;;
10390     esac
10391     ;;
10392   vxworks*)
10393     # FIXME: insert proper C++ library support
10394     ld_shlibs_CXX=no
10395     ;;
10396   *)
10397     # FIXME: insert proper C++ library support
10398     ld_shlibs_CXX=no
10399     ;;
10400 esac
10401 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10402 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10403 test "$ld_shlibs_CXX" = no && can_build_shared=no
10404
10405 GCC_CXX="$GXX"
10406 LD_CXX="$LD"
10407
10408 ## CAVEAT EMPTOR:
10409 ## There is no encapsulation within the following macros, do not change
10410 ## the running order or otherwise move them around unless you know exactly
10411 ## what you are doing...
10412
10413 cat > conftest.$ac_ext <<EOF
10414 class Foo
10415 {
10416 public:
10417   Foo (void) { a = 0; }
10418 private:
10419   int a;
10420 };
10421 EOF
10422
10423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10424   (eval $ac_compile) 2>&5
10425   ac_status=$?
10426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); }; then
10428   # Parse the compiler output and extract the necessary
10429   # objects, libraries and library flags.
10430
10431   # Sentinel used to keep track of whether or not we are before
10432   # the conftest object file.
10433   pre_test_object_deps_done=no
10434
10435   # The `*' in the case matches for architectures that use `case' in
10436   # $output_verbose_cmd can trigger glob expansion during the loop
10437   # eval without this substitution.
10438   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10439
10440   for p in `eval $output_verbose_link_cmd`; do
10441     case $p in
10442
10443     -L* | -R* | -l*)
10444        # Some compilers place space between "-{L,R}" and the path.
10445        # Remove the space.
10446        if test $p = "-L" \
10447           || test $p = "-R"; then
10448          prev=$p
10449          continue
10450        else
10451          prev=
10452        fi
10453
10454        if test "$pre_test_object_deps_done" = no; then
10455          case $p in
10456          -L* | -R*)
10457            # Internal compiler library paths should come after those
10458            # provided the user.  The postdeps already come after the
10459            # user supplied libs so there is no need to process them.
10460            if test -z "$compiler_lib_search_path_CXX"; then
10461              compiler_lib_search_path_CXX="${prev}${p}"
10462            else
10463              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10464            fi
10465            ;;
10466          # The "-l" case would never come before the object being
10467          # linked, so don't bother handling this case.
10468          esac
10469        else
10470          if test -z "$postdeps_CXX"; then
10471            postdeps_CXX="${prev}${p}"
10472          else
10473            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10474          fi
10475        fi
10476        ;;
10477
10478     *.$objext)
10479        # This assumes that the test object file only shows up
10480        # once in the compiler output.
10481        if test "$p" = "conftest.$objext"; then
10482          pre_test_object_deps_done=yes
10483          continue
10484        fi
10485
10486        if test "$pre_test_object_deps_done" = no; then
10487          if test -z "$predep_objects_CXX"; then
10488            predep_objects_CXX="$p"
10489          else
10490            predep_objects_CXX="$predep_objects_CXX $p"
10491          fi
10492        else
10493          if test -z "$postdep_objects_CXX"; then
10494            postdep_objects_CXX="$p"
10495          else
10496            postdep_objects_CXX="$postdep_objects_CXX $p"
10497          fi
10498        fi
10499        ;;
10500
10501     *) ;; # Ignore the rest.
10502
10503     esac
10504   done
10505
10506   # Clean up.
10507   rm -f a.out a.exe
10508 else
10509   echo "libtool.m4: error: problem compiling CXX test program"
10510 fi
10511
10512 $rm -f confest.$objext
10513
10514 case " $postdeps_CXX " in
10515 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10516 esac
10517
10518 lt_prog_compiler_wl_CXX=
10519 lt_prog_compiler_pic_CXX=
10520 lt_prog_compiler_static_CXX=
10521
10522 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10523 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10524
10525   # C++ specific cases for pic, static, wl, etc.
10526   if test "$GXX" = yes; then
10527     lt_prog_compiler_wl_CXX='-Wl,'
10528     lt_prog_compiler_static_CXX='-static'
10529
10530     case $host_os in
10531     aix*)
10532       # All AIX code is PIC.
10533       if test "$host_cpu" = ia64; then
10534         # AIX 5 now supports IA64 processor
10535         lt_prog_compiler_static_CXX='-Bstatic'
10536       fi
10537       ;;
10538     amigaos*)
10539       # FIXME: we need at least 68020 code to build shared libraries, but
10540       # adding the `-m68020' flag to GCC prevents building anything better,
10541       # like `-m68040'.
10542       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10543       ;;
10544     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10545       # PIC is the default for these OSes.
10546       ;;
10547     mingw* | os2* | pw32*)
10548       # This hack is so that the source file can tell whether it is being
10549       # built for inclusion in a dll (and should export symbols for example).
10550       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10551       ;;
10552     darwin* | rhapsody*)
10553       # PIC is the default on this platform
10554       # Common symbols not allowed in MH_DYLIB files
10555       lt_prog_compiler_pic_CXX='-fno-common'
10556       ;;
10557     *djgpp*)
10558       # DJGPP does not support shared libraries at all
10559       lt_prog_compiler_pic_CXX=
10560       ;;
10561     sysv4*MP*)
10562       if test -d /usr/nec; then
10563         lt_prog_compiler_pic_CXX=-Kconform_pic
10564       fi
10565       ;;
10566     hpux*)
10567       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10568       # not for PA HP-UX.
10569       case "$host_cpu" in
10570       hppa*64*|ia64*)
10571         ;;
10572       *)
10573         lt_prog_compiler_pic_CXX='-fPIC'
10574         ;;
10575       esac
10576       ;;
10577     *)
10578       lt_prog_compiler_pic_CXX='-fPIC'
10579       ;;
10580     esac
10581   else
10582     case $host_os in
10583       aix4* | aix5*)
10584         # All AIX code is PIC.
10585         if test "$host_cpu" = ia64; then
10586           # AIX 5 now supports IA64 processor
10587           lt_prog_compiler_static_CXX='-Bstatic'
10588         else
10589           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10590         fi
10591         ;;
10592       chorus*)
10593         case $cc_basename in
10594         cxch68)
10595           # Green Hills C++ Compiler
10596           # _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"
10597           ;;
10598         esac
10599         ;;
10600       dgux*)
10601         case $cc_basename in
10602           ec++)
10603             lt_prog_compiler_pic_CXX='-KPIC'
10604             ;;
10605           ghcx)
10606             # Green Hills C++ Compiler
10607             lt_prog_compiler_pic_CXX='-pic'
10608             ;;
10609           *)
10610             ;;
10611         esac
10612         ;;
10613       freebsd*)
10614         # FreeBSD uses GNU C++
10615         ;;
10616       hpux9* | hpux10* | hpux11*)
10617         case $cc_basename in
10618           CC)
10619             lt_prog_compiler_wl_CXX='-Wl,'
10620             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10621             if test "$host_cpu" != ia64; then
10622               lt_prog_compiler_pic_CXX='+Z'
10623             fi
10624             ;;
10625           aCC)
10626             lt_prog_compiler_wl_CXX='-Wl,'
10627             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10628             case "$host_cpu" in
10629             hppa*64*|ia64*)
10630               # +Z the default
10631               ;;
10632             *)
10633               lt_prog_compiler_pic_CXX='+Z'
10634               ;;
10635             esac
10636             ;;
10637           *)
10638             ;;
10639         esac
10640         ;;
10641       irix5* | irix6* | nonstopux*)
10642         case $cc_basename in
10643           CC)
10644             lt_prog_compiler_wl_CXX='-Wl,'
10645             lt_prog_compiler_static_CXX='-non_shared'
10646             # CC pic flag -KPIC is the default.
10647             ;;
10648           *)
10649             ;;
10650         esac
10651         ;;
10652       linux*)
10653         case $cc_basename in
10654           KCC)
10655             # KAI C++ Compiler
10656             lt_prog_compiler_wl_CXX='--backend -Wl,'
10657             lt_prog_compiler_pic_CXX='-fPIC'
10658             ;;
10659           icpc)
10660             # Intel C++
10661             lt_prog_compiler_wl_CXX='-Wl,'
10662             lt_prog_compiler_pic_CXX='-KPIC'
10663             lt_prog_compiler_static_CXX='-static'
10664             ;;
10665           cxx)
10666             # Compaq C++
10667             # Make sure the PIC flag is empty.  It appears that all Alpha
10668             # Linux and Compaq Tru64 Unix objects are PIC.
10669             lt_prog_compiler_pic_CXX=
10670             lt_prog_compiler_static_CXX='-non_shared'
10671             ;;
10672           *)
10673             ;;
10674         esac
10675         ;;
10676       lynxos*)
10677         ;;
10678       m88k*)
10679         ;;
10680       mvs*)
10681         case $cc_basename in
10682           cxx)
10683             lt_prog_compiler_pic_CXX='-W c,exportall'
10684             ;;
10685           *)
10686             ;;
10687         esac
10688         ;;
10689       netbsd*)
10690         ;;
10691       osf3* | osf4* | osf5*)
10692         case $cc_basename in
10693           KCC)
10694             lt_prog_compiler_wl_CXX='--backend -Wl,'
10695             ;;
10696           RCC)
10697             # Rational C++ 2.4.1
10698             lt_prog_compiler_pic_CXX='-pic'
10699             ;;
10700           cxx)
10701             # Digital/Compaq C++
10702             lt_prog_compiler_wl_CXX='-Wl,'
10703             # Make sure the PIC flag is empty.  It appears that all Alpha
10704             # Linux and Compaq Tru64 Unix objects are PIC.
10705             lt_prog_compiler_pic_CXX=
10706             lt_prog_compiler_static_CXX='-non_shared'
10707             ;;
10708           *)
10709             ;;
10710         esac
10711         ;;
10712       psos*)
10713         ;;
10714       sco*)
10715         case $cc_basename in
10716           CC)
10717             lt_prog_compiler_pic_CXX='-fPIC'
10718             ;;
10719           *)
10720             ;;
10721         esac
10722         ;;
10723       solaris*)
10724         case $cc_basename in
10725           CC)
10726             # Sun C++ 4.2, 5.x and Centerline C++
10727             lt_prog_compiler_pic_CXX='-KPIC'
10728             lt_prog_compiler_static_CXX='-Bstatic'
10729             lt_prog_compiler_wl_CXX='-Qoption ld '
10730             ;;
10731           gcx)
10732             # Green Hills C++ Compiler
10733             lt_prog_compiler_pic_CXX='-PIC'
10734             ;;
10735           *)
10736             ;;
10737         esac
10738         ;;
10739       sunos4*)
10740         case $cc_basename in
10741           CC)
10742             # Sun C++ 4.x
10743             lt_prog_compiler_pic_CXX='-pic'
10744             lt_prog_compiler_static_CXX='-Bstatic'
10745             ;;
10746           lcc)
10747             # Lucid
10748             lt_prog_compiler_pic_CXX='-pic'
10749             ;;
10750           *)
10751             ;;
10752         esac
10753         ;;
10754       tandem*)
10755         case $cc_basename in
10756           NCC)
10757             # NonStop-UX NCC 3.20
10758             lt_prog_compiler_pic_CXX='-KPIC'
10759             ;;
10760           *)
10761             ;;
10762         esac
10763         ;;
10764       unixware*)
10765         ;;
10766       vxworks*)
10767         ;;
10768       *)
10769         lt_prog_compiler_can_build_shared_CXX=no
10770         ;;
10771     esac
10772   fi
10773
10774 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10775 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10776
10777 #
10778 # Check to make sure the PIC flag actually works.
10779 #
10780 if test -n "$lt_prog_compiler_pic_CXX"; then
10781   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10783 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10784   echo $ECHO_N "(cached) $ECHO_C" >&6
10785 else
10786   lt_prog_compiler_pic_works_CXX=no
10787   ac_outfile=conftest.$ac_objext
10788    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10789    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10790    # Insert the option either (1) after the last *FLAGS variable, or
10791    # (2) before a word containing "conftest.", or (3) at the end.
10792    # Note that $ac_compile itself does not contain backslashes and begins
10793    # with a dollar sign (not a hyphen), so the echo should work correctly.
10794    # The option is referenced via a variable to avoid confusing sed.
10795    lt_compile=`echo "$ac_compile" | $SED \
10796    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10798    -e 's:$: $lt_compiler_flag:'`
10799    (eval echo "\"\$as_me:10799: $lt_compile\"" >&5)
10800    (eval "$lt_compile" 2>conftest.err)
10801    ac_status=$?
10802    cat conftest.err >&5
10803    echo "$as_me:10803: \$? = $ac_status" >&5
10804    if (exit $ac_status) && test -s "$ac_outfile"; then
10805      # The compiler can only warn and ignore the option if not recognized
10806      # So say no if there are warnings
10807      if test ! -s conftest.err; then
10808        lt_prog_compiler_pic_works_CXX=yes
10809      fi
10810    fi
10811    $rm conftest*
10812
10813 fi
10814 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10815 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10816
10817 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10818     case $lt_prog_compiler_pic_CXX in
10819      "" | " "*) ;;
10820      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10821      esac
10822 else
10823     lt_prog_compiler_pic_CXX=
10824      lt_prog_compiler_can_build_shared_CXX=no
10825 fi
10826
10827 fi
10828 case "$host_os" in
10829   # For platforms which do not support PIC, -DPIC is meaningless:
10830   *djgpp*)
10831     lt_prog_compiler_pic_CXX=
10832     ;;
10833   *)
10834     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10835     ;;
10836 esac
10837
10838 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10839 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10840 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10841   echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843   lt_cv_prog_compiler_c_o_CXX=no
10844    $rm -r conftest 2>/dev/null
10845    mkdir conftest
10846    cd conftest
10847    mkdir out
10848    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10849
10850    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10851    # that will create temporary files in the current directory regardless of
10852    # the output directory.  Thus, making CWD read-only will cause this test
10853    # to fail, enabling locking or at least warning the user not to do parallel
10854    # builds.
10855    chmod -w .
10856
10857    lt_compiler_flag="-o out/conftest2.$ac_objext"
10858    # Insert the option either (1) after the last *FLAGS variable, or
10859    # (2) before a word containing "conftest.", or (3) at the end.
10860    # Note that $ac_compile itself does not contain backslashes and begins
10861    # with a dollar sign (not a hyphen), so the echo should work correctly.
10862    lt_compile=`echo "$ac_compile" | $SED \
10863    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10864    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10865    -e 's:$: $lt_compiler_flag:'`
10866    (eval echo "\"\$as_me:10866: $lt_compile\"" >&5)
10867    (eval "$lt_compile" 2>out/conftest.err)
10868    ac_status=$?
10869    cat out/conftest.err >&5
10870    echo "$as_me:10870: \$? = $ac_status" >&5
10871    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10872    then
10873      # The compiler can only warn and ignore the option if not recognized
10874      # So say no if there are warnings
10875      if test ! -s out/conftest.err; then
10876        lt_cv_prog_compiler_c_o_CXX=yes
10877      fi
10878    fi
10879    chmod u+w .
10880    $rm conftest* out/*
10881    rmdir out
10882    cd ..
10883    rmdir conftest
10884    $rm conftest*
10885
10886 fi
10887 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10888 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10889
10890
10891 hard_links="nottested"
10892 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10893   # do not overwrite the value of need_locks provided by the user
10894   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10895 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10896   hard_links=yes
10897   $rm conftest*
10898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10899   touch conftest.a
10900   ln conftest.a conftest.b 2>&5 || hard_links=no
10901   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10902   echo "$as_me:$LINENO: result: $hard_links" >&5
10903 echo "${ECHO_T}$hard_links" >&6
10904   if test "$hard_links" = no; then
10905     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10906 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10907     need_locks=warn
10908   fi
10909 else
10910   need_locks=no
10911 fi
10912
10913 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10914 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10915
10916   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10917   case $host_os in
10918   aix4* | aix5*)
10919     # If we're using GNU nm, then we don't want the "-C" option.
10920     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10921     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10922       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'
10923     else
10924       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'
10925     fi
10926     ;;
10927   pw32*)
10928     export_symbols_cmds_CXX="$ltdll_cmds"
10929   ;;
10930   cygwin* | mingw*)
10931     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10932   ;;
10933   *)
10934     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10935   ;;
10936   esac
10937
10938 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10939 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10940 test "$ld_shlibs_CXX" = no && can_build_shared=no
10941
10942 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10943 if test "$GCC" = yes; then
10944   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10945 fi
10946
10947 #
10948 # Do we need to explicitly link libc?
10949 #
10950 case "x$archive_cmds_need_lc_CXX" in
10951 x|xyes)
10952   # Assume -lc should be added
10953   archive_cmds_need_lc_CXX=yes
10954
10955   if test "$enable_shared" = yes && test "$GCC" = yes; then
10956     case $archive_cmds_CXX in
10957     *'~'*)
10958       # FIXME: we may have to deal with multi-command sequences.
10959       ;;
10960     '$CC '*)
10961       # Test whether the compiler implicitly links with -lc since on some
10962       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10963       # to ld, don't add -lc before -lgcc.
10964       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10965 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10966       $rm conftest*
10967       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10968
10969       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10970   (eval $ac_compile) 2>&5
10971   ac_status=$?
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); } 2>conftest.err; then
10974         soname=conftest
10975         lib=conftest
10976         libobjs=conftest.$ac_objext
10977         deplibs=
10978         wl=$lt_prog_compiler_wl_CXX
10979         compiler_flags=-v
10980         linker_flags=-v
10981         verstring=
10982         output_objdir=.
10983         libname=conftest
10984         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10985         allow_undefined_flag_CXX=
10986         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10987   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10988   ac_status=$?
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); }
10991         then
10992           archive_cmds_need_lc_CXX=no
10993         else
10994           archive_cmds_need_lc_CXX=yes
10995         fi
10996         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10997       else
10998         cat conftest.err 1>&5
10999       fi
11000       $rm conftest*
11001       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11002 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11003       ;;
11004     esac
11005   fi
11006   ;;
11007 esac
11008
11009 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11010 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11011 hardcode_action_CXX=
11012 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11013    test -n "$runpath_var CXX" || \
11014    test "X$hardcode_automatic_CXX"="Xyes" ; then
11015
11016   # We can hardcode non-existant directories.
11017   if test "$hardcode_direct_CXX" != no &&
11018      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11019      # have to relink, otherwise we might link with an installed library
11020      # when we should be linking with a yet-to-be-installed one
11021      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11022      test "$hardcode_minus_L_CXX" != no; then
11023     # Linking always hardcodes the temporary library directory.
11024     hardcode_action_CXX=relink
11025   else
11026     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11027     hardcode_action_CXX=immediate
11028   fi
11029 else
11030   # We cannot hardcode anything, or else we can only hardcode existing
11031   # directories.
11032   hardcode_action_CXX=unsupported
11033 fi
11034 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11035 echo "${ECHO_T}$hardcode_action_CXX" >&6
11036
11037 if test "$hardcode_action_CXX" = relink; then
11038   # Fast installation is not supported
11039   enable_fast_install=no
11040 elif test "$shlibpath_overrides_runpath" = yes ||
11041      test "$enable_shared" = no; then
11042   # Fast installation is not necessary
11043   enable_fast_install=needless
11044 fi
11045
11046 striplib=
11047 old_striplib=
11048 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11049 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11050 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11051   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11052   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11053   echo "$as_me:$LINENO: result: yes" >&5
11054 echo "${ECHO_T}yes" >&6
11055 else
11056 # FIXME - insert some real tests, host_os isn't really good enough
11057   case $host_os in
11058    darwin*)
11059        if test -n "$STRIP" ; then
11060          striplib="$STRIP -x"
11061          echo "$as_me:$LINENO: result: yes" >&5
11062 echo "${ECHO_T}yes" >&6
11063        else
11064   echo "$as_me:$LINENO: result: no" >&5
11065 echo "${ECHO_T}no" >&6
11066 fi
11067        ;;
11068    *)
11069   echo "$as_me:$LINENO: result: no" >&5
11070 echo "${ECHO_T}no" >&6
11071     ;;
11072   esac
11073 fi
11074
11075 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11076 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11077 library_names_spec=
11078 libname_spec='lib$name'
11079 soname_spec=
11080 shrext=".so"
11081 postinstall_cmds=
11082 postuninstall_cmds=
11083 finish_cmds=
11084 finish_eval=
11085 shlibpath_var=
11086 shlibpath_overrides_runpath=unknown
11087 version_type=none
11088 dynamic_linker="$host_os ld.so"
11089 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11090 if test "$GCC" = yes; then
11091   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11092   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11093     # if the path contains ";" then we assume it to be the separator
11094     # otherwise default to the standard path separator (i.e. ":") - it is
11095     # assumed that no part of a normal pathname contains ";" but that should
11096     # okay in the real world where ";" in dirpaths is itself problematic.
11097     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11098   else
11099     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11100   fi
11101 else
11102   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11103 fi
11104 need_lib_prefix=unknown
11105 hardcode_into_libs=no
11106
11107 # when you set need_version to no, make sure it does not cause -set_version
11108 # flags to be left without arguments
11109 need_version=unknown
11110
11111 case $host_os in
11112 aix3*)
11113   version_type=linux
11114   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11115   shlibpath_var=LIBPATH
11116
11117   # AIX 3 has no versioning support, so we append a major version to the name.
11118   soname_spec='${libname}${release}${shared_ext}$major'
11119   ;;
11120
11121 aix4* | aix5*)
11122   version_type=linux
11123   need_lib_prefix=no
11124   need_version=no
11125   hardcode_into_libs=yes
11126   if test "$host_cpu" = ia64; then
11127     # AIX 5 supports IA64
11128     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11129     shlibpath_var=LD_LIBRARY_PATH
11130   else
11131     # With GCC up to 2.95.x, collect2 would create an import file
11132     # for dependence libraries.  The import file would start with
11133     # the line `#! .'.  This would cause the generated library to
11134     # depend on `.', always an invalid library.  This was fixed in
11135     # development snapshots of GCC prior to 3.0.
11136     case $host_os in
11137       aix4 | aix4.[01] | aix4.[01].*)
11138       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11139            echo ' yes '
11140            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11141         :
11142       else
11143         can_build_shared=no
11144       fi
11145       ;;
11146     esac
11147     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11148     # soname into executable. Probably we can add versioning support to
11149     # collect2, so additional links can be useful in future.
11150     if test "$aix_use_runtimelinking" = yes; then
11151       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11152       # instead of lib<name>.a to let people know that these are not
11153       # typical AIX shared libraries.
11154       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155     else
11156       # We preserve .a as extension for shared libraries through AIX4.2
11157       # and later when we are not doing run time linking.
11158       library_names_spec='${libname}${release}.a $libname.a'
11159       soname_spec='${libname}${release}${shared_ext}$major'
11160     fi
11161     shlibpath_var=LIBPATH
11162   fi
11163   ;;
11164
11165 amigaos*)
11166   library_names_spec='$libname.ixlibrary $libname.a'
11167   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11168   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'
11169   ;;
11170
11171 beos*)
11172   library_names_spec='${libname}${shared_ext}'
11173   dynamic_linker="$host_os ld.so"
11174   shlibpath_var=LIBRARY_PATH
11175   ;;
11176
11177 bsdi4*)
11178   version_type=linux
11179   need_version=no
11180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181   soname_spec='${libname}${release}${shared_ext}$major'
11182   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11183   shlibpath_var=LD_LIBRARY_PATH
11184   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11185   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11186   # the default ld.so.conf also contains /usr/contrib/lib and
11187   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11188   # libtool to hard-code these into programs
11189   ;;
11190
11191 cygwin* | mingw* | pw32*)
11192   version_type=windows
11193   shrext=".dll"
11194   need_version=no
11195   need_lib_prefix=no
11196
11197   case $GCC,$host_os in
11198   yes,cygwin* | yes,mingw* | yes,pw32*)
11199     library_names_spec='$libname.dll.a'
11200     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11201     postinstall_cmds='base_file=`basename \${file}`~
11202       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11203       dldir=$destdir/`dirname \$dlpath`~
11204       test -d \$dldir || mkdir -p \$dldir~
11205       $install_prog $dir/$dlname \$dldir/$dlname'
11206     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11207       dlpath=$dir/\$dldll~
11208        $rm \$dlpath'
11209     shlibpath_overrides_runpath=yes
11210
11211     case $host_os in
11212     cygwin*)
11213       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11214       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11215       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11216       ;;
11217     mingw*)
11218       # MinGW DLLs use traditional 'lib' prefix
11219       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11220       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11221       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11222         # It is most probably a Windows format PATH printed by
11223         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11224         # path with ; separators, and with drive letters. We can handle the
11225         # drive letters (cygwin fileutils understands them), so leave them,
11226         # especially as we might pass files found there to a mingw objdump,
11227         # which wouldn't understand a cygwinified path. Ahh.
11228         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11229       else
11230         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11231       fi
11232       ;;
11233     pw32*)
11234       # pw32 DLLs use 'pw' prefix rather than 'lib'
11235       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11236       ;;
11237     esac
11238     ;;
11239
11240   *)
11241     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11242     ;;
11243   esac
11244   dynamic_linker='Win32 ld.exe'
11245   # FIXME: first we should search . and the directory the executable is in
11246   shlibpath_var=PATH
11247   ;;
11248
11249 darwin* | rhapsody*)
11250   dynamic_linker="$host_os dyld"
11251   version_type=darwin
11252   need_lib_prefix=no
11253   need_version=no
11254   # FIXME: Relying on posixy $() will cause problems for
11255   #        cross-compilation, but unfortunately the echo tests do not
11256   #        yet detect zsh echo's removal of \ escapes.
11257   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11258   soname_spec='${libname}${release}${major}$shared_ext'
11259   shlibpath_overrides_runpath=yes
11260   shlibpath_var=DYLD_LIBRARY_PATH
11261   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11262   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11263   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11264   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"`
11265   fi
11266   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11267   ;;
11268
11269 dgux*)
11270   version_type=linux
11271   need_lib_prefix=no
11272   need_version=no
11273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11274   soname_spec='${libname}${release}${shared_ext}$major'
11275   shlibpath_var=LD_LIBRARY_PATH
11276   ;;
11277
11278 freebsd1*)
11279   dynamic_linker=no
11280   ;;
11281
11282 freebsd*)
11283   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11284   version_type=freebsd-$objformat
11285   case $version_type in
11286     freebsd-elf*)
11287       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11288       need_version=no
11289       need_lib_prefix=no
11290       ;;
11291     freebsd-*)
11292       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11293       need_version=yes
11294       ;;
11295   esac
11296   shlibpath_var=LD_LIBRARY_PATH
11297   case $host_os in
11298   freebsd2*)
11299     shlibpath_overrides_runpath=yes
11300     ;;
11301   freebsd3.01* | freebsdelf3.01*)
11302     shlibpath_overrides_runpath=yes
11303     hardcode_into_libs=yes
11304     ;;
11305   *) # from 3.2 on
11306     shlibpath_overrides_runpath=no
11307     hardcode_into_libs=yes
11308     ;;
11309   esac
11310   ;;
11311
11312 gnu*)
11313   version_type=linux
11314   need_lib_prefix=no
11315   need_version=no
11316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11317   soname_spec='${libname}${release}${shared_ext}$major'
11318   shlibpath_var=LD_LIBRARY_PATH
11319   hardcode_into_libs=yes
11320   ;;
11321
11322 hpux9* | hpux10* | hpux11*)
11323   # Give a soname corresponding to the major version so that dld.sl refuses to
11324   # link against other versions.
11325   version_type=sunos
11326   need_lib_prefix=no
11327   need_version=no
11328   case "$host_cpu" in
11329   ia64*)
11330     shrext='.so'
11331     hardcode_into_libs=yes
11332     dynamic_linker="$host_os dld.so"
11333     shlibpath_var=LD_LIBRARY_PATH
11334     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336     soname_spec='${libname}${release}${shared_ext}$major'
11337     if test "X$HPUX_IA64_MODE" = X32; then
11338       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11339     else
11340       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11341     fi
11342     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11343     ;;
11344    hppa*64*)
11345      shrext='.sl'
11346      hardcode_into_libs=yes
11347      dynamic_linker="$host_os dld.sl"
11348      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11349      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11350      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351      soname_spec='${libname}${release}${shared_ext}$major'
11352      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11353      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11354      ;;
11355    *)
11356     shrext='.sl'
11357     dynamic_linker="$host_os dld.sl"
11358     shlibpath_var=SHLIB_PATH
11359     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361     soname_spec='${libname}${release}${shared_ext}$major'
11362     ;;
11363   esac
11364   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11365   postinstall_cmds='chmod 555 $lib'
11366   ;;
11367
11368 irix5* | irix6* | nonstopux*)
11369   case $host_os in
11370     nonstopux*) version_type=nonstopux ;;
11371     *)
11372         if test "$lt_cv_prog_gnu_ld" = yes; then
11373                 version_type=linux
11374         else
11375                 version_type=irix
11376         fi ;;
11377   esac
11378   need_lib_prefix=no
11379   need_version=no
11380   soname_spec='${libname}${release}${shared_ext}$major'
11381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11382   case $host_os in
11383   irix5* | nonstopux*)
11384     libsuff= shlibsuff=
11385     ;;
11386   *)
11387     case $LD in # libtool.m4 will add one of these switches to LD
11388     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11389       libsuff= shlibsuff= libmagic=32-bit;;
11390     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11391       libsuff=32 shlibsuff=N32 libmagic=N32;;
11392     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11393       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11394     *) libsuff= shlibsuff= libmagic=never-match;;
11395     esac
11396     ;;
11397   esac
11398   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11399   shlibpath_overrides_runpath=no
11400   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11401   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11402   hardcode_into_libs=yes
11403   ;;
11404
11405 # No shared lib support for Linux oldld, aout, or coff.
11406 linux*oldld* | linux*aout* | linux*coff*)
11407   dynamic_linker=no
11408   ;;
11409
11410 # This must be Linux ELF.
11411 linux*)
11412   version_type=linux
11413   need_lib_prefix=no
11414   need_version=no
11415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11416   soname_spec='${libname}${release}${shared_ext}$major'
11417   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11418   shlibpath_var=LD_LIBRARY_PATH
11419   shlibpath_overrides_runpath=no
11420   # This implies no fast_install, which is unacceptable.
11421   # Some rework will be needed to allow for fast_install
11422   # before this can be enabled.
11423   hardcode_into_libs=yes
11424
11425   # We used to test for /lib/ld.so.1 and disable shared libraries on
11426   # powerpc, because MkLinux only supported shared libraries with the
11427   # GNU dynamic linker.  Since this was broken with cross compilers,
11428   # most powerpc-linux boxes support dynamic linking these days and
11429   # people can always --disable-shared, the test was removed, and we
11430   # assume the GNU/Linux dynamic linker is in use.
11431   dynamic_linker='GNU/Linux ld.so'
11432   ;;
11433
11434 netbsd*)
11435   version_type=sunos
11436   need_lib_prefix=no
11437   need_version=no
11438   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11440     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11441     dynamic_linker='NetBSD (a.out) ld.so'
11442   else
11443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11444     soname_spec='${libname}${release}${shared_ext}$major'
11445     dynamic_linker='NetBSD ld.elf_so'
11446   fi
11447   shlibpath_var=LD_LIBRARY_PATH
11448   shlibpath_overrides_runpath=yes
11449   hardcode_into_libs=yes
11450   ;;
11451
11452 newsos6)
11453   version_type=linux
11454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455   shlibpath_var=LD_LIBRARY_PATH
11456   shlibpath_overrides_runpath=yes
11457   ;;
11458
11459 nto-qnx)
11460   version_type=linux
11461   need_lib_prefix=no
11462   need_version=no
11463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464   soname_spec='${libname}${release}${shared_ext}$major'
11465   shlibpath_var=LD_LIBRARY_PATH
11466   shlibpath_overrides_runpath=yes
11467   ;;
11468
11469 openbsd*)
11470   version_type=sunos
11471   need_lib_prefix=no
11472   need_version=no
11473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11474   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11475   shlibpath_var=LD_LIBRARY_PATH
11476   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11477     case $host_os in
11478       openbsd2.[89] | openbsd2.[89].*)
11479         shlibpath_overrides_runpath=no
11480         ;;
11481       *)
11482         shlibpath_overrides_runpath=yes
11483         ;;
11484       esac
11485   else
11486     shlibpath_overrides_runpath=yes
11487   fi
11488   ;;
11489
11490 os2*)
11491   libname_spec='$name'
11492   shrext=".dll"
11493   need_lib_prefix=no
11494   library_names_spec='$libname${shared_ext} $libname.a'
11495   dynamic_linker='OS/2 ld.exe'
11496   shlibpath_var=LIBPATH
11497   ;;
11498
11499 osf3* | osf4* | osf5*)
11500   version_type=osf
11501   need_lib_prefix=no
11502   need_version=no
11503   soname_spec='${libname}${release}${shared_ext}$major'
11504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505   shlibpath_var=LD_LIBRARY_PATH
11506   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11507   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11508   ;;
11509
11510 sco3.2v5*)
11511   version_type=osf
11512   soname_spec='${libname}${release}${shared_ext}$major'
11513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514   shlibpath_var=LD_LIBRARY_PATH
11515   ;;
11516
11517 solaris*)
11518   version_type=linux
11519   need_lib_prefix=no
11520   need_version=no
11521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522   soname_spec='${libname}${release}${shared_ext}$major'
11523   shlibpath_var=LD_LIBRARY_PATH
11524   shlibpath_overrides_runpath=yes
11525   hardcode_into_libs=yes
11526   # ldd complains unless libraries are executable
11527   postinstall_cmds='chmod +x $lib'
11528   ;;
11529
11530 sunos4*)
11531   version_type=sunos
11532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11533   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11534   shlibpath_var=LD_LIBRARY_PATH
11535   shlibpath_overrides_runpath=yes
11536   if test "$with_gnu_ld" = yes; then
11537     need_lib_prefix=no
11538   fi
11539   need_version=yes
11540   ;;
11541
11542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11543   version_type=linux
11544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545   soname_spec='${libname}${release}${shared_ext}$major'
11546   shlibpath_var=LD_LIBRARY_PATH
11547   case $host_vendor in
11548     sni)
11549       shlibpath_overrides_runpath=no
11550       need_lib_prefix=no
11551       export_dynamic_flag_spec='${wl}-Blargedynsym'
11552       runpath_var=LD_RUN_PATH
11553       ;;
11554     siemens)
11555       need_lib_prefix=no
11556       ;;
11557     motorola)
11558       need_lib_prefix=no
11559       need_version=no
11560       shlibpath_overrides_runpath=no
11561       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11562       ;;
11563   esac
11564   ;;
11565
11566 sysv4*MP*)
11567   if test -d /usr/nec ;then
11568     version_type=linux
11569     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11570     soname_spec='$libname${shared_ext}.$major'
11571     shlibpath_var=LD_LIBRARY_PATH
11572   fi
11573   ;;
11574
11575 uts4*)
11576   version_type=linux
11577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578   soname_spec='${libname}${release}${shared_ext}$major'
11579   shlibpath_var=LD_LIBRARY_PATH
11580   ;;
11581
11582 *)
11583   dynamic_linker=no
11584   ;;
11585 esac
11586 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11587 echo "${ECHO_T}$dynamic_linker" >&6
11588 test "$dynamic_linker" = no && can_build_shared=no
11589
11590 if test "x$enable_dlopen" != xyes; then
11591   enable_dlopen=unknown
11592   enable_dlopen_self=unknown
11593   enable_dlopen_self_static=unknown
11594 else
11595   lt_cv_dlopen=no
11596   lt_cv_dlopen_libs=
11597
11598   case $host_os in
11599   beos*)
11600     lt_cv_dlopen="load_add_on"
11601     lt_cv_dlopen_libs=
11602     lt_cv_dlopen_self=yes
11603     ;;
11604
11605   mingw* | pw32*)
11606     lt_cv_dlopen="LoadLibrary"
11607     lt_cv_dlopen_libs=
11608    ;;
11609
11610   cygwin*)
11611     lt_cv_dlopen="dlopen"
11612     lt_cv_dlopen_libs=
11613    ;;
11614
11615   darwin*)
11616   # if libdl is installed we need to link against it
11617     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11618 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11619 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11620   echo $ECHO_N "(cached) $ECHO_C" >&6
11621 else
11622   ac_check_lib_save_LIBS=$LIBS
11623 LIBS="-ldl  $LIBS"
11624 cat >conftest.$ac_ext <<_ACEOF
11625 #line $LINENO "configure"
11626 /* confdefs.h.  */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h.  */
11631
11632 /* Override any gcc2 internal prototype to avoid an error.  */
11633 #ifdef __cplusplus
11634 extern "C"
11635 #endif
11636 /* We use char because int might match the return type of a gcc2
11637    builtin and then its argument prototype would still apply.  */
11638 char dlopen ();
11639 int
11640 main ()
11641 {
11642 dlopen ();
11643   ;
11644   return 0;
11645 }
11646 _ACEOF
11647 rm -f conftest.$ac_objext conftest$ac_exeext
11648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11649   (eval $ac_link) 2>&5
11650   ac_status=$?
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); } &&
11653          { ac_try='test -s conftest$ac_exeext'
11654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655   (eval $ac_try) 2>&5
11656   ac_status=$?
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); }; }; then
11659   ac_cv_lib_dl_dlopen=yes
11660 else
11661   echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664 ac_cv_lib_dl_dlopen=no
11665 fi
11666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11668 fi
11669 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11670 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11671 if test $ac_cv_lib_dl_dlopen = yes; then
11672   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11673 else
11674
11675     lt_cv_dlopen="dyld"
11676     lt_cv_dlopen_libs=
11677     lt_cv_dlopen_self=yes
11678
11679 fi
11680
11681    ;;
11682
11683   *)
11684     echo "$as_me:$LINENO: checking for shl_load" >&5
11685 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11686 if test "${ac_cv_func_shl_load+set}" = set; then
11687   echo $ECHO_N "(cached) $ECHO_C" >&6
11688 else
11689   cat >conftest.$ac_ext <<_ACEOF
11690 #line $LINENO "configure"
11691 /* confdefs.h.  */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h.  */
11696 /* System header to define __stub macros and hopefully few prototypes,
11697     which can conflict with char shl_load (); below.
11698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11699     <limits.h> exists even on freestanding compilers.  */
11700 #ifdef __STDC__
11701 # include <limits.h>
11702 #else
11703 # include <assert.h>
11704 #endif
11705 /* Override any gcc2 internal prototype to avoid an error.  */
11706 #ifdef __cplusplus
11707 extern "C"
11708 {
11709 #endif
11710 /* We use char because int might match the return type of a gcc2
11711    builtin and then its argument prototype would still apply.  */
11712 char shl_load ();
11713 /* The GNU C library defines this for functions which it implements
11714     to always fail with ENOSYS.  Some functions are actually named
11715     something starting with __ and the normal name is an alias.  */
11716 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11717 choke me
11718 #else
11719 char (*f) () = shl_load;
11720 #endif
11721 #ifdef __cplusplus
11722 }
11723 #endif
11724
11725 int
11726 main ()
11727 {
11728 return f != shl_load;
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11735   (eval $ac_link) 2>&5
11736   ac_status=$?
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); } &&
11739          { ac_try='test -s conftest$ac_exeext'
11740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741   (eval $ac_try) 2>&5
11742   ac_status=$?
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); }; }; then
11745   ac_cv_func_shl_load=yes
11746 else
11747   echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11749
11750 ac_cv_func_shl_load=no
11751 fi
11752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11753 fi
11754 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11755 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11756 if test $ac_cv_func_shl_load = yes; then
11757   lt_cv_dlopen="shl_load"
11758 else
11759   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11760 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11761 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11762   echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764   ac_check_lib_save_LIBS=$LIBS
11765 LIBS="-ldld  $LIBS"
11766 cat >conftest.$ac_ext <<_ACEOF
11767 #line $LINENO "configure"
11768 /* confdefs.h.  */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h.  */
11773
11774 /* Override any gcc2 internal prototype to avoid an error.  */
11775 #ifdef __cplusplus
11776 extern "C"
11777 #endif
11778 /* We use char because int might match the return type of a gcc2
11779    builtin and then its argument prototype would still apply.  */
11780 char shl_load ();
11781 int
11782 main ()
11783 {
11784 shl_load ();
11785   ;
11786   return 0;
11787 }
11788 _ACEOF
11789 rm -f conftest.$ac_objext conftest$ac_exeext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11791   (eval $ac_link) 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); } &&
11795          { ac_try='test -s conftest$ac_exeext'
11796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797   (eval $ac_try) 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); }; }; then
11801   ac_cv_lib_dld_shl_load=yes
11802 else
11803   echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806 ac_cv_lib_dld_shl_load=no
11807 fi
11808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11809 LIBS=$ac_check_lib_save_LIBS
11810 fi
11811 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11812 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11813 if test $ac_cv_lib_dld_shl_load = yes; then
11814   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11815 else
11816   echo "$as_me:$LINENO: checking for dlopen" >&5
11817 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11818 if test "${ac_cv_func_dlopen+set}" = set; then
11819   echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821   cat >conftest.$ac_ext <<_ACEOF
11822 #line $LINENO "configure"
11823 /* confdefs.h.  */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h.  */
11828 /* System header to define __stub macros and hopefully few prototypes,
11829     which can conflict with char dlopen (); below.
11830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11831     <limits.h> exists even on freestanding compilers.  */
11832 #ifdef __STDC__
11833 # include <limits.h>
11834 #else
11835 # include <assert.h>
11836 #endif
11837 /* Override any gcc2 internal prototype to avoid an error.  */
11838 #ifdef __cplusplus
11839 extern "C"
11840 {
11841 #endif
11842 /* We use char because int might match the return type of a gcc2
11843    builtin and then its argument prototype would still apply.  */
11844 char dlopen ();
11845 /* The GNU C library defines this for functions which it implements
11846     to always fail with ENOSYS.  Some functions are actually named
11847     something starting with __ and the normal name is an alias.  */
11848 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11849 choke me
11850 #else
11851 char (*f) () = dlopen;
11852 #endif
11853 #ifdef __cplusplus
11854 }
11855 #endif
11856
11857 int
11858 main ()
11859 {
11860 return f != dlopen;
11861   ;
11862   return 0;
11863 }
11864 _ACEOF
11865 rm -f conftest.$ac_objext conftest$ac_exeext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11867   (eval $ac_link) 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } &&
11871          { ac_try='test -s conftest$ac_exeext'
11872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873   (eval $ac_try) 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); }; }; then
11877   ac_cv_func_dlopen=yes
11878 else
11879   echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882 ac_cv_func_dlopen=no
11883 fi
11884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11885 fi
11886 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11887 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11888 if test $ac_cv_func_dlopen = yes; then
11889   lt_cv_dlopen="dlopen"
11890 else
11891   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11892 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11894   echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896   ac_check_lib_save_LIBS=$LIBS
11897 LIBS="-ldl  $LIBS"
11898 cat >conftest.$ac_ext <<_ACEOF
11899 #line $LINENO "configure"
11900 /* confdefs.h.  */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h.  */
11905
11906 /* Override any gcc2 internal prototype to avoid an error.  */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 /* We use char because int might match the return type of a gcc2
11911    builtin and then its argument prototype would still apply.  */
11912 char dlopen ();
11913 int
11914 main ()
11915 {
11916 dlopen ();
11917   ;
11918   return 0;
11919 }
11920 _ACEOF
11921 rm -f conftest.$ac_objext conftest$ac_exeext
11922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11923   (eval $ac_link) 2>&5
11924   ac_status=$?
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); } &&
11927          { ac_try='test -s conftest$ac_exeext'
11928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929   (eval $ac_try) 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; }; then
11933   ac_cv_lib_dl_dlopen=yes
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938 ac_cv_lib_dl_dlopen=no
11939 fi
11940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11942 fi
11943 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11944 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11945 if test $ac_cv_lib_dl_dlopen = yes; then
11946   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11947 else
11948   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11949 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11950 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953   ac_check_lib_save_LIBS=$LIBS
11954 LIBS="-lsvld  $LIBS"
11955 cat >conftest.$ac_ext <<_ACEOF
11956 #line $LINENO "configure"
11957 /* confdefs.h.  */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h.  */
11962
11963 /* Override any gcc2 internal prototype to avoid an error.  */
11964 #ifdef __cplusplus
11965 extern "C"
11966 #endif
11967 /* We use char because int might match the return type of a gcc2
11968    builtin and then its argument prototype would still apply.  */
11969 char dlopen ();
11970 int
11971 main ()
11972 {
11973 dlopen ();
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11980   (eval $ac_link) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); } &&
11984          { ac_try='test -s conftest$ac_exeext'
11985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986   (eval $ac_try) 2>&5
11987   ac_status=$?
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); }; }; then
11990   ac_cv_lib_svld_dlopen=yes
11991 else
11992   echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11994
11995 ac_cv_lib_svld_dlopen=no
11996 fi
11997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11998 LIBS=$ac_check_lib_save_LIBS
11999 fi
12000 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12001 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12002 if test $ac_cv_lib_svld_dlopen = yes; then
12003   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12004 else
12005   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12006 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12007 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010   ac_check_lib_save_LIBS=$LIBS
12011 LIBS="-ldld  $LIBS"
12012 cat >conftest.$ac_ext <<_ACEOF
12013 #line $LINENO "configure"
12014 /* confdefs.h.  */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h.  */
12019
12020 /* Override any gcc2 internal prototype to avoid an error.  */
12021 #ifdef __cplusplus
12022 extern "C"
12023 #endif
12024 /* We use char because int might match the return type of a gcc2
12025    builtin and then its argument prototype would still apply.  */
12026 char dld_link ();
12027 int
12028 main ()
12029 {
12030 dld_link ();
12031   ;
12032   return 0;
12033 }
12034 _ACEOF
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037   (eval $ac_link) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -s conftest$ac_exeext'
12042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043   (eval $ac_try) 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; }; then
12047   ac_cv_lib_dld_dld_link=yes
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052 ac_cv_lib_dld_dld_link=no
12053 fi
12054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12056 fi
12057 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12058 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12059 if test $ac_cv_lib_dld_dld_link = yes; then
12060   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12061 fi
12062
12063
12064 fi
12065
12066
12067 fi
12068
12069
12070 fi
12071
12072
12073 fi
12074
12075
12076 fi
12077
12078     ;;
12079   esac
12080
12081   if test "x$lt_cv_dlopen" != xno; then
12082     enable_dlopen=yes
12083   else
12084     enable_dlopen=no
12085   fi
12086
12087   case $lt_cv_dlopen in
12088   dlopen)
12089     save_CPPFLAGS="$CPPFLAGS"
12090     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12091
12092     save_LDFLAGS="$LDFLAGS"
12093     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12094
12095     save_LIBS="$LIBS"
12096     LIBS="$lt_cv_dlopen_libs $LIBS"
12097
12098     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12099 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12100 if test "${lt_cv_dlopen_self+set}" = set; then
12101   echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103           if test "$cross_compiling" = yes; then :
12104   lt_cv_dlopen_self=cross
12105 else
12106   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12107   lt_status=$lt_dlunknown
12108   cat > conftest.$ac_ext <<EOF
12109 #line 12109 "configure"
12110 #include "confdefs.h"
12111
12112 #if HAVE_DLFCN_H
12113 #include <dlfcn.h>
12114 #endif
12115
12116 #include <stdio.h>
12117
12118 #ifdef RTLD_GLOBAL
12119 #  define LT_DLGLOBAL           RTLD_GLOBAL
12120 #else
12121 #  ifdef DL_GLOBAL
12122 #    define LT_DLGLOBAL         DL_GLOBAL
12123 #  else
12124 #    define LT_DLGLOBAL         0
12125 #  endif
12126 #endif
12127
12128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12129    find out it does not work in some platform. */
12130 #ifndef LT_DLLAZY_OR_NOW
12131 #  ifdef RTLD_LAZY
12132 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12133 #  else
12134 #    ifdef DL_LAZY
12135 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12136 #    else
12137 #      ifdef RTLD_NOW
12138 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12139 #      else
12140 #        ifdef DL_NOW
12141 #          define LT_DLLAZY_OR_NOW      DL_NOW
12142 #        else
12143 #          define LT_DLLAZY_OR_NOW      0
12144 #        endif
12145 #      endif
12146 #    endif
12147 #  endif
12148 #endif
12149
12150 #ifdef __cplusplus
12151 extern "C" void exit (int);
12152 #endif
12153
12154 void fnord() { int i=42;}
12155 int main ()
12156 {
12157   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12158   int status = $lt_dlunknown;
12159
12160   if (self)
12161     {
12162       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12163       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12164       /* dlclose (self); */
12165     }
12166
12167     exit (status);
12168 }
12169 EOF
12170   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12171   (eval $ac_link) 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12175     (./conftest; exit; ) 2>/dev/null
12176     lt_status=$?
12177     case x$lt_status in
12178       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12179       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12180       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12181     esac
12182   else :
12183     # compilation failed
12184     lt_cv_dlopen_self=no
12185   fi
12186 fi
12187 rm -fr conftest*
12188
12189
12190 fi
12191 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12192 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12193
12194     if test "x$lt_cv_dlopen_self" = xyes; then
12195       LDFLAGS="$LDFLAGS $link_static_flag"
12196       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12197 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12198 if test "${lt_cv_dlopen_self_static+set}" = set; then
12199   echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201           if test "$cross_compiling" = yes; then :
12202   lt_cv_dlopen_self_static=cross
12203 else
12204   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12205   lt_status=$lt_dlunknown
12206   cat > conftest.$ac_ext <<EOF
12207 #line 12207 "configure"
12208 #include "confdefs.h"
12209
12210 #if HAVE_DLFCN_H
12211 #include <dlfcn.h>
12212 #endif
12213
12214 #include <stdio.h>
12215
12216 #ifdef RTLD_GLOBAL
12217 #  define LT_DLGLOBAL           RTLD_GLOBAL
12218 #else
12219 #  ifdef DL_GLOBAL
12220 #    define LT_DLGLOBAL         DL_GLOBAL
12221 #  else
12222 #    define LT_DLGLOBAL         0
12223 #  endif
12224 #endif
12225
12226 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12227    find out it does not work in some platform. */
12228 #ifndef LT_DLLAZY_OR_NOW
12229 #  ifdef RTLD_LAZY
12230 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12231 #  else
12232 #    ifdef DL_LAZY
12233 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12234 #    else
12235 #      ifdef RTLD_NOW
12236 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12237 #      else
12238 #        ifdef DL_NOW
12239 #          define LT_DLLAZY_OR_NOW      DL_NOW
12240 #        else
12241 #          define LT_DLLAZY_OR_NOW      0
12242 #        endif
12243 #      endif
12244 #    endif
12245 #  endif
12246 #endif
12247
12248 #ifdef __cplusplus
12249 extern "C" void exit (int);
12250 #endif
12251
12252 void fnord() { int i=42;}
12253 int main ()
12254 {
12255   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12256   int status = $lt_dlunknown;
12257
12258   if (self)
12259     {
12260       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12261       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12262       /* dlclose (self); */
12263     }
12264
12265     exit (status);
12266 }
12267 EOF
12268   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12269   (eval $ac_link) 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12273     (./conftest; exit; ) 2>/dev/null
12274     lt_status=$?
12275     case x$lt_status in
12276       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12277       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12278       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12279     esac
12280   else :
12281     # compilation failed
12282     lt_cv_dlopen_self_static=no
12283   fi
12284 fi
12285 rm -fr conftest*
12286
12287
12288 fi
12289 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12290 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12291     fi
12292
12293     CPPFLAGS="$save_CPPFLAGS"
12294     LDFLAGS="$save_LDFLAGS"
12295     LIBS="$save_LIBS"
12296     ;;
12297   esac
12298
12299   case $lt_cv_dlopen_self in
12300   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12301   *) enable_dlopen_self=unknown ;;
12302   esac
12303
12304   case $lt_cv_dlopen_self_static in
12305   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12306   *) enable_dlopen_self_static=unknown ;;
12307   esac
12308 fi
12309
12310
12311 # The else clause should only fire when bootstrapping the
12312 # libtool distribution, otherwise you forgot to ship ltmain.sh
12313 # with your package, and you will get complaints that there are
12314 # no rules to generate ltmain.sh.
12315 if test -f "$ltmain"; then
12316   # See if we are running on zsh, and set the options which allow our commands through
12317   # without removal of \ escapes.
12318   if test -n "${ZSH_VERSION+set}" ; then
12319     setopt NO_GLOB_SUBST
12320   fi
12321   # Now quote all the things that may contain metacharacters while being
12322   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12323   # variables and quote the copies for generation of the libtool script.
12324   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12325     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12326     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12327     deplibs_check_method reload_flag reload_cmds need_locks \
12328     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12329     lt_cv_sys_global_symbol_to_c_name_address \
12330     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12331     old_postinstall_cmds old_postuninstall_cmds \
12332     compiler_CXX \
12333     CC_CXX \
12334     LD_CXX \
12335     lt_prog_compiler_wl_CXX \
12336     lt_prog_compiler_pic_CXX \
12337     lt_prog_compiler_static_CXX \
12338     lt_prog_compiler_no_builtin_flag_CXX \
12339     export_dynamic_flag_spec_CXX \
12340     thread_safe_flag_spec_CXX \
12341     whole_archive_flag_spec_CXX \
12342     enable_shared_with_static_runtimes_CXX \
12343     old_archive_cmds_CXX \
12344     old_archive_from_new_cmds_CXX \
12345     predep_objects_CXX \
12346     postdep_objects_CXX \
12347     predeps_CXX \
12348     postdeps_CXX \
12349     compiler_lib_search_path_CXX \
12350     archive_cmds_CXX \
12351     archive_expsym_cmds_CXX \
12352     postinstall_cmds_CXX \
12353     postuninstall_cmds_CXX \
12354     old_archive_from_expsyms_cmds_CXX \
12355     allow_undefined_flag_CXX \
12356     no_undefined_flag_CXX \
12357     export_symbols_cmds_CXX \
12358     hardcode_libdir_flag_spec_CXX \
12359     hardcode_libdir_flag_spec_ld_CXX \
12360     hardcode_libdir_separator_CXX \
12361     hardcode_automatic_CXX \
12362     module_cmds_CXX \
12363     module_expsym_cmds_CXX \
12364     lt_cv_prog_compiler_c_o_CXX \
12365     exclude_expsyms_CXX \
12366     include_expsyms_CXX; do
12367
12368     case $var in
12369     old_archive_cmds_CXX | \
12370     old_archive_from_new_cmds_CXX | \
12371     archive_cmds_CXX | \
12372     archive_expsym_cmds_CXX | \
12373     module_cmds_CXX | \
12374     module_expsym_cmds_CXX | \
12375     old_archive_from_expsyms_cmds_CXX | \
12376     export_symbols_cmds_CXX | \
12377     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12378     postinstall_cmds | postuninstall_cmds | \
12379     old_postinstall_cmds | old_postuninstall_cmds | \
12380     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12381       # Double-quote double-evaled strings.
12382       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12383       ;;
12384     *)
12385       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12386       ;;
12387     esac
12388   done
12389
12390   case $lt_echo in
12391   *'\$0 --fallback-echo"')
12392     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12393     ;;
12394   esac
12395
12396 cfgfile="$ofile"
12397
12398   cat <<__EOF__ >> "$cfgfile"
12399 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12400
12401 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12402
12403 # Shell to use when invoking shell scripts.
12404 SHELL=$lt_SHELL
12405
12406 # Whether or not to build shared libraries.
12407 build_libtool_libs=$enable_shared
12408
12409 # Whether or not to build static libraries.
12410 build_old_libs=$enable_static
12411
12412 # Whether or not to add -lc for building shared libraries.
12413 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12414
12415 # Whether or not to disallow shared libs when runtime libs are static
12416 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12417
12418 # Whether or not to optimize for fast installation.
12419 fast_install=$enable_fast_install
12420
12421 # The host system.
12422 host_alias=$host_alias
12423 host=$host
12424
12425 # An echo program that does not interpret backslashes.
12426 echo=$lt_echo
12427
12428 # The archiver.
12429 AR=$lt_AR
12430 AR_FLAGS=$lt_AR_FLAGS
12431
12432 # A C compiler.
12433 LTCC=$lt_LTCC
12434
12435 # A language-specific compiler.
12436 CC=$lt_compiler_CXX
12437
12438 # Is the compiler the GNU C compiler?
12439 with_gcc=$GCC_CXX
12440
12441 # An ERE matcher.
12442 EGREP=$lt_EGREP
12443
12444 # The linker used to build libraries.
12445 LD=$lt_LD_CXX
12446
12447 # Whether we need hard or soft links.
12448 LN_S=$lt_LN_S
12449
12450 # A BSD-compatible nm program.
12451 NM=$lt_NM
12452
12453 # A symbol stripping program
12454 STRIP=$STRIP
12455
12456 # Used to examine libraries when file_magic_cmd begins "file"
12457 MAGIC_CMD=$MAGIC_CMD
12458
12459 # Used on cygwin: DLL creation program.
12460 DLLTOOL="$DLLTOOL"
12461
12462 # Used on cygwin: object dumper.
12463 OBJDUMP="$OBJDUMP"
12464
12465 # Used on cygwin: assembler.
12466 AS="$AS"
12467
12468 # The name of the directory that contains temporary libtool files.
12469 objdir=$objdir
12470
12471 # How to create reloadable object files.
12472 reload_flag=$lt_reload_flag
12473 reload_cmds=$lt_reload_cmds
12474
12475 # How to pass a linker flag through the compiler.
12476 wl=$lt_lt_prog_compiler_wl_CXX
12477
12478 # Object file suffix (normally "o").
12479 objext="$ac_objext"
12480
12481 # Old archive suffix (normally "a").
12482 libext="$libext"
12483
12484 # Shared library suffix (normally ".so").
12485 shrext='$shrext'
12486
12487 # Executable file suffix (normally "").
12488 exeext="$exeext"
12489
12490 # Additional compiler flags for building library objects.
12491 pic_flag=$lt_lt_prog_compiler_pic_CXX
12492 pic_mode=$pic_mode
12493
12494 # What is the maximum length of a command?
12495 max_cmd_len=$lt_cv_sys_max_cmd_len
12496
12497 # Does compiler simultaneously support -c and -o options?
12498 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12499
12500 # Must we lock files when doing compilation ?
12501 need_locks=$lt_need_locks
12502
12503 # Do we need the lib prefix for modules?
12504 need_lib_prefix=$need_lib_prefix
12505
12506 # Do we need a version for libraries?
12507 need_version=$need_version
12508
12509 # Whether dlopen is supported.
12510 dlopen_support=$enable_dlopen
12511
12512 # Whether dlopen of programs is supported.
12513 dlopen_self=$enable_dlopen_self
12514
12515 # Whether dlopen of statically linked programs is supported.
12516 dlopen_self_static=$enable_dlopen_self_static
12517
12518 # Compiler flag to prevent dynamic linking.
12519 link_static_flag=$lt_lt_prog_compiler_static_CXX
12520
12521 # Compiler flag to turn off builtin functions.
12522 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12523
12524 # Compiler flag to allow reflexive dlopens.
12525 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12526
12527 # Compiler flag to generate shared objects directly from archives.
12528 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12529
12530 # Compiler flag to generate thread-safe objects.
12531 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12532
12533 # Library versioning type.
12534 version_type=$version_type
12535
12536 # Format of library name prefix.
12537 libname_spec=$lt_libname_spec
12538
12539 # List of archive names.  First name is the real one, the rest are links.
12540 # The last name is the one that the linker finds with -lNAME.
12541 library_names_spec=$lt_library_names_spec
12542
12543 # The coded name of the library, if different from the real name.
12544 soname_spec=$lt_soname_spec
12545
12546 # Commands used to build and install an old-style archive.
12547 RANLIB=$lt_RANLIB
12548 old_archive_cmds=$lt_old_archive_cmds_CXX
12549 old_postinstall_cmds=$lt_old_postinstall_cmds
12550 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12551
12552 # Create an old-style archive from a shared archive.
12553 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12554
12555 # Create a temporary old-style archive to link instead of a shared archive.
12556 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12557
12558 # Commands used to build and install a shared archive.
12559 archive_cmds=$lt_archive_cmds_CXX
12560 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12561 postinstall_cmds=$lt_postinstall_cmds
12562 postuninstall_cmds=$lt_postuninstall_cmds
12563
12564 # Commands used to build a loadable module (assumed same as above if empty)
12565 module_cmds=$lt_module_cmds_CXX
12566 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12567
12568 # Commands to strip libraries.
12569 old_striplib=$lt_old_striplib
12570 striplib=$lt_striplib
12571
12572 # Dependencies to place before the objects being linked to create a
12573 # shared library.
12574 predep_objects=$lt_predep_objects_CXX
12575
12576 # Dependencies to place after the objects being linked to create a
12577 # shared library.
12578 postdep_objects=$lt_postdep_objects_CXX
12579
12580 # Dependencies to place before the objects being linked to create a
12581 # shared library.
12582 predeps=$lt_predeps_CXX
12583
12584 # Dependencies to place after the objects being linked to create a
12585 # shared library.
12586 postdeps=$lt_postdeps_CXX
12587
12588 # The library search path used internally by the compiler when linking
12589 # a shared library.
12590 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12591
12592 # Method to check whether dependent libraries are shared objects.
12593 deplibs_check_method=$lt_deplibs_check_method
12594
12595 # Command to use when deplibs_check_method == file_magic.
12596 file_magic_cmd=$lt_file_magic_cmd
12597
12598 # Flag that allows shared libraries with undefined symbols to be built.
12599 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12600
12601 # Flag that forces no undefined symbols.
12602 no_undefined_flag=$lt_no_undefined_flag_CXX
12603
12604 # Commands used to finish a libtool library installation in a directory.
12605 finish_cmds=$lt_finish_cmds
12606
12607 # Same as above, but a single script fragment to be evaled but not shown.
12608 finish_eval=$lt_finish_eval
12609
12610 # Take the output of nm and produce a listing of raw symbols and C names.
12611 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12612
12613 # Transform the output of nm in a proper C declaration
12614 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12615
12616 # Transform the output of nm in a C name address pair
12617 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12618
12619 # This is the shared library runtime path variable.
12620 runpath_var=$runpath_var
12621
12622 # This is the shared library path variable.
12623 shlibpath_var=$shlibpath_var
12624
12625 # Is shlibpath searched before the hard-coded library search path?
12626 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12627
12628 # How to hardcode a shared library path into an executable.
12629 hardcode_action=$hardcode_action_CXX
12630
12631 # Whether we should hardcode library paths into libraries.
12632 hardcode_into_libs=$hardcode_into_libs
12633
12634 # Flag to hardcode \$libdir into a binary during linking.
12635 # This must work even if \$libdir does not exist.
12636 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12637
12638 # If ld is used when linking, flag to hardcode \$libdir into
12639 # a binary during linking. This must work even if \$libdir does
12640 # not exist.
12641 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12642
12643 # Whether we need a single -rpath flag with a separated argument.
12644 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12645
12646 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12647 # resulting binary.
12648 hardcode_direct=$hardcode_direct_CXX
12649
12650 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12651 # resulting binary.
12652 hardcode_minus_L=$hardcode_minus_L_CXX
12653
12654 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12655 # the resulting binary.
12656 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12657
12658 # Set to yes if building a shared library automatically hardcodes DIR into the library
12659 # and all subsequent libraries and executables linked against it.
12660 hardcode_automatic=$hardcode_automatic_CXX
12661
12662 # Variables whose values should be saved in libtool wrapper scripts and
12663 # restored at relink time.
12664 variables_saved_for_relink="$variables_saved_for_relink"
12665
12666 # Whether libtool must link a program against all its dependency libraries.
12667 link_all_deplibs=$link_all_deplibs_CXX
12668
12669 # Compile-time system search path for libraries
12670 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12671
12672 # Run-time system search path for libraries
12673 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12674
12675 # Fix the shell variable \$srcfile for the compiler.
12676 fix_srcfile_path="$fix_srcfile_path_CXX"
12677
12678 # Set to yes if exported symbols are required.
12679 always_export_symbols=$always_export_symbols_CXX
12680
12681 # The commands to list exported symbols.
12682 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12683
12684 # The commands to extract the exported symbol list from a shared archive.
12685 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12686
12687 # Symbols that should not be listed in the preloaded symbols.
12688 exclude_expsyms=$lt_exclude_expsyms_CXX
12689
12690 # Symbols that must always be exported.
12691 include_expsyms=$lt_include_expsyms_CXX
12692
12693 # ### END LIBTOOL TAG CONFIG: $tagname
12694
12695 __EOF__
12696
12697
12698 else
12699   # If there is no Makefile yet, we rely on a make rule to execute
12700   # `config.status --recheck' to rerun these tests and create the
12701   # libtool script then.
12702   test -f Makefile && make "$ltmain"
12703 fi
12704
12705
12706 ac_ext=c
12707 ac_cpp='$CPP $CPPFLAGS'
12708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12711
12712 CC=$lt_save_CC
12713 LDCXX=$LD
12714 LD=$lt_save_LD
12715 GCC=$lt_save_GCC
12716 with_gnu_ldcxx=$with_gnu_ld
12717 with_gnu_ld=$lt_save_with_gnu_ld
12718 lt_cv_path_LDCXX=$lt_cv_path_LD
12719 lt_cv_path_LD=$lt_save_path_LD
12720 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12721 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12722
12723         else
12724           tagname=""
12725         fi
12726         ;;
12727
12728       F77)
12729         if test -n "$F77" && test "X$F77" != "Xno"; then
12730
12731 ac_ext=f
12732 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12733 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12734 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12735
12736
12737 archive_cmds_need_lc_F77=no
12738 allow_undefined_flag_F77=
12739 always_export_symbols_F77=no
12740 archive_expsym_cmds_F77=
12741 export_dynamic_flag_spec_F77=
12742 hardcode_direct_F77=no
12743 hardcode_libdir_flag_spec_F77=
12744 hardcode_libdir_flag_spec_ld_F77=
12745 hardcode_libdir_separator_F77=
12746 hardcode_minus_L_F77=no
12747 hardcode_automatic_F77=no
12748 module_cmds_F77=
12749 module_expsym_cmds_F77=
12750 link_all_deplibs_F77=unknown
12751 old_archive_cmds_F77=$old_archive_cmds
12752 no_undefined_flag_F77=
12753 whole_archive_flag_spec_F77=
12754 enable_shared_with_static_runtimes_F77=no
12755
12756 # Source file extension for f77 test sources.
12757 ac_ext=f
12758
12759 # Object file extension for compiled f77 test sources.
12760 objext=o
12761 objext_F77=$objext
12762
12763 # Code to be used in simple compile tests
12764 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12765
12766 # Code to be used in simple link tests
12767 lt_simple_link_test_code="      program t\n      end\n"
12768
12769 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12770
12771 # If no C compiler was specified, use CC.
12772 LTCC=${LTCC-"$CC"}
12773
12774 # Allow CC to be a program name with arguments.
12775 compiler=$CC
12776
12777
12778 # Allow CC to be a program name with arguments.
12779 lt_save_CC="$CC"
12780 CC=${F77-"f77"}
12781 compiler=$CC
12782 compiler_F77=$CC
12783 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12784
12785 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12786 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12787 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12788 echo "${ECHO_T}$can_build_shared" >&6
12789
12790 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12791 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12792 test "$can_build_shared" = "no" && enable_shared=no
12793
12794 # On AIX, shared libraries and static libraries use the same namespace, and
12795 # are all built from PIC.
12796 case "$host_os" in
12797 aix3*)
12798   test "$enable_shared" = yes && enable_static=no
12799   if test -n "$RANLIB"; then
12800     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12801     postinstall_cmds='$RANLIB $lib'
12802   fi
12803   ;;
12804 aix4*)
12805   test "$enable_shared" = yes && enable_static=no
12806   ;;
12807 esac
12808 echo "$as_me:$LINENO: result: $enable_shared" >&5
12809 echo "${ECHO_T}$enable_shared" >&6
12810
12811 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12812 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12813 # Make sure either enable_shared or enable_static is yes.
12814 test "$enable_shared" = yes || enable_static=yes
12815 echo "$as_me:$LINENO: result: $enable_static" >&5
12816 echo "${ECHO_T}$enable_static" >&6
12817
12818 test "$ld_shlibs_F77" = no && can_build_shared=no
12819
12820 GCC_F77="$G77"
12821 LD_F77="$LD"
12822
12823 lt_prog_compiler_wl_F77=
12824 lt_prog_compiler_pic_F77=
12825 lt_prog_compiler_static_F77=
12826
12827 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12828 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12829
12830   if test "$GCC" = yes; then
12831     lt_prog_compiler_wl_F77='-Wl,'
12832     lt_prog_compiler_static_F77='-static'
12833
12834     case $host_os in
12835       aix*)
12836       # All AIX code is PIC.
12837       if test "$host_cpu" = ia64; then
12838         # AIX 5 now supports IA64 processor
12839         lt_prog_compiler_static_F77='-Bstatic'
12840       fi
12841       ;;
12842
12843     amigaos*)
12844       # FIXME: we need at least 68020 code to build shared libraries, but
12845       # adding the `-m68020' flag to GCC prevents building anything better,
12846       # like `-m68040'.
12847       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12848       ;;
12849
12850     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12851       # PIC is the default for these OSes.
12852       ;;
12853
12854     mingw* | pw32* | os2*)
12855       # This hack is so that the source file can tell whether it is being
12856       # built for inclusion in a dll (and should export symbols for example).
12857       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12858       ;;
12859
12860     darwin* | rhapsody*)
12861       # PIC is the default on this platform
12862       # Common symbols not allowed in MH_DYLIB files
12863       lt_prog_compiler_pic_F77='-fno-common'
12864       ;;
12865
12866     msdosdjgpp*)
12867       # Just because we use GCC doesn't mean we suddenly get shared libraries
12868       # on systems that don't support them.
12869       lt_prog_compiler_can_build_shared_F77=no
12870       enable_shared=no
12871       ;;
12872
12873     sysv4*MP*)
12874       if test -d /usr/nec; then
12875         lt_prog_compiler_pic_F77=-Kconform_pic
12876       fi
12877       ;;
12878
12879     hpux*)
12880       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12881       # not for PA HP-UX.
12882       case "$host_cpu" in
12883       hppa*64*|ia64*)
12884         # +Z the default
12885         ;;
12886       *)
12887         lt_prog_compiler_pic_F77='-fPIC'
12888         ;;
12889       esac
12890       ;;
12891
12892     *)
12893       lt_prog_compiler_pic_F77='-fPIC'
12894       ;;
12895     esac
12896   else
12897     # PORTME Check for flag to pass linker flags through the system compiler.
12898     case $host_os in
12899     aix*)
12900       lt_prog_compiler_wl_F77='-Wl,'
12901       if test "$host_cpu" = ia64; then
12902         # AIX 5 now supports IA64 processor
12903         lt_prog_compiler_static_F77='-Bstatic'
12904       else
12905         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12906       fi
12907       ;;
12908
12909     mingw* | pw32* | os2*)
12910       # This hack is so that the source file can tell whether it is being
12911       # built for inclusion in a dll (and should export symbols for example).
12912       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12913       ;;
12914
12915     hpux9* | hpux10* | hpux11*)
12916       lt_prog_compiler_wl_F77='-Wl,'
12917       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12918       # not for PA HP-UX.
12919       case "$host_cpu" in
12920       hppa*64*|ia64*)
12921         # +Z the default
12922         ;;
12923       *)
12924         lt_prog_compiler_pic_F77='+Z'
12925         ;;
12926       esac
12927       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12928       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12929       ;;
12930
12931     irix5* | irix6* | nonstopux*)
12932       lt_prog_compiler_wl_F77='-Wl,'
12933       # PIC (with -KPIC) is the default.
12934       lt_prog_compiler_static_F77='-non_shared'
12935       ;;
12936
12937     newsos6)
12938       lt_prog_compiler_pic_F77='-KPIC'
12939       lt_prog_compiler_static_F77='-Bstatic'
12940       ;;
12941
12942     linux*)
12943       case $CC in
12944       icc|ecc)
12945         lt_prog_compiler_wl_F77='-Wl,'
12946         lt_prog_compiler_pic_F77='-KPIC'
12947         lt_prog_compiler_static_F77='-static'
12948         ;;
12949       ccc)
12950         lt_prog_compiler_wl_F77='-Wl,'
12951         # All Alpha code is PIC.
12952         lt_prog_compiler_static_F77='-non_shared'
12953         ;;
12954       esac
12955       ;;
12956
12957     osf3* | osf4* | osf5*)
12958       lt_prog_compiler_wl_F77='-Wl,'
12959       # All OSF/1 code is PIC.
12960       lt_prog_compiler_static_F77='-non_shared'
12961       ;;
12962
12963     sco3.2v5*)
12964       lt_prog_compiler_pic_F77='-Kpic'
12965       lt_prog_compiler_static_F77='-dn'
12966       ;;
12967
12968     solaris*)
12969       lt_prog_compiler_wl_F77='-Wl,'
12970       lt_prog_compiler_pic_F77='-KPIC'
12971       lt_prog_compiler_static_F77='-Bstatic'
12972       ;;
12973
12974     sunos4*)
12975       lt_prog_compiler_wl_F77='-Qoption ld '
12976       lt_prog_compiler_pic_F77='-PIC'
12977       lt_prog_compiler_static_F77='-Bstatic'
12978       ;;
12979
12980     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12981       lt_prog_compiler_wl_F77='-Wl,'
12982       lt_prog_compiler_pic_F77='-KPIC'
12983       lt_prog_compiler_static_F77='-Bstatic'
12984       ;;
12985
12986     sysv4*MP*)
12987       if test -d /usr/nec ;then
12988         lt_prog_compiler_pic_F77='-Kconform_pic'
12989         lt_prog_compiler_static_F77='-Bstatic'
12990       fi
12991       ;;
12992
12993     uts4*)
12994       lt_prog_compiler_pic_F77='-pic'
12995       lt_prog_compiler_static_F77='-Bstatic'
12996       ;;
12997
12998     *)
12999       lt_prog_compiler_can_build_shared_F77=no
13000       ;;
13001     esac
13002   fi
13003
13004 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13005 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13006
13007 #
13008 # Check to make sure the PIC flag actually works.
13009 #
13010 if test -n "$lt_prog_compiler_pic_F77"; then
13011   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13012 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13013 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13014   echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016   lt_prog_compiler_pic_works_F77=no
13017   ac_outfile=conftest.$ac_objext
13018    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13019    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13020    # Insert the option either (1) after the last *FLAGS variable, or
13021    # (2) before a word containing "conftest.", or (3) at the end.
13022    # Note that $ac_compile itself does not contain backslashes and begins
13023    # with a dollar sign (not a hyphen), so the echo should work correctly.
13024    # The option is referenced via a variable to avoid confusing sed.
13025    lt_compile=`echo "$ac_compile" | $SED \
13026    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13028    -e 's:$: $lt_compiler_flag:'`
13029    (eval echo "\"\$as_me:13029: $lt_compile\"" >&5)
13030    (eval "$lt_compile" 2>conftest.err)
13031    ac_status=$?
13032    cat conftest.err >&5
13033    echo "$as_me:13033: \$? = $ac_status" >&5
13034    if (exit $ac_status) && test -s "$ac_outfile"; then
13035      # The compiler can only warn and ignore the option if not recognized
13036      # So say no if there are warnings
13037      if test ! -s conftest.err; then
13038        lt_prog_compiler_pic_works_F77=yes
13039      fi
13040    fi
13041    $rm conftest*
13042
13043 fi
13044 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13045 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13046
13047 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13048     case $lt_prog_compiler_pic_F77 in
13049      "" | " "*) ;;
13050      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13051      esac
13052 else
13053     lt_prog_compiler_pic_F77=
13054      lt_prog_compiler_can_build_shared_F77=no
13055 fi
13056
13057 fi
13058 case "$host_os" in
13059   # For platforms which do not support PIC, -DPIC is meaningless:
13060   *djgpp*)
13061     lt_prog_compiler_pic_F77=
13062     ;;
13063   *)
13064     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13065     ;;
13066 esac
13067
13068 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13069 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13070 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13071   echo $ECHO_N "(cached) $ECHO_C" >&6
13072 else
13073   lt_cv_prog_compiler_c_o_F77=no
13074    $rm -r conftest 2>/dev/null
13075    mkdir conftest
13076    cd conftest
13077    mkdir out
13078    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13079
13080    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13081    # that will create temporary files in the current directory regardless of
13082    # the output directory.  Thus, making CWD read-only will cause this test
13083    # to fail, enabling locking or at least warning the user not to do parallel
13084    # builds.
13085    chmod -w .
13086
13087    lt_compiler_flag="-o out/conftest2.$ac_objext"
13088    # Insert the option either (1) after the last *FLAGS variable, or
13089    # (2) before a word containing "conftest.", or (3) at the end.
13090    # Note that $ac_compile itself does not contain backslashes and begins
13091    # with a dollar sign (not a hyphen), so the echo should work correctly.
13092    lt_compile=`echo "$ac_compile" | $SED \
13093    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13094    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13095    -e 's:$: $lt_compiler_flag:'`
13096    (eval echo "\"\$as_me:13096: $lt_compile\"" >&5)
13097    (eval "$lt_compile" 2>out/conftest.err)
13098    ac_status=$?
13099    cat out/conftest.err >&5
13100    echo "$as_me:13100: \$? = $ac_status" >&5
13101    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13102    then
13103      # The compiler can only warn and ignore the option if not recognized
13104      # So say no if there are warnings
13105      if test ! -s out/conftest.err; then
13106        lt_cv_prog_compiler_c_o_F77=yes
13107      fi
13108    fi
13109    chmod u+w .
13110    $rm conftest* out/*
13111    rmdir out
13112    cd ..
13113    rmdir conftest
13114    $rm conftest*
13115
13116 fi
13117 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13118 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13119
13120
13121 hard_links="nottested"
13122 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13123   # do not overwrite the value of need_locks provided by the user
13124   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13125 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13126   hard_links=yes
13127   $rm conftest*
13128   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13129   touch conftest.a
13130   ln conftest.a conftest.b 2>&5 || hard_links=no
13131   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13132   echo "$as_me:$LINENO: result: $hard_links" >&5
13133 echo "${ECHO_T}$hard_links" >&6
13134   if test "$hard_links" = no; then
13135     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13136 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13137     need_locks=warn
13138   fi
13139 else
13140   need_locks=no
13141 fi
13142
13143 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13144 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13145
13146   runpath_var=
13147   allow_undefined_flag_F77=
13148   enable_shared_with_static_runtimes_F77=no
13149   archive_cmds_F77=
13150   archive_expsym_cmds_F77=
13151   old_archive_From_new_cmds_F77=
13152   old_archive_from_expsyms_cmds_F77=
13153   export_dynamic_flag_spec_F77=
13154   whole_archive_flag_spec_F77=
13155   thread_safe_flag_spec_F77=
13156   hardcode_libdir_flag_spec_F77=
13157   hardcode_libdir_flag_spec_ld_F77=
13158   hardcode_libdir_separator_F77=
13159   hardcode_direct_F77=no
13160   hardcode_minus_L_F77=no
13161   hardcode_shlibpath_var_F77=unsupported
13162   link_all_deplibs_F77=unknown
13163   hardcode_automatic_F77=no
13164   module_cmds_F77=
13165   module_expsym_cmds_F77=
13166   always_export_symbols_F77=no
13167   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13168   # include_expsyms should be a list of space-separated symbols to be *always*
13169   # included in the symbol list
13170   include_expsyms_F77=
13171   # exclude_expsyms can be an extended regexp of symbols to exclude
13172   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13173   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13174   # as well as any symbol that contains `d'.
13175   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13176   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13177   # platforms (ab)use it in PIC code, but their linkers get confused if
13178   # the symbol is explicitly referenced.  Since portable code cannot
13179   # rely on this symbol name, it's probably fine to never include it in
13180   # preloaded symbol tables.
13181   extract_expsyms_cmds=
13182
13183   case $host_os in
13184   cygwin* | mingw* | pw32*)
13185     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13186     # When not using gcc, we currently assume that we are using
13187     # Microsoft Visual C++.
13188     if test "$GCC" != yes; then
13189       with_gnu_ld=no
13190     fi
13191     ;;
13192   openbsd*)
13193     with_gnu_ld=no
13194     ;;
13195   esac
13196
13197   ld_shlibs_F77=yes
13198   if test "$with_gnu_ld" = yes; then
13199     # If archive_cmds runs LD, not CC, wlarc should be empty
13200     wlarc='${wl}'
13201
13202     # See if GNU ld supports shared libraries.
13203     case $host_os in
13204     aix3* | aix4* | aix5*)
13205       # On AIX/PPC, the GNU linker is very broken
13206       if test "$host_cpu" != ia64; then
13207         ld_shlibs_F77=no
13208         cat <<EOF 1>&2
13209
13210 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13211 *** to be unable to reliably create shared libraries on AIX.
13212 *** Therefore, libtool is disabling shared libraries support.  If you
13213 *** really care for shared libraries, you may want to modify your PATH
13214 *** so that a non-GNU linker is found, and then restart.
13215
13216 EOF
13217       fi
13218       ;;
13219
13220     amigaos*)
13221       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)'
13222       hardcode_libdir_flag_spec_F77='-L$libdir'
13223       hardcode_minus_L_F77=yes
13224
13225       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13226       # that the semantics of dynamic libraries on AmigaOS, at least up
13227       # to version 4, is to share data among multiple programs linked
13228       # with the same dynamic library.  Since this doesn't match the
13229       # behavior of shared libraries on other platforms, we can't use
13230       # them.
13231       ld_shlibs_F77=no
13232       ;;
13233
13234     beos*)
13235       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13236         allow_undefined_flag_F77=unsupported
13237         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13238         # support --undefined.  This deserves some investigation.  FIXME
13239         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13240       else
13241         ld_shlibs_F77=no
13242       fi
13243       ;;
13244
13245     cygwin* | mingw* | pw32*)
13246       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13247       # as there is no search path for DLLs.
13248       hardcode_libdir_flag_spec_F77='-L$libdir'
13249       allow_undefined_flag_F77=unsupported
13250       always_export_symbols_F77=no
13251       enable_shared_with_static_runtimes_F77=yes
13252       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13253
13254       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13255         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13256         # If the export-symbols file already is a .def file (1st line
13257         # is EXPORTS), use it as is; otherwise, prepend...
13258         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13259           cp $export_symbols $output_objdir/$soname.def;
13260         else
13261           echo EXPORTS > $output_objdir/$soname.def;
13262           cat $export_symbols >> $output_objdir/$soname.def;
13263         fi~
13264         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13265       else
13266         ld_shlibs=no
13267       fi
13268       ;;
13269
13270     netbsd*)
13271       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13272         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13273         wlarc=
13274       else
13275         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13276         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13277       fi
13278       ;;
13279
13280     solaris* | sysv5*)
13281       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13282         ld_shlibs_F77=no
13283         cat <<EOF 1>&2
13284
13285 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13286 *** create shared libraries on Solaris systems.  Therefore, libtool
13287 *** is disabling shared libraries support.  We urge you to upgrade GNU
13288 *** binutils to release 2.9.1 or newer.  Another option is to modify
13289 *** your PATH or compiler configuration so that the native linker is
13290 *** used, and then restart.
13291
13292 EOF
13293       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13294         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13295         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13296       else
13297         ld_shlibs_F77=no
13298       fi
13299       ;;
13300
13301     sunos4*)
13302       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13303       wlarc=
13304       hardcode_direct_F77=yes
13305       hardcode_shlibpath_var_F77=no
13306       ;;
13307
13308     *)
13309       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13310         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13311         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13312       else
13313         ld_shlibs_F77=no
13314       fi
13315       ;;
13316     esac
13317
13318     if test "$ld_shlibs_F77" = yes; then
13319       runpath_var=LD_RUN_PATH
13320       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13321       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13322       # ancient GNU ld didn't support --whole-archive et. al.
13323       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13324         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13325       else
13326         whole_archive_flag_spec_F77=
13327       fi
13328     fi
13329   else
13330     # PORTME fill in a description of your system's linker (not GNU ld)
13331     case $host_os in
13332     aix3*)
13333       allow_undefined_flag_F77=unsupported
13334       always_export_symbols_F77=yes
13335       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'
13336       # Note: this linker hardcodes the directories in LIBPATH if there
13337       # are no directories specified by -L.
13338       hardcode_minus_L_F77=yes
13339       if test "$GCC" = yes && test -z "$link_static_flag"; then
13340         # Neither direct hardcoding nor static linking is supported with a
13341         # broken collect2.
13342         hardcode_direct_F77=unsupported
13343       fi
13344       ;;
13345
13346     aix4* | aix5*)
13347       if test "$host_cpu" = ia64; then
13348         # On IA64, the linker does run time linking by default, so we don't
13349         # have to do anything special.
13350         aix_use_runtimelinking=no
13351         exp_sym_flag='-Bexport'
13352         no_entry_flag=""
13353       else
13354         # If we're using GNU nm, then we don't want the "-C" option.
13355         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13356         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13357           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'
13358         else
13359           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'
13360         fi
13361         aix_use_runtimelinking=no
13362
13363         # Test if we are trying to use run time linking or normal
13364         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13365         # need to do runtime linking.
13366         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13367           for ld_flag in $LDFLAGS; do
13368           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13369             aix_use_runtimelinking=yes
13370             break
13371           fi
13372           done
13373         esac
13374
13375         exp_sym_flag='-bexport'
13376         no_entry_flag='-bnoentry'
13377       fi
13378
13379       # When large executables or shared objects are built, AIX ld can
13380       # have problems creating the table of contents.  If linking a library
13381       # or program results in "error TOC overflow" add -mminimal-toc to
13382       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13383       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13384
13385       archive_cmds_F77=''
13386       hardcode_direct_F77=yes
13387       hardcode_libdir_separator_F77=':'
13388       link_all_deplibs_F77=yes
13389
13390       if test "$GCC" = yes; then
13391         case $host_os in aix4.012|aix4.012.*)
13392         # We only want to do this on AIX 4.2 and lower, the check
13393         # below for broken collect2 doesn't work under 4.3+
13394           collect2name=`${CC} -print-prog-name=collect2`
13395           if test -f "$collect2name" && \
13396            strings "$collect2name" | grep resolve_lib_name >/dev/null
13397           then
13398           # We have reworked collect2
13399           hardcode_direct_F77=yes
13400           else
13401           # We have old collect2
13402           hardcode_direct_F77=unsupported
13403           # It fails to find uninstalled libraries when the uninstalled
13404           # path is not listed in the libpath.  Setting hardcode_minus_L
13405           # to unsupported forces relinking
13406           hardcode_minus_L_F77=yes
13407           hardcode_libdir_flag_spec_F77='-L$libdir'
13408           hardcode_libdir_separator_F77=
13409           fi
13410         esac
13411         shared_flag='-shared'
13412       else
13413         # not using gcc
13414         if test "$host_cpu" = ia64; then
13415         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13416         # chokes on -Wl,-G. The following line is correct:
13417           shared_flag='-G'
13418         else
13419         if test "$aix_use_runtimelinking" = yes; then
13420             shared_flag='${wl}-G'
13421           else
13422             shared_flag='${wl}-bM:SRE'
13423         fi
13424         fi
13425       fi
13426
13427       # It seems that -bexpall does not export symbols beginning with
13428       # underscore (_), so it is better to generate a list of symbols to export.
13429       always_export_symbols_F77=yes
13430       if test "$aix_use_runtimelinking" = yes; then
13431         # Warning - without using the other runtime loading flags (-brtl),
13432         # -berok will link without error, but may produce a broken library.
13433         allow_undefined_flag_F77='-berok'
13434        # Determine the default libpath from the value encoded in an empty executable.
13435        cat >conftest.$ac_ext <<_ACEOF
13436       program main
13437
13438       end
13439 _ACEOF
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442   (eval $ac_link) 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); } &&
13446          { ac_try='test -s conftest$ac_exeext'
13447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448   (eval $ac_try) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; }; then
13452
13453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13454 }'`
13455 # Check for a 64-bit object if we didn't find anything.
13456 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; }
13457 }'`; fi
13458 else
13459   echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462 fi
13463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13465
13466        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13467         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"
13468        else
13469         if test "$host_cpu" = ia64; then
13470           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13471           allow_undefined_flag_F77="-z nodefs"
13472           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"
13473         else
13474          # Determine the default libpath from the value encoded in an empty executable.
13475          cat >conftest.$ac_ext <<_ACEOF
13476       program main
13477
13478       end
13479 _ACEOF
13480 rm -f conftest.$ac_objext conftest$ac_exeext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482   (eval $ac_link) 2>&5
13483   ac_status=$?
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); } &&
13486          { ac_try='test -s conftest$ac_exeext'
13487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488   (eval $ac_try) 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; }; then
13492
13493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13494 }'`
13495 # Check for a 64-bit object if we didn't find anything.
13496 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; }
13497 }'`; fi
13498 else
13499   echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13501
13502 fi
13503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13505
13506          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13507           # Warning - without using the other run time loading flags,
13508           # -berok will link without error, but may produce a broken library.
13509           no_undefined_flag_F77=' ${wl}-bernotok'
13510           allow_undefined_flag_F77=' ${wl}-berok'
13511           # -bexpall does not export symbols beginning with underscore (_)
13512           always_export_symbols_F77=yes
13513           # Exported symbols can be pulled into shared objects from archives
13514           whole_archive_flag_spec_F77=' '
13515           archive_cmds_need_lc_F77=yes
13516           # This is similar to how AIX traditionally builds it's shared libraries.
13517           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'
13518         fi
13519       fi
13520       ;;
13521
13522     amigaos*)
13523       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)'
13524       hardcode_libdir_flag_spec_F77='-L$libdir'
13525       hardcode_minus_L_F77=yes
13526       # see comment about different semantics on the GNU ld section
13527       ld_shlibs_F77=no
13528       ;;
13529
13530     bsdi4*)
13531       export_dynamic_flag_spec_F77=-rdynamic
13532       ;;
13533
13534     cygwin* | mingw* | pw32*)
13535       # When not using gcc, we currently assume that we are using
13536       # Microsoft Visual C++.
13537       # hardcode_libdir_flag_spec is actually meaningless, as there is
13538       # no search path for DLLs.
13539       hardcode_libdir_flag_spec_F77=' '
13540       allow_undefined_flag_F77=unsupported
13541       # Tell ltmain to make .lib files, not .a files.
13542       libext=lib
13543       # Tell ltmain to make .dll files, not .so files.
13544       shrext=".dll"
13545       # FIXME: Setting linknames here is a bad hack.
13546       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13547       # The linker will automatically build a .lib file if we build a DLL.
13548       old_archive_From_new_cmds_F77='true'
13549       # FIXME: Should let the user specify the lib program.
13550       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13551       fix_srcfile_path='`cygpath -w "$srcfile"`'
13552       enable_shared_with_static_runtimes_F77=yes
13553       ;;
13554
13555     darwin* | rhapsody*)
13556     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13557       archive_cmds_need_lc_F77=no
13558       case "$host_os" in
13559       rhapsody* | darwin1.[012])
13560         allow_undefined_flag_F77='-undefined suppress'
13561         ;;
13562       *) # Darwin 1.3 on
13563         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13564         ;;
13565       esac
13566       # FIXME: Relying on posixy $() will cause problems for
13567       #        cross-compilation, but unfortunately the echo tests do not
13568       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13569       #        `"' quotes if we put them in here... so don't!
13570         lt_int_apple_cc_single_mod=no
13571         output_verbose_link_cmd='echo'
13572         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13573           lt_int_apple_cc_single_mod=yes
13574         fi
13575         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13576           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13577         else
13578         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'
13579       fi
13580       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13581       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13582         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13583           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}'
13584         else
13585           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}'
13586         fi
13587           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}'
13588       hardcode_direct_F77=no
13589       hardcode_automatic_F77=yes
13590       hardcode_shlibpath_var_F77=unsupported
13591       whole_archive_flag_spec_F77='-all_load $convenience'
13592       link_all_deplibs_F77=yes
13593     fi
13594       ;;
13595
13596     dgux*)
13597       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13598       hardcode_libdir_flag_spec_F77='-L$libdir'
13599       hardcode_shlibpath_var_F77=no
13600       ;;
13601
13602     freebsd1*)
13603       ld_shlibs_F77=no
13604       ;;
13605
13606     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13607     # support.  Future versions do this automatically, but an explicit c++rt0.o
13608     # does not break anything, and helps significantly (at the cost of a little
13609     # extra space).
13610     freebsd2.2*)
13611       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13612       hardcode_libdir_flag_spec_F77='-R$libdir'
13613       hardcode_direct_F77=yes
13614       hardcode_shlibpath_var_F77=no
13615       ;;
13616
13617     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13618     freebsd2*)
13619       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13620       hardcode_direct_F77=yes
13621       hardcode_minus_L_F77=yes
13622       hardcode_shlibpath_var_F77=no
13623       ;;
13624
13625     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13626     freebsd*)
13627       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13628       hardcode_libdir_flag_spec_F77='-R$libdir'
13629       hardcode_direct_F77=yes
13630       hardcode_shlibpath_var_F77=no
13631       ;;
13632
13633     hpux9*)
13634       if test "$GCC" = yes; then
13635         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'
13636       else
13637         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'
13638       fi
13639       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13640       hardcode_libdir_separator_F77=:
13641       hardcode_direct_F77=yes
13642
13643       # hardcode_minus_L: Not really in the search PATH,
13644       # but as the default location of the library.
13645       hardcode_minus_L_F77=yes
13646       export_dynamic_flag_spec_F77='${wl}-E'
13647       ;;
13648
13649     hpux10* | hpux11*)
13650       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13651         case "$host_cpu" in
13652         hppa*64*|ia64*)
13653           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13654           ;;
13655         *)
13656           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13657           ;;
13658         esac
13659       else
13660         case "$host_cpu" in
13661         hppa*64*|ia64*)
13662           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13663           ;;
13664         *)
13665           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13666           ;;
13667         esac
13668       fi
13669       if test "$with_gnu_ld" = no; then
13670         case "$host_cpu" in
13671         hppa*64*)
13672           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13673           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13674           hardcode_libdir_separator_F77=:
13675           hardcode_direct_F77=no
13676           hardcode_shlibpath_var_F77=no
13677           ;;
13678         ia64*)
13679           hardcode_libdir_flag_spec_F77='-L$libdir'
13680           hardcode_direct_F77=no
13681           hardcode_shlibpath_var_F77=no
13682
13683           # hardcode_minus_L: Not really in the search PATH,
13684           # but as the default location of the library.
13685           hardcode_minus_L_F77=yes
13686           ;;
13687         *)
13688           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13689           hardcode_libdir_separator_F77=:
13690           hardcode_direct_F77=yes
13691           export_dynamic_flag_spec_F77='${wl}-E'
13692
13693           # hardcode_minus_L: Not really in the search PATH,
13694           # but as the default location of the library.
13695           hardcode_minus_L_F77=yes
13696           ;;
13697         esac
13698       fi
13699       ;;
13700
13701     irix5* | irix6* | nonstopux*)
13702       if test "$GCC" = yes; then
13703         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'
13704       else
13705         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'
13706         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13707       fi
13708       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13709       hardcode_libdir_separator_F77=:
13710       link_all_deplibs_F77=yes
13711       ;;
13712
13713     netbsd*)
13714       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13715         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13716       else
13717         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13718       fi
13719       hardcode_libdir_flag_spec_F77='-R$libdir'
13720       hardcode_direct_F77=yes
13721       hardcode_shlibpath_var_F77=no
13722       ;;
13723
13724     newsos6)
13725       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13726       hardcode_direct_F77=yes
13727       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13728       hardcode_libdir_separator_F77=:
13729       hardcode_shlibpath_var_F77=no
13730       ;;
13731
13732     openbsd*)
13733       hardcode_direct_F77=yes
13734       hardcode_shlibpath_var_F77=no
13735       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13736         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13737         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13738         export_dynamic_flag_spec_F77='${wl}-E'
13739       else
13740        case $host_os in
13741          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13742            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13743            hardcode_libdir_flag_spec_F77='-R$libdir'
13744            ;;
13745          *)
13746            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13747            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13748            ;;
13749        esac
13750       fi
13751       ;;
13752
13753     os2*)
13754       hardcode_libdir_flag_spec_F77='-L$libdir'
13755       hardcode_minus_L_F77=yes
13756       allow_undefined_flag_F77=unsupported
13757       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'
13758       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13759       ;;
13760
13761     osf3*)
13762       if test "$GCC" = yes; then
13763         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13764         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'
13765       else
13766         allow_undefined_flag_F77=' -expect_unresolved \*'
13767         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'
13768       fi
13769       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13770       hardcode_libdir_separator_F77=:
13771       ;;
13772
13773     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13774       if test "$GCC" = yes; then
13775         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13776         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'
13777         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13778       else
13779         allow_undefined_flag_F77=' -expect_unresolved \*'
13780         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'
13781         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~
13782         $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'
13783
13784         # Both c and cxx compiler support -rpath directly
13785         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13786       fi
13787       hardcode_libdir_separator_F77=:
13788       ;;
13789
13790     sco3.2v5*)
13791       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792       hardcode_shlibpath_var_F77=no
13793       export_dynamic_flag_spec_F77='${wl}-Bexport'
13794       runpath_var=LD_RUN_PATH
13795       hardcode_runpath_var=yes
13796       ;;
13797
13798     solaris*)
13799       no_undefined_flag_F77=' -z text'
13800       if test "$GCC" = yes; then
13801         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13802         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13803           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13804       else
13805         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13806         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13807         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13808       fi
13809       hardcode_libdir_flag_spec_F77='-R$libdir'
13810       hardcode_shlibpath_var_F77=no
13811       case $host_os in
13812       solaris2.[0-5] | solaris2.[0-5].*) ;;
13813       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13814         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13815       esac
13816       link_all_deplibs_F77=yes
13817       ;;
13818
13819     sunos4*)
13820       if test "x$host_vendor" = xsequent; then
13821         # Use $CC to link under sequent, because it throws in some extra .o
13822         # files that make .init and .fini sections work.
13823         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13824       else
13825         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13826       fi
13827       hardcode_libdir_flag_spec_F77='-L$libdir'
13828       hardcode_direct_F77=yes
13829       hardcode_minus_L_F77=yes
13830       hardcode_shlibpath_var_F77=no
13831       ;;
13832
13833     sysv4)
13834       case $host_vendor in
13835         sni)
13836           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13837           hardcode_direct_F77=yes # is this really true???
13838         ;;
13839         siemens)
13840           ## LD is ld it makes a PLAMLIB
13841           ## CC just makes a GrossModule.
13842           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13843           reload_cmds_F77='$CC -r -o $output$reload_objs'
13844           hardcode_direct_F77=no
13845         ;;
13846         motorola)
13847           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13848           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13849         ;;
13850       esac
13851       runpath_var='LD_RUN_PATH'
13852       hardcode_shlibpath_var_F77=no
13853       ;;
13854
13855     sysv4.3*)
13856       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13857       hardcode_shlibpath_var_F77=no
13858       export_dynamic_flag_spec_F77='-Bexport'
13859       ;;
13860
13861     sysv4*MP*)
13862       if test -d /usr/nec; then
13863         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13864         hardcode_shlibpath_var_F77=no
13865         runpath_var=LD_RUN_PATH
13866         hardcode_runpath_var=yes
13867         ld_shlibs_F77=yes
13868       fi
13869       ;;
13870
13871     sysv4.2uw2*)
13872       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13873       hardcode_direct_F77=yes
13874       hardcode_minus_L_F77=no
13875       hardcode_shlibpath_var_F77=no
13876       hardcode_runpath_var=yes
13877       runpath_var=LD_RUN_PATH
13878       ;;
13879
13880    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13881       no_undefined_flag_F77='${wl}-z ${wl}text'
13882       if test "$GCC" = yes; then
13883         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13884       else
13885         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13886       fi
13887       runpath_var='LD_RUN_PATH'
13888       hardcode_shlibpath_var_F77=no
13889       ;;
13890
13891     sysv5*)
13892       no_undefined_flag_F77=' -z text'
13893       # $CC -shared without GNU ld will not create a library from C++
13894       # object files and a static libstdc++, better avoid it by now
13895       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13896       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13897                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13898       hardcode_libdir_flag_spec_F77=
13899       hardcode_shlibpath_var_F77=no
13900       runpath_var='LD_RUN_PATH'
13901       ;;
13902
13903     uts4*)
13904       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13905       hardcode_libdir_flag_spec_F77='-L$libdir'
13906       hardcode_shlibpath_var_F77=no
13907       ;;
13908
13909     *)
13910       ld_shlibs_F77=no
13911       ;;
13912     esac
13913   fi
13914
13915 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13916 echo "${ECHO_T}$ld_shlibs_F77" >&6
13917 test "$ld_shlibs_F77" = no && can_build_shared=no
13918
13919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13920 if test "$GCC" = yes; then
13921   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13922 fi
13923
13924 #
13925 # Do we need to explicitly link libc?
13926 #
13927 case "x$archive_cmds_need_lc_F77" in
13928 x|xyes)
13929   # Assume -lc should be added
13930   archive_cmds_need_lc_F77=yes
13931
13932   if test "$enable_shared" = yes && test "$GCC" = yes; then
13933     case $archive_cmds_F77 in
13934     *'~'*)
13935       # FIXME: we may have to deal with multi-command sequences.
13936       ;;
13937     '$CC '*)
13938       # Test whether the compiler implicitly links with -lc since on some
13939       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13940       # to ld, don't add -lc before -lgcc.
13941       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13942 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13943       $rm conftest*
13944       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13945
13946       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13947   (eval $ac_compile) 2>&5
13948   ac_status=$?
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); } 2>conftest.err; then
13951         soname=conftest
13952         lib=conftest
13953         libobjs=conftest.$ac_objext
13954         deplibs=
13955         wl=$lt_prog_compiler_wl_F77
13956         compiler_flags=-v
13957         linker_flags=-v
13958         verstring=
13959         output_objdir=.
13960         libname=conftest
13961         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13962         allow_undefined_flag_F77=
13963         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13964   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); }
13968         then
13969           archive_cmds_need_lc_F77=no
13970         else
13971           archive_cmds_need_lc_F77=yes
13972         fi
13973         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13974       else
13975         cat conftest.err 1>&5
13976       fi
13977       $rm conftest*
13978       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13979 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13980       ;;
13981     esac
13982   fi
13983   ;;
13984 esac
13985
13986 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13987 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13988 hardcode_action_F77=
13989 if test -n "$hardcode_libdir_flag_spec_F77" || \
13990    test -n "$runpath_var F77" || \
13991    test "X$hardcode_automatic_F77"="Xyes" ; then
13992
13993   # We can hardcode non-existant directories.
13994   if test "$hardcode_direct_F77" != no &&
13995      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13996      # have to relink, otherwise we might link with an installed library
13997      # when we should be linking with a yet-to-be-installed one
13998      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13999      test "$hardcode_minus_L_F77" != no; then
14000     # Linking always hardcodes the temporary library directory.
14001     hardcode_action_F77=relink
14002   else
14003     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14004     hardcode_action_F77=immediate
14005   fi
14006 else
14007   # We cannot hardcode anything, or else we can only hardcode existing
14008   # directories.
14009   hardcode_action_F77=unsupported
14010 fi
14011 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14012 echo "${ECHO_T}$hardcode_action_F77" >&6
14013
14014 if test "$hardcode_action_F77" = relink; then
14015   # Fast installation is not supported
14016   enable_fast_install=no
14017 elif test "$shlibpath_overrides_runpath" = yes ||
14018      test "$enable_shared" = no; then
14019   # Fast installation is not necessary
14020   enable_fast_install=needless
14021 fi
14022
14023 striplib=
14024 old_striplib=
14025 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14026 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14027 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14028   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14029   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14030   echo "$as_me:$LINENO: result: yes" >&5
14031 echo "${ECHO_T}yes" >&6
14032 else
14033 # FIXME - insert some real tests, host_os isn't really good enough
14034   case $host_os in
14035    darwin*)
14036        if test -n "$STRIP" ; then
14037          striplib="$STRIP -x"
14038          echo "$as_me:$LINENO: result: yes" >&5
14039 echo "${ECHO_T}yes" >&6
14040        else
14041   echo "$as_me:$LINENO: result: no" >&5
14042 echo "${ECHO_T}no" >&6
14043 fi
14044        ;;
14045    *)
14046   echo "$as_me:$LINENO: result: no" >&5
14047 echo "${ECHO_T}no" >&6
14048     ;;
14049   esac
14050 fi
14051
14052 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14053 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14054 library_names_spec=
14055 libname_spec='lib$name'
14056 soname_spec=
14057 shrext=".so"
14058 postinstall_cmds=
14059 postuninstall_cmds=
14060 finish_cmds=
14061 finish_eval=
14062 shlibpath_var=
14063 shlibpath_overrides_runpath=unknown
14064 version_type=none
14065 dynamic_linker="$host_os ld.so"
14066 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14067 if test "$GCC" = yes; then
14068   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14069   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14070     # if the path contains ";" then we assume it to be the separator
14071     # otherwise default to the standard path separator (i.e. ":") - it is
14072     # assumed that no part of a normal pathname contains ";" but that should
14073     # okay in the real world where ";" in dirpaths is itself problematic.
14074     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14075   else
14076     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14077   fi
14078 else
14079   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14080 fi
14081 need_lib_prefix=unknown
14082 hardcode_into_libs=no
14083
14084 # when you set need_version to no, make sure it does not cause -set_version
14085 # flags to be left without arguments
14086 need_version=unknown
14087
14088 case $host_os in
14089 aix3*)
14090   version_type=linux
14091   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14092   shlibpath_var=LIBPATH
14093
14094   # AIX 3 has no versioning support, so we append a major version to the name.
14095   soname_spec='${libname}${release}${shared_ext}$major'
14096   ;;
14097
14098 aix4* | aix5*)
14099   version_type=linux
14100   need_lib_prefix=no
14101   need_version=no
14102   hardcode_into_libs=yes
14103   if test "$host_cpu" = ia64; then
14104     # AIX 5 supports IA64
14105     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14106     shlibpath_var=LD_LIBRARY_PATH
14107   else
14108     # With GCC up to 2.95.x, collect2 would create an import file
14109     # for dependence libraries.  The import file would start with
14110     # the line `#! .'.  This would cause the generated library to
14111     # depend on `.', always an invalid library.  This was fixed in
14112     # development snapshots of GCC prior to 3.0.
14113     case $host_os in
14114       aix4 | aix4.[01] | aix4.[01].*)
14115       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14116            echo ' yes '
14117            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14118         :
14119       else
14120         can_build_shared=no
14121       fi
14122       ;;
14123     esac
14124     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14125     # soname into executable. Probably we can add versioning support to
14126     # collect2, so additional links can be useful in future.
14127     if test "$aix_use_runtimelinking" = yes; then
14128       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14129       # instead of lib<name>.a to let people know that these are not
14130       # typical AIX shared libraries.
14131       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132     else
14133       # We preserve .a as extension for shared libraries through AIX4.2
14134       # and later when we are not doing run time linking.
14135       library_names_spec='${libname}${release}.a $libname.a'
14136       soname_spec='${libname}${release}${shared_ext}$major'
14137     fi
14138     shlibpath_var=LIBPATH
14139   fi
14140   ;;
14141
14142 amigaos*)
14143   library_names_spec='$libname.ixlibrary $libname.a'
14144   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14145   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'
14146   ;;
14147
14148 beos*)
14149   library_names_spec='${libname}${shared_ext}'
14150   dynamic_linker="$host_os ld.so"
14151   shlibpath_var=LIBRARY_PATH
14152   ;;
14153
14154 bsdi4*)
14155   version_type=linux
14156   need_version=no
14157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14158   soname_spec='${libname}${release}${shared_ext}$major'
14159   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14160   shlibpath_var=LD_LIBRARY_PATH
14161   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14162   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14163   # the default ld.so.conf also contains /usr/contrib/lib and
14164   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14165   # libtool to hard-code these into programs
14166   ;;
14167
14168 cygwin* | mingw* | pw32*)
14169   version_type=windows
14170   shrext=".dll"
14171   need_version=no
14172   need_lib_prefix=no
14173
14174   case $GCC,$host_os in
14175   yes,cygwin* | yes,mingw* | yes,pw32*)
14176     library_names_spec='$libname.dll.a'
14177     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14178     postinstall_cmds='base_file=`basename \${file}`~
14179       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14180       dldir=$destdir/`dirname \$dlpath`~
14181       test -d \$dldir || mkdir -p \$dldir~
14182       $install_prog $dir/$dlname \$dldir/$dlname'
14183     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14184       dlpath=$dir/\$dldll~
14185        $rm \$dlpath'
14186     shlibpath_overrides_runpath=yes
14187
14188     case $host_os in
14189     cygwin*)
14190       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14191       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14192       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14193       ;;
14194     mingw*)
14195       # MinGW DLLs use traditional 'lib' prefix
14196       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14197       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14198       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14199         # It is most probably a Windows format PATH printed by
14200         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14201         # path with ; separators, and with drive letters. We can handle the
14202         # drive letters (cygwin fileutils understands them), so leave them,
14203         # especially as we might pass files found there to a mingw objdump,
14204         # which wouldn't understand a cygwinified path. Ahh.
14205         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14206       else
14207         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14208       fi
14209       ;;
14210     pw32*)
14211       # pw32 DLLs use 'pw' prefix rather than 'lib'
14212       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14213       ;;
14214     esac
14215     ;;
14216
14217   *)
14218     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14219     ;;
14220   esac
14221   dynamic_linker='Win32 ld.exe'
14222   # FIXME: first we should search . and the directory the executable is in
14223   shlibpath_var=PATH
14224   ;;
14225
14226 darwin* | rhapsody*)
14227   dynamic_linker="$host_os dyld"
14228   version_type=darwin
14229   need_lib_prefix=no
14230   need_version=no
14231   # FIXME: Relying on posixy $() will cause problems for
14232   #        cross-compilation, but unfortunately the echo tests do not
14233   #        yet detect zsh echo's removal of \ escapes.
14234   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14235   soname_spec='${libname}${release}${major}$shared_ext'
14236   shlibpath_overrides_runpath=yes
14237   shlibpath_var=DYLD_LIBRARY_PATH
14238   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14239   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14240   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14241   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"`
14242   fi
14243   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14244   ;;
14245
14246 dgux*)
14247   version_type=linux
14248   need_lib_prefix=no
14249   need_version=no
14250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14251   soname_spec='${libname}${release}${shared_ext}$major'
14252   shlibpath_var=LD_LIBRARY_PATH
14253   ;;
14254
14255 freebsd1*)
14256   dynamic_linker=no
14257   ;;
14258
14259 freebsd*)
14260   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14261   version_type=freebsd-$objformat
14262   case $version_type in
14263     freebsd-elf*)
14264       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14265       need_version=no
14266       need_lib_prefix=no
14267       ;;
14268     freebsd-*)
14269       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14270       need_version=yes
14271       ;;
14272   esac
14273   shlibpath_var=LD_LIBRARY_PATH
14274   case $host_os in
14275   freebsd2*)
14276     shlibpath_overrides_runpath=yes
14277     ;;
14278   freebsd3.01* | freebsdelf3.01*)
14279     shlibpath_overrides_runpath=yes
14280     hardcode_into_libs=yes
14281     ;;
14282   *) # from 3.2 on
14283     shlibpath_overrides_runpath=no
14284     hardcode_into_libs=yes
14285     ;;
14286   esac
14287   ;;
14288
14289 gnu*)
14290   version_type=linux
14291   need_lib_prefix=no
14292   need_version=no
14293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14294   soname_spec='${libname}${release}${shared_ext}$major'
14295   shlibpath_var=LD_LIBRARY_PATH
14296   hardcode_into_libs=yes
14297   ;;
14298
14299 hpux9* | hpux10* | hpux11*)
14300   # Give a soname corresponding to the major version so that dld.sl refuses to
14301   # link against other versions.
14302   version_type=sunos
14303   need_lib_prefix=no
14304   need_version=no
14305   case "$host_cpu" in
14306   ia64*)
14307     shrext='.so'
14308     hardcode_into_libs=yes
14309     dynamic_linker="$host_os dld.so"
14310     shlibpath_var=LD_LIBRARY_PATH
14311     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313     soname_spec='${libname}${release}${shared_ext}$major'
14314     if test "X$HPUX_IA64_MODE" = X32; then
14315       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14316     else
14317       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14318     fi
14319     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14320     ;;
14321    hppa*64*)
14322      shrext='.sl'
14323      hardcode_into_libs=yes
14324      dynamic_linker="$host_os dld.sl"
14325      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14326      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14327      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14328      soname_spec='${libname}${release}${shared_ext}$major'
14329      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14330      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14331      ;;
14332    *)
14333     shrext='.sl'
14334     dynamic_linker="$host_os dld.sl"
14335     shlibpath_var=SHLIB_PATH
14336     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14338     soname_spec='${libname}${release}${shared_ext}$major'
14339     ;;
14340   esac
14341   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14342   postinstall_cmds='chmod 555 $lib'
14343   ;;
14344
14345 irix5* | irix6* | nonstopux*)
14346   case $host_os in
14347     nonstopux*) version_type=nonstopux ;;
14348     *)
14349         if test "$lt_cv_prog_gnu_ld" = yes; then
14350                 version_type=linux
14351         else
14352                 version_type=irix
14353         fi ;;
14354   esac
14355   need_lib_prefix=no
14356   need_version=no
14357   soname_spec='${libname}${release}${shared_ext}$major'
14358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14359   case $host_os in
14360   irix5* | nonstopux*)
14361     libsuff= shlibsuff=
14362     ;;
14363   *)
14364     case $LD in # libtool.m4 will add one of these switches to LD
14365     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14366       libsuff= shlibsuff= libmagic=32-bit;;
14367     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14368       libsuff=32 shlibsuff=N32 libmagic=N32;;
14369     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14370       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14371     *) libsuff= shlibsuff= libmagic=never-match;;
14372     esac
14373     ;;
14374   esac
14375   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14376   shlibpath_overrides_runpath=no
14377   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14378   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14379   hardcode_into_libs=yes
14380   ;;
14381
14382 # No shared lib support for Linux oldld, aout, or coff.
14383 linux*oldld* | linux*aout* | linux*coff*)
14384   dynamic_linker=no
14385   ;;
14386
14387 # This must be Linux ELF.
14388 linux*)
14389   version_type=linux
14390   need_lib_prefix=no
14391   need_version=no
14392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393   soname_spec='${libname}${release}${shared_ext}$major'
14394   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14395   shlibpath_var=LD_LIBRARY_PATH
14396   shlibpath_overrides_runpath=no
14397   # This implies no fast_install, which is unacceptable.
14398   # Some rework will be needed to allow for fast_install
14399   # before this can be enabled.
14400   hardcode_into_libs=yes
14401
14402   # We used to test for /lib/ld.so.1 and disable shared libraries on
14403   # powerpc, because MkLinux only supported shared libraries with the
14404   # GNU dynamic linker.  Since this was broken with cross compilers,
14405   # most powerpc-linux boxes support dynamic linking these days and
14406   # people can always --disable-shared, the test was removed, and we
14407   # assume the GNU/Linux dynamic linker is in use.
14408   dynamic_linker='GNU/Linux ld.so'
14409   ;;
14410
14411 netbsd*)
14412   version_type=sunos
14413   need_lib_prefix=no
14414   need_version=no
14415   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14417     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14418     dynamic_linker='NetBSD (a.out) ld.so'
14419   else
14420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14421     soname_spec='${libname}${release}${shared_ext}$major'
14422     dynamic_linker='NetBSD ld.elf_so'
14423   fi
14424   shlibpath_var=LD_LIBRARY_PATH
14425   shlibpath_overrides_runpath=yes
14426   hardcode_into_libs=yes
14427   ;;
14428
14429 newsos6)
14430   version_type=linux
14431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14432   shlibpath_var=LD_LIBRARY_PATH
14433   shlibpath_overrides_runpath=yes
14434   ;;
14435
14436 nto-qnx)
14437   version_type=linux
14438   need_lib_prefix=no
14439   need_version=no
14440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441   soname_spec='${libname}${release}${shared_ext}$major'
14442   shlibpath_var=LD_LIBRARY_PATH
14443   shlibpath_overrides_runpath=yes
14444   ;;
14445
14446 openbsd*)
14447   version_type=sunos
14448   need_lib_prefix=no
14449   need_version=no
14450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14451   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14452   shlibpath_var=LD_LIBRARY_PATH
14453   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14454     case $host_os in
14455       openbsd2.[89] | openbsd2.[89].*)
14456         shlibpath_overrides_runpath=no
14457         ;;
14458       *)
14459         shlibpath_overrides_runpath=yes
14460         ;;
14461       esac
14462   else
14463     shlibpath_overrides_runpath=yes
14464   fi
14465   ;;
14466
14467 os2*)
14468   libname_spec='$name'
14469   shrext=".dll"
14470   need_lib_prefix=no
14471   library_names_spec='$libname${shared_ext} $libname.a'
14472   dynamic_linker='OS/2 ld.exe'
14473   shlibpath_var=LIBPATH
14474   ;;
14475
14476 osf3* | osf4* | osf5*)
14477   version_type=osf
14478   need_lib_prefix=no
14479   need_version=no
14480   soname_spec='${libname}${release}${shared_ext}$major'
14481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482   shlibpath_var=LD_LIBRARY_PATH
14483   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14484   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14485   ;;
14486
14487 sco3.2v5*)
14488   version_type=osf
14489   soname_spec='${libname}${release}${shared_ext}$major'
14490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491   shlibpath_var=LD_LIBRARY_PATH
14492   ;;
14493
14494 solaris*)
14495   version_type=linux
14496   need_lib_prefix=no
14497   need_version=no
14498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499   soname_spec='${libname}${release}${shared_ext}$major'
14500   shlibpath_var=LD_LIBRARY_PATH
14501   shlibpath_overrides_runpath=yes
14502   hardcode_into_libs=yes
14503   # ldd complains unless libraries are executable
14504   postinstall_cmds='chmod +x $lib'
14505   ;;
14506
14507 sunos4*)
14508   version_type=sunos
14509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14510   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14511   shlibpath_var=LD_LIBRARY_PATH
14512   shlibpath_overrides_runpath=yes
14513   if test "$with_gnu_ld" = yes; then
14514     need_lib_prefix=no
14515   fi
14516   need_version=yes
14517   ;;
14518
14519 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14520   version_type=linux
14521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522   soname_spec='${libname}${release}${shared_ext}$major'
14523   shlibpath_var=LD_LIBRARY_PATH
14524   case $host_vendor in
14525     sni)
14526       shlibpath_overrides_runpath=no
14527       need_lib_prefix=no
14528       export_dynamic_flag_spec='${wl}-Blargedynsym'
14529       runpath_var=LD_RUN_PATH
14530       ;;
14531     siemens)
14532       need_lib_prefix=no
14533       ;;
14534     motorola)
14535       need_lib_prefix=no
14536       need_version=no
14537       shlibpath_overrides_runpath=no
14538       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14539       ;;
14540   esac
14541   ;;
14542
14543 sysv4*MP*)
14544   if test -d /usr/nec ;then
14545     version_type=linux
14546     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14547     soname_spec='$libname${shared_ext}.$major'
14548     shlibpath_var=LD_LIBRARY_PATH
14549   fi
14550   ;;
14551
14552 uts4*)
14553   version_type=linux
14554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555   soname_spec='${libname}${release}${shared_ext}$major'
14556   shlibpath_var=LD_LIBRARY_PATH
14557   ;;
14558
14559 *)
14560   dynamic_linker=no
14561   ;;
14562 esac
14563 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14564 echo "${ECHO_T}$dynamic_linker" >&6
14565 test "$dynamic_linker" = no && can_build_shared=no
14566
14567
14568 # The else clause should only fire when bootstrapping the
14569 # libtool distribution, otherwise you forgot to ship ltmain.sh
14570 # with your package, and you will get complaints that there are
14571 # no rules to generate ltmain.sh.
14572 if test -f "$ltmain"; then
14573   # See if we are running on zsh, and set the options which allow our commands through
14574   # without removal of \ escapes.
14575   if test -n "${ZSH_VERSION+set}" ; then
14576     setopt NO_GLOB_SUBST
14577   fi
14578   # Now quote all the things that may contain metacharacters while being
14579   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14580   # variables and quote the copies for generation of the libtool script.
14581   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14582     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14583     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14584     deplibs_check_method reload_flag reload_cmds need_locks \
14585     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14586     lt_cv_sys_global_symbol_to_c_name_address \
14587     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14588     old_postinstall_cmds old_postuninstall_cmds \
14589     compiler_F77 \
14590     CC_F77 \
14591     LD_F77 \
14592     lt_prog_compiler_wl_F77 \
14593     lt_prog_compiler_pic_F77 \
14594     lt_prog_compiler_static_F77 \
14595     lt_prog_compiler_no_builtin_flag_F77 \
14596     export_dynamic_flag_spec_F77 \
14597     thread_safe_flag_spec_F77 \
14598     whole_archive_flag_spec_F77 \
14599     enable_shared_with_static_runtimes_F77 \
14600     old_archive_cmds_F77 \
14601     old_archive_from_new_cmds_F77 \
14602     predep_objects_F77 \
14603     postdep_objects_F77 \
14604     predeps_F77 \
14605     postdeps_F77 \
14606     compiler_lib_search_path_F77 \
14607     archive_cmds_F77 \
14608     archive_expsym_cmds_F77 \
14609     postinstall_cmds_F77 \
14610     postuninstall_cmds_F77 \
14611     old_archive_from_expsyms_cmds_F77 \
14612     allow_undefined_flag_F77 \
14613     no_undefined_flag_F77 \
14614     export_symbols_cmds_F77 \
14615     hardcode_libdir_flag_spec_F77 \
14616     hardcode_libdir_flag_spec_ld_F77 \
14617     hardcode_libdir_separator_F77 \
14618     hardcode_automatic_F77 \
14619     module_cmds_F77 \
14620     module_expsym_cmds_F77 \
14621     lt_cv_prog_compiler_c_o_F77 \
14622     exclude_expsyms_F77 \
14623     include_expsyms_F77; do
14624
14625     case $var in
14626     old_archive_cmds_F77 | \
14627     old_archive_from_new_cmds_F77 | \
14628     archive_cmds_F77 | \
14629     archive_expsym_cmds_F77 | \
14630     module_cmds_F77 | \
14631     module_expsym_cmds_F77 | \
14632     old_archive_from_expsyms_cmds_F77 | \
14633     export_symbols_cmds_F77 | \
14634     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14635     postinstall_cmds | postuninstall_cmds | \
14636     old_postinstall_cmds | old_postuninstall_cmds | \
14637     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14638       # Double-quote double-evaled strings.
14639       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14640       ;;
14641     *)
14642       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14643       ;;
14644     esac
14645   done
14646
14647   case $lt_echo in
14648   *'\$0 --fallback-echo"')
14649     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14650     ;;
14651   esac
14652
14653 cfgfile="$ofile"
14654
14655   cat <<__EOF__ >> "$cfgfile"
14656 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14657
14658 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14659
14660 # Shell to use when invoking shell scripts.
14661 SHELL=$lt_SHELL
14662
14663 # Whether or not to build shared libraries.
14664 build_libtool_libs=$enable_shared
14665
14666 # Whether or not to build static libraries.
14667 build_old_libs=$enable_static
14668
14669 # Whether or not to add -lc for building shared libraries.
14670 build_libtool_need_lc=$archive_cmds_need_lc_F77
14671
14672 # Whether or not to disallow shared libs when runtime libs are static
14673 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14674
14675 # Whether or not to optimize for fast installation.
14676 fast_install=$enable_fast_install
14677
14678 # The host system.
14679 host_alias=$host_alias
14680 host=$host
14681
14682 # An echo program that does not interpret backslashes.
14683 echo=$lt_echo
14684
14685 # The archiver.
14686 AR=$lt_AR
14687 AR_FLAGS=$lt_AR_FLAGS
14688
14689 # A C compiler.
14690 LTCC=$lt_LTCC
14691
14692 # A language-specific compiler.
14693 CC=$lt_compiler_F77
14694
14695 # Is the compiler the GNU C compiler?
14696 with_gcc=$GCC_F77
14697
14698 # An ERE matcher.
14699 EGREP=$lt_EGREP
14700
14701 # The linker used to build libraries.
14702 LD=$lt_LD_F77
14703
14704 # Whether we need hard or soft links.
14705 LN_S=$lt_LN_S
14706
14707 # A BSD-compatible nm program.
14708 NM=$lt_NM
14709
14710 # A symbol stripping program
14711 STRIP=$STRIP
14712
14713 # Used to examine libraries when file_magic_cmd begins "file"
14714 MAGIC_CMD=$MAGIC_CMD
14715
14716 # Used on cygwin: DLL creation program.
14717 DLLTOOL="$DLLTOOL"
14718
14719 # Used on cygwin: object dumper.
14720 OBJDUMP="$OBJDUMP"
14721
14722 # Used on cygwin: assembler.
14723 AS="$AS"
14724
14725 # The name of the directory that contains temporary libtool files.
14726 objdir=$objdir
14727
14728 # How to create reloadable object files.
14729 reload_flag=$lt_reload_flag
14730 reload_cmds=$lt_reload_cmds
14731
14732 # How to pass a linker flag through the compiler.
14733 wl=$lt_lt_prog_compiler_wl_F77
14734
14735 # Object file suffix (normally "o").
14736 objext="$ac_objext"
14737
14738 # Old archive suffix (normally "a").
14739 libext="$libext"
14740
14741 # Shared library suffix (normally ".so").
14742 shrext='$shrext'
14743
14744 # Executable file suffix (normally "").
14745 exeext="$exeext"
14746
14747 # Additional compiler flags for building library objects.
14748 pic_flag=$lt_lt_prog_compiler_pic_F77
14749 pic_mode=$pic_mode
14750
14751 # What is the maximum length of a command?
14752 max_cmd_len=$lt_cv_sys_max_cmd_len
14753
14754 # Does compiler simultaneously support -c and -o options?
14755 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14756
14757 # Must we lock files when doing compilation ?
14758 need_locks=$lt_need_locks
14759
14760 # Do we need the lib prefix for modules?
14761 need_lib_prefix=$need_lib_prefix
14762
14763 # Do we need a version for libraries?
14764 need_version=$need_version
14765
14766 # Whether dlopen is supported.
14767 dlopen_support=$enable_dlopen
14768
14769 # Whether dlopen of programs is supported.
14770 dlopen_self=$enable_dlopen_self
14771
14772 # Whether dlopen of statically linked programs is supported.
14773 dlopen_self_static=$enable_dlopen_self_static
14774
14775 # Compiler flag to prevent dynamic linking.
14776 link_static_flag=$lt_lt_prog_compiler_static_F77
14777
14778 # Compiler flag to turn off builtin functions.
14779 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14780
14781 # Compiler flag to allow reflexive dlopens.
14782 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14783
14784 # Compiler flag to generate shared objects directly from archives.
14785 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14786
14787 # Compiler flag to generate thread-safe objects.
14788 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14789
14790 # Library versioning type.
14791 version_type=$version_type
14792
14793 # Format of library name prefix.
14794 libname_spec=$lt_libname_spec
14795
14796 # List of archive names.  First name is the real one, the rest are links.
14797 # The last name is the one that the linker finds with -lNAME.
14798 library_names_spec=$lt_library_names_spec
14799
14800 # The coded name of the library, if different from the real name.
14801 soname_spec=$lt_soname_spec
14802
14803 # Commands used to build and install an old-style archive.
14804 RANLIB=$lt_RANLIB
14805 old_archive_cmds=$lt_old_archive_cmds_F77
14806 old_postinstall_cmds=$lt_old_postinstall_cmds
14807 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14808
14809 # Create an old-style archive from a shared archive.
14810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14811
14812 # Create a temporary old-style archive to link instead of a shared archive.
14813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14814
14815 # Commands used to build and install a shared archive.
14816 archive_cmds=$lt_archive_cmds_F77
14817 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14818 postinstall_cmds=$lt_postinstall_cmds
14819 postuninstall_cmds=$lt_postuninstall_cmds
14820
14821 # Commands used to build a loadable module (assumed same as above if empty)
14822 module_cmds=$lt_module_cmds_F77
14823 module_expsym_cmds=$lt_module_expsym_cmds_F77
14824
14825 # Commands to strip libraries.
14826 old_striplib=$lt_old_striplib
14827 striplib=$lt_striplib
14828
14829 # Dependencies to place before the objects being linked to create a
14830 # shared library.
14831 predep_objects=$lt_predep_objects_F77
14832
14833 # Dependencies to place after the objects being linked to create a
14834 # shared library.
14835 postdep_objects=$lt_postdep_objects_F77
14836
14837 # Dependencies to place before the objects being linked to create a
14838 # shared library.
14839 predeps=$lt_predeps_F77
14840
14841 # Dependencies to place after the objects being linked to create a
14842 # shared library.
14843 postdeps=$lt_postdeps_F77
14844
14845 # The library search path used internally by the compiler when linking
14846 # a shared library.
14847 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14848
14849 # Method to check whether dependent libraries are shared objects.
14850 deplibs_check_method=$lt_deplibs_check_method
14851
14852 # Command to use when deplibs_check_method == file_magic.
14853 file_magic_cmd=$lt_file_magic_cmd
14854
14855 # Flag that allows shared libraries with undefined symbols to be built.
14856 allow_undefined_flag=$lt_allow_undefined_flag_F77
14857
14858 # Flag that forces no undefined symbols.
14859 no_undefined_flag=$lt_no_undefined_flag_F77
14860
14861 # Commands used to finish a libtool library installation in a directory.
14862 finish_cmds=$lt_finish_cmds
14863
14864 # Same as above, but a single script fragment to be evaled but not shown.
14865 finish_eval=$lt_finish_eval
14866
14867 # Take the output of nm and produce a listing of raw symbols and C names.
14868 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14869
14870 # Transform the output of nm in a proper C declaration
14871 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14872
14873 # Transform the output of nm in a C name address pair
14874 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14875
14876 # This is the shared library runtime path variable.
14877 runpath_var=$runpath_var
14878
14879 # This is the shared library path variable.
14880 shlibpath_var=$shlibpath_var
14881
14882 # Is shlibpath searched before the hard-coded library search path?
14883 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14884
14885 # How to hardcode a shared library path into an executable.
14886 hardcode_action=$hardcode_action_F77
14887
14888 # Whether we should hardcode library paths into libraries.
14889 hardcode_into_libs=$hardcode_into_libs
14890
14891 # Flag to hardcode \$libdir into a binary during linking.
14892 # This must work even if \$libdir does not exist.
14893 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14894
14895 # If ld is used when linking, flag to hardcode \$libdir into
14896 # a binary during linking. This must work even if \$libdir does
14897 # not exist.
14898 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14899
14900 # Whether we need a single -rpath flag with a separated argument.
14901 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14902
14903 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14904 # resulting binary.
14905 hardcode_direct=$hardcode_direct_F77
14906
14907 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14908 # resulting binary.
14909 hardcode_minus_L=$hardcode_minus_L_F77
14910
14911 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14912 # the resulting binary.
14913 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14914
14915 # Set to yes if building a shared library automatically hardcodes DIR into the library
14916 # and all subsequent libraries and executables linked against it.
14917 hardcode_automatic=$hardcode_automatic_F77
14918
14919 # Variables whose values should be saved in libtool wrapper scripts and
14920 # restored at relink time.
14921 variables_saved_for_relink="$variables_saved_for_relink"
14922
14923 # Whether libtool must link a program against all its dependency libraries.
14924 link_all_deplibs=$link_all_deplibs_F77
14925
14926 # Compile-time system search path for libraries
14927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14928
14929 # Run-time system search path for libraries
14930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14931
14932 # Fix the shell variable \$srcfile for the compiler.
14933 fix_srcfile_path="$fix_srcfile_path_F77"
14934
14935 # Set to yes if exported symbols are required.
14936 always_export_symbols=$always_export_symbols_F77
14937
14938 # The commands to list exported symbols.
14939 export_symbols_cmds=$lt_export_symbols_cmds_F77
14940
14941 # The commands to extract the exported symbol list from a shared archive.
14942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14943
14944 # Symbols that should not be listed in the preloaded symbols.
14945 exclude_expsyms=$lt_exclude_expsyms_F77
14946
14947 # Symbols that must always be exported.
14948 include_expsyms=$lt_include_expsyms_F77
14949
14950 # ### END LIBTOOL TAG CONFIG: $tagname
14951
14952 __EOF__
14953
14954
14955 else
14956   # If there is no Makefile yet, we rely on a make rule to execute
14957   # `config.status --recheck' to rerun these tests and create the
14958   # libtool script then.
14959   test -f Makefile && make "$ltmain"
14960 fi
14961
14962
14963 ac_ext=c
14964 ac_cpp='$CPP $CPPFLAGS'
14965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14968
14969 CC="$lt_save_CC"
14970
14971         else
14972           tagname=""
14973         fi
14974         ;;
14975
14976       GCJ)
14977         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14978
14979
14980
14981 # Source file extension for Java test sources.
14982 ac_ext=java
14983
14984 # Object file extension for compiled Java test sources.
14985 objext=o
14986 objext_GCJ=$objext
14987
14988 # Code to be used in simple compile tests
14989 lt_simple_compile_test_code="class foo {}\n"
14990
14991 # Code to be used in simple link tests
14992 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14993
14994 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14995
14996 # If no C compiler was specified, use CC.
14997 LTCC=${LTCC-"$CC"}
14998
14999 # Allow CC to be a program name with arguments.
15000 compiler=$CC
15001
15002
15003 # Allow CC to be a program name with arguments.
15004 lt_save_CC="$CC"
15005 CC=${GCJ-"gcj"}
15006 compiler=$CC
15007 compiler_GCJ=$CC
15008
15009 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15010 archive_cmds_need_lc_GCJ=no
15011
15012 ## CAVEAT EMPTOR:
15013 ## There is no encapsulation within the following macros, do not change
15014 ## the running order or otherwise move them around unless you know exactly
15015 ## what you are doing...
15016
15017 lt_prog_compiler_no_builtin_flag_GCJ=
15018
15019 if test "$GCC" = yes; then
15020   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15021
15022   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15023 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15024 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15025   echo $ECHO_N "(cached) $ECHO_C" >&6
15026 else
15027   lt_cv_prog_compiler_rtti_exceptions=no
15028   ac_outfile=conftest.$ac_objext
15029    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15030    lt_compiler_flag="-fno-rtti -fno-exceptions"
15031    # Insert the option either (1) after the last *FLAGS variable, or
15032    # (2) before a word containing "conftest.", or (3) at the end.
15033    # Note that $ac_compile itself does not contain backslashes and begins
15034    # with a dollar sign (not a hyphen), so the echo should work correctly.
15035    # The option is referenced via a variable to avoid confusing sed.
15036    lt_compile=`echo "$ac_compile" | $SED \
15037    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15038    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15039    -e 's:$: $lt_compiler_flag:'`
15040    (eval echo "\"\$as_me:15040: $lt_compile\"" >&5)
15041    (eval "$lt_compile" 2>conftest.err)
15042    ac_status=$?
15043    cat conftest.err >&5
15044    echo "$as_me:15044: \$? = $ac_status" >&5
15045    if (exit $ac_status) && test -s "$ac_outfile"; then
15046      # The compiler can only warn and ignore the option if not recognized
15047      # So say no if there are warnings
15048      if test ! -s conftest.err; then
15049        lt_cv_prog_compiler_rtti_exceptions=yes
15050      fi
15051    fi
15052    $rm conftest*
15053
15054 fi
15055 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15056 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15057
15058 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15059     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15060 else
15061     :
15062 fi
15063
15064 fi
15065
15066 lt_prog_compiler_wl_GCJ=
15067 lt_prog_compiler_pic_GCJ=
15068 lt_prog_compiler_static_GCJ=
15069
15070 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15071 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15072
15073   if test "$GCC" = yes; then
15074     lt_prog_compiler_wl_GCJ='-Wl,'
15075     lt_prog_compiler_static_GCJ='-static'
15076
15077     case $host_os in
15078       aix*)
15079       # All AIX code is PIC.
15080       if test "$host_cpu" = ia64; then
15081         # AIX 5 now supports IA64 processor
15082         lt_prog_compiler_static_GCJ='-Bstatic'
15083       fi
15084       ;;
15085
15086     amigaos*)
15087       # FIXME: we need at least 68020 code to build shared libraries, but
15088       # adding the `-m68020' flag to GCC prevents building anything better,
15089       # like `-m68040'.
15090       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15091       ;;
15092
15093     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15094       # PIC is the default for these OSes.
15095       ;;
15096
15097     mingw* | pw32* | os2*)
15098       # This hack is so that the source file can tell whether it is being
15099       # built for inclusion in a dll (and should export symbols for example).
15100       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15101       ;;
15102
15103     darwin* | rhapsody*)
15104       # PIC is the default on this platform
15105       # Common symbols not allowed in MH_DYLIB files
15106       lt_prog_compiler_pic_GCJ='-fno-common'
15107       ;;
15108
15109     msdosdjgpp*)
15110       # Just because we use GCC doesn't mean we suddenly get shared libraries
15111       # on systems that don't support them.
15112       lt_prog_compiler_can_build_shared_GCJ=no
15113       enable_shared=no
15114       ;;
15115
15116     sysv4*MP*)
15117       if test -d /usr/nec; then
15118         lt_prog_compiler_pic_GCJ=-Kconform_pic
15119       fi
15120       ;;
15121
15122     hpux*)
15123       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15124       # not for PA HP-UX.
15125       case "$host_cpu" in
15126       hppa*64*|ia64*)
15127         # +Z the default
15128         ;;
15129       *)
15130         lt_prog_compiler_pic_GCJ='-fPIC'
15131         ;;
15132       esac
15133       ;;
15134
15135     *)
15136       lt_prog_compiler_pic_GCJ='-fPIC'
15137       ;;
15138     esac
15139   else
15140     # PORTME Check for flag to pass linker flags through the system compiler.
15141     case $host_os in
15142     aix*)
15143       lt_prog_compiler_wl_GCJ='-Wl,'
15144       if test "$host_cpu" = ia64; then
15145         # AIX 5 now supports IA64 processor
15146         lt_prog_compiler_static_GCJ='-Bstatic'
15147       else
15148         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15149       fi
15150       ;;
15151
15152     mingw* | pw32* | os2*)
15153       # This hack is so that the source file can tell whether it is being
15154       # built for inclusion in a dll (and should export symbols for example).
15155       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15156       ;;
15157
15158     hpux9* | hpux10* | hpux11*)
15159       lt_prog_compiler_wl_GCJ='-Wl,'
15160       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15161       # not for PA HP-UX.
15162       case "$host_cpu" in
15163       hppa*64*|ia64*)
15164         # +Z the default
15165         ;;
15166       *)
15167         lt_prog_compiler_pic_GCJ='+Z'
15168         ;;
15169       esac
15170       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15171       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15172       ;;
15173
15174     irix5* | irix6* | nonstopux*)
15175       lt_prog_compiler_wl_GCJ='-Wl,'
15176       # PIC (with -KPIC) is the default.
15177       lt_prog_compiler_static_GCJ='-non_shared'
15178       ;;
15179
15180     newsos6)
15181       lt_prog_compiler_pic_GCJ='-KPIC'
15182       lt_prog_compiler_static_GCJ='-Bstatic'
15183       ;;
15184
15185     linux*)
15186       case $CC in
15187       icc|ecc)
15188         lt_prog_compiler_wl_GCJ='-Wl,'
15189         lt_prog_compiler_pic_GCJ='-KPIC'
15190         lt_prog_compiler_static_GCJ='-static'
15191         ;;
15192       ccc)
15193         lt_prog_compiler_wl_GCJ='-Wl,'
15194         # All Alpha code is PIC.
15195         lt_prog_compiler_static_GCJ='-non_shared'
15196         ;;
15197       esac
15198       ;;
15199
15200     osf3* | osf4* | osf5*)
15201       lt_prog_compiler_wl_GCJ='-Wl,'
15202       # All OSF/1 code is PIC.
15203       lt_prog_compiler_static_GCJ='-non_shared'
15204       ;;
15205
15206     sco3.2v5*)
15207       lt_prog_compiler_pic_GCJ='-Kpic'
15208       lt_prog_compiler_static_GCJ='-dn'
15209       ;;
15210
15211     solaris*)
15212       lt_prog_compiler_wl_GCJ='-Wl,'
15213       lt_prog_compiler_pic_GCJ='-KPIC'
15214       lt_prog_compiler_static_GCJ='-Bstatic'
15215       ;;
15216
15217     sunos4*)
15218       lt_prog_compiler_wl_GCJ='-Qoption ld '
15219       lt_prog_compiler_pic_GCJ='-PIC'
15220       lt_prog_compiler_static_GCJ='-Bstatic'
15221       ;;
15222
15223     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15224       lt_prog_compiler_wl_GCJ='-Wl,'
15225       lt_prog_compiler_pic_GCJ='-KPIC'
15226       lt_prog_compiler_static_GCJ='-Bstatic'
15227       ;;
15228
15229     sysv4*MP*)
15230       if test -d /usr/nec ;then
15231         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15232         lt_prog_compiler_static_GCJ='-Bstatic'
15233       fi
15234       ;;
15235
15236     uts4*)
15237       lt_prog_compiler_pic_GCJ='-pic'
15238       lt_prog_compiler_static_GCJ='-Bstatic'
15239       ;;
15240
15241     *)
15242       lt_prog_compiler_can_build_shared_GCJ=no
15243       ;;
15244     esac
15245   fi
15246
15247 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15248 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15249
15250 #
15251 # Check to make sure the PIC flag actually works.
15252 #
15253 if test -n "$lt_prog_compiler_pic_GCJ"; then
15254   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15255 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15256 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15257   echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259   lt_prog_compiler_pic_works_GCJ=no
15260   ac_outfile=conftest.$ac_objext
15261    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15262    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15263    # Insert the option either (1) after the last *FLAGS variable, or
15264    # (2) before a word containing "conftest.", or (3) at the end.
15265    # Note that $ac_compile itself does not contain backslashes and begins
15266    # with a dollar sign (not a hyphen), so the echo should work correctly.
15267    # The option is referenced via a variable to avoid confusing sed.
15268    lt_compile=`echo "$ac_compile" | $SED \
15269    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15270    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15271    -e 's:$: $lt_compiler_flag:'`
15272    (eval echo "\"\$as_me:15272: $lt_compile\"" >&5)
15273    (eval "$lt_compile" 2>conftest.err)
15274    ac_status=$?
15275    cat conftest.err >&5
15276    echo "$as_me:15276: \$? = $ac_status" >&5
15277    if (exit $ac_status) && test -s "$ac_outfile"; then
15278      # The compiler can only warn and ignore the option if not recognized
15279      # So say no if there are warnings
15280      if test ! -s conftest.err; then
15281        lt_prog_compiler_pic_works_GCJ=yes
15282      fi
15283    fi
15284    $rm conftest*
15285
15286 fi
15287 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15288 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15289
15290 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15291     case $lt_prog_compiler_pic_GCJ in
15292      "" | " "*) ;;
15293      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15294      esac
15295 else
15296     lt_prog_compiler_pic_GCJ=
15297      lt_prog_compiler_can_build_shared_GCJ=no
15298 fi
15299
15300 fi
15301 case "$host_os" in
15302   # For platforms which do not support PIC, -DPIC is meaningless:
15303   *djgpp*)
15304     lt_prog_compiler_pic_GCJ=
15305     ;;
15306   *)
15307     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15308     ;;
15309 esac
15310
15311 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15312 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15313 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15314   echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316   lt_cv_prog_compiler_c_o_GCJ=no
15317    $rm -r conftest 2>/dev/null
15318    mkdir conftest
15319    cd conftest
15320    mkdir out
15321    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15322
15323    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15324    # that will create temporary files in the current directory regardless of
15325    # the output directory.  Thus, making CWD read-only will cause this test
15326    # to fail, enabling locking or at least warning the user not to do parallel
15327    # builds.
15328    chmod -w .
15329
15330    lt_compiler_flag="-o out/conftest2.$ac_objext"
15331    # Insert the option either (1) after the last *FLAGS variable, or
15332    # (2) before a word containing "conftest.", or (3) at the end.
15333    # Note that $ac_compile itself does not contain backslashes and begins
15334    # with a dollar sign (not a hyphen), so the echo should work correctly.
15335    lt_compile=`echo "$ac_compile" | $SED \
15336    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15337    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15338    -e 's:$: $lt_compiler_flag:'`
15339    (eval echo "\"\$as_me:15339: $lt_compile\"" >&5)
15340    (eval "$lt_compile" 2>out/conftest.err)
15341    ac_status=$?
15342    cat out/conftest.err >&5
15343    echo "$as_me:15343: \$? = $ac_status" >&5
15344    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15345    then
15346      # The compiler can only warn and ignore the option if not recognized
15347      # So say no if there are warnings
15348      if test ! -s out/conftest.err; then
15349        lt_cv_prog_compiler_c_o_GCJ=yes
15350      fi
15351    fi
15352    chmod u+w .
15353    $rm conftest* out/*
15354    rmdir out
15355    cd ..
15356    rmdir conftest
15357    $rm conftest*
15358
15359 fi
15360 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15361 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15362
15363
15364 hard_links="nottested"
15365 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15366   # do not overwrite the value of need_locks provided by the user
15367   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15368 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15369   hard_links=yes
15370   $rm conftest*
15371   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15372   touch conftest.a
15373   ln conftest.a conftest.b 2>&5 || hard_links=no
15374   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15375   echo "$as_me:$LINENO: result: $hard_links" >&5
15376 echo "${ECHO_T}$hard_links" >&6
15377   if test "$hard_links" = no; then
15378     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15379 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15380     need_locks=warn
15381   fi
15382 else
15383   need_locks=no
15384 fi
15385
15386 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15387 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15388
15389   runpath_var=
15390   allow_undefined_flag_GCJ=
15391   enable_shared_with_static_runtimes_GCJ=no
15392   archive_cmds_GCJ=
15393   archive_expsym_cmds_GCJ=
15394   old_archive_From_new_cmds_GCJ=
15395   old_archive_from_expsyms_cmds_GCJ=
15396   export_dynamic_flag_spec_GCJ=
15397   whole_archive_flag_spec_GCJ=
15398   thread_safe_flag_spec_GCJ=
15399   hardcode_libdir_flag_spec_GCJ=
15400   hardcode_libdir_flag_spec_ld_GCJ=
15401   hardcode_libdir_separator_GCJ=
15402   hardcode_direct_GCJ=no
15403   hardcode_minus_L_GCJ=no
15404   hardcode_shlibpath_var_GCJ=unsupported
15405   link_all_deplibs_GCJ=unknown
15406   hardcode_automatic_GCJ=no
15407   module_cmds_GCJ=
15408   module_expsym_cmds_GCJ=
15409   always_export_symbols_GCJ=no
15410   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15411   # include_expsyms should be a list of space-separated symbols to be *always*
15412   # included in the symbol list
15413   include_expsyms_GCJ=
15414   # exclude_expsyms can be an extended regexp of symbols to exclude
15415   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15416   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15417   # as well as any symbol that contains `d'.
15418   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15419   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15420   # platforms (ab)use it in PIC code, but their linkers get confused if
15421   # the symbol is explicitly referenced.  Since portable code cannot
15422   # rely on this symbol name, it's probably fine to never include it in
15423   # preloaded symbol tables.
15424   extract_expsyms_cmds=
15425
15426   case $host_os in
15427   cygwin* | mingw* | pw32*)
15428     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15429     # When not using gcc, we currently assume that we are using
15430     # Microsoft Visual C++.
15431     if test "$GCC" != yes; then
15432       with_gnu_ld=no
15433     fi
15434     ;;
15435   openbsd*)
15436     with_gnu_ld=no
15437     ;;
15438   esac
15439
15440   ld_shlibs_GCJ=yes
15441   if test "$with_gnu_ld" = yes; then
15442     # If archive_cmds runs LD, not CC, wlarc should be empty
15443     wlarc='${wl}'
15444
15445     # See if GNU ld supports shared libraries.
15446     case $host_os in
15447     aix3* | aix4* | aix5*)
15448       # On AIX/PPC, the GNU linker is very broken
15449       if test "$host_cpu" != ia64; then
15450         ld_shlibs_GCJ=no
15451         cat <<EOF 1>&2
15452
15453 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15454 *** to be unable to reliably create shared libraries on AIX.
15455 *** Therefore, libtool is disabling shared libraries support.  If you
15456 *** really care for shared libraries, you may want to modify your PATH
15457 *** so that a non-GNU linker is found, and then restart.
15458
15459 EOF
15460       fi
15461       ;;
15462
15463     amigaos*)
15464       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)'
15465       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15466       hardcode_minus_L_GCJ=yes
15467
15468       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15469       # that the semantics of dynamic libraries on AmigaOS, at least up
15470       # to version 4, is to share data among multiple programs linked
15471       # with the same dynamic library.  Since this doesn't match the
15472       # behavior of shared libraries on other platforms, we can't use
15473       # them.
15474       ld_shlibs_GCJ=no
15475       ;;
15476
15477     beos*)
15478       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15479         allow_undefined_flag_GCJ=unsupported
15480         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15481         # support --undefined.  This deserves some investigation.  FIXME
15482         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15483       else
15484         ld_shlibs_GCJ=no
15485       fi
15486       ;;
15487
15488     cygwin* | mingw* | pw32*)
15489       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15490       # as there is no search path for DLLs.
15491       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15492       allow_undefined_flag_GCJ=unsupported
15493       always_export_symbols_GCJ=no
15494       enable_shared_with_static_runtimes_GCJ=yes
15495       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15496
15497       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15498         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15499         # If the export-symbols file already is a .def file (1st line
15500         # is EXPORTS), use it as is; otherwise, prepend...
15501         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15502           cp $export_symbols $output_objdir/$soname.def;
15503         else
15504           echo EXPORTS > $output_objdir/$soname.def;
15505           cat $export_symbols >> $output_objdir/$soname.def;
15506         fi~
15507         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15508       else
15509         ld_shlibs=no
15510       fi
15511       ;;
15512
15513     netbsd*)
15514       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15515         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15516         wlarc=
15517       else
15518         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15519         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15520       fi
15521       ;;
15522
15523     solaris* | sysv5*)
15524       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15525         ld_shlibs_GCJ=no
15526         cat <<EOF 1>&2
15527
15528 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15529 *** create shared libraries on Solaris systems.  Therefore, libtool
15530 *** is disabling shared libraries support.  We urge you to upgrade GNU
15531 *** binutils to release 2.9.1 or newer.  Another option is to modify
15532 *** your PATH or compiler configuration so that the native linker is
15533 *** used, and then restart.
15534
15535 EOF
15536       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15537         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15539       else
15540         ld_shlibs_GCJ=no
15541       fi
15542       ;;
15543
15544     sunos4*)
15545       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15546       wlarc=
15547       hardcode_direct_GCJ=yes
15548       hardcode_shlibpath_var_GCJ=no
15549       ;;
15550
15551     *)
15552       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15553         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15554         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15555       else
15556         ld_shlibs_GCJ=no
15557       fi
15558       ;;
15559     esac
15560
15561     if test "$ld_shlibs_GCJ" = yes; then
15562       runpath_var=LD_RUN_PATH
15563       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15564       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15565       # ancient GNU ld didn't support --whole-archive et. al.
15566       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15567         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15568       else
15569         whole_archive_flag_spec_GCJ=
15570       fi
15571     fi
15572   else
15573     # PORTME fill in a description of your system's linker (not GNU ld)
15574     case $host_os in
15575     aix3*)
15576       allow_undefined_flag_GCJ=unsupported
15577       always_export_symbols_GCJ=yes
15578       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'
15579       # Note: this linker hardcodes the directories in LIBPATH if there
15580       # are no directories specified by -L.
15581       hardcode_minus_L_GCJ=yes
15582       if test "$GCC" = yes && test -z "$link_static_flag"; then
15583         # Neither direct hardcoding nor static linking is supported with a
15584         # broken collect2.
15585         hardcode_direct_GCJ=unsupported
15586       fi
15587       ;;
15588
15589     aix4* | aix5*)
15590       if test "$host_cpu" = ia64; then
15591         # On IA64, the linker does run time linking by default, so we don't
15592         # have to do anything special.
15593         aix_use_runtimelinking=no
15594         exp_sym_flag='-Bexport'
15595         no_entry_flag=""
15596       else
15597         # If we're using GNU nm, then we don't want the "-C" option.
15598         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15599         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15600           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'
15601         else
15602           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'
15603         fi
15604         aix_use_runtimelinking=no
15605
15606         # Test if we are trying to use run time linking or normal
15607         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15608         # need to do runtime linking.
15609         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15610           for ld_flag in $LDFLAGS; do
15611           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15612             aix_use_runtimelinking=yes
15613             break
15614           fi
15615           done
15616         esac
15617
15618         exp_sym_flag='-bexport'
15619         no_entry_flag='-bnoentry'
15620       fi
15621
15622       # When large executables or shared objects are built, AIX ld can
15623       # have problems creating the table of contents.  If linking a library
15624       # or program results in "error TOC overflow" add -mminimal-toc to
15625       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15626       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15627
15628       archive_cmds_GCJ=''
15629       hardcode_direct_GCJ=yes
15630       hardcode_libdir_separator_GCJ=':'
15631       link_all_deplibs_GCJ=yes
15632
15633       if test "$GCC" = yes; then
15634         case $host_os in aix4.012|aix4.012.*)
15635         # We only want to do this on AIX 4.2 and lower, the check
15636         # below for broken collect2 doesn't work under 4.3+
15637           collect2name=`${CC} -print-prog-name=collect2`
15638           if test -f "$collect2name" && \
15639            strings "$collect2name" | grep resolve_lib_name >/dev/null
15640           then
15641           # We have reworked collect2
15642           hardcode_direct_GCJ=yes
15643           else
15644           # We have old collect2
15645           hardcode_direct_GCJ=unsupported
15646           # It fails to find uninstalled libraries when the uninstalled
15647           # path is not listed in the libpath.  Setting hardcode_minus_L
15648           # to unsupported forces relinking
15649           hardcode_minus_L_GCJ=yes
15650           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15651           hardcode_libdir_separator_GCJ=
15652           fi
15653         esac
15654         shared_flag='-shared'
15655       else
15656         # not using gcc
15657         if test "$host_cpu" = ia64; then
15658         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15659         # chokes on -Wl,-G. The following line is correct:
15660           shared_flag='-G'
15661         else
15662         if test "$aix_use_runtimelinking" = yes; then
15663             shared_flag='${wl}-G'
15664           else
15665             shared_flag='${wl}-bM:SRE'
15666         fi
15667         fi
15668       fi
15669
15670       # It seems that -bexpall does not export symbols beginning with
15671       # underscore (_), so it is better to generate a list of symbols to export.
15672       always_export_symbols_GCJ=yes
15673       if test "$aix_use_runtimelinking" = yes; then
15674         # Warning - without using the other runtime loading flags (-brtl),
15675         # -berok will link without error, but may produce a broken library.
15676         allow_undefined_flag_GCJ='-berok'
15677        # Determine the default libpath from the value encoded in an empty executable.
15678        cat >conftest.$ac_ext <<_ACEOF
15679 #line $LINENO "configure"
15680 /* confdefs.h.  */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h.  */
15685
15686 int
15687 main ()
15688 {
15689
15690   ;
15691   return 0;
15692 }
15693 _ACEOF
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696   (eval $ac_link) 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); } &&
15700          { ac_try='test -s conftest$ac_exeext'
15701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702   (eval $ac_try) 2>&5
15703   ac_status=$?
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); }; }; then
15706
15707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15708 }'`
15709 # Check for a 64-bit object if we didn't find anything.
15710 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; }
15711 }'`; fi
15712 else
15713   echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15715
15716 fi
15717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15718 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15719
15720        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15721         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"
15722        else
15723         if test "$host_cpu" = ia64; then
15724           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15725           allow_undefined_flag_GCJ="-z nodefs"
15726           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"
15727         else
15728          # Determine the default libpath from the value encoded in an empty executable.
15729          cat >conftest.$ac_ext <<_ACEOF
15730 #line $LINENO "configure"
15731 /* confdefs.h.  */
15732 _ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h.  */
15736
15737 int
15738 main ()
15739 {
15740
15741   ;
15742   return 0;
15743 }
15744 _ACEOF
15745 rm -f conftest.$ac_objext conftest$ac_exeext
15746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15747   (eval $ac_link) 2>&5
15748   ac_status=$?
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); } &&
15751          { ac_try='test -s conftest$ac_exeext'
15752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753   (eval $ac_try) 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); }; }; then
15757
15758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15759 }'`
15760 # Check for a 64-bit object if we didn't find anything.
15761 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; }
15762 }'`; fi
15763 else
15764   echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.$ac_ext >&5
15766
15767 fi
15768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15770
15771          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15772           # Warning - without using the other run time loading flags,
15773           # -berok will link without error, but may produce a broken library.
15774           no_undefined_flag_GCJ=' ${wl}-bernotok'
15775           allow_undefined_flag_GCJ=' ${wl}-berok'
15776           # -bexpall does not export symbols beginning with underscore (_)
15777           always_export_symbols_GCJ=yes
15778           # Exported symbols can be pulled into shared objects from archives
15779           whole_archive_flag_spec_GCJ=' '
15780           archive_cmds_need_lc_GCJ=yes
15781           # This is similar to how AIX traditionally builds it's shared libraries.
15782           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'
15783         fi
15784       fi
15785       ;;
15786
15787     amigaos*)
15788       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)'
15789       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15790       hardcode_minus_L_GCJ=yes
15791       # see comment about different semantics on the GNU ld section
15792       ld_shlibs_GCJ=no
15793       ;;
15794
15795     bsdi4*)
15796       export_dynamic_flag_spec_GCJ=-rdynamic
15797       ;;
15798
15799     cygwin* | mingw* | pw32*)
15800       # When not using gcc, we currently assume that we are using
15801       # Microsoft Visual C++.
15802       # hardcode_libdir_flag_spec is actually meaningless, as there is
15803       # no search path for DLLs.
15804       hardcode_libdir_flag_spec_GCJ=' '
15805       allow_undefined_flag_GCJ=unsupported
15806       # Tell ltmain to make .lib files, not .a files.
15807       libext=lib
15808       # Tell ltmain to make .dll files, not .so files.
15809       shrext=".dll"
15810       # FIXME: Setting linknames here is a bad hack.
15811       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15812       # The linker will automatically build a .lib file if we build a DLL.
15813       old_archive_From_new_cmds_GCJ='true'
15814       # FIXME: Should let the user specify the lib program.
15815       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15816       fix_srcfile_path='`cygpath -w "$srcfile"`'
15817       enable_shared_with_static_runtimes_GCJ=yes
15818       ;;
15819
15820     darwin* | rhapsody*)
15821     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15822       archive_cmds_need_lc_GCJ=no
15823       case "$host_os" in
15824       rhapsody* | darwin1.[012])
15825         allow_undefined_flag_GCJ='-undefined suppress'
15826         ;;
15827       *) # Darwin 1.3 on
15828         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15829         ;;
15830       esac
15831       # FIXME: Relying on posixy $() will cause problems for
15832       #        cross-compilation, but unfortunately the echo tests do not
15833       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15834       #        `"' quotes if we put them in here... so don't!
15835         lt_int_apple_cc_single_mod=no
15836         output_verbose_link_cmd='echo'
15837         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15838           lt_int_apple_cc_single_mod=yes
15839         fi
15840         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15841           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15842         else
15843         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'
15844       fi
15845       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15846       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15847         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15848           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}'
15849         else
15850           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}'
15851         fi
15852           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}'
15853       hardcode_direct_GCJ=no
15854       hardcode_automatic_GCJ=yes
15855       hardcode_shlibpath_var_GCJ=unsupported
15856       whole_archive_flag_spec_GCJ='-all_load $convenience'
15857       link_all_deplibs_GCJ=yes
15858     fi
15859       ;;
15860
15861     dgux*)
15862       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15863       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15864       hardcode_shlibpath_var_GCJ=no
15865       ;;
15866
15867     freebsd1*)
15868       ld_shlibs_GCJ=no
15869       ;;
15870
15871     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15872     # support.  Future versions do this automatically, but an explicit c++rt0.o
15873     # does not break anything, and helps significantly (at the cost of a little
15874     # extra space).
15875     freebsd2.2*)
15876       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15877       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15878       hardcode_direct_GCJ=yes
15879       hardcode_shlibpath_var_GCJ=no
15880       ;;
15881
15882     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15883     freebsd2*)
15884       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15885       hardcode_direct_GCJ=yes
15886       hardcode_minus_L_GCJ=yes
15887       hardcode_shlibpath_var_GCJ=no
15888       ;;
15889
15890     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15891     freebsd*)
15892       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15893       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15894       hardcode_direct_GCJ=yes
15895       hardcode_shlibpath_var_GCJ=no
15896       ;;
15897
15898     hpux9*)
15899       if test "$GCC" = yes; then
15900         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'
15901       else
15902         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'
15903       fi
15904       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15905       hardcode_libdir_separator_GCJ=:
15906       hardcode_direct_GCJ=yes
15907
15908       # hardcode_minus_L: Not really in the search PATH,
15909       # but as the default location of the library.
15910       hardcode_minus_L_GCJ=yes
15911       export_dynamic_flag_spec_GCJ='${wl}-E'
15912       ;;
15913
15914     hpux10* | hpux11*)
15915       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15916         case "$host_cpu" in
15917         hppa*64*|ia64*)
15918           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15919           ;;
15920         *)
15921           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15922           ;;
15923         esac
15924       else
15925         case "$host_cpu" in
15926         hppa*64*|ia64*)
15927           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15928           ;;
15929         *)
15930           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15931           ;;
15932         esac
15933       fi
15934       if test "$with_gnu_ld" = no; then
15935         case "$host_cpu" in
15936         hppa*64*)
15937           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15938           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15939           hardcode_libdir_separator_GCJ=:
15940           hardcode_direct_GCJ=no
15941           hardcode_shlibpath_var_GCJ=no
15942           ;;
15943         ia64*)
15944           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15945           hardcode_direct_GCJ=no
15946           hardcode_shlibpath_var_GCJ=no
15947
15948           # hardcode_minus_L: Not really in the search PATH,
15949           # but as the default location of the library.
15950           hardcode_minus_L_GCJ=yes
15951           ;;
15952         *)
15953           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15954           hardcode_libdir_separator_GCJ=:
15955           hardcode_direct_GCJ=yes
15956           export_dynamic_flag_spec_GCJ='${wl}-E'
15957
15958           # hardcode_minus_L: Not really in the search PATH,
15959           # but as the default location of the library.
15960           hardcode_minus_L_GCJ=yes
15961           ;;
15962         esac
15963       fi
15964       ;;
15965
15966     irix5* | irix6* | nonstopux*)
15967       if test "$GCC" = yes; then
15968         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'
15969       else
15970         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'
15971         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15972       fi
15973       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15974       hardcode_libdir_separator_GCJ=:
15975       link_all_deplibs_GCJ=yes
15976       ;;
15977
15978     netbsd*)
15979       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15980         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15981       else
15982         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15983       fi
15984       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15985       hardcode_direct_GCJ=yes
15986       hardcode_shlibpath_var_GCJ=no
15987       ;;
15988
15989     newsos6)
15990       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15991       hardcode_direct_GCJ=yes
15992       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15993       hardcode_libdir_separator_GCJ=:
15994       hardcode_shlibpath_var_GCJ=no
15995       ;;
15996
15997     openbsd*)
15998       hardcode_direct_GCJ=yes
15999       hardcode_shlibpath_var_GCJ=no
16000       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16001         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16002         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16003         export_dynamic_flag_spec_GCJ='${wl}-E'
16004       else
16005        case $host_os in
16006          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16007            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16008            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16009            ;;
16010          *)
16011            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16012            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16013            ;;
16014        esac
16015       fi
16016       ;;
16017
16018     os2*)
16019       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16020       hardcode_minus_L_GCJ=yes
16021       allow_undefined_flag_GCJ=unsupported
16022       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'
16023       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16024       ;;
16025
16026     osf3*)
16027       if test "$GCC" = yes; then
16028         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16029         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'
16030       else
16031         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16032         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'
16033       fi
16034       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16035       hardcode_libdir_separator_GCJ=:
16036       ;;
16037
16038     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16039       if test "$GCC" = yes; then
16040         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16041         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'
16042         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16043       else
16044         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16045         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'
16046         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~
16047         $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'
16048
16049         # Both c and cxx compiler support -rpath directly
16050         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16051       fi
16052       hardcode_libdir_separator_GCJ=:
16053       ;;
16054
16055     sco3.2v5*)
16056       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16057       hardcode_shlibpath_var_GCJ=no
16058       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16059       runpath_var=LD_RUN_PATH
16060       hardcode_runpath_var=yes
16061       ;;
16062
16063     solaris*)
16064       no_undefined_flag_GCJ=' -z text'
16065       if test "$GCC" = yes; then
16066         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16067         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16068           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16069       else
16070         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16071         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16072         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16073       fi
16074       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16075       hardcode_shlibpath_var_GCJ=no
16076       case $host_os in
16077       solaris2.[0-5] | solaris2.[0-5].*) ;;
16078       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16079         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16080       esac
16081       link_all_deplibs_GCJ=yes
16082       ;;
16083
16084     sunos4*)
16085       if test "x$host_vendor" = xsequent; then
16086         # Use $CC to link under sequent, because it throws in some extra .o
16087         # files that make .init and .fini sections work.
16088         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16089       else
16090         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16091       fi
16092       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16093       hardcode_direct_GCJ=yes
16094       hardcode_minus_L_GCJ=yes
16095       hardcode_shlibpath_var_GCJ=no
16096       ;;
16097
16098     sysv4)
16099       case $host_vendor in
16100         sni)
16101           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16102           hardcode_direct_GCJ=yes # is this really true???
16103         ;;
16104         siemens)
16105           ## LD is ld it makes a PLAMLIB
16106           ## CC just makes a GrossModule.
16107           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16108           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16109           hardcode_direct_GCJ=no
16110         ;;
16111         motorola)
16112           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16113           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16114         ;;
16115       esac
16116       runpath_var='LD_RUN_PATH'
16117       hardcode_shlibpath_var_GCJ=no
16118       ;;
16119
16120     sysv4.3*)
16121       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122       hardcode_shlibpath_var_GCJ=no
16123       export_dynamic_flag_spec_GCJ='-Bexport'
16124       ;;
16125
16126     sysv4*MP*)
16127       if test -d /usr/nec; then
16128         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129         hardcode_shlibpath_var_GCJ=no
16130         runpath_var=LD_RUN_PATH
16131         hardcode_runpath_var=yes
16132         ld_shlibs_GCJ=yes
16133       fi
16134       ;;
16135
16136     sysv4.2uw2*)
16137       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16138       hardcode_direct_GCJ=yes
16139       hardcode_minus_L_GCJ=no
16140       hardcode_shlibpath_var_GCJ=no
16141       hardcode_runpath_var=yes
16142       runpath_var=LD_RUN_PATH
16143       ;;
16144
16145    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16146       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16147       if test "$GCC" = yes; then
16148         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16149       else
16150         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16151       fi
16152       runpath_var='LD_RUN_PATH'
16153       hardcode_shlibpath_var_GCJ=no
16154       ;;
16155
16156     sysv5*)
16157       no_undefined_flag_GCJ=' -z text'
16158       # $CC -shared without GNU ld will not create a library from C++
16159       # object files and a static libstdc++, better avoid it by now
16160       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16161       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16162                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16163       hardcode_libdir_flag_spec_GCJ=
16164       hardcode_shlibpath_var_GCJ=no
16165       runpath_var='LD_RUN_PATH'
16166       ;;
16167
16168     uts4*)
16169       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16170       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16171       hardcode_shlibpath_var_GCJ=no
16172       ;;
16173
16174     *)
16175       ld_shlibs_GCJ=no
16176       ;;
16177     esac
16178   fi
16179
16180 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16181 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16182 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16183
16184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16185 if test "$GCC" = yes; then
16186   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16187 fi
16188
16189 #
16190 # Do we need to explicitly link libc?
16191 #
16192 case "x$archive_cmds_need_lc_GCJ" in
16193 x|xyes)
16194   # Assume -lc should be added
16195   archive_cmds_need_lc_GCJ=yes
16196
16197   if test "$enable_shared" = yes && test "$GCC" = yes; then
16198     case $archive_cmds_GCJ in
16199     *'~'*)
16200       # FIXME: we may have to deal with multi-command sequences.
16201       ;;
16202     '$CC '*)
16203       # Test whether the compiler implicitly links with -lc since on some
16204       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16205       # to ld, don't add -lc before -lgcc.
16206       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16207 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16208       $rm conftest*
16209       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16210
16211       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16212   (eval $ac_compile) 2>&5
16213   ac_status=$?
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } 2>conftest.err; then
16216         soname=conftest
16217         lib=conftest
16218         libobjs=conftest.$ac_objext
16219         deplibs=
16220         wl=$lt_prog_compiler_wl_GCJ
16221         compiler_flags=-v
16222         linker_flags=-v
16223         verstring=
16224         output_objdir=.
16225         libname=conftest
16226         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16227         allow_undefined_flag_GCJ=
16228         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16229   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16230   ac_status=$?
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); }
16233         then
16234           archive_cmds_need_lc_GCJ=no
16235         else
16236           archive_cmds_need_lc_GCJ=yes
16237         fi
16238         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16239       else
16240         cat conftest.err 1>&5
16241       fi
16242       $rm conftest*
16243       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16244 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16245       ;;
16246     esac
16247   fi
16248   ;;
16249 esac
16250
16251 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16252 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16253 hardcode_action_GCJ=
16254 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16255    test -n "$runpath_var GCJ" || \
16256    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16257
16258   # We can hardcode non-existant directories.
16259   if test "$hardcode_direct_GCJ" != no &&
16260      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16261      # have to relink, otherwise we might link with an installed library
16262      # when we should be linking with a yet-to-be-installed one
16263      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16264      test "$hardcode_minus_L_GCJ" != no; then
16265     # Linking always hardcodes the temporary library directory.
16266     hardcode_action_GCJ=relink
16267   else
16268     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16269     hardcode_action_GCJ=immediate
16270   fi
16271 else
16272   # We cannot hardcode anything, or else we can only hardcode existing
16273   # directories.
16274   hardcode_action_GCJ=unsupported
16275 fi
16276 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16277 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16278
16279 if test "$hardcode_action_GCJ" = relink; then
16280   # Fast installation is not supported
16281   enable_fast_install=no
16282 elif test "$shlibpath_overrides_runpath" = yes ||
16283      test "$enable_shared" = no; then
16284   # Fast installation is not necessary
16285   enable_fast_install=needless
16286 fi
16287
16288 striplib=
16289 old_striplib=
16290 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16291 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16292 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16293   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16294   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16295   echo "$as_me:$LINENO: result: yes" >&5
16296 echo "${ECHO_T}yes" >&6
16297 else
16298 # FIXME - insert some real tests, host_os isn't really good enough
16299   case $host_os in
16300    darwin*)
16301        if test -n "$STRIP" ; then
16302          striplib="$STRIP -x"
16303          echo "$as_me:$LINENO: result: yes" >&5
16304 echo "${ECHO_T}yes" >&6
16305        else
16306   echo "$as_me:$LINENO: result: no" >&5
16307 echo "${ECHO_T}no" >&6
16308 fi
16309        ;;
16310    *)
16311   echo "$as_me:$LINENO: result: no" >&5
16312 echo "${ECHO_T}no" >&6
16313     ;;
16314   esac
16315 fi
16316
16317 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16318 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16319 library_names_spec=
16320 libname_spec='lib$name'
16321 soname_spec=
16322 shrext=".so"
16323 postinstall_cmds=
16324 postuninstall_cmds=
16325 finish_cmds=
16326 finish_eval=
16327 shlibpath_var=
16328 shlibpath_overrides_runpath=unknown
16329 version_type=none
16330 dynamic_linker="$host_os ld.so"
16331 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16332 if test "$GCC" = yes; then
16333   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16334   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16335     # if the path contains ";" then we assume it to be the separator
16336     # otherwise default to the standard path separator (i.e. ":") - it is
16337     # assumed that no part of a normal pathname contains ";" but that should
16338     # okay in the real world where ";" in dirpaths is itself problematic.
16339     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16340   else
16341     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16342   fi
16343 else
16344   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16345 fi
16346 need_lib_prefix=unknown
16347 hardcode_into_libs=no
16348
16349 # when you set need_version to no, make sure it does not cause -set_version
16350 # flags to be left without arguments
16351 need_version=unknown
16352
16353 case $host_os in
16354 aix3*)
16355   version_type=linux
16356   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16357   shlibpath_var=LIBPATH
16358
16359   # AIX 3 has no versioning support, so we append a major version to the name.
16360   soname_spec='${libname}${release}${shared_ext}$major'
16361   ;;
16362
16363 aix4* | aix5*)
16364   version_type=linux
16365   need_lib_prefix=no
16366   need_version=no
16367   hardcode_into_libs=yes
16368   if test "$host_cpu" = ia64; then
16369     # AIX 5 supports IA64
16370     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16371     shlibpath_var=LD_LIBRARY_PATH
16372   else
16373     # With GCC up to 2.95.x, collect2 would create an import file
16374     # for dependence libraries.  The import file would start with
16375     # the line `#! .'.  This would cause the generated library to
16376     # depend on `.', always an invalid library.  This was fixed in
16377     # development snapshots of GCC prior to 3.0.
16378     case $host_os in
16379       aix4 | aix4.[01] | aix4.[01].*)
16380       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16381            echo ' yes '
16382            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16383         :
16384       else
16385         can_build_shared=no
16386       fi
16387       ;;
16388     esac
16389     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16390     # soname into executable. Probably we can add versioning support to
16391     # collect2, so additional links can be useful in future.
16392     if test "$aix_use_runtimelinking" = yes; then
16393       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16394       # instead of lib<name>.a to let people know that these are not
16395       # typical AIX shared libraries.
16396       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397     else
16398       # We preserve .a as extension for shared libraries through AIX4.2
16399       # and later when we are not doing run time linking.
16400       library_names_spec='${libname}${release}.a $libname.a'
16401       soname_spec='${libname}${release}${shared_ext}$major'
16402     fi
16403     shlibpath_var=LIBPATH
16404   fi
16405   ;;
16406
16407 amigaos*)
16408   library_names_spec='$libname.ixlibrary $libname.a'
16409   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16410   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'
16411   ;;
16412
16413 beos*)
16414   library_names_spec='${libname}${shared_ext}'
16415   dynamic_linker="$host_os ld.so"
16416   shlibpath_var=LIBRARY_PATH
16417   ;;
16418
16419 bsdi4*)
16420   version_type=linux
16421   need_version=no
16422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423   soname_spec='${libname}${release}${shared_ext}$major'
16424   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16425   shlibpath_var=LD_LIBRARY_PATH
16426   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16427   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16428   # the default ld.so.conf also contains /usr/contrib/lib and
16429   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16430   # libtool to hard-code these into programs
16431   ;;
16432
16433 cygwin* | mingw* | pw32*)
16434   version_type=windows
16435   shrext=".dll"
16436   need_version=no
16437   need_lib_prefix=no
16438
16439   case $GCC,$host_os in
16440   yes,cygwin* | yes,mingw* | yes,pw32*)
16441     library_names_spec='$libname.dll.a'
16442     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16443     postinstall_cmds='base_file=`basename \${file}`~
16444       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16445       dldir=$destdir/`dirname \$dlpath`~
16446       test -d \$dldir || mkdir -p \$dldir~
16447       $install_prog $dir/$dlname \$dldir/$dlname'
16448     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16449       dlpath=$dir/\$dldll~
16450        $rm \$dlpath'
16451     shlibpath_overrides_runpath=yes
16452
16453     case $host_os in
16454     cygwin*)
16455       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16456       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16457       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16458       ;;
16459     mingw*)
16460       # MinGW DLLs use traditional 'lib' prefix
16461       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16462       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16463       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16464         # It is most probably a Windows format PATH printed by
16465         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16466         # path with ; separators, and with drive letters. We can handle the
16467         # drive letters (cygwin fileutils understands them), so leave them,
16468         # especially as we might pass files found there to a mingw objdump,
16469         # which wouldn't understand a cygwinified path. Ahh.
16470         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16471       else
16472         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16473       fi
16474       ;;
16475     pw32*)
16476       # pw32 DLLs use 'pw' prefix rather than 'lib'
16477       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16478       ;;
16479     esac
16480     ;;
16481
16482   *)
16483     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16484     ;;
16485   esac
16486   dynamic_linker='Win32 ld.exe'
16487   # FIXME: first we should search . and the directory the executable is in
16488   shlibpath_var=PATH
16489   ;;
16490
16491 darwin* | rhapsody*)
16492   dynamic_linker="$host_os dyld"
16493   version_type=darwin
16494   need_lib_prefix=no
16495   need_version=no
16496   # FIXME: Relying on posixy $() will cause problems for
16497   #        cross-compilation, but unfortunately the echo tests do not
16498   #        yet detect zsh echo's removal of \ escapes.
16499   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16500   soname_spec='${libname}${release}${major}$shared_ext'
16501   shlibpath_overrides_runpath=yes
16502   shlibpath_var=DYLD_LIBRARY_PATH
16503   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16504   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16505   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16506   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"`
16507   fi
16508   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16509   ;;
16510
16511 dgux*)
16512   version_type=linux
16513   need_lib_prefix=no
16514   need_version=no
16515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16516   soname_spec='${libname}${release}${shared_ext}$major'
16517   shlibpath_var=LD_LIBRARY_PATH
16518   ;;
16519
16520 freebsd1*)
16521   dynamic_linker=no
16522   ;;
16523
16524 freebsd*)
16525   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16526   version_type=freebsd-$objformat
16527   case $version_type in
16528     freebsd-elf*)
16529       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16530       need_version=no
16531       need_lib_prefix=no
16532       ;;
16533     freebsd-*)
16534       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16535       need_version=yes
16536       ;;
16537   esac
16538   shlibpath_var=LD_LIBRARY_PATH
16539   case $host_os in
16540   freebsd2*)
16541     shlibpath_overrides_runpath=yes
16542     ;;
16543   freebsd3.01* | freebsdelf3.01*)
16544     shlibpath_overrides_runpath=yes
16545     hardcode_into_libs=yes
16546     ;;
16547   *) # from 3.2 on
16548     shlibpath_overrides_runpath=no
16549     hardcode_into_libs=yes
16550     ;;
16551   esac
16552   ;;
16553
16554 gnu*)
16555   version_type=linux
16556   need_lib_prefix=no
16557   need_version=no
16558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16559   soname_spec='${libname}${release}${shared_ext}$major'
16560   shlibpath_var=LD_LIBRARY_PATH
16561   hardcode_into_libs=yes
16562   ;;
16563
16564 hpux9* | hpux10* | hpux11*)
16565   # Give a soname corresponding to the major version so that dld.sl refuses to
16566   # link against other versions.
16567   version_type=sunos
16568   need_lib_prefix=no
16569   need_version=no
16570   case "$host_cpu" in
16571   ia64*)
16572     shrext='.so'
16573     hardcode_into_libs=yes
16574     dynamic_linker="$host_os dld.so"
16575     shlibpath_var=LD_LIBRARY_PATH
16576     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16577     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16578     soname_spec='${libname}${release}${shared_ext}$major'
16579     if test "X$HPUX_IA64_MODE" = X32; then
16580       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16581     else
16582       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16583     fi
16584     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16585     ;;
16586    hppa*64*)
16587      shrext='.sl'
16588      hardcode_into_libs=yes
16589      dynamic_linker="$host_os dld.sl"
16590      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16591      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16592      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16593      soname_spec='${libname}${release}${shared_ext}$major'
16594      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16595      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16596      ;;
16597    *)
16598     shrext='.sl'
16599     dynamic_linker="$host_os dld.sl"
16600     shlibpath_var=SHLIB_PATH
16601     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603     soname_spec='${libname}${release}${shared_ext}$major'
16604     ;;
16605   esac
16606   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16607   postinstall_cmds='chmod 555 $lib'
16608   ;;
16609
16610 irix5* | irix6* | nonstopux*)
16611   case $host_os in
16612     nonstopux*) version_type=nonstopux ;;
16613     *)
16614         if test "$lt_cv_prog_gnu_ld" = yes; then
16615                 version_type=linux
16616         else
16617                 version_type=irix
16618         fi ;;
16619   esac
16620   need_lib_prefix=no
16621   need_version=no
16622   soname_spec='${libname}${release}${shared_ext}$major'
16623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16624   case $host_os in
16625   irix5* | nonstopux*)
16626     libsuff= shlibsuff=
16627     ;;
16628   *)
16629     case $LD in # libtool.m4 will add one of these switches to LD
16630     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16631       libsuff= shlibsuff= libmagic=32-bit;;
16632     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16633       libsuff=32 shlibsuff=N32 libmagic=N32;;
16634     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16635       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16636     *) libsuff= shlibsuff= libmagic=never-match;;
16637     esac
16638     ;;
16639   esac
16640   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16641   shlibpath_overrides_runpath=no
16642   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16643   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16644   hardcode_into_libs=yes
16645   ;;
16646
16647 # No shared lib support for Linux oldld, aout, or coff.
16648 linux*oldld* | linux*aout* | linux*coff*)
16649   dynamic_linker=no
16650   ;;
16651
16652 # This must be Linux ELF.
16653 linux*)
16654   version_type=linux
16655   need_lib_prefix=no
16656   need_version=no
16657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16658   soname_spec='${libname}${release}${shared_ext}$major'
16659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16660   shlibpath_var=LD_LIBRARY_PATH
16661   shlibpath_overrides_runpath=no
16662   # This implies no fast_install, which is unacceptable.
16663   # Some rework will be needed to allow for fast_install
16664   # before this can be enabled.
16665   hardcode_into_libs=yes
16666
16667   # We used to test for /lib/ld.so.1 and disable shared libraries on
16668   # powerpc, because MkLinux only supported shared libraries with the
16669   # GNU dynamic linker.  Since this was broken with cross compilers,
16670   # most powerpc-linux boxes support dynamic linking these days and
16671   # people can always --disable-shared, the test was removed, and we
16672   # assume the GNU/Linux dynamic linker is in use.
16673   dynamic_linker='GNU/Linux ld.so'
16674   ;;
16675
16676 netbsd*)
16677   version_type=sunos
16678   need_lib_prefix=no
16679   need_version=no
16680   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16682     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16683     dynamic_linker='NetBSD (a.out) ld.so'
16684   else
16685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16686     soname_spec='${libname}${release}${shared_ext}$major'
16687     dynamic_linker='NetBSD ld.elf_so'
16688   fi
16689   shlibpath_var=LD_LIBRARY_PATH
16690   shlibpath_overrides_runpath=yes
16691   hardcode_into_libs=yes
16692   ;;
16693
16694 newsos6)
16695   version_type=linux
16696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697   shlibpath_var=LD_LIBRARY_PATH
16698   shlibpath_overrides_runpath=yes
16699   ;;
16700
16701 nto-qnx)
16702   version_type=linux
16703   need_lib_prefix=no
16704   need_version=no
16705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16706   soname_spec='${libname}${release}${shared_ext}$major'
16707   shlibpath_var=LD_LIBRARY_PATH
16708   shlibpath_overrides_runpath=yes
16709   ;;
16710
16711 openbsd*)
16712   version_type=sunos
16713   need_lib_prefix=no
16714   need_version=no
16715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16716   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16717   shlibpath_var=LD_LIBRARY_PATH
16718   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16719     case $host_os in
16720       openbsd2.[89] | openbsd2.[89].*)
16721         shlibpath_overrides_runpath=no
16722         ;;
16723       *)
16724         shlibpath_overrides_runpath=yes
16725         ;;
16726       esac
16727   else
16728     shlibpath_overrides_runpath=yes
16729   fi
16730   ;;
16731
16732 os2*)
16733   libname_spec='$name'
16734   shrext=".dll"
16735   need_lib_prefix=no
16736   library_names_spec='$libname${shared_ext} $libname.a'
16737   dynamic_linker='OS/2 ld.exe'
16738   shlibpath_var=LIBPATH
16739   ;;
16740
16741 osf3* | osf4* | osf5*)
16742   version_type=osf
16743   need_lib_prefix=no
16744   need_version=no
16745   soname_spec='${libname}${release}${shared_ext}$major'
16746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16747   shlibpath_var=LD_LIBRARY_PATH
16748   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16749   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16750   ;;
16751
16752 sco3.2v5*)
16753   version_type=osf
16754   soname_spec='${libname}${release}${shared_ext}$major'
16755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756   shlibpath_var=LD_LIBRARY_PATH
16757   ;;
16758
16759 solaris*)
16760   version_type=linux
16761   need_lib_prefix=no
16762   need_version=no
16763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16764   soname_spec='${libname}${release}${shared_ext}$major'
16765   shlibpath_var=LD_LIBRARY_PATH
16766   shlibpath_overrides_runpath=yes
16767   hardcode_into_libs=yes
16768   # ldd complains unless libraries are executable
16769   postinstall_cmds='chmod +x $lib'
16770   ;;
16771
16772 sunos4*)
16773   version_type=sunos
16774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16775   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16776   shlibpath_var=LD_LIBRARY_PATH
16777   shlibpath_overrides_runpath=yes
16778   if test "$with_gnu_ld" = yes; then
16779     need_lib_prefix=no
16780   fi
16781   need_version=yes
16782   ;;
16783
16784 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16785   version_type=linux
16786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16787   soname_spec='${libname}${release}${shared_ext}$major'
16788   shlibpath_var=LD_LIBRARY_PATH
16789   case $host_vendor in
16790     sni)
16791       shlibpath_overrides_runpath=no
16792       need_lib_prefix=no
16793       export_dynamic_flag_spec='${wl}-Blargedynsym'
16794       runpath_var=LD_RUN_PATH
16795       ;;
16796     siemens)
16797       need_lib_prefix=no
16798       ;;
16799     motorola)
16800       need_lib_prefix=no
16801       need_version=no
16802       shlibpath_overrides_runpath=no
16803       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16804       ;;
16805   esac
16806   ;;
16807
16808 sysv4*MP*)
16809   if test -d /usr/nec ;then
16810     version_type=linux
16811     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16812     soname_spec='$libname${shared_ext}.$major'
16813     shlibpath_var=LD_LIBRARY_PATH
16814   fi
16815   ;;
16816
16817 uts4*)
16818   version_type=linux
16819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16820   soname_spec='${libname}${release}${shared_ext}$major'
16821   shlibpath_var=LD_LIBRARY_PATH
16822   ;;
16823
16824 *)
16825   dynamic_linker=no
16826   ;;
16827 esac
16828 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16829 echo "${ECHO_T}$dynamic_linker" >&6
16830 test "$dynamic_linker" = no && can_build_shared=no
16831
16832 if test "x$enable_dlopen" != xyes; then
16833   enable_dlopen=unknown
16834   enable_dlopen_self=unknown
16835   enable_dlopen_self_static=unknown
16836 else
16837   lt_cv_dlopen=no
16838   lt_cv_dlopen_libs=
16839
16840   case $host_os in
16841   beos*)
16842     lt_cv_dlopen="load_add_on"
16843     lt_cv_dlopen_libs=
16844     lt_cv_dlopen_self=yes
16845     ;;
16846
16847   mingw* | pw32*)
16848     lt_cv_dlopen="LoadLibrary"
16849     lt_cv_dlopen_libs=
16850    ;;
16851
16852   cygwin*)
16853     lt_cv_dlopen="dlopen"
16854     lt_cv_dlopen_libs=
16855    ;;
16856
16857   darwin*)
16858   # if libdl is installed we need to link against it
16859     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16860 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16861 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16862   echo $ECHO_N "(cached) $ECHO_C" >&6
16863 else
16864   ac_check_lib_save_LIBS=$LIBS
16865 LIBS="-ldl  $LIBS"
16866 cat >conftest.$ac_ext <<_ACEOF
16867 #line $LINENO "configure"
16868 /* confdefs.h.  */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h.  */
16873
16874 /* Override any gcc2 internal prototype to avoid an error.  */
16875 #ifdef __cplusplus
16876 extern "C"
16877 #endif
16878 /* We use char because int might match the return type of a gcc2
16879    builtin and then its argument prototype would still apply.  */
16880 char dlopen ();
16881 int
16882 main ()
16883 {
16884 dlopen ();
16885   ;
16886   return 0;
16887 }
16888 _ACEOF
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16891   (eval $ac_link) 2>&5
16892   ac_status=$?
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); } &&
16895          { ac_try='test -s conftest$ac_exeext'
16896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897   (eval $ac_try) 2>&5
16898   ac_status=$?
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); }; }; then
16901   ac_cv_lib_dl_dlopen=yes
16902 else
16903   echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16905
16906 ac_cv_lib_dl_dlopen=no
16907 fi
16908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16909 LIBS=$ac_check_lib_save_LIBS
16910 fi
16911 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16912 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16913 if test $ac_cv_lib_dl_dlopen = yes; then
16914   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16915 else
16916
16917     lt_cv_dlopen="dyld"
16918     lt_cv_dlopen_libs=
16919     lt_cv_dlopen_self=yes
16920
16921 fi
16922
16923    ;;
16924
16925   *)
16926     echo "$as_me:$LINENO: checking for shl_load" >&5
16927 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16928 if test "${ac_cv_func_shl_load+set}" = set; then
16929   echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931   cat >conftest.$ac_ext <<_ACEOF
16932 #line $LINENO "configure"
16933 /* confdefs.h.  */
16934 _ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h.  */
16938 /* System header to define __stub macros and hopefully few prototypes,
16939     which can conflict with char shl_load (); below.
16940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16941     <limits.h> exists even on freestanding compilers.  */
16942 #ifdef __STDC__
16943 # include <limits.h>
16944 #else
16945 # include <assert.h>
16946 #endif
16947 /* Override any gcc2 internal prototype to avoid an error.  */
16948 #ifdef __cplusplus
16949 extern "C"
16950 {
16951 #endif
16952 /* We use char because int might match the return type of a gcc2
16953    builtin and then its argument prototype would still apply.  */
16954 char shl_load ();
16955 /* The GNU C library defines this for functions which it implements
16956     to always fail with ENOSYS.  Some functions are actually named
16957     something starting with __ and the normal name is an alias.  */
16958 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16959 choke me
16960 #else
16961 char (*f) () = shl_load;
16962 #endif
16963 #ifdef __cplusplus
16964 }
16965 #endif
16966
16967 int
16968 main ()
16969 {
16970 return f != shl_load;
16971   ;
16972   return 0;
16973 }
16974 _ACEOF
16975 rm -f conftest.$ac_objext conftest$ac_exeext
16976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16977   (eval $ac_link) 2>&5
16978   ac_status=$?
16979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); } &&
16981          { ac_try='test -s conftest$ac_exeext'
16982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983   (eval $ac_try) 2>&5
16984   ac_status=$?
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); }; }; then
16987   ac_cv_func_shl_load=yes
16988 else
16989   echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992 ac_cv_func_shl_load=no
16993 fi
16994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16995 fi
16996 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16997 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16998 if test $ac_cv_func_shl_load = yes; then
16999   lt_cv_dlopen="shl_load"
17000 else
17001   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17002 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17003 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17004   echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006   ac_check_lib_save_LIBS=$LIBS
17007 LIBS="-ldld  $LIBS"
17008 cat >conftest.$ac_ext <<_ACEOF
17009 #line $LINENO "configure"
17010 /* confdefs.h.  */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h.  */
17015
17016 /* Override any gcc2 internal prototype to avoid an error.  */
17017 #ifdef __cplusplus
17018 extern "C"
17019 #endif
17020 /* We use char because int might match the return type of a gcc2
17021    builtin and then its argument prototype would still apply.  */
17022 char shl_load ();
17023 int
17024 main ()
17025 {
17026 shl_load ();
17027   ;
17028   return 0;
17029 }
17030 _ACEOF
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17033   (eval $ac_link) 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); } &&
17037          { ac_try='test -s conftest$ac_exeext'
17038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039   (eval $ac_try) 2>&5
17040   ac_status=$?
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); }; }; then
17043   ac_cv_lib_dld_shl_load=yes
17044 else
17045   echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17047
17048 ac_cv_lib_dld_shl_load=no
17049 fi
17050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17051 LIBS=$ac_check_lib_save_LIBS
17052 fi
17053 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17054 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17055 if test $ac_cv_lib_dld_shl_load = yes; then
17056   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17057 else
17058   echo "$as_me:$LINENO: checking for dlopen" >&5
17059 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17060 if test "${ac_cv_func_dlopen+set}" = set; then
17061   echo $ECHO_N "(cached) $ECHO_C" >&6
17062 else
17063   cat >conftest.$ac_ext <<_ACEOF
17064 #line $LINENO "configure"
17065 /* confdefs.h.  */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h.  */
17070 /* System header to define __stub macros and hopefully few prototypes,
17071     which can conflict with char dlopen (); below.
17072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17073     <limits.h> exists even on freestanding compilers.  */
17074 #ifdef __STDC__
17075 # include <limits.h>
17076 #else
17077 # include <assert.h>
17078 #endif
17079 /* Override any gcc2 internal prototype to avoid an error.  */
17080 #ifdef __cplusplus
17081 extern "C"
17082 {
17083 #endif
17084 /* We use char because int might match the return type of a gcc2
17085    builtin and then its argument prototype would still apply.  */
17086 char dlopen ();
17087 /* The GNU C library defines this for functions which it implements
17088     to always fail with ENOSYS.  Some functions are actually named
17089     something starting with __ and the normal name is an alias.  */
17090 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17091 choke me
17092 #else
17093 char (*f) () = dlopen;
17094 #endif
17095 #ifdef __cplusplus
17096 }
17097 #endif
17098
17099 int
17100 main ()
17101 {
17102 return f != dlopen;
17103   ;
17104   return 0;
17105 }
17106 _ACEOF
17107 rm -f conftest.$ac_objext conftest$ac_exeext
17108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17109   (eval $ac_link) 2>&5
17110   ac_status=$?
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } &&
17113          { ac_try='test -s conftest$ac_exeext'
17114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115   (eval $ac_try) 2>&5
17116   ac_status=$?
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); }; }; then
17119   ac_cv_func_dlopen=yes
17120 else
17121   echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17123
17124 ac_cv_func_dlopen=no
17125 fi
17126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17127 fi
17128 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17129 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17130 if test $ac_cv_func_dlopen = yes; then
17131   lt_cv_dlopen="dlopen"
17132 else
17133   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17134 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17135 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17136   echo $ECHO_N "(cached) $ECHO_C" >&6
17137 else
17138   ac_check_lib_save_LIBS=$LIBS
17139 LIBS="-ldl  $LIBS"
17140 cat >conftest.$ac_ext <<_ACEOF
17141 #line $LINENO "configure"
17142 /* confdefs.h.  */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h.  */
17147
17148 /* Override any gcc2 internal prototype to avoid an error.  */
17149 #ifdef __cplusplus
17150 extern "C"
17151 #endif
17152 /* We use char because int might match the return type of a gcc2
17153    builtin and then its argument prototype would still apply.  */
17154 char dlopen ();
17155 int
17156 main ()
17157 {
17158 dlopen ();
17159   ;
17160   return 0;
17161 }
17162 _ACEOF
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17165   (eval $ac_link) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); } &&
17169          { ac_try='test -s conftest$ac_exeext'
17170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171   (eval $ac_try) 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; }; then
17175   ac_cv_lib_dl_dlopen=yes
17176 else
17177   echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180 ac_cv_lib_dl_dlopen=no
17181 fi
17182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17183 LIBS=$ac_check_lib_save_LIBS
17184 fi
17185 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17186 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17187 if test $ac_cv_lib_dl_dlopen = yes; then
17188   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17189 else
17190   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17191 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17192 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17193   echo $ECHO_N "(cached) $ECHO_C" >&6
17194 else
17195   ac_check_lib_save_LIBS=$LIBS
17196 LIBS="-lsvld  $LIBS"
17197 cat >conftest.$ac_ext <<_ACEOF
17198 #line $LINENO "configure"
17199 /* confdefs.h.  */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h.  */
17204
17205 /* Override any gcc2 internal prototype to avoid an error.  */
17206 #ifdef __cplusplus
17207 extern "C"
17208 #endif
17209 /* We use char because int might match the return type of a gcc2
17210    builtin and then its argument prototype would still apply.  */
17211 char dlopen ();
17212 int
17213 main ()
17214 {
17215 dlopen ();
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222   (eval $ac_link) 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); } &&
17226          { ac_try='test -s conftest$ac_exeext'
17227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228   (eval $ac_try) 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }; }; then
17232   ac_cv_lib_svld_dlopen=yes
17233 else
17234   echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17236
17237 ac_cv_lib_svld_dlopen=no
17238 fi
17239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17240 LIBS=$ac_check_lib_save_LIBS
17241 fi
17242 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17243 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17244 if test $ac_cv_lib_svld_dlopen = yes; then
17245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17246 else
17247   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17248 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17249 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17250   echo $ECHO_N "(cached) $ECHO_C" >&6
17251 else
17252   ac_check_lib_save_LIBS=$LIBS
17253 LIBS="-ldld  $LIBS"
17254 cat >conftest.$ac_ext <<_ACEOF
17255 #line $LINENO "configure"
17256 /* confdefs.h.  */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h.  */
17261
17262 /* Override any gcc2 internal prototype to avoid an error.  */
17263 #ifdef __cplusplus
17264 extern "C"
17265 #endif
17266 /* We use char because int might match the return type of a gcc2
17267    builtin and then its argument prototype would still apply.  */
17268 char dld_link ();
17269 int
17270 main ()
17271 {
17272 dld_link ();
17273   ;
17274   return 0;
17275 }
17276 _ACEOF
17277 rm -f conftest.$ac_objext conftest$ac_exeext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279   (eval $ac_link) 2>&5
17280   ac_status=$?
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); } &&
17283          { ac_try='test -s conftest$ac_exeext'
17284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285   (eval $ac_try) 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; }; then
17289   ac_cv_lib_dld_dld_link=yes
17290 else
17291   echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294 ac_cv_lib_dld_dld_link=no
17295 fi
17296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17297 LIBS=$ac_check_lib_save_LIBS
17298 fi
17299 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17300 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17301 if test $ac_cv_lib_dld_dld_link = yes; then
17302   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17303 fi
17304
17305
17306 fi
17307
17308
17309 fi
17310
17311
17312 fi
17313
17314
17315 fi
17316
17317
17318 fi
17319
17320     ;;
17321   esac
17322
17323   if test "x$lt_cv_dlopen" != xno; then
17324     enable_dlopen=yes
17325   else
17326     enable_dlopen=no
17327   fi
17328
17329   case $lt_cv_dlopen in
17330   dlopen)
17331     save_CPPFLAGS="$CPPFLAGS"
17332     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17333
17334     save_LDFLAGS="$LDFLAGS"
17335     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17336
17337     save_LIBS="$LIBS"
17338     LIBS="$lt_cv_dlopen_libs $LIBS"
17339
17340     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17341 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17342 if test "${lt_cv_dlopen_self+set}" = set; then
17343   echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345           if test "$cross_compiling" = yes; then :
17346   lt_cv_dlopen_self=cross
17347 else
17348   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17349   lt_status=$lt_dlunknown
17350   cat > conftest.$ac_ext <<EOF
17351 #line 17351 "configure"
17352 #include "confdefs.h"
17353
17354 #if HAVE_DLFCN_H
17355 #include <dlfcn.h>
17356 #endif
17357
17358 #include <stdio.h>
17359
17360 #ifdef RTLD_GLOBAL
17361 #  define LT_DLGLOBAL           RTLD_GLOBAL
17362 #else
17363 #  ifdef DL_GLOBAL
17364 #    define LT_DLGLOBAL         DL_GLOBAL
17365 #  else
17366 #    define LT_DLGLOBAL         0
17367 #  endif
17368 #endif
17369
17370 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17371    find out it does not work in some platform. */
17372 #ifndef LT_DLLAZY_OR_NOW
17373 #  ifdef RTLD_LAZY
17374 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17375 #  else
17376 #    ifdef DL_LAZY
17377 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17378 #    else
17379 #      ifdef RTLD_NOW
17380 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17381 #      else
17382 #        ifdef DL_NOW
17383 #          define LT_DLLAZY_OR_NOW      DL_NOW
17384 #        else
17385 #          define LT_DLLAZY_OR_NOW      0
17386 #        endif
17387 #      endif
17388 #    endif
17389 #  endif
17390 #endif
17391
17392 #ifdef __cplusplus
17393 extern "C" void exit (int);
17394 #endif
17395
17396 void fnord() { int i=42;}
17397 int main ()
17398 {
17399   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17400   int status = $lt_dlunknown;
17401
17402   if (self)
17403     {
17404       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17405       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17406       /* dlclose (self); */
17407     }
17408
17409     exit (status);
17410 }
17411 EOF
17412   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17413   (eval $ac_link) 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17417     (./conftest; exit; ) 2>/dev/null
17418     lt_status=$?
17419     case x$lt_status in
17420       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17421       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17422       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17423     esac
17424   else :
17425     # compilation failed
17426     lt_cv_dlopen_self=no
17427   fi
17428 fi
17429 rm -fr conftest*
17430
17431
17432 fi
17433 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17434 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17435
17436     if test "x$lt_cv_dlopen_self" = xyes; then
17437       LDFLAGS="$LDFLAGS $link_static_flag"
17438       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17439 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17440 if test "${lt_cv_dlopen_self_static+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443           if test "$cross_compiling" = yes; then :
17444   lt_cv_dlopen_self_static=cross
17445 else
17446   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17447   lt_status=$lt_dlunknown
17448   cat > conftest.$ac_ext <<EOF
17449 #line 17449 "configure"
17450 #include "confdefs.h"
17451
17452 #if HAVE_DLFCN_H
17453 #include <dlfcn.h>
17454 #endif
17455
17456 #include <stdio.h>
17457
17458 #ifdef RTLD_GLOBAL
17459 #  define LT_DLGLOBAL           RTLD_GLOBAL
17460 #else
17461 #  ifdef DL_GLOBAL
17462 #    define LT_DLGLOBAL         DL_GLOBAL
17463 #  else
17464 #    define LT_DLGLOBAL         0
17465 #  endif
17466 #endif
17467
17468 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17469    find out it does not work in some platform. */
17470 #ifndef LT_DLLAZY_OR_NOW
17471 #  ifdef RTLD_LAZY
17472 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17473 #  else
17474 #    ifdef DL_LAZY
17475 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17476 #    else
17477 #      ifdef RTLD_NOW
17478 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17479 #      else
17480 #        ifdef DL_NOW
17481 #          define LT_DLLAZY_OR_NOW      DL_NOW
17482 #        else
17483 #          define LT_DLLAZY_OR_NOW      0
17484 #        endif
17485 #      endif
17486 #    endif
17487 #  endif
17488 #endif
17489
17490 #ifdef __cplusplus
17491 extern "C" void exit (int);
17492 #endif
17493
17494 void fnord() { int i=42;}
17495 int main ()
17496 {
17497   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17498   int status = $lt_dlunknown;
17499
17500   if (self)
17501     {
17502       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17503       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17504       /* dlclose (self); */
17505     }
17506
17507     exit (status);
17508 }
17509 EOF
17510   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17511   (eval $ac_link) 2>&5
17512   ac_status=$?
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17515     (./conftest; exit; ) 2>/dev/null
17516     lt_status=$?
17517     case x$lt_status in
17518       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17519       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17520       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17521     esac
17522   else :
17523     # compilation failed
17524     lt_cv_dlopen_self_static=no
17525   fi
17526 fi
17527 rm -fr conftest*
17528
17529
17530 fi
17531 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17532 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17533     fi
17534
17535     CPPFLAGS="$save_CPPFLAGS"
17536     LDFLAGS="$save_LDFLAGS"
17537     LIBS="$save_LIBS"
17538     ;;
17539   esac
17540
17541   case $lt_cv_dlopen_self in
17542   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17543   *) enable_dlopen_self=unknown ;;
17544   esac
17545
17546   case $lt_cv_dlopen_self_static in
17547   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17548   *) enable_dlopen_self_static=unknown ;;
17549   esac
17550 fi
17551
17552
17553 # The else clause should only fire when bootstrapping the
17554 # libtool distribution, otherwise you forgot to ship ltmain.sh
17555 # with your package, and you will get complaints that there are
17556 # no rules to generate ltmain.sh.
17557 if test -f "$ltmain"; then
17558   # See if we are running on zsh, and set the options which allow our commands through
17559   # without removal of \ escapes.
17560   if test -n "${ZSH_VERSION+set}" ; then
17561     setopt NO_GLOB_SUBST
17562   fi
17563   # Now quote all the things that may contain metacharacters while being
17564   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17565   # variables and quote the copies for generation of the libtool script.
17566   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17567     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17568     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17569     deplibs_check_method reload_flag reload_cmds need_locks \
17570     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17571     lt_cv_sys_global_symbol_to_c_name_address \
17572     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17573     old_postinstall_cmds old_postuninstall_cmds \
17574     compiler_GCJ \
17575     CC_GCJ \
17576     LD_GCJ \
17577     lt_prog_compiler_wl_GCJ \
17578     lt_prog_compiler_pic_GCJ \
17579     lt_prog_compiler_static_GCJ \
17580     lt_prog_compiler_no_builtin_flag_GCJ \
17581     export_dynamic_flag_spec_GCJ \
17582     thread_safe_flag_spec_GCJ \
17583     whole_archive_flag_spec_GCJ \
17584     enable_shared_with_static_runtimes_GCJ \
17585     old_archive_cmds_GCJ \
17586     old_archive_from_new_cmds_GCJ \
17587     predep_objects_GCJ \
17588     postdep_objects_GCJ \
17589     predeps_GCJ \
17590     postdeps_GCJ \
17591     compiler_lib_search_path_GCJ \
17592     archive_cmds_GCJ \
17593     archive_expsym_cmds_GCJ \
17594     postinstall_cmds_GCJ \
17595     postuninstall_cmds_GCJ \
17596     old_archive_from_expsyms_cmds_GCJ \
17597     allow_undefined_flag_GCJ \
17598     no_undefined_flag_GCJ \
17599     export_symbols_cmds_GCJ \
17600     hardcode_libdir_flag_spec_GCJ \
17601     hardcode_libdir_flag_spec_ld_GCJ \
17602     hardcode_libdir_separator_GCJ \
17603     hardcode_automatic_GCJ \
17604     module_cmds_GCJ \
17605     module_expsym_cmds_GCJ \
17606     lt_cv_prog_compiler_c_o_GCJ \
17607     exclude_expsyms_GCJ \
17608     include_expsyms_GCJ; do
17609
17610     case $var in
17611     old_archive_cmds_GCJ | \
17612     old_archive_from_new_cmds_GCJ | \
17613     archive_cmds_GCJ | \
17614     archive_expsym_cmds_GCJ | \
17615     module_cmds_GCJ | \
17616     module_expsym_cmds_GCJ | \
17617     old_archive_from_expsyms_cmds_GCJ | \
17618     export_symbols_cmds_GCJ | \
17619     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17620     postinstall_cmds | postuninstall_cmds | \
17621     old_postinstall_cmds | old_postuninstall_cmds | \
17622     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17623       # Double-quote double-evaled strings.
17624       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17625       ;;
17626     *)
17627       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17628       ;;
17629     esac
17630   done
17631
17632   case $lt_echo in
17633   *'\$0 --fallback-echo"')
17634     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17635     ;;
17636   esac
17637
17638 cfgfile="$ofile"
17639
17640   cat <<__EOF__ >> "$cfgfile"
17641 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17642
17643 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17644
17645 # Shell to use when invoking shell scripts.
17646 SHELL=$lt_SHELL
17647
17648 # Whether or not to build shared libraries.
17649 build_libtool_libs=$enable_shared
17650
17651 # Whether or not to build static libraries.
17652 build_old_libs=$enable_static
17653
17654 # Whether or not to add -lc for building shared libraries.
17655 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17656
17657 # Whether or not to disallow shared libs when runtime libs are static
17658 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17659
17660 # Whether or not to optimize for fast installation.
17661 fast_install=$enable_fast_install
17662
17663 # The host system.
17664 host_alias=$host_alias
17665 host=$host
17666
17667 # An echo program that does not interpret backslashes.
17668 echo=$lt_echo
17669
17670 # The archiver.
17671 AR=$lt_AR
17672 AR_FLAGS=$lt_AR_FLAGS
17673
17674 # A C compiler.
17675 LTCC=$lt_LTCC
17676
17677 # A language-specific compiler.
17678 CC=$lt_compiler_GCJ
17679
17680 # Is the compiler the GNU C compiler?
17681 with_gcc=$GCC_GCJ
17682
17683 # An ERE matcher.
17684 EGREP=$lt_EGREP
17685
17686 # The linker used to build libraries.
17687 LD=$lt_LD_GCJ
17688
17689 # Whether we need hard or soft links.
17690 LN_S=$lt_LN_S
17691
17692 # A BSD-compatible nm program.
17693 NM=$lt_NM
17694
17695 # A symbol stripping program
17696 STRIP=$STRIP
17697
17698 # Used to examine libraries when file_magic_cmd begins "file"
17699 MAGIC_CMD=$MAGIC_CMD
17700
17701 # Used on cygwin: DLL creation program.
17702 DLLTOOL="$DLLTOOL"
17703
17704 # Used on cygwin: object dumper.
17705 OBJDUMP="$OBJDUMP"
17706
17707 # Used on cygwin: assembler.
17708 AS="$AS"
17709
17710 # The name of the directory that contains temporary libtool files.
17711 objdir=$objdir
17712
17713 # How to create reloadable object files.
17714 reload_flag=$lt_reload_flag
17715 reload_cmds=$lt_reload_cmds
17716
17717 # How to pass a linker flag through the compiler.
17718 wl=$lt_lt_prog_compiler_wl_GCJ
17719
17720 # Object file suffix (normally "o").
17721 objext="$ac_objext"
17722
17723 # Old archive suffix (normally "a").
17724 libext="$libext"
17725
17726 # Shared library suffix (normally ".so").
17727 shrext='$shrext'
17728
17729 # Executable file suffix (normally "").
17730 exeext="$exeext"
17731
17732 # Additional compiler flags for building library objects.
17733 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17734 pic_mode=$pic_mode
17735
17736 # What is the maximum length of a command?
17737 max_cmd_len=$lt_cv_sys_max_cmd_len
17738
17739 # Does compiler simultaneously support -c and -o options?
17740 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17741
17742 # Must we lock files when doing compilation ?
17743 need_locks=$lt_need_locks
17744
17745 # Do we need the lib prefix for modules?
17746 need_lib_prefix=$need_lib_prefix
17747
17748 # Do we need a version for libraries?
17749 need_version=$need_version
17750
17751 # Whether dlopen is supported.
17752 dlopen_support=$enable_dlopen
17753
17754 # Whether dlopen of programs is supported.
17755 dlopen_self=$enable_dlopen_self
17756
17757 # Whether dlopen of statically linked programs is supported.
17758 dlopen_self_static=$enable_dlopen_self_static
17759
17760 # Compiler flag to prevent dynamic linking.
17761 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17762
17763 # Compiler flag to turn off builtin functions.
17764 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17765
17766 # Compiler flag to allow reflexive dlopens.
17767 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17768
17769 # Compiler flag to generate shared objects directly from archives.
17770 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17771
17772 # Compiler flag to generate thread-safe objects.
17773 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17774
17775 # Library versioning type.
17776 version_type=$version_type
17777
17778 # Format of library name prefix.
17779 libname_spec=$lt_libname_spec
17780
17781 # List of archive names.  First name is the real one, the rest are links.
17782 # The last name is the one that the linker finds with -lNAME.
17783 library_names_spec=$lt_library_names_spec
17784
17785 # The coded name of the library, if different from the real name.
17786 soname_spec=$lt_soname_spec
17787
17788 # Commands used to build and install an old-style archive.
17789 RANLIB=$lt_RANLIB
17790 old_archive_cmds=$lt_old_archive_cmds_GCJ
17791 old_postinstall_cmds=$lt_old_postinstall_cmds
17792 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17793
17794 # Create an old-style archive from a shared archive.
17795 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17796
17797 # Create a temporary old-style archive to link instead of a shared archive.
17798 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17799
17800 # Commands used to build and install a shared archive.
17801 archive_cmds=$lt_archive_cmds_GCJ
17802 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17803 postinstall_cmds=$lt_postinstall_cmds
17804 postuninstall_cmds=$lt_postuninstall_cmds
17805
17806 # Commands used to build a loadable module (assumed same as above if empty)
17807 module_cmds=$lt_module_cmds_GCJ
17808 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17809
17810 # Commands to strip libraries.
17811 old_striplib=$lt_old_striplib
17812 striplib=$lt_striplib
17813
17814 # Dependencies to place before the objects being linked to create a
17815 # shared library.
17816 predep_objects=$lt_predep_objects_GCJ
17817
17818 # Dependencies to place after the objects being linked to create a
17819 # shared library.
17820 postdep_objects=$lt_postdep_objects_GCJ
17821
17822 # Dependencies to place before the objects being linked to create a
17823 # shared library.
17824 predeps=$lt_predeps_GCJ
17825
17826 # Dependencies to place after the objects being linked to create a
17827 # shared library.
17828 postdeps=$lt_postdeps_GCJ
17829
17830 # The library search path used internally by the compiler when linking
17831 # a shared library.
17832 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17833
17834 # Method to check whether dependent libraries are shared objects.
17835 deplibs_check_method=$lt_deplibs_check_method
17836
17837 # Command to use when deplibs_check_method == file_magic.
17838 file_magic_cmd=$lt_file_magic_cmd
17839
17840 # Flag that allows shared libraries with undefined symbols to be built.
17841 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17842
17843 # Flag that forces no undefined symbols.
17844 no_undefined_flag=$lt_no_undefined_flag_GCJ
17845
17846 # Commands used to finish a libtool library installation in a directory.
17847 finish_cmds=$lt_finish_cmds
17848
17849 # Same as above, but a single script fragment to be evaled but not shown.
17850 finish_eval=$lt_finish_eval
17851
17852 # Take the output of nm and produce a listing of raw symbols and C names.
17853 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17854
17855 # Transform the output of nm in a proper C declaration
17856 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17857
17858 # Transform the output of nm in a C name address pair
17859 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17860
17861 # This is the shared library runtime path variable.
17862 runpath_var=$runpath_var
17863
17864 # This is the shared library path variable.
17865 shlibpath_var=$shlibpath_var
17866
17867 # Is shlibpath searched before the hard-coded library search path?
17868 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17869
17870 # How to hardcode a shared library path into an executable.
17871 hardcode_action=$hardcode_action_GCJ
17872
17873 # Whether we should hardcode library paths into libraries.
17874 hardcode_into_libs=$hardcode_into_libs
17875
17876 # Flag to hardcode \$libdir into a binary during linking.
17877 # This must work even if \$libdir does not exist.
17878 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17879
17880 # If ld is used when linking, flag to hardcode \$libdir into
17881 # a binary during linking. This must work even if \$libdir does
17882 # not exist.
17883 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17884
17885 # Whether we need a single -rpath flag with a separated argument.
17886 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17887
17888 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17889 # resulting binary.
17890 hardcode_direct=$hardcode_direct_GCJ
17891
17892 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17893 # resulting binary.
17894 hardcode_minus_L=$hardcode_minus_L_GCJ
17895
17896 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17897 # the resulting binary.
17898 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17899
17900 # Set to yes if building a shared library automatically hardcodes DIR into the library
17901 # and all subsequent libraries and executables linked against it.
17902 hardcode_automatic=$hardcode_automatic_GCJ
17903
17904 # Variables whose values should be saved in libtool wrapper scripts and
17905 # restored at relink time.
17906 variables_saved_for_relink="$variables_saved_for_relink"
17907
17908 # Whether libtool must link a program against all its dependency libraries.
17909 link_all_deplibs=$link_all_deplibs_GCJ
17910
17911 # Compile-time system search path for libraries
17912 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17913
17914 # Run-time system search path for libraries
17915 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17916
17917 # Fix the shell variable \$srcfile for the compiler.
17918 fix_srcfile_path="$fix_srcfile_path_GCJ"
17919
17920 # Set to yes if exported symbols are required.
17921 always_export_symbols=$always_export_symbols_GCJ
17922
17923 # The commands to list exported symbols.
17924 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17925
17926 # The commands to extract the exported symbol list from a shared archive.
17927 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17928
17929 # Symbols that should not be listed in the preloaded symbols.
17930 exclude_expsyms=$lt_exclude_expsyms_GCJ
17931
17932 # Symbols that must always be exported.
17933 include_expsyms=$lt_include_expsyms_GCJ
17934
17935 # ### END LIBTOOL TAG CONFIG: $tagname
17936
17937 __EOF__
17938
17939
17940 else
17941   # If there is no Makefile yet, we rely on a make rule to execute
17942   # `config.status --recheck' to rerun these tests and create the
17943   # libtool script then.
17944   test -f Makefile && make "$ltmain"
17945 fi
17946
17947
17948 ac_ext=c
17949 ac_cpp='$CPP $CPPFLAGS'
17950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17953
17954 CC="$lt_save_CC"
17955
17956         else
17957           tagname=""
17958         fi
17959         ;;
17960
17961       RC)
17962
17963
17964
17965 # Source file extension for RC test sources.
17966 ac_ext=rc
17967
17968 # Object file extension for compiled RC test sources.
17969 objext=o
17970 objext_RC=$objext
17971
17972 # Code to be used in simple compile tests
17973 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17974
17975 # Code to be used in simple link tests
17976 lt_simple_link_test_code="$lt_simple_compile_test_code"
17977
17978 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17979
17980 # If no C compiler was specified, use CC.
17981 LTCC=${LTCC-"$CC"}
17982
17983 # Allow CC to be a program name with arguments.
17984 compiler=$CC
17985
17986
17987 # Allow CC to be a program name with arguments.
17988 lt_save_CC="$CC"
17989 CC=${RC-"windres"}
17990 compiler=$CC
17991 compiler_RC=$CC
17992 lt_cv_prog_compiler_c_o_RC=yes
17993
17994 # The else clause should only fire when bootstrapping the
17995 # libtool distribution, otherwise you forgot to ship ltmain.sh
17996 # with your package, and you will get complaints that there are
17997 # no rules to generate ltmain.sh.
17998 if test -f "$ltmain"; then
17999   # See if we are running on zsh, and set the options which allow our commands through
18000   # without removal of \ escapes.
18001   if test -n "${ZSH_VERSION+set}" ; then
18002     setopt NO_GLOB_SUBST
18003   fi
18004   # Now quote all the things that may contain metacharacters while being
18005   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18006   # variables and quote the copies for generation of the libtool script.
18007   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18008     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18009     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18010     deplibs_check_method reload_flag reload_cmds need_locks \
18011     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18012     lt_cv_sys_global_symbol_to_c_name_address \
18013     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18014     old_postinstall_cmds old_postuninstall_cmds \
18015     compiler_RC \
18016     CC_RC \
18017     LD_RC \
18018     lt_prog_compiler_wl_RC \
18019     lt_prog_compiler_pic_RC \
18020     lt_prog_compiler_static_RC \
18021     lt_prog_compiler_no_builtin_flag_RC \
18022     export_dynamic_flag_spec_RC \
18023     thread_safe_flag_spec_RC \
18024     whole_archive_flag_spec_RC \
18025     enable_shared_with_static_runtimes_RC \
18026     old_archive_cmds_RC \
18027     old_archive_from_new_cmds_RC \
18028     predep_objects_RC \
18029     postdep_objects_RC \
18030     predeps_RC \
18031     postdeps_RC \
18032     compiler_lib_search_path_RC \
18033     archive_cmds_RC \
18034     archive_expsym_cmds_RC \
18035     postinstall_cmds_RC \
18036     postuninstall_cmds_RC \
18037     old_archive_from_expsyms_cmds_RC \
18038     allow_undefined_flag_RC \
18039     no_undefined_flag_RC \
18040     export_symbols_cmds_RC \
18041     hardcode_libdir_flag_spec_RC \
18042     hardcode_libdir_flag_spec_ld_RC \
18043     hardcode_libdir_separator_RC \
18044     hardcode_automatic_RC \
18045     module_cmds_RC \
18046     module_expsym_cmds_RC \
18047     lt_cv_prog_compiler_c_o_RC \
18048     exclude_expsyms_RC \
18049     include_expsyms_RC; do
18050
18051     case $var in
18052     old_archive_cmds_RC | \
18053     old_archive_from_new_cmds_RC | \
18054     archive_cmds_RC | \
18055     archive_expsym_cmds_RC | \
18056     module_cmds_RC | \
18057     module_expsym_cmds_RC | \
18058     old_archive_from_expsyms_cmds_RC | \
18059     export_symbols_cmds_RC | \
18060     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18061     postinstall_cmds | postuninstall_cmds | \
18062     old_postinstall_cmds | old_postuninstall_cmds | \
18063     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18064       # Double-quote double-evaled strings.
18065       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18066       ;;
18067     *)
18068       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18069       ;;
18070     esac
18071   done
18072
18073   case $lt_echo in
18074   *'\$0 --fallback-echo"')
18075     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18076     ;;
18077   esac
18078
18079 cfgfile="$ofile"
18080
18081   cat <<__EOF__ >> "$cfgfile"
18082 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18083
18084 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18085
18086 # Shell to use when invoking shell scripts.
18087 SHELL=$lt_SHELL
18088
18089 # Whether or not to build shared libraries.
18090 build_libtool_libs=$enable_shared
18091
18092 # Whether or not to build static libraries.
18093 build_old_libs=$enable_static
18094
18095 # Whether or not to add -lc for building shared libraries.
18096 build_libtool_need_lc=$archive_cmds_need_lc_RC
18097
18098 # Whether or not to disallow shared libs when runtime libs are static
18099 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18100
18101 # Whether or not to optimize for fast installation.
18102 fast_install=$enable_fast_install
18103
18104 # The host system.
18105 host_alias=$host_alias
18106 host=$host
18107
18108 # An echo program that does not interpret backslashes.
18109 echo=$lt_echo
18110
18111 # The archiver.
18112 AR=$lt_AR
18113 AR_FLAGS=$lt_AR_FLAGS
18114
18115 # A C compiler.
18116 LTCC=$lt_LTCC
18117
18118 # A language-specific compiler.
18119 CC=$lt_compiler_RC
18120
18121 # Is the compiler the GNU C compiler?
18122 with_gcc=$GCC_RC
18123
18124 # An ERE matcher.
18125 EGREP=$lt_EGREP
18126
18127 # The linker used to build libraries.
18128 LD=$lt_LD_RC
18129
18130 # Whether we need hard or soft links.
18131 LN_S=$lt_LN_S
18132
18133 # A BSD-compatible nm program.
18134 NM=$lt_NM
18135
18136 # A symbol stripping program
18137 STRIP=$STRIP
18138
18139 # Used to examine libraries when file_magic_cmd begins "file"
18140 MAGIC_CMD=$MAGIC_CMD
18141
18142 # Used on cygwin: DLL creation program.
18143 DLLTOOL="$DLLTOOL"
18144
18145 # Used on cygwin: object dumper.
18146 OBJDUMP="$OBJDUMP"
18147
18148 # Used on cygwin: assembler.
18149 AS="$AS"
18150
18151 # The name of the directory that contains temporary libtool files.
18152 objdir=$objdir
18153
18154 # How to create reloadable object files.
18155 reload_flag=$lt_reload_flag
18156 reload_cmds=$lt_reload_cmds
18157
18158 # How to pass a linker flag through the compiler.
18159 wl=$lt_lt_prog_compiler_wl_RC
18160
18161 # Object file suffix (normally "o").
18162 objext="$ac_objext"
18163
18164 # Old archive suffix (normally "a").
18165 libext="$libext"
18166
18167 # Shared library suffix (normally ".so").
18168 shrext='$shrext'
18169
18170 # Executable file suffix (normally "").
18171 exeext="$exeext"
18172
18173 # Additional compiler flags for building library objects.
18174 pic_flag=$lt_lt_prog_compiler_pic_RC
18175 pic_mode=$pic_mode
18176
18177 # What is the maximum length of a command?
18178 max_cmd_len=$lt_cv_sys_max_cmd_len
18179
18180 # Does compiler simultaneously support -c and -o options?
18181 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18182
18183 # Must we lock files when doing compilation ?
18184 need_locks=$lt_need_locks
18185
18186 # Do we need the lib prefix for modules?
18187 need_lib_prefix=$need_lib_prefix
18188
18189 # Do we need a version for libraries?
18190 need_version=$need_version
18191
18192 # Whether dlopen is supported.
18193 dlopen_support=$enable_dlopen
18194
18195 # Whether dlopen of programs is supported.
18196 dlopen_self=$enable_dlopen_self
18197
18198 # Whether dlopen of statically linked programs is supported.
18199 dlopen_self_static=$enable_dlopen_self_static
18200
18201 # Compiler flag to prevent dynamic linking.
18202 link_static_flag=$lt_lt_prog_compiler_static_RC
18203
18204 # Compiler flag to turn off builtin functions.
18205 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18206
18207 # Compiler flag to allow reflexive dlopens.
18208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18209
18210 # Compiler flag to generate shared objects directly from archives.
18211 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18212
18213 # Compiler flag to generate thread-safe objects.
18214 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18215
18216 # Library versioning type.
18217 version_type=$version_type
18218
18219 # Format of library name prefix.
18220 libname_spec=$lt_libname_spec
18221
18222 # List of archive names.  First name is the real one, the rest are links.
18223 # The last name is the one that the linker finds with -lNAME.
18224 library_names_spec=$lt_library_names_spec
18225
18226 # The coded name of the library, if different from the real name.
18227 soname_spec=$lt_soname_spec
18228
18229 # Commands used to build and install an old-style archive.
18230 RANLIB=$lt_RANLIB
18231 old_archive_cmds=$lt_old_archive_cmds_RC
18232 old_postinstall_cmds=$lt_old_postinstall_cmds
18233 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18234
18235 # Create an old-style archive from a shared archive.
18236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18237
18238 # Create a temporary old-style archive to link instead of a shared archive.
18239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18240
18241 # Commands used to build and install a shared archive.
18242 archive_cmds=$lt_archive_cmds_RC
18243 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18244 postinstall_cmds=$lt_postinstall_cmds
18245 postuninstall_cmds=$lt_postuninstall_cmds
18246
18247 # Commands used to build a loadable module (assumed same as above if empty)
18248 module_cmds=$lt_module_cmds_RC
18249 module_expsym_cmds=$lt_module_expsym_cmds_RC
18250
18251 # Commands to strip libraries.
18252 old_striplib=$lt_old_striplib
18253 striplib=$lt_striplib
18254
18255 # Dependencies to place before the objects being linked to create a
18256 # shared library.
18257 predep_objects=$lt_predep_objects_RC
18258
18259 # Dependencies to place after the objects being linked to create a
18260 # shared library.
18261 postdep_objects=$lt_postdep_objects_RC
18262
18263 # Dependencies to place before the objects being linked to create a
18264 # shared library.
18265 predeps=$lt_predeps_RC
18266
18267 # Dependencies to place after the objects being linked to create a
18268 # shared library.
18269 postdeps=$lt_postdeps_RC
18270
18271 # The library search path used internally by the compiler when linking
18272 # a shared library.
18273 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18274
18275 # Method to check whether dependent libraries are shared objects.
18276 deplibs_check_method=$lt_deplibs_check_method
18277
18278 # Command to use when deplibs_check_method == file_magic.
18279 file_magic_cmd=$lt_file_magic_cmd
18280
18281 # Flag that allows shared libraries with undefined symbols to be built.
18282 allow_undefined_flag=$lt_allow_undefined_flag_RC
18283
18284 # Flag that forces no undefined symbols.
18285 no_undefined_flag=$lt_no_undefined_flag_RC
18286
18287 # Commands used to finish a libtool library installation in a directory.
18288 finish_cmds=$lt_finish_cmds
18289
18290 # Same as above, but a single script fragment to be evaled but not shown.
18291 finish_eval=$lt_finish_eval
18292
18293 # Take the output of nm and produce a listing of raw symbols and C names.
18294 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18295
18296 # Transform the output of nm in a proper C declaration
18297 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18298
18299 # Transform the output of nm in a C name address pair
18300 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18301
18302 # This is the shared library runtime path variable.
18303 runpath_var=$runpath_var
18304
18305 # This is the shared library path variable.
18306 shlibpath_var=$shlibpath_var
18307
18308 # Is shlibpath searched before the hard-coded library search path?
18309 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18310
18311 # How to hardcode a shared library path into an executable.
18312 hardcode_action=$hardcode_action_RC
18313
18314 # Whether we should hardcode library paths into libraries.
18315 hardcode_into_libs=$hardcode_into_libs
18316
18317 # Flag to hardcode \$libdir into a binary during linking.
18318 # This must work even if \$libdir does not exist.
18319 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18320
18321 # If ld is used when linking, flag to hardcode \$libdir into
18322 # a binary during linking. This must work even if \$libdir does
18323 # not exist.
18324 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18325
18326 # Whether we need a single -rpath flag with a separated argument.
18327 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18328
18329 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18330 # resulting binary.
18331 hardcode_direct=$hardcode_direct_RC
18332
18333 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18334 # resulting binary.
18335 hardcode_minus_L=$hardcode_minus_L_RC
18336
18337 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18338 # the resulting binary.
18339 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18340
18341 # Set to yes if building a shared library automatically hardcodes DIR into the library
18342 # and all subsequent libraries and executables linked against it.
18343 hardcode_automatic=$hardcode_automatic_RC
18344
18345 # Variables whose values should be saved in libtool wrapper scripts and
18346 # restored at relink time.
18347 variables_saved_for_relink="$variables_saved_for_relink"
18348
18349 # Whether libtool must link a program against all its dependency libraries.
18350 link_all_deplibs=$link_all_deplibs_RC
18351
18352 # Compile-time system search path for libraries
18353 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18354
18355 # Run-time system search path for libraries
18356 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18357
18358 # Fix the shell variable \$srcfile for the compiler.
18359 fix_srcfile_path="$fix_srcfile_path_RC"
18360
18361 # Set to yes if exported symbols are required.
18362 always_export_symbols=$always_export_symbols_RC
18363
18364 # The commands to list exported symbols.
18365 export_symbols_cmds=$lt_export_symbols_cmds_RC
18366
18367 # The commands to extract the exported symbol list from a shared archive.
18368 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18369
18370 # Symbols that should not be listed in the preloaded symbols.
18371 exclude_expsyms=$lt_exclude_expsyms_RC
18372
18373 # Symbols that must always be exported.
18374 include_expsyms=$lt_include_expsyms_RC
18375
18376 # ### END LIBTOOL TAG CONFIG: $tagname
18377
18378 __EOF__
18379
18380
18381 else
18382   # If there is no Makefile yet, we rely on a make rule to execute
18383   # `config.status --recheck' to rerun these tests and create the
18384   # libtool script then.
18385   test -f Makefile && make "$ltmain"
18386 fi
18387
18388
18389 ac_ext=c
18390 ac_cpp='$CPP $CPPFLAGS'
18391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18394
18395 CC="$lt_save_CC"
18396
18397         ;;
18398
18399       *)
18400         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18401 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18402    { (exit 1); exit 1; }; }
18403         ;;
18404       esac
18405
18406       # Append the new tag name to the list of available tags.
18407       if test -n "$tagname" ; then
18408       available_tags="$available_tags $tagname"
18409     fi
18410     fi
18411   done
18412   IFS="$lt_save_ifs"
18413
18414   # Now substitute the updated list of available tags.
18415   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18416     mv "${ofile}T" "$ofile"
18417     chmod +x "$ofile"
18418   else
18419     rm -f "${ofile}T"
18420     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18421 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18422    { (exit 1); exit 1; }; }
18423   fi
18424 fi
18425
18426
18427
18428 # This can be used to rebuild libtool when needed
18429 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18430
18431 # Always use our own libtool.
18432 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18433
18434 # Prevent multiple expansion
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456 # Extract the first word of "pwd", so it can be a program name with args.
18457 set dummy pwd; ac_word=$2
18458 echo "$as_me:$LINENO: checking for $ac_word" >&5
18459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18460 if test "${ac_cv_path_RPWD+set}" = set; then
18461   echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18463   case $RPWD in
18464   [\\/]* | ?:[\\/]*)
18465   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18466   ;;
18467   *)
18468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18469 for as_dir in $PATH
18470 do
18471   IFS=$as_save_IFS
18472   test -z "$as_dir" && as_dir=.
18473   for ac_exec_ext in '' $ac_executable_extensions; do
18474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18475     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18477     break 2
18478   fi
18479 done
18480 done
18481
18482   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18483   ;;
18484 esac
18485 fi
18486 RPWD=$ac_cv_path_RPWD
18487
18488 if test -n "$RPWD"; then
18489   echo "$as_me:$LINENO: result: $RPWD" >&5
18490 echo "${ECHO_T}$RPWD" >&6
18491 else
18492   echo "$as_me:$LINENO: result: no" >&5
18493 echo "${ECHO_T}no" >&6
18494 fi
18495
18496 if test ${RPWD} = "false"
18497 then
18498         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18499 echo "$as_me: error: pwd required but not found" >&2;}
18500    { (exit 1); exit 1; }; }
18501 fi
18502
18503 # Extract the first word of "ar", so it can be a program name with args.
18504 set dummy ar; ac_word=$2
18505 echo "$as_me:$LINENO: checking for $ac_word" >&5
18506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18507 if test "${ac_cv_path_AR+set}" = set; then
18508   echo $ECHO_N "(cached) $ECHO_C" >&6
18509 else
18510   case $AR in
18511   [\\/]* | ?:[\\/]*)
18512   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18513   ;;
18514   *)
18515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18516 for as_dir in $PATH
18517 do
18518   IFS=$as_save_IFS
18519   test -z "$as_dir" && as_dir=.
18520   for ac_exec_ext in '' $ac_executable_extensions; do
18521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18522     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18524     break 2
18525   fi
18526 done
18527 done
18528
18529   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18530   ;;
18531 esac
18532 fi
18533 AR=$ac_cv_path_AR
18534
18535 if test -n "$AR"; then
18536   echo "$as_me:$LINENO: result: $AR" >&5
18537 echo "${ECHO_T}$AR" >&6
18538 else
18539   echo "$as_me:$LINENO: result: no" >&5
18540 echo "${ECHO_T}no" >&6
18541 fi
18542
18543 if test ${AR} = "false"
18544 then
18545         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18546 echo "$as_me: error: ar required but not found" >&2;}
18547    { (exit 1); exit 1; }; }
18548 fi
18549
18550 # Extract the first word of "sed", so it can be a program name with args.
18551 set dummy sed; ac_word=$2
18552 echo "$as_me:$LINENO: checking for $ac_word" >&5
18553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18554 if test "${ac_cv_path_SED+set}" = set; then
18555   echo $ECHO_N "(cached) $ECHO_C" >&6
18556 else
18557   case $SED in
18558   [\\/]* | ?:[\\/]*)
18559   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18560   ;;
18561   *)
18562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18563 for as_dir in $PATH
18564 do
18565   IFS=$as_save_IFS
18566   test -z "$as_dir" && as_dir=.
18567   for ac_exec_ext in '' $ac_executable_extensions; do
18568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18569     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18571     break 2
18572   fi
18573 done
18574 done
18575
18576   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18577   ;;
18578 esac
18579 fi
18580 SED=$ac_cv_path_SED
18581
18582 if test -n "$SED"; then
18583   echo "$as_me:$LINENO: result: $SED" >&5
18584 echo "${ECHO_T}$SED" >&6
18585 else
18586   echo "$as_me:$LINENO: result: no" >&5
18587 echo "${ECHO_T}no" >&6
18588 fi
18589
18590 if test ${SED} = "false"
18591 then
18592         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18593 echo "$as_me: error: sed required but not found" >&2;}
18594    { (exit 1); exit 1; }; }
18595 fi
18596
18597 # Extract the first word of "rm", so it can be a program name with args.
18598 set dummy rm; ac_word=$2
18599 echo "$as_me:$LINENO: checking for $ac_word" >&5
18600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18601 if test "${ac_cv_path_RM+set}" = set; then
18602   echo $ECHO_N "(cached) $ECHO_C" >&6
18603 else
18604   case $RM in
18605   [\\/]* | ?:[\\/]*)
18606   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18607   ;;
18608   *)
18609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610 for as_dir in $PATH
18611 do
18612   IFS=$as_save_IFS
18613   test -z "$as_dir" && as_dir=.
18614   for ac_exec_ext in '' $ac_executable_extensions; do
18615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18616     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18618     break 2
18619   fi
18620 done
18621 done
18622
18623   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18624   ;;
18625 esac
18626 fi
18627 RM=$ac_cv_path_RM
18628
18629 if test -n "$RM"; then
18630   echo "$as_me:$LINENO: result: $RM" >&5
18631 echo "${ECHO_T}$RM" >&6
18632 else
18633   echo "$as_me:$LINENO: result: no" >&5
18634 echo "${ECHO_T}no" >&6
18635 fi
18636
18637 if test ${RM} = "false"
18638 then
18639         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18640 echo "$as_me: error: rm required but not found" >&2;}
18641    { (exit 1); exit 1; }; }
18642 fi
18643
18644 # Extract the first word of "echo", so it can be a program name with args.
18645 set dummy echo; ac_word=$2
18646 echo "$as_me:$LINENO: checking for $ac_word" >&5
18647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18648 if test "${ac_cv_path_ECHO+set}" = set; then
18649   echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651   case $ECHO in
18652   [\\/]* | ?:[\\/]*)
18653   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18654   ;;
18655   *)
18656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18657 for as_dir in $PATH
18658 do
18659   IFS=$as_save_IFS
18660   test -z "$as_dir" && as_dir=.
18661   for ac_exec_ext in '' $ac_executable_extensions; do
18662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18663     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18665     break 2
18666   fi
18667 done
18668 done
18669
18670   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18671   ;;
18672 esac
18673 fi
18674 ECHO=$ac_cv_path_ECHO
18675
18676 if test -n "$ECHO"; then
18677   echo "$as_me:$LINENO: result: $ECHO" >&5
18678 echo "${ECHO_T}$ECHO" >&6
18679 else
18680   echo "$as_me:$LINENO: result: no" >&5
18681 echo "${ECHO_T}no" >&6
18682 fi
18683
18684 if test ${ECHO} = "false"
18685 then
18686         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18687 echo "$as_me: error: echo required but not found" >&2;}
18688    { (exit 1); exit 1; }; }
18689 fi
18690
18691 # Extract the first word of "mkdir", so it can be a program name with args.
18692 set dummy mkdir; ac_word=$2
18693 echo "$as_me:$LINENO: checking for $ac_word" >&5
18694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18695 if test "${ac_cv_path_MKDIR+set}" = set; then
18696   echo $ECHO_N "(cached) $ECHO_C" >&6
18697 else
18698   case $MKDIR in
18699   [\\/]* | ?:[\\/]*)
18700   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18701   ;;
18702   *)
18703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18704 for as_dir in $PATH
18705 do
18706   IFS=$as_save_IFS
18707   test -z "$as_dir" && as_dir=.
18708   for ac_exec_ext in '' $ac_executable_extensions; do
18709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18710     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18712     break 2
18713   fi
18714 done
18715 done
18716
18717   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18718   ;;
18719 esac
18720 fi
18721 MKDIR=$ac_cv_path_MKDIR
18722
18723 if test -n "$MKDIR"; then
18724   echo "$as_me:$LINENO: result: $MKDIR" >&5
18725 echo "${ECHO_T}$MKDIR" >&6
18726 else
18727   echo "$as_me:$LINENO: result: no" >&5
18728 echo "${ECHO_T}no" >&6
18729 fi
18730
18731 if test ${MKDIR} = "false"
18732 then
18733         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18734 echo "$as_me: error: mkdir required but not found" >&2;}
18735    { (exit 1); exit 1; }; }
18736 fi
18737
18738 # Extract the first word of "date", so it can be a program name with args.
18739 set dummy date; ac_word=$2
18740 echo "$as_me:$LINENO: checking for $ac_word" >&5
18741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18742 if test "${ac_cv_path_DATE+set}" = set; then
18743   echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18745   case $DATE in
18746   [\\/]* | ?:[\\/]*)
18747   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18748   ;;
18749   *)
18750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18751 for as_dir in $PATH
18752 do
18753   IFS=$as_save_IFS
18754   test -z "$as_dir" && as_dir=.
18755   for ac_exec_ext in '' $ac_executable_extensions; do
18756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18757     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18759     break 2
18760   fi
18761 done
18762 done
18763
18764   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18765   ;;
18766 esac
18767 fi
18768 DATE=$ac_cv_path_DATE
18769
18770 if test -n "$DATE"; then
18771   echo "$as_me:$LINENO: result: $DATE" >&5
18772 echo "${ECHO_T}$DATE" >&6
18773 else
18774   echo "$as_me:$LINENO: result: no" >&5
18775 echo "${ECHO_T}no" >&6
18776 fi
18777
18778 if test ${DATE} = "false"
18779 then
18780         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18781 echo "$as_me: error: date required but not found" >&2;}
18782    { (exit 1); exit 1; }; }
18783 fi
18784
18785 # Extract the first word of "mv", so it can be a program name with args.
18786 set dummy mv; ac_word=$2
18787 echo "$as_me:$LINENO: checking for $ac_word" >&5
18788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18789 if test "${ac_cv_path_MV+set}" = set; then
18790   echo $ECHO_N "(cached) $ECHO_C" >&6
18791 else
18792   case $MV in
18793   [\\/]* | ?:[\\/]*)
18794   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18795   ;;
18796   *)
18797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18798 for as_dir in $PATH
18799 do
18800   IFS=$as_save_IFS
18801   test -z "$as_dir" && as_dir=.
18802   for ac_exec_ext in '' $ac_executable_extensions; do
18803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18804     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18806     break 2
18807   fi
18808 done
18809 done
18810
18811   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18812   ;;
18813 esac
18814 fi
18815 MV=$ac_cv_path_MV
18816
18817 if test -n "$MV"; then
18818   echo "$as_me:$LINENO: result: $MV" >&5
18819 echo "${ECHO_T}$MV" >&6
18820 else
18821   echo "$as_me:$LINENO: result: no" >&5
18822 echo "${ECHO_T}no" >&6
18823 fi
18824
18825 if test ${MV} = "false"
18826 then
18827         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18828 echo "$as_me: error: mv required but not found" >&2;}
18829    { (exit 1); exit 1; }; }
18830 fi
18831
18832 # Extract the first word of "dot", so it can be a program name with args.
18833 set dummy dot; ac_word=$2
18834 echo "$as_me:$LINENO: checking for $ac_word" >&5
18835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18836 if test "${ac_cv_path_DOT+set}" = set; then
18837   echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839   case $DOT in
18840   [\\/]* | ?:[\\/]*)
18841   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18842   ;;
18843   *)
18844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18845 for as_dir in $PATH
18846 do
18847   IFS=$as_save_IFS
18848   test -z "$as_dir" && as_dir=.
18849   for ac_exec_ext in '' $ac_executable_extensions; do
18850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18851     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18853     break 2
18854   fi
18855 done
18856 done
18857
18858   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18859   ;;
18860 esac
18861 fi
18862 DOT=$ac_cv_path_DOT
18863
18864 if test -n "$DOT"; then
18865   echo "$as_me:$LINENO: result: $DOT" >&5
18866 echo "${ECHO_T}$DOT" >&6
18867 else
18868   echo "$as_me:$LINENO: result: no" >&5
18869 echo "${ECHO_T}no" >&6
18870 fi
18871
18872
18873 # Extract the first word of "etags", so it can be a program name with args.
18874 set dummy etags; ac_word=$2
18875 echo "$as_me:$LINENO: checking for $ac_word" >&5
18876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18877 if test "${ac_cv_path_ETAGS+set}" = set; then
18878   echo $ECHO_N "(cached) $ECHO_C" >&6
18879 else
18880   case $ETAGS in
18881   [\\/]* | ?:[\\/]*)
18882   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18883   ;;
18884   *)
18885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18886 for as_dir in $PATH
18887 do
18888   IFS=$as_save_IFS
18889   test -z "$as_dir" && as_dir=.
18890   for ac_exec_ext in '' $ac_executable_extensions; do
18891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18892     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18894     break 2
18895   fi
18896 done
18897 done
18898
18899   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18900   ;;
18901 esac
18902 fi
18903 ETAGS=$ac_cv_path_ETAGS
18904
18905 if test -n "$ETAGS"; then
18906   echo "$as_me:$LINENO: result: $ETAGS" >&5
18907 echo "${ECHO_T}$ETAGS" >&6
18908 else
18909   echo "$as_me:$LINENO: result: no" >&5
18910 echo "${ECHO_T}no" >&6
18911 fi
18912
18913
18914 # Extract the first word of "python", so it can be a program name with args.
18915 set dummy python; ac_word=$2
18916 echo "$as_me:$LINENO: checking for $ac_word" >&5
18917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18918 if test "${ac_cv_path_PYTHON+set}" = set; then
18919   echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921   case $PYTHON in
18922   [\\/]* | ?:[\\/]*)
18923   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18924   ;;
18925   *)
18926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18927 for as_dir in $PATH
18928 do
18929   IFS=$as_save_IFS
18930   test -z "$as_dir" && as_dir=.
18931   for ac_exec_ext in '' $ac_executable_extensions; do
18932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18933     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18935     break 2
18936   fi
18937 done
18938 done
18939
18940   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18941   ;;
18942 esac
18943 fi
18944 PYTHON=$ac_cv_path_PYTHON
18945
18946 if test -n "$PYTHON"; then
18947   echo "$as_me:$LINENO: result: $PYTHON" >&5
18948 echo "${ECHO_T}$PYTHON" >&6
18949 else
18950   echo "$as_me:$LINENO: result: no" >&5
18951 echo "${ECHO_T}no" >&6
18952 fi
18953
18954 if test ${PYTHON} = "false"
18955 then
18956         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18957 echo "$as_me: WARNING: python required but not found" >&2;}
18958 fi
18959
18960 # Extract the first word of "qmtest", so it can be a program name with args.
18961 set dummy qmtest; ac_word=$2
18962 echo "$as_me:$LINENO: checking for $ac_word" >&5
18963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18964 if test "${ac_cv_path_QMTEST+set}" = set; then
18965   echo $ECHO_N "(cached) $ECHO_C" >&6
18966 else
18967   case $QMTEST in
18968   [\\/]* | ?:[\\/]*)
18969   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18970   ;;
18971   *)
18972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18973 for as_dir in $PATH
18974 do
18975   IFS=$as_save_IFS
18976   test -z "$as_dir" && as_dir=.
18977   for ac_exec_ext in '' $ac_executable_extensions; do
18978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18979     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18981     break 2
18982   fi
18983 done
18984 done
18985
18986   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
18987   ;;
18988 esac
18989 fi
18990 QMTEST=$ac_cv_path_QMTEST
18991
18992 if test -n "$QMTEST"; then
18993   echo "$as_me:$LINENO: result: $QMTEST" >&5
18994 echo "${ECHO_T}$QMTEST" >&6
18995 else
18996   echo "$as_me:$LINENO: result: no" >&5
18997 echo "${ECHO_T}no" >&6
18998 fi
18999
19000 if test ${QMTEST} = "false"
19001 then
19002         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19003 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19004 fi
19005
19006 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19007 pymajor=`echo $pyversion | cut -d. -f1`
19008 pyminor=`echo $pyversion | cut -d. -f2`
19009
19010 if test "$pymajor" -ge "2"
19011 then
19012         if test "$pymajor" -eq "2"
19013         then
19014                 if test "$pyminor" -lt "2"
19015                 then
19016                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19017 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19018    { (exit 1); exit 1; }; }
19019                 fi
19020         fi
19021 else
19022         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19023 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19024    { (exit 1); exit 1; }; }
19025 fi
19026
19027
19028
19029
19030
19031 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19032 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19033 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19034   echo $ECHO_N "(cached) $ECHO_C" >&6
19035 else
19036   ac_check_lib_save_LIBS=$LIBS
19037 LIBS="-lelf  $LIBS"
19038 cat >conftest.$ac_ext <<_ACEOF
19039 #line $LINENO "configure"
19040 /* confdefs.h.  */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h.  */
19045
19046 /* Override any gcc2 internal prototype to avoid an error.  */
19047 #ifdef __cplusplus
19048 extern "C"
19049 #endif
19050 /* We use char because int might match the return type of a gcc2
19051    builtin and then its argument prototype would still apply.  */
19052 char elf_begin ();
19053 int
19054 main ()
19055 {
19056 elf_begin ();
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19063   (eval $ac_link) 2>&5
19064   ac_status=$?
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); } &&
19067          { ac_try='test -s conftest$ac_exeext'
19068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069   (eval $ac_try) 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); }; }; then
19073   ac_cv_lib_elf_elf_begin=yes
19074 else
19075   echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078 ac_cv_lib_elf_elf_begin=no
19079 fi
19080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19081 LIBS=$ac_check_lib_save_LIBS
19082 fi
19083 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19084 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19085 if test $ac_cv_lib_elf_elf_begin = yes; then
19086   cat >>confdefs.h <<_ACEOF
19087 #define HAVE_LIBELF 1
19088 _ACEOF
19089
19090   LIBS="-lelf $LIBS"
19091
19092 fi
19093
19094
19095 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19096 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19097 if test "${ac_cv_search_dlopen+set}" = set; then
19098   echo $ECHO_N "(cached) $ECHO_C" >&6
19099 else
19100   ac_func_search_save_LIBS=$LIBS
19101 ac_cv_search_dlopen=no
19102 cat >conftest.$ac_ext <<_ACEOF
19103 #line $LINENO "configure"
19104 /* confdefs.h.  */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h.  */
19109
19110 /* Override any gcc2 internal prototype to avoid an error.  */
19111 #ifdef __cplusplus
19112 extern "C"
19113 #endif
19114 /* We use char because int might match the return type of a gcc2
19115    builtin and then its argument prototype would still apply.  */
19116 char dlopen ();
19117 int
19118 main ()
19119 {
19120 dlopen ();
19121   ;
19122   return 0;
19123 }
19124 _ACEOF
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19127   (eval $ac_link) 2>&5
19128   ac_status=$?
19129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); } &&
19131          { ac_try='test -s conftest$ac_exeext'
19132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133   (eval $ac_try) 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }; }; then
19137   ac_cv_search_dlopen="none required"
19138 else
19139   echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19141
19142 fi
19143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19144 if test "$ac_cv_search_dlopen" = no; then
19145   for ac_lib in dl; do
19146     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19147     cat >conftest.$ac_ext <<_ACEOF
19148 #line $LINENO "configure"
19149 /* confdefs.h.  */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h.  */
19154
19155 /* Override any gcc2 internal prototype to avoid an error.  */
19156 #ifdef __cplusplus
19157 extern "C"
19158 #endif
19159 /* We use char because int might match the return type of a gcc2
19160    builtin and then its argument prototype would still apply.  */
19161 char dlopen ();
19162 int
19163 main ()
19164 {
19165 dlopen ();
19166   ;
19167   return 0;
19168 }
19169 _ACEOF
19170 rm -f conftest.$ac_objext conftest$ac_exeext
19171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19172   (eval $ac_link) 2>&5
19173   ac_status=$?
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); } &&
19176          { ac_try='test -s conftest$ac_exeext'
19177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178   (eval $ac_try) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; }; then
19182   ac_cv_search_dlopen="-l$ac_lib"
19183 break
19184 else
19185   echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19187
19188 fi
19189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19190   done
19191 fi
19192 LIBS=$ac_func_search_save_LIBS
19193 fi
19194 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19195 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19196 if test "$ac_cv_search_dlopen" != no; then
19197   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19198
19199 cat >>confdefs.h <<\_ACEOF
19200 #define HAVE_DLOPEN 1
19201 _ACEOF
19202
19203 else
19204   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19205 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19206 fi
19207
19208
19209 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19210 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19211 if test "${ac_cv_search_mallinfo+set}" = set; then
19212   echo $ECHO_N "(cached) $ECHO_C" >&6
19213 else
19214   ac_func_search_save_LIBS=$LIBS
19215 ac_cv_search_mallinfo=no
19216 cat >conftest.$ac_ext <<_ACEOF
19217 #line $LINENO "configure"
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223
19224 /* Override any gcc2 internal prototype to avoid an error.  */
19225 #ifdef __cplusplus
19226 extern "C"
19227 #endif
19228 /* We use char because int might match the return type of a gcc2
19229    builtin and then its argument prototype would still apply.  */
19230 char mallinfo ();
19231 int
19232 main ()
19233 {
19234 mallinfo ();
19235   ;
19236   return 0;
19237 }
19238 _ACEOF
19239 rm -f conftest.$ac_objext conftest$ac_exeext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19241   (eval $ac_link) 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); } &&
19245          { ac_try='test -s conftest$ac_exeext'
19246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247   (eval $ac_try) 2>&5
19248   ac_status=$?
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); }; }; then
19251   ac_cv_search_mallinfo="none required"
19252 else
19253   echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256 fi
19257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19258 if test "$ac_cv_search_mallinfo" = no; then
19259   for ac_lib in malloc; do
19260     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19261     cat >conftest.$ac_ext <<_ACEOF
19262 #line $LINENO "configure"
19263 /* confdefs.h.  */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h.  */
19268
19269 /* Override any gcc2 internal prototype to avoid an error.  */
19270 #ifdef __cplusplus
19271 extern "C"
19272 #endif
19273 /* We use char because int might match the return type of a gcc2
19274    builtin and then its argument prototype would still apply.  */
19275 char mallinfo ();
19276 int
19277 main ()
19278 {
19279 mallinfo ();
19280   ;
19281   return 0;
19282 }
19283 _ACEOF
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19286   (eval $ac_link) 2>&5
19287   ac_status=$?
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } &&
19290          { ac_try='test -s conftest$ac_exeext'
19291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292   (eval $ac_try) 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); }; }; then
19296   ac_cv_search_mallinfo="-l$ac_lib"
19297 break
19298 else
19299   echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19301
19302 fi
19303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19304   done
19305 fi
19306 LIBS=$ac_func_search_save_LIBS
19307 fi
19308 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19309 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19310 if test "$ac_cv_search_mallinfo" != no; then
19311   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19312
19313 cat >>confdefs.h <<\_ACEOF
19314 #define HAVE_MALLINFO 1
19315 _ACEOF
19316
19317 fi
19318
19319
19320
19321 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19322 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19323 if test "${ac_cv_header_stdc+set}" = set; then
19324   echo $ECHO_N "(cached) $ECHO_C" >&6
19325 else
19326   cat >conftest.$ac_ext <<_ACEOF
19327 #line $LINENO "configure"
19328 /* confdefs.h.  */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h.  */
19333 #include <stdlib.h>
19334 #include <stdarg.h>
19335 #include <string.h>
19336 #include <float.h>
19337
19338 int
19339 main ()
19340 {
19341
19342   ;
19343   return 0;
19344 }
19345 _ACEOF
19346 rm -f conftest.$ac_objext
19347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19348   (eval $ac_compile) 2>&5
19349   ac_status=$?
19350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351   (exit $ac_status); } &&
19352          { ac_try='test -s conftest.$ac_objext'
19353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354   (eval $ac_try) 2>&5
19355   ac_status=$?
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); }; }; then
19358   ac_cv_header_stdc=yes
19359 else
19360   echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19362
19363 ac_cv_header_stdc=no
19364 fi
19365 rm -f conftest.$ac_objext conftest.$ac_ext
19366
19367 if test $ac_cv_header_stdc = yes; then
19368   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19369   cat >conftest.$ac_ext <<_ACEOF
19370 #line $LINENO "configure"
19371 /* confdefs.h.  */
19372 _ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h.  */
19376 #include <string.h>
19377
19378 _ACEOF
19379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19380   $EGREP "memchr" >/dev/null 2>&1; then
19381   :
19382 else
19383   ac_cv_header_stdc=no
19384 fi
19385 rm -f conftest*
19386
19387 fi
19388
19389 if test $ac_cv_header_stdc = yes; then
19390   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19391   cat >conftest.$ac_ext <<_ACEOF
19392 #line $LINENO "configure"
19393 /* confdefs.h.  */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h.  */
19398 #include <stdlib.h>
19399
19400 _ACEOF
19401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19402   $EGREP "free" >/dev/null 2>&1; then
19403   :
19404 else
19405   ac_cv_header_stdc=no
19406 fi
19407 rm -f conftest*
19408
19409 fi
19410
19411 if test $ac_cv_header_stdc = yes; then
19412   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19413   if test "$cross_compiling" = yes; then
19414   :
19415 else
19416   cat >conftest.$ac_ext <<_ACEOF
19417 #line $LINENO "configure"
19418 /* confdefs.h.  */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h.  */
19423 #include <ctype.h>
19424 #if ((' ' & 0x0FF) == 0x020)
19425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19427 #else
19428 # define ISLOWER(c) \
19429                    (('a' <= (c) && (c) <= 'i') \
19430                      || ('j' <= (c) && (c) <= 'r') \
19431                      || ('s' <= (c) && (c) <= 'z'))
19432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19433 #endif
19434
19435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19436 int
19437 main ()
19438 {
19439   int i;
19440   for (i = 0; i < 256; i++)
19441     if (XOR (islower (i), ISLOWER (i))
19442         || toupper (i) != TOUPPER (i))
19443       exit(2);
19444   exit (0);
19445 }
19446 _ACEOF
19447 rm -f conftest$ac_exeext
19448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19449   (eval $ac_link) 2>&5
19450   ac_status=$?
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454   (eval $ac_try) 2>&5
19455   ac_status=$?
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); }; }; then
19458   :
19459 else
19460   echo "$as_me: program exited with status $ac_status" >&5
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19463
19464 ( exit $ac_status )
19465 ac_cv_header_stdc=no
19466 fi
19467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19468 fi
19469 fi
19470 fi
19471 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19472 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19473 if test $ac_cv_header_stdc = yes; then
19474
19475 cat >>confdefs.h <<\_ACEOF
19476 #define STDC_HEADERS 1
19477 _ACEOF
19478
19479 fi
19480
19481 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19482 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19483 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19484   echo $ECHO_N "(cached) $ECHO_C" >&6
19485 else
19486   cat >conftest.$ac_ext <<_ACEOF
19487 #line $LINENO "configure"
19488 /* confdefs.h.  */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h.  */
19493 #include <sys/types.h>
19494 #include <sys/wait.h>
19495 #ifndef WEXITSTATUS
19496 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19497 #endif
19498 #ifndef WIFEXITED
19499 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19500 #endif
19501
19502 int
19503 main ()
19504 {
19505   int s;
19506   wait (&s);
19507   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19508   ;
19509   return 0;
19510 }
19511 _ACEOF
19512 rm -f conftest.$ac_objext
19513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19514   (eval $ac_compile) 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); } &&
19518          { ac_try='test -s conftest.$ac_objext'
19519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520   (eval $ac_try) 2>&5
19521   ac_status=$?
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); }; }; then
19524   ac_cv_header_sys_wait_h=yes
19525 else
19526   echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529 ac_cv_header_sys_wait_h=no
19530 fi
19531 rm -f conftest.$ac_objext conftest.$ac_ext
19532 fi
19533 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19534 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19535 if test $ac_cv_header_sys_wait_h = yes; then
19536
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE_SYS_WAIT_H 1
19539 _ACEOF
19540
19541 fi
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19553 do
19554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19556   echo "$as_me:$LINENO: checking for $ac_header" >&5
19557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19559   echo $ECHO_N "(cached) $ECHO_C" >&6
19560 fi
19561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19563 else
19564   # Is the header compilable?
19565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19567 cat >conftest.$ac_ext <<_ACEOF
19568 #line $LINENO "configure"
19569 /* confdefs.h.  */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h.  */
19574 $ac_includes_default
19575 #include <$ac_header>
19576 _ACEOF
19577 rm -f conftest.$ac_objext
19578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19579   (eval $ac_compile) 2>&5
19580   ac_status=$?
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); } &&
19583          { ac_try='test -s conftest.$ac_objext'
19584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585   (eval $ac_try) 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); }; }; then
19589   ac_header_compiler=yes
19590 else
19591   echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 ac_header_compiler=no
19595 fi
19596 rm -f conftest.$ac_objext conftest.$ac_ext
19597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19598 echo "${ECHO_T}$ac_header_compiler" >&6
19599
19600 # Is the header present?
19601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19603 cat >conftest.$ac_ext <<_ACEOF
19604 #line $LINENO "configure"
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610 #include <$ac_header>
19611 _ACEOF
19612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19613   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19614   ac_status=$?
19615   grep -v '^ *+' conftest.er1 >conftest.err
19616   rm -f conftest.er1
19617   cat conftest.err >&5
19618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619   (exit $ac_status); } >/dev/null; then
19620   if test -s conftest.err; then
19621     ac_cpp_err=$ac_c_preproc_warn_flag
19622   else
19623     ac_cpp_err=
19624   fi
19625 else
19626   ac_cpp_err=yes
19627 fi
19628 if test -z "$ac_cpp_err"; then
19629   ac_header_preproc=yes
19630 else
19631   echo "$as_me: failed program was:" >&5
19632 sed 's/^/| /' conftest.$ac_ext >&5
19633
19634   ac_header_preproc=no
19635 fi
19636 rm -f conftest.err conftest.$ac_ext
19637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19638 echo "${ECHO_T}$ac_header_preproc" >&6
19639
19640 # So?  What about this header?
19641 case $ac_header_compiler:$ac_header_preproc in
19642   yes:no )
19643     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19647     (
19648       cat <<\_ASBOX
19649 ## ------------------------------------ ##
19650 ## Report this to bug-autoconf@gnu.org. ##
19651 ## ------------------------------------ ##
19652 _ASBOX
19653     ) |
19654       sed "s/^/$as_me: WARNING:     /" >&2
19655     ;;
19656   no:yes )
19657     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19659     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19663     (
19664       cat <<\_ASBOX
19665 ## ------------------------------------ ##
19666 ## Report this to bug-autoconf@gnu.org. ##
19667 ## ------------------------------------ ##
19668 _ASBOX
19669     ) |
19670       sed "s/^/$as_me: WARNING:     /" >&2
19671     ;;
19672 esac
19673 echo "$as_me:$LINENO: checking for $ac_header" >&5
19674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678   eval "$as_ac_Header=$ac_header_preproc"
19679 fi
19680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19682
19683 fi
19684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19685   cat >>confdefs.h <<_ACEOF
19686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19687 _ACEOF
19688
19689 fi
19690
19691 done
19692
19693
19694
19695
19696
19697
19698 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19699 do
19700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19702   echo "$as_me:$LINENO: checking for $ac_header" >&5
19703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19705   echo $ECHO_N "(cached) $ECHO_C" >&6
19706 fi
19707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19709 else
19710   # Is the header compilable?
19711 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19713 cat >conftest.$ac_ext <<_ACEOF
19714 #line $LINENO "configure"
19715 /* confdefs.h.  */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h.  */
19720 $ac_includes_default
19721 #include <$ac_header>
19722 _ACEOF
19723 rm -f conftest.$ac_objext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19725   (eval $ac_compile) 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); } &&
19729          { ac_try='test -s conftest.$ac_objext'
19730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731   (eval $ac_try) 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; }; then
19735   ac_header_compiler=yes
19736 else
19737   echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ac_header_compiler=no
19741 fi
19742 rm -f conftest.$ac_objext conftest.$ac_ext
19743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19744 echo "${ECHO_T}$ac_header_compiler" >&6
19745
19746 # Is the header present?
19747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19749 cat >conftest.$ac_ext <<_ACEOF
19750 #line $LINENO "configure"
19751 /* confdefs.h.  */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h.  */
19756 #include <$ac_header>
19757 _ACEOF
19758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19759   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19760   ac_status=$?
19761   grep -v '^ *+' conftest.er1 >conftest.err
19762   rm -f conftest.er1
19763   cat conftest.err >&5
19764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765   (exit $ac_status); } >/dev/null; then
19766   if test -s conftest.err; then
19767     ac_cpp_err=$ac_c_preproc_warn_flag
19768   else
19769     ac_cpp_err=
19770   fi
19771 else
19772   ac_cpp_err=yes
19773 fi
19774 if test -z "$ac_cpp_err"; then
19775   ac_header_preproc=yes
19776 else
19777   echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19779
19780   ac_header_preproc=no
19781 fi
19782 rm -f conftest.err conftest.$ac_ext
19783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19784 echo "${ECHO_T}$ac_header_preproc" >&6
19785
19786 # So?  What about this header?
19787 case $ac_header_compiler:$ac_header_preproc in
19788   yes:no )
19789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19793     (
19794       cat <<\_ASBOX
19795 ## ------------------------------------ ##
19796 ## Report this to bug-autoconf@gnu.org. ##
19797 ## ------------------------------------ ##
19798 _ASBOX
19799     ) |
19800       sed "s/^/$as_me: WARNING:     /" >&2
19801     ;;
19802   no:yes )
19803     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19805     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19809     (
19810       cat <<\_ASBOX
19811 ## ------------------------------------ ##
19812 ## Report this to bug-autoconf@gnu.org. ##
19813 ## ------------------------------------ ##
19814 _ASBOX
19815     ) |
19816       sed "s/^/$as_me: WARNING:     /" >&2
19817     ;;
19818 esac
19819 echo "$as_me:$LINENO: checking for $ac_header" >&5
19820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   eval "$as_ac_Header=$ac_header_preproc"
19825 fi
19826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19828
19829 fi
19830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19831   cat >>confdefs.h <<_ACEOF
19832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19833 _ACEOF
19834
19835 fi
19836
19837 done
19838
19839
19840
19841
19842 for ac_header in dlfcn.h link.h
19843 do
19844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19846   echo "$as_me:$LINENO: checking for $ac_header" >&5
19847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19849   echo $ECHO_N "(cached) $ECHO_C" >&6
19850 fi
19851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19853 else
19854   # Is the header compilable?
19855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19857 cat >conftest.$ac_ext <<_ACEOF
19858 #line $LINENO "configure"
19859 /* confdefs.h.  */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h.  */
19864 $ac_includes_default
19865 #include <$ac_header>
19866 _ACEOF
19867 rm -f conftest.$ac_objext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19869   (eval $ac_compile) 2>&5
19870   ac_status=$?
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); } &&
19873          { ac_try='test -s conftest.$ac_objext'
19874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875   (eval $ac_try) 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); }; }; then
19879   ac_header_compiler=yes
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884 ac_header_compiler=no
19885 fi
19886 rm -f conftest.$ac_objext conftest.$ac_ext
19887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19888 echo "${ECHO_T}$ac_header_compiler" >&6
19889
19890 # Is the header present?
19891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19893 cat >conftest.$ac_ext <<_ACEOF
19894 #line $LINENO "configure"
19895 /* confdefs.h.  */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h.  */
19900 #include <$ac_header>
19901 _ACEOF
19902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19903   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19904   ac_status=$?
19905   grep -v '^ *+' conftest.er1 >conftest.err
19906   rm -f conftest.er1
19907   cat conftest.err >&5
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); } >/dev/null; then
19910   if test -s conftest.err; then
19911     ac_cpp_err=$ac_c_preproc_warn_flag
19912   else
19913     ac_cpp_err=
19914   fi
19915 else
19916   ac_cpp_err=yes
19917 fi
19918 if test -z "$ac_cpp_err"; then
19919   ac_header_preproc=yes
19920 else
19921   echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19923
19924   ac_header_preproc=no
19925 fi
19926 rm -f conftest.err conftest.$ac_ext
19927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19928 echo "${ECHO_T}$ac_header_preproc" >&6
19929
19930 # So?  What about this header?
19931 case $ac_header_compiler:$ac_header_preproc in
19932   yes:no )
19933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19937     (
19938       cat <<\_ASBOX
19939 ## ------------------------------------ ##
19940 ## Report this to bug-autoconf@gnu.org. ##
19941 ## ------------------------------------ ##
19942 _ASBOX
19943     ) |
19944       sed "s/^/$as_me: WARNING:     /" >&2
19945     ;;
19946   no:yes )
19947     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19949     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19950 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19953     (
19954       cat <<\_ASBOX
19955 ## ------------------------------------ ##
19956 ## Report this to bug-autoconf@gnu.org. ##
19957 ## ------------------------------------ ##
19958 _ASBOX
19959     ) |
19960       sed "s/^/$as_me: WARNING:     /" >&2
19961     ;;
19962 esac
19963 echo "$as_me:$LINENO: checking for $ac_header" >&5
19964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19966   echo $ECHO_N "(cached) $ECHO_C" >&6
19967 else
19968   eval "$as_ac_Header=$ac_header_preproc"
19969 fi
19970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19972
19973 fi
19974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19975   cat >>confdefs.h <<_ACEOF
19976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19977 _ACEOF
19978
19979 fi
19980
19981 done
19982
19983
19984
19985 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19986 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19987 if test "${ac_cv_c_const+set}" = set; then
19988   echo $ECHO_N "(cached) $ECHO_C" >&6
19989 else
19990   cat >conftest.$ac_ext <<_ACEOF
19991 #line $LINENO "configure"
19992 /* confdefs.h.  */
19993 _ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h.  */
19997
19998 int
19999 main ()
20000 {
20001 /* FIXME: Include the comments suggested by Paul. */
20002 #ifndef __cplusplus
20003   /* Ultrix mips cc rejects this.  */
20004   typedef int charset[2];
20005   const charset x;
20006   /* SunOS 4.1.1 cc rejects this.  */
20007   char const *const *ccp;
20008   char **p;
20009   /* NEC SVR4.0.2 mips cc rejects this.  */
20010   struct point {int x, y;};
20011   static struct point const zero = {0,0};
20012   /* AIX XL C 1.02.0.0 rejects this.
20013      It does not let you subtract one const X* pointer from another in
20014      an arm of an if-expression whose if-part is not a constant
20015      expression */
20016   const char *g = "string";
20017   ccp = &g + (g ? g-g : 0);
20018   /* HPUX 7.0 cc rejects these. */
20019   ++ccp;
20020   p = (char**) ccp;
20021   ccp = (char const *const *) p;
20022   { /* SCO 3.2v4 cc rejects this.  */
20023     char *t;
20024     char const *s = 0 ? (char *) 0 : (char const *) 0;
20025
20026     *t++ = 0;
20027   }
20028   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20029     int x[] = {25, 17};
20030     const int *foo = &x[0];
20031     ++foo;
20032   }
20033   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20034     typedef const int *iptr;
20035     iptr p = 0;
20036     ++p;
20037   }
20038   { /* AIX XL C 1.02.0.0 rejects this saying
20039        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20040     struct s { int j; const int *ap[3]; };
20041     struct s *b; b->j = 5;
20042   }
20043   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20044     const int foo = 10;
20045   }
20046 #endif
20047
20048   ;
20049   return 0;
20050 }
20051 _ACEOF
20052 rm -f conftest.$ac_objext
20053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20054   (eval $ac_compile) 2>&5
20055   ac_status=$?
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); } &&
20058          { ac_try='test -s conftest.$ac_objext'
20059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060   (eval $ac_try) 2>&5
20061   ac_status=$?
20062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063   (exit $ac_status); }; }; then
20064   ac_cv_c_const=yes
20065 else
20066   echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20068
20069 ac_cv_c_const=no
20070 fi
20071 rm -f conftest.$ac_objext conftest.$ac_ext
20072 fi
20073 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20074 echo "${ECHO_T}$ac_cv_c_const" >&6
20075 if test $ac_cv_c_const = no; then
20076
20077 cat >>confdefs.h <<\_ACEOF
20078 #define const
20079 _ACEOF
20080
20081 fi
20082
20083 echo "$as_me:$LINENO: checking for inline" >&5
20084 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20085 if test "${ac_cv_c_inline+set}" = set; then
20086   echo $ECHO_N "(cached) $ECHO_C" >&6
20087 else
20088   ac_cv_c_inline=no
20089 for ac_kw in inline __inline__ __inline; do
20090   cat >conftest.$ac_ext <<_ACEOF
20091 #line $LINENO "configure"
20092 /* confdefs.h.  */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h.  */
20097 #ifndef __cplusplus
20098 typedef int foo_t;
20099 static $ac_kw foo_t static_foo () {return 0; }
20100 $ac_kw foo_t foo () {return 0; }
20101 #endif
20102
20103 _ACEOF
20104 rm -f conftest.$ac_objext
20105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20106   (eval $ac_compile) 2>&5
20107   ac_status=$?
20108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109   (exit $ac_status); } &&
20110          { ac_try='test -s conftest.$ac_objext'
20111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112   (eval $ac_try) 2>&5
20113   ac_status=$?
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); }; }; then
20116   ac_cv_c_inline=$ac_kw; break
20117 else
20118   echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121 fi
20122 rm -f conftest.$ac_objext conftest.$ac_ext
20123 done
20124
20125 fi
20126 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20127 echo "${ECHO_T}$ac_cv_c_inline" >&6
20128 case $ac_cv_c_inline in
20129   inline | yes) ;;
20130   no)
20131 cat >>confdefs.h <<\_ACEOF
20132 #define inline
20133 _ACEOF
20134  ;;
20135   *)  cat >>confdefs.h <<_ACEOF
20136 #define inline $ac_cv_c_inline
20137 _ACEOF
20138  ;;
20139 esac
20140
20141
20142 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20143 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20144 if test "${ac_cv_c_bigendian+set}" = set; then
20145   echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147   # See if sys/param.h defines the BYTE_ORDER macro.
20148 cat >conftest.$ac_ext <<_ACEOF
20149 #line $LINENO "configure"
20150 /* confdefs.h.  */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h.  */
20155 #include <sys/types.h>
20156 #include <sys/param.h>
20157
20158 int
20159 main ()
20160 {
20161 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20162  bogus endian macros
20163 #endif
20164
20165   ;
20166   return 0;
20167 }
20168 _ACEOF
20169 rm -f conftest.$ac_objext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171   (eval $ac_compile) 2>&5
20172   ac_status=$?
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } &&
20175          { ac_try='test -s conftest.$ac_objext'
20176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177   (eval $ac_try) 2>&5
20178   ac_status=$?
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); }; }; then
20181   # It does; now see whether it defined to BIG_ENDIAN or not.
20182 cat >conftest.$ac_ext <<_ACEOF
20183 #line $LINENO "configure"
20184 /* confdefs.h.  */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h.  */
20189 #include <sys/types.h>
20190 #include <sys/param.h>
20191
20192 int
20193 main ()
20194 {
20195 #if BYTE_ORDER != BIG_ENDIAN
20196  not big endian
20197 #endif
20198
20199   ;
20200   return 0;
20201 }
20202 _ACEOF
20203 rm -f conftest.$ac_objext
20204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20205   (eval $ac_compile) 2>&5
20206   ac_status=$?
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); } &&
20209          { ac_try='test -s conftest.$ac_objext'
20210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20211   (eval $ac_try) 2>&5
20212   ac_status=$?
20213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214   (exit $ac_status); }; }; then
20215   ac_cv_c_bigendian=yes
20216 else
20217   echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20219
20220 ac_cv_c_bigendian=no
20221 fi
20222 rm -f conftest.$ac_objext conftest.$ac_ext
20223 else
20224   echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227 # It does not; compile a test program.
20228 if test "$cross_compiling" = yes; then
20229   # try to guess the endianness by grepping values into an object file
20230   ac_cv_c_bigendian=unknown
20231   cat >conftest.$ac_ext <<_ACEOF
20232 #line $LINENO "configure"
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20239 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20240 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20241 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20242 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20243 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20244 int
20245 main ()
20246 {
20247  _ascii (); _ebcdic ();
20248   ;
20249   return 0;
20250 }
20251 _ACEOF
20252 rm -f conftest.$ac_objext
20253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20254   (eval $ac_compile) 2>&5
20255   ac_status=$?
20256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257   (exit $ac_status); } &&
20258          { ac_try='test -s conftest.$ac_objext'
20259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260   (eval $ac_try) 2>&5
20261   ac_status=$?
20262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); }; }; then
20264   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20265   ac_cv_c_bigendian=yes
20266 fi
20267 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20268   if test "$ac_cv_c_bigendian" = unknown; then
20269     ac_cv_c_bigendian=no
20270   else
20271     # finding both strings is unlikely to happen, but who knows?
20272     ac_cv_c_bigendian=unknown
20273   fi
20274 fi
20275 else
20276   echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20278
20279 fi
20280 rm -f conftest.$ac_objext conftest.$ac_ext
20281 else
20282   cat >conftest.$ac_ext <<_ACEOF
20283 #line $LINENO "configure"
20284 /* confdefs.h.  */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h.  */
20289 int
20290 main ()
20291 {
20292   /* Are we little or big endian?  From Harbison&Steele.  */
20293   union
20294   {
20295     long l;
20296     char c[sizeof (long)];
20297   } u;
20298   u.l = 1;
20299   exit (u.c[sizeof (long) - 1] == 1);
20300 }
20301 _ACEOF
20302 rm -f conftest$ac_exeext
20303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20304   (eval $ac_link) 2>&5
20305   ac_status=$?
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309   (eval $ac_try) 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); }; }; then
20313   ac_cv_c_bigendian=no
20314 else
20315   echo "$as_me: program exited with status $ac_status" >&5
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20318
20319 ( exit $ac_status )
20320 ac_cv_c_bigendian=yes
20321 fi
20322 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20323 fi
20324 fi
20325 rm -f conftest.$ac_objext conftest.$ac_ext
20326 fi
20327 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20328 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20329 case $ac_cv_c_bigendian in
20330   yes)
20331
20332 cat >>confdefs.h <<\_ACEOF
20333 #define ENDIAN_BIG
20334 _ACEOF
20335  ;;
20336   no)
20337
20338 cat >>confdefs.h <<\_ACEOF
20339 #define ENDIAN_LITTLE
20340 _ACEOF
20341  ;;
20342   *)
20343     { { echo "$as_me:$LINENO: error: unknown endianness
20344 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20345 echo "$as_me: error: unknown endianness
20346 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20347    { (exit 1); exit 1; }; } ;;
20348 esac
20349
20350
20351 echo "$as_me:$LINENO: checking for pid_t" >&5
20352 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20353 if test "${ac_cv_type_pid_t+set}" = set; then
20354   echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356   cat >conftest.$ac_ext <<_ACEOF
20357 #line $LINENO "configure"
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363 $ac_includes_default
20364 int
20365 main ()
20366 {
20367 if ((pid_t *) 0)
20368   return 0;
20369 if (sizeof (pid_t))
20370   return 0;
20371   ;
20372   return 0;
20373 }
20374 _ACEOF
20375 rm -f conftest.$ac_objext
20376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20377   (eval $ac_compile) 2>&5
20378   ac_status=$?
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); } &&
20381          { ac_try='test -s conftest.$ac_objext'
20382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383   (eval $ac_try) 2>&5
20384   ac_status=$?
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); }; }; then
20387   ac_cv_type_pid_t=yes
20388 else
20389   echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.$ac_ext >&5
20391
20392 ac_cv_type_pid_t=no
20393 fi
20394 rm -f conftest.$ac_objext conftest.$ac_ext
20395 fi
20396 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20397 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20398 if test $ac_cv_type_pid_t = yes; then
20399   :
20400 else
20401
20402 cat >>confdefs.h <<_ACEOF
20403 #define pid_t int
20404 _ACEOF
20405
20406 fi
20407
20408 echo "$as_me:$LINENO: checking for size_t" >&5
20409 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20410 if test "${ac_cv_type_size_t+set}" = set; then
20411   echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413   cat >conftest.$ac_ext <<_ACEOF
20414 #line $LINENO "configure"
20415 /* confdefs.h.  */
20416 _ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h.  */
20420 $ac_includes_default
20421 int
20422 main ()
20423 {
20424 if ((size_t *) 0)
20425   return 0;
20426 if (sizeof (size_t))
20427   return 0;
20428   ;
20429   return 0;
20430 }
20431 _ACEOF
20432 rm -f conftest.$ac_objext
20433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20434   (eval $ac_compile) 2>&5
20435   ac_status=$?
20436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437   (exit $ac_status); } &&
20438          { ac_try='test -s conftest.$ac_objext'
20439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440   (eval $ac_try) 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); }; }; then
20444   ac_cv_type_size_t=yes
20445 else
20446   echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20448
20449 ac_cv_type_size_t=no
20450 fi
20451 rm -f conftest.$ac_objext conftest.$ac_ext
20452 fi
20453 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20454 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20455 if test $ac_cv_type_size_t = yes; then
20456   :
20457 else
20458
20459 cat >>confdefs.h <<_ACEOF
20460 #define size_t unsigned
20461 _ACEOF
20462
20463 fi
20464
20465 echo "$as_me:$LINENO: checking for int64_t" >&5
20466 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20467 if test "${ac_cv_type_int64_t+set}" = set; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470   cat >conftest.$ac_ext <<_ACEOF
20471 #line $LINENO "configure"
20472 /* confdefs.h.  */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h.  */
20477 $ac_includes_default
20478 int
20479 main ()
20480 {
20481 if ((int64_t *) 0)
20482   return 0;
20483 if (sizeof (int64_t))
20484   return 0;
20485   ;
20486   return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest.$ac_objext
20490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20491   (eval $ac_compile) 2>&5
20492   ac_status=$?
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); } &&
20495          { ac_try='test -s conftest.$ac_objext'
20496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497   (eval $ac_try) 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); }; }; then
20501   ac_cv_type_int64_t=yes
20502 else
20503   echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20505
20506 ac_cv_type_int64_t=no
20507 fi
20508 rm -f conftest.$ac_objext conftest.$ac_ext
20509 fi
20510 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20511 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20512 if test $ac_cv_type_int64_t = yes; then
20513
20514 cat >>confdefs.h <<_ACEOF
20515 #define HAVE_INT64_T 1
20516 _ACEOF
20517
20518
20519 else
20520   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20521 echo "$as_me: error: Type int64_t required but not found" >&2;}
20522    { (exit 1); exit 1; }; }
20523 fi
20524
20525 echo "$as_me:$LINENO: checking for uint64_t" >&5
20526 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20527 if test "${ac_cv_type_uint64_t+set}" = set; then
20528   echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530   cat >conftest.$ac_ext <<_ACEOF
20531 #line $LINENO "configure"
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537 $ac_includes_default
20538 int
20539 main ()
20540 {
20541 if ((uint64_t *) 0)
20542   return 0;
20543 if (sizeof (uint64_t))
20544   return 0;
20545   ;
20546   return 0;
20547 }
20548 _ACEOF
20549 rm -f conftest.$ac_objext
20550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20551   (eval $ac_compile) 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); } &&
20555          { ac_try='test -s conftest.$ac_objext'
20556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557   (eval $ac_try) 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); }; }; then
20561   ac_cv_type_uint64_t=yes
20562 else
20563   echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566 ac_cv_type_uint64_t=no
20567 fi
20568 rm -f conftest.$ac_objext conftest.$ac_ext
20569 fi
20570 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20571 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20572 if test $ac_cv_type_uint64_t = yes; then
20573
20574 cat >>confdefs.h <<_ACEOF
20575 #define HAVE_UINT64_T 1
20576 _ACEOF
20577
20578
20579 else
20580   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20581 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20582    { (exit 1); exit 1; }; }
20583 fi
20584
20585 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20586 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20587 if test "${ac_cv_header_time+set}" = set; then
20588   echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590   cat >conftest.$ac_ext <<_ACEOF
20591 #line $LINENO "configure"
20592 /* confdefs.h.  */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h.  */
20597 #include <sys/types.h>
20598 #include <sys/time.h>
20599 #include <time.h>
20600
20601 int
20602 main ()
20603 {
20604 if ((struct tm *) 0)
20605 return 0;
20606   ;
20607   return 0;
20608 }
20609 _ACEOF
20610 rm -f conftest.$ac_objext
20611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20612   (eval $ac_compile) 2>&5
20613   ac_status=$?
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); } &&
20616          { ac_try='test -s conftest.$ac_objext'
20617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618   (eval $ac_try) 2>&5
20619   ac_status=$?
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); }; }; then
20622   ac_cv_header_time=yes
20623 else
20624   echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 ac_cv_header_time=no
20628 fi
20629 rm -f conftest.$ac_objext conftest.$ac_ext
20630 fi
20631 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20632 echo "${ECHO_T}$ac_cv_header_time" >&6
20633 if test $ac_cv_header_time = yes; then
20634
20635 cat >>confdefs.h <<\_ACEOF
20636 #define TIME_WITH_SYS_TIME 1
20637 _ACEOF
20638
20639 fi
20640
20641 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20642 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20643 if test "${ac_cv_struct_tm+set}" = set; then
20644   echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646   cat >conftest.$ac_ext <<_ACEOF
20647 #line $LINENO "configure"
20648 /* confdefs.h.  */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h.  */
20653 #include <sys/types.h>
20654 #include <time.h>
20655
20656 int
20657 main ()
20658 {
20659 struct tm *tp; tp->tm_sec;
20660   ;
20661   return 0;
20662 }
20663 _ACEOF
20664 rm -f conftest.$ac_objext
20665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20666   (eval $ac_compile) 2>&5
20667   ac_status=$?
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); } &&
20670          { ac_try='test -s conftest.$ac_objext'
20671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672   (eval $ac_try) 2>&5
20673   ac_status=$?
20674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675   (exit $ac_status); }; }; then
20676   ac_cv_struct_tm=time.h
20677 else
20678   echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20680
20681 ac_cv_struct_tm=sys/time.h
20682 fi
20683 rm -f conftest.$ac_objext conftest.$ac_ext
20684 fi
20685 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20686 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20687 if test $ac_cv_struct_tm = sys/time.h; then
20688
20689 cat >>confdefs.h <<\_ACEOF
20690 #define TM_IN_SYS_TIME 1
20691 _ACEOF
20692
20693 fi
20694
20695
20696
20697
20698
20699         ac_ext=c
20700 ac_cpp='$CPP $CPPFLAGS'
20701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20704
20705         if test "$cross_compiling" = yes; then
20706   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20707 See \`config.log' for more details." >&5
20708 echo "$as_me: error: cannot run test program while cross compiling
20709 See \`config.log' for more details." >&2;}
20710    { (exit 1); exit 1; }; }
20711 else
20712   cat >conftest.$ac_ext <<_ACEOF
20713 #line $LINENO "configure"
20714 /* confdefs.h.  */
20715 _ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h.  */
20719 #include <stdio.h>
20720                                  #include <stdlib.h>
20721 int
20722 main ()
20723 {
20724
20725                                  volatile double A, B;
20726                                  char Buffer[100];
20727                                  A = 1;
20728                                  A /= 10.0;
20729                                  sprintf(Buffer, "%a", A);
20730                                  B = atof(Buffer);
20731                                  if (A != B)
20732                                                          return (1);
20733                                  if (A != 0x1.999999999999ap-4)
20734                                                          return (1);
20735                                  return (0);
20736   ;
20737   return 0;
20738 }
20739 _ACEOF
20740 rm -f conftest$ac_exeext
20741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20742   (eval $ac_link) 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747   (eval $ac_try) 2>&5
20748   ac_status=$?
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); }; }; then
20751   ac_c_printf_a=yes
20752 else
20753   echo "$as_me: program exited with status $ac_status" >&5
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757 ( exit $ac_status )
20758 ac_c_printf_a=no
20759 fi
20760 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20761 fi
20762         ac_ext=c
20763 ac_cpp='$CPP $CPPFLAGS'
20764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20767
20768         if test "$ac_c_printf_a" = "yes"; then
20769
20770 cat >>confdefs.h <<\_ACEOF
20771 #define HAVE_PRINTF_A 1
20772 _ACEOF
20773
20774         fi
20775
20776
20777 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20778 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20779 if test "${ac_cv_cxx_namespaces+set}" = set; then
20780   echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782
20783
20784  ac_ext=cc
20785 ac_cpp='$CXXCPP $CPPFLAGS'
20786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20789
20790  cat >conftest.$ac_ext <<_ACEOF
20791 #line $LINENO "configure"
20792 /* confdefs.h.  */
20793 _ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h.  */
20797 namespace Outer { namespace Inner { int i = 0; }}
20798 int
20799 main ()
20800 {
20801 using namespace Outer::Inner; return i;
20802   ;
20803   return 0;
20804 }
20805 _ACEOF
20806 rm -f conftest.$ac_objext
20807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20808   (eval $ac_compile) 2>&5
20809   ac_status=$?
20810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811   (exit $ac_status); } &&
20812          { ac_try='test -s conftest.$ac_objext'
20813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814   (eval $ac_try) 2>&5
20815   ac_status=$?
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); }; }; then
20818   ac_cv_cxx_namespaces=yes
20819 else
20820   echo "$as_me: failed program was:" >&5
20821 sed 's/^/| /' conftest.$ac_ext >&5
20822
20823 ac_cv_cxx_namespaces=no
20824 fi
20825 rm -f conftest.$ac_objext conftest.$ac_ext
20826  ac_ext=c
20827 ac_cpp='$CPP $CPPFLAGS'
20828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20831
20832
20833 fi
20834 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20835 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20836 if test "$ac_cv_cxx_namespaces" = yes; then
20837
20838 cat >>confdefs.h <<\_ACEOF
20839 #define HAVE_NAMESPACES
20840 _ACEOF
20841
20842 fi
20843
20844 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20845 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20846 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20847   echo $ECHO_N "(cached) $ECHO_C" >&6
20848 else
20849
20850
20851
20852   ac_ext=cc
20853 ac_cpp='$CXXCPP $CPPFLAGS'
20854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20857
20858   cat >conftest.$ac_ext <<_ACEOF
20859 #line $LINENO "configure"
20860 /* confdefs.h.  */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h.  */
20865 #include <ext/hash_map>
20866 #ifdef HAVE_NAMESPACES
20867 using namespace std;
20868 #endif
20869 int
20870 main ()
20871 {
20872 hash_map<int, int> t; return 0;
20873   ;
20874   return 0;
20875 }
20876 _ACEOF
20877 rm -f conftest.$ac_objext
20878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20879   (eval $ac_compile) 2>&5
20880   ac_status=$?
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); } &&
20883          { ac_try='test -s conftest.$ac_objext'
20884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885   (eval $ac_try) 2>&5
20886   ac_status=$?
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); }; }; then
20889   ac_cv_cxx_have_ext_hash_map=std
20890 else
20891   echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20893
20894 ac_cv_cxx_have_ext_hash_map=no
20895 fi
20896 rm -f conftest.$ac_objext conftest.$ac_ext
20897   cat >conftest.$ac_ext <<_ACEOF
20898 #line $LINENO "configure"
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904 #include <ext/hash_map>
20905 #ifdef HAVE_NAMESPACES
20906 using namespace __gnu_cxx;
20907 #endif
20908 int
20909 main ()
20910 {
20911 hash_map<int, int> t; return 0;
20912   ;
20913   return 0;
20914 }
20915 _ACEOF
20916 rm -f conftest.$ac_objext
20917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20918   (eval $ac_compile) 2>&5
20919   ac_status=$?
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); } &&
20922          { ac_try='test -s conftest.$ac_objext'
20923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924   (eval $ac_try) 2>&5
20925   ac_status=$?
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); }; }; then
20928   ac_cv_cxx_have_ext_hash_map=gnu
20929 else
20930   echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20932
20933 ac_cv_cxx_have_ext_hash_map=no
20934 fi
20935 rm -f conftest.$ac_objext conftest.$ac_ext
20936   ac_ext=c
20937 ac_cpp='$CPP $CPPFLAGS'
20938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20941
20942
20943 fi
20944 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20945 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20946 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20947
20948 cat >>confdefs.h <<\_ACEOF
20949 #define HAVE_STD_EXT_HASH_MAP
20950 _ACEOF
20951
20952 fi
20953 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20954
20955 cat >>confdefs.h <<\_ACEOF
20956 #define HAVE_GNU_EXT_HASH_MAP
20957 _ACEOF
20958
20959 fi
20960
20961 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20962 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20963 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20964   echo $ECHO_N "(cached) $ECHO_C" >&6
20965 else
20966
20967
20968
20969   ac_ext=cc
20970 ac_cpp='$CXXCPP $CPPFLAGS'
20971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20974
20975   cat >conftest.$ac_ext <<_ACEOF
20976 #line $LINENO "configure"
20977 /* confdefs.h.  */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h.  */
20982 #include <ext/hash_set>
20983 #ifdef HAVE_NAMESPACES
20984 using namespace std;
20985 #endif
20986 int
20987 main ()
20988 {
20989 hash_set<int> t; return 0;
20990   ;
20991   return 0;
20992 }
20993 _ACEOF
20994 rm -f conftest.$ac_objext
20995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20996   (eval $ac_compile) 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); } &&
21000          { ac_try='test -s conftest.$ac_objext'
21001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002   (eval $ac_try) 2>&5
21003   ac_status=$?
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); }; }; then
21006   ac_cv_cxx_have_ext_hash_set=std
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011 ac_cv_cxx_have_ext_hash_set=no
21012 fi
21013 rm -f conftest.$ac_objext conftest.$ac_ext
21014   cat >conftest.$ac_ext <<_ACEOF
21015 #line $LINENO "configure"
21016 /* confdefs.h.  */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h.  */
21021 #include <ext/hash_set>
21022 #ifdef HAVE_NAMESPACES
21023 using namespace __gnu_cxx;
21024 #endif
21025 int
21026 main ()
21027 {
21028 hash_set<int> t; return 0;
21029   ;
21030   return 0;
21031 }
21032 _ACEOF
21033 rm -f conftest.$ac_objext
21034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21035   (eval $ac_compile) 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); } &&
21039          { ac_try='test -s conftest.$ac_objext'
21040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041   (eval $ac_try) 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); }; }; then
21045   ac_cv_cxx_have_ext_hash_set=gnu
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050 ac_cv_cxx_have_ext_hash_set=no
21051 fi
21052 rm -f conftest.$ac_objext conftest.$ac_ext
21053   ac_ext=c
21054 ac_cpp='$CPP $CPPFLAGS'
21055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21058
21059
21060 fi
21061 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21062 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21063 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21064
21065 cat >>confdefs.h <<\_ACEOF
21066 #define HAVE_STD_EXT_HASH_SET
21067 _ACEOF
21068
21069 fi
21070 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21071
21072 cat >>confdefs.h <<\_ACEOF
21073 #define HAVE_GNU_EXT_HASH_SET
21074 _ACEOF
21075
21076 fi
21077
21078 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21079 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21080 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21081   echo $ECHO_N "(cached) $ECHO_C" >&6
21082 else
21083
21084
21085
21086   ac_ext=cc
21087 ac_cpp='$CXXCPP $CPPFLAGS'
21088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21091
21092   cat >conftest.$ac_ext <<_ACEOF
21093 #line $LINENO "configure"
21094 /* confdefs.h.  */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h.  */
21099 #include <ext/slist>
21100 #ifdef HAVE_NAMESPACES
21101 using namespace std;
21102 #endif
21103 int
21104 main ()
21105 {
21106 slist<int> s; return 0;
21107   ;
21108   return 0;
21109 }
21110 _ACEOF
21111 rm -f conftest.$ac_objext
21112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21113   (eval $ac_compile) 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); } &&
21117          { ac_try='test -s conftest.$ac_objext'
21118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119   (eval $ac_try) 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); }; }; then
21123   ac_cv_cxx_have_ext_slist=std
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_cv_cxx_have_ext_slist=no
21129 fi
21130 rm -f conftest.$ac_objext conftest.$ac_ext
21131   cat >conftest.$ac_ext <<_ACEOF
21132 #line $LINENO "configure"
21133 /* confdefs.h.  */
21134 _ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h.  */
21138 #include <ext/slist>
21139 #ifdef HAVE_NAMESPACES
21140 using namespace __gnu_cxx;
21141 #endif
21142 int
21143 main ()
21144 {
21145 slist<int> s; return 0;
21146   ;
21147   return 0;
21148 }
21149 _ACEOF
21150 rm -f conftest.$ac_objext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21152   (eval $ac_compile) 2>&5
21153   ac_status=$?
21154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); } &&
21156          { ac_try='test -s conftest.$ac_objext'
21157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158   (eval $ac_try) 2>&5
21159   ac_status=$?
21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); }; }; then
21162   ac_cv_cxx_have_ext_slist=gnu
21163 else
21164   echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167 ac_cv_cxx_have_ext_slist=no
21168 fi
21169 rm -f conftest.$ac_objext conftest.$ac_ext
21170
21171   ac_ext=c
21172 ac_cpp='$CPP $CPPFLAGS'
21173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21176
21177
21178 fi
21179 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21180 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21181 if test "$ac_cv_cxx_have_ext_slist" = std; then
21182
21183 cat >>confdefs.h <<\_ACEOF
21184 #define HAVE_EXT_SLIST std
21185 _ACEOF
21186
21187 fi
21188 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21189
21190 cat >>confdefs.h <<\_ACEOF
21191 #define HAVE_EXT_SLIST gnu
21192 _ACEOF
21193
21194 fi
21195
21196 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21197 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21198 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21199   echo $ECHO_N "(cached) $ECHO_C" >&6
21200 else
21201
21202
21203
21204   ac_ext=cc
21205 ac_cpp='$CXXCPP $CPPFLAGS'
21206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21209
21210   cat >conftest.$ac_ext <<_ACEOF
21211 #line $LINENO "configure"
21212 /* confdefs.h.  */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h.  */
21217 #include <iterator>
21218 #ifdef HAVE_NAMESPACES
21219 using namespace std;
21220 #endif
21221 int
21222 main ()
21223 {
21224 iterator<int,int,int> t; return 0;
21225   ;
21226   return 0;
21227 }
21228 _ACEOF
21229 rm -f conftest.$ac_objext
21230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21231   (eval $ac_compile) 2>&5
21232   ac_status=$?
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); } &&
21235          { ac_try='test -s conftest.$ac_objext'
21236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237   (eval $ac_try) 2>&5
21238   ac_status=$?
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); }; }; then
21241   ac_cv_cxx_have_std_iterator=yes
21242 else
21243   echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246 ac_cv_cxx_have_std_iterator=no
21247 fi
21248 rm -f conftest.$ac_objext conftest.$ac_ext
21249   ac_ext=c
21250 ac_cpp='$CPP $CPPFLAGS'
21251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21254
21255
21256 fi
21257 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21258 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21259 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21260
21261 cat >>confdefs.h <<\_ACEOF
21262 #define HAVE_STD_ITERATOR
21263 _ACEOF
21264
21265 fi
21266
21267 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21268 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21269 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21270   echo $ECHO_N "(cached) $ECHO_C" >&6
21271 else
21272
21273
21274
21275   ac_ext=cc
21276 ac_cpp='$CXXCPP $CPPFLAGS'
21277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21280
21281   cat >conftest.$ac_ext <<_ACEOF
21282 #line $LINENO "configure"
21283 /* confdefs.h.  */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h.  */
21288 #include <iterator>
21289 #ifdef HAVE_NAMESPACES
21290 using namespace std;
21291 #endif
21292 int
21293 main ()
21294 {
21295 bidirectional_iterator<int,int> t; return 0;
21296   ;
21297   return 0;
21298 }
21299 _ACEOF
21300 rm -f conftest.$ac_objext
21301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21302   (eval $ac_compile) 2>&5
21303   ac_status=$?
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); } &&
21306          { ac_try='test -s conftest.$ac_objext'
21307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308   (eval $ac_try) 2>&5
21309   ac_status=$?
21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311   (exit $ac_status); }; }; then
21312   ac_cv_cxx_have_bi_iterator=yes
21313 else
21314   echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317 ac_cv_cxx_have_bi_iterator=no
21318 fi
21319 rm -f conftest.$ac_objext conftest.$ac_ext
21320   ac_ext=c
21321 ac_cpp='$CPP $CPPFLAGS'
21322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21325
21326
21327 fi
21328 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21329 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21330 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21331
21332 cat >>confdefs.h <<\_ACEOF
21333 #define HAVE_BI_ITERATOR
21334 _ACEOF
21335
21336 fi
21337
21338 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21339 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21340 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21341   echo $ECHO_N "(cached) $ECHO_C" >&6
21342 else
21343
21344
21345
21346   ac_ext=cc
21347 ac_cpp='$CXXCPP $CPPFLAGS'
21348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21351
21352   cat >conftest.$ac_ext <<_ACEOF
21353 #line $LINENO "configure"
21354 /* confdefs.h.  */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h.  */
21359 #include <iterator>
21360 #ifdef HAVE_NAMESPACES
21361 using namespace std;
21362 #endif
21363 int
21364 main ()
21365 {
21366 forward_iterator<int,int> t; return 0;
21367   ;
21368   return 0;
21369 }
21370 _ACEOF
21371 rm -f conftest.$ac_objext
21372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21373   (eval $ac_compile) 2>&5
21374   ac_status=$?
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); } &&
21377          { ac_try='test -s conftest.$ac_objext'
21378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379   (eval $ac_try) 2>&5
21380   ac_status=$?
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); }; }; then
21383   ac_cv_cxx_have_fwd_iterator=yes
21384 else
21385   echo "$as_me: failed program was:" >&5
21386 sed 's/^/| /' conftest.$ac_ext >&5
21387
21388 ac_cv_cxx_have_fwd_iterator=no
21389 fi
21390 rm -f conftest.$ac_objext conftest.$ac_ext
21391   ac_ext=c
21392 ac_cpp='$CPP $CPPFLAGS'
21393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21396
21397
21398 fi
21399 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21400 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21401 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21402
21403 cat >>confdefs.h <<\_ACEOF
21404 #define HAVE_FWD_ITERATOR
21405 _ACEOF
21406
21407 fi
21408
21409
21410 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21411 # for constant arguments.  Useless!
21412 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21413 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21414 if test "${ac_cv_working_alloca_h+set}" = set; then
21415   echo $ECHO_N "(cached) $ECHO_C" >&6
21416 else
21417   cat >conftest.$ac_ext <<_ACEOF
21418 #line $LINENO "configure"
21419 /* confdefs.h.  */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h.  */
21424 #include <alloca.h>
21425 int
21426 main ()
21427 {
21428 char *p = (char *) alloca (2 * sizeof (int));
21429   ;
21430   return 0;
21431 }
21432 _ACEOF
21433 rm -f conftest.$ac_objext conftest$ac_exeext
21434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21435   (eval $ac_link) 2>&5
21436   ac_status=$?
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); } &&
21439          { ac_try='test -s conftest$ac_exeext'
21440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441   (eval $ac_try) 2>&5
21442   ac_status=$?
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); }; }; then
21445   ac_cv_working_alloca_h=yes
21446 else
21447   echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21449
21450 ac_cv_working_alloca_h=no
21451 fi
21452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21453 fi
21454 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21455 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21456 if test $ac_cv_working_alloca_h = yes; then
21457
21458 cat >>confdefs.h <<\_ACEOF
21459 #define HAVE_ALLOCA_H 1
21460 _ACEOF
21461
21462 fi
21463
21464 echo "$as_me:$LINENO: checking for alloca" >&5
21465 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21466 if test "${ac_cv_func_alloca_works+set}" = set; then
21467   echo $ECHO_N "(cached) $ECHO_C" >&6
21468 else
21469   cat >conftest.$ac_ext <<_ACEOF
21470 #line $LINENO "configure"
21471 /* confdefs.h.  */
21472 _ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h.  */
21476 #ifdef __GNUC__
21477 # define alloca __builtin_alloca
21478 #else
21479 # ifdef _MSC_VER
21480 #  include <malloc.h>
21481 #  define alloca _alloca
21482 # else
21483 #  if HAVE_ALLOCA_H
21484 #   include <alloca.h>
21485 #  else
21486 #   ifdef _AIX
21487  #pragma alloca
21488 #   else
21489 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21490 char *alloca ();
21491 #    endif
21492 #   endif
21493 #  endif
21494 # endif
21495 #endif
21496
21497 int
21498 main ()
21499 {
21500 char *p = (char *) alloca (1);
21501   ;
21502   return 0;
21503 }
21504 _ACEOF
21505 rm -f conftest.$ac_objext conftest$ac_exeext
21506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21507   (eval $ac_link) 2>&5
21508   ac_status=$?
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); } &&
21511          { ac_try='test -s conftest$ac_exeext'
21512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513   (eval $ac_try) 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); }; }; then
21517   ac_cv_func_alloca_works=yes
21518 else
21519   echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21521
21522 ac_cv_func_alloca_works=no
21523 fi
21524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21525 fi
21526 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21527 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21528
21529 if test $ac_cv_func_alloca_works = yes; then
21530
21531 cat >>confdefs.h <<\_ACEOF
21532 #define HAVE_ALLOCA 1
21533 _ACEOF
21534
21535 else
21536   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21537 # that cause trouble.  Some versions do not even contain alloca or
21538 # contain a buggy version.  If you still want to use their alloca,
21539 # use ar to extract alloca.o from them instead of compiling alloca.c.
21540
21541 ALLOCA=alloca.$ac_objext
21542
21543 cat >>confdefs.h <<\_ACEOF
21544 #define C_ALLOCA 1
21545 _ACEOF
21546
21547
21548 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21549 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21550 if test "${ac_cv_os_cray+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 #if defined(CRAY) && ! defined(CRAY2)
21561 webecray
21562 #else
21563 wenotbecray
21564 #endif
21565
21566 _ACEOF
21567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21568   $EGREP "webecray" >/dev/null 2>&1; then
21569   ac_cv_os_cray=yes
21570 else
21571   ac_cv_os_cray=no
21572 fi
21573 rm -f conftest*
21574
21575 fi
21576 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21577 echo "${ECHO_T}$ac_cv_os_cray" >&6
21578 if test $ac_cv_os_cray = yes; then
21579   for ac_func in _getb67 GETB67 getb67; do
21580     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21581 echo "$as_me:$LINENO: checking for $ac_func" >&5
21582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21583 if eval "test \"\${$as_ac_var+set}\" = set"; then
21584   echo $ECHO_N "(cached) $ECHO_C" >&6
21585 else
21586   cat >conftest.$ac_ext <<_ACEOF
21587 #line $LINENO "configure"
21588 /* confdefs.h.  */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h.  */
21593 /* System header to define __stub macros and hopefully few prototypes,
21594     which can conflict with char $ac_func (); below.
21595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21596     <limits.h> exists even on freestanding compilers.  */
21597 #ifdef __STDC__
21598 # include <limits.h>
21599 #else
21600 # include <assert.h>
21601 #endif
21602 /* Override any gcc2 internal prototype to avoid an error.  */
21603 #ifdef __cplusplus
21604 extern "C"
21605 {
21606 #endif
21607 /* We use char because int might match the return type of a gcc2
21608    builtin and then its argument prototype would still apply.  */
21609 char $ac_func ();
21610 /* The GNU C library defines this for functions which it implements
21611     to always fail with ENOSYS.  Some functions are actually named
21612     something starting with __ and the normal name is an alias.  */
21613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21614 choke me
21615 #else
21616 char (*f) () = $ac_func;
21617 #endif
21618 #ifdef __cplusplus
21619 }
21620 #endif
21621
21622 int
21623 main ()
21624 {
21625 return f != $ac_func;
21626   ;
21627   return 0;
21628 }
21629 _ACEOF
21630 rm -f conftest.$ac_objext conftest$ac_exeext
21631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21632   (eval $ac_link) 2>&5
21633   ac_status=$?
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); } &&
21636          { ac_try='test -s conftest$ac_exeext'
21637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638   (eval $ac_try) 2>&5
21639   ac_status=$?
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); }; }; then
21642   eval "$as_ac_var=yes"
21643 else
21644   echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21646
21647 eval "$as_ac_var=no"
21648 fi
21649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21650 fi
21651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21653 if test `eval echo '${'$as_ac_var'}'` = yes; then
21654
21655 cat >>confdefs.h <<_ACEOF
21656 #define CRAY_STACKSEG_END $ac_func
21657 _ACEOF
21658
21659     break
21660 fi
21661
21662   done
21663 fi
21664
21665 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21666 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21667 if test "${ac_cv_c_stack_direction+set}" = set; then
21668   echo $ECHO_N "(cached) $ECHO_C" >&6
21669 else
21670   if test "$cross_compiling" = yes; then
21671   ac_cv_c_stack_direction=0
21672 else
21673   cat >conftest.$ac_ext <<_ACEOF
21674 #line $LINENO "configure"
21675 /* confdefs.h.  */
21676 _ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h.  */
21680 int
21681 find_stack_direction ()
21682 {
21683   static char *addr = 0;
21684   auto char dummy;
21685   if (addr == 0)
21686     {
21687       addr = &dummy;
21688       return find_stack_direction ();
21689     }
21690   else
21691     return (&dummy > addr) ? 1 : -1;
21692 }
21693
21694 int
21695 main ()
21696 {
21697   exit (find_stack_direction () < 0);
21698 }
21699 _ACEOF
21700 rm -f conftest$ac_exeext
21701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21702   (eval $ac_link) 2>&5
21703   ac_status=$?
21704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707   (eval $ac_try) 2>&5
21708   ac_status=$?
21709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710   (exit $ac_status); }; }; then
21711   ac_cv_c_stack_direction=1
21712 else
21713   echo "$as_me: program exited with status $ac_status" >&5
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21716
21717 ( exit $ac_status )
21718 ac_cv_c_stack_direction=-1
21719 fi
21720 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21721 fi
21722 fi
21723 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21724 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21725
21726 cat >>confdefs.h <<_ACEOF
21727 #define STACK_DIRECTION $ac_cv_c_stack_direction
21728 _ACEOF
21729
21730
21731 fi
21732
21733 if test $ac_cv_c_compiler_gnu = yes; then
21734     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21735 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21736 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21737   echo $ECHO_N "(cached) $ECHO_C" >&6
21738 else
21739     ac_pattern="Autoconf.*'x'"
21740   cat >conftest.$ac_ext <<_ACEOF
21741 #line $LINENO "configure"
21742 /* confdefs.h.  */
21743 _ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h.  */
21747 #include <sgtty.h>
21748 Autoconf TIOCGETP
21749 _ACEOF
21750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21751   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21752   ac_cv_prog_gcc_traditional=yes
21753 else
21754   ac_cv_prog_gcc_traditional=no
21755 fi
21756 rm -f conftest*
21757
21758
21759   if test $ac_cv_prog_gcc_traditional = no; then
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 #include <termio.h>
21768 Autoconf TCGETA
21769 _ACEOF
21770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21771   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21772   ac_cv_prog_gcc_traditional=yes
21773 fi
21774 rm -f conftest*
21775
21776   fi
21777 fi
21778 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21779 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21780   if test $ac_cv_prog_gcc_traditional = yes; then
21781     CC="$CC -traditional"
21782   fi
21783 fi
21784
21785 echo "$as_me:$LINENO: checking for working memcmp" >&5
21786 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21787 if test "${ac_cv_func_memcmp_working+set}" = set; then
21788   echo $ECHO_N "(cached) $ECHO_C" >&6
21789 else
21790   if test "$cross_compiling" = yes; then
21791   ac_cv_func_memcmp_working=no
21792 else
21793   cat >conftest.$ac_ext <<_ACEOF
21794 #line $LINENO "configure"
21795 /* confdefs.h.  */
21796 _ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h.  */
21800
21801 int
21802 main ()
21803 {
21804
21805   /* Some versions of memcmp are not 8-bit clean.  */
21806   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21807   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21808     exit (1);
21809
21810   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21811      or more and with at least one buffer not starting on a 4-byte boundary.
21812      William Lewis provided this test program.   */
21813   {
21814     char foo[21];
21815     char bar[21];
21816     int i;
21817     for (i = 0; i < 4; i++)
21818       {
21819         char *a = foo + i;
21820         char *b = bar + i;
21821         strcpy (a, "--------01111111");
21822         strcpy (b, "--------10000000");
21823         if (memcmp (a, b, 16) >= 0)
21824           exit (1);
21825       }
21826     exit (0);
21827   }
21828
21829   ;
21830   return 0;
21831 }
21832 _ACEOF
21833 rm -f conftest$ac_exeext
21834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21835   (eval $ac_link) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840   (eval $ac_try) 2>&5
21841   ac_status=$?
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); }; }; then
21844   ac_cv_func_memcmp_working=yes
21845 else
21846   echo "$as_me: program exited with status $ac_status" >&5
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21849
21850 ( exit $ac_status )
21851 ac_cv_func_memcmp_working=no
21852 fi
21853 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21854 fi
21855 fi
21856 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21857 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21858 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21859
21860
21861
21862 for ac_header in stdlib.h unistd.h
21863 do
21864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21866   echo "$as_me:$LINENO: checking for $ac_header" >&5
21867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21869   echo $ECHO_N "(cached) $ECHO_C" >&6
21870 fi
21871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21873 else
21874   # Is the header compilable?
21875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21877 cat >conftest.$ac_ext <<_ACEOF
21878 #line $LINENO "configure"
21879 /* confdefs.h.  */
21880 _ACEOF
21881 cat confdefs.h >>conftest.$ac_ext
21882 cat >>conftest.$ac_ext <<_ACEOF
21883 /* end confdefs.h.  */
21884 $ac_includes_default
21885 #include <$ac_header>
21886 _ACEOF
21887 rm -f conftest.$ac_objext
21888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21889   (eval $ac_compile) 2>&5
21890   ac_status=$?
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); } &&
21893          { ac_try='test -s conftest.$ac_objext'
21894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895   (eval $ac_try) 2>&5
21896   ac_status=$?
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); }; }; then
21899   ac_header_compiler=yes
21900 else
21901   echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904 ac_header_compiler=no
21905 fi
21906 rm -f conftest.$ac_objext conftest.$ac_ext
21907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21908 echo "${ECHO_T}$ac_header_compiler" >&6
21909
21910 # Is the header present?
21911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21913 cat >conftest.$ac_ext <<_ACEOF
21914 #line $LINENO "configure"
21915 /* confdefs.h.  */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h.  */
21920 #include <$ac_header>
21921 _ACEOF
21922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21924   ac_status=$?
21925   grep -v '^ *+' conftest.er1 >conftest.err
21926   rm -f conftest.er1
21927   cat conftest.err >&5
21928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929   (exit $ac_status); } >/dev/null; then
21930   if test -s conftest.err; then
21931     ac_cpp_err=$ac_c_preproc_warn_flag
21932   else
21933     ac_cpp_err=
21934   fi
21935 else
21936   ac_cpp_err=yes
21937 fi
21938 if test -z "$ac_cpp_err"; then
21939   ac_header_preproc=yes
21940 else
21941   echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944   ac_header_preproc=no
21945 fi
21946 rm -f conftest.err conftest.$ac_ext
21947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21948 echo "${ECHO_T}$ac_header_preproc" >&6
21949
21950 # So?  What about this header?
21951 case $ac_header_compiler:$ac_header_preproc in
21952   yes:no )
21953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21957     (
21958       cat <<\_ASBOX
21959 ## ------------------------------------ ##
21960 ## Report this to bug-autoconf@gnu.org. ##
21961 ## ------------------------------------ ##
21962 _ASBOX
21963     ) |
21964       sed "s/^/$as_me: WARNING:     /" >&2
21965     ;;
21966   no:yes )
21967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21969     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21973     (
21974       cat <<\_ASBOX
21975 ## ------------------------------------ ##
21976 ## Report this to bug-autoconf@gnu.org. ##
21977 ## ------------------------------------ ##
21978 _ASBOX
21979     ) |
21980       sed "s/^/$as_me: WARNING:     /" >&2
21981     ;;
21982 esac
21983 echo "$as_me:$LINENO: checking for $ac_header" >&5
21984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21986   echo $ECHO_N "(cached) $ECHO_C" >&6
21987 else
21988   eval "$as_ac_Header=$ac_header_preproc"
21989 fi
21990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21992
21993 fi
21994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21995   cat >>confdefs.h <<_ACEOF
21996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21997 _ACEOF
21998
21999 fi
22000
22001 done
22002
22003
22004 for ac_func in getpagesize
22005 do
22006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22007 echo "$as_me:$LINENO: checking for $ac_func" >&5
22008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22009 if eval "test \"\${$as_ac_var+set}\" = set"; then
22010   echo $ECHO_N "(cached) $ECHO_C" >&6
22011 else
22012   cat >conftest.$ac_ext <<_ACEOF
22013 #line $LINENO "configure"
22014 /* confdefs.h.  */
22015 _ACEOF
22016 cat confdefs.h >>conftest.$ac_ext
22017 cat >>conftest.$ac_ext <<_ACEOF
22018 /* end confdefs.h.  */
22019 /* System header to define __stub macros and hopefully few prototypes,
22020     which can conflict with char $ac_func (); below.
22021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22022     <limits.h> exists even on freestanding compilers.  */
22023 #ifdef __STDC__
22024 # include <limits.h>
22025 #else
22026 # include <assert.h>
22027 #endif
22028 /* Override any gcc2 internal prototype to avoid an error.  */
22029 #ifdef __cplusplus
22030 extern "C"
22031 {
22032 #endif
22033 /* We use char because int might match the return type of a gcc2
22034    builtin and then its argument prototype would still apply.  */
22035 char $ac_func ();
22036 /* The GNU C library defines this for functions which it implements
22037     to always fail with ENOSYS.  Some functions are actually named
22038     something starting with __ and the normal name is an alias.  */
22039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22040 choke me
22041 #else
22042 char (*f) () = $ac_func;
22043 #endif
22044 #ifdef __cplusplus
22045 }
22046 #endif
22047
22048 int
22049 main ()
22050 {
22051 return f != $ac_func;
22052   ;
22053   return 0;
22054 }
22055 _ACEOF
22056 rm -f conftest.$ac_objext conftest$ac_exeext
22057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22058   (eval $ac_link) 2>&5
22059   ac_status=$?
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); } &&
22062          { ac_try='test -s conftest$ac_exeext'
22063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064   (eval $ac_try) 2>&5
22065   ac_status=$?
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); }; }; then
22068   eval "$as_ac_var=yes"
22069 else
22070   echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22072
22073 eval "$as_ac_var=no"
22074 fi
22075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22076 fi
22077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22079 if test `eval echo '${'$as_ac_var'}'` = yes; then
22080   cat >>confdefs.h <<_ACEOF
22081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22082 _ACEOF
22083
22084 fi
22085 done
22086
22087 echo "$as_me:$LINENO: checking for working mmap" >&5
22088 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22089 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22090   echo $ECHO_N "(cached) $ECHO_C" >&6
22091 else
22092   if test "$cross_compiling" = yes; then
22093   ac_cv_func_mmap_fixed_mapped=no
22094 else
22095   cat >conftest.$ac_ext <<_ACEOF
22096 #line $LINENO "configure"
22097 /* confdefs.h.  */
22098 _ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h.  */
22102 $ac_includes_default
22103 /* malloc might have been renamed as rpl_malloc. */
22104 #undef malloc
22105
22106 /* Thanks to Mike Haertel and Jim Avera for this test.
22107    Here is a matrix of mmap possibilities:
22108         mmap private not fixed
22109         mmap private fixed at somewhere currently unmapped
22110         mmap private fixed at somewhere already mapped
22111         mmap shared not fixed
22112         mmap shared fixed at somewhere currently unmapped
22113         mmap shared fixed at somewhere already mapped
22114    For private mappings, we should verify that changes cannot be read()
22115    back from the file, nor mmap's back from the file at a different
22116    address.  (There have been systems where private was not correctly
22117    implemented like the infamous i386 svr4.0, and systems where the
22118    VM page cache was not coherent with the file system buffer cache
22119    like early versions of FreeBSD and possibly contemporary NetBSD.)
22120    For shared mappings, we should conversely verify that changes get
22121    propagated back to all the places they're supposed to be.
22122
22123    Grep wants private fixed already mapped.
22124    The main things grep needs to know about mmap are:
22125    * does it exist and is it safe to write into the mmap'd area
22126    * how to use it (BSD variants)  */
22127
22128 #include <fcntl.h>
22129 #include <sys/mman.h>
22130
22131 #if !STDC_HEADERS && !HAVE_STDLIB_H
22132 char *malloc ();
22133 #endif
22134
22135 /* This mess was copied from the GNU getpagesize.h.  */
22136 #if !HAVE_GETPAGESIZE
22137 /* Assume that all systems that can run configure have sys/param.h.  */
22138 # if !HAVE_SYS_PARAM_H
22139 #  define HAVE_SYS_PARAM_H 1
22140 # endif
22141
22142 # ifdef _SC_PAGESIZE
22143 #  define getpagesize() sysconf(_SC_PAGESIZE)
22144 # else /* no _SC_PAGESIZE */
22145 #  if HAVE_SYS_PARAM_H
22146 #   include <sys/param.h>
22147 #   ifdef EXEC_PAGESIZE
22148 #    define getpagesize() EXEC_PAGESIZE
22149 #   else /* no EXEC_PAGESIZE */
22150 #    ifdef NBPG
22151 #     define getpagesize() NBPG * CLSIZE
22152 #     ifndef CLSIZE
22153 #      define CLSIZE 1
22154 #     endif /* no CLSIZE */
22155 #    else /* no NBPG */
22156 #     ifdef NBPC
22157 #      define getpagesize() NBPC
22158 #     else /* no NBPC */
22159 #      ifdef PAGESIZE
22160 #       define getpagesize() PAGESIZE
22161 #      endif /* PAGESIZE */
22162 #     endif /* no NBPC */
22163 #    endif /* no NBPG */
22164 #   endif /* no EXEC_PAGESIZE */
22165 #  else /* no HAVE_SYS_PARAM_H */
22166 #   define getpagesize() 8192   /* punt totally */
22167 #  endif /* no HAVE_SYS_PARAM_H */
22168 # endif /* no _SC_PAGESIZE */
22169
22170 #endif /* no HAVE_GETPAGESIZE */
22171
22172 int
22173 main ()
22174 {
22175   char *data, *data2, *data3;
22176   int i, pagesize;
22177   int fd;
22178
22179   pagesize = getpagesize ();
22180
22181   /* First, make a file with some known garbage in it. */
22182   data = (char *) malloc (pagesize);
22183   if (!data)
22184     exit (1);
22185   for (i = 0; i < pagesize; ++i)
22186     *(data + i) = rand ();
22187   umask (0);
22188   fd = creat ("conftest.mmap", 0600);
22189   if (fd < 0)
22190     exit (1);
22191   if (write (fd, data, pagesize) != pagesize)
22192     exit (1);
22193   close (fd);
22194
22195   /* Next, try to mmap the file at a fixed address which already has
22196      something else allocated at it.  If we can, also make sure that
22197      we see the same garbage.  */
22198   fd = open ("conftest.mmap", O_RDWR);
22199   if (fd < 0)
22200     exit (1);
22201   data2 = (char *) malloc (2 * pagesize);
22202   if (!data2)
22203     exit (1);
22204   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22205   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22206                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22207     exit (1);
22208   for (i = 0; i < pagesize; ++i)
22209     if (*(data + i) != *(data2 + i))
22210       exit (1);
22211
22212   /* Finally, make sure that changes to the mapped area do not
22213      percolate back to the file as seen by read().  (This is a bug on
22214      some variants of i386 svr4.0.)  */
22215   for (i = 0; i < pagesize; ++i)
22216     *(data2 + i) = *(data2 + i) + 1;
22217   data3 = (char *) malloc (pagesize);
22218   if (!data3)
22219     exit (1);
22220   if (read (fd, data3, pagesize) != pagesize)
22221     exit (1);
22222   for (i = 0; i < pagesize; ++i)
22223     if (*(data + i) != *(data3 + i))
22224       exit (1);
22225   close (fd);
22226   exit (0);
22227 }
22228 _ACEOF
22229 rm -f conftest$ac_exeext
22230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22231   (eval $ac_link) 2>&5
22232   ac_status=$?
22233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236   (eval $ac_try) 2>&5
22237   ac_status=$?
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); }; }; then
22240   ac_cv_func_mmap_fixed_mapped=yes
22241 else
22242   echo "$as_me: program exited with status $ac_status" >&5
22243 echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22245
22246 ( exit $ac_status )
22247 ac_cv_func_mmap_fixed_mapped=no
22248 fi
22249 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22250 fi
22251 fi
22252 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22253 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22254 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22255
22256 cat >>confdefs.h <<\_ACEOF
22257 #define HAVE_MMAP 1
22258 _ACEOF
22259
22260 fi
22261 rm -f conftest.mmap
22262
22263 echo "$as_me:$LINENO: checking for mmap of files" >&5
22264 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22265 if test "${ac_cv_func_mmap_file+set}" = set; then
22266   echo $ECHO_N "(cached) $ECHO_C" >&6
22267 else
22268
22269
22270   ac_ext=c
22271 ac_cpp='$CPP $CPPFLAGS'
22272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22275
22276   if test "$cross_compiling" = yes; then
22277   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22278 See \`config.log' for more details." >&5
22279 echo "$as_me: error: cannot run test program while cross compiling
22280 See \`config.log' for more details." >&2;}
22281    { (exit 1); exit 1; }; }
22282 else
22283   cat >conftest.$ac_ext <<_ACEOF
22284 #line $LINENO "configure"
22285 /* confdefs.h.  */
22286 _ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h.  */
22290
22291 #ifdef HAVE_SYS_TYPES_H
22292 #include <sys/types.h>
22293 #endif
22294
22295 #ifdef HAVE_SYS_MMAN_H
22296 #include <sys/mman.h>
22297 #endif
22298
22299 #ifdef HAVE_FCNTL_H
22300 #include <fcntl.h>
22301 #endif
22302
22303   int fd;
22304   int main () {
22305   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22306 _ACEOF
22307 rm -f conftest$ac_exeext
22308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22309   (eval $ac_link) 2>&5
22310   ac_status=$?
22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314   (eval $ac_try) 2>&5
22315   ac_status=$?
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); }; }; then
22318   ac_cv_func_mmap_file=yes
22319 else
22320   echo "$as_me: program exited with status $ac_status" >&5
22321 echo "$as_me: failed program was:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22323
22324 ( exit $ac_status )
22325 ac_cv_func_mmap_file=no
22326 fi
22327 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22328 fi
22329   ac_ext=c
22330 ac_cpp='$CPP $CPPFLAGS'
22331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22334
22335
22336 fi
22337 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22338 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22339 if test "$ac_cv_func_mmap_file" = yes; then
22340
22341 cat >>confdefs.h <<\_ACEOF
22342 #define HAVE_MMAP_FILE
22343 _ACEOF
22344
22345    MMAP_FILE=yes
22346
22347 fi
22348
22349 if test ${ac_cv_func_mmap_file} = "no"
22350 then
22351         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22352 echo "$as_me: error: mmap() of files required but not found" >&2;}
22353    { (exit 1); exit 1; }; }
22354 fi
22355 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22356 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22357 if test "${ac_cv_header_mmap_anon+set}" = set; then
22358   echo $ECHO_N "(cached) $ECHO_C" >&6
22359 else
22360
22361
22362   ac_ext=c
22363 ac_cpp='$CPP $CPPFLAGS'
22364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22367
22368   cat >conftest.$ac_ext <<_ACEOF
22369 #line $LINENO "configure"
22370 /* confdefs.h.  */
22371 _ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h.  */
22375 #include <sys/mman.h>
22376   #include <unistd.h>
22377   #include <fcntl.h>
22378 int
22379 main ()
22380 {
22381 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22382   ;
22383   return 0;
22384 }
22385 _ACEOF
22386 rm -f conftest.$ac_objext
22387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22388   (eval $ac_compile) 2>&5
22389   ac_status=$?
22390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391   (exit $ac_status); } &&
22392          { ac_try='test -s conftest.$ac_objext'
22393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394   (eval $ac_try) 2>&5
22395   ac_status=$?
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); }; }; then
22398   ac_cv_header_mmap_anon=yes
22399 else
22400   echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.$ac_ext >&5
22402
22403 ac_cv_header_mmap_anon=no
22404 fi
22405 rm -f conftest.$ac_objext conftest.$ac_ext
22406   ac_ext=c
22407 ac_cpp='$CPP $CPPFLAGS'
22408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22411
22412
22413 fi
22414 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22415 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22416 if test "$ac_cv_header_mmap_anon" = yes; then
22417
22418 cat >>confdefs.h <<\_ACEOF
22419 #define HAVE_MMAP_ANONYMOUS
22420 _ACEOF
22421
22422 fi
22423
22424 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22425 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22426 if test "${ac_cv_type_signal+set}" = set; then
22427   echo $ECHO_N "(cached) $ECHO_C" >&6
22428 else
22429   cat >conftest.$ac_ext <<_ACEOF
22430 #line $LINENO "configure"
22431 /* confdefs.h.  */
22432 _ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h.  */
22436 #include <sys/types.h>
22437 #include <signal.h>
22438 #ifdef signal
22439 # undef signal
22440 #endif
22441 #ifdef __cplusplus
22442 extern "C" void (*signal (int, void (*)(int)))(int);
22443 #else
22444 void (*signal ()) ();
22445 #endif
22446
22447 int
22448 main ()
22449 {
22450 int i;
22451   ;
22452   return 0;
22453 }
22454 _ACEOF
22455 rm -f conftest.$ac_objext
22456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22457   (eval $ac_compile) 2>&5
22458   ac_status=$?
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); } &&
22461          { ac_try='test -s conftest.$ac_objext'
22462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463   (eval $ac_try) 2>&5
22464   ac_status=$?
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); }; }; then
22467   ac_cv_type_signal=void
22468 else
22469   echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22471
22472 ac_cv_type_signal=int
22473 fi
22474 rm -f conftest.$ac_objext conftest.$ac_ext
22475 fi
22476 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22477 echo "${ECHO_T}$ac_cv_type_signal" >&6
22478
22479 cat >>confdefs.h <<_ACEOF
22480 #define RETSIGTYPE $ac_cv_type_signal
22481 _ACEOF
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22496 do
22497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22498 echo "$as_me:$LINENO: checking for $ac_func" >&5
22499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22500 if eval "test \"\${$as_ac_var+set}\" = set"; then
22501   echo $ECHO_N "(cached) $ECHO_C" >&6
22502 else
22503   cat >conftest.$ac_ext <<_ACEOF
22504 #line $LINENO "configure"
22505 /* confdefs.h.  */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h.  */
22510 /* System header to define __stub macros and hopefully few prototypes,
22511     which can conflict with char $ac_func (); below.
22512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22513     <limits.h> exists even on freestanding compilers.  */
22514 #ifdef __STDC__
22515 # include <limits.h>
22516 #else
22517 # include <assert.h>
22518 #endif
22519 /* Override any gcc2 internal prototype to avoid an error.  */
22520 #ifdef __cplusplus
22521 extern "C"
22522 {
22523 #endif
22524 /* We use char because int might match the return type of a gcc2
22525    builtin and then its argument prototype would still apply.  */
22526 char $ac_func ();
22527 /* The GNU C library defines this for functions which it implements
22528     to always fail with ENOSYS.  Some functions are actually named
22529     something starting with __ and the normal name is an alias.  */
22530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22531 choke me
22532 #else
22533 char (*f) () = $ac_func;
22534 #endif
22535 #ifdef __cplusplus
22536 }
22537 #endif
22538
22539 int
22540 main ()
22541 {
22542 return f != $ac_func;
22543   ;
22544   return 0;
22545 }
22546 _ACEOF
22547 rm -f conftest.$ac_objext conftest$ac_exeext
22548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22549   (eval $ac_link) 2>&5
22550   ac_status=$?
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); } &&
22553          { ac_try='test -s conftest$ac_exeext'
22554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555   (eval $ac_try) 2>&5
22556   ac_status=$?
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); }; }; then
22559   eval "$as_ac_var=yes"
22560 else
22561   echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22563
22564 eval "$as_ac_var=no"
22565 fi
22566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22567 fi
22568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22570 if test `eval echo '${'$as_ac_var'}'` = yes; then
22571   cat >>confdefs.h <<_ACEOF
22572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22573 _ACEOF
22574
22575 fi
22576 done
22577
22578
22579
22580 echo "$as_me:$LINENO: checking for mmap" >&5
22581 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22582 if test "${ac_cv_func_mmap+set}" = set; then
22583   echo $ECHO_N "(cached) $ECHO_C" >&6
22584 else
22585   cat >conftest.$ac_ext <<_ACEOF
22586 #line $LINENO "configure"
22587 /* confdefs.h.  */
22588 _ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h.  */
22592 /* System header to define __stub macros and hopefully few prototypes,
22593     which can conflict with char mmap (); below.
22594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22595     <limits.h> exists even on freestanding compilers.  */
22596 #ifdef __STDC__
22597 # include <limits.h>
22598 #else
22599 # include <assert.h>
22600 #endif
22601 /* Override any gcc2 internal prototype to avoid an error.  */
22602 #ifdef __cplusplus
22603 extern "C"
22604 {
22605 #endif
22606 /* We use char because int might match the return type of a gcc2
22607    builtin and then its argument prototype would still apply.  */
22608 char mmap ();
22609 /* The GNU C library defines this for functions which it implements
22610     to always fail with ENOSYS.  Some functions are actually named
22611     something starting with __ and the normal name is an alias.  */
22612 #if defined (__stub_mmap) || defined (__stub___mmap)
22613 choke me
22614 #else
22615 char (*f) () = mmap;
22616 #endif
22617 #ifdef __cplusplus
22618 }
22619 #endif
22620
22621 int
22622 main ()
22623 {
22624 return f != mmap;
22625   ;
22626   return 0;
22627 }
22628 _ACEOF
22629 rm -f conftest.$ac_objext conftest$ac_exeext
22630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22631   (eval $ac_link) 2>&5
22632   ac_status=$?
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } &&
22635          { ac_try='test -s conftest$ac_exeext'
22636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22637   (eval $ac_try) 2>&5
22638   ac_status=$?
22639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640   (exit $ac_status); }; }; then
22641   ac_cv_func_mmap=yes
22642 else
22643   echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22645
22646 ac_cv_func_mmap=no
22647 fi
22648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22649 fi
22650 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22651 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22652 if test $ac_cv_func_mmap = yes; then
22653   :
22654 else
22655   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22656 echo "$as_me: error: Function mmap() required but not found" >&2;}
22657    { (exit 1); exit 1; }; }
22658 fi
22659
22660 echo "$as_me:$LINENO: checking for mprotect" >&5
22661 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22662 if test "${ac_cv_func_mprotect+set}" = set; then
22663   echo $ECHO_N "(cached) $ECHO_C" >&6
22664 else
22665   cat >conftest.$ac_ext <<_ACEOF
22666 #line $LINENO "configure"
22667 /* confdefs.h.  */
22668 _ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h.  */
22672 /* System header to define __stub macros and hopefully few prototypes,
22673     which can conflict with char mprotect (); below.
22674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22675     <limits.h> exists even on freestanding compilers.  */
22676 #ifdef __STDC__
22677 # include <limits.h>
22678 #else
22679 # include <assert.h>
22680 #endif
22681 /* Override any gcc2 internal prototype to avoid an error.  */
22682 #ifdef __cplusplus
22683 extern "C"
22684 {
22685 #endif
22686 /* We use char because int might match the return type of a gcc2
22687    builtin and then its argument prototype would still apply.  */
22688 char mprotect ();
22689 /* The GNU C library defines this for functions which it implements
22690     to always fail with ENOSYS.  Some functions are actually named
22691     something starting with __ and the normal name is an alias.  */
22692 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22693 choke me
22694 #else
22695 char (*f) () = mprotect;
22696 #endif
22697 #ifdef __cplusplus
22698 }
22699 #endif
22700
22701 int
22702 main ()
22703 {
22704 return f != mprotect;
22705   ;
22706   return 0;
22707 }
22708 _ACEOF
22709 rm -f conftest.$ac_objext conftest$ac_exeext
22710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22711   (eval $ac_link) 2>&5
22712   ac_status=$?
22713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714   (exit $ac_status); } &&
22715          { ac_try='test -s conftest$ac_exeext'
22716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717   (eval $ac_try) 2>&5
22718   ac_status=$?
22719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720   (exit $ac_status); }; }; then
22721   ac_cv_func_mprotect=yes
22722 else
22723   echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22725
22726 ac_cv_func_mprotect=no
22727 fi
22728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22729 fi
22730 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22731 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22732 if test $ac_cv_func_mprotect = yes; then
22733   :
22734 else
22735   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22736 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22737    { (exit 1); exit 1; }; }
22738 fi
22739
22740
22741
22742 # Check whether --enable-purify or --disable-purify was given.
22743 if test "${enable_purify+set}" = set; then
22744   enableval="$enable_purify"
22745
22746 else
22747   enableval="no"
22748 fi;
22749 if test ${enableval} = "no"
22750 then
22751         ENABLE_PURIFY=
22752
22753 else
22754         ENABLE_PURIFY=ENABLE_PURIFY=1
22755
22756 fi
22757
22758 # Check whether --enable-optimized or --disable-optimized was given.
22759 if test "${enable_optimized+set}" = set; then
22760   enableval="$enable_optimized"
22761
22762 else
22763   enableval=no
22764 fi;
22765 if test ${enableval} = "no"
22766 then
22767         ENABLE_OPTIMIZED=
22768
22769 else
22770         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22771
22772 fi
22773
22774 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22775 if test "${enable_spec2000+set}" = set; then
22776   enableval="$enable_spec2000"
22777
22778 else
22779   enableval=no
22780 fi;
22781 if test ${enableval} = "no"
22782 then
22783         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22784         then
22785                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22786
22787                 USE_SPEC=USE_SPEC=1
22788
22789         else
22790                 USE_SPEC=
22791
22792
22793         fi
22794 else
22795         if test ${enableval} = ""
22796         then
22797                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22798
22799         else
22800                 SPEC_ROOT=${enableval}
22801
22802         fi
22803         USE_SPEC=USE_SPEC=1
22804
22805 fi
22806
22807 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22808 if test "${enable_precompiled_bytecode+set}" = set; then
22809   enableval="$enable_precompiled_bytecode"
22810
22811 else
22812   enableval=no
22813 fi;
22814 if test ${enableval} = "no"
22815 then
22816         UPB=
22817
22818 else
22819         UPB=USE_PRECOMPILED_BYTECODE=1
22820
22821 fi
22822
22823
22824 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22825 if test "${enable_llc_diffs+set}" = set; then
22826   enableval="$enable_llc_diffs"
22827
22828 else
22829   enableval=yes
22830 fi;
22831 if test ${enableval} = "no"
22832 then
22833         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22834
22835 else
22836         DISABLE_LLC_DIFFS=
22837
22838 fi
22839
22840 # Check whether --enable-jit or --disable-jit was given.
22841 if test "${enable_jit+set}" = set; then
22842   enableval="$enable_jit"
22843
22844 else
22845   enableval=default
22846 fi;
22847
22848 if test ${enableval} = "no"
22849 then
22850         JIT=
22851
22852 else
22853         case $target in
22854                 *i*86*)
22855                         JIT=TARGET_HAS_JIT=1
22856
22857                         ;;
22858                 *sparc*)
22859                         JIT=TARGET_HAS_JIT=1
22860
22861                         ;;
22862                 *)
22863                         JIT=
22864
22865                         ;;
22866         esac
22867 fi
22868
22869
22870
22871 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22872 if test "${with_llvmgccdir+set}" = set; then
22873   withval="$with_llvmgccdir"
22874   LLVMGCCDIR=$withval
22875
22876 fi;
22877
22878
22879 # Check whether --with-bcrepos or --without-bcrepos was given.
22880 if test "${with_bcrepos+set}" = set; then
22881   withval="$with_bcrepos"
22882   BCR=$withval
22883
22884 else
22885   BCR=/home/vadve/lattner/LLVMPrograms
22886
22887 fi;
22888
22889
22890 # Check whether --with-papi or --without-papi was given.
22891 if test "${with_papi+set}" = set; then
22892   withval="$with_papi"
22893   PAPIDIR=$withval
22894
22895 else
22896   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22897
22898 fi;
22899
22900
22901 # Check whether --with-purify or --without-purify was given.
22902 if test "${with_purify+set}" = set; then
22903   withval="$with_purify"
22904   PURIFY=$withval
22905
22906 fi;
22907
22908
22909           ac_config_files="$ac_config_files Makefile.config"
22910 cat >confcache <<\_ACEOF
22911 # This file is a shell script that caches the results of configure
22912 # tests run on this system so they can be shared between configure
22913 # scripts and configure runs, see configure's option --config-cache.
22914 # It is not useful on other systems.  If it contains results you don't
22915 # want to keep, you may remove or edit it.
22916 #
22917 # config.status only pays attention to the cache file if you give it
22918 # the --recheck option to rerun configure.
22919 #
22920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22922 # following values.
22923
22924 _ACEOF
22925
22926 # The following way of writing the cache mishandles newlines in values,
22927 # but we know of no workaround that is simple, portable, and efficient.
22928 # So, don't put newlines in cache variables' values.
22929 # Ultrix sh set writes to stderr and can't be redirected directly,
22930 # and sets the high bit in the cache file unless we assign to the vars.
22931 {
22932   (set) 2>&1 |
22933     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22934     *ac_space=\ *)
22935       # `set' does not quote correctly, so add quotes (double-quote
22936       # substitution turns \\\\ into \\, and sed turns \\ into \).
22937       sed -n \
22938         "s/'/'\\\\''/g;
22939           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22940       ;;
22941     *)
22942       # `set' quotes correctly as required by POSIX, so do not add quotes.
22943       sed -n \
22944         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22945       ;;
22946     esac;
22947 } |
22948   sed '
22949      t clear
22950      : clear
22951      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22952      t end
22953      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22954      : end' >>confcache
22955 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22956   if test -w $cache_file; then
22957     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22958     cat confcache >$cache_file
22959   else
22960     echo "not updating unwritable cache $cache_file"
22961   fi
22962 fi
22963 rm -f confcache
22964
22965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22966 # Let make expand exec_prefix.
22967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22968
22969 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22970 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22971 # trailing colons and then remove the whole line if VPATH becomes empty
22972 # (actually we leave an empty line to preserve line numbers).
22973 if test "x$srcdir" = x.; then
22974   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22975 s/:*\$(srcdir):*/:/;
22976 s/:*\${srcdir}:*/:/;
22977 s/:*@srcdir@:*/:/;
22978 s/^\([^=]*=[    ]*\):*/\1/;
22979 s/:*$//;
22980 s/^[^=]*=[      ]*$//;
22981 }'
22982 fi
22983
22984 DEFS=-DHAVE_CONFIG_H
22985
22986 ac_libobjs=
22987 ac_ltlibobjs=
22988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22989   # 1. Remove the extension, and $U if already installed.
22990   ac_i=`echo "$ac_i" |
22991          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22992   # 2. Add them.
22993   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22994   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22995 done
22996 LIBOBJS=$ac_libobjs
22997
22998 LTLIBOBJS=$ac_ltlibobjs
22999
23000
23001
23002 : ${CONFIG_STATUS=./config.status}
23003 ac_clean_files_save=$ac_clean_files
23004 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23005 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23006 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23007 cat >$CONFIG_STATUS <<_ACEOF
23008 #! $SHELL
23009 # Generated by $as_me.
23010 # Run this file to recreate the current configuration.
23011 # Compiler output produced by configure, useful for debugging
23012 # configure, is in config.log if it exists.
23013
23014 debug=false
23015 ac_cs_recheck=false
23016 ac_cs_silent=false
23017 SHELL=\${CONFIG_SHELL-$SHELL}
23018 _ACEOF
23019
23020 cat >>$CONFIG_STATUS <<\_ACEOF
23021 ## --------------------- ##
23022 ## M4sh Initialization.  ##
23023 ## --------------------- ##
23024
23025 # Be Bourne compatible
23026 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23027   emulate sh
23028   NULLCMD=:
23029   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23030   # is contrary to our usage.  Disable this feature.
23031   alias -g '${1+"$@"}'='"$@"'
23032 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23033   set -o posix
23034 fi
23035
23036 # Support unset when possible.
23037 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23038   as_unset=unset
23039 else
23040   as_unset=false
23041 fi
23042
23043
23044 # Work around bugs in pre-3.0 UWIN ksh.
23045 $as_unset ENV MAIL MAILPATH
23046 PS1='$ '
23047 PS2='> '
23048 PS4='+ '
23049
23050 # NLS nuisances.
23051 for as_var in \
23052   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23053   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23054   LC_TELEPHONE LC_TIME
23055 do
23056   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23057     eval $as_var=C; export $as_var
23058   else
23059     $as_unset $as_var
23060   fi
23061 done
23062
23063 # Required to use basename.
23064 if expr a : '\(a\)' >/dev/null 2>&1; then
23065   as_expr=expr
23066 else
23067   as_expr=false
23068 fi
23069
23070 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23071   as_basename=basename
23072 else
23073   as_basename=false
23074 fi
23075
23076
23077 # Name of the executable.
23078 as_me=`$as_basename "$0" ||
23079 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23080          X"$0" : 'X\(//\)$' \| \
23081          X"$0" : 'X\(/\)$' \| \
23082          .     : '\(.\)' 2>/dev/null ||
23083 echo X/"$0" |
23084     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23085           /^X\/\(\/\/\)$/{ s//\1/; q; }
23086           /^X\/\(\/\).*/{ s//\1/; q; }
23087           s/.*/./; q'`
23088
23089
23090 # PATH needs CR, and LINENO needs CR and PATH.
23091 # Avoid depending upon Character Ranges.
23092 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23093 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23094 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23095 as_cr_digits='0123456789'
23096 as_cr_alnum=$as_cr_Letters$as_cr_digits
23097
23098 # The user is always right.
23099 if test "${PATH_SEPARATOR+set}" != set; then
23100   echo "#! /bin/sh" >conf$$.sh
23101   echo  "exit 0"   >>conf$$.sh
23102   chmod +x conf$$.sh
23103   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23104     PATH_SEPARATOR=';'
23105   else
23106     PATH_SEPARATOR=:
23107   fi
23108   rm -f conf$$.sh
23109 fi
23110
23111
23112   as_lineno_1=$LINENO
23113   as_lineno_2=$LINENO
23114   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23115   test "x$as_lineno_1" != "x$as_lineno_2" &&
23116   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23117   # Find who we are.  Look in the path if we contain no path at all
23118   # relative or not.
23119   case $0 in
23120     *[\\/]* ) as_myself=$0 ;;
23121     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23122 for as_dir in $PATH
23123 do
23124   IFS=$as_save_IFS
23125   test -z "$as_dir" && as_dir=.
23126   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23127 done
23128
23129        ;;
23130   esac
23131   # We did not find ourselves, most probably we were run as `sh COMMAND'
23132   # in which case we are not to be found in the path.
23133   if test "x$as_myself" = x; then
23134     as_myself=$0
23135   fi
23136   if test ! -f "$as_myself"; then
23137     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23138 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23139    { (exit 1); exit 1; }; }
23140   fi
23141   case $CONFIG_SHELL in
23142   '')
23143     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23144 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23145 do
23146   IFS=$as_save_IFS
23147   test -z "$as_dir" && as_dir=.
23148   for as_base in sh bash ksh sh5; do
23149          case $as_dir in
23150          /*)
23151            if ("$as_dir/$as_base" -c '
23152   as_lineno_1=$LINENO
23153   as_lineno_2=$LINENO
23154   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23155   test "x$as_lineno_1" != "x$as_lineno_2" &&
23156   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23157              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23158              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23159              CONFIG_SHELL=$as_dir/$as_base
23160              export CONFIG_SHELL
23161              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23162            fi;;
23163          esac
23164        done
23165 done
23166 ;;
23167   esac
23168
23169   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23170   # uniformly replaced by the line number.  The first 'sed' inserts a
23171   # line-number line before each line; the second 'sed' does the real
23172   # work.  The second script uses 'N' to pair each line-number line
23173   # with the numbered line, and appends trailing '-' during
23174   # substitution so that $LINENO is not a special case at line end.
23175   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23176   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23177   sed '=' <$as_myself |
23178     sed '
23179       N
23180       s,$,-,
23181       : loop
23182       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23183       t loop
23184       s,-$,,
23185       s,^['$as_cr_digits']*\n,,
23186     ' >$as_me.lineno &&
23187   chmod +x $as_me.lineno ||
23188     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23189 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23190    { (exit 1); exit 1; }; }
23191
23192   # Don't try to exec as it changes $[0], causing all sort of problems
23193   # (the dirname of $[0] is not the place where we might find the
23194   # original and so on.  Autoconf is especially sensible to this).
23195   . ./$as_me.lineno
23196   # Exit status is that of the last command.
23197   exit
23198 }
23199
23200
23201 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23202   *c*,-n*) ECHO_N= ECHO_C='
23203 ' ECHO_T='      ' ;;
23204   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23205   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23206 esac
23207
23208 if expr a : '\(a\)' >/dev/null 2>&1; then
23209   as_expr=expr
23210 else
23211   as_expr=false
23212 fi
23213
23214 rm -f conf$$ conf$$.exe conf$$.file
23215 echo >conf$$.file
23216 if ln -s conf$$.file conf$$ 2>/dev/null; then
23217   # We could just check for DJGPP; but this test a) works b) is more generic
23218   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23219   if test -f conf$$.exe; then
23220     # Don't use ln at all; we don't have any links
23221     as_ln_s='cp -p'
23222   else
23223     as_ln_s='ln -s'
23224   fi
23225 elif ln conf$$.file conf$$ 2>/dev/null; then
23226   as_ln_s=ln
23227 else
23228   as_ln_s='cp -p'
23229 fi
23230 rm -f conf$$ conf$$.exe conf$$.file
23231
23232 if mkdir -p . 2>/dev/null; then
23233   as_mkdir_p=:
23234 else
23235   as_mkdir_p=false
23236 fi
23237
23238 as_executable_p="test -f"
23239
23240 # Sed expression to map a string onto a valid CPP name.
23241 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23242
23243 # Sed expression to map a string onto a valid variable name.
23244 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23245
23246
23247 # IFS
23248 # We need space, tab and new line, in precisely that order.
23249 as_nl='
23250 '
23251 IFS="   $as_nl"
23252
23253 # CDPATH.
23254 $as_unset CDPATH
23255
23256 exec 6>&1
23257
23258 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23259 # report actual input values of CONFIG_FILES etc. instead of their
23260 # values after options handling.  Logging --version etc. is OK.
23261 exec 5>>config.log
23262 {
23263   echo
23264   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23265 ## Running $as_me. ##
23266 _ASBOX
23267 } >&5
23268 cat >&5 <<_CSEOF
23269
23270 This file was extended by [LLVM] $as_me [1.0], which was
23271 generated by GNU Autoconf 2.57.  Invocation command line was
23272
23273   CONFIG_FILES    = $CONFIG_FILES
23274   CONFIG_HEADERS  = $CONFIG_HEADERS
23275   CONFIG_LINKS    = $CONFIG_LINKS
23276   CONFIG_COMMANDS = $CONFIG_COMMANDS
23277   $ $0 $@
23278
23279 _CSEOF
23280 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23281 echo >&5
23282 _ACEOF
23283
23284 # Files that config.status was made for.
23285 if test -n "$ac_config_files"; then
23286   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23287 fi
23288
23289 if test -n "$ac_config_headers"; then
23290   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23291 fi
23292
23293 if test -n "$ac_config_links"; then
23294   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23295 fi
23296
23297 if test -n "$ac_config_commands"; then
23298   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23299 fi
23300
23301 cat >>$CONFIG_STATUS <<\_ACEOF
23302
23303 ac_cs_usage="\
23304 \`$as_me' instantiates files from templates according to the
23305 current configuration.
23306
23307 Usage: $0 [OPTIONS] [FILE]...
23308
23309   -h, --help       print this help, then exit
23310   -V, --version    print version number, then exit
23311   -q, --quiet      do not print progress messages
23312   -d, --debug      don't remove temporary files
23313       --recheck    update $as_me by reconfiguring in the same conditions
23314   --file=FILE[:TEMPLATE]
23315                    instantiate the configuration file FILE
23316   --header=FILE[:TEMPLATE]
23317                    instantiate the configuration header FILE
23318
23319 Configuration files:
23320 $config_files
23321
23322 Configuration headers:
23323 $config_headers
23324
23325 Configuration commands:
23326 $config_commands
23327
23328 Report bugs to <bug-autoconf@gnu.org>."
23329 _ACEOF
23330
23331 cat >>$CONFIG_STATUS <<_ACEOF
23332 ac_cs_version="\\
23333 [LLVM] config.status [1.0]
23334 configured by $0, generated by GNU Autoconf 2.57,
23335   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23336
23337 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23338 Free Software Foundation, Inc.
23339 This config.status script is free software; the Free Software Foundation
23340 gives unlimited permission to copy, distribute and modify it."
23341 srcdir=$srcdir
23342 INSTALL="$INSTALL"
23343 _ACEOF
23344
23345 cat >>$CONFIG_STATUS <<\_ACEOF
23346 # If no file are specified by the user, then we need to provide default
23347 # value.  By we need to know if files were specified by the user.
23348 ac_need_defaults=:
23349 while test $# != 0
23350 do
23351   case $1 in
23352   --*=*)
23353     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23354     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23355     ac_shift=:
23356     ;;
23357   -*)
23358     ac_option=$1
23359     ac_optarg=$2
23360     ac_shift=shift
23361     ;;
23362   *) # This is not an option, so the user has probably given explicit
23363      # arguments.
23364      ac_option=$1
23365      ac_need_defaults=false;;
23366   esac
23367
23368   case $ac_option in
23369   # Handling of the options.
23370 _ACEOF
23371 cat >>$CONFIG_STATUS <<\_ACEOF
23372   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23373     ac_cs_recheck=: ;;
23374   --version | --vers* | -V )
23375     echo "$ac_cs_version"; exit 0 ;;
23376   --he | --h)
23377     # Conflict between --help and --header
23378     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23379 Try \`$0 --help' for more information." >&5
23380 echo "$as_me: error: ambiguous option: $1
23381 Try \`$0 --help' for more information." >&2;}
23382    { (exit 1); exit 1; }; };;
23383   --help | --hel | -h )
23384     echo "$ac_cs_usage"; exit 0 ;;
23385   --debug | --d* | -d )
23386     debug=: ;;
23387   --file | --fil | --fi | --f )
23388     $ac_shift
23389     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23390     ac_need_defaults=false;;
23391   --header | --heade | --head | --hea )
23392     $ac_shift
23393     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23394     ac_need_defaults=false;;
23395   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23396   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23397     ac_cs_silent=: ;;
23398
23399   # This is an error.
23400   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23401 Try \`$0 --help' for more information." >&5
23402 echo "$as_me: error: unrecognized option: $1
23403 Try \`$0 --help' for more information." >&2;}
23404    { (exit 1); exit 1; }; } ;;
23405
23406   *) ac_config_targets="$ac_config_targets $1" ;;
23407
23408   esac
23409   shift
23410 done
23411
23412 ac_configure_extra_args=
23413
23414 if $ac_cs_silent; then
23415   exec 6>/dev/null
23416   ac_configure_extra_args="$ac_configure_extra_args --silent"
23417 fi
23418
23419 _ACEOF
23420 cat >>$CONFIG_STATUS <<_ACEOF
23421 if \$ac_cs_recheck; then
23422   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23423   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23424 fi
23425
23426 _ACEOF
23427
23428 cat >>$CONFIG_STATUS <<_ACEOF
23429 #
23430 # INIT-COMMANDS section.
23431 #
23432
23433 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23541 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23542 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23543 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23544 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23545 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23546 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23547 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23548 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23549 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23550 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23551 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23552 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23553 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23554 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23555 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23556 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23557 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23558 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23559 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23560 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23561 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23562 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23563 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23564 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23565 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23566 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23567 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23568 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23569 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23570 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23571 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23572 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23573 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23574 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23575 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23576 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23577 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23578 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23579 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23580 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23581 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23582 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23583 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23584 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23585 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23586 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23587 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23588 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23589 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23590 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23591 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-nm/Makefile`
23592 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23593 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23594 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23595 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23596 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23597 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23598 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23599 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23600 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23601 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23602
23603 _ACEOF
23604
23605
23606
23607 cat >>$CONFIG_STATUS <<\_ACEOF
23608 for ac_config_target in $ac_config_targets
23609 do
23610   case "$ac_config_target" in
23611   # Handling of arguments.
23612   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23613   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23614   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23615   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23616   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23617   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23618   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23619   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23620   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23621   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23622   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23623   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23624   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23625   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23626   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23627   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23628   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23629   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23630   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23631   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23632   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23633   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23634   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23635   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23636   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23637   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23638   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23639   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23640   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23641   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23642   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23643   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23644   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23645   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23646   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23647   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23648   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23649   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23650   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23651   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23652   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23653   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23654   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23655   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23656   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23657   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23658   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23659   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23660   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23661   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23662   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23663   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23664   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23665   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23666   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23667   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23668   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23669   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23670   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23671   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23672   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23673   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23674   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23675   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23676   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23677   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23678   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23679   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23680   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23681   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23682   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23683   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23684   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23685   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23686   "test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ;;
23687   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23688   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23689   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23690   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23691   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23692   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23693   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23694   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23695   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23696   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23697   "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23698   "test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ;;
23699   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23700   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23701   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23702   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23703   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23704   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23705   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23706   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23707   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23708   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23709   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23710   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23711   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23712   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23713   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23714   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23715   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23716   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23717   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23718   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23719   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23720   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23721   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23722   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23723   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23724   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23725   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23726   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23727   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23728   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23729   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23730   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23731   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23732   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23733   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23734   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23735   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23736   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23737   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23738   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23739   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23740   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23741   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23742   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23743   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23744   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23745   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23746   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23747   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23748   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23749   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23750   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23751   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23752   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23753   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23754   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23755   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23756   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23757   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23758   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23759   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23760   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23761   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23762   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23763   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23764   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23765   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23766   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23767   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23768   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23769   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23770   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23771   "tools/llvm-nm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-nm/Makefile" ;;
23772   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23773   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23774   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23775   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23776   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23777   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23778   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23779   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23780   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23781   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23782   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23783   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23784 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23785    { (exit 1); exit 1; }; };;
23786   esac
23787 done
23788
23789 # If the user did not use the arguments to specify the items to instantiate,
23790 # then the envvar interface is used.  Set only those that are not.
23791 # We use the long form for the default assignment because of an extremely
23792 # bizarre bug on SunOS 4.1.3.
23793 if $ac_need_defaults; then
23794   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23795   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23796   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23797 fi
23798
23799 # Have a temporary directory for convenience.  Make it in the build tree
23800 # simply because there is no reason to put it here, and in addition,
23801 # creating and moving files from /tmp can sometimes cause problems.
23802 # Create a temporary directory, and hook for its removal unless debugging.
23803 $debug ||
23804 {
23805   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23806   trap '{ (exit 1); exit 1; }' 1 2 13 15
23807 }
23808
23809 # Create a (secure) tmp directory for tmp files.
23810
23811 {
23812   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23813   test -n "$tmp" && test -d "$tmp"
23814 }  ||
23815 {
23816   tmp=./confstat$$-$RANDOM
23817   (umask 077 && mkdir $tmp)
23818 } ||
23819 {
23820    echo "$me: cannot create a temporary directory in ." >&2
23821    { (exit 1); exit 1; }
23822 }
23823
23824 _ACEOF
23825
23826 cat >>$CONFIG_STATUS <<_ACEOF
23827
23828 #
23829 # CONFIG_FILES section.
23830 #
23831
23832 # No need to generate the scripts if there are no CONFIG_FILES.
23833 # This happens for instance when ./config.status config.h
23834 if test -n "\$CONFIG_FILES"; then
23835   # Protect against being on the right side of a sed subst in config.status.
23836   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23837    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23838 s,@SHELL@,$SHELL,;t t
23839 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23840 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23841 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23842 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23843 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23844 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23845 s,@exec_prefix@,$exec_prefix,;t t
23846 s,@prefix@,$prefix,;t t
23847 s,@program_transform_name@,$program_transform_name,;t t
23848 s,@bindir@,$bindir,;t t
23849 s,@sbindir@,$sbindir,;t t
23850 s,@libexecdir@,$libexecdir,;t t
23851 s,@datadir@,$datadir,;t t
23852 s,@sysconfdir@,$sysconfdir,;t t
23853 s,@sharedstatedir@,$sharedstatedir,;t t
23854 s,@localstatedir@,$localstatedir,;t t
23855 s,@libdir@,$libdir,;t t
23856 s,@includedir@,$includedir,;t t
23857 s,@oldincludedir@,$oldincludedir,;t t
23858 s,@infodir@,$infodir,;t t
23859 s,@mandir@,$mandir,;t t
23860 s,@build_alias@,$build_alias,;t t
23861 s,@host_alias@,$host_alias,;t t
23862 s,@target_alias@,$target_alias,;t t
23863 s,@DEFS@,$DEFS,;t t
23864 s,@ECHO_C@,$ECHO_C,;t t
23865 s,@ECHO_N@,$ECHO_N,;t t
23866 s,@ECHO_T@,$ECHO_T,;t t
23867 s,@LIBS@,$LIBS,;t t
23868 s,@subdirs@,$subdirs,;t t
23869 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23870 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23871 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23872 s,@build@,$build,;t t
23873 s,@build_cpu@,$build_cpu,;t t
23874 s,@build_vendor@,$build_vendor,;t t
23875 s,@build_os@,$build_os,;t t
23876 s,@host@,$host,;t t
23877 s,@host_cpu@,$host_cpu,;t t
23878 s,@host_vendor@,$host_vendor,;t t
23879 s,@host_os@,$host_os,;t t
23880 s,@target@,$target,;t t
23881 s,@target_cpu@,$target_cpu,;t t
23882 s,@target_vendor@,$target_vendor,;t t
23883 s,@target_os@,$target_os,;t t
23884 s,@OS@,$OS,;t t
23885 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23886 s,@ARCH@,$ARCH,;t t
23887 s,@CXX@,$CXX,;t t
23888 s,@CXXFLAGS@,$CXXFLAGS,;t t
23889 s,@LDFLAGS@,$LDFLAGS,;t t
23890 s,@CPPFLAGS@,$CPPFLAGS,;t t
23891 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23892 s,@EXEEXT@,$EXEEXT,;t t
23893 s,@OBJEXT@,$OBJEXT,;t t
23894 s,@CC@,$CC,;t t
23895 s,@CFLAGS@,$CFLAGS,;t t
23896 s,@ac_ct_CC@,$ac_ct_CC,;t t
23897 s,@CPP@,$CPP,;t t
23898 s,@ifGNUmake@,$ifGNUmake,;t t
23899 s,@LEX@,$LEX,;t t
23900 s,@LEXLIB@,$LEXLIB,;t t
23901 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23902 s,@YACC@,$YACC,;t t
23903 s,@EGREP@,$EGREP,;t t
23904 s,@LN_S@,$LN_S,;t t
23905 s,@ECHO@,$ECHO,;t t
23906 s,@AR@,$AR,;t t
23907 s,@ac_ct_AR@,$ac_ct_AR,;t t
23908 s,@RANLIB@,$RANLIB,;t t
23909 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23910 s,@STRIP@,$STRIP,;t t
23911 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23912 s,@CXXCPP@,$CXXCPP,;t t
23913 s,@F77@,$F77,;t t
23914 s,@FFLAGS@,$FFLAGS,;t t
23915 s,@ac_ct_F77@,$ac_ct_F77,;t t
23916 s,@LIBTOOL@,$LIBTOOL,;t t
23917 s,@RPWD@,$RPWD,;t t
23918 s,@SED@,$SED,;t t
23919 s,@RM@,$RM,;t t
23920 s,@MKDIR@,$MKDIR,;t t
23921 s,@DATE@,$DATE,;t t
23922 s,@MV@,$MV,;t t
23923 s,@DOT@,$DOT,;t t
23924 s,@ETAGS@,$ETAGS,;t t
23925 s,@PYTHON@,$PYTHON,;t t
23926 s,@QMTEST@,$QMTEST,;t t
23927 s,@ALLOCA@,$ALLOCA,;t t
23928 s,@LIBOBJS@,$LIBOBJS,;t t
23929 s,@MMAP_FILE@,$MMAP_FILE,;t t
23930 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23931 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23932 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23933 s,@USE_SPEC@,$USE_SPEC,;t t
23934 s,@UPB@,$UPB,;t t
23935 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23936 s,@JIT@,$JIT,;t t
23937 s,@BCR@,$BCR,;t t
23938 s,@PAPIDIR@,$PAPIDIR,;t t
23939 s,@PURIFY@,$PURIFY,;t t
23940 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23941 CEOF
23942
23943 _ACEOF
23944
23945   cat >>$CONFIG_STATUS <<\_ACEOF
23946   # Split the substitutions into bite-sized pieces for seds with
23947   # small command number limits, like on Digital OSF/1 and HP-UX.
23948   ac_max_sed_lines=48
23949   ac_sed_frag=1 # Number of current file.
23950   ac_beg=1 # First line for current file.
23951   ac_end=$ac_max_sed_lines # Line after last line for current file.
23952   ac_more_lines=:
23953   ac_sed_cmds=
23954   while $ac_more_lines; do
23955     if test $ac_beg -gt 1; then
23956       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23957     else
23958       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23959     fi
23960     if test ! -s $tmp/subs.frag; then
23961       ac_more_lines=false
23962     else
23963       # The purpose of the label and of the branching condition is to
23964       # speed up the sed processing (if there are no `@' at all, there
23965       # is no need to browse any of the substitutions).
23966       # These are the two extra sed commands mentioned above.
23967       (echo ':t
23968   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23969       if test -z "$ac_sed_cmds"; then
23970         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23971       else
23972         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23973       fi
23974       ac_sed_frag=`expr $ac_sed_frag + 1`
23975       ac_beg=$ac_end
23976       ac_end=`expr $ac_end + $ac_max_sed_lines`
23977     fi
23978   done
23979   if test -z "$ac_sed_cmds"; then
23980     ac_sed_cmds=cat
23981   fi
23982 fi # test -n "$CONFIG_FILES"
23983
23984 _ACEOF
23985 cat >>$CONFIG_STATUS <<\_ACEOF
23986 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23987   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23988   case $ac_file in
23989   - | *:- | *:-:* ) # input from stdin
23990         cat >$tmp/stdin
23991         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23992         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23993   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23994         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23995   * )   ac_file_in=$ac_file.in ;;
23996   esac
23997
23998   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23999   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24000 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24001          X"$ac_file" : 'X\(//\)[^/]' \| \
24002          X"$ac_file" : 'X\(//\)$' \| \
24003          X"$ac_file" : 'X\(/\)' \| \
24004          .     : '\(.\)' 2>/dev/null ||
24005 echo X"$ac_file" |
24006     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24007           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24008           /^X\(\/\/\)$/{ s//\1/; q; }
24009           /^X\(\/\).*/{ s//\1/; q; }
24010           s/.*/./; q'`
24011   { if $as_mkdir_p; then
24012     mkdir -p "$ac_dir"
24013   else
24014     as_dir="$ac_dir"
24015     as_dirs=
24016     while test ! -d "$as_dir"; do
24017       as_dirs="$as_dir $as_dirs"
24018       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24019 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24020          X"$as_dir" : 'X\(//\)[^/]' \| \
24021          X"$as_dir" : 'X\(//\)$' \| \
24022          X"$as_dir" : 'X\(/\)' \| \
24023          .     : '\(.\)' 2>/dev/null ||
24024 echo X"$as_dir" |
24025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24026           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24027           /^X\(\/\/\)$/{ s//\1/; q; }
24028           /^X\(\/\).*/{ s//\1/; q; }
24029           s/.*/./; q'`
24030     done
24031     test ! -n "$as_dirs" || mkdir $as_dirs
24032   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24033 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24034    { (exit 1); exit 1; }; }; }
24035
24036   ac_builddir=.
24037
24038 if test "$ac_dir" != .; then
24039   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24040   # A "../" for each directory in $ac_dir_suffix.
24041   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24042 else
24043   ac_dir_suffix= ac_top_builddir=
24044 fi
24045
24046 case $srcdir in
24047   .)  # No --srcdir option.  We are building in place.
24048     ac_srcdir=.
24049     if test -z "$ac_top_builddir"; then
24050        ac_top_srcdir=.
24051     else
24052        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24053     fi ;;
24054   [\\/]* | ?:[\\/]* )  # Absolute path.
24055     ac_srcdir=$srcdir$ac_dir_suffix;
24056     ac_top_srcdir=$srcdir ;;
24057   *) # Relative path.
24058     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24059     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24060 esac
24061 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24062 # absolute.
24063 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24064 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24065 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24066 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24067
24068
24069   case $INSTALL in
24070   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24071   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24072   esac
24073
24074   if test x"$ac_file" != x-; then
24075     { echo "$as_me:$LINENO: creating $ac_file" >&5
24076 echo "$as_me: creating $ac_file" >&6;}
24077     rm -f "$ac_file"
24078   fi
24079   # Let's still pretend it is `configure' which instantiates (i.e., don't
24080   # use $as_me), people would be surprised to read:
24081   #    /* config.h.  Generated by config.status.  */
24082   if test x"$ac_file" = x-; then
24083     configure_input=
24084   else
24085     configure_input="$ac_file.  "
24086   fi
24087   configure_input=$configure_input"Generated from `echo $ac_file_in |
24088                                      sed 's,.*/,,'` by configure."
24089
24090   # First look for the input files in the build tree, otherwise in the
24091   # src tree.
24092   ac_file_inputs=`IFS=:
24093     for f in $ac_file_in; do
24094       case $f in
24095       -) echo $tmp/stdin ;;
24096       [\\/$]*)
24097          # Absolute (can't be DOS-style, as IFS=:)
24098          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24099 echo "$as_me: error: cannot find input file: $f" >&2;}
24100    { (exit 1); exit 1; }; }
24101          echo $f;;
24102       *) # Relative
24103          if test -f "$f"; then
24104            # Build tree
24105            echo $f
24106          elif test -f "$srcdir/$f"; then
24107            # Source tree
24108            echo $srcdir/$f
24109          else
24110            # /dev/null tree
24111            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24112 echo "$as_me: error: cannot find input file: $f" >&2;}
24113    { (exit 1); exit 1; }; }
24114          fi;;
24115       esac
24116     done` || { (exit 1); exit 1; }
24117 _ACEOF
24118 cat >>$CONFIG_STATUS <<_ACEOF
24119   sed "$ac_vpsub
24120 $extrasub
24121 _ACEOF
24122 cat >>$CONFIG_STATUS <<\_ACEOF
24123 :t
24124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24125 s,@configure_input@,$configure_input,;t t
24126 s,@srcdir@,$ac_srcdir,;t t
24127 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24128 s,@top_srcdir@,$ac_top_srcdir,;t t
24129 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24130 s,@builddir@,$ac_builddir,;t t
24131 s,@abs_builddir@,$ac_abs_builddir,;t t
24132 s,@top_builddir@,$ac_top_builddir,;t t
24133 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24134 s,@INSTALL@,$ac_INSTALL,;t t
24135 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24136   rm -f $tmp/stdin
24137   if test x"$ac_file" != x-; then
24138     mv $tmp/out $ac_file
24139   else
24140     cat $tmp/out
24141     rm -f $tmp/out
24142   fi
24143
24144 done
24145 _ACEOF
24146 cat >>$CONFIG_STATUS <<\_ACEOF
24147
24148 #
24149 # CONFIG_HEADER section.
24150 #
24151
24152 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24153 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24154 #
24155 # ac_d sets the value in "#define NAME VALUE" lines.
24156 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24157 ac_dB='[        ].*$,\1#\2'
24158 ac_dC=' '
24159 ac_dD=',;t'
24160 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24161 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24162 ac_uB='$,\1#\2define\3'
24163 ac_uC=' '
24164 ac_uD=',;t'
24165
24166 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24167   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24168   case $ac_file in
24169   - | *:- | *:-:* ) # input from stdin
24170         cat >$tmp/stdin
24171         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24172         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24173   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24174         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24175   * )   ac_file_in=$ac_file.in ;;
24176   esac
24177
24178   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24179 echo "$as_me: creating $ac_file" >&6;}
24180
24181   # First look for the input files in the build tree, otherwise in the
24182   # src tree.
24183   ac_file_inputs=`IFS=:
24184     for f in $ac_file_in; do
24185       case $f in
24186       -) echo $tmp/stdin ;;
24187       [\\/$]*)
24188          # Absolute (can't be DOS-style, as IFS=:)
24189          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24190 echo "$as_me: error: cannot find input file: $f" >&2;}
24191    { (exit 1); exit 1; }; }
24192          echo $f;;
24193       *) # Relative
24194          if test -f "$f"; then
24195            # Build tree
24196            echo $f
24197          elif test -f "$srcdir/$f"; then
24198            # Source tree
24199            echo $srcdir/$f
24200          else
24201            # /dev/null tree
24202            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24203 echo "$as_me: error: cannot find input file: $f" >&2;}
24204    { (exit 1); exit 1; }; }
24205          fi;;
24206       esac
24207     done` || { (exit 1); exit 1; }
24208   # Remove the trailing spaces.
24209   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24210
24211 _ACEOF
24212
24213 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24214 # `conftest.undefs', that substitutes the proper values into
24215 # config.h.in to produce config.h.  The first handles `#define'
24216 # templates, and the second `#undef' templates.
24217 # And first: Protect against being on the right side of a sed subst in
24218 # config.status.  Protect against being in an unquoted here document
24219 # in config.status.
24220 rm -f conftest.defines conftest.undefs
24221 # Using a here document instead of a string reduces the quoting nightmare.
24222 # Putting comments in sed scripts is not portable.
24223 #
24224 # `end' is used to avoid that the second main sed command (meant for
24225 # 0-ary CPP macros) applies to n-ary macro definitions.
24226 # See the Autoconf documentation for `clear'.
24227 cat >confdef2sed.sed <<\_ACEOF
24228 s/[\\&,]/\\&/g
24229 s,[\\$`],\\&,g
24230 t clear
24231 : clear
24232 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24233 t end
24234 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24235 : end
24236 _ACEOF
24237 # If some macros were called several times there might be several times
24238 # the same #defines, which is useless.  Nevertheless, we may not want to
24239 # sort them, since we want the *last* AC-DEFINE to be honored.
24240 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24241 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24242 rm -f confdef2sed.sed
24243
24244 # This sed command replaces #undef with comments.  This is necessary, for
24245 # example, in the case of _POSIX_SOURCE, which is predefined and required
24246 # on some systems where configure will not decide to define it.
24247 cat >>conftest.undefs <<\_ACEOF
24248 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24249 _ACEOF
24250
24251 # Break up conftest.defines because some shells have a limit on the size
24252 # of here documents, and old seds have small limits too (100 cmds).
24253 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24254 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24255 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24256 echo '  :' >>$CONFIG_STATUS
24257 rm -f conftest.tail
24258 while grep . conftest.defines >/dev/null
24259 do
24260   # Write a limited-size here document to $tmp/defines.sed.
24261   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24262   # Speed up: don't consider the non `#define' lines.
24263   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24264   # Work around the forget-to-reset-the-flag bug.
24265   echo 't clr' >>$CONFIG_STATUS
24266   echo ': clr' >>$CONFIG_STATUS
24267   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24268   echo 'CEOF
24269   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24270   rm -f $tmp/in
24271   mv $tmp/out $tmp/in
24272 ' >>$CONFIG_STATUS
24273   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24274   rm -f conftest.defines
24275   mv conftest.tail conftest.defines
24276 done
24277 rm -f conftest.defines
24278 echo '  fi # grep' >>$CONFIG_STATUS
24279 echo >>$CONFIG_STATUS
24280
24281 # Break up conftest.undefs because some shells have a limit on the size
24282 # of here documents, and old seds have small limits too (100 cmds).
24283 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24284 rm -f conftest.tail
24285 while grep . conftest.undefs >/dev/null
24286 do
24287   # Write a limited-size here document to $tmp/undefs.sed.
24288   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24289   # Speed up: don't consider the non `#undef'
24290   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24291   # Work around the forget-to-reset-the-flag bug.
24292   echo 't clr' >>$CONFIG_STATUS
24293   echo ': clr' >>$CONFIG_STATUS
24294   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24295   echo 'CEOF
24296   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24297   rm -f $tmp/in
24298   mv $tmp/out $tmp/in
24299 ' >>$CONFIG_STATUS
24300   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24301   rm -f conftest.undefs
24302   mv conftest.tail conftest.undefs
24303 done
24304 rm -f conftest.undefs
24305
24306 cat >>$CONFIG_STATUS <<\_ACEOF
24307   # Let's still pretend it is `configure' which instantiates (i.e., don't
24308   # use $as_me), people would be surprised to read:
24309   #    /* config.h.  Generated by config.status.  */
24310   if test x"$ac_file" = x-; then
24311     echo "/* Generated by configure.  */" >$tmp/config.h
24312   else
24313     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24314   fi
24315   cat $tmp/in >>$tmp/config.h
24316   rm -f $tmp/in
24317   if test x"$ac_file" != x-; then
24318     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24319       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24320 echo "$as_me: $ac_file is unchanged" >&6;}
24321     else
24322       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24323 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24324          X"$ac_file" : 'X\(//\)[^/]' \| \
24325          X"$ac_file" : 'X\(//\)$' \| \
24326          X"$ac_file" : 'X\(/\)' \| \
24327          .     : '\(.\)' 2>/dev/null ||
24328 echo X"$ac_file" |
24329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24330           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24331           /^X\(\/\/\)$/{ s//\1/; q; }
24332           /^X\(\/\).*/{ s//\1/; q; }
24333           s/.*/./; q'`
24334       { if $as_mkdir_p; then
24335     mkdir -p "$ac_dir"
24336   else
24337     as_dir="$ac_dir"
24338     as_dirs=
24339     while test ! -d "$as_dir"; do
24340       as_dirs="$as_dir $as_dirs"
24341       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24343          X"$as_dir" : 'X\(//\)[^/]' \| \
24344          X"$as_dir" : 'X\(//\)$' \| \
24345          X"$as_dir" : 'X\(/\)' \| \
24346          .     : '\(.\)' 2>/dev/null ||
24347 echo X"$as_dir" |
24348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24349           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24350           /^X\(\/\/\)$/{ s//\1/; q; }
24351           /^X\(\/\).*/{ s//\1/; q; }
24352           s/.*/./; q'`
24353     done
24354     test ! -n "$as_dirs" || mkdir $as_dirs
24355   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24356 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24357    { (exit 1); exit 1; }; }; }
24358
24359       rm -f $ac_file
24360       mv $tmp/config.h $ac_file
24361     fi
24362   else
24363     cat $tmp/config.h
24364     rm -f $tmp/config.h
24365   fi
24366 done
24367 _ACEOF
24368 cat >>$CONFIG_STATUS <<\_ACEOF
24369
24370 #
24371 # CONFIG_COMMANDS section.
24372 #
24373 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24374   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24375   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24376   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24377 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24378          X"$ac_dest" : 'X\(//\)[^/]' \| \
24379          X"$ac_dest" : 'X\(//\)$' \| \
24380          X"$ac_dest" : 'X\(/\)' \| \
24381          .     : '\(.\)' 2>/dev/null ||
24382 echo X"$ac_dest" |
24383     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24384           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24385           /^X\(\/\/\)$/{ s//\1/; q; }
24386           /^X\(\/\).*/{ s//\1/; q; }
24387           s/.*/./; q'`
24388   ac_builddir=.
24389
24390 if test "$ac_dir" != .; then
24391   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24392   # A "../" for each directory in $ac_dir_suffix.
24393   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24394 else
24395   ac_dir_suffix= ac_top_builddir=
24396 fi
24397
24398 case $srcdir in
24399   .)  # No --srcdir option.  We are building in place.
24400     ac_srcdir=.
24401     if test -z "$ac_top_builddir"; then
24402        ac_top_srcdir=.
24403     else
24404        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24405     fi ;;
24406   [\\/]* | ?:[\\/]* )  # Absolute path.
24407     ac_srcdir=$srcdir$ac_dir_suffix;
24408     ac_top_srcdir=$srcdir ;;
24409   *) # Relative path.
24410     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24411     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24412 esac
24413 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24414 # absolute.
24415 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24416 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24417 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24418 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24419
24420
24421   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24422 echo "$as_me: executing $ac_dest commands" >&6;}
24423   case $ac_dest in
24424     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24425     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24426     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24427     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24428     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24429     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24430     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24431     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24432     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24433     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24434     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24435     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24436     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24437     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24438     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24439     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24440     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24441     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24442     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24443     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24444     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24445     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24446     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24447     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24448     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24449     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24450     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24451     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24452     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24453     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24454     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24455     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24456     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24457     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24458     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24459     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24460     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24461     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24462     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24463     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24464     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24465     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24466     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24467     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24468     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24469     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24470     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24471     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24472     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24473     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24474     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24475     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24476     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24477     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24478     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24479     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24480     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24481     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24482     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24483     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24484     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24485     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24486     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24487     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24488     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24489     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24490     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24491     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24492     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24493     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24494     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24495     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 ;;
24496     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 ;;
24497     test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/177.mesa/Makefile test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ;;
24498     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 ;;
24499     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 ;;
24500     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 ;;
24501     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 ;;
24502     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 ;;
24503     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 ;;
24504     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 ;;
24505     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 ;;
24506     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 ;;
24507     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 ;;
24508     test/Programs/External/SPEC/CINT2000/252.eon/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/252.eon/Makefile test/Programs/External/SPEC/CINT2000/252.eon/Makefile ;;
24509     test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ;;
24510     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 ;;
24511     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 ;;
24512     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 ;;
24513     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 ;;
24514     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24515     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24516     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24517     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24518     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 ;;
24519     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 ;;
24520     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 ;;
24521     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24522     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 ;;
24523     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 ;;
24524     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 ;;
24525     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 ;;
24526     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 ;;
24527     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 ;;
24528     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 ;;
24529     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 ;;
24530     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 ;;
24531     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 ;;
24532     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 ;;
24533     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 ;;
24534     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 ;;
24535     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 ;;
24536     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 ;;
24537     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 ;;
24538     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 ;;
24539     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 ;;
24540     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 ;;
24541     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 ;;
24542     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 ;;
24543     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 ;;
24544     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 ;;
24545     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 ;;
24546     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 ;;
24547     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 ;;
24548     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 ;;
24549     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 ;;
24550     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 ;;
24551     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 ;;
24552     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 ;;
24553     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 ;;
24554     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24555     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24556     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24557     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24558     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 ;;
24559     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 ;;
24560     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 ;;
24561     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 ;;
24562     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24563     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24564     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 ;;
24565     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24566     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 ;;
24567     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 ;;
24568     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 ;;
24569     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24570     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24571     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24572     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24573     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24574     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24575     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24576     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24577     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24578     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24579     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24580     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24581     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24582     tools/llvm-nm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-nm/Makefile tools/llvm-nm/Makefile ;;
24583     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24584     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24585     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24586     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24587     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24588     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24589     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24590     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24591     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24592     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24593   esac
24594 done
24595 _ACEOF
24596
24597 cat >>$CONFIG_STATUS <<\_ACEOF
24598
24599 { (exit 0); exit 0; }
24600 _ACEOF
24601 chmod +x $CONFIG_STATUS
24602 ac_clean_files=$ac_clean_files_save
24603
24604
24605 # configure is writing to config.log, and then calls config.status.
24606 # config.status does its own redirection, appending to config.log.
24607 # Unfortunately, on DOS this fails, as config.log is still kept open
24608 # by configure, so config.status won't be able to write to it; its
24609 # output is simply discarded.  So we exec the FD to /dev/null,
24610 # effectively closing config.log, so it can be properly (re)opened and
24611 # appended to by config.status.  When coming back to configure, we
24612 # need to make the FD available again.
24613 if test "$no_create" != yes; then
24614   ac_cs_success=:
24615   ac_config_status_args=
24616   test "$silent" = yes &&
24617     ac_config_status_args="$ac_config_status_args --quiet"
24618   exec 5>/dev/null
24619   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24620   exec 5>>config.log
24621   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24622   # would make configure fail if this is the last instruction.
24623   $ac_cs_success || { (exit 1); exit 1; }
24624 fi
24625
24626 #
24627 # CONFIG_SUBDIRS section.
24628 #
24629 if test "$no_recursion" != yes; then
24630
24631   # Remove --cache-file and --srcdir arguments so they do not pile up.
24632   ac_sub_configure_args=
24633   ac_prev=
24634   for ac_arg in $ac_configure_args; do
24635     if test -n "$ac_prev"; then
24636       ac_prev=
24637       continue
24638     fi
24639     case $ac_arg in
24640     -cache-file | --cache-file | --cache-fil | --cache-fi \
24641     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24642       ac_prev=cache_file ;;
24643     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24644     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24645     | --c=*)
24646       ;;
24647     --config-cache | -C)
24648       ;;
24649     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24650       ac_prev=srcdir ;;
24651     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24652       ;;
24653     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24654       ac_prev=prefix ;;
24655     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24656       ;;
24657     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24658     esac
24659   done
24660
24661   # Always prepend --prefix to ensure using the same prefix
24662   # in subdir configurations.
24663   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24664
24665   ac_popdir=`pwd`
24666   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24667
24668     # Do not complain, so a configure script can configure whichever
24669     # parts of a large source tree are present.
24670     test -d $srcdir/$ac_dir || continue
24671
24672     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24673 echo "$as_me: configuring in $ac_dir" >&6;}
24674     { if $as_mkdir_p; then
24675     mkdir -p "$ac_dir"
24676   else
24677     as_dir="$ac_dir"
24678     as_dirs=
24679     while test ! -d "$as_dir"; do
24680       as_dirs="$as_dir $as_dirs"
24681       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24683          X"$as_dir" : 'X\(//\)[^/]' \| \
24684          X"$as_dir" : 'X\(//\)$' \| \
24685          X"$as_dir" : 'X\(/\)' \| \
24686          .     : '\(.\)' 2>/dev/null ||
24687 echo X"$as_dir" |
24688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24689           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24690           /^X\(\/\/\)$/{ s//\1/; q; }
24691           /^X\(\/\).*/{ s//\1/; q; }
24692           s/.*/./; q'`
24693     done
24694     test ! -n "$as_dirs" || mkdir $as_dirs
24695   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24696 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24697    { (exit 1); exit 1; }; }; }
24698
24699     ac_builddir=.
24700
24701 if test "$ac_dir" != .; then
24702   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24703   # A "../" for each directory in $ac_dir_suffix.
24704   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24705 else
24706   ac_dir_suffix= ac_top_builddir=
24707 fi
24708
24709 case $srcdir in
24710   .)  # No --srcdir option.  We are building in place.
24711     ac_srcdir=.
24712     if test -z "$ac_top_builddir"; then
24713        ac_top_srcdir=.
24714     else
24715        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24716     fi ;;
24717   [\\/]* | ?:[\\/]* )  # Absolute path.
24718     ac_srcdir=$srcdir$ac_dir_suffix;
24719     ac_top_srcdir=$srcdir ;;
24720   *) # Relative path.
24721     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24722     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24723 esac
24724 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24725 # absolute.
24726 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24727 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24728 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24729 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24730
24731
24732     cd $ac_dir
24733
24734     # Check for guested configure; otherwise get Cygnus style configure.
24735     if test -f $ac_srcdir/configure.gnu; then
24736       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24737     elif test -f $ac_srcdir/configure; then
24738       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24739     elif test -f $ac_srcdir/configure.in; then
24740       ac_sub_configure=$ac_configure
24741     else
24742       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24743 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24744       ac_sub_configure=
24745     fi
24746
24747     # The recursion is here.
24748     if test -n "$ac_sub_configure"; then
24749       # Make the cache file name correct relative to the subdirectory.
24750       case $cache_file in
24751       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24752       *) # Relative path.
24753         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24754       esac
24755
24756       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24757 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24758       # The eval makes quoting arguments work.
24759       eval $ac_sub_configure $ac_sub_configure_args \
24760            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24761         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24762 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24763    { (exit 1); exit 1; }; }
24764     fi
24765
24766     cd $ac_popdir
24767   done
24768 fi
24769