OSDN Git Service

Enable to track git://github.com/monaka/binutils.git
[pf3gnuchains/pf3gnuchains3x.git] / sid / component / bochs / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="components.cxx"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS DYNAMIC_VAR AS_DYNAMIC_OBJS AS_DYNAMIC_INCS IOAPIC_OBJS APIC_OBJS BX_SPLIT_HD_SUPPORT NE2K_OBJS PCI_OBJ SUFFIX_LINE CPP_SUFFIX DEBUGGER_VAR DISASM_VAR READLINE_LIB BX_LOADER_OBJS INSTRUMENT_DIR INSTRUMENT_VAR VIDEO_OBJS FPU_VAR FPU_GLUE_OBJ CDROM_OBJS SB16_OBJS IODEV_LIB_VAR NONINLINE_VAR INLINE_VAR EXTERNAL_DEPENDENCY HAVE_XOS_HEADER_TRUE HAVE_XOS_HEADER_FALSE RFB_LIBS GUI_OBJS GUI_LINK_OPTS GUI_LINK_OPTS_TERM DASH SLASH CXXFP CFP OFP MAKELIB RMCOMMAND LINK EXE PRIMARY_TARGET COMMAND_SEPARATOR CD_UP_ONE CD_UP_TWO GZIP TAR sidtarget_arm SIDTARGET_ARM_TRUE SIDTARGET_ARM_FALSE sidtarget_x86 SIDTARGET_X86_TRUE SIDTARGET_X86_FALSE sidtarget_mips SIDTARGET_MIPS_TRUE SIDTARGET_MIPS_FALSE sidtarget_m32r SIDTARGET_M32R_TRUE SIDTARGET_M32R_FALSE sidtarget_m68k SIDTARGET_M68K_TRUE SIDTARGET_M68K_FALSE sidtarget_mep SIDTARGET_MEP_TRUE SIDTARGET_MEP_FALSE sidtarget_mt SIDTARGET_MT_TRUE SIDTARGET_MT_FALSE sidtarget_ppc SIDTARGET_PPC_TRUE SIDTARGET_PPC_FALSE sidtarget_sh SIDTARGET_SH_TRUE SIDTARGET_SH_FALSE sidtarget_sh64 SIDTARGET_SH64_TRUE SIDTARGET_SH64_FALSE sidtarget_xstormy16 SIDTARGET_XSTORMY16_TRUE SIDTARGET_XSTORMY16_FALSE LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 X features:
1014   --x-includes=DIR    X include files are in DIR
1015   --x-libraries=DIR   X library files are in DIR
1016
1017 System types:
1018   --build=BUILD     configure for building on BUILD [guessed]
1019   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1020 _ACEOF
1021 fi
1022
1023 if test -n "$ac_init_help"; then
1024
1025   cat <<\_ACEOF
1026
1027 Optional Features:
1028   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030   --enable-maintainer-mode  enable make rules and dependencies not useful
1031                           (and sometimes confusing) to the casual installer
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-dependency-tracking  speeds up one-time build
1039   --enable-dependency-tracking   do not reject slow dependency extractors
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-processors                select number of processors (1,2,4)
1042   --enable-cpu-level                select cpu level (3,4,5,6)
1043   --enable-dynamic                  enable dynamic translation support
1044   --enable-apic                   enable APIC support
1045   --enable-split-hd                   allows split hard disk image
1046   --enable-ne2000                   enable limited ne2000 support
1047   --enable-pci                      enable limited i440FX PCI support
1048   --enable-port-e9-hack             writes to port e9 go to console
1049   --enable-cpp                      use .cpp as C++ suffix
1050   --enable-debugger                 compile in support for Bochs internal debugger
1051   --enable-disasm                   compile in support for disassembler
1052  --enable-readline                     use readline library with debugger
1053   --enable-loader                   support calling external loader from debugger
1054   --enable-instrumentation          compile in support for instrumentation
1055   --enable-simid=0 or 1             CPU simulator ID if using more than one
1056   --enable-num-sim=1 or 2           number of CPU simulators
1057   --enable-time0=n                  start at n instead of using time()
1058   --enable-vga                      use VGA emulation
1059   --enable-fpu                      compile in FPU emulation
1060   --enable-x86-debugger             x86 debugger support
1061   --enable-cdrom                    CDROM support
1062   --enable-sb16                     Sound Blaster 16 Support
1063   --enable-hga-dumps=Nmicroseconds  copy memory to HGA video buffer every N useconds
1064   --enable-targets=LIST   support given additional targets, or all
1065
1066 Optional Packages:
1067   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1068   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1069   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1070   --with-pic              try to use only PIC/non-PIC objects [default=use
1071                           both]
1072   --with-tags[=TAGS]
1073                           include additional configurations [automatic]
1074   --with-x                use the X Window System
1075   --with-x11                        use X11 GUI
1076   --with-beos                       use BeOS GUI
1077   --with-win32                      use Win32 GUI
1078   --with-win32-vcpp                 use Win32 GUI/Visual C++ environment
1079   --with-macos                      use Macintosh/CodeWarrior environment
1080   --with-nogui                      no native GUI, just use blank stubs
1081   --with-term                       textmode terminal environment
1082   --with-rfb                        use RFB protocol, works with VNC viewer
1083
1084 Some influential environment variables:
1085   CC          C compiler command
1086   CFLAGS      C compiler flags
1087   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1088               nonstandard directory <lib dir>
1089   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1090               headers in a nonstandard directory <include dir>
1091   CPP         C preprocessor
1092   CXX         C++ compiler command
1093   CXXFLAGS    C++ compiler flags
1094   CXXCPP      C++ preprocessor
1095   F77         Fortran 77 compiler command
1096   FFLAGS      Fortran 77 compiler flags
1097
1098 Use these variables to override the choices made by `configure' or to help
1099 it to find libraries and programs with nonstandard names/locations.
1100
1101 _ACEOF
1102 fi
1103
1104 if test "$ac_init_help" = "recursive"; then
1105   # If there are subdirs, report their specific --help.
1106   ac_popdir=`pwd`
1107   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1108     test -d $ac_dir || continue
1109     ac_builddir=.
1110
1111 if test "$ac_dir" != .; then
1112   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1113   # A "../" for each directory in $ac_dir_suffix.
1114   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1115 else
1116   ac_dir_suffix= ac_top_builddir=
1117 fi
1118
1119 case $srcdir in
1120   .)  # No --srcdir option.  We are building in place.
1121     ac_srcdir=.
1122     if test -z "$ac_top_builddir"; then
1123        ac_top_srcdir=.
1124     else
1125        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1126     fi ;;
1127   [\\/]* | ?:[\\/]* )  # Absolute path.
1128     ac_srcdir=$srcdir$ac_dir_suffix;
1129     ac_top_srcdir=$srcdir ;;
1130   *) # Relative path.
1131     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1132     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1133 esac
1134
1135 # Do not use `cd foo && pwd` to compute absolute paths, because
1136 # the directories may not exist.
1137 case `pwd` in
1138 .) ac_abs_builddir="$ac_dir";;
1139 *)
1140   case "$ac_dir" in
1141   .) ac_abs_builddir=`pwd`;;
1142   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1143   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1144   esac;;
1145 esac
1146 case $ac_abs_builddir in
1147 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1148 *)
1149   case ${ac_top_builddir}. in
1150   .) ac_abs_top_builddir=$ac_abs_builddir;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1152   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1153   esac;;
1154 esac
1155 case $ac_abs_builddir in
1156 .) ac_abs_srcdir=$ac_srcdir;;
1157 *)
1158   case $ac_srcdir in
1159   .) ac_abs_srcdir=$ac_abs_builddir;;
1160   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1161   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1162   esac;;
1163 esac
1164 case $ac_abs_builddir in
1165 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1166 *)
1167   case $ac_top_srcdir in
1168   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1169   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1170   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1171   esac;;
1172 esac
1173
1174     cd $ac_dir
1175     # Check for guested configure; otherwise get Cygnus style configure.
1176     if test -f $ac_srcdir/configure.gnu; then
1177       echo
1178       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1179     elif test -f $ac_srcdir/configure; then
1180       echo
1181       $SHELL $ac_srcdir/configure  --help=recursive
1182     elif test -f $ac_srcdir/configure.ac ||
1183            test -f $ac_srcdir/configure.in; then
1184       echo
1185       $ac_configure --help
1186     else
1187       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1188     fi
1189     cd $ac_popdir
1190   done
1191 fi
1192
1193 test -n "$ac_init_help" && exit 0
1194 if $ac_init_version; then
1195   cat <<\_ACEOF
1196
1197 Copyright (C) 2003 Free Software Foundation, Inc.
1198 This configure script is free software; the Free Software Foundation
1199 gives unlimited permission to copy, distribute and modify it.
1200 _ACEOF
1201   exit 0
1202 fi
1203 exec 5>config.log
1204 cat >&5 <<_ACEOF
1205 This file contains any messages produced by compilers while
1206 running configure, to aid debugging if configure makes a mistake.
1207
1208 It was created by $as_me, which was
1209 generated by GNU Autoconf 2.59.  Invocation command line was
1210
1211   $ $0 $@
1212
1213 _ACEOF
1214 {
1215 cat <<_ASUNAME
1216 ## --------- ##
1217 ## Platform. ##
1218 ## --------- ##
1219
1220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1225
1226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1227 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1228
1229 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1230 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1232 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1233 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1234 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1235 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1236
1237 _ASUNAME
1238
1239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1240 for as_dir in $PATH
1241 do
1242   IFS=$as_save_IFS
1243   test -z "$as_dir" && as_dir=.
1244   echo "PATH: $as_dir"
1245 done
1246
1247 } >&5
1248
1249 cat >&5 <<_ACEOF
1250
1251
1252 ## ----------- ##
1253 ## Core tests. ##
1254 ## ----------- ##
1255
1256 _ACEOF
1257
1258
1259 # Keep a trace of the command line.
1260 # Strip out --no-create and --no-recursion so they do not pile up.
1261 # Strip out --silent because we don't want to record it for future runs.
1262 # Also quote any args containing shell meta-characters.
1263 # Make two passes to allow for proper duplicate-argument suppression.
1264 ac_configure_args=
1265 ac_configure_args0=
1266 ac_configure_args1=
1267 ac_sep=
1268 ac_must_keep_next=false
1269 for ac_pass in 1 2
1270 do
1271   for ac_arg
1272   do
1273     case $ac_arg in
1274     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1275     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276     | -silent | --silent | --silen | --sile | --sil)
1277       continue ;;
1278     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1280     esac
1281     case $ac_pass in
1282     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1283     2)
1284       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1285       if test $ac_must_keep_next = true; then
1286         ac_must_keep_next=false # Got value, back to normal.
1287       else
1288         case $ac_arg in
1289           *=* | --config-cache | -C | -disable-* | --disable-* \
1290           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1291           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1292           | -with-* | --with-* | -without-* | --without-* | --x)
1293             case "$ac_configure_args0 " in
1294               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1295             esac
1296             ;;
1297           -* ) ac_must_keep_next=true ;;
1298         esac
1299       fi
1300       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1301       # Get rid of the leading space.
1302       ac_sep=" "
1303       ;;
1304     esac
1305   done
1306 done
1307 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1308 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1309
1310 # When interrupted or exit'd, cleanup temporary files, and complete
1311 # config.log.  We remove comments because anyway the quotes in there
1312 # would cause problems or look ugly.
1313 # WARNING: Be sure not to use single quotes in there, as some shells,
1314 # such as our DU 5.0 friend, will then `close' the trap.
1315 trap 'exit_status=$?
1316   # Save into config.log some information that might help in debugging.
1317   {
1318     echo
1319
1320     cat <<\_ASBOX
1321 ## ---------------- ##
1322 ## Cache variables. ##
1323 ## ---------------- ##
1324 _ASBOX
1325     echo
1326     # The following way of writing the cache mishandles newlines in values,
1327 {
1328   (set) 2>&1 |
1329     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1330     *ac_space=\ *)
1331       sed -n \
1332         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1333           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1334       ;;
1335     *)
1336       sed -n \
1337         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1338       ;;
1339     esac;
1340 }
1341     echo
1342
1343     cat <<\_ASBOX
1344 ## ----------------- ##
1345 ## Output variables. ##
1346 ## ----------------- ##
1347 _ASBOX
1348     echo
1349     for ac_var in $ac_subst_vars
1350     do
1351       eval ac_val=$`echo $ac_var`
1352       echo "$ac_var='"'"'$ac_val'"'"'"
1353     done | sort
1354     echo
1355
1356     if test -n "$ac_subst_files"; then
1357       cat <<\_ASBOX
1358 ## ------------- ##
1359 ## Output files. ##
1360 ## ------------- ##
1361 _ASBOX
1362       echo
1363       for ac_var in $ac_subst_files
1364       do
1365         eval ac_val=$`echo $ac_var`
1366         echo "$ac_var='"'"'$ac_val'"'"'"
1367       done | sort
1368       echo
1369     fi
1370
1371     if test -s confdefs.h; then
1372       cat <<\_ASBOX
1373 ## ----------- ##
1374 ## confdefs.h. ##
1375 ## ----------- ##
1376 _ASBOX
1377       echo
1378       sed "/^$/d" confdefs.h | sort
1379       echo
1380     fi
1381     test "$ac_signal" != 0 &&
1382       echo "$as_me: caught signal $ac_signal"
1383     echo "$as_me: exit $exit_status"
1384   } >&5
1385   rm -f core *.core &&
1386   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1387     exit $exit_status
1388      ' 0
1389 for ac_signal in 1 2 13 15; do
1390   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1391 done
1392 ac_signal=0
1393
1394 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1395 rm -rf conftest* confdefs.h
1396 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1397 echo >confdefs.h
1398
1399 # Predefined preprocessor variables.
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_NAME "$PACKAGE_NAME"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1408 _ACEOF
1409
1410
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1413 _ACEOF
1414
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_STRING "$PACKAGE_STRING"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1423 _ACEOF
1424
1425
1426 # Let the site file select an alternate cache file if it wants to.
1427 # Prefer explicitly selected file to automatically selected ones.
1428 if test -z "$CONFIG_SITE"; then
1429   if test "x$prefix" != xNONE; then
1430     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1431   else
1432     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1433   fi
1434 fi
1435 for ac_site_file in $CONFIG_SITE; do
1436   if test -r "$ac_site_file"; then
1437     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1438 echo "$as_me: loading site script $ac_site_file" >&6;}
1439     sed 's/^/| /' "$ac_site_file" >&5
1440     . "$ac_site_file"
1441   fi
1442 done
1443
1444 if test -r "$cache_file"; then
1445   # Some versions of bash will fail to source /dev/null (special
1446   # files actually), so we avoid doing that.
1447   if test -f "$cache_file"; then
1448     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1449 echo "$as_me: loading cache $cache_file" >&6;}
1450     case $cache_file in
1451       [\\/]* | ?:[\\/]* ) . $cache_file;;
1452       *)                      . ./$cache_file;;
1453     esac
1454   fi
1455 else
1456   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1457 echo "$as_me: creating cache $cache_file" >&6;}
1458   >$cache_file
1459 fi
1460
1461 # Check that the precious variables saved in the cache have kept the same
1462 # value.
1463 ac_cache_corrupted=false
1464 for ac_var in `(set) 2>&1 |
1465                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467   eval ac_new_set=\$ac_env_${ac_var}_set
1468   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469   eval ac_new_val="\$ac_env_${ac_var}_value"
1470   case $ac_old_set,$ac_new_set in
1471     set,)
1472       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474       ac_cache_corrupted=: ;;
1475     ,set)
1476       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478       ac_cache_corrupted=: ;;
1479     ,);;
1480     *)
1481       if test "x$ac_old_val" != "x$ac_new_val"; then
1482         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1485 echo "$as_me:   former value:  $ac_old_val" >&2;}
1486         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1487 echo "$as_me:   current value: $ac_new_val" >&2;}
1488         ac_cache_corrupted=:
1489       fi;;
1490   esac
1491   # Pass precious variables to config.status.
1492   if test "$ac_new_set" = set; then
1493     case $ac_new_val in
1494     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496     *) ac_arg=$ac_var=$ac_new_val ;;
1497     esac
1498     case " $ac_configure_args " in
1499       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1500       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501     esac
1502   fi
1503 done
1504 if $ac_cache_corrupted; then
1505   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509    { (exit 1); exit 1; }; }
1510 fi
1511
1512 ac_ext=c
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536 ac_aux_dir=
1537 for ac_dir in ../../config $srcdir/../../config; do
1538   if test -f $ac_dir/install-sh; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/install-sh -c"
1541     break
1542   elif test -f $ac_dir/install.sh; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/install.sh -c"
1545     break
1546   elif test -f $ac_dir/shtool; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/shtool install -c"
1549     break
1550   fi
1551 done
1552 if test -z "$ac_aux_dir"; then
1553   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../config $srcdir/../../config" >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in ../../config $srcdir/../../config" >&2;}
1555    { (exit 1); exit 1; }; }
1556 fi
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
1561           ac_config_headers="$ac_config_headers config.h"
1562
1563
1564 am__api_version="1.9"
1565 # Find a good install program.  We prefer a C program (faster),
1566 # so one script is as good as another.  But avoid the broken or
1567 # incompatible versions:
1568 # SysV /etc/install, /usr/sbin/install
1569 # SunOS /usr/etc/install
1570 # IRIX /sbin/install
1571 # AIX /bin/install
1572 # AmigaOS /C/install, which installs bootblocks on floppy discs
1573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1576 # OS/2's system install, which has a completely different semantic
1577 # ./install, which can be erroneously created by make from ./install.sh.
1578 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1579 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1580 if test -z "$INSTALL"; then
1581 if test "${ac_cv_path_install+set}" = set; then
1582   echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   # Account for people who put trailing slashes in PATH elements.
1590 case $as_dir/ in
1591   ./ | .// | /cC/* | \
1592   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1593   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1594   /usr/ucb/* ) ;;
1595   *)
1596     # OSF1 and SCO ODT 3.0 have their own names for install.
1597     # Don't use installbsd from OSF since it installs stuff as root
1598     # by default.
1599     for ac_prog in ginstall scoinst install; do
1600       for ac_exec_ext in '' $ac_executable_extensions; do
1601         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1602           if test $ac_prog = install &&
1603             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1604             # AIX install.  It has an incompatible calling convention.
1605             :
1606           elif test $ac_prog = install &&
1607             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608             # program-specific install script used by HP pwplus--don't use.
1609             :
1610           else
1611             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1612             break 3
1613           fi
1614         fi
1615       done
1616     done
1617     ;;
1618 esac
1619 done
1620
1621
1622 fi
1623   if test "${ac_cv_path_install+set}" = set; then
1624     INSTALL=$ac_cv_path_install
1625   else
1626     # As a last resort, use the slow shell script.  We don't cache a
1627     # path for INSTALL within a source directory, because that will
1628     # break other packages using the cache if that directory is
1629     # removed, or if the path is relative.
1630     INSTALL=$ac_install_sh
1631   fi
1632 fi
1633 echo "$as_me:$LINENO: result: $INSTALL" >&5
1634 echo "${ECHO_T}$INSTALL" >&6
1635
1636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1637 # It thinks the first close brace ends the variable substitution.
1638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1639
1640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1641
1642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1643
1644 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1645 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1646 # Just in case
1647 sleep 1
1648 echo timestamp > conftest.file
1649 # Do `set' in a subshell so we don't clobber the current shell's
1650 # arguments.  Must try -L first in case configure is actually a
1651 # symlink; some systems play weird games with the mod time of symlinks
1652 # (eg FreeBSD returns the mod time of the symlink's containing
1653 # directory).
1654 if (
1655    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1656    if test "$*" = "X"; then
1657       # -L didn't work.
1658       set X `ls -t $srcdir/configure conftest.file`
1659    fi
1660    rm -f conftest.file
1661    if test "$*" != "X $srcdir/configure conftest.file" \
1662       && test "$*" != "X conftest.file $srcdir/configure"; then
1663
1664       # If neither matched, then we have a broken ls.  This can happen
1665       # if, for instance, CONFIG_SHELL is bash and it inherits a
1666       # broken ls alias from the environment.  This has actually
1667       # happened.  Such a system could not be considered "sane".
1668       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1669 alias in your environment" >&5
1670 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1671 alias in your environment" >&2;}
1672    { (exit 1); exit 1; }; }
1673    fi
1674
1675    test "$2" = conftest.file
1676    )
1677 then
1678    # Ok.
1679    :
1680 else
1681    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1682 Check your system clock" >&5
1683 echo "$as_me: error: newly created file is older than distributed files!
1684 Check your system clock" >&2;}
1685    { (exit 1); exit 1; }; }
1686 fi
1687 echo "$as_me:$LINENO: result: yes" >&5
1688 echo "${ECHO_T}yes" >&6
1689 test "$program_prefix" != NONE &&
1690   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1691 # Use a double $ so make ignores it.
1692 test "$program_suffix" != NONE &&
1693   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1694 # Double any \ or $.  echo might interpret backslashes.
1695 # By default was `s,x,x', remove it if useless.
1696 cat <<\_ACEOF >conftest.sed
1697 s/[\\$]/&&/g;s/;s,x,x,$//
1698 _ACEOF
1699 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1700 rm conftest.sed
1701
1702 # expand $ac_aux_dir to an absolute path
1703 am_aux_dir=`cd $ac_aux_dir && pwd`
1704
1705 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1706 # Use eval to expand $SHELL
1707 if eval "$MISSING --run true"; then
1708   am_missing_run="$MISSING --run "
1709 else
1710   am_missing_run=
1711   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1712 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1713 fi
1714
1715 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1716   # We used to keeping the `.' as first argument, in order to
1717   # allow $(mkdir_p) to be used without argument.  As in
1718   #   $(mkdir_p) $(somedir)
1719   # where $(somedir) is conditionally defined.  However this is wrong
1720   # for two reasons:
1721   #  1. if the package is installed by a user who cannot write `.'
1722   #     make install will fail,
1723   #  2. the above comment should most certainly read
1724   #     $(mkdir_p) $(DESTDIR)$(somedir)
1725   #     so it does not work when $(somedir) is undefined and
1726   #     $(DESTDIR) is not.
1727   #  To support the latter case, we have to write
1728   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1729   #  so the `.' trick is pointless.
1730   mkdir_p='mkdir -p --'
1731 else
1732   # On NextStep and OpenStep, the `mkdir' command does not
1733   # recognize any option.  It will interpret all options as
1734   # directories to create, and then abort because `.' already
1735   # exists.
1736   for d in ./-p ./--version;
1737   do
1738     test -d $d && rmdir $d
1739   done
1740   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1741   if test -f "$ac_aux_dir/mkinstalldirs"; then
1742     mkdir_p='$(mkinstalldirs)'
1743   else
1744     mkdir_p='$(install_sh) -d'
1745   fi
1746 fi
1747
1748 for ac_prog in gawk mawk nawk awk
1749 do
1750   # Extract the first word of "$ac_prog", so it can be a program name with args.
1751 set dummy $ac_prog; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_AWK+set}" = set; then
1755   echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757   if test -n "$AWK"; then
1758   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1759 else
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763   IFS=$as_save_IFS
1764   test -z "$as_dir" && as_dir=.
1765   for ac_exec_ext in '' $ac_executable_extensions; do
1766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767     ac_cv_prog_AWK="$ac_prog"
1768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769     break 2
1770   fi
1771 done
1772 done
1773
1774 fi
1775 fi
1776 AWK=$ac_cv_prog_AWK
1777 if test -n "$AWK"; then
1778   echo "$as_me:$LINENO: result: $AWK" >&5
1779 echo "${ECHO_T}$AWK" >&6
1780 else
1781   echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783 fi
1784
1785   test -n "$AWK" && break
1786 done
1787
1788 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1789 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1790 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1791 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1792   echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794   cat >conftest.make <<\_ACEOF
1795 all:
1796         @echo 'ac_maketemp="$(MAKE)"'
1797 _ACEOF
1798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1799 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1800 if test -n "$ac_maketemp"; then
1801   eval ac_cv_prog_make_${ac_make}_set=yes
1802 else
1803   eval ac_cv_prog_make_${ac_make}_set=no
1804 fi
1805 rm -f conftest.make
1806 fi
1807 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1808   echo "$as_me:$LINENO: result: yes" >&5
1809 echo "${ECHO_T}yes" >&6
1810   SET_MAKE=
1811 else
1812   echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814   SET_MAKE="MAKE=${MAKE-make}"
1815 fi
1816
1817 rm -rf .tst 2>/dev/null
1818 mkdir .tst 2>/dev/null
1819 if test -d .tst; then
1820   am__leading_dot=.
1821 else
1822   am__leading_dot=_
1823 fi
1824 rmdir .tst 2>/dev/null
1825
1826 # test to see if srcdir already configured
1827 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1828    test -f $srcdir/config.status; then
1829   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1830 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1831    { (exit 1); exit 1; }; }
1832 fi
1833
1834 # test whether we have cygpath
1835 if test -z "$CYGPATH_W"; then
1836   if (cygpath --version) >/dev/null 2>/dev/null; then
1837     CYGPATH_W='cygpath -w'
1838   else
1839     CYGPATH_W=echo
1840   fi
1841 fi
1842
1843
1844 # Define the identity of the package.
1845  PACKAGE=sidcomp
1846  VERSION=0.1
1847
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE "$PACKAGE"
1851 _ACEOF
1852
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define VERSION "$VERSION"
1856 _ACEOF
1857
1858 # Some tools Automake needs.
1859
1860 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1861
1862
1863 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1864
1865
1866 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1867
1868
1869 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1870
1871
1872 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1873
1874 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1875
1876 # Installed binaries are usually stripped using `strip' when the user
1877 # run `make install-strip'.  However `strip' might not be the right
1878 # tool to use in cross-compilation environments, therefore Automake
1879 # will honor the `STRIP' environment variable to overrule this program.
1880 if test "$cross_compiling" != no; then
1881   if test -n "$ac_tool_prefix"; then
1882   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1883 set dummy ${ac_tool_prefix}strip; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_STRIP+set}" = set; then
1887   echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889   if test -n "$STRIP"; then
1890   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895   IFS=$as_save_IFS
1896   test -z "$as_dir" && as_dir=.
1897   for ac_exec_ext in '' $ac_executable_extensions; do
1898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901     break 2
1902   fi
1903 done
1904 done
1905
1906 fi
1907 fi
1908 STRIP=$ac_cv_prog_STRIP
1909 if test -n "$STRIP"; then
1910   echo "$as_me:$LINENO: result: $STRIP" >&5
1911 echo "${ECHO_T}$STRIP" >&6
1912 else
1913   echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917 fi
1918 if test -z "$ac_cv_prog_STRIP"; then
1919   ac_ct_STRIP=$STRIP
1920   # Extract the first word of "strip", so it can be a program name with args.
1921 set dummy strip; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1925   echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927   if test -n "$ac_ct_STRIP"; then
1928   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933   IFS=$as_save_IFS
1934   test -z "$as_dir" && as_dir=.
1935   for ac_exec_ext in '' $ac_executable_extensions; do
1936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937     ac_cv_prog_ac_ct_STRIP="strip"
1938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939     break 2
1940   fi
1941 done
1942 done
1943
1944   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1945 fi
1946 fi
1947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1948 if test -n "$ac_ct_STRIP"; then
1949   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1950 echo "${ECHO_T}$ac_ct_STRIP" >&6
1951 else
1952   echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1954 fi
1955
1956   STRIP=$ac_ct_STRIP
1957 else
1958   STRIP="$ac_cv_prog_STRIP"
1959 fi
1960
1961 fi
1962 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1963
1964 # We need awk for the "check" target.  The system "awk" is bad on
1965 # some platforms.
1966 # Always define AMTAR for backward compatibility.
1967
1968 AMTAR=${AMTAR-"${am_missing_run}tar"}
1969
1970 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1971
1972
1973
1974
1975
1976 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1977 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1978     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1979 if test "${enable_maintainer_mode+set}" = set; then
1980   enableval="$enable_maintainer_mode"
1981   USE_MAINTAINER_MODE=$enableval
1982 else
1983   USE_MAINTAINER_MODE=no
1984 fi;
1985   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1986 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1987
1988
1989 if test $USE_MAINTAINER_MODE = yes; then
1990   MAINTAINER_MODE_TRUE=
1991   MAINTAINER_MODE_FALSE='#'
1992 else
1993   MAINTAINER_MODE_TRUE='#'
1994   MAINTAINER_MODE_FALSE=
1995 fi
1996
1997   MAINT=$MAINTAINER_MODE_TRUE
1998
1999
2000
2001 # Check whether --enable-shared or --disable-shared was given.
2002 if test "${enable_shared+set}" = set; then
2003   enableval="$enable_shared"
2004   p=${PACKAGE-default}
2005     case $enableval in
2006     yes) enable_shared=yes ;;
2007     no) enable_shared=no ;;
2008     *)
2009       enable_shared=no
2010       # Look at the argument we got.  We use all the common list separators.
2011       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2012       for pkg in $enableval; do
2013         IFS="$lt_save_ifs"
2014         if test "X$pkg" = "X$p"; then
2015           enable_shared=yes
2016         fi
2017       done
2018       IFS="$lt_save_ifs"
2019       ;;
2020     esac
2021 else
2022   enable_shared=yes
2023 fi;
2024
2025 # Check whether --enable-static or --disable-static was given.
2026 if test "${enable_static+set}" = set; then
2027   enableval="$enable_static"
2028   p=${PACKAGE-default}
2029     case $enableval in
2030     yes) enable_static=yes ;;
2031     no) enable_static=no ;;
2032     *)
2033      enable_static=no
2034       # Look at the argument we got.  We use all the common list separators.
2035       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2036       for pkg in $enableval; do
2037         IFS="$lt_save_ifs"
2038         if test "X$pkg" = "X$p"; then
2039           enable_static=yes
2040         fi
2041       done
2042       IFS="$lt_save_ifs"
2043       ;;
2044     esac
2045 else
2046   enable_static=yes
2047 fi;
2048
2049 # Check whether --enable-fast-install or --disable-fast-install was given.
2050 if test "${enable_fast_install+set}" = set; then
2051   enableval="$enable_fast_install"
2052   p=${PACKAGE-default}
2053     case $enableval in
2054     yes) enable_fast_install=yes ;;
2055     no) enable_fast_install=no ;;
2056     *)
2057       enable_fast_install=no
2058       # Look at the argument we got.  We use all the common list separators.
2059       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2060       for pkg in $enableval; do
2061         IFS="$lt_save_ifs"
2062         if test "X$pkg" = "X$p"; then
2063           enable_fast_install=yes
2064         fi
2065       done
2066       IFS="$lt_save_ifs"
2067       ;;
2068     esac
2069 else
2070   enable_fast_install=yes
2071 fi;
2072
2073 # Make sure we can run config.sub.
2074 $ac_config_sub sun4 >/dev/null 2>&1 ||
2075   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2076 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2077    { (exit 1); exit 1; }; }
2078
2079 echo "$as_me:$LINENO: checking build system type" >&5
2080 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2081 if test "${ac_cv_build+set}" = set; then
2082   echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084   ac_cv_build_alias=$build_alias
2085 test -z "$ac_cv_build_alias" &&
2086   ac_cv_build_alias=`$ac_config_guess`
2087 test -z "$ac_cv_build_alias" &&
2088   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2089 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2090    { (exit 1); exit 1; }; }
2091 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2092   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2093 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2094    { (exit 1); exit 1; }; }
2095
2096 fi
2097 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2098 echo "${ECHO_T}$ac_cv_build" >&6
2099 build=$ac_cv_build
2100 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2101 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2102 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2103
2104
2105 echo "$as_me:$LINENO: checking host system type" >&5
2106 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2107 if test "${ac_cv_host+set}" = set; then
2108   echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110   ac_cv_host_alias=$host_alias
2111 test -z "$ac_cv_host_alias" &&
2112   ac_cv_host_alias=$ac_cv_build_alias
2113 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2114   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2115 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2116    { (exit 1); exit 1; }; }
2117
2118 fi
2119 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2120 echo "${ECHO_T}$ac_cv_host" >&6
2121 host=$ac_cv_host
2122 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2123 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2124 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2125
2126
2127 DEPDIR="${am__leading_dot}deps"
2128
2129           ac_config_commands="$ac_config_commands depfiles"
2130
2131
2132 am_make=${MAKE-make}
2133 cat > confinc << 'END'
2134 am__doit:
2135         @echo done
2136 .PHONY: am__doit
2137 END
2138 # If we don't find an include directive, just comment out the code.
2139 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2140 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2141 am__include="#"
2142 am__quote=
2143 _am_result=none
2144 # First try GNU make style include.
2145 echo "include confinc" > confmf
2146 # We grep out `Entering directory' and `Leaving directory'
2147 # messages which can occur if `w' ends up in MAKEFLAGS.
2148 # In particular we don't look at `^make:' because GNU make might
2149 # be invoked under some other name (usually "gmake"), in which
2150 # case it prints its new name instead of `make'.
2151 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2152    am__include=include
2153    am__quote=
2154    _am_result=GNU
2155 fi
2156 # Now try BSD make style include.
2157 if test "$am__include" = "#"; then
2158    echo '.include "confinc"' > confmf
2159    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2160       am__include=.include
2161       am__quote="\""
2162       _am_result=BSD
2163    fi
2164 fi
2165
2166
2167 echo "$as_me:$LINENO: result: $_am_result" >&5
2168 echo "${ECHO_T}$_am_result" >&6
2169 rm -f confinc confmf
2170
2171 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2172 if test "${enable_dependency_tracking+set}" = set; then
2173   enableval="$enable_dependency_tracking"
2174
2175 fi;
2176 if test "x$enable_dependency_tracking" != xno; then
2177   am_depcomp="$ac_aux_dir/depcomp"
2178   AMDEPBACKSLASH='\'
2179 fi
2180
2181
2182 if test "x$enable_dependency_tracking" != xno; then
2183   AMDEP_TRUE=
2184   AMDEP_FALSE='#'
2185 else
2186   AMDEP_TRUE='#'
2187   AMDEP_FALSE=
2188 fi
2189
2190
2191
2192 ac_ext=c
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197 if test -n "$ac_tool_prefix"; then
2198   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   if test -n "$CC"; then
2206   ac_cv_prog_CC="$CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211   IFS=$as_save_IFS
2212   test -z "$as_dir" && as_dir=.
2213   for ac_exec_ext in '' $ac_executable_extensions; do
2214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217     break 2
2218   fi
2219 done
2220 done
2221
2222 fi
2223 fi
2224 CC=$ac_cv_prog_CC
2225 if test -n "$CC"; then
2226   echo "$as_me:$LINENO: result: $CC" >&5
2227 echo "${ECHO_T}$CC" >&6
2228 else
2229   echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2231 fi
2232
2233 fi
2234 if test -z "$ac_cv_prog_CC"; then
2235   ac_ct_CC=$CC
2236   # Extract the first word of "gcc", so it can be a program name with args.
2237 set dummy gcc; ac_word=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241   echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243   if test -n "$ac_ct_CC"; then
2244   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2248 do
2249   IFS=$as_save_IFS
2250   test -z "$as_dir" && as_dir=.
2251   for ac_exec_ext in '' $ac_executable_extensions; do
2252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2253     ac_cv_prog_ac_ct_CC="gcc"
2254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255     break 2
2256   fi
2257 done
2258 done
2259
2260 fi
2261 fi
2262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263 if test -n "$ac_ct_CC"; then
2264   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265 echo "${ECHO_T}$ac_ct_CC" >&6
2266 else
2267   echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2269 fi
2270
2271   CC=$ac_ct_CC
2272 else
2273   CC="$ac_cv_prog_CC"
2274 fi
2275
2276 if test -z "$CC"; then
2277   if test -n "$ac_tool_prefix"; then
2278   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2279 set dummy ${ac_tool_prefix}cc; ac_word=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   if test -n "$CC"; then
2286   ac_cv_prog_CC="$CC" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_exec_ext in '' $ac_executable_extensions; do
2294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295     ac_cv_prog_CC="${ac_tool_prefix}cc"
2296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297     break 2
2298   fi
2299 done
2300 done
2301
2302 fi
2303 fi
2304 CC=$ac_cv_prog_CC
2305 if test -n "$CC"; then
2306   echo "$as_me:$LINENO: result: $CC" >&5
2307 echo "${ECHO_T}$CC" >&6
2308 else
2309   echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2311 fi
2312
2313 fi
2314 if test -z "$ac_cv_prog_CC"; then
2315   ac_ct_CC=$CC
2316   # Extract the first word of "cc", so it can be a program name with args.
2317 set dummy cc; ac_word=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2321   echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323   if test -n "$ac_ct_CC"; then
2324   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329   IFS=$as_save_IFS
2330   test -z "$as_dir" && as_dir=.
2331   for ac_exec_ext in '' $ac_executable_extensions; do
2332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333     ac_cv_prog_ac_ct_CC="cc"
2334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335     break 2
2336   fi
2337 done
2338 done
2339
2340 fi
2341 fi
2342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2343 if test -n "$ac_ct_CC"; then
2344   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2345 echo "${ECHO_T}$ac_ct_CC" >&6
2346 else
2347   echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2349 fi
2350
2351   CC=$ac_ct_CC
2352 else
2353   CC="$ac_cv_prog_CC"
2354 fi
2355
2356 fi
2357 if test -z "$CC"; then
2358   # Extract the first word of "cc", so it can be a program name with args.
2359 set dummy cc; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$CC"; then
2366   ac_cv_prog_CC="$CC" # Let the user override the test.
2367 else
2368   ac_prog_rejected=no
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372   IFS=$as_save_IFS
2373   test -z "$as_dir" && as_dir=.
2374   for ac_exec_ext in '' $ac_executable_extensions; do
2375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377        ac_prog_rejected=yes
2378        continue
2379      fi
2380     ac_cv_prog_CC="cc"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386
2387 if test $ac_prog_rejected = yes; then
2388   # We found a bogon in the path, so make sure we never use it.
2389   set dummy $ac_cv_prog_CC
2390   shift
2391   if test $# != 0; then
2392     # We chose a different compiler from the bogus one.
2393     # However, it has the same basename, so the bogon will be chosen
2394     # first if we set CC to just the basename; use the full file name.
2395     shift
2396     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2397   fi
2398 fi
2399 fi
2400 fi
2401 CC=$ac_cv_prog_CC
2402 if test -n "$CC"; then
2403   echo "$as_me:$LINENO: result: $CC" >&5
2404 echo "${ECHO_T}$CC" >&6
2405 else
2406   echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2408 fi
2409
2410 fi
2411 if test -z "$CC"; then
2412   if test -n "$ac_tool_prefix"; then
2413   for ac_prog in cl
2414   do
2415     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2417 echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   if test -n "$CC"; then
2423   ac_cv_prog_CC="$CC" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2427 do
2428   IFS=$as_save_IFS
2429   test -z "$as_dir" && as_dir=.
2430   for ac_exec_ext in '' $ac_executable_extensions; do
2431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434     break 2
2435   fi
2436 done
2437 done
2438
2439 fi
2440 fi
2441 CC=$ac_cv_prog_CC
2442 if test -n "$CC"; then
2443   echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6
2445 else
2446   echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2448 fi
2449
2450     test -n "$CC" && break
2451   done
2452 fi
2453 if test -z "$CC"; then
2454   ac_ct_CC=$CC
2455   for ac_prog in cl
2456 do
2457   # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$ac_ct_CC"; then
2465   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474     ac_cv_prog_ac_ct_CC="$ac_prog"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480
2481 fi
2482 fi
2483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2484 if test -n "$ac_ct_CC"; then
2485   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2486 echo "${ECHO_T}$ac_ct_CC" >&6
2487 else
2488   echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2490 fi
2491
2492   test -n "$ac_ct_CC" && break
2493 done
2494
2495   CC=$ac_ct_CC
2496 fi
2497
2498 fi
2499
2500
2501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: no acceptable C compiler found in \$PATH
2504 See \`config.log' for more details." >&2;}
2505    { (exit 1); exit 1; }; }
2506
2507 # Provide some information about the compiler.
2508 echo "$as_me:$LINENO:" \
2509      "checking for C compiler version" >&5
2510 ac_compiler=`set X $ac_compile; echo $2`
2511 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2512   (eval $ac_compiler --version </dev/null >&5) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2517   (eval $ac_compiler -v </dev/null >&5) 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2522   (eval $ac_compiler -V </dev/null >&5) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }
2526
2527 cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h.  */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h.  */
2533
2534 int
2535 main ()
2536 {
2537
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 ac_clean_files_save=$ac_clean_files
2543 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2544 # Try to create an executable without -o first, disregard a.out.
2545 # It will help us diagnose broken compilers, and finding out an intuition
2546 # of exeext.
2547 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2548 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2549 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2550 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2551   (eval $ac_link_default) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; then
2555   # Find the output, starting from the most likely.  This scheme is
2556 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2557 # resort.
2558
2559 # Be careful to initialize this variable, since it used to be cached.
2560 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2561 ac_cv_exeext=
2562 # b.out is created by i960 compilers.
2563 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2564 do
2565   test -f "$ac_file" || continue
2566   case $ac_file in
2567     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2568         ;;
2569     conftest.$ac_ext )
2570         # This is the source file.
2571         ;;
2572     [ab].out )
2573         # We found the default executable, but exeext='' is most
2574         # certainly right.
2575         break;;
2576     *.* )
2577         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578         # FIXME: I believe we export ac_cv_exeext for Libtool,
2579         # but it would be cool to find out if it's true.  Does anybody
2580         # maintain Libtool? --akim.
2581         export ac_cv_exeext
2582         break;;
2583     * )
2584         break;;
2585   esac
2586 done
2587 else
2588   echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: C compiler cannot create executables
2594 See \`config.log' for more details." >&2;}
2595    { (exit 77); exit 77; }; }
2596 fi
2597
2598 ac_exeext=$ac_cv_exeext
2599 echo "$as_me:$LINENO: result: $ac_file" >&5
2600 echo "${ECHO_T}$ac_file" >&6
2601
2602 # Check the compiler produces executables we can run.  If not, either
2603 # the compiler is broken, or we cross compile.
2604 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2605 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2606 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2607 # If not cross compiling, check that we can run a simple program.
2608 if test "$cross_compiling" != yes; then
2609   if { ac_try='./$ac_file'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; }; then
2615     cross_compiling=no
2616   else
2617     if test "$cross_compiling" = maybe; then
2618         cross_compiling=yes
2619     else
2620         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2621 If you meant to cross compile, use \`--host'.
2622 See \`config.log' for more details." >&5
2623 echo "$as_me: error: cannot run C compiled programs.
2624 If you meant to cross compile, use \`--host'.
2625 See \`config.log' for more details." >&2;}
2626    { (exit 1); exit 1; }; }
2627     fi
2628   fi
2629 fi
2630 echo "$as_me:$LINENO: result: yes" >&5
2631 echo "${ECHO_T}yes" >&6
2632
2633 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2634 ac_clean_files=$ac_clean_files_save
2635 # Check the compiler produces executables we can run.  If not, either
2636 # the compiler is broken, or we cross compile.
2637 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2638 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2639 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2640 echo "${ECHO_T}$cross_compiling" >&6
2641
2642 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2643 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2645   (eval $ac_link) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; then
2649   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2650 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2651 # work properly (i.e., refer to `conftest.exe'), while it won't with
2652 # `rm'.
2653 for ac_file in conftest.exe conftest conftest.*; do
2654   test -f "$ac_file" || continue
2655   case $ac_file in
2656     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2657     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2658           export ac_cv_exeext
2659           break;;
2660     * ) break;;
2661   esac
2662 done
2663 else
2664   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2667 See \`config.log' for more details." >&2;}
2668    { (exit 1); exit 1; }; }
2669 fi
2670
2671 rm -f conftest$ac_cv_exeext
2672 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2673 echo "${ECHO_T}$ac_cv_exeext" >&6
2674
2675 rm -f conftest.$ac_ext
2676 EXEEXT=$ac_cv_exeext
2677 ac_exeext=$EXEEXT
2678 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2679 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2680 if test "${ac_cv_objext+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689
2690 int
2691 main ()
2692 {
2693
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.o conftest.obj
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700   (eval $ac_compile) 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }; then
2704   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2705   case $ac_file in
2706     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2707     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2708        break;;
2709   esac
2710 done
2711 else
2712   echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2716 See \`config.log' for more details." >&5
2717 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2718 See \`config.log' for more details." >&2;}
2719    { (exit 1); exit 1; }; }
2720 fi
2721
2722 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2723 fi
2724 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2725 echo "${ECHO_T}$ac_cv_objext" >&6
2726 OBJEXT=$ac_cv_objext
2727 ac_objext=$OBJEXT
2728 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2729 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2730 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2731   echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733   cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h.  */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h.  */
2739
2740 int
2741 main ()
2742 {
2743 #ifndef __GNUC__
2744        choke me
2745 #endif
2746
2747   ;
2748   return 0;
2749 }
2750 _ACEOF
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753   (eval $ac_compile) 2>conftest.er1
2754   ac_status=$?
2755   grep -v '^ *+' conftest.er1 >conftest.err
2756   rm -f conftest.er1
2757   cat conftest.err >&5
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); } &&
2760          { ac_try='test -z "$ac_c_werror_flag"
2761                          || test ! -s conftest.err'
2762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }; } &&
2767          { ac_try='test -s conftest.$ac_objext'
2768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769   (eval $ac_try) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; }; then
2773   ac_compiler_gnu=yes
2774 else
2775   echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2777
2778 ac_compiler_gnu=no
2779 fi
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2782
2783 fi
2784 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2785 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2786 GCC=`test $ac_compiler_gnu = yes && echo yes`
2787 ac_test_CFLAGS=${CFLAGS+set}
2788 ac_save_CFLAGS=$CFLAGS
2789 CFLAGS="-g"
2790 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2791 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2792 if test "${ac_cv_prog_cc_g+set}" = set; then
2793   echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795   cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h.  */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h.  */
2801
2802 int
2803 main ()
2804 {
2805
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812   (eval $ac_compile) 2>conftest.er1
2813   ac_status=$?
2814   grep -v '^ *+' conftest.er1 >conftest.err
2815   rm -f conftest.er1
2816   cat conftest.err >&5
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); } &&
2819          { ac_try='test -z "$ac_c_werror_flag"
2820                          || test ! -s conftest.err'
2821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822   (eval $ac_try) 2>&5
2823   ac_status=$?
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); }; } &&
2826          { ac_try='test -s conftest.$ac_objext'
2827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828   (eval $ac_try) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; }; then
2832   ac_cv_prog_cc_g=yes
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 ac_cv_prog_cc_g=no
2838 fi
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 fi
2841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2843 if test "$ac_test_CFLAGS" = set; then
2844   CFLAGS=$ac_save_CFLAGS
2845 elif test $ac_cv_prog_cc_g = yes; then
2846   if test "$GCC" = yes; then
2847     CFLAGS="-g -O2"
2848   else
2849     CFLAGS="-g"
2850   fi
2851 else
2852   if test "$GCC" = yes; then
2853     CFLAGS="-O2"
2854   else
2855     CFLAGS=
2856   fi
2857 fi
2858 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2859 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2861   echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863   ac_cv_prog_cc_stdc=no
2864 ac_save_CC=$CC
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h.  */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h.  */
2871 #include <stdarg.h>
2872 #include <stdio.h>
2873 #include <sys/types.h>
2874 #include <sys/stat.h>
2875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2876 struct buf { int x; };
2877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878 static char *e (p, i)
2879      char **p;
2880      int i;
2881 {
2882   return p[i];
2883 }
2884 static char *f (char * (*g) (char **, int), char **p, ...)
2885 {
2886   char *s;
2887   va_list v;
2888   va_start (v,p);
2889   s = g (p, va_arg (v,int));
2890   va_end (v);
2891   return s;
2892 }
2893
2894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2895    function prototypes and stuff, but not '\xHH' hex character constants.
2896    These don't provoke an error unfortunately, instead are silently treated
2897    as 'x'.  The following induces an error, until -std1 is added to get
2898    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2899    array size at least.  It's necessary to write '\x00'==0 to get something
2900    that's true only with -std1.  */
2901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2902
2903 int test (int i, double x);
2904 struct s1 {int (*f) (int a);};
2905 struct s2 {int (*f) (double a);};
2906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2907 int argc;
2908 char **argv;
2909 int
2910 main ()
2911 {
2912 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2913   ;
2914   return 0;
2915 }
2916 _ACEOF
2917 # Don't try gcc -ansi; that turns off useful extensions and
2918 # breaks some systems' header files.
2919 # AIX                   -qlanglvl=ansi
2920 # Ultrix and OSF/1      -std1
2921 # HP-UX 10.20 and later -Ae
2922 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2923 # SVR4                  -Xc -D__EXTENSIONS__
2924 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2925 do
2926   CC="$ac_save_CC $ac_arg"
2927   rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929   (eval $ac_compile) 2>conftest.er1
2930   ac_status=$?
2931   grep -v '^ *+' conftest.er1 >conftest.err
2932   rm -f conftest.er1
2933   cat conftest.err >&5
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); } &&
2936          { ac_try='test -z "$ac_c_werror_flag"
2937                          || test ! -s conftest.err'
2938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939   (eval $ac_try) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; } &&
2943          { ac_try='test -s conftest.$ac_objext'
2944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945   (eval $ac_try) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; }; then
2949   ac_cv_prog_cc_stdc=$ac_arg
2950 break
2951 else
2952   echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2954
2955 fi
2956 rm -f conftest.err conftest.$ac_objext
2957 done
2958 rm -f conftest.$ac_ext conftest.$ac_objext
2959 CC=$ac_save_CC
2960
2961 fi
2962
2963 case "x$ac_cv_prog_cc_stdc" in
2964   x|xno)
2965     echo "$as_me:$LINENO: result: none needed" >&5
2966 echo "${ECHO_T}none needed" >&6 ;;
2967   *)
2968     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2970     CC="$CC $ac_cv_prog_cc_stdc" ;;
2971 esac
2972
2973 # Some people use a C++ compiler to compile C.  Since we use `exit',
2974 # in C++ we need to declare it.  In case someone uses the same compiler
2975 # for both compiling C and C++ we need to have the C++ compiler decide
2976 # the declaration of exit, since it's the most demanding environment.
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #ifndef __cplusplus
2979   choke me
2980 #endif
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984   (eval $ac_compile) 2>conftest.er1
2985   ac_status=$?
2986   grep -v '^ *+' conftest.er1 >conftest.err
2987   rm -f conftest.er1
2988   cat conftest.err >&5
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); } &&
2991          { ac_try='test -z "$ac_c_werror_flag"
2992                          || test ! -s conftest.err'
2993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994   (eval $ac_try) 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; } &&
2998          { ac_try='test -s conftest.$ac_objext'
2999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000   (eval $ac_try) 2>&5
3001   ac_status=$?
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); }; }; then
3004   for ac_declaration in \
3005    '' \
3006    'extern "C" void std::exit (int) throw (); using std::exit;' \
3007    'extern "C" void std::exit (int); using std::exit;' \
3008    'extern "C" void exit (int) throw ();' \
3009    'extern "C" void exit (int);' \
3010    'void exit (int);'
3011 do
3012   cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h.  */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h.  */
3018 $ac_declaration
3019 #include <stdlib.h>
3020 int
3021 main ()
3022 {
3023 exit (42);
3024   ;
3025   return 0;
3026 }
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030   (eval $ac_compile) 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } &&
3037          { ac_try='test -z "$ac_c_werror_flag"
3038                          || test ! -s conftest.err'
3039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040   (eval $ac_try) 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; } &&
3044          { ac_try='test -s conftest.$ac_objext'
3045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046   (eval $ac_try) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; }; then
3050   :
3051 else
3052   echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 continue
3056 fi
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058   cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h.  */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h.  */
3064 $ac_declaration
3065 int
3066 main ()
3067 {
3068 exit (42);
3069   ;
3070   return 0;
3071 }
3072 _ACEOF
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075   (eval $ac_compile) 2>conftest.er1
3076   ac_status=$?
3077   grep -v '^ *+' conftest.er1 >conftest.err
3078   rm -f conftest.er1
3079   cat conftest.err >&5
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } &&
3082          { ac_try='test -z "$ac_c_werror_flag"
3083                          || test ! -s conftest.err'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; } &&
3089          { ac_try='test -s conftest.$ac_objext'
3090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091   (eval $ac_try) 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }; }; then
3095   break
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 fi
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3102 done
3103 rm -f conftest*
3104 if test -n "$ac_declaration"; then
3105   echo '#ifdef __cplusplus' >>confdefs.h
3106   echo $ac_declaration      >>confdefs.h
3107   echo '#endif'             >>confdefs.h
3108 fi
3109
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 fi
3115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121
3122 depcc="$CC"   am_compiler_list=
3123
3124 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3125 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3126 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3127   echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3130   # We make a subdir and do the tests there.  Otherwise we can end up
3131   # making bogus files that we don't know about and never remove.  For
3132   # instance it was reported that on HP-UX the gcc test will end up
3133   # making a dummy file named `D' -- because `-MD' means `put the output
3134   # in D'.
3135   mkdir conftest.dir
3136   # Copy depcomp to subdir because otherwise we won't find it if we're
3137   # using a relative directory.
3138   cp "$am_depcomp" conftest.dir
3139   cd conftest.dir
3140   # We will build objects and dependencies in a subdirectory because
3141   # it helps to detect inapplicable dependency modes.  For instance
3142   # both Tru64's cc and ICC support -MD to output dependencies as a
3143   # side effect of compilation, but ICC will put the dependencies in
3144   # the current directory while Tru64 will put them in the object
3145   # directory.
3146   mkdir sub
3147
3148   am_cv_CC_dependencies_compiler_type=none
3149   if test "$am_compiler_list" = ""; then
3150      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3151   fi
3152   for depmode in $am_compiler_list; do
3153     # Setup a source with many dependencies, because some compilers
3154     # like to wrap large dependency lists on column 80 (with \), and
3155     # we should not choose a depcomp mode which is confused by this.
3156     #
3157     # We need to recreate these files for each test, as the compiler may
3158     # overwrite some of them when testing with obscure command lines.
3159     # This happens at least with the AIX C compiler.
3160     : > sub/conftest.c
3161     for i in 1 2 3 4 5 6; do
3162       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3163       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3164       # Solaris 8's {/usr,}/bin/sh.
3165       touch sub/conftst$i.h
3166     done
3167     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3168
3169     case $depmode in
3170     nosideeffect)
3171       # after this tag, mechanisms are not by side-effect, so they'll
3172       # only be used when explicitly requested
3173       if test "x$enable_dependency_tracking" = xyes; then
3174         continue
3175       else
3176         break
3177       fi
3178       ;;
3179     none) break ;;
3180     esac
3181     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3182     # mode.  It turns out that the SunPro C++ compiler does not properly
3183     # handle `-M -o', and we need to detect this.
3184     if depmode=$depmode \
3185        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3186        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3187        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3188          >/dev/null 2>conftest.err &&
3189        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3190        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3191        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3192       # icc doesn't choke on unknown options, it will just issue warnings
3193       # or remarks (even with -Werror).  So we grep stderr for any message
3194       # that says an option was ignored or not supported.
3195       # When given -MP, icc 7.0 and 7.1 complain thusly:
3196       #   icc: Command line warning: ignoring option '-M'; no argument required
3197       # The diagnosis changed in icc 8.0:
3198       #   icc: Command line remark: option '-MP' not supported
3199       if (grep 'ignoring option' conftest.err ||
3200           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3201         am_cv_CC_dependencies_compiler_type=$depmode
3202         break
3203       fi
3204     fi
3205   done
3206
3207   cd ..
3208   rm -rf conftest.dir
3209 else
3210   am_cv_CC_dependencies_compiler_type=none
3211 fi
3212
3213 fi
3214 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3215 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3216 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3217
3218
3219
3220 if
3221   test "x$enable_dependency_tracking" != xno \
3222   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3223   am__fastdepCC_TRUE=
3224   am__fastdepCC_FALSE='#'
3225 else
3226   am__fastdepCC_TRUE='#'
3227   am__fastdepCC_FALSE=
3228 fi
3229
3230
3231 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3232 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3233 if test "${lt_cv_path_SED+set}" = set; then
3234   echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236   # Loop through the user's path and test for sed and gsed.
3237 # Then use that list of sed's as ones to test for truncation.
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3240 do
3241   IFS=$as_save_IFS
3242   test -z "$as_dir" && as_dir=.
3243   for lt_ac_prog in sed gsed; do
3244     for ac_exec_ext in '' $ac_executable_extensions; do
3245       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3246         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3247       fi
3248     done
3249   done
3250 done
3251 lt_ac_max=0
3252 lt_ac_count=0
3253 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3254 # along with /bin/sed that truncates output.
3255 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3256   test ! -f $lt_ac_sed && continue
3257   cat /dev/null > conftest.in
3258   lt_ac_count=0
3259   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3260   # Check for GNU sed and select it if it is found.
3261   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3262     lt_cv_path_SED=$lt_ac_sed
3263     break
3264   fi
3265   while true; do
3266     cat conftest.in conftest.in >conftest.tmp
3267     mv conftest.tmp conftest.in
3268     cp conftest.in conftest.nl
3269     echo >>conftest.nl
3270     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3271     cmp -s conftest.out conftest.nl || break
3272     # 10000 chars as input seems more than enough
3273     test $lt_ac_count -gt 10 && break
3274     lt_ac_count=`expr $lt_ac_count + 1`
3275     if test $lt_ac_count -gt $lt_ac_max; then
3276       lt_ac_max=$lt_ac_count
3277       lt_cv_path_SED=$lt_ac_sed
3278     fi
3279   done
3280 done
3281
3282 fi
3283
3284 SED=$lt_cv_path_SED
3285 echo "$as_me:$LINENO: result: $SED" >&5
3286 echo "${ECHO_T}$SED" >&6
3287
3288 echo "$as_me:$LINENO: checking for egrep" >&5
3289 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3290 if test "${ac_cv_prog_egrep+set}" = set; then
3291   echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3294     then ac_cv_prog_egrep='grep -E'
3295     else ac_cv_prog_egrep='egrep'
3296     fi
3297 fi
3298 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3299 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3300  EGREP=$ac_cv_prog_egrep
3301
3302
3303
3304 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3305 if test "${with_gnu_ld+set}" = set; then
3306   withval="$with_gnu_ld"
3307   test "$withval" = no || with_gnu_ld=yes
3308 else
3309   with_gnu_ld=no
3310 fi;
3311 ac_prog=ld
3312 if test "$GCC" = yes; then
3313   # Check if gcc -print-prog-name=ld gives a path.
3314   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3315 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3316   case $host in
3317   *-*-mingw*)
3318     # gcc leaves a trailing carriage return which upsets mingw
3319     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3320   *)
3321     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3322   esac
3323   case $ac_prog in
3324     # Accept absolute paths.
3325     [\\/]* | ?:[\\/]*)
3326       re_direlt='/[^/][^/]*/\.\./'
3327       # Canonicalize the pathname of ld
3328       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3329       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3330         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3331       done
3332       test -z "$LD" && LD="$ac_prog"
3333       ;;
3334   "")
3335     # If it fails, then pretend we aren't using GCC.
3336     ac_prog=ld
3337     ;;
3338   *)
3339     # If it is relative, then search for the first ld in PATH.
3340     with_gnu_ld=unknown
3341     ;;
3342   esac
3343 elif test "$with_gnu_ld" = yes; then
3344   echo "$as_me:$LINENO: checking for GNU ld" >&5
3345 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3346 else
3347   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3348 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3349 fi
3350 if test "${lt_cv_path_LD+set}" = set; then
3351   echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353   if test -z "$LD"; then
3354   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3355   for ac_dir in $PATH; do
3356     IFS="$lt_save_ifs"
3357     test -z "$ac_dir" && ac_dir=.
3358     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3359       lt_cv_path_LD="$ac_dir/$ac_prog"
3360       # Check to see if the program is GNU ld.  I'd rather use --version,
3361       # but apparently some GNU ld's only accept -v.
3362       # Break only if it was the GNU/non-GNU ld that we prefer.
3363       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3364       *GNU* | *'with BFD'*)
3365         test "$with_gnu_ld" != no && break
3366         ;;
3367       *)
3368         test "$with_gnu_ld" != yes && break
3369         ;;
3370       esac
3371     fi
3372   done
3373   IFS="$lt_save_ifs"
3374 else
3375   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3376 fi
3377 fi
3378
3379 LD="$lt_cv_path_LD"
3380 if test -n "$LD"; then
3381   echo "$as_me:$LINENO: result: $LD" >&5
3382 echo "${ECHO_T}$LD" >&6
3383 else
3384   echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3386 fi
3387 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3388 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3389    { (exit 1); exit 1; }; }
3390 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3391 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3392 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3396 case `$LD -v 2>&1 </dev/null` in
3397 *GNU* | *'with BFD'*)
3398   lt_cv_prog_gnu_ld=yes
3399   ;;
3400 *)
3401   lt_cv_prog_gnu_ld=no
3402   ;;
3403 esac
3404 fi
3405 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3406 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3407 with_gnu_ld=$lt_cv_prog_gnu_ld
3408
3409
3410 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3411 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3412 if test "${lt_cv_ld_reload_flag+set}" = set; then
3413   echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415   lt_cv_ld_reload_flag='-r'
3416 fi
3417 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3418 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3419 reload_flag=$lt_cv_ld_reload_flag
3420 case $reload_flag in
3421 "" | " "*) ;;
3422 *) reload_flag=" $reload_flag" ;;
3423 esac
3424 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3425 case $host_os in
3426   darwin*)
3427     if test "$GCC" = yes; then
3428       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3429     else
3430       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3431     fi
3432     ;;
3433 esac
3434
3435 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3436 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3437 if test "${lt_cv_path_NM+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   if test -n "$NM"; then
3441   # Let the user override the test.
3442   lt_cv_path_NM="$NM"
3443 else
3444   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3445   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3446     IFS="$lt_save_ifs"
3447     test -z "$ac_dir" && ac_dir=.
3448     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3449     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3450       # Check to see if the nm accepts a BSD-compat flag.
3451       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3452       #   nm: unknown option "B" ignored
3453       # Tru64's nm complains that /dev/null is an invalid object file
3454       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3455       */dev/null* | *'Invalid file or object type'*)
3456         lt_cv_path_NM="$tmp_nm -B"
3457         break
3458         ;;
3459       *)
3460         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3461         */dev/null*)
3462           lt_cv_path_NM="$tmp_nm -p"
3463           break
3464           ;;
3465         *)
3466           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3467           continue # so that we can try to find one that supports BSD flags
3468           ;;
3469         esac
3470       esac
3471     fi
3472   done
3473   IFS="$lt_save_ifs"
3474   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3475 fi
3476 fi
3477 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3478 echo "${ECHO_T}$lt_cv_path_NM" >&6
3479 NM="$lt_cv_path_NM"
3480
3481 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3482 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3483 LN_S=$as_ln_s
3484 if test "$LN_S" = "ln -s"; then
3485   echo "$as_me:$LINENO: result: yes" >&5
3486 echo "${ECHO_T}yes" >&6
3487 else
3488   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3489 echo "${ECHO_T}no, using $LN_S" >&6
3490 fi
3491
3492 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3493 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3494 if test "${lt_cv_deplibs_check_method+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   lt_cv_file_magic_cmd='$MAGIC_CMD'
3498 lt_cv_file_magic_test_file=
3499 lt_cv_deplibs_check_method='unknown'
3500 # Need to set the preceding variable on all platforms that support
3501 # interlibrary dependencies.
3502 # 'none' -- dependencies not supported.
3503 # `unknown' -- same as none, but documents that we really don't know.
3504 # 'pass_all' -- all dependencies passed with no checks.
3505 # 'test_compile' -- check by making test program.
3506 # 'file_magic [[regex]]' -- check by looking for files in library path
3507 # which responds to the $file_magic_cmd with a given extended regex.
3508 # If you have `file' or equivalent on your system and you're not sure
3509 # whether `pass_all' will *always* work, you probably want this one.
3510
3511 case $host_os in
3512 aix4* | aix5*)
3513   lt_cv_deplibs_check_method=pass_all
3514   ;;
3515
3516 beos*)
3517   lt_cv_deplibs_check_method=pass_all
3518   ;;
3519
3520 bsdi[45]*)
3521   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3522   lt_cv_file_magic_cmd='/usr/bin/file -L'
3523   lt_cv_file_magic_test_file=/shlib/libc.so
3524   ;;
3525
3526 cygwin*)
3527   # func_win32_libid is a shell function defined in ltmain.sh
3528   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3529   lt_cv_file_magic_cmd='func_win32_libid'
3530   ;;
3531
3532 mingw* | pw32*)
3533   # Base MSYS/MinGW do not provide the 'file' command needed by
3534   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3535   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3536   lt_cv_file_magic_cmd='$OBJDUMP -f'
3537   ;;
3538
3539 darwin* | rhapsody*)
3540   lt_cv_deplibs_check_method=pass_all
3541   ;;
3542
3543 freebsd* | kfreebsd*-gnu | dragonfly*)
3544   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3545     case $host_cpu in
3546     i*86 )
3547       # Not sure whether the presence of OpenBSD here was a mistake.
3548       # Let's accept both of them until this is cleared up.
3549       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3550       lt_cv_file_magic_cmd=/usr/bin/file
3551       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3552       ;;
3553     esac
3554   else
3555     lt_cv_deplibs_check_method=pass_all
3556   fi
3557   ;;
3558
3559 gnu*)
3560   lt_cv_deplibs_check_method=pass_all
3561   ;;
3562
3563 hpux10.20* | hpux11*)
3564   lt_cv_file_magic_cmd=/usr/bin/file
3565   case "$host_cpu" in
3566   ia64*)
3567     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3568     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3569     ;;
3570   hppa*64*)
3571     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]'
3572     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3573     ;;
3574   *)
3575     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3576     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3577     ;;
3578   esac
3579   ;;
3580
3581 irix5* | irix6* | nonstopux*)
3582   case $LD in
3583   *-32|*"-32 ") libmagic=32-bit;;
3584   *-n32|*"-n32 ") libmagic=N32;;
3585   *-64|*"-64 ") libmagic=64-bit;;
3586   *) libmagic=never-match;;
3587   esac
3588   lt_cv_deplibs_check_method=pass_all
3589   ;;
3590
3591 # This must be Linux ELF.
3592 linux*)
3593   lt_cv_deplibs_check_method=pass_all
3594   ;;
3595
3596 netbsd*)
3597   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3598     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3599   else
3600     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3601   fi
3602   ;;
3603
3604 newos6*)
3605   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3606   lt_cv_file_magic_cmd=/usr/bin/file
3607   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3608   ;;
3609
3610 nto-qnx*)
3611   lt_cv_deplibs_check_method=unknown
3612   ;;
3613
3614 openbsd*)
3615   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3616     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3617   else
3618     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3619   fi
3620   ;;
3621
3622 osf3* | osf4* | osf5*)
3623   lt_cv_deplibs_check_method=pass_all
3624   ;;
3625
3626 sco3.2v5*)
3627   lt_cv_deplibs_check_method=pass_all
3628   ;;
3629
3630 solaris*)
3631   lt_cv_deplibs_check_method=pass_all
3632   ;;
3633
3634 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3635   case $host_vendor in
3636   motorola)
3637     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]'
3638     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3639     ;;
3640   ncr)
3641     lt_cv_deplibs_check_method=pass_all
3642     ;;
3643   sequent)
3644     lt_cv_file_magic_cmd='/bin/file'
3645     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3646     ;;
3647   sni)
3648     lt_cv_file_magic_cmd='/bin/file'
3649     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3650     lt_cv_file_magic_test_file=/lib/libc.so
3651     ;;
3652   siemens)
3653     lt_cv_deplibs_check_method=pass_all
3654     ;;
3655   esac
3656   ;;
3657
3658 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3659   lt_cv_deplibs_check_method=pass_all
3660   ;;
3661 esac
3662
3663 fi
3664 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3665 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3666 file_magic_cmd=$lt_cv_file_magic_cmd
3667 deplibs_check_method=$lt_cv_deplibs_check_method
3668 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3669
3670
3671
3672 # If no C compiler was specified, use CC.
3673 LTCC=${LTCC-"$CC"}
3674
3675 # Allow CC to be a program name with arguments.
3676 compiler=$CC
3677
3678
3679 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3680 if test "${enable_libtool_lock+set}" = set; then
3681   enableval="$enable_libtool_lock"
3682
3683 fi;
3684 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3685
3686 # Some flags need to be propagated to the compiler or linker for good
3687 # libtool support.
3688 case $host in
3689 ia64-*-hpux*)
3690   # Find out which ABI we are using.
3691   echo 'int i;' > conftest.$ac_ext
3692   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693   (eval $ac_compile) 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); }; then
3697     case `/usr/bin/file conftest.$ac_objext` in
3698     *ELF-32*)
3699       HPUX_IA64_MODE="32"
3700       ;;
3701     *ELF-64*)
3702       HPUX_IA64_MODE="64"
3703       ;;
3704     esac
3705   fi
3706   rm -rf conftest*
3707   ;;
3708 *-*-irix6*)
3709   # Find out which ABI we are using.
3710   echo '#line 3710 "configure"' > conftest.$ac_ext
3711   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712   (eval $ac_compile) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }; then
3716    if test "$lt_cv_prog_gnu_ld" = yes; then
3717     case `/usr/bin/file conftest.$ac_objext` in
3718     *32-bit*)
3719       LD="${LD-ld} -melf32bsmip"
3720       ;;
3721     *N32*)
3722       LD="${LD-ld} -melf32bmipn32"
3723       ;;
3724     *64-bit*)
3725       LD="${LD-ld} -melf64bmip"
3726       ;;
3727     esac
3728    else
3729     case `/usr/bin/file conftest.$ac_objext` in
3730     *32-bit*)
3731       LD="${LD-ld} -32"
3732       ;;
3733     *N32*)
3734       LD="${LD-ld} -n32"
3735       ;;
3736     *64-bit*)
3737       LD="${LD-ld} -64"
3738       ;;
3739     esac
3740    fi
3741   fi
3742   rm -rf conftest*
3743   ;;
3744
3745 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3746   # Find out which ABI we are using.
3747   echo 'int i;' > conftest.$ac_ext
3748   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749   (eval $ac_compile) 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); }; then
3753     case "`/usr/bin/file conftest.o`" in
3754     *32-bit*)
3755       case $host in
3756         x86_64-*linux*)
3757           LD="${LD-ld} -m elf_i386"
3758           ;;
3759         ppc64-*linux*|powerpc64-*linux*)
3760           LD="${LD-ld} -m elf32ppclinux"
3761           ;;
3762         s390x-*linux*)
3763           LD="${LD-ld} -m elf_s390"
3764           ;;
3765         sparc64-*linux*)
3766           LD="${LD-ld} -m elf32_sparc"
3767           ;;
3768       esac
3769       ;;
3770     *64-bit*)
3771       case $host in
3772         x86_64-*linux*)
3773           LD="${LD-ld} -m elf_x86_64"
3774           ;;
3775         ppc*-*linux*|powerpc*-*linux*)
3776           LD="${LD-ld} -m elf64ppc"
3777           ;;
3778         s390*-*linux*)
3779           LD="${LD-ld} -m elf64_s390"
3780           ;;
3781         sparc*-*linux*)
3782           LD="${LD-ld} -m elf64_sparc"
3783           ;;
3784       esac
3785       ;;
3786     esac
3787   fi
3788   rm -rf conftest*
3789   ;;
3790
3791 *-*-sco3.2v5*)
3792   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3793   SAVE_CFLAGS="$CFLAGS"
3794   CFLAGS="$CFLAGS -belf"
3795   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3796 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3797 if test "${lt_cv_cc_needs_belf+set}" = set; then
3798   echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800   ac_ext=c
3801 ac_cpp='$CPP $CPPFLAGS'
3802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805
3806      cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h.  */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h.  */
3812
3813 int
3814 main ()
3815 {
3816
3817   ;
3818   return 0;
3819 }
3820 _ACEOF
3821 rm -f conftest.$ac_objext conftest$ac_exeext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3823   (eval $ac_link) 2>conftest.er1
3824   ac_status=$?
3825   grep -v '^ *+' conftest.er1 >conftest.err
3826   rm -f conftest.er1
3827   cat conftest.err >&5
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); } &&
3830          { ac_try='test -z "$ac_c_werror_flag"
3831                          || test ! -s conftest.err'
3832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833   (eval $ac_try) 2>&5
3834   ac_status=$?
3835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); }; } &&
3837          { ac_try='test -s conftest$ac_exeext'
3838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839   (eval $ac_try) 2>&5
3840   ac_status=$?
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); }; }; then
3843   lt_cv_cc_needs_belf=yes
3844 else
3845   echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 lt_cv_cc_needs_belf=no
3849 fi
3850 rm -f conftest.err conftest.$ac_objext \
3851       conftest$ac_exeext conftest.$ac_ext
3852      ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857
3858 fi
3859 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3860 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3861   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3862     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3863     CFLAGS="$SAVE_CFLAGS"
3864   fi
3865   ;;
3866
3867 esac
3868
3869 need_locks="$enable_libtool_lock"
3870
3871
3872 ac_ext=c
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3878 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3879 # On Suns, sometimes $CPP names a directory.
3880 if test -n "$CPP" && test -d "$CPP"; then
3881   CPP=
3882 fi
3883 if test -z "$CPP"; then
3884   if test "${ac_cv_prog_CPP+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887       # Double quotes because CPP needs to be expanded
3888     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3889     do
3890       ac_preproc_ok=false
3891 for ac_c_preproc_warn_flag in '' yes
3892 do
3893   # Use a header file that comes with gcc, so configuring glibc
3894   # with a fresh cross-compiler works.
3895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3896   # <limits.h> exists even on freestanding compilers.
3897   # On the NeXT, cc -E runs the code through the compiler's parser,
3898   # not just through cpp. "Syntax error" is here to catch this case.
3899   cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905 #ifdef __STDC__
3906 # include <limits.h>
3907 #else
3908 # include <assert.h>
3909 #endif
3910                      Syntax error
3911 _ACEOF
3912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3914   ac_status=$?
3915   grep -v '^ *+' conftest.er1 >conftest.err
3916   rm -f conftest.er1
3917   cat conftest.err >&5
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } >/dev/null; then
3920   if test -s conftest.err; then
3921     ac_cpp_err=$ac_c_preproc_warn_flag
3922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3923   else
3924     ac_cpp_err=
3925   fi
3926 else
3927   ac_cpp_err=yes
3928 fi
3929 if test -z "$ac_cpp_err"; then
3930   :
3931 else
3932   echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935   # Broken: fails on valid input.
3936 continue
3937 fi
3938 rm -f conftest.err conftest.$ac_ext
3939
3940   # OK, works on sane cases.  Now check whether non-existent headers
3941   # can be detected and how.
3942   cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h.  */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h.  */
3948 #include <ac_nonexistent.h>
3949 _ACEOF
3950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3952   ac_status=$?
3953   grep -v '^ *+' conftest.er1 >conftest.err
3954   rm -f conftest.er1
3955   cat conftest.err >&5
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } >/dev/null; then
3958   if test -s conftest.err; then
3959     ac_cpp_err=$ac_c_preproc_warn_flag
3960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3961   else
3962     ac_cpp_err=
3963   fi
3964 else
3965   ac_cpp_err=yes
3966 fi
3967 if test -z "$ac_cpp_err"; then
3968   # Broken: success on invalid input.
3969 continue
3970 else
3971   echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3973
3974   # Passes both tests.
3975 ac_preproc_ok=:
3976 break
3977 fi
3978 rm -f conftest.err conftest.$ac_ext
3979
3980 done
3981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3982 rm -f conftest.err conftest.$ac_ext
3983 if $ac_preproc_ok; then
3984   break
3985 fi
3986
3987     done
3988     ac_cv_prog_CPP=$CPP
3989
3990 fi
3991   CPP=$ac_cv_prog_CPP
3992 else
3993   ac_cv_prog_CPP=$CPP
3994 fi
3995 echo "$as_me:$LINENO: result: $CPP" >&5
3996 echo "${ECHO_T}$CPP" >&6
3997 ac_preproc_ok=false
3998 for ac_c_preproc_warn_flag in '' yes
3999 do
4000   # Use a header file that comes with gcc, so configuring glibc
4001   # with a fresh cross-compiler works.
4002   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4003   # <limits.h> exists even on freestanding compilers.
4004   # On the NeXT, cc -E runs the code through the compiler's parser,
4005   # not just through cpp. "Syntax error" is here to catch this case.
4006   cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h.  */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h.  */
4012 #ifdef __STDC__
4013 # include <limits.h>
4014 #else
4015 # include <assert.h>
4016 #endif
4017                      Syntax error
4018 _ACEOF
4019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4021   ac_status=$?
4022   grep -v '^ *+' conftest.er1 >conftest.err
4023   rm -f conftest.er1
4024   cat conftest.err >&5
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); } >/dev/null; then
4027   if test -s conftest.err; then
4028     ac_cpp_err=$ac_c_preproc_warn_flag
4029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4030   else
4031     ac_cpp_err=
4032   fi
4033 else
4034   ac_cpp_err=yes
4035 fi
4036 if test -z "$ac_cpp_err"; then
4037   :
4038 else
4039   echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042   # Broken: fails on valid input.
4043 continue
4044 fi
4045 rm -f conftest.err conftest.$ac_ext
4046
4047   # OK, works on sane cases.  Now check whether non-existent headers
4048   # can be detected and how.
4049   cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h.  */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h.  */
4055 #include <ac_nonexistent.h>
4056 _ACEOF
4057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4059   ac_status=$?
4060   grep -v '^ *+' conftest.er1 >conftest.err
4061   rm -f conftest.er1
4062   cat conftest.err >&5
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); } >/dev/null; then
4065   if test -s conftest.err; then
4066     ac_cpp_err=$ac_c_preproc_warn_flag
4067     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4068   else
4069     ac_cpp_err=
4070   fi
4071 else
4072   ac_cpp_err=yes
4073 fi
4074 if test -z "$ac_cpp_err"; then
4075   # Broken: success on invalid input.
4076 continue
4077 else
4078   echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081   # Passes both tests.
4082 ac_preproc_ok=:
4083 break
4084 fi
4085 rm -f conftest.err conftest.$ac_ext
4086
4087 done
4088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4089 rm -f conftest.err conftest.$ac_ext
4090 if $ac_preproc_ok; then
4091   :
4092 else
4093   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4094 See \`config.log' for more details." >&5
4095 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4096 See \`config.log' for more details." >&2;}
4097    { (exit 1); exit 1; }; }
4098 fi
4099
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106
4107 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4108 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4109 if test "${ac_cv_header_stdc+set}" = set; then
4110   echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112   cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h.  */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h.  */
4118 #include <stdlib.h>
4119 #include <stdarg.h>
4120 #include <string.h>
4121 #include <float.h>
4122
4123 int
4124 main ()
4125 {
4126
4127   ;
4128   return 0;
4129 }
4130 _ACEOF
4131 rm -f conftest.$ac_objext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133   (eval $ac_compile) 2>conftest.er1
4134   ac_status=$?
4135   grep -v '^ *+' conftest.er1 >conftest.err
4136   rm -f conftest.er1
4137   cat conftest.err >&5
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); } &&
4140          { ac_try='test -z "$ac_c_werror_flag"
4141                          || test ! -s conftest.err'
4142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143   (eval $ac_try) 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; } &&
4147          { ac_try='test -s conftest.$ac_objext'
4148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149   (eval $ac_try) 2>&5
4150   ac_status=$?
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); }; }; then
4153   ac_cv_header_stdc=yes
4154 else
4155   echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4157
4158 ac_cv_header_stdc=no
4159 fi
4160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4161
4162 if test $ac_cv_header_stdc = yes; then
4163   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4164   cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170 #include <string.h>
4171
4172 _ACEOF
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174   $EGREP "memchr" >/dev/null 2>&1; then
4175   :
4176 else
4177   ac_cv_header_stdc=no
4178 fi
4179 rm -f conftest*
4180
4181 fi
4182
4183 if test $ac_cv_header_stdc = yes; then
4184   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 #include <stdlib.h>
4192
4193 _ACEOF
4194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195   $EGREP "free" >/dev/null 2>&1; then
4196   :
4197 else
4198   ac_cv_header_stdc=no
4199 fi
4200 rm -f conftest*
4201
4202 fi
4203
4204 if test $ac_cv_header_stdc = yes; then
4205   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4206   if test "$cross_compiling" = yes; then
4207   :
4208 else
4209   cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215 #include <ctype.h>
4216 #if ((' ' & 0x0FF) == 0x020)
4217 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4218 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4219 #else
4220 # define ISLOWER(c) \
4221                    (('a' <= (c) && (c) <= 'i') \
4222                      || ('j' <= (c) && (c) <= 'r') \
4223                      || ('s' <= (c) && (c) <= 'z'))
4224 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4225 #endif
4226
4227 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4228 int
4229 main ()
4230 {
4231   int i;
4232   for (i = 0; i < 256; i++)
4233     if (XOR (islower (i), ISLOWER (i))
4234         || toupper (i) != TOUPPER (i))
4235       exit(2);
4236   exit (0);
4237 }
4238 _ACEOF
4239 rm -f conftest$ac_exeext
4240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4241   (eval $ac_link) 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246   (eval $ac_try) 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); }; }; then
4250   :
4251 else
4252   echo "$as_me: program exited with status $ac_status" >&5
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 ( exit $ac_status )
4257 ac_cv_header_stdc=no
4258 fi
4259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4260 fi
4261 fi
4262 fi
4263 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4264 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4265 if test $ac_cv_header_stdc = yes; then
4266
4267 cat >>confdefs.h <<\_ACEOF
4268 #define STDC_HEADERS 1
4269 _ACEOF
4270
4271 fi
4272
4273 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4284                   inttypes.h stdint.h unistd.h
4285 do
4286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4287 echo "$as_me:$LINENO: checking for $ac_header" >&5
4288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298 $ac_includes_default
4299
4300 #include <$ac_header>
4301 _ACEOF
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304   (eval $ac_compile) 2>conftest.er1
4305   ac_status=$?
4306   grep -v '^ *+' conftest.er1 >conftest.err
4307   rm -f conftest.er1
4308   cat conftest.err >&5
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } &&
4311          { ac_try='test -z "$ac_c_werror_flag"
4312                          || test ! -s conftest.err'
4313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314   (eval $ac_try) 2>&5
4315   ac_status=$?
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); }; } &&
4318          { ac_try='test -s conftest.$ac_objext'
4319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320   (eval $ac_try) 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; }; then
4324   eval "$as_ac_Header=yes"
4325 else
4326   echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 eval "$as_ac_Header=no"
4330 fi
4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332 fi
4333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4336   cat >>confdefs.h <<_ACEOF
4337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4338 _ACEOF
4339
4340 fi
4341
4342 done
4343
4344
4345
4346 for ac_header in dlfcn.h
4347 do
4348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4350   echo "$as_me:$LINENO: checking for $ac_header" >&5
4351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 fi
4355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4357 else
4358   # Is the header compilable?
4359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4361 cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h.  */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h.  */
4367 $ac_includes_default
4368 #include <$ac_header>
4369 _ACEOF
4370 rm -f conftest.$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372   (eval $ac_compile) 2>conftest.er1
4373   ac_status=$?
4374   grep -v '^ *+' conftest.er1 >conftest.err
4375   rm -f conftest.er1
4376   cat conftest.err >&5
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); } &&
4379          { ac_try='test -z "$ac_c_werror_flag"
4380                          || test ! -s conftest.err'
4381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382   (eval $ac_try) 2>&5
4383   ac_status=$?
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); }; } &&
4386          { ac_try='test -s conftest.$ac_objext'
4387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388   (eval $ac_try) 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); }; }; then
4392   ac_header_compiler=yes
4393 else
4394   echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4396
4397 ac_header_compiler=no
4398 fi
4399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4401 echo "${ECHO_T}$ac_header_compiler" >&6
4402
4403 # Is the header present?
4404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h.  */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h.  */
4412 #include <$ac_header>
4413 _ACEOF
4414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4416   ac_status=$?
4417   grep -v '^ *+' conftest.er1 >conftest.err
4418   rm -f conftest.er1
4419   cat conftest.err >&5
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); } >/dev/null; then
4422   if test -s conftest.err; then
4423     ac_cpp_err=$ac_c_preproc_warn_flag
4424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4425   else
4426     ac_cpp_err=
4427   fi
4428 else
4429   ac_cpp_err=yes
4430 fi
4431 if test -z "$ac_cpp_err"; then
4432   ac_header_preproc=yes
4433 else
4434   echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4436
4437   ac_header_preproc=no
4438 fi
4439 rm -f conftest.err conftest.$ac_ext
4440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4441 echo "${ECHO_T}$ac_header_preproc" >&6
4442
4443 # So?  What about this header?
4444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4445   yes:no: )
4446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4450     ac_header_preproc=yes
4451     ;;
4452   no:yes:* )
4453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4465     (
4466       cat <<\_ASBOX
4467 ## ------------------------------------------ ##
4468 ## Report this to the AC_PACKAGE_NAME lists.  ##
4469 ## ------------------------------------------ ##
4470 _ASBOX
4471     ) |
4472       sed "s/^/$as_me: WARNING:     /" >&2
4473     ;;
4474 esac
4475 echo "$as_me:$LINENO: checking for $ac_header" >&5
4476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480   eval "$as_ac_Header=\$ac_header_preproc"
4481 fi
4482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4484
4485 fi
4486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4487   cat >>confdefs.h <<_ACEOF
4488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4489 _ACEOF
4490
4491 fi
4492
4493 done
4494
4495 ac_ext=cc
4496 ac_cpp='$CXXCPP $CPPFLAGS'
4497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4500 if test -n "$ac_tool_prefix"; then
4501   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4502   do
4503     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4505 echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4507 if test "${ac_cv_prog_CXX+set}" = set; then
4508   echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510   if test -n "$CXX"; then
4511   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4515 do
4516   IFS=$as_save_IFS
4517   test -z "$as_dir" && as_dir=.
4518   for ac_exec_ext in '' $ac_executable_extensions; do
4519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522     break 2
4523   fi
4524 done
4525 done
4526
4527 fi
4528 fi
4529 CXX=$ac_cv_prog_CXX
4530 if test -n "$CXX"; then
4531   echo "$as_me:$LINENO: result: $CXX" >&5
4532 echo "${ECHO_T}$CXX" >&6
4533 else
4534   echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4536 fi
4537
4538     test -n "$CXX" && break
4539   done
4540 fi
4541 if test -z "$CXX"; then
4542   ac_ct_CXX=$CXX
4543   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4544 do
4545   # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4550   echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552   if test -n "$ac_ct_CXX"; then
4553   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560   for ac_exec_ext in '' $ac_executable_extensions; do
4561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562     ac_cv_prog_ac_ct_CXX="$ac_prog"
4563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564     break 2
4565   fi
4566 done
4567 done
4568
4569 fi
4570 fi
4571 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4572 if test -n "$ac_ct_CXX"; then
4573   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4574 echo "${ECHO_T}$ac_ct_CXX" >&6
4575 else
4576   echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6
4578 fi
4579
4580   test -n "$ac_ct_CXX" && break
4581 done
4582 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4583
4584   CXX=$ac_ct_CXX
4585 fi
4586
4587
4588 # Provide some information about the compiler.
4589 echo "$as_me:$LINENO:" \
4590      "checking for C++ compiler version" >&5
4591 ac_compiler=`set X $ac_compile; echo $2`
4592 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4593   (eval $ac_compiler --version </dev/null >&5) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }
4597 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4598   (eval $ac_compiler -v </dev/null >&5) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); }
4602 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4603   (eval $ac_compiler -V </dev/null >&5) 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }
4607
4608 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4609 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4610 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h.  */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h.  */
4619
4620 int
4621 main ()
4622 {
4623 #ifndef __GNUC__
4624        choke me
4625 #endif
4626
4627   ;
4628   return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest.$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633   (eval $ac_compile) 2>conftest.er1
4634   ac_status=$?
4635   grep -v '^ *+' conftest.er1 >conftest.err
4636   rm -f conftest.er1
4637   cat conftest.err >&5
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); } &&
4640          { ac_try='test -z "$ac_cxx_werror_flag"
4641                          || test ! -s conftest.err'
4642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643   (eval $ac_try) 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); }; } &&
4647          { ac_try='test -s conftest.$ac_objext'
4648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649   (eval $ac_try) 2>&5
4650   ac_status=$?
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); }; }; then
4653   ac_compiler_gnu=yes
4654 else
4655   echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 ac_compiler_gnu=no
4659 fi
4660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4661 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4662
4663 fi
4664 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4665 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4666 GXX=`test $ac_compiler_gnu = yes && echo yes`
4667 ac_test_CXXFLAGS=${CXXFLAGS+set}
4668 ac_save_CXXFLAGS=$CXXFLAGS
4669 CXXFLAGS="-g"
4670 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4671 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4672 if test "${ac_cv_prog_cxx_g+set}" = set; then
4673   echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675   cat >conftest.$ac_ext <<_ACEOF
4676 /* confdefs.h.  */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h.  */
4681
4682 int
4683 main ()
4684 {
4685
4686   ;
4687   return 0;
4688 }
4689 _ACEOF
4690 rm -f conftest.$ac_objext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692   (eval $ac_compile) 2>conftest.er1
4693   ac_status=$?
4694   grep -v '^ *+' conftest.er1 >conftest.err
4695   rm -f conftest.er1
4696   cat conftest.err >&5
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); } &&
4699          { ac_try='test -z "$ac_cxx_werror_flag"
4700                          || test ! -s conftest.err'
4701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702   (eval $ac_try) 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); }; } &&
4706          { ac_try='test -s conftest.$ac_objext'
4707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708   (eval $ac_try) 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); }; }; then
4712   ac_cv_prog_cxx_g=yes
4713 else
4714   echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717 ac_cv_prog_cxx_g=no
4718 fi
4719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4720 fi
4721 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4722 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4723 if test "$ac_test_CXXFLAGS" = set; then
4724   CXXFLAGS=$ac_save_CXXFLAGS
4725 elif test $ac_cv_prog_cxx_g = yes; then
4726   if test "$GXX" = yes; then
4727     CXXFLAGS="-g -O2"
4728   else
4729     CXXFLAGS="-g"
4730   fi
4731 else
4732   if test "$GXX" = yes; then
4733     CXXFLAGS="-O2"
4734   else
4735     CXXFLAGS=
4736   fi
4737 fi
4738 for ac_declaration in \
4739    '' \
4740    'extern "C" void std::exit (int) throw (); using std::exit;' \
4741    'extern "C" void std::exit (int); using std::exit;' \
4742    'extern "C" void exit (int) throw ();' \
4743    'extern "C" void exit (int);' \
4744    'void exit (int);'
4745 do
4746   cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h.  */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h.  */
4752 $ac_declaration
4753 #include <stdlib.h>
4754 int
4755 main ()
4756 {
4757 exit (42);
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest.$ac_objext
4763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4764   (eval $ac_compile) 2>conftest.er1
4765   ac_status=$?
4766   grep -v '^ *+' conftest.er1 >conftest.err
4767   rm -f conftest.er1
4768   cat conftest.err >&5
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); } &&
4771          { ac_try='test -z "$ac_cxx_werror_flag"
4772                          || test ! -s conftest.err'
4773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774   (eval $ac_try) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); }; } &&
4778          { ac_try='test -s conftest.$ac_objext'
4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780   (eval $ac_try) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); }; }; then
4784   :
4785 else
4786   echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 continue
4790 fi
4791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4792   cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h.  */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h.  */
4798 $ac_declaration
4799 int
4800 main ()
4801 {
4802 exit (42);
4803   ;
4804   return 0;
4805 }
4806 _ACEOF
4807 rm -f conftest.$ac_objext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809   (eval $ac_compile) 2>conftest.er1
4810   ac_status=$?
4811   grep -v '^ *+' conftest.er1 >conftest.err
4812   rm -f conftest.er1
4813   cat conftest.err >&5
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } &&
4816          { ac_try='test -z "$ac_cxx_werror_flag"
4817                          || test ! -s conftest.err'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; } &&
4823          { ac_try='test -s conftest.$ac_objext'
4824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825   (eval $ac_try) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; }; then
4829   break
4830 else
4831   echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 fi
4835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4836 done
4837 rm -f conftest*
4838 if test -n "$ac_declaration"; then
4839   echo '#ifdef __cplusplus' >>confdefs.h
4840   echo $ac_declaration      >>confdefs.h
4841   echo '#endif'             >>confdefs.h
4842 fi
4843
4844 ac_ext=cc
4845 ac_cpp='$CXXCPP $CPPFLAGS'
4846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4849
4850 depcc="$CXX"  am_compiler_list=
4851
4852 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4853 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4854 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4855   echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4858   # We make a subdir and do the tests there.  Otherwise we can end up
4859   # making bogus files that we don't know about and never remove.  For
4860   # instance it was reported that on HP-UX the gcc test will end up
4861   # making a dummy file named `D' -- because `-MD' means `put the output
4862   # in D'.
4863   mkdir conftest.dir
4864   # Copy depcomp to subdir because otherwise we won't find it if we're
4865   # using a relative directory.
4866   cp "$am_depcomp" conftest.dir
4867   cd conftest.dir
4868   # We will build objects and dependencies in a subdirectory because
4869   # it helps to detect inapplicable dependency modes.  For instance
4870   # both Tru64's cc and ICC support -MD to output dependencies as a
4871   # side effect of compilation, but ICC will put the dependencies in
4872   # the current directory while Tru64 will put them in the object
4873   # directory.
4874   mkdir sub
4875
4876   am_cv_CXX_dependencies_compiler_type=none
4877   if test "$am_compiler_list" = ""; then
4878      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4879   fi
4880   for depmode in $am_compiler_list; do
4881     # Setup a source with many dependencies, because some compilers
4882     # like to wrap large dependency lists on column 80 (with \), and
4883     # we should not choose a depcomp mode which is confused by this.
4884     #
4885     # We need to recreate these files for each test, as the compiler may
4886     # overwrite some of them when testing with obscure command lines.
4887     # This happens at least with the AIX C compiler.
4888     : > sub/conftest.c
4889     for i in 1 2 3 4 5 6; do
4890       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4891       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4892       # Solaris 8's {/usr,}/bin/sh.
4893       touch sub/conftst$i.h
4894     done
4895     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4896
4897     case $depmode in
4898     nosideeffect)
4899       # after this tag, mechanisms are not by side-effect, so they'll
4900       # only be used when explicitly requested
4901       if test "x$enable_dependency_tracking" = xyes; then
4902         continue
4903       else
4904         break
4905       fi
4906       ;;
4907     none) break ;;
4908     esac
4909     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4910     # mode.  It turns out that the SunPro C++ compiler does not properly
4911     # handle `-M -o', and we need to detect this.
4912     if depmode=$depmode \
4913        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4914        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4915        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4916          >/dev/null 2>conftest.err &&
4917        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4918        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4919        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4920       # icc doesn't choke on unknown options, it will just issue warnings
4921       # or remarks (even with -Werror).  So we grep stderr for any message
4922       # that says an option was ignored or not supported.
4923       # When given -MP, icc 7.0 and 7.1 complain thusly:
4924       #   icc: Command line warning: ignoring option '-M'; no argument required
4925       # The diagnosis changed in icc 8.0:
4926       #   icc: Command line remark: option '-MP' not supported
4927       if (grep 'ignoring option' conftest.err ||
4928           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4929         am_cv_CXX_dependencies_compiler_type=$depmode
4930         break
4931       fi
4932     fi
4933   done
4934
4935   cd ..
4936   rm -rf conftest.dir
4937 else
4938   am_cv_CXX_dependencies_compiler_type=none
4939 fi
4940
4941 fi
4942 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4943 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4944 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4945
4946
4947
4948 if
4949   test "x$enable_dependency_tracking" != xno \
4950   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4951   am__fastdepCXX_TRUE=
4952   am__fastdepCXX_FALSE='#'
4953 else
4954   am__fastdepCXX_TRUE='#'
4955   am__fastdepCXX_FALSE=
4956 fi
4957
4958
4959
4960
4961 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4962     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4963     (test "X$CXX" != "Xg++"))) ; then
4964   ac_ext=cc
4965 ac_cpp='$CXXCPP $CPPFLAGS'
4966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4969 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4970 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4971 if test -z "$CXXCPP"; then
4972   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975       # Double quotes because CXXCPP needs to be expanded
4976     for CXXCPP in "$CXX -E" "/lib/cpp"
4977     do
4978       ac_preproc_ok=false
4979 for ac_cxx_preproc_warn_flag in '' yes
4980 do
4981   # Use a header file that comes with gcc, so configuring glibc
4982   # with a fresh cross-compiler works.
4983   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4984   # <limits.h> exists even on freestanding compilers.
4985   # On the NeXT, cc -E runs the code through the compiler's parser,
4986   # not just through cpp. "Syntax error" is here to catch this case.
4987   cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h.  */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h.  */
4993 #ifdef __STDC__
4994 # include <limits.h>
4995 #else
4996 # include <assert.h>
4997 #endif
4998                      Syntax error
4999 _ACEOF
5000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5002   ac_status=$?
5003   grep -v '^ *+' conftest.er1 >conftest.err
5004   rm -f conftest.er1
5005   cat conftest.err >&5
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); } >/dev/null; then
5008   if test -s conftest.err; then
5009     ac_cpp_err=$ac_cxx_preproc_warn_flag
5010     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5011   else
5012     ac_cpp_err=
5013   fi
5014 else
5015   ac_cpp_err=yes
5016 fi
5017 if test -z "$ac_cpp_err"; then
5018   :
5019 else
5020   echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5022
5023   # Broken: fails on valid input.
5024 continue
5025 fi
5026 rm -f conftest.err conftest.$ac_ext
5027
5028   # OK, works on sane cases.  Now check whether non-existent headers
5029   # can be detected and how.
5030   cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 #include <ac_nonexistent.h>
5037 _ACEOF
5038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5040   ac_status=$?
5041   grep -v '^ *+' conftest.er1 >conftest.err
5042   rm -f conftest.er1
5043   cat conftest.err >&5
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } >/dev/null; then
5046   if test -s conftest.err; then
5047     ac_cpp_err=$ac_cxx_preproc_warn_flag
5048     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5049   else
5050     ac_cpp_err=
5051   fi
5052 else
5053   ac_cpp_err=yes
5054 fi
5055 if test -z "$ac_cpp_err"; then
5056   # Broken: success on invalid input.
5057 continue
5058 else
5059   echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5061
5062   # Passes both tests.
5063 ac_preproc_ok=:
5064 break
5065 fi
5066 rm -f conftest.err conftest.$ac_ext
5067
5068 done
5069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5070 rm -f conftest.err conftest.$ac_ext
5071 if $ac_preproc_ok; then
5072   break
5073 fi
5074
5075     done
5076     ac_cv_prog_CXXCPP=$CXXCPP
5077
5078 fi
5079   CXXCPP=$ac_cv_prog_CXXCPP
5080 else
5081   ac_cv_prog_CXXCPP=$CXXCPP
5082 fi
5083 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5084 echo "${ECHO_T}$CXXCPP" >&6
5085 ac_preproc_ok=false
5086 for ac_cxx_preproc_warn_flag in '' yes
5087 do
5088   # Use a header file that comes with gcc, so configuring glibc
5089   # with a fresh cross-compiler works.
5090   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5091   # <limits.h> exists even on freestanding compilers.
5092   # On the NeXT, cc -E runs the code through the compiler's parser,
5093   # not just through cpp. "Syntax error" is here to catch this case.
5094   cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h.  */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h.  */
5100 #ifdef __STDC__
5101 # include <limits.h>
5102 #else
5103 # include <assert.h>
5104 #endif
5105                      Syntax error
5106 _ACEOF
5107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5109   ac_status=$?
5110   grep -v '^ *+' conftest.er1 >conftest.err
5111   rm -f conftest.er1
5112   cat conftest.err >&5
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); } >/dev/null; then
5115   if test -s conftest.err; then
5116     ac_cpp_err=$ac_cxx_preproc_warn_flag
5117     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5118   else
5119     ac_cpp_err=
5120   fi
5121 else
5122   ac_cpp_err=yes
5123 fi
5124 if test -z "$ac_cpp_err"; then
5125   :
5126 else
5127   echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5129
5130   # Broken: fails on valid input.
5131 continue
5132 fi
5133 rm -f conftest.err conftest.$ac_ext
5134
5135   # OK, works on sane cases.  Now check whether non-existent headers
5136   # can be detected and how.
5137   cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h.  */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h.  */
5143 #include <ac_nonexistent.h>
5144 _ACEOF
5145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5147   ac_status=$?
5148   grep -v '^ *+' conftest.er1 >conftest.err
5149   rm -f conftest.er1
5150   cat conftest.err >&5
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); } >/dev/null; then
5153   if test -s conftest.err; then
5154     ac_cpp_err=$ac_cxx_preproc_warn_flag
5155     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5156   else
5157     ac_cpp_err=
5158   fi
5159 else
5160   ac_cpp_err=yes
5161 fi
5162 if test -z "$ac_cpp_err"; then
5163   # Broken: success on invalid input.
5164 continue
5165 else
5166   echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5168
5169   # Passes both tests.
5170 ac_preproc_ok=:
5171 break
5172 fi
5173 rm -f conftest.err conftest.$ac_ext
5174
5175 done
5176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5177 rm -f conftest.err conftest.$ac_ext
5178 if $ac_preproc_ok; then
5179   :
5180 else
5181   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5182 See \`config.log' for more details." >&5
5183 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5184 See \`config.log' for more details." >&2;}
5185    { (exit 1); exit 1; }; }
5186 fi
5187
5188 ac_ext=cc
5189 ac_cpp='$CXXCPP $CPPFLAGS'
5190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5193
5194 fi
5195
5196
5197 ac_ext=f
5198 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5199 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5201 if test -n "$ac_tool_prefix"; then
5202   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5203   do
5204     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_F77+set}" = set; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211   if test -n "$F77"; then
5212   ac_cv_prog_F77="$F77" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217   IFS=$as_save_IFS
5218   test -z "$as_dir" && as_dir=.
5219   for ac_exec_ext in '' $ac_executable_extensions; do
5220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223     break 2
5224   fi
5225 done
5226 done
5227
5228 fi
5229 fi
5230 F77=$ac_cv_prog_F77
5231 if test -n "$F77"; then
5232   echo "$as_me:$LINENO: result: $F77" >&5
5233 echo "${ECHO_T}$F77" >&6
5234 else
5235   echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5237 fi
5238
5239     test -n "$F77" && break
5240   done
5241 fi
5242 if test -z "$F77"; then
5243   ac_ct_F77=$F77
5244   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5245 do
5246   # Extract the first word of "$ac_prog", so it can be a program name with args.
5247 set dummy $ac_prog; ac_word=$2
5248 echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5250 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5251   echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253   if test -n "$ac_ct_F77"; then
5254   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259   IFS=$as_save_IFS
5260   test -z "$as_dir" && as_dir=.
5261   for ac_exec_ext in '' $ac_executable_extensions; do
5262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263     ac_cv_prog_ac_ct_F77="$ac_prog"
5264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265     break 2
5266   fi
5267 done
5268 done
5269
5270 fi
5271 fi
5272 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5273 if test -n "$ac_ct_F77"; then
5274   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5275 echo "${ECHO_T}$ac_ct_F77" >&6
5276 else
5277   echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5279 fi
5280
5281   test -n "$ac_ct_F77" && break
5282 done
5283
5284   F77=$ac_ct_F77
5285 fi
5286
5287
5288 # Provide some information about the compiler.
5289 echo "$as_me:5289:" \
5290      "checking for Fortran 77 compiler version" >&5
5291 ac_compiler=`set X $ac_compile; echo $2`
5292 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5293   (eval $ac_compiler --version </dev/null >&5) 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); }
5297 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5298   (eval $ac_compiler -v </dev/null >&5) 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }
5302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5303   (eval $ac_compiler -V </dev/null >&5) 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }
5307 rm -f a.out
5308
5309 # If we don't use `.F' as extension, the preprocessor is not run on the
5310 # input file.  (Note that this only needs to work for GNU compilers.)
5311 ac_save_ext=$ac_ext
5312 ac_ext=F
5313 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5314 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5315 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318   cat >conftest.$ac_ext <<_ACEOF
5319       program main
5320 #ifndef __GNUC__
5321        choke me
5322 #endif
5323
5324       end
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328   (eval $ac_compile) 2>conftest.er1
5329   ac_status=$?
5330   grep -v '^ *+' conftest.er1 >conftest.err
5331   rm -f conftest.er1
5332   cat conftest.err >&5
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); } &&
5335          { ac_try='test -z "$ac_f77_werror_flag"
5336                          || test ! -s conftest.err'
5337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338   (eval $ac_try) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); }; } &&
5342          { ac_try='test -s conftest.$ac_objext'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; }; then
5348   ac_compiler_gnu=yes
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ac_compiler_gnu=no
5354 fi
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5357
5358 fi
5359 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5360 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5361 ac_ext=$ac_save_ext
5362 ac_test_FFLAGS=${FFLAGS+set}
5363 ac_save_FFLAGS=$FFLAGS
5364 FFLAGS=
5365 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5366 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5367 if test "${ac_cv_prog_f77_g+set}" = set; then
5368   echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370   FFLAGS=-g
5371 cat >conftest.$ac_ext <<_ACEOF
5372       program main
5373
5374       end
5375 _ACEOF
5376 rm -f conftest.$ac_objext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378   (eval $ac_compile) 2>conftest.er1
5379   ac_status=$?
5380   grep -v '^ *+' conftest.er1 >conftest.err
5381   rm -f conftest.er1
5382   cat conftest.err >&5
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); } &&
5385          { ac_try='test -z "$ac_f77_werror_flag"
5386                          || test ! -s conftest.err'
5387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388   (eval $ac_try) 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); }; } &&
5392          { ac_try='test -s conftest.$ac_objext'
5393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394   (eval $ac_try) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); }; }; then
5398   ac_cv_prog_f77_g=yes
5399 else
5400   echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403 ac_cv_prog_f77_g=no
5404 fi
5405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5406
5407 fi
5408 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5409 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5410 if test "$ac_test_FFLAGS" = set; then
5411   FFLAGS=$ac_save_FFLAGS
5412 elif test $ac_cv_prog_f77_g = yes; then
5413   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5414     FFLAGS="-g -O2"
5415   else
5416     FFLAGS="-g"
5417   fi
5418 else
5419   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5420     FFLAGS="-O2"
5421   else
5422     FFLAGS=
5423   fi
5424 fi
5425
5426 G77=`test $ac_compiler_gnu = yes && echo yes`
5427 ac_ext=c
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432
5433
5434
5435 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5436
5437 # find the maximum length of command line arguments
5438 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5439 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5440 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5441   echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443     i=0
5444   teststring="ABCD"
5445
5446   case $build_os in
5447   msdosdjgpp*)
5448     # On DJGPP, this test can blow up pretty badly due to problems in libc
5449     # (any single argument exceeding 2000 bytes causes a buffer overrun
5450     # during glob expansion).  Even if it were fixed, the result of this
5451     # check would be larger than it should be.
5452     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5453     ;;
5454
5455   gnu*)
5456     # Under GNU Hurd, this test is not required because there is
5457     # no limit to the length of command line arguments.
5458     # Libtool will interpret -1 as no limit whatsoever
5459     lt_cv_sys_max_cmd_len=-1;
5460     ;;
5461
5462   cygwin* | mingw*)
5463     # On Win9x/ME, this test blows up -- it succeeds, but takes
5464     # about 5 minutes as the teststring grows exponentially.
5465     # Worse, since 9x/ME are not pre-emptively multitasking,
5466     # you end up with a "frozen" computer, even though with patience
5467     # the test eventually succeeds (with a max line length of 256k).
5468     # Instead, let's just punt: use the minimum linelength reported by
5469     # all of the supported platforms: 8192 (on NT/2K/XP).
5470     lt_cv_sys_max_cmd_len=8192;
5471     ;;
5472
5473   amigaos*)
5474     # On AmigaOS with pdksh, this test takes hours, literally.
5475     # So we just punt and use a minimum line length of 8192.
5476     lt_cv_sys_max_cmd_len=8192;
5477     ;;
5478
5479   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5480     # This has been around since 386BSD, at least.  Likely further.
5481     if test -x /sbin/sysctl; then
5482       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5483     elif test -x /usr/sbin/sysctl; then
5484       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5485     else
5486       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5487     fi
5488     # And add a safety zone
5489     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5490     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5491     ;;
5492   osf*)
5493     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5494     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5495     # nice to cause kernel panics so lets avoid the loop below.
5496     # First set a reasonable default.
5497     lt_cv_sys_max_cmd_len=16384
5498     #
5499     if test -x /sbin/sysconfig; then
5500       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5501         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5502       esac
5503     fi
5504     ;;
5505   *)
5506     # If test is not a shell built-in, we'll probably end up computing a
5507     # maximum length that is only half of the actual maximum length, but
5508     # we can't tell.
5509     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5510     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5511                = "XX$teststring") >/dev/null 2>&1 &&
5512             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5513             lt_cv_sys_max_cmd_len=$new_result &&
5514             test $i != 17 # 1/2 MB should be enough
5515     do
5516       i=`expr $i + 1`
5517       teststring=$teststring$teststring
5518     done
5519     teststring=
5520     # Add a significant safety factor because C++ compilers can tack on massive
5521     # amounts of additional arguments before passing them to the linker.
5522     # It appears as though 1/2 is a usable value.
5523     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5524     ;;
5525   esac
5526
5527 fi
5528
5529 if test -n $lt_cv_sys_max_cmd_len ; then
5530   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5531 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5532 else
5533   echo "$as_me:$LINENO: result: none" >&5
5534 echo "${ECHO_T}none" >&6
5535 fi
5536
5537
5538
5539
5540 # Check for command to grab the raw symbol name followed by C symbol from nm.
5541 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5542 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5543 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546
5547 # These are sane defaults that work on at least a few old systems.
5548 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5549
5550 # Character class describing NM global symbol codes.
5551 symcode='[BCDEGRST]'
5552
5553 # Regexp to match symbols that can be accessed directly from C.
5554 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5555
5556 # Transform an extracted symbol line into a proper C declaration
5557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5558
5559 # Transform an extracted symbol line into symbol name and symbol address
5560 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'"
5561
5562 # Define system-specific variables.
5563 case $host_os in
5564 aix*)
5565   symcode='[BCDT]'
5566   ;;
5567 cygwin* | mingw* | pw32*)
5568   symcode='[ABCDGISTW]'
5569   ;;
5570 hpux*) # Its linker distinguishes data from code symbols
5571   if test "$host_cpu" = ia64; then
5572     symcode='[ABCDEGRST]'
5573   fi
5574   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5575   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'"
5576   ;;
5577 linux*)
5578   if test "$host_cpu" = ia64; then
5579     symcode='[ABCDGIRSTW]'
5580     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5581     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'"
5582   fi
5583   ;;
5584 irix* | nonstopux*)
5585   symcode='[BCDEGRST]'
5586   ;;
5587 osf*)
5588   symcode='[BCDEGQRST]'
5589   ;;
5590 solaris* | sysv5*)
5591   symcode='[BDRT]'
5592   ;;
5593 sysv4)
5594   symcode='[DFNSTU]'
5595   ;;
5596 esac
5597
5598 # Handle CRLF in mingw tool chain
5599 opt_cr=
5600 case $build_os in
5601 mingw*)
5602   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5603   ;;
5604 esac
5605
5606 # If we're using GNU nm, then use its standard symbol codes.
5607 case `$NM -V 2>&1` in
5608 *GNU* | *'with BFD'*)
5609   symcode='[ABCDGIRSTW]' ;;
5610 esac
5611
5612 # Try without a prefix undercore, then with it.
5613 for ac_symprfx in "" "_"; do
5614
5615   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5616   symxfrm="\\1 $ac_symprfx\\2 \\2"
5617
5618   # Write the raw and C identifiers.
5619   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5620
5621   # Check to see that the pipe works correctly.
5622   pipe_works=no
5623
5624   rm -f conftest*
5625   cat > conftest.$ac_ext <<EOF
5626 #ifdef __cplusplus
5627 extern "C" {
5628 #endif
5629 char nm_test_var;
5630 void nm_test_func(){}
5631 #ifdef __cplusplus
5632 }
5633 #endif
5634 int main(){nm_test_var='a';nm_test_func();return(0);}
5635 EOF
5636
5637   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5638   (eval $ac_compile) 2>&5
5639   ac_status=$?
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); }; then
5642     # Now try to grab the symbols.
5643     nlist=conftest.nm
5644     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5645   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); } && test -s "$nlist"; then
5649       # Try sorting and uniquifying the output.
5650       if sort "$nlist" | uniq > "$nlist"T; then
5651         mv -f "$nlist"T "$nlist"
5652       else
5653         rm -f "$nlist"T
5654       fi
5655
5656       # Make sure that we snagged all the symbols we need.
5657       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5658         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5659           cat <<EOF > conftest.$ac_ext
5660 #ifdef __cplusplus
5661 extern "C" {
5662 #endif
5663
5664 EOF
5665           # Now generate the symbol file.
5666           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5667
5668           cat <<EOF >> conftest.$ac_ext
5669 #if defined (__STDC__) && __STDC__
5670 # define lt_ptr_t void *
5671 #else
5672 # define lt_ptr_t char *
5673 # define const
5674 #endif
5675
5676 /* The mapping between symbol names and symbols. */
5677 const struct {
5678   const char *name;
5679   lt_ptr_t address;
5680 }
5681 lt_preloaded_symbols[] =
5682 {
5683 EOF
5684           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5685           cat <<\EOF >> conftest.$ac_ext
5686   {0, (lt_ptr_t) 0}
5687 };
5688
5689 #ifdef __cplusplus
5690 }
5691 #endif
5692 EOF
5693           # Now try linking the two files.
5694           mv conftest.$ac_objext conftstm.$ac_objext
5695           lt_save_LIBS="$LIBS"
5696           lt_save_CFLAGS="$CFLAGS"
5697           LIBS="conftstm.$ac_objext"
5698           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5699           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700   (eval $ac_link) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5704             pipe_works=yes
5705           fi
5706           LIBS="$lt_save_LIBS"
5707           CFLAGS="$lt_save_CFLAGS"
5708         else
5709           echo "cannot find nm_test_func in $nlist" >&5
5710         fi
5711       else
5712         echo "cannot find nm_test_var in $nlist" >&5
5713       fi
5714     else
5715       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5716     fi
5717   else
5718     echo "$progname: failed program was:" >&5
5719     cat conftest.$ac_ext >&5
5720   fi
5721   rm -f conftest* conftst*
5722
5723   # Do not use the global_symbol_pipe unless it works.
5724   if test "$pipe_works" = yes; then
5725     break
5726   else
5727     lt_cv_sys_global_symbol_pipe=
5728   fi
5729 done
5730
5731 fi
5732
5733 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5734   lt_cv_sys_global_symbol_to_cdecl=
5735 fi
5736 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5737   echo "$as_me:$LINENO: result: failed" >&5
5738 echo "${ECHO_T}failed" >&6
5739 else
5740   echo "$as_me:$LINENO: result: ok" >&5
5741 echo "${ECHO_T}ok" >&6
5742 fi
5743
5744 echo "$as_me:$LINENO: checking for objdir" >&5
5745 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5746 if test "${lt_cv_objdir+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   rm -f .libs 2>/dev/null
5750 mkdir .libs 2>/dev/null
5751 if test -d .libs; then
5752   lt_cv_objdir=.libs
5753 else
5754   # MS-DOS does not allow filenames that begin with a dot.
5755   lt_cv_objdir=_libs
5756 fi
5757 rmdir .libs 2>/dev/null
5758 fi
5759 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5760 echo "${ECHO_T}$lt_cv_objdir" >&6
5761 objdir=$lt_cv_objdir
5762
5763
5764
5765
5766
5767 case $host_os in
5768 aix3*)
5769   # AIX sometimes has problems with the GCC collect2 program.  For some
5770   # reason, if we set the COLLECT_NAMES environment variable, the problems
5771   # vanish in a puff of smoke.
5772   if test "X${COLLECT_NAMES+set}" != Xset; then
5773     COLLECT_NAMES=
5774     export COLLECT_NAMES
5775   fi
5776   ;;
5777 esac
5778
5779 # Sed substitution that helps us do robust quoting.  It backslashifies
5780 # metacharacters that are still active within double-quoted strings.
5781 Xsed='sed -e 1s/^X//'
5782 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5783
5784 # Same as above, but do not quote variable references.
5785 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5786
5787 # Sed substitution to delay expansion of an escaped shell variable in a
5788 # double_quote_subst'ed string.
5789 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5790
5791 # Sed substitution to avoid accidental globbing in evaled expressions
5792 no_glob_subst='s/\*/\\\*/g'
5793
5794 # Constants:
5795 rm="rm -f"
5796
5797 # Global variables:
5798 default_ofile=libtool
5799 can_build_shared=yes
5800
5801 # All known linkers require a `.a' archive for static linking (except M$VC,
5802 # which needs '.lib').
5803 libext=a
5804 ltmain="$ac_aux_dir/ltmain.sh"
5805 ofile="$default_ofile"
5806 with_gnu_ld="$lt_cv_prog_gnu_ld"
5807
5808 if test -n "$ac_tool_prefix"; then
5809   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}ar; ac_word=$2
5811 echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813 if test "${ac_cv_prog_AR+set}" = set; then
5814   echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816   if test -n "$AR"; then
5817   ac_cv_prog_AR="$AR" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822   IFS=$as_save_IFS
5823   test -z "$as_dir" && as_dir=.
5824   for ac_exec_ext in '' $ac_executable_extensions; do
5825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826     ac_cv_prog_AR="${ac_tool_prefix}ar"
5827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828     break 2
5829   fi
5830 done
5831 done
5832
5833 fi
5834 fi
5835 AR=$ac_cv_prog_AR
5836 if test -n "$AR"; then
5837   echo "$as_me:$LINENO: result: $AR" >&5
5838 echo "${ECHO_T}$AR" >&6
5839 else
5840   echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6
5842 fi
5843
5844 fi
5845 if test -z "$ac_cv_prog_AR"; then
5846   ac_ct_AR=$AR
5847   # Extract the first word of "ar", so it can be a program name with args.
5848 set dummy ar; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -n "$ac_ct_AR"; then
5855   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864     ac_cv_prog_ac_ct_AR="ar"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870
5871   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5872 fi
5873 fi
5874 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5875 if test -n "$ac_ct_AR"; then
5876   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5877 echo "${ECHO_T}$ac_ct_AR" >&6
5878 else
5879   echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5881 fi
5882
5883   AR=$ac_ct_AR
5884 else
5885   AR="$ac_cv_prog_AR"
5886 fi
5887
5888 if test -n "$ac_tool_prefix"; then
5889   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5890 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5891 echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5893 if test "${ac_cv_prog_RANLIB+set}" = set; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   if test -n "$RANLIB"; then
5897   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904   for ac_exec_ext in '' $ac_executable_extensions; do
5905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911 done
5912
5913 fi
5914 fi
5915 RANLIB=$ac_cv_prog_RANLIB
5916 if test -n "$RANLIB"; then
5917   echo "$as_me:$LINENO: result: $RANLIB" >&5
5918 echo "${ECHO_T}$RANLIB" >&6
5919 else
5920   echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6
5922 fi
5923
5924 fi
5925 if test -z "$ac_cv_prog_RANLIB"; then
5926   ac_ct_RANLIB=$RANLIB
5927   # Extract the first word of "ranlib", so it can be a program name with args.
5928 set dummy ranlib; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   if test -n "$ac_ct_RANLIB"; then
5935   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942   for ac_exec_ext in '' $ac_executable_extensions; do
5943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_prog_ac_ct_RANLIB="ranlib"
5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949 done
5950
5951   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5952 fi
5953 fi
5954 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5955 if test -n "$ac_ct_RANLIB"; then
5956   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5957 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5958 else
5959   echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5961 fi
5962
5963   RANLIB=$ac_ct_RANLIB
5964 else
5965   RANLIB="$ac_cv_prog_RANLIB"
5966 fi
5967
5968 if test -n "$ac_tool_prefix"; then
5969   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5970 set dummy ${ac_tool_prefix}strip; ac_word=$2
5971 echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973 if test "${ac_cv_prog_STRIP+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   if test -n "$STRIP"; then
5977   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982   IFS=$as_save_IFS
5983   test -z "$as_dir" && as_dir=.
5984   for ac_exec_ext in '' $ac_executable_extensions; do
5985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988     break 2
5989   fi
5990 done
5991 done
5992
5993 fi
5994 fi
5995 STRIP=$ac_cv_prog_STRIP
5996 if test -n "$STRIP"; then
5997   echo "$as_me:$LINENO: result: $STRIP" >&5
5998 echo "${ECHO_T}$STRIP" >&6
5999 else
6000   echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6
6002 fi
6003
6004 fi
6005 if test -z "$ac_cv_prog_STRIP"; then
6006   ac_ct_STRIP=$STRIP
6007   # Extract the first word of "strip", so it can be a program name with args.
6008 set dummy strip; ac_word=$2
6009 echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   if test -n "$ac_ct_STRIP"; then
6015   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020   IFS=$as_save_IFS
6021   test -z "$as_dir" && as_dir=.
6022   for ac_exec_ext in '' $ac_executable_extensions; do
6023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024     ac_cv_prog_ac_ct_STRIP="strip"
6025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026     break 2
6027   fi
6028 done
6029 done
6030
6031   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6032 fi
6033 fi
6034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6035 if test -n "$ac_ct_STRIP"; then
6036   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6037 echo "${ECHO_T}$ac_ct_STRIP" >&6
6038 else
6039   echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6041 fi
6042
6043   STRIP=$ac_ct_STRIP
6044 else
6045   STRIP="$ac_cv_prog_STRIP"
6046 fi
6047
6048
6049 old_CC="$CC"
6050 old_CFLAGS="$CFLAGS"
6051
6052 # Set sane defaults for various variables
6053 test -z "$AR" && AR=ar
6054 test -z "$AR_FLAGS" && AR_FLAGS=cru
6055 test -z "$AS" && AS=as
6056 test -z "$CC" && CC=cc
6057 test -z "$LTCC" && LTCC=$CC
6058 test -z "$DLLTOOL" && DLLTOOL=dlltool
6059 test -z "$LD" && LD=ld
6060 test -z "$LN_S" && LN_S="ln -s"
6061 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6062 test -z "$NM" && NM=nm
6063 test -z "$SED" && SED=sed
6064 test -z "$OBJDUMP" && OBJDUMP=objdump
6065 test -z "$RANLIB" && RANLIB=:
6066 test -z "$STRIP" && STRIP=:
6067 test -z "$ac_objext" && ac_objext=o
6068
6069 # Determine commands to create old-style static archives.
6070 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6071 old_postinstall_cmds='chmod 644 $oldlib'
6072 old_postuninstall_cmds=
6073
6074 if test -n "$RANLIB"; then
6075   case $host_os in
6076   openbsd*)
6077     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6078     ;;
6079   *)
6080     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6081     ;;
6082   esac
6083   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6084 fi
6085
6086 for cc_temp in $compiler""; do
6087   case $cc_temp in
6088     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6089     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6090     \-*) ;;
6091     *) break;;
6092   esac
6093 done
6094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6095
6096
6097 # Only perform the check for file, if the check method requires it
6098 case $deplibs_check_method in
6099 file_magic*)
6100   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6101     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6102 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6103 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106   case $MAGIC_CMD in
6107 [\\/*] |  ?:[\\/]*)
6108   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6109   ;;
6110 *)
6111   lt_save_MAGIC_CMD="$MAGIC_CMD"
6112   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6113   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6114   for ac_dir in $ac_dummy; do
6115     IFS="$lt_save_ifs"
6116     test -z "$ac_dir" && ac_dir=.
6117     if test -f $ac_dir/${ac_tool_prefix}file; then
6118       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6119       if test -n "$file_magic_test_file"; then
6120         case $deplibs_check_method in
6121         "file_magic "*)
6122           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6123           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6124           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6125             $EGREP "$file_magic_regex" > /dev/null; then
6126             :
6127           else
6128             cat <<EOF 1>&2
6129
6130 *** Warning: the command libtool uses to detect shared libraries,
6131 *** $file_magic_cmd, produces output that libtool cannot recognize.
6132 *** The result is that libtool may fail to recognize shared libraries
6133 *** as such.  This will affect the creation of libtool libraries that
6134 *** depend on shared libraries, but programs linked with such libtool
6135 *** libraries will work regardless of this problem.  Nevertheless, you
6136 *** may want to report the problem to your system manager and/or to
6137 *** bug-libtool@gnu.org
6138
6139 EOF
6140           fi ;;
6141         esac
6142       fi
6143       break
6144     fi
6145   done
6146   IFS="$lt_save_ifs"
6147   MAGIC_CMD="$lt_save_MAGIC_CMD"
6148   ;;
6149 esac
6150 fi
6151
6152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6153 if test -n "$MAGIC_CMD"; then
6154   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6155 echo "${ECHO_T}$MAGIC_CMD" >&6
6156 else
6157   echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6
6159 fi
6160
6161 if test -z "$lt_cv_path_MAGIC_CMD"; then
6162   if test -n "$ac_tool_prefix"; then
6163     echo "$as_me:$LINENO: checking for file" >&5
6164 echo $ECHO_N "checking for file... $ECHO_C" >&6
6165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   case $MAGIC_CMD in
6169 [\\/*] |  ?:[\\/]*)
6170   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6171   ;;
6172 *)
6173   lt_save_MAGIC_CMD="$MAGIC_CMD"
6174   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6175   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6176   for ac_dir in $ac_dummy; do
6177     IFS="$lt_save_ifs"
6178     test -z "$ac_dir" && ac_dir=.
6179     if test -f $ac_dir/file; then
6180       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6181       if test -n "$file_magic_test_file"; then
6182         case $deplibs_check_method in
6183         "file_magic "*)
6184           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6185           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6186           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6187             $EGREP "$file_magic_regex" > /dev/null; then
6188             :
6189           else
6190             cat <<EOF 1>&2
6191
6192 *** Warning: the command libtool uses to detect shared libraries,
6193 *** $file_magic_cmd, produces output that libtool cannot recognize.
6194 *** The result is that libtool may fail to recognize shared libraries
6195 *** as such.  This will affect the creation of libtool libraries that
6196 *** depend on shared libraries, but programs linked with such libtool
6197 *** libraries will work regardless of this problem.  Nevertheless, you
6198 *** may want to report the problem to your system manager and/or to
6199 *** bug-libtool@gnu.org
6200
6201 EOF
6202           fi ;;
6203         esac
6204       fi
6205       break
6206     fi
6207   done
6208   IFS="$lt_save_ifs"
6209   MAGIC_CMD="$lt_save_MAGIC_CMD"
6210   ;;
6211 esac
6212 fi
6213
6214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6215 if test -n "$MAGIC_CMD"; then
6216   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6217 echo "${ECHO_T}$MAGIC_CMD" >&6
6218 else
6219   echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6
6221 fi
6222
6223   else
6224     MAGIC_CMD=:
6225   fi
6226 fi
6227
6228   fi
6229   ;;
6230 esac
6231
6232 enable_dlopen=no
6233 enable_win32_dll=no
6234
6235 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6236 if test "${enable_libtool_lock+set}" = set; then
6237   enableval="$enable_libtool_lock"
6238
6239 fi;
6240 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6241
6242
6243 # Check whether --with-pic or --without-pic was given.
6244 if test "${with_pic+set}" = set; then
6245   withval="$with_pic"
6246   pic_mode="$withval"
6247 else
6248   pic_mode=default
6249 fi;
6250 test -z "$pic_mode" && pic_mode=default
6251
6252 # Use C for the default configuration in the libtool script
6253 tagname=
6254 lt_save_CC="$CC"
6255 ac_ext=c
6256 ac_cpp='$CPP $CPPFLAGS'
6257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6260
6261
6262 # Source file extension for C test sources.
6263 ac_ext=c
6264
6265 # Object file extension for compiled C test sources.
6266 objext=o
6267 objext=$objext
6268
6269 # Code to be used in simple compile tests
6270 lt_simple_compile_test_code="int some_variable = 0;\n"
6271
6272 # Code to be used in simple link tests
6273 lt_simple_link_test_code='int main(){return(0);}\n'
6274
6275
6276 # If no C compiler was specified, use CC.
6277 LTCC=${LTCC-"$CC"}
6278
6279 # Allow CC to be a program name with arguments.
6280 compiler=$CC
6281
6282
6283 # save warnings/boilerplate of simple test code
6284 ac_outfile=conftest.$ac_objext
6285 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6286 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6287 _lt_compiler_boilerplate=`cat conftest.err`
6288 $rm conftest*
6289
6290 ac_outfile=conftest.$ac_objext
6291 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6292 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6293 _lt_linker_boilerplate=`cat conftest.err`
6294 $rm conftest*
6295
6296
6297 #
6298 # Check for any special shared library compilation flags.
6299 #
6300 lt_prog_cc_shlib=
6301 if test "$GCC" = no; then
6302   case $host_os in
6303   sco3.2v5*)
6304     lt_prog_cc_shlib='-belf'
6305     ;;
6306   esac
6307 fi
6308 if test -n "$lt_prog_cc_shlib"; then
6309   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6310 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6311   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6312   else
6313     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6314 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6315     lt_cv_prog_cc_can_build_shared=no
6316   fi
6317 fi
6318
6319
6320 #
6321 # Check to make sure the static flag actually works.
6322 #
6323 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6324 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6325 if test "${lt_prog_compiler_static_works+set}" = set; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328   lt_prog_compiler_static_works=no
6329    save_LDFLAGS="$LDFLAGS"
6330    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6331    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6332    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6333      # The compiler can only warn and ignore the option if not recognized
6334      # So say no if there are warnings
6335      if test -s conftest.err; then
6336        # Append any errors to the config.log.
6337        cat conftest.err 1>&5
6338        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6339        $SED '/^$/d' conftest.err >conftest.er2
6340        if diff conftest.exp conftest.er2 >/dev/null; then
6341          lt_prog_compiler_static_works=yes
6342        fi
6343      else
6344        lt_prog_compiler_static_works=yes
6345      fi
6346    fi
6347    $rm conftest*
6348    LDFLAGS="$save_LDFLAGS"
6349
6350 fi
6351 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6352 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6353
6354 if test x"$lt_prog_compiler_static_works" = xyes; then
6355     :
6356 else
6357     lt_prog_compiler_static=
6358 fi
6359
6360
6361
6362
6363 lt_prog_compiler_no_builtin_flag=
6364
6365 if test "$GCC" = yes; then
6366   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6367
6368
6369 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6370 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6371 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   lt_cv_prog_compiler_rtti_exceptions=no
6375   ac_outfile=conftest.$ac_objext
6376    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6377    lt_compiler_flag="-fno-rtti -fno-exceptions"
6378    # Insert the option either (1) after the last *FLAGS variable, or
6379    # (2) before a word containing "conftest.", or (3) at the end.
6380    # Note that $ac_compile itself does not contain backslashes and begins
6381    # with a dollar sign (not a hyphen), so the echo should work correctly.
6382    # The option is referenced via a variable to avoid confusing sed.
6383    lt_compile=`echo "$ac_compile" | $SED \
6384    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6385    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6386    -e 's:$: $lt_compiler_flag:'`
6387    (eval echo "\"\$as_me:6387: $lt_compile\"" >&5)
6388    (eval "$lt_compile" 2>conftest.err)
6389    ac_status=$?
6390    cat conftest.err >&5
6391    echo "$as_me:6391: \$? = $ac_status" >&5
6392    if (exit $ac_status) && test -s "$ac_outfile"; then
6393      # The compiler can only warn and ignore the option if not recognized
6394      # So say no if there are warnings other than the usual output.
6395      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6396      $SED '/^$/d' conftest.err >conftest.er2
6397      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6398        lt_cv_prog_compiler_rtti_exceptions=yes
6399      fi
6400    fi
6401    $rm conftest*
6402
6403 fi
6404 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6405 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6406
6407 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6408     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6409 else
6410     :
6411 fi
6412
6413 fi
6414
6415 lt_prog_compiler_wl=
6416 lt_prog_compiler_pic=
6417 lt_prog_compiler_static=
6418
6419 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6420 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6421
6422   if test "$GCC" = yes; then
6423     lt_prog_compiler_wl='-Wl,'
6424     lt_prog_compiler_static='-static'
6425
6426     case $host_os in
6427       aix*)
6428       # All AIX code is PIC.
6429       if test "$host_cpu" = ia64; then
6430         # AIX 5 now supports IA64 processor
6431         lt_prog_compiler_static='-Bstatic'
6432       fi
6433       ;;
6434
6435     amigaos*)
6436       # FIXME: we need at least 68020 code to build shared libraries, but
6437       # adding the `-m68020' flag to GCC prevents building anything better,
6438       # like `-m68040'.
6439       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6440       ;;
6441
6442     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6443       # PIC is the default for these OSes.
6444       ;;
6445
6446     mingw* | pw32* | os2*)
6447       # This hack is so that the source file can tell whether it is being
6448       # built for inclusion in a dll (and should export symbols for example).
6449       lt_prog_compiler_pic='-DDLL_EXPORT'
6450       ;;
6451
6452     darwin* | rhapsody*)
6453       # PIC is the default on this platform
6454       # Common symbols not allowed in MH_DYLIB files
6455       lt_prog_compiler_pic='-fno-common'
6456       ;;
6457
6458     msdosdjgpp*)
6459       # Just because we use GCC doesn't mean we suddenly get shared libraries
6460       # on systems that don't support them.
6461       lt_prog_compiler_can_build_shared=no
6462       enable_shared=no
6463       ;;
6464
6465     sysv4*MP*)
6466       if test -d /usr/nec; then
6467         lt_prog_compiler_pic=-Kconform_pic
6468       fi
6469       ;;
6470
6471     hpux*)
6472       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6473       # not for PA HP-UX.
6474       case "$host_cpu" in
6475       hppa*64*|ia64*)
6476         # +Z the default
6477         ;;
6478       *)
6479         lt_prog_compiler_pic='-fPIC'
6480         ;;
6481       esac
6482       ;;
6483
6484     *)
6485       lt_prog_compiler_pic='-fPIC'
6486       ;;
6487     esac
6488   else
6489     # PORTME Check for flag to pass linker flags through the system compiler.
6490     case $host_os in
6491     aix*)
6492       lt_prog_compiler_wl='-Wl,'
6493       if test "$host_cpu" = ia64; then
6494         # AIX 5 now supports IA64 processor
6495         lt_prog_compiler_static='-Bstatic'
6496       else
6497         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6498       fi
6499       ;;
6500       darwin*)
6501         # PIC is the default on this platform
6502         # Common symbols not allowed in MH_DYLIB files
6503        case $cc_basename in
6504          xlc*)
6505          lt_prog_compiler_pic='-qnocommon'
6506          lt_prog_compiler_wl='-Wl,'
6507          ;;
6508        esac
6509        ;;
6510
6511     mingw* | pw32* | os2*)
6512       # This hack is so that the source file can tell whether it is being
6513       # built for inclusion in a dll (and should export symbols for example).
6514       lt_prog_compiler_pic='-DDLL_EXPORT'
6515       ;;
6516
6517     hpux9* | hpux10* | hpux11*)
6518       lt_prog_compiler_wl='-Wl,'
6519       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6520       # not for PA HP-UX.
6521       case "$host_cpu" in
6522       hppa*64*|ia64*)
6523         # +Z the default
6524         ;;
6525       *)
6526         lt_prog_compiler_pic='+Z'
6527         ;;
6528       esac
6529       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6530       lt_prog_compiler_static='${wl}-a ${wl}archive'
6531       ;;
6532
6533     irix5* | irix6* | nonstopux*)
6534       lt_prog_compiler_wl='-Wl,'
6535       # PIC (with -KPIC) is the default.
6536       lt_prog_compiler_static='-non_shared'
6537       ;;
6538
6539     newsos6)
6540       lt_prog_compiler_pic='-KPIC'
6541       lt_prog_compiler_static='-Bstatic'
6542       ;;
6543
6544     linux*)
6545       case $cc_basename in
6546       icc* | ecc*)
6547         lt_prog_compiler_wl='-Wl,'
6548         lt_prog_compiler_pic='-KPIC'
6549         lt_prog_compiler_static='-static'
6550         ;;
6551       pgcc* | pgf77* | pgf90*)
6552         # Portland Group compilers (*not* the Pentium gcc compiler,
6553         # which looks to be a dead project)
6554         lt_prog_compiler_wl='-Wl,'
6555         lt_prog_compiler_pic='-fpic'
6556         lt_prog_compiler_static='-static'
6557         ;;
6558       ccc*)
6559         lt_prog_compiler_wl='-Wl,'
6560         # All Alpha code is PIC.
6561         lt_prog_compiler_static='-non_shared'
6562         ;;
6563       esac
6564       ;;
6565
6566     osf3* | osf4* | osf5*)
6567       lt_prog_compiler_wl='-Wl,'
6568       # All OSF/1 code is PIC.
6569       lt_prog_compiler_static='-non_shared'
6570       ;;
6571
6572     sco3.2v5*)
6573       lt_prog_compiler_pic='-Kpic'
6574       lt_prog_compiler_static='-dn'
6575       ;;
6576
6577     solaris*)
6578       lt_prog_compiler_pic='-KPIC'
6579       lt_prog_compiler_static='-Bstatic'
6580       case $cc_basename in
6581       f77* | f90* | f95*)
6582         lt_prog_compiler_wl='-Qoption ld ';;
6583       *)
6584         lt_prog_compiler_wl='-Wl,';;
6585       esac
6586       ;;
6587
6588     sunos4*)
6589       lt_prog_compiler_wl='-Qoption ld '
6590       lt_prog_compiler_pic='-PIC'
6591       lt_prog_compiler_static='-Bstatic'
6592       ;;
6593
6594     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6595       lt_prog_compiler_wl='-Wl,'
6596       lt_prog_compiler_pic='-KPIC'
6597       lt_prog_compiler_static='-Bstatic'
6598       ;;
6599
6600     sysv4*MP*)
6601       if test -d /usr/nec ;then
6602         lt_prog_compiler_pic='-Kconform_pic'
6603         lt_prog_compiler_static='-Bstatic'
6604       fi
6605       ;;
6606
6607     unicos*)
6608       lt_prog_compiler_wl='-Wl,'
6609       lt_prog_compiler_can_build_shared=no
6610       ;;
6611
6612     uts4*)
6613       lt_prog_compiler_pic='-pic'
6614       lt_prog_compiler_static='-Bstatic'
6615       ;;
6616
6617     *)
6618       lt_prog_compiler_can_build_shared=no
6619       ;;
6620     esac
6621   fi
6622
6623 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6624 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6625
6626 #
6627 # Check to make sure the PIC flag actually works.
6628 #
6629 if test -n "$lt_prog_compiler_pic"; then
6630
6631 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6632 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6633 if test "${lt_prog_compiler_pic_works+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   lt_prog_compiler_pic_works=no
6637   ac_outfile=conftest.$ac_objext
6638    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6639    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6640    # Insert the option either (1) after the last *FLAGS variable, or
6641    # (2) before a word containing "conftest.", or (3) at the end.
6642    # Note that $ac_compile itself does not contain backslashes and begins
6643    # with a dollar sign (not a hyphen), so the echo should work correctly.
6644    # The option is referenced via a variable to avoid confusing sed.
6645    lt_compile=`echo "$ac_compile" | $SED \
6646    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6647    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6648    -e 's:$: $lt_compiler_flag:'`
6649    (eval echo "\"\$as_me:6649: $lt_compile\"" >&5)
6650    (eval "$lt_compile" 2>conftest.err)
6651    ac_status=$?
6652    cat conftest.err >&5
6653    echo "$as_me:6653: \$? = $ac_status" >&5
6654    if (exit $ac_status) && test -s "$ac_outfile"; then
6655      # The compiler can only warn and ignore the option if not recognized
6656      # So say no if there are warnings other than the usual output.
6657      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6658      $SED '/^$/d' conftest.err >conftest.er2
6659      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6660        lt_prog_compiler_pic_works=yes
6661      fi
6662    fi
6663    $rm conftest*
6664
6665 fi
6666 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6667 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6668
6669 if test x"$lt_prog_compiler_pic_works" = xyes; then
6670     case $lt_prog_compiler_pic in
6671      "" | " "*) ;;
6672      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6673      esac
6674 else
6675     lt_prog_compiler_pic=
6676      lt_prog_compiler_can_build_shared=no
6677 fi
6678
6679 fi
6680 case "$host_os" in
6681   # For platforms which do not support PIC, -DPIC is meaningless:
6682   *djgpp*)
6683     lt_prog_compiler_pic=
6684     ;;
6685   *)
6686     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6687     ;;
6688 esac
6689
6690 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6691 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6692 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6693   echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695   lt_cv_prog_compiler_c_o=no
6696    $rm -r conftest 2>/dev/null
6697    mkdir conftest
6698    cd conftest
6699    mkdir out
6700    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6701
6702    lt_compiler_flag="-o out/conftest2.$ac_objext"
6703    # Insert the option either (1) after the last *FLAGS variable, or
6704    # (2) before a word containing "conftest.", or (3) at the end.
6705    # Note that $ac_compile itself does not contain backslashes and begins
6706    # with a dollar sign (not a hyphen), so the echo should work correctly.
6707    lt_compile=`echo "$ac_compile" | $SED \
6708    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6709    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6710    -e 's:$: $lt_compiler_flag:'`
6711    (eval echo "\"\$as_me:6711: $lt_compile\"" >&5)
6712    (eval "$lt_compile" 2>out/conftest.err)
6713    ac_status=$?
6714    cat out/conftest.err >&5
6715    echo "$as_me:6715: \$? = $ac_status" >&5
6716    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6717    then
6718      # The compiler can only warn and ignore the option if not recognized
6719      # So say no if there are warnings
6720      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6721      $SED '/^$/d' out/conftest.err >out/conftest.er2
6722      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6723        lt_cv_prog_compiler_c_o=yes
6724      fi
6725    fi
6726    chmod u+w .
6727    $rm conftest*
6728    # SGI C++ compiler will create directory out/ii_files/ for
6729    # template instantiation
6730    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6731    $rm out/* && rmdir out
6732    cd ..
6733    rmdir conftest
6734    $rm conftest*
6735
6736 fi
6737 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6738 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6739
6740
6741 hard_links="nottested"
6742 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6743   # do not overwrite the value of need_locks provided by the user
6744   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6745 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6746   hard_links=yes
6747   $rm conftest*
6748   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6749   touch conftest.a
6750   ln conftest.a conftest.b 2>&5 || hard_links=no
6751   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6752   echo "$as_me:$LINENO: result: $hard_links" >&5
6753 echo "${ECHO_T}$hard_links" >&6
6754   if test "$hard_links" = no; then
6755     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6756 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6757     need_locks=warn
6758   fi
6759 else
6760   need_locks=no
6761 fi
6762
6763 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6764 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6765
6766   runpath_var=
6767   allow_undefined_flag=
6768   enable_shared_with_static_runtimes=no
6769   archive_cmds=
6770   archive_expsym_cmds=
6771   old_archive_From_new_cmds=
6772   old_archive_from_expsyms_cmds=
6773   export_dynamic_flag_spec=
6774   whole_archive_flag_spec=
6775   thread_safe_flag_spec=
6776   hardcode_libdir_flag_spec=
6777   hardcode_libdir_flag_spec_ld=
6778   hardcode_libdir_separator=
6779   hardcode_direct=no
6780   hardcode_minus_L=no
6781   hardcode_shlibpath_var=unsupported
6782   link_all_deplibs=unknown
6783   hardcode_automatic=no
6784   module_cmds=
6785   module_expsym_cmds=
6786   always_export_symbols=no
6787   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6788   # include_expsyms should be a list of space-separated symbols to be *always*
6789   # included in the symbol list
6790   include_expsyms=
6791   # exclude_expsyms can be an extended regexp of symbols to exclude
6792   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6793   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6794   # as well as any symbol that contains `d'.
6795   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6796   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6797   # platforms (ab)use it in PIC code, but their linkers get confused if
6798   # the symbol is explicitly referenced.  Since portable code cannot
6799   # rely on this symbol name, it's probably fine to never include it in
6800   # preloaded symbol tables.
6801   extract_expsyms_cmds=
6802   # Just being paranoid about ensuring that cc_basename is set.
6803   for cc_temp in $compiler""; do
6804   case $cc_temp in
6805     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6806     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6807     \-*) ;;
6808     *) break;;
6809   esac
6810 done
6811 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6812
6813   case $host_os in
6814   cygwin* | mingw* | pw32*)
6815     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6816     # When not using gcc, we currently assume that we are using
6817     # Microsoft Visual C++.
6818     if test "$GCC" != yes; then
6819       with_gnu_ld=no
6820     fi
6821     ;;
6822   openbsd*)
6823     with_gnu_ld=no
6824     ;;
6825   esac
6826
6827   ld_shlibs=yes
6828   if test "$with_gnu_ld" = yes; then
6829     # If archive_cmds runs LD, not CC, wlarc should be empty
6830     wlarc='${wl}'
6831
6832     # Set some defaults for GNU ld with shared library support. These
6833     # are reset later if shared libraries are not supported. Putting them
6834     # here allows them to be overridden if necessary.
6835     runpath_var=LD_RUN_PATH
6836     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6837     export_dynamic_flag_spec='${wl}--export-dynamic'
6838     # ancient GNU ld didn't support --whole-archive et. al.
6839     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6840         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6841       else
6842         whole_archive_flag_spec=
6843     fi
6844     supports_anon_versioning=no
6845     case `$LD -v 2>/dev/null` in
6846       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6847       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6848       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6849       *\ 2.11.*) ;; # other 2.11 versions
6850       *) supports_anon_versioning=yes ;;
6851     esac
6852
6853     # See if GNU ld supports shared libraries.
6854     case $host_os in
6855     aix3* | aix4* | aix5*)
6856       # On AIX/PPC, the GNU linker is very broken
6857       if test "$host_cpu" != ia64; then
6858         ld_shlibs=no
6859         cat <<EOF 1>&2
6860
6861 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6862 *** to be unable to reliably create shared libraries on AIX.
6863 *** Therefore, libtool is disabling shared libraries support.  If you
6864 *** really care for shared libraries, you may want to modify your PATH
6865 *** so that a non-GNU linker is found, and then restart.
6866
6867 EOF
6868       fi
6869       ;;
6870
6871     amigaos*)
6872       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)'
6873       hardcode_libdir_flag_spec='-L$libdir'
6874       hardcode_minus_L=yes
6875
6876       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6877       # that the semantics of dynamic libraries on AmigaOS, at least up
6878       # to version 4, is to share data among multiple programs linked
6879       # with the same dynamic library.  Since this doesn't match the
6880       # behavior of shared libraries on other platforms, we can't use
6881       # them.
6882       ld_shlibs=no
6883       ;;
6884
6885     beos*)
6886       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6887         allow_undefined_flag=unsupported
6888         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6889         # support --undefined.  This deserves some investigation.  FIXME
6890         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6891       else
6892         ld_shlibs=no
6893       fi
6894       ;;
6895
6896     cygwin* | mingw* | pw32*)
6897       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6898       # as there is no search path for DLLs.
6899       hardcode_libdir_flag_spec='-L$libdir'
6900       allow_undefined_flag=unsupported
6901       always_export_symbols=no
6902       enable_shared_with_static_runtimes=yes
6903       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6904
6905       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6906         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6907         # If the export-symbols file already is a .def file (1st line
6908         # is EXPORTS), use it as is; otherwise, prepend...
6909         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6910           cp $export_symbols $output_objdir/$soname.def;
6911         else
6912           echo EXPORTS > $output_objdir/$soname.def;
6913           cat $export_symbols >> $output_objdir/$soname.def;
6914         fi~
6915         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6916       else
6917         ld_shlibs=no
6918       fi
6919       ;;
6920
6921     linux*)
6922       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6923         tmp_addflag=
6924         case $cc_basename,$host_cpu in
6925         pgcc*)                          # Portland Group C compiler
6926           whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6927           tmp_addflag=' $pic_flag'
6928           ;;
6929         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
6930           whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6931           tmp_addflag=' $pic_flag -Mnomain' ;;
6932         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6933           tmp_addflag=' -i_dynamic' ;;
6934         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6935           tmp_addflag=' -i_dynamic -nofor_main' ;;
6936         ifc* | ifort*)                  # Intel Fortran compiler
6937           tmp_addflag=' -nofor_main' ;;
6938         esac
6939         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6940
6941         if test $supports_anon_versioning = yes; then
6942           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6943   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6944   $echo "local: *; };" >> $output_objdir/$libname.ver~
6945           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6946         fi
6947       else
6948         ld_shlibs=no
6949       fi
6950       ;;
6951
6952     netbsd*)
6953       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6954         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6955         wlarc=
6956       else
6957         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6958         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6959       fi
6960       ;;
6961
6962     solaris* | sysv5*)
6963       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6964         ld_shlibs=no
6965         cat <<EOF 1>&2
6966
6967 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6968 *** create shared libraries on Solaris systems.  Therefore, libtool
6969 *** is disabling shared libraries support.  We urge you to upgrade GNU
6970 *** binutils to release 2.9.1 or newer.  Another option is to modify
6971 *** your PATH or compiler configuration so that the native linker is
6972 *** used, and then restart.
6973
6974 EOF
6975       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6976         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6977         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6978       else
6979         ld_shlibs=no
6980       fi
6981       ;;
6982
6983     sunos4*)
6984       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6985       wlarc=
6986       hardcode_direct=yes
6987       hardcode_shlibpath_var=no
6988       ;;
6989
6990     *)
6991       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6992         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6993         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6994       else
6995         ld_shlibs=no
6996       fi
6997       ;;
6998     esac
6999
7000     if test "$ld_shlibs" = no; then
7001       runpath_var=
7002       hardcode_libdir_flag_spec=
7003       export_dynamic_flag_spec=
7004       whole_archive_flag_spec=
7005     fi
7006   else
7007     # PORTME fill in a description of your system's linker (not GNU ld)
7008     case $host_os in
7009     aix3*)
7010       allow_undefined_flag=unsupported
7011       always_export_symbols=yes
7012       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'
7013       # Note: this linker hardcodes the directories in LIBPATH if there
7014       # are no directories specified by -L.
7015       hardcode_minus_L=yes
7016       if test "$GCC" = yes && test -z "$link_static_flag"; then
7017         # Neither direct hardcoding nor static linking is supported with a
7018         # broken collect2.
7019         hardcode_direct=unsupported
7020       fi
7021       ;;
7022
7023     aix4* | aix5*)
7024       if test "$host_cpu" = ia64; then
7025         # On IA64, the linker does run time linking by default, so we don't
7026         # have to do anything special.
7027         aix_use_runtimelinking=no
7028         exp_sym_flag='-Bexport'
7029         no_entry_flag=""
7030       else
7031         # If we're using GNU nm, then we don't want the "-C" option.
7032         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7033         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7034           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'
7035         else
7036           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'
7037         fi
7038         aix_use_runtimelinking=no
7039
7040         # Test if we are trying to use run time linking or normal
7041         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7042         # need to do runtime linking.
7043         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7044           for ld_flag in $LDFLAGS; do
7045           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7046             aix_use_runtimelinking=yes
7047             break
7048           fi
7049           done
7050         esac
7051
7052         exp_sym_flag='-bexport'
7053         no_entry_flag='-bnoentry'
7054       fi
7055
7056       # When large executables or shared objects are built, AIX ld can
7057       # have problems creating the table of contents.  If linking a library
7058       # or program results in "error TOC overflow" add -mminimal-toc to
7059       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7060       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7061
7062       archive_cmds=''
7063       hardcode_direct=yes
7064       hardcode_libdir_separator=':'
7065       link_all_deplibs=yes
7066
7067       if test "$GCC" = yes; then
7068         case $host_os in aix4.[012]|aix4.[012].*)
7069         # We only want to do this on AIX 4.2 and lower, the check
7070         # below for broken collect2 doesn't work under 4.3+
7071           collect2name=`${CC} -print-prog-name=collect2`
7072           if test -f "$collect2name" && \
7073            strings "$collect2name" | grep resolve_lib_name >/dev/null
7074           then
7075           # We have reworked collect2
7076           hardcode_direct=yes
7077           else
7078           # We have old collect2
7079           hardcode_direct=unsupported
7080           # It fails to find uninstalled libraries when the uninstalled
7081           # path is not listed in the libpath.  Setting hardcode_minus_L
7082           # to unsupported forces relinking
7083           hardcode_minus_L=yes
7084           hardcode_libdir_flag_spec='-L$libdir'
7085           hardcode_libdir_separator=
7086           fi
7087         esac
7088         shared_flag='-shared'
7089         if test "$aix_use_runtimelinking" = yes; then
7090           shared_flag="$shared_flag "'${wl}-G'
7091         fi
7092       else
7093         # not using gcc
7094         if test "$host_cpu" = ia64; then
7095         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7096         # chokes on -Wl,-G. The following line is correct:
7097           shared_flag='-G'
7098         else
7099         if test "$aix_use_runtimelinking" = yes; then
7100             shared_flag='${wl}-G'
7101           else
7102             shared_flag='${wl}-bM:SRE'
7103         fi
7104         fi
7105       fi
7106
7107       # It seems that -bexpall does not export symbols beginning with
7108       # underscore (_), so it is better to generate a list of symbols to export.
7109       always_export_symbols=yes
7110       if test "$aix_use_runtimelinking" = yes; then
7111         # Warning - without using the other runtime loading flags (-brtl),
7112         # -berok will link without error, but may produce a broken library.
7113         allow_undefined_flag='-berok'
7114        # Determine the default libpath from the value encoded in an empty executable.
7115        cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h.  */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h.  */
7121
7122 int
7123 main ()
7124 {
7125
7126   ;
7127   return 0;
7128 }
7129 _ACEOF
7130 rm -f conftest.$ac_objext conftest$ac_exeext
7131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7132   (eval $ac_link) 2>conftest.er1
7133   ac_status=$?
7134   grep -v '^ *+' conftest.er1 >conftest.err
7135   rm -f conftest.er1
7136   cat conftest.err >&5
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); } &&
7139          { ac_try='test -z "$ac_c_werror_flag"
7140                          || test ! -s conftest.err'
7141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142   (eval $ac_try) 2>&5
7143   ac_status=$?
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); }; } &&
7146          { ac_try='test -s conftest$ac_exeext'
7147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148   (eval $ac_try) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); }; }; then
7152
7153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7154 }'`
7155 # Check for a 64-bit object if we didn't find anything.
7156 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; }
7157 }'`; fi
7158 else
7159   echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7161
7162 fi
7163 rm -f conftest.err conftest.$ac_objext \
7164       conftest$ac_exeext conftest.$ac_ext
7165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7166
7167        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7168         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"
7169        else
7170         if test "$host_cpu" = ia64; then
7171           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7172           allow_undefined_flag="-z nodefs"
7173           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"
7174         else
7175          # Determine the default libpath from the value encoded in an empty executable.
7176          cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h.  */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h.  */
7182
7183 int
7184 main ()
7185 {
7186
7187   ;
7188   return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext conftest$ac_exeext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7193   (eval $ac_link) 2>conftest.er1
7194   ac_status=$?
7195   grep -v '^ *+' conftest.er1 >conftest.err
7196   rm -f conftest.er1
7197   cat conftest.err >&5
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); } &&
7200          { ac_try='test -z "$ac_c_werror_flag"
7201                          || test ! -s conftest.err'
7202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203   (eval $ac_try) 2>&5
7204   ac_status=$?
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); }; } &&
7207          { ac_try='test -s conftest$ac_exeext'
7208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209   (eval $ac_try) 2>&5
7210   ac_status=$?
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); }; }; then
7213
7214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7215 }'`
7216 # Check for a 64-bit object if we didn't find anything.
7217 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; }
7218 }'`; fi
7219 else
7220   echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7222
7223 fi
7224 rm -f conftest.err conftest.$ac_objext \
7225       conftest$ac_exeext conftest.$ac_ext
7226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7227
7228          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7229           # Warning - without using the other run time loading flags,
7230           # -berok will link without error, but may produce a broken library.
7231           no_undefined_flag=' ${wl}-bernotok'
7232           allow_undefined_flag=' ${wl}-berok'
7233           # -bexpall does not export symbols beginning with underscore (_)
7234           always_export_symbols=yes
7235           # Exported symbols can be pulled into shared objects from archives
7236           whole_archive_flag_spec=' '
7237           archive_cmds_need_lc=yes
7238           # This is similar to how AIX traditionally builds it's shared libraries.
7239           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'
7240         fi
7241       fi
7242       ;;
7243
7244     amigaos*)
7245       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)'
7246       hardcode_libdir_flag_spec='-L$libdir'
7247       hardcode_minus_L=yes
7248       # see comment about different semantics on the GNU ld section
7249       ld_shlibs=no
7250       ;;
7251
7252     bsdi[45]*)
7253       export_dynamic_flag_spec=-rdynamic
7254       ;;
7255
7256     cygwin* | mingw* | pw32*)
7257       # When not using gcc, we currently assume that we are using
7258       # Microsoft Visual C++.
7259       # hardcode_libdir_flag_spec is actually meaningless, as there is
7260       # no search path for DLLs.
7261       hardcode_libdir_flag_spec=' '
7262       allow_undefined_flag=unsupported
7263       # Tell ltmain to make .lib files, not .a files.
7264       libext=lib
7265       # Tell ltmain to make .dll files, not .so files.
7266       shrext_cmds=".dll"
7267       # FIXME: Setting linknames here is a bad hack.
7268       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7269       # The linker will automatically build a .lib file if we build a DLL.
7270       old_archive_From_new_cmds='true'
7271       # FIXME: Should let the user specify the lib program.
7272       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7273       fix_srcfile_path='`cygpath -w "$srcfile"`'
7274       enable_shared_with_static_runtimes=yes
7275       ;;
7276
7277     darwin* | rhapsody*)
7278       case "$host_os" in
7279         rhapsody* | darwin1.[012])
7280          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7281          ;;
7282        *) # Darwin 1.3 on
7283          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7284            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7285          else
7286            case ${MACOSX_DEPLOYMENT_TARGET} in
7287              10.[012])
7288                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7289                ;;
7290              10.*)
7291                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7292                ;;
7293            esac
7294          fi
7295          ;;
7296       esac
7297       archive_cmds_need_lc=no
7298       hardcode_direct=no
7299       hardcode_automatic=yes
7300       hardcode_shlibpath_var=unsupported
7301       whole_archive_flag_spec=''
7302       link_all_deplibs=yes
7303     if test "$GCC" = yes ; then
7304         output_verbose_link_cmd='echo'
7305         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7306       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7307       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7308       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}'
7309       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7310     else
7311       case $cc_basename in
7312         xlc*)
7313          output_verbose_link_cmd='echo'
7314          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7315          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7316           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7317          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7318           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7319           ;;
7320        *)
7321          ld_shlibs=no
7322           ;;
7323       esac
7324     fi
7325       ;;
7326
7327     dgux*)
7328       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7329       hardcode_libdir_flag_spec='-L$libdir'
7330       hardcode_shlibpath_var=no
7331       ;;
7332
7333     freebsd1*)
7334       ld_shlibs=no
7335       ;;
7336
7337     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7338     # support.  Future versions do this automatically, but an explicit c++rt0.o
7339     # does not break anything, and helps significantly (at the cost of a little
7340     # extra space).
7341     freebsd2.2*)
7342       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7343       hardcode_libdir_flag_spec='-R$libdir'
7344       hardcode_direct=yes
7345       hardcode_shlibpath_var=no
7346       ;;
7347
7348     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7349     freebsd2*)
7350       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7351       hardcode_direct=yes
7352       hardcode_minus_L=yes
7353       hardcode_shlibpath_var=no
7354       ;;
7355
7356     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7357     freebsd* | kfreebsd*-gnu | dragonfly*)
7358       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7359       hardcode_libdir_flag_spec='-R$libdir'
7360       hardcode_direct=yes
7361       hardcode_shlibpath_var=no
7362       ;;
7363
7364     hpux9*)
7365       if test "$GCC" = yes; then
7366         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'
7367       else
7368         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'
7369       fi
7370       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7371       hardcode_libdir_separator=:
7372       hardcode_direct=yes
7373
7374       # hardcode_minus_L: Not really in the search PATH,
7375       # but as the default location of the library.
7376       hardcode_minus_L=yes
7377       export_dynamic_flag_spec='${wl}-E'
7378       ;;
7379
7380     hpux10* | hpux11*)
7381       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7382         case "$host_cpu" in
7383         hppa*64*|ia64*)
7384           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7385           ;;
7386         *)
7387           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7388           ;;
7389         esac
7390       else
7391         case "$host_cpu" in
7392         hppa*64*|ia64*)
7393           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7394           ;;
7395         *)
7396           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7397           ;;
7398         esac
7399       fi
7400       if test "$with_gnu_ld" = no; then
7401         case "$host_cpu" in
7402         hppa*64*)
7403           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7404           hardcode_libdir_flag_spec_ld='+b $libdir'
7405           hardcode_libdir_separator=:
7406           hardcode_direct=no
7407           hardcode_shlibpath_var=no
7408           ;;
7409         ia64*)
7410           hardcode_libdir_flag_spec='-L$libdir'
7411           hardcode_direct=no
7412           hardcode_shlibpath_var=no
7413
7414           # hardcode_minus_L: Not really in the search PATH,
7415           # but as the default location of the library.
7416           hardcode_minus_L=yes
7417           ;;
7418         *)
7419           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7420           hardcode_libdir_separator=:
7421           hardcode_direct=yes
7422           export_dynamic_flag_spec='${wl}-E'
7423
7424           # hardcode_minus_L: Not really in the search PATH,
7425           # but as the default location of the library.
7426           hardcode_minus_L=yes
7427           ;;
7428         esac
7429       fi
7430       ;;
7431
7432     irix5* | irix6* | nonstopux*)
7433       if test "$GCC" = yes; then
7434         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'
7435       else
7436         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'
7437         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7438       fi
7439       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7440       hardcode_libdir_separator=:
7441       link_all_deplibs=yes
7442       ;;
7443
7444     netbsd*)
7445       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7446         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7447       else
7448         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7449       fi
7450       hardcode_libdir_flag_spec='-R$libdir'
7451       hardcode_direct=yes
7452       hardcode_shlibpath_var=no
7453       ;;
7454
7455     newsos6)
7456       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7457       hardcode_direct=yes
7458       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7459       hardcode_libdir_separator=:
7460       hardcode_shlibpath_var=no
7461       ;;
7462
7463     openbsd*)
7464       hardcode_direct=yes
7465       hardcode_shlibpath_var=no
7466       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7467         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7468         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7469         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7470         export_dynamic_flag_spec='${wl}-E'
7471       else
7472        case $host_os in
7473          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7474            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7475            hardcode_libdir_flag_spec='-R$libdir'
7476            ;;
7477          *)
7478            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7479            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7480            ;;
7481        esac
7482       fi
7483       ;;
7484
7485     os2*)
7486       hardcode_libdir_flag_spec='-L$libdir'
7487       hardcode_minus_L=yes
7488       allow_undefined_flag=unsupported
7489       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'
7490       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7491       ;;
7492
7493     osf3*)
7494       if test "$GCC" = yes; then
7495         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7496         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'
7497       else
7498         allow_undefined_flag=' -expect_unresolved \*'
7499         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'
7500       fi
7501       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7502       hardcode_libdir_separator=:
7503       ;;
7504
7505     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7506       if test "$GCC" = yes; then
7507         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7508         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'
7509         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7510       else
7511         allow_undefined_flag=' -expect_unresolved \*'
7512         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'
7513         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7514         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7515
7516         # Both c and cxx compiler support -rpath directly
7517         hardcode_libdir_flag_spec='-rpath $libdir'
7518       fi
7519       hardcode_libdir_separator=:
7520       ;;
7521
7522     sco3.2v5*)
7523       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7524       hardcode_shlibpath_var=no
7525       export_dynamic_flag_spec='${wl}-Bexport'
7526       runpath_var=LD_RUN_PATH
7527       hardcode_runpath_var=yes
7528       ;;
7529
7530     solaris*)
7531       no_undefined_flag=' -z text'
7532       if test "$GCC" = yes; then
7533         wlarc='${wl}'
7534         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7535         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7536           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7537       else
7538         wlarc=''
7539         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7540         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7541         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7542       fi
7543       hardcode_libdir_flag_spec='-R$libdir'
7544       hardcode_shlibpath_var=no
7545       case $host_os in
7546       solaris2.[0-5] | solaris2.[0-5].*) ;;
7547       *)
7548         # The compiler driver will combine linker options so we
7549         # cannot just pass the convience library names through
7550         # without $wl, iff we do not link with $LD.
7551         # Luckily, gcc supports the same syntax we need for Sun Studio.
7552         # Supported since Solaris 2.6 (maybe 2.5.1?)
7553         case $wlarc in
7554         '')
7555           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7556         *)
7557           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7558         esac ;;
7559       esac
7560       link_all_deplibs=yes
7561       ;;
7562
7563     sunos4*)
7564       if test "x$host_vendor" = xsequent; then
7565         # Use $CC to link under sequent, because it throws in some extra .o
7566         # files that make .init and .fini sections work.
7567         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7568       else
7569         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7570       fi
7571       hardcode_libdir_flag_spec='-L$libdir'
7572       hardcode_direct=yes
7573       hardcode_minus_L=yes
7574       hardcode_shlibpath_var=no
7575       ;;
7576
7577     sysv4)
7578       case $host_vendor in
7579         sni)
7580           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7581           hardcode_direct=yes # is this really true???
7582         ;;
7583         siemens)
7584           ## LD is ld it makes a PLAMLIB
7585           ## CC just makes a GrossModule.
7586           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7587           reload_cmds='$CC -r -o $output$reload_objs'
7588           hardcode_direct=no
7589         ;;
7590         motorola)
7591           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7592           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7593         ;;
7594       esac
7595       runpath_var='LD_RUN_PATH'
7596       hardcode_shlibpath_var=no
7597       ;;
7598
7599     sysv4.3*)
7600       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7601       hardcode_shlibpath_var=no
7602       export_dynamic_flag_spec='-Bexport'
7603       ;;
7604
7605     sysv4*MP*)
7606       if test -d /usr/nec; then
7607         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7608         hardcode_shlibpath_var=no
7609         runpath_var=LD_RUN_PATH
7610         hardcode_runpath_var=yes
7611         ld_shlibs=yes
7612       fi
7613       ;;
7614
7615     sysv4.2uw2*)
7616       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7617       hardcode_direct=yes
7618       hardcode_minus_L=no
7619       hardcode_shlibpath_var=no
7620       hardcode_runpath_var=yes
7621       runpath_var=LD_RUN_PATH
7622       ;;
7623
7624    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7625       no_undefined_flag='${wl}-z ${wl}text'
7626       if test "$GCC" = yes; then
7627         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7628       else
7629         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7630       fi
7631       runpath_var='LD_RUN_PATH'
7632       hardcode_shlibpath_var=no
7633       ;;
7634
7635     sysv5*)
7636       no_undefined_flag=' -z text'
7637       # $CC -shared without GNU ld will not create a library from C++
7638       # object files and a static libstdc++, better avoid it by now
7639       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7640       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7641                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7642       hardcode_libdir_flag_spec=
7643       hardcode_shlibpath_var=no
7644       runpath_var='LD_RUN_PATH'
7645       ;;
7646
7647     uts4*)
7648       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7649       hardcode_libdir_flag_spec='-L$libdir'
7650       hardcode_shlibpath_var=no
7651       ;;
7652
7653     *)
7654       ld_shlibs=no
7655       ;;
7656     esac
7657   fi
7658
7659 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7660 echo "${ECHO_T}$ld_shlibs" >&6
7661 test "$ld_shlibs" = no && can_build_shared=no
7662
7663 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7664 if test "$GCC" = yes; then
7665   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7666 fi
7667
7668 #
7669 # Do we need to explicitly link libc?
7670 #
7671 case "x$archive_cmds_need_lc" in
7672 x|xyes)
7673   # Assume -lc should be added
7674   archive_cmds_need_lc=yes
7675
7676   if test "$enable_shared" = yes && test "$GCC" = yes; then
7677     case $archive_cmds in
7678     *'~'*)
7679       # FIXME: we may have to deal with multi-command sequences.
7680       ;;
7681     '$CC '*)
7682       # Test whether the compiler implicitly links with -lc since on some
7683       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7684       # to ld, don't add -lc before -lgcc.
7685       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7686 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7687       $rm conftest*
7688       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7689
7690       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691   (eval $ac_compile) 2>&5
7692   ac_status=$?
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); } 2>conftest.err; then
7695         soname=conftest
7696         lib=conftest
7697         libobjs=conftest.$ac_objext
7698         deplibs=
7699         wl=$lt_prog_compiler_wl
7700         compiler_flags=-v
7701         linker_flags=-v
7702         verstring=
7703         output_objdir=.
7704         libname=conftest
7705         lt_save_allow_undefined_flag=$allow_undefined_flag
7706         allow_undefined_flag=
7707         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7708   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); }
7712         then
7713           archive_cmds_need_lc=no
7714         else
7715           archive_cmds_need_lc=yes
7716         fi
7717         allow_undefined_flag=$lt_save_allow_undefined_flag
7718       else
7719         cat conftest.err 1>&5
7720       fi
7721       $rm conftest*
7722       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7723 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7724       ;;
7725     esac
7726   fi
7727   ;;
7728 esac
7729
7730 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7731 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7732 library_names_spec=
7733 libname_spec='lib$name'
7734 soname_spec=
7735 shrext_cmds=".so"
7736 postinstall_cmds=
7737 postuninstall_cmds=
7738 finish_cmds=
7739 finish_eval=
7740 shlibpath_var=
7741 shlibpath_overrides_runpath=unknown
7742 version_type=none
7743 dynamic_linker="$host_os ld.so"
7744 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7745 if test "$GCC" = yes; then
7746   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7747   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7748     # if the path contains ";" then we assume it to be the separator
7749     # otherwise default to the standard path separator (i.e. ":") - it is
7750     # assumed that no part of a normal pathname contains ";" but that should
7751     # okay in the real world where ";" in dirpaths is itself problematic.
7752     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7753   else
7754     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7755   fi
7756 else
7757   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7758 fi
7759 need_lib_prefix=unknown
7760 hardcode_into_libs=no
7761
7762 # when you set need_version to no, make sure it does not cause -set_version
7763 # flags to be left without arguments
7764 need_version=unknown
7765
7766 case $host_os in
7767 aix3*)
7768   version_type=linux
7769   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7770   shlibpath_var=LIBPATH
7771
7772   # AIX 3 has no versioning support, so we append a major version to the name.
7773   soname_spec='${libname}${release}${shared_ext}$major'
7774   ;;
7775
7776 aix4* | aix5*)
7777   version_type=linux
7778   need_lib_prefix=no
7779   need_version=no
7780   hardcode_into_libs=yes
7781   if test "$host_cpu" = ia64; then
7782     # AIX 5 supports IA64
7783     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7784     shlibpath_var=LD_LIBRARY_PATH
7785   else
7786     # With GCC up to 2.95.x, collect2 would create an import file
7787     # for dependence libraries.  The import file would start with
7788     # the line `#! .'.  This would cause the generated library to
7789     # depend on `.', always an invalid library.  This was fixed in
7790     # development snapshots of GCC prior to 3.0.
7791     case $host_os in
7792       aix4 | aix4.[01] | aix4.[01].*)
7793       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7794            echo ' yes '
7795            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7796         :
7797       else
7798         can_build_shared=no
7799       fi
7800       ;;
7801     esac
7802     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7803     # soname into executable. Probably we can add versioning support to
7804     # collect2, so additional links can be useful in future.
7805     if test "$aix_use_runtimelinking" = yes; then
7806       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7807       # instead of lib<name>.a to let people know that these are not
7808       # typical AIX shared libraries.
7809       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7810     else
7811       # We preserve .a as extension for shared libraries through AIX4.2
7812       # and later when we are not doing run time linking.
7813       library_names_spec='${libname}${release}.a $libname.a'
7814       soname_spec='${libname}${release}${shared_ext}$major'
7815     fi
7816     shlibpath_var=LIBPATH
7817   fi
7818   ;;
7819
7820 amigaos*)
7821   library_names_spec='$libname.ixlibrary $libname.a'
7822   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7823   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'
7824   ;;
7825
7826 beos*)
7827   library_names_spec='${libname}${shared_ext}'
7828   dynamic_linker="$host_os ld.so"
7829   shlibpath_var=LIBRARY_PATH
7830   ;;
7831
7832 bsdi[45]*)
7833   version_type=linux
7834   need_version=no
7835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7836   soname_spec='${libname}${release}${shared_ext}$major'
7837   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7838   shlibpath_var=LD_LIBRARY_PATH
7839   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7840   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7841   # the default ld.so.conf also contains /usr/contrib/lib and
7842   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7843   # libtool to hard-code these into programs
7844   ;;
7845
7846 cygwin* | mingw* | pw32*)
7847   version_type=windows
7848   shrext_cmds=".dll"
7849   need_version=no
7850   need_lib_prefix=no
7851
7852   case $GCC,$host_os in
7853   yes,cygwin* | yes,mingw* | yes,pw32*)
7854     library_names_spec='$libname.dll.a'
7855     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7856     postinstall_cmds='base_file=`basename \${file}`~
7857       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7858       dldir=$destdir/`dirname \$dlpath`~
7859       test -d \$dldir || mkdir -p \$dldir~
7860       $install_prog $dir/$dlname \$dldir/$dlname'
7861     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7862       dlpath=$dir/\$dldll~
7863        $rm \$dlpath'
7864     shlibpath_overrides_runpath=yes
7865
7866     case $host_os in
7867     cygwin*)
7868       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7869       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7870       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7871       ;;
7872     mingw*)
7873       # MinGW DLLs use traditional 'lib' prefix
7874       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7875       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7876       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7877         # It is most probably a Windows format PATH printed by
7878         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7879         # path with ; separators, and with drive letters. We can handle the
7880         # drive letters (cygwin fileutils understands them), so leave them,
7881         # especially as we might pass files found there to a mingw objdump,
7882         # which wouldn't understand a cygwinified path. Ahh.
7883         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7884       else
7885         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7886       fi
7887       ;;
7888     pw32*)
7889       # pw32 DLLs use 'pw' prefix rather than 'lib'
7890       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7891       ;;
7892     esac
7893     ;;
7894
7895   *)
7896     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7897     ;;
7898   esac
7899   dynamic_linker='Win32 ld.exe'
7900   # FIXME: first we should search . and the directory the executable is in
7901   shlibpath_var=PATH
7902   ;;
7903
7904 darwin* | rhapsody*)
7905   dynamic_linker="$host_os dyld"
7906   version_type=darwin
7907   need_lib_prefix=no
7908   need_version=no
7909   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7910   soname_spec='${libname}${release}${major}$shared_ext'
7911   shlibpath_overrides_runpath=yes
7912   shlibpath_var=DYLD_LIBRARY_PATH
7913   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7914   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7915   if test "$GCC" = yes; then
7916     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"`
7917   else
7918     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7919   fi
7920   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7921   ;;
7922
7923 dgux*)
7924   version_type=linux
7925   need_lib_prefix=no
7926   need_version=no
7927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7928   soname_spec='${libname}${release}${shared_ext}$major'
7929   shlibpath_var=LD_LIBRARY_PATH
7930   ;;
7931
7932 freebsd1*)
7933   dynamic_linker=no
7934   ;;
7935
7936 kfreebsd*-gnu)
7937   version_type=linux
7938   need_lib_prefix=no
7939   need_version=no
7940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7941   soname_spec='${libname}${release}${shared_ext}$major'
7942   shlibpath_var=LD_LIBRARY_PATH
7943   shlibpath_overrides_runpath=no
7944   hardcode_into_libs=yes
7945   dynamic_linker='GNU ld.so'
7946   ;;
7947
7948 freebsd* | dragonfly*)
7949   # DragonFly does not have aout.  When/if they implement a new
7950   # versioning mechanism, adjust this.
7951   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7952   version_type=freebsd-$objformat
7953   case $version_type in
7954     freebsd-elf*)
7955       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7956       need_version=no
7957       need_lib_prefix=no
7958       ;;
7959     freebsd-*)
7960       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7961       need_version=yes
7962       ;;
7963   esac
7964   shlibpath_var=LD_LIBRARY_PATH
7965   case $host_os in
7966   freebsd2*)
7967     shlibpath_overrides_runpath=yes
7968     ;;
7969   freebsd3.[01]* | freebsdelf3.[01]*)
7970     shlibpath_overrides_runpath=yes
7971     hardcode_into_libs=yes
7972     ;;
7973   *) # from 3.2 on
7974     shlibpath_overrides_runpath=no
7975     hardcode_into_libs=yes
7976     ;;
7977   esac
7978   ;;
7979
7980 gnu*)
7981   version_type=linux
7982   need_lib_prefix=no
7983   need_version=no
7984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7985   soname_spec='${libname}${release}${shared_ext}$major'
7986   shlibpath_var=LD_LIBRARY_PATH
7987   hardcode_into_libs=yes
7988   ;;
7989
7990 hpux9* | hpux10* | hpux11*)
7991   # Give a soname corresponding to the major version so that dld.sl refuses to
7992   # link against other versions.
7993   version_type=sunos
7994   need_lib_prefix=no
7995   need_version=no
7996   case "$host_cpu" in
7997   ia64*)
7998     shrext_cmds='.so'
7999     hardcode_into_libs=yes
8000     dynamic_linker="$host_os dld.so"
8001     shlibpath_var=LD_LIBRARY_PATH
8002     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8003     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004     soname_spec='${libname}${release}${shared_ext}$major'
8005     if test "X$HPUX_IA64_MODE" = X32; then
8006       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8007     else
8008       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8009     fi
8010     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8011     ;;
8012    hppa*64*)
8013      shrext_cmds='.sl'
8014      hardcode_into_libs=yes
8015      dynamic_linker="$host_os dld.sl"
8016      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8017      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8018      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8019      soname_spec='${libname}${release}${shared_ext}$major'
8020      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8021      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8022      ;;
8023    *)
8024     shrext_cmds='.sl'
8025     dynamic_linker="$host_os dld.sl"
8026     shlibpath_var=SHLIB_PATH
8027     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8029     soname_spec='${libname}${release}${shared_ext}$major'
8030     ;;
8031   esac
8032   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8033   postinstall_cmds='chmod 555 $lib'
8034   ;;
8035
8036 irix5* | irix6* | nonstopux*)
8037   case $host_os in
8038     nonstopux*) version_type=nonstopux ;;
8039     *)
8040         if test "$lt_cv_prog_gnu_ld" = yes; then
8041                 version_type=linux
8042         else
8043                 version_type=irix
8044         fi ;;
8045   esac
8046   need_lib_prefix=no
8047   need_version=no
8048   soname_spec='${libname}${release}${shared_ext}$major'
8049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8050   case $host_os in
8051   irix5* | nonstopux*)
8052     libsuff= shlibsuff=
8053     ;;
8054   *)
8055     case $LD in # libtool.m4 will add one of these switches to LD
8056     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8057       libsuff= shlibsuff= libmagic=32-bit;;
8058     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8059       libsuff=32 shlibsuff=N32 libmagic=N32;;
8060     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8061       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8062     *) libsuff= shlibsuff= libmagic=never-match;;
8063     esac
8064     ;;
8065   esac
8066   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8067   shlibpath_overrides_runpath=no
8068   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8069   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8070   hardcode_into_libs=yes
8071   ;;
8072
8073 # No shared lib support for Linux oldld, aout, or coff.
8074 linux*oldld* | linux*aout* | linux*coff*)
8075   dynamic_linker=no
8076   ;;
8077
8078 # This must be Linux ELF.
8079 linux*)
8080   version_type=linux
8081   need_lib_prefix=no
8082   need_version=no
8083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8084   soname_spec='${libname}${release}${shared_ext}$major'
8085   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8086   shlibpath_var=LD_LIBRARY_PATH
8087   shlibpath_overrides_runpath=no
8088   # This implies no fast_install, which is unacceptable.
8089   # Some rework will be needed to allow for fast_install
8090   # before this can be enabled.
8091   hardcode_into_libs=yes
8092
8093   # Append ld.so.conf contents to the search path
8094   if test -f /etc/ld.so.conf; then
8095     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; shopt -s nullglob; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,     ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8096     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8097   fi
8098
8099   # We used to test for /lib/ld.so.1 and disable shared libraries on
8100   # powerpc, because MkLinux only supported shared libraries with the
8101   # GNU dynamic linker.  Since this was broken with cross compilers,
8102   # most powerpc-linux boxes support dynamic linking these days and
8103   # people can always --disable-shared, the test was removed, and we
8104   # assume the GNU/Linux dynamic linker is in use.
8105   dynamic_linker='GNU/Linux ld.so'
8106   ;;
8107
8108 knetbsd*-gnu)
8109   version_type=linux
8110   need_lib_prefix=no
8111   need_version=no
8112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8113   soname_spec='${libname}${release}${shared_ext}$major'
8114   shlibpath_var=LD_LIBRARY_PATH
8115   shlibpath_overrides_runpath=no
8116   hardcode_into_libs=yes
8117   dynamic_linker='GNU ld.so'
8118   ;;
8119
8120 netbsd*)
8121   version_type=sunos
8122   need_lib_prefix=no
8123   need_version=no
8124   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8126     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8127     dynamic_linker='NetBSD (a.out) ld.so'
8128   else
8129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8130     soname_spec='${libname}${release}${shared_ext}$major'
8131     dynamic_linker='NetBSD ld.elf_so'
8132   fi
8133   shlibpath_var=LD_LIBRARY_PATH
8134   shlibpath_overrides_runpath=yes
8135   hardcode_into_libs=yes
8136   ;;
8137
8138 newsos6)
8139   version_type=linux
8140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8141   shlibpath_var=LD_LIBRARY_PATH
8142   shlibpath_overrides_runpath=yes
8143   ;;
8144
8145 nto-qnx*)
8146   version_type=linux
8147   need_lib_prefix=no
8148   need_version=no
8149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8150   soname_spec='${libname}${release}${shared_ext}$major'
8151   shlibpath_var=LD_LIBRARY_PATH
8152   shlibpath_overrides_runpath=yes
8153   ;;
8154
8155 openbsd*)
8156   version_type=sunos
8157   need_lib_prefix=no
8158   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8159   case $host_os in
8160     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8161     *)                         need_version=no  ;;
8162   esac
8163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8164   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8165   shlibpath_var=LD_LIBRARY_PATH
8166   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8167     case $host_os in
8168       openbsd2.[89] | openbsd2.[89].*)
8169         shlibpath_overrides_runpath=no
8170         ;;
8171       *)
8172         shlibpath_overrides_runpath=yes
8173         ;;
8174       esac
8175   else
8176     shlibpath_overrides_runpath=yes
8177   fi
8178   ;;
8179
8180 os2*)
8181   libname_spec='$name'
8182   shrext_cmds=".dll"
8183   need_lib_prefix=no
8184   library_names_spec='$libname${shared_ext} $libname.a'
8185   dynamic_linker='OS/2 ld.exe'
8186   shlibpath_var=LIBPATH
8187   ;;
8188
8189 osf3* | osf4* | osf5*)
8190   version_type=osf
8191   need_lib_prefix=no
8192   need_version=no
8193   soname_spec='${libname}${release}${shared_ext}$major'
8194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8195   shlibpath_var=LD_LIBRARY_PATH
8196   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8197   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8198   ;;
8199
8200 sco3.2v5*)
8201   version_type=osf
8202   soname_spec='${libname}${release}${shared_ext}$major'
8203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8204   shlibpath_var=LD_LIBRARY_PATH
8205   ;;
8206
8207 solaris*)
8208   version_type=linux
8209   need_lib_prefix=no
8210   need_version=no
8211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8212   soname_spec='${libname}${release}${shared_ext}$major'
8213   shlibpath_var=LD_LIBRARY_PATH
8214   shlibpath_overrides_runpath=yes
8215   hardcode_into_libs=yes
8216   # ldd complains unless libraries are executable
8217   postinstall_cmds='chmod +x $lib'
8218   ;;
8219
8220 sunos4*)
8221   version_type=sunos
8222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8223   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8224   shlibpath_var=LD_LIBRARY_PATH
8225   shlibpath_overrides_runpath=yes
8226   if test "$with_gnu_ld" = yes; then
8227     need_lib_prefix=no
8228   fi
8229   need_version=yes
8230   ;;
8231
8232 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8233   version_type=linux
8234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8235   soname_spec='${libname}${release}${shared_ext}$major'
8236   shlibpath_var=LD_LIBRARY_PATH
8237   case $host_vendor in
8238     sni)
8239       shlibpath_overrides_runpath=no
8240       need_lib_prefix=no
8241       export_dynamic_flag_spec='${wl}-Blargedynsym'
8242       runpath_var=LD_RUN_PATH
8243       ;;
8244     siemens)
8245       need_lib_prefix=no
8246       ;;
8247     motorola)
8248       need_lib_prefix=no
8249       need_version=no
8250       shlibpath_overrides_runpath=no
8251       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8252       ;;
8253   esac
8254   ;;
8255
8256 sysv4*MP*)
8257   if test -d /usr/nec ;then
8258     version_type=linux
8259     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8260     soname_spec='$libname${shared_ext}.$major'
8261     shlibpath_var=LD_LIBRARY_PATH
8262   fi
8263   ;;
8264
8265 uts4*)
8266   version_type=linux
8267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8268   soname_spec='${libname}${release}${shared_ext}$major'
8269   shlibpath_var=LD_LIBRARY_PATH
8270   ;;
8271
8272 *)
8273   dynamic_linker=no
8274   ;;
8275 esac
8276 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8277 echo "${ECHO_T}$dynamic_linker" >&6
8278 test "$dynamic_linker" = no && can_build_shared=no
8279
8280 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8281 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8282 hardcode_action=
8283 if test -n "$hardcode_libdir_flag_spec" || \
8284    test -n "$runpath_var" || \
8285    test "X$hardcode_automatic" = "Xyes" ; then
8286
8287   # We can hardcode non-existant directories.
8288   if test "$hardcode_direct" != no &&
8289      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8290      # have to relink, otherwise we might link with an installed library
8291      # when we should be linking with a yet-to-be-installed one
8292      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8293      test "$hardcode_minus_L" != no; then
8294     # Linking always hardcodes the temporary library directory.
8295     hardcode_action=relink
8296   else
8297     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8298     hardcode_action=immediate
8299   fi
8300 else
8301   # We cannot hardcode anything, or else we can only hardcode existing
8302   # directories.
8303   hardcode_action=unsupported
8304 fi
8305 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8306 echo "${ECHO_T}$hardcode_action" >&6
8307
8308 if test "$hardcode_action" = relink; then
8309   # Fast installation is not supported
8310   enable_fast_install=no
8311 elif test "$shlibpath_overrides_runpath" = yes ||
8312      test "$enable_shared" = no; then
8313   # Fast installation is not necessary
8314   enable_fast_install=needless
8315 fi
8316
8317 striplib=
8318 old_striplib=
8319 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8320 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8321 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8322   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8323   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8324   echo "$as_me:$LINENO: result: yes" >&5
8325 echo "${ECHO_T}yes" >&6
8326 else
8327 # FIXME - insert some real tests, host_os isn't really good enough
8328   case $host_os in
8329    darwin*)
8330        if test -n "$STRIP" ; then
8331          striplib="$STRIP -x"
8332          echo "$as_me:$LINENO: result: yes" >&5
8333 echo "${ECHO_T}yes" >&6
8334        else
8335   echo "$as_me:$LINENO: result: no" >&5
8336 echo "${ECHO_T}no" >&6
8337 fi
8338        ;;
8339    *)
8340   echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6
8342     ;;
8343   esac
8344 fi
8345
8346 if test "x$enable_dlopen" != xyes; then
8347   enable_dlopen=unknown
8348   enable_dlopen_self=unknown
8349   enable_dlopen_self_static=unknown
8350 else
8351   lt_cv_dlopen=no
8352   lt_cv_dlopen_libs=
8353
8354   case $host_os in
8355   beos*)
8356     lt_cv_dlopen="load_add_on"
8357     lt_cv_dlopen_libs=
8358     lt_cv_dlopen_self=yes
8359     ;;
8360
8361   mingw* | pw32*)
8362     lt_cv_dlopen="LoadLibrary"
8363     lt_cv_dlopen_libs=
8364    ;;
8365
8366   cygwin*)
8367     lt_cv_dlopen="dlopen"
8368     lt_cv_dlopen_libs=
8369    ;;
8370
8371   darwin*)
8372   # if libdl is installed we need to link against it
8373     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8374 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8375 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378   ac_check_lib_save_LIBS=$LIBS
8379 LIBS="-ldl  $LIBS"
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h.  */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h.  */
8386
8387 /* Override any gcc2 internal prototype to avoid an error.  */
8388 #ifdef __cplusplus
8389 extern "C"
8390 #endif
8391 /* We use char because int might match the return type of a gcc2
8392    builtin and then its argument prototype would still apply.  */
8393 char dlopen ();
8394 int
8395 main ()
8396 {
8397 dlopen ();
8398   ;
8399   return 0;
8400 }
8401 _ACEOF
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404   (eval $ac_link) 2>conftest.er1
8405   ac_status=$?
8406   grep -v '^ *+' conftest.er1 >conftest.err
8407   rm -f conftest.er1
8408   cat conftest.err >&5
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } &&
8411          { ac_try='test -z "$ac_c_werror_flag"
8412                          || test ! -s conftest.err'
8413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414   (eval $ac_try) 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; } &&
8418          { ac_try='test -s conftest$ac_exeext'
8419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420   (eval $ac_try) 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }; }; then
8424   ac_cv_lib_dl_dlopen=yes
8425 else
8426   echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8428
8429 ac_cv_lib_dl_dlopen=no
8430 fi
8431 rm -f conftest.err conftest.$ac_objext \
8432       conftest$ac_exeext conftest.$ac_ext
8433 LIBS=$ac_check_lib_save_LIBS
8434 fi
8435 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8436 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8437 if test $ac_cv_lib_dl_dlopen = yes; then
8438   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8439 else
8440
8441     lt_cv_dlopen="dyld"
8442     lt_cv_dlopen_libs=
8443     lt_cv_dlopen_self=yes
8444
8445 fi
8446
8447    ;;
8448
8449   *)
8450     echo "$as_me:$LINENO: checking for shl_load" >&5
8451 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8452 if test "${ac_cv_func_shl_load+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h.  */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h.  */
8461 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8463 #define shl_load innocuous_shl_load
8464
8465 /* System header to define __stub macros and hopefully few prototypes,
8466     which can conflict with char shl_load (); below.
8467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8468     <limits.h> exists even on freestanding compilers.  */
8469
8470 #ifdef __STDC__
8471 # include <limits.h>
8472 #else
8473 # include <assert.h>
8474 #endif
8475
8476 #undef shl_load
8477
8478 /* Override any gcc2 internal prototype to avoid an error.  */
8479 #ifdef __cplusplus
8480 extern "C"
8481 {
8482 #endif
8483 /* We use char because int might match the return type of a gcc2
8484    builtin and then its argument prototype would still apply.  */
8485 char shl_load ();
8486 /* The GNU C library defines this for functions which it implements
8487     to always fail with ENOSYS.  Some functions are actually named
8488     something starting with __ and the normal name is an alias.  */
8489 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8490 choke me
8491 #else
8492 char (*f) () = shl_load;
8493 #endif
8494 #ifdef __cplusplus
8495 }
8496 #endif
8497
8498 int
8499 main ()
8500 {
8501 return f != shl_load;
8502   ;
8503   return 0;
8504 }
8505 _ACEOF
8506 rm -f conftest.$ac_objext conftest$ac_exeext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8508   (eval $ac_link) 2>conftest.er1
8509   ac_status=$?
8510   grep -v '^ *+' conftest.er1 >conftest.err
8511   rm -f conftest.er1
8512   cat conftest.err >&5
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); } &&
8515          { ac_try='test -z "$ac_c_werror_flag"
8516                          || test ! -s conftest.err'
8517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518   (eval $ac_try) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); }; } &&
8522          { ac_try='test -s conftest$ac_exeext'
8523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524   (eval $ac_try) 2>&5
8525   ac_status=$?
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); }; }; then
8528   ac_cv_func_shl_load=yes
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533 ac_cv_func_shl_load=no
8534 fi
8535 rm -f conftest.err conftest.$ac_objext \
8536       conftest$ac_exeext conftest.$ac_ext
8537 fi
8538 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8539 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8540 if test $ac_cv_func_shl_load = yes; then
8541   lt_cv_dlopen="shl_load"
8542 else
8543   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8544 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8545 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548   ac_check_lib_save_LIBS=$LIBS
8549 LIBS="-ldld  $LIBS"
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h.  */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h.  */
8556
8557 /* Override any gcc2 internal prototype to avoid an error.  */
8558 #ifdef __cplusplus
8559 extern "C"
8560 #endif
8561 /* We use char because int might match the return type of a gcc2
8562    builtin and then its argument prototype would still apply.  */
8563 char shl_load ();
8564 int
8565 main ()
8566 {
8567 shl_load ();
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext conftest$ac_exeext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574   (eval $ac_link) 2>conftest.er1
8575   ac_status=$?
8576   grep -v '^ *+' conftest.er1 >conftest.err
8577   rm -f conftest.er1
8578   cat conftest.err >&5
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); } &&
8581          { ac_try='test -z "$ac_c_werror_flag"
8582                          || test ! -s conftest.err'
8583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584   (eval $ac_try) 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }; } &&
8588          { ac_try='test -s conftest$ac_exeext'
8589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590   (eval $ac_try) 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; }; then
8594   ac_cv_lib_dld_shl_load=yes
8595 else
8596   echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_cv_lib_dld_shl_load=no
8600 fi
8601 rm -f conftest.err conftest.$ac_objext \
8602       conftest$ac_exeext conftest.$ac_ext
8603 LIBS=$ac_check_lib_save_LIBS
8604 fi
8605 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8606 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8607 if test $ac_cv_lib_dld_shl_load = yes; then
8608   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8609 else
8610   echo "$as_me:$LINENO: checking for dlopen" >&5
8611 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8612 if test "${ac_cv_func_dlopen+set}" = set; then
8613   echo $ECHO_N "(cached) $ECHO_C" >&6
8614 else
8615   cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h.  */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h.  */
8621 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8623 #define dlopen innocuous_dlopen
8624
8625 /* System header to define __stub macros and hopefully few prototypes,
8626     which can conflict with char dlopen (); below.
8627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8628     <limits.h> exists even on freestanding compilers.  */
8629
8630 #ifdef __STDC__
8631 # include <limits.h>
8632 #else
8633 # include <assert.h>
8634 #endif
8635
8636 #undef dlopen
8637
8638 /* Override any gcc2 internal prototype to avoid an error.  */
8639 #ifdef __cplusplus
8640 extern "C"
8641 {
8642 #endif
8643 /* We use char because int might match the return type of a gcc2
8644    builtin and then its argument prototype would still apply.  */
8645 char dlopen ();
8646 /* The GNU C library defines this for functions which it implements
8647     to always fail with ENOSYS.  Some functions are actually named
8648     something starting with __ and the normal name is an alias.  */
8649 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8650 choke me
8651 #else
8652 char (*f) () = dlopen;
8653 #endif
8654 #ifdef __cplusplus
8655 }
8656 #endif
8657
8658 int
8659 main ()
8660 {
8661 return f != dlopen;
8662   ;
8663   return 0;
8664 }
8665 _ACEOF
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668   (eval $ac_link) 2>conftest.er1
8669   ac_status=$?
8670   grep -v '^ *+' conftest.er1 >conftest.err
8671   rm -f conftest.er1
8672   cat conftest.err >&5
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); } &&
8675          { ac_try='test -z "$ac_c_werror_flag"
8676                          || test ! -s conftest.err'
8677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678   (eval $ac_try) 2>&5
8679   ac_status=$?
8680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681   (exit $ac_status); }; } &&
8682          { ac_try='test -s conftest$ac_exeext'
8683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684   (eval $ac_try) 2>&5
8685   ac_status=$?
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); }; }; then
8688   ac_cv_func_dlopen=yes
8689 else
8690   echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8692
8693 ac_cv_func_dlopen=no
8694 fi
8695 rm -f conftest.err conftest.$ac_objext \
8696       conftest$ac_exeext conftest.$ac_ext
8697 fi
8698 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8699 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8700 if test $ac_cv_func_dlopen = yes; then
8701   lt_cv_dlopen="dlopen"
8702 else
8703   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8704 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8705 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708   ac_check_lib_save_LIBS=$LIBS
8709 LIBS="-ldl  $LIBS"
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h.  */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h.  */
8716
8717 /* Override any gcc2 internal prototype to avoid an error.  */
8718 #ifdef __cplusplus
8719 extern "C"
8720 #endif
8721 /* We use char because int might match the return type of a gcc2
8722    builtin and then its argument prototype would still apply.  */
8723 char dlopen ();
8724 int
8725 main ()
8726 {
8727 dlopen ();
8728   ;
8729   return 0;
8730 }
8731 _ACEOF
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8734   (eval $ac_link) 2>conftest.er1
8735   ac_status=$?
8736   grep -v '^ *+' conftest.er1 >conftest.err
8737   rm -f conftest.er1
8738   cat conftest.err >&5
8739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   (exit $ac_status); } &&
8741          { ac_try='test -z "$ac_c_werror_flag"
8742                          || test ! -s conftest.err'
8743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744   (eval $ac_try) 2>&5
8745   ac_status=$?
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); }; } &&
8748          { ac_try='test -s conftest$ac_exeext'
8749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750   (eval $ac_try) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); }; }; then
8754   ac_cv_lib_dl_dlopen=yes
8755 else
8756   echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8758
8759 ac_cv_lib_dl_dlopen=no
8760 fi
8761 rm -f conftest.err conftest.$ac_objext \
8762       conftest$ac_exeext conftest.$ac_ext
8763 LIBS=$ac_check_lib_save_LIBS
8764 fi
8765 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8766 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8767 if test $ac_cv_lib_dl_dlopen = yes; then
8768   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8769 else
8770   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8771 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8772 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8773   echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775   ac_check_lib_save_LIBS=$LIBS
8776 LIBS="-lsvld  $LIBS"
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783
8784 /* Override any gcc2 internal prototype to avoid an error.  */
8785 #ifdef __cplusplus
8786 extern "C"
8787 #endif
8788 /* We use char because int might match the return type of a gcc2
8789    builtin and then its argument prototype would still apply.  */
8790 char dlopen ();
8791 int
8792 main ()
8793 {
8794 dlopen ();
8795   ;
8796   return 0;
8797 }
8798 _ACEOF
8799 rm -f conftest.$ac_objext conftest$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801   (eval $ac_link) 2>conftest.er1
8802   ac_status=$?
8803   grep -v '^ *+' conftest.er1 >conftest.err
8804   rm -f conftest.er1
8805   cat conftest.err >&5
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); } &&
8808          { ac_try='test -z "$ac_c_werror_flag"
8809                          || test ! -s conftest.err'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; } &&
8815          { ac_try='test -s conftest$ac_exeext'
8816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817   (eval $ac_try) 2>&5
8818   ac_status=$?
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); }; }; then
8821   ac_cv_lib_svld_dlopen=yes
8822 else
8823   echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8825
8826 ac_cv_lib_svld_dlopen=no
8827 fi
8828 rm -f conftest.err conftest.$ac_objext \
8829       conftest$ac_exeext conftest.$ac_ext
8830 LIBS=$ac_check_lib_save_LIBS
8831 fi
8832 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8833 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8834 if test $ac_cv_lib_svld_dlopen = yes; then
8835   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8836 else
8837   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8838 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8839 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8840   echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842   ac_check_lib_save_LIBS=$LIBS
8843 LIBS="-ldld  $LIBS"
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h.  */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h.  */
8850
8851 /* Override any gcc2 internal prototype to avoid an error.  */
8852 #ifdef __cplusplus
8853 extern "C"
8854 #endif
8855 /* We use char because int might match the return type of a gcc2
8856    builtin and then its argument prototype would still apply.  */
8857 char dld_link ();
8858 int
8859 main ()
8860 {
8861 dld_link ();
8862   ;
8863   return 0;
8864 }
8865 _ACEOF
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868   (eval $ac_link) 2>conftest.er1
8869   ac_status=$?
8870   grep -v '^ *+' conftest.er1 >conftest.err
8871   rm -f conftest.er1
8872   cat conftest.err >&5
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); } &&
8875          { ac_try='test -z "$ac_c_werror_flag"
8876                          || test ! -s conftest.err'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; } &&
8882          { ac_try='test -s conftest$ac_exeext'
8883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884   (eval $ac_try) 2>&5
8885   ac_status=$?
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); }; }; then
8888   ac_cv_lib_dld_dld_link=yes
8889 else
8890   echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8892
8893 ac_cv_lib_dld_dld_link=no
8894 fi
8895 rm -f conftest.err conftest.$ac_objext \
8896       conftest$ac_exeext conftest.$ac_ext
8897 LIBS=$ac_check_lib_save_LIBS
8898 fi
8899 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8900 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8901 if test $ac_cv_lib_dld_dld_link = yes; then
8902   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8903 fi
8904
8905
8906 fi
8907
8908
8909 fi
8910
8911
8912 fi
8913
8914
8915 fi
8916
8917
8918 fi
8919
8920     ;;
8921   esac
8922
8923   if test "x$lt_cv_dlopen" != xno; then
8924     enable_dlopen=yes
8925   else
8926     enable_dlopen=no
8927   fi
8928
8929   case $lt_cv_dlopen in
8930   dlopen)
8931     save_CPPFLAGS="$CPPFLAGS"
8932     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8933
8934     save_LDFLAGS="$LDFLAGS"
8935     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8936
8937     save_LIBS="$LIBS"
8938     LIBS="$lt_cv_dlopen_libs $LIBS"
8939
8940     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8941 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8942 if test "${lt_cv_dlopen_self+set}" = set; then
8943   echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945           if test "$cross_compiling" = yes; then :
8946   lt_cv_dlopen_self=cross
8947 else
8948   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8949   lt_status=$lt_dlunknown
8950   cat > conftest.$ac_ext <<EOF
8951 #line 8951 "configure"
8952 #include "confdefs.h"
8953
8954 #if HAVE_DLFCN_H
8955 #include <dlfcn.h>
8956 #endif
8957
8958 #include <stdio.h>
8959
8960 #ifdef RTLD_GLOBAL
8961 #  define LT_DLGLOBAL           RTLD_GLOBAL
8962 #else
8963 #  ifdef DL_GLOBAL
8964 #    define LT_DLGLOBAL         DL_GLOBAL
8965 #  else
8966 #    define LT_DLGLOBAL         0
8967 #  endif
8968 #endif
8969
8970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8971    find out it does not work in some platform. */
8972 #ifndef LT_DLLAZY_OR_NOW
8973 #  ifdef RTLD_LAZY
8974 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8975 #  else
8976 #    ifdef DL_LAZY
8977 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8978 #    else
8979 #      ifdef RTLD_NOW
8980 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8981 #      else
8982 #        ifdef DL_NOW
8983 #          define LT_DLLAZY_OR_NOW      DL_NOW
8984 #        else
8985 #          define LT_DLLAZY_OR_NOW      0
8986 #        endif
8987 #      endif
8988 #    endif
8989 #  endif
8990 #endif
8991
8992 #ifdef __cplusplus
8993 extern "C" void exit (int);
8994 #endif
8995
8996 void fnord() { int i=42;}
8997 int main ()
8998 {
8999   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9000   int status = $lt_dlunknown;
9001
9002   if (self)
9003     {
9004       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9005       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9006       /* dlclose (self); */
9007     }
9008
9009     exit (status);
9010 }
9011 EOF
9012   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013   (eval $ac_link) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9017     (./conftest; exit; ) 2>/dev/null
9018     lt_status=$?
9019     case x$lt_status in
9020       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9021       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9022       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9023     esac
9024   else :
9025     # compilation failed
9026     lt_cv_dlopen_self=no
9027   fi
9028 fi
9029 rm -fr conftest*
9030
9031
9032 fi
9033 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9034 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9035
9036     if test "x$lt_cv_dlopen_self" = xyes; then
9037       LDFLAGS="$LDFLAGS $link_static_flag"
9038       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9039 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9040 if test "${lt_cv_dlopen_self_static+set}" = set; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043           if test "$cross_compiling" = yes; then :
9044   lt_cv_dlopen_self_static=cross
9045 else
9046   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9047   lt_status=$lt_dlunknown
9048   cat > conftest.$ac_ext <<EOF
9049 #line 9049 "configure"
9050 #include "confdefs.h"
9051
9052 #if HAVE_DLFCN_H
9053 #include <dlfcn.h>
9054 #endif
9055
9056 #include <stdio.h>
9057
9058 #ifdef RTLD_GLOBAL
9059 #  define LT_DLGLOBAL           RTLD_GLOBAL
9060 #else
9061 #  ifdef DL_GLOBAL
9062 #    define LT_DLGLOBAL         DL_GLOBAL
9063 #  else
9064 #    define LT_DLGLOBAL         0
9065 #  endif
9066 #endif
9067
9068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9069    find out it does not work in some platform. */
9070 #ifndef LT_DLLAZY_OR_NOW
9071 #  ifdef RTLD_LAZY
9072 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9073 #  else
9074 #    ifdef DL_LAZY
9075 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9076 #    else
9077 #      ifdef RTLD_NOW
9078 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9079 #      else
9080 #        ifdef DL_NOW
9081 #          define LT_DLLAZY_OR_NOW      DL_NOW
9082 #        else
9083 #          define LT_DLLAZY_OR_NOW      0
9084 #        endif
9085 #      endif
9086 #    endif
9087 #  endif
9088 #endif
9089
9090 #ifdef __cplusplus
9091 extern "C" void exit (int);
9092 #endif
9093
9094 void fnord() { int i=42;}
9095 int main ()
9096 {
9097   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9098   int status = $lt_dlunknown;
9099
9100   if (self)
9101     {
9102       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9103       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9104       /* dlclose (self); */
9105     }
9106
9107     exit (status);
9108 }
9109 EOF
9110   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9111   (eval $ac_link) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9115     (./conftest; exit; ) 2>/dev/null
9116     lt_status=$?
9117     case x$lt_status in
9118       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9119       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9120       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9121     esac
9122   else :
9123     # compilation failed
9124     lt_cv_dlopen_self_static=no
9125   fi
9126 fi
9127 rm -fr conftest*
9128
9129
9130 fi
9131 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9132 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9133     fi
9134
9135     CPPFLAGS="$save_CPPFLAGS"
9136     LDFLAGS="$save_LDFLAGS"
9137     LIBS="$save_LIBS"
9138     ;;
9139   esac
9140
9141   case $lt_cv_dlopen_self in
9142   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9143   *) enable_dlopen_self=unknown ;;
9144   esac
9145
9146   case $lt_cv_dlopen_self_static in
9147   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9148   *) enable_dlopen_self_static=unknown ;;
9149   esac
9150 fi
9151
9152
9153 # Report which librarie types wil actually be built
9154 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9155 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9156 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9157 echo "${ECHO_T}$can_build_shared" >&6
9158
9159 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9160 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9161 test "$can_build_shared" = "no" && enable_shared=no
9162
9163 # On AIX, shared libraries and static libraries use the same namespace, and
9164 # are all built from PIC.
9165 case "$host_os" in
9166 aix3*)
9167   test "$enable_shared" = yes && enable_static=no
9168   if test -n "$RANLIB"; then
9169     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9170     postinstall_cmds='$RANLIB $lib'
9171   fi
9172   ;;
9173
9174 aix4* | aix5*)
9175   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9176     test "$enable_shared" = yes && enable_static=no
9177   fi
9178     ;;
9179 esac
9180 echo "$as_me:$LINENO: result: $enable_shared" >&5
9181 echo "${ECHO_T}$enable_shared" >&6
9182
9183 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9184 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9185 # Make sure either enable_shared or enable_static is yes.
9186 test "$enable_shared" = yes || enable_static=yes
9187 echo "$as_me:$LINENO: result: $enable_static" >&5
9188 echo "${ECHO_T}$enable_static" >&6
9189
9190 # The else clause should only fire when bootstrapping the
9191 # libtool distribution, otherwise you forgot to ship ltmain.sh
9192 # with your package, and you will get complaints that there are
9193 # no rules to generate ltmain.sh.
9194 if test -f "$ltmain"; then
9195   # See if we are running on zsh, and set the options which allow our commands through
9196   # without removal of \ escapes.
9197   if test -n "${ZSH_VERSION+set}" ; then
9198     setopt NO_GLOB_SUBST
9199   fi
9200   # Now quote all the things that may contain metacharacters while being
9201   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9202   # variables and quote the copies for generation of the libtool script.
9203   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9204     SED SHELL STRIP \
9205     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9206     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9207     deplibs_check_method reload_flag reload_cmds need_locks \
9208     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9209     lt_cv_sys_global_symbol_to_c_name_address \
9210     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9211     old_postinstall_cmds old_postuninstall_cmds \
9212     compiler \
9213     CC \
9214     LD \
9215     lt_prog_compiler_wl \
9216     lt_prog_compiler_pic \
9217     lt_prog_compiler_static \
9218     lt_prog_compiler_no_builtin_flag \
9219     export_dynamic_flag_spec \
9220     thread_safe_flag_spec \
9221     whole_archive_flag_spec \
9222     enable_shared_with_static_runtimes \
9223     old_archive_cmds \
9224     old_archive_from_new_cmds \
9225     predep_objects \
9226     postdep_objects \
9227     predeps \
9228     postdeps \
9229     compiler_lib_search_path \
9230     archive_cmds \
9231     archive_expsym_cmds \
9232     postinstall_cmds \
9233     postuninstall_cmds \
9234     old_archive_from_expsyms_cmds \
9235     allow_undefined_flag \
9236     no_undefined_flag \
9237     export_symbols_cmds \
9238     hardcode_libdir_flag_spec \
9239     hardcode_libdir_flag_spec_ld \
9240     hardcode_libdir_separator \
9241     hardcode_automatic \
9242     module_cmds \
9243     module_expsym_cmds \
9244     lt_cv_prog_compiler_c_o \
9245     exclude_expsyms \
9246     include_expsyms; do
9247
9248     case $var in
9249     old_archive_cmds | \
9250     old_archive_from_new_cmds | \
9251     archive_cmds | \
9252     archive_expsym_cmds | \
9253     module_cmds | \
9254     module_expsym_cmds | \
9255     old_archive_from_expsyms_cmds | \
9256     export_symbols_cmds | \
9257     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9258     postinstall_cmds | postuninstall_cmds | \
9259     old_postinstall_cmds | old_postuninstall_cmds | \
9260     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9261       # Double-quote double-evaled strings.
9262       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9263       ;;
9264     *)
9265       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9266       ;;
9267     esac
9268   done
9269
9270   case $lt_echo in
9271   *'\$0 --fallback-echo"')
9272     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9273     ;;
9274   esac
9275
9276 cfgfile="${ofile}T"
9277   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9278   $rm -f "$cfgfile"
9279   { echo "$as_me:$LINENO: creating $ofile" >&5
9280 echo "$as_me: creating $ofile" >&6;}
9281
9282   cat <<__EOF__ >> "$cfgfile"
9283 #! $SHELL
9284
9285 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9286 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9287 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9288 #
9289 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9290 # Free Software Foundation, Inc.
9291 #
9292 # This file is part of GNU Libtool:
9293 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9294 #
9295 # This program is free software; you can redistribute it and/or modify
9296 # it under the terms of the GNU General Public License as published by
9297 # the Free Software Foundation; either version 2 of the License, or
9298 # (at your option) any later version.
9299 #
9300 # This program is distributed in the hope that it will be useful, but
9301 # WITHOUT ANY WARRANTY; without even the implied warranty of
9302 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9303 # General Public License for more details.
9304 #
9305 # You should have received a copy of the GNU General Public License
9306 # along with this program; if not, write to the Free Software
9307 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9308 #
9309 # As a special exception to the GNU General Public License, if you
9310 # distribute this file as part of a program that contains a
9311 # configuration script generated by Autoconf, you may include it under
9312 # the same distribution terms that you use for the rest of that program.
9313
9314 # A sed program that does not truncate output.
9315 SED=$lt_SED
9316
9317 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9318 Xsed="$SED -e 1s/^X//"
9319
9320 # The HP-UX ksh and POSIX shell print the target directory to stdout
9321 # if CDPATH is set.
9322 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9323
9324 # The names of the tagged configurations supported by this script.
9325 available_tags=
9326
9327 # ### BEGIN LIBTOOL CONFIG
9328
9329 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9330
9331 # Shell to use when invoking shell scripts.
9332 SHELL=$lt_SHELL
9333
9334 # Whether or not to build shared libraries.
9335 build_libtool_libs=$enable_shared
9336
9337 # Whether or not to build static libraries.
9338 build_old_libs=$enable_static
9339
9340 # Whether or not to add -lc for building shared libraries.
9341 build_libtool_need_lc=$archive_cmds_need_lc
9342
9343 # Whether or not to disallow shared libs when runtime libs are static
9344 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9345
9346 # Whether or not to optimize for fast installation.
9347 fast_install=$enable_fast_install
9348
9349 # The host system.
9350 host_alias=$host_alias
9351 host=$host
9352 host_os=$host_os
9353
9354 # The build system.
9355 build_alias=$build_alias
9356 build=$build
9357 build_os=$build_os
9358
9359 # An echo program that does not interpret backslashes.
9360 echo=$lt_echo
9361
9362 # The archiver.
9363 AR=$lt_AR
9364 AR_FLAGS=$lt_AR_FLAGS
9365
9366 # A C compiler.
9367 LTCC=$lt_LTCC
9368
9369 # A language-specific compiler.
9370 CC=$lt_compiler
9371
9372 # Is the compiler the GNU C compiler?
9373 with_gcc=$GCC
9374
9375 # An ERE matcher.
9376 EGREP=$lt_EGREP
9377
9378 # The linker used to build libraries.
9379 LD=$lt_LD
9380
9381 # Whether we need hard or soft links.
9382 LN_S=$lt_LN_S
9383
9384 # A BSD-compatible nm program.
9385 NM=$lt_NM
9386
9387 # A symbol stripping program
9388 STRIP=$lt_STRIP
9389
9390 # Used to examine libraries when file_magic_cmd begins "file"
9391 MAGIC_CMD=$MAGIC_CMD
9392
9393 # Used on cygwin: DLL creation program.
9394 DLLTOOL="$DLLTOOL"
9395
9396 # Used on cygwin: object dumper.
9397 OBJDUMP="$OBJDUMP"
9398
9399 # Used on cygwin: assembler.
9400 AS="$AS"
9401
9402 # The name of the directory that contains temporary libtool files.
9403 objdir=$objdir
9404
9405 # How to create reloadable object files.
9406 reload_flag=$lt_reload_flag
9407 reload_cmds=$lt_reload_cmds
9408
9409 # How to pass a linker flag through the compiler.
9410 wl=$lt_lt_prog_compiler_wl
9411
9412 # Object file suffix (normally "o").
9413 objext="$ac_objext"
9414
9415 # Old archive suffix (normally "a").
9416 libext="$libext"
9417
9418 # Shared library suffix (normally ".so").
9419 shrext_cmds='$shrext_cmds'
9420
9421 # Executable file suffix (normally "").
9422 exeext="$exeext"
9423
9424 # Additional compiler flags for building library objects.
9425 pic_flag=$lt_lt_prog_compiler_pic
9426 pic_mode=$pic_mode
9427
9428 # What is the maximum length of a command?
9429 max_cmd_len=$lt_cv_sys_max_cmd_len
9430
9431 # Does compiler simultaneously support -c and -o options?
9432 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9433
9434 # Must we lock files when doing compilation?
9435 need_locks=$lt_need_locks
9436
9437 # Do we need the lib prefix for modules?
9438 need_lib_prefix=$need_lib_prefix
9439
9440 # Do we need a version for libraries?
9441 need_version=$need_version
9442
9443 # Whether dlopen is supported.
9444 dlopen_support=$enable_dlopen
9445
9446 # Whether dlopen of programs is supported.
9447 dlopen_self=$enable_dlopen_self
9448
9449 # Whether dlopen of statically linked programs is supported.
9450 dlopen_self_static=$enable_dlopen_self_static
9451
9452 # Compiler flag to prevent dynamic linking.
9453 link_static_flag=$lt_lt_prog_compiler_static
9454
9455 # Compiler flag to turn off builtin functions.
9456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9457
9458 # Compiler flag to allow reflexive dlopens.
9459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9460
9461 # Compiler flag to generate shared objects directly from archives.
9462 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9463
9464 # Compiler flag to generate thread-safe objects.
9465 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9466
9467 # Library versioning type.
9468 version_type=$version_type
9469
9470 # Format of library name prefix.
9471 libname_spec=$lt_libname_spec
9472
9473 # List of archive names.  First name is the real one, the rest are links.
9474 # The last name is the one that the linker finds with -lNAME.
9475 library_names_spec=$lt_library_names_spec
9476
9477 # The coded name of the library, if different from the real name.
9478 soname_spec=$lt_soname_spec
9479
9480 # Commands used to build and install an old-style archive.
9481 RANLIB=$lt_RANLIB
9482 old_archive_cmds=$lt_old_archive_cmds
9483 old_postinstall_cmds=$lt_old_postinstall_cmds
9484 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9485
9486 # Create an old-style archive from a shared archive.
9487 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9488
9489 # Create a temporary old-style archive to link instead of a shared archive.
9490 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9491
9492 # Commands used to build and install a shared archive.
9493 archive_cmds=$lt_archive_cmds
9494 archive_expsym_cmds=$lt_archive_expsym_cmds
9495 postinstall_cmds=$lt_postinstall_cmds
9496 postuninstall_cmds=$lt_postuninstall_cmds
9497
9498 # Commands used to build a loadable module (assumed same as above if empty)
9499 module_cmds=$lt_module_cmds
9500 module_expsym_cmds=$lt_module_expsym_cmds
9501
9502 # Commands to strip libraries.
9503 old_striplib=$lt_old_striplib
9504 striplib=$lt_striplib
9505
9506 # Dependencies to place before the objects being linked to create a
9507 # shared library.
9508 predep_objects=$lt_predep_objects
9509
9510 # Dependencies to place after the objects being linked to create a
9511 # shared library.
9512 postdep_objects=$lt_postdep_objects
9513
9514 # Dependencies to place before the objects being linked to create a
9515 # shared library.
9516 predeps=$lt_predeps
9517
9518 # Dependencies to place after the objects being linked to create a
9519 # shared library.
9520 postdeps=$lt_postdeps
9521
9522 # The library search path used internally by the compiler when linking
9523 # a shared library.
9524 compiler_lib_search_path=$lt_compiler_lib_search_path
9525
9526 # Method to check whether dependent libraries are shared objects.
9527 deplibs_check_method=$lt_deplibs_check_method
9528
9529 # Command to use when deplibs_check_method == file_magic.
9530 file_magic_cmd=$lt_file_magic_cmd
9531
9532 # Flag that allows shared libraries with undefined symbols to be built.
9533 allow_undefined_flag=$lt_allow_undefined_flag
9534
9535 # Flag that forces no undefined symbols.
9536 no_undefined_flag=$lt_no_undefined_flag
9537
9538 # Commands used to finish a libtool library installation in a directory.
9539 finish_cmds=$lt_finish_cmds
9540
9541 # Same as above, but a single script fragment to be evaled but not shown.
9542 finish_eval=$lt_finish_eval
9543
9544 # Take the output of nm and produce a listing of raw symbols and C names.
9545 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9546
9547 # Transform the output of nm in a proper C declaration
9548 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9549
9550 # Transform the output of nm in a C name address pair
9551 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9552
9553 # This is the shared library runtime path variable.
9554 runpath_var=$runpath_var
9555
9556 # This is the shared library path variable.
9557 shlibpath_var=$shlibpath_var
9558
9559 # Is shlibpath searched before the hard-coded library search path?
9560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9561
9562 # How to hardcode a shared library path into an executable.
9563 hardcode_action=$hardcode_action
9564
9565 # Whether we should hardcode library paths into libraries.
9566 hardcode_into_libs=$hardcode_into_libs
9567
9568 # Flag to hardcode \$libdir into a binary during linking.
9569 # This must work even if \$libdir does not exist.
9570 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9571
9572 # If ld is used when linking, flag to hardcode \$libdir into
9573 # a binary during linking. This must work even if \$libdir does
9574 # not exist.
9575 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9576
9577 # Whether we need a single -rpath flag with a separated argument.
9578 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9579
9580 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9581 # resulting binary.
9582 hardcode_direct=$hardcode_direct
9583
9584 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9585 # resulting binary.
9586 hardcode_minus_L=$hardcode_minus_L
9587
9588 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9589 # the resulting binary.
9590 hardcode_shlibpath_var=$hardcode_shlibpath_var
9591
9592 # Set to yes if building a shared library automatically hardcodes DIR into the library
9593 # and all subsequent libraries and executables linked against it.
9594 hardcode_automatic=$hardcode_automatic
9595
9596 # Variables whose values should be saved in libtool wrapper scripts and
9597 # restored at relink time.
9598 variables_saved_for_relink="$variables_saved_for_relink"
9599
9600 # Whether libtool must link a program against all its dependency libraries.
9601 link_all_deplibs=$link_all_deplibs
9602
9603 # Compile-time system search path for libraries
9604 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9605
9606 # Run-time system search path for libraries
9607 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9608
9609 # Fix the shell variable \$srcfile for the compiler.
9610 fix_srcfile_path="$fix_srcfile_path"
9611
9612 # Set to yes if exported symbols are required.
9613 always_export_symbols=$always_export_symbols
9614
9615 # The commands to list exported symbols.
9616 export_symbols_cmds=$lt_export_symbols_cmds
9617
9618 # The commands to extract the exported symbol list from a shared archive.
9619 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9620
9621 # Symbols that should not be listed in the preloaded symbols.
9622 exclude_expsyms=$lt_exclude_expsyms
9623
9624 # Symbols that must always be exported.
9625 include_expsyms=$lt_include_expsyms
9626
9627 # ### END LIBTOOL CONFIG
9628
9629 __EOF__
9630
9631
9632   case $host_os in
9633   aix3*)
9634     cat <<\EOF >> "$cfgfile"
9635
9636 # AIX sometimes has problems with the GCC collect2 program.  For some
9637 # reason, if we set the COLLECT_NAMES environment variable, the problems
9638 # vanish in a puff of smoke.
9639 if test "X${COLLECT_NAMES+set}" != Xset; then
9640   COLLECT_NAMES=
9641   export COLLECT_NAMES
9642 fi
9643 EOF
9644     ;;
9645   esac
9646
9647   # We use sed instead of cat because bash on DJGPP gets confused if
9648   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9649   # text mode, it properly converts lines to CR/LF.  This bash problem
9650   # is reportedly fixed, but why not run on old versions too?
9651   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9652
9653   mv -f "$cfgfile" "$ofile" || \
9654     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9655   chmod +x "$ofile"
9656
9657 else
9658   # If there is no Makefile yet, we rely on a make rule to execute
9659   # `config.status --recheck' to rerun these tests and create the
9660   # libtool script then.
9661   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9662   if test -f "$ltmain_in"; then
9663     test -f Makefile && make "$ltmain"
9664   fi
9665 fi
9666
9667
9668 ac_ext=c
9669 ac_cpp='$CPP $CPPFLAGS'
9670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9673
9674 CC="$lt_save_CC"
9675
9676
9677 # Check whether --with-tags or --without-tags was given.
9678 if test "${with_tags+set}" = set; then
9679   withval="$with_tags"
9680   tagnames="$withval"
9681 fi;
9682
9683 if test -f "$ltmain" && test -n "$tagnames"; then
9684   if test ! -f "${ofile}"; then
9685     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9686 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9687   fi
9688
9689   if test -z "$LTCC"; then
9690     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9691     if test -z "$LTCC"; then
9692       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9693 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9694     else
9695       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9696 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9697     fi
9698   fi
9699
9700   # Extract list of available tagged configurations in $ofile.
9701   # Note that this assumes the entire list is on one line.
9702   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9703
9704   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9705   for tagname in $tagnames; do
9706     IFS="$lt_save_ifs"
9707     # Check whether tagname contains only valid characters
9708     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9709     "") ;;
9710     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9711 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9712    { (exit 1); exit 1; }; }
9713         ;;
9714     esac
9715
9716     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9717     then
9718       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9719 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9720    { (exit 1); exit 1; }; }
9721     fi
9722
9723     # Update the list of available tags.
9724     if test -n "$tagname"; then
9725       echo appending configuration tag \"$tagname\" to $ofile
9726
9727       case $tagname in
9728       CXX)
9729         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9730             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9731             (test "X$CXX" != "Xg++"))) ; then
9732           ac_ext=cc
9733 ac_cpp='$CXXCPP $CPPFLAGS'
9734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9737
9738
9739
9740
9741 archive_cmds_need_lc_CXX=no
9742 allow_undefined_flag_CXX=
9743 always_export_symbols_CXX=no
9744 archive_expsym_cmds_CXX=
9745 export_dynamic_flag_spec_CXX=
9746 hardcode_direct_CXX=no
9747 hardcode_libdir_flag_spec_CXX=
9748 hardcode_libdir_flag_spec_ld_CXX=
9749 hardcode_libdir_separator_CXX=
9750 hardcode_minus_L_CXX=no
9751 hardcode_automatic_CXX=no
9752 module_cmds_CXX=
9753 module_expsym_cmds_CXX=
9754 link_all_deplibs_CXX=unknown
9755 old_archive_cmds_CXX=$old_archive_cmds
9756 no_undefined_flag_CXX=
9757 whole_archive_flag_spec_CXX=
9758 enable_shared_with_static_runtimes_CXX=no
9759
9760 # Dependencies to place before and after the object being linked:
9761 predep_objects_CXX=
9762 postdep_objects_CXX=
9763 predeps_CXX=
9764 postdeps_CXX=
9765 compiler_lib_search_path_CXX=
9766
9767 # Source file extension for C++ test sources.
9768 ac_ext=cc
9769
9770 # Object file extension for compiled C++ test sources.
9771 objext=o
9772 objext_CXX=$objext
9773
9774 # Code to be used in simple compile tests
9775 lt_simple_compile_test_code="int some_variable = 0;\n"
9776
9777 # Code to be used in simple link tests
9778 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9779
9780 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9781
9782 # If no C compiler was specified, use CC.
9783 LTCC=${LTCC-"$CC"}
9784
9785 # Allow CC to be a program name with arguments.
9786 compiler=$CC
9787
9788
9789 # save warnings/boilerplate of simple test code
9790 ac_outfile=conftest.$ac_objext
9791 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9793 _lt_compiler_boilerplate=`cat conftest.err`
9794 $rm conftest*
9795
9796 ac_outfile=conftest.$ac_objext
9797 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9799 _lt_linker_boilerplate=`cat conftest.err`
9800 $rm conftest*
9801
9802
9803 # Allow CC to be a program name with arguments.
9804 lt_save_CC=$CC
9805 lt_save_LD=$LD
9806 lt_save_GCC=$GCC
9807 GCC=$GXX
9808 lt_save_with_gnu_ld=$with_gnu_ld
9809 lt_save_path_LD=$lt_cv_path_LD
9810 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9811   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9812 else
9813   unset lt_cv_prog_gnu_ld
9814 fi
9815 if test -n "${lt_cv_path_LDCXX+set}"; then
9816   lt_cv_path_LD=$lt_cv_path_LDCXX
9817 else
9818   unset lt_cv_path_LD
9819 fi
9820 test -z "${LDCXX+set}" || LD=$LDCXX
9821 CC=${CXX-"c++"}
9822 compiler=$CC
9823 compiler_CXX=$CC
9824 for cc_temp in $compiler""; do
9825   case $cc_temp in
9826     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9827     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9828     \-*) ;;
9829     *) break;;
9830   esac
9831 done
9832 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9833
9834
9835 # We don't want -fno-exception wen compiling C++ code, so set the
9836 # no_builtin_flag separately
9837 if test "$GXX" = yes; then
9838   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9839 else
9840   lt_prog_compiler_no_builtin_flag_CXX=
9841 fi
9842
9843 if test "$GXX" = yes; then
9844   # Set up default GNU C++ configuration
9845
9846
9847 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9848 if test "${with_gnu_ld+set}" = set; then
9849   withval="$with_gnu_ld"
9850   test "$withval" = no || with_gnu_ld=yes
9851 else
9852   with_gnu_ld=no
9853 fi;
9854 ac_prog=ld
9855 if test "$GCC" = yes; then
9856   # Check if gcc -print-prog-name=ld gives a path.
9857   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9858 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9859   case $host in
9860   *-*-mingw*)
9861     # gcc leaves a trailing carriage return which upsets mingw
9862     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9863   *)
9864     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9865   esac
9866   case $ac_prog in
9867     # Accept absolute paths.
9868     [\\/]* | ?:[\\/]*)
9869       re_direlt='/[^/][^/]*/\.\./'
9870       # Canonicalize the pathname of ld
9871       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9872       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9873         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9874       done
9875       test -z "$LD" && LD="$ac_prog"
9876       ;;
9877   "")
9878     # If it fails, then pretend we aren't using GCC.
9879     ac_prog=ld
9880     ;;
9881   *)
9882     # If it is relative, then search for the first ld in PATH.
9883     with_gnu_ld=unknown
9884     ;;
9885   esac
9886 elif test "$with_gnu_ld" = yes; then
9887   echo "$as_me:$LINENO: checking for GNU ld" >&5
9888 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9889 else
9890   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9891 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9892 fi
9893 if test "${lt_cv_path_LD+set}" = set; then
9894   echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896   if test -z "$LD"; then
9897   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9898   for ac_dir in $PATH; do
9899     IFS="$lt_save_ifs"
9900     test -z "$ac_dir" && ac_dir=.
9901     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9902       lt_cv_path_LD="$ac_dir/$ac_prog"
9903       # Check to see if the program is GNU ld.  I'd rather use --version,
9904       # but apparently some GNU ld's only accept -v.
9905       # Break only if it was the GNU/non-GNU ld that we prefer.
9906       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9907       *GNU* | *'with BFD'*)
9908         test "$with_gnu_ld" != no && break
9909         ;;
9910       *)
9911         test "$with_gnu_ld" != yes && break
9912         ;;
9913       esac
9914     fi
9915   done
9916   IFS="$lt_save_ifs"
9917 else
9918   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9919 fi
9920 fi
9921
9922 LD="$lt_cv_path_LD"
9923 if test -n "$LD"; then
9924   echo "$as_me:$LINENO: result: $LD" >&5
9925 echo "${ECHO_T}$LD" >&6
9926 else
9927   echo "$as_me:$LINENO: result: no" >&5
9928 echo "${ECHO_T}no" >&6
9929 fi
9930 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9931 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9932    { (exit 1); exit 1; }; }
9933 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9934 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9935 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9936   echo $ECHO_N "(cached) $ECHO_C" >&6
9937 else
9938   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9939 case `$LD -v 2>&1 </dev/null` in
9940 *GNU* | *'with BFD'*)
9941   lt_cv_prog_gnu_ld=yes
9942   ;;
9943 *)
9944   lt_cv_prog_gnu_ld=no
9945   ;;
9946 esac
9947 fi
9948 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9949 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9950 with_gnu_ld=$lt_cv_prog_gnu_ld
9951
9952
9953
9954   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9955   # archiving commands below assume that GNU ld is being used.
9956   if test "$with_gnu_ld" = yes; then
9957     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958     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'
9959
9960     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9961     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9962
9963     # If archive_cmds runs LD, not CC, wlarc should be empty
9964     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9965     #     investigate it a little bit more. (MM)
9966     wlarc='${wl}'
9967
9968     # ancient GNU ld didn't support --whole-archive et. al.
9969     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9970         grep 'no-whole-archive' > /dev/null; then
9971       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9972     else
9973       whole_archive_flag_spec_CXX=
9974     fi
9975   else
9976     with_gnu_ld=no
9977     wlarc=
9978
9979     # A generic and very simple default shared library creation
9980     # command for GNU C++ for the case where it uses the native
9981     # linker, instead of GNU ld.  If possible, this setting should
9982     # overridden to take advantage of the native linker features on
9983     # the platform it is being used on.
9984     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9985   fi
9986
9987   # Commands to make compiler produce verbose output that lists
9988   # what "hidden" libraries, object files and flags are used when
9989   # linking a shared library.
9990   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9991
9992 else
9993   GXX=no
9994   with_gnu_ld=no
9995   wlarc=
9996 fi
9997
9998 # PORTME: fill in a description of your system's C++ link characteristics
9999 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10000 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10001 ld_shlibs_CXX=yes
10002 case $host_os in
10003   aix3*)
10004     # FIXME: insert proper C++ library support
10005     ld_shlibs_CXX=no
10006     ;;
10007   aix4* | aix5*)
10008     if test "$host_cpu" = ia64; then
10009       # On IA64, the linker does run time linking by default, so we don't
10010       # have to do anything special.
10011       aix_use_runtimelinking=no
10012       exp_sym_flag='-Bexport'
10013       no_entry_flag=""
10014     else
10015       aix_use_runtimelinking=no
10016
10017       # Test if we are trying to use run time linking or normal
10018       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10019       # need to do runtime linking.
10020       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10021         for ld_flag in $LDFLAGS; do
10022           case $ld_flag in
10023           *-brtl*)
10024             aix_use_runtimelinking=yes
10025             break
10026             ;;
10027           esac
10028         done
10029       esac
10030
10031       exp_sym_flag='-bexport'
10032       no_entry_flag='-bnoentry'
10033     fi
10034
10035     # When large executables or shared objects are built, AIX ld can
10036     # have problems creating the table of contents.  If linking a library
10037     # or program results in "error TOC overflow" add -mminimal-toc to
10038     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10039     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10040
10041     archive_cmds_CXX=''
10042     hardcode_direct_CXX=yes
10043     hardcode_libdir_separator_CXX=':'
10044     link_all_deplibs_CXX=yes
10045
10046     if test "$GXX" = yes; then
10047       case $host_os in aix4.[012]|aix4.[012].*)
10048       # We only want to do this on AIX 4.2 and lower, the check
10049       # below for broken collect2 doesn't work under 4.3+
10050         collect2name=`${CC} -print-prog-name=collect2`
10051         if test -f "$collect2name" && \
10052            strings "$collect2name" | grep resolve_lib_name >/dev/null
10053         then
10054           # We have reworked collect2
10055           hardcode_direct_CXX=yes
10056         else
10057           # We have old collect2
10058           hardcode_direct_CXX=unsupported
10059           # It fails to find uninstalled libraries when the uninstalled
10060           # path is not listed in the libpath.  Setting hardcode_minus_L
10061           # to unsupported forces relinking
10062           hardcode_minus_L_CXX=yes
10063           hardcode_libdir_flag_spec_CXX='-L$libdir'
10064           hardcode_libdir_separator_CXX=
10065         fi
10066       esac
10067       shared_flag='-shared'
10068       if test "$aix_use_runtimelinking" = yes; then
10069         shared_flag="$shared_flag "'${wl}-G'
10070       fi
10071     else
10072       # not using gcc
10073       if test "$host_cpu" = ia64; then
10074         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10075         # chokes on -Wl,-G. The following line is correct:
10076         shared_flag='-G'
10077       else
10078         if test "$aix_use_runtimelinking" = yes; then
10079           shared_flag='${wl}-G'
10080         else
10081           shared_flag='${wl}-bM:SRE'
10082         fi
10083       fi
10084     fi
10085
10086     # It seems that -bexpall does not export symbols beginning with
10087     # underscore (_), so it is better to generate a list of symbols to export.
10088     always_export_symbols_CXX=yes
10089     if test "$aix_use_runtimelinking" = yes; then
10090       # Warning - without using the other runtime loading flags (-brtl),
10091       # -berok will link without error, but may produce a broken library.
10092       allow_undefined_flag_CXX='-berok'
10093       # Determine the default libpath from the value encoded in an empty executable.
10094       cat >conftest.$ac_ext <<_ACEOF
10095 /* confdefs.h.  */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h.  */
10100
10101 int
10102 main ()
10103 {
10104
10105   ;
10106   return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111   (eval $ac_link) 2>conftest.er1
10112   ac_status=$?
10113   grep -v '^ *+' conftest.er1 >conftest.err
10114   rm -f conftest.er1
10115   cat conftest.err >&5
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } &&
10118          { ac_try='test -z "$ac_cxx_werror_flag"
10119                          || test ! -s conftest.err'
10120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121   (eval $ac_try) 2>&5
10122   ac_status=$?
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); }; } &&
10125          { ac_try='test -s conftest$ac_exeext'
10126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127   (eval $ac_try) 2>&5
10128   ac_status=$?
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); }; }; then
10131
10132 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10133 }'`
10134 # Check for a 64-bit object if we didn't find anything.
10135 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; }
10136 }'`; fi
10137 else
10138   echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141 fi
10142 rm -f conftest.err conftest.$ac_objext \
10143       conftest$ac_exeext conftest.$ac_ext
10144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10145
10146       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10147
10148       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"
10149      else
10150       if test "$host_cpu" = ia64; then
10151         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10152         allow_undefined_flag_CXX="-z nodefs"
10153         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"
10154       else
10155         # Determine the default libpath from the value encoded in an empty executable.
10156         cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h.  */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h.  */
10162
10163 int
10164 main ()
10165 {
10166
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173   (eval $ac_link) 2>conftest.er1
10174   ac_status=$?
10175   grep -v '^ *+' conftest.er1 >conftest.err
10176   rm -f conftest.er1
10177   cat conftest.err >&5
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); } &&
10180          { ac_try='test -z "$ac_cxx_werror_flag"
10181                          || test ! -s conftest.err'
10182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183   (eval $ac_try) 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); }; } &&
10187          { ac_try='test -s conftest$ac_exeext'
10188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189   (eval $ac_try) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); }; }; then
10193
10194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10195 }'`
10196 # Check for a 64-bit object if we didn't find anything.
10197 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; }
10198 }'`; fi
10199 else
10200   echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203 fi
10204 rm -f conftest.err conftest.$ac_objext \
10205       conftest$ac_exeext conftest.$ac_ext
10206 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10207
10208         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10209         # Warning - without using the other run time loading flags,
10210         # -berok will link without error, but may produce a broken library.
10211         no_undefined_flag_CXX=' ${wl}-bernotok'
10212         allow_undefined_flag_CXX=' ${wl}-berok'
10213         # -bexpall does not export symbols beginning with underscore (_)
10214         always_export_symbols_CXX=yes
10215         # Exported symbols can be pulled into shared objects from archives
10216         whole_archive_flag_spec_CXX=' '
10217         archive_cmds_need_lc_CXX=yes
10218         # This is similar to how AIX traditionally builds it's shared libraries.
10219         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'
10220       fi
10221     fi
10222     ;;
10223   chorus*)
10224     case $cc_basename in
10225       *)
10226         # FIXME: insert proper C++ library support
10227         ld_shlibs_CXX=no
10228         ;;
10229     esac
10230     ;;
10231
10232
10233   cygwin* | mingw* | pw32*)
10234     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10235     # as there is no search path for DLLs.
10236     hardcode_libdir_flag_spec_CXX='-L$libdir'
10237     allow_undefined_flag_CXX=unsupported
10238     always_export_symbols_CXX=no
10239     enable_shared_with_static_runtimes_CXX=yes
10240
10241     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10242       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'
10243       # If the export-symbols file already is a .def file (1st line
10244       # is EXPORTS), use it as is; otherwise, prepend...
10245       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10246         cp $export_symbols $output_objdir/$soname.def;
10247       else
10248         echo EXPORTS > $output_objdir/$soname.def;
10249         cat $export_symbols >> $output_objdir/$soname.def;
10250       fi~
10251       $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'
10252     else
10253       ld_shlibs_CXX=no
10254     fi
10255   ;;
10256       darwin* | rhapsody*)
10257         case "$host_os" in
10258         rhapsody* | darwin1.[012])
10259          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10260          ;;
10261        *) # Darwin 1.3 on
10262          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10263            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10264          else
10265            case ${MACOSX_DEPLOYMENT_TARGET} in
10266              10.[012])
10267                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10268                ;;
10269              10.*)
10270                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10271                ;;
10272            esac
10273          fi
10274          ;;
10275         esac
10276       archive_cmds_need_lc_CXX=no
10277       hardcode_direct_CXX=no
10278       hardcode_automatic_CXX=yes
10279       hardcode_shlibpath_var_CXX=unsupported
10280       whole_archive_flag_spec_CXX=''
10281       link_all_deplibs_CXX=yes
10282
10283     if test "$GXX" = yes ; then
10284       lt_int_apple_cc_single_mod=no
10285       output_verbose_link_cmd='echo'
10286       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10287        lt_int_apple_cc_single_mod=yes
10288       fi
10289       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10290        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10291       else
10292           archive_cmds_CXX='$CC -r -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'
10293         fi
10294         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10295         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10296           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10297             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}'
10298           else
10299             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10300           fi
10301             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10302       else
10303       case $cc_basename in
10304         xlc*)
10305          output_verbose_link_cmd='echo'
10306           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10307           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10308           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10309           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10310           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10311           ;;
10312        *)
10313          ld_shlibs_CXX=no
10314           ;;
10315       esac
10316       fi
10317         ;;
10318
10319   dgux*)
10320     case $cc_basename in
10321       ec++*)
10322         # FIXME: insert proper C++ library support
10323         ld_shlibs_CXX=no
10324         ;;
10325       ghcx*)
10326         # Green Hills C++ Compiler
10327         # FIXME: insert proper C++ library support
10328         ld_shlibs_CXX=no
10329         ;;
10330       *)
10331         # FIXME: insert proper C++ library support
10332         ld_shlibs_CXX=no
10333         ;;
10334     esac
10335     ;;
10336   freebsd[12]*)
10337     # C++ shared libraries reported to be fairly broken before switch to ELF
10338     ld_shlibs_CXX=no
10339     ;;
10340   freebsd-elf*)
10341     archive_cmds_need_lc_CXX=no
10342     ;;
10343   freebsd* | kfreebsd*-gnu | dragonfly*)
10344     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10345     # conventions
10346     ld_shlibs_CXX=yes
10347     ;;
10348   gnu*)
10349     ;;
10350   hpux9*)
10351     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10352     hardcode_libdir_separator_CXX=:
10353     export_dynamic_flag_spec_CXX='${wl}-E'
10354     hardcode_direct_CXX=yes
10355     hardcode_minus_L_CXX=yes # Not in the search PATH,
10356                                 # but as the default
10357                                 # location of the library.
10358
10359     case $cc_basename in
10360     CC*)
10361       # FIXME: insert proper C++ library support
10362       ld_shlibs_CXX=no
10363       ;;
10364     aCC*)
10365       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'
10366       # Commands to make compiler produce verbose output that lists
10367       # what "hidden" libraries, object files and flags are used when
10368       # linking a shared library.
10369       #
10370       # There doesn't appear to be a way to prevent this compiler from
10371       # explicitly linking system object files so we need to strip them
10372       # from the output so that they don't get included in the library
10373       # dependencies.
10374       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'
10375       ;;
10376     *)
10377       if test "$GXX" = yes; then
10378         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'
10379       else
10380         # FIXME: insert proper C++ library support
10381         ld_shlibs_CXX=no
10382       fi
10383       ;;
10384     esac
10385     ;;
10386   hpux10*|hpux11*)
10387     if test $with_gnu_ld = no; then
10388       case "$host_cpu" in
10389       hppa*64*)
10390         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10391         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10392         hardcode_libdir_separator_CXX=:
10393         ;;
10394       ia64*)
10395         hardcode_libdir_flag_spec_CXX='-L$libdir'
10396         ;;
10397       *)
10398         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10399         hardcode_libdir_separator_CXX=:
10400         export_dynamic_flag_spec_CXX='${wl}-E'
10401         ;;
10402       esac
10403     fi
10404     case "$host_cpu" in
10405     hppa*64*)
10406       hardcode_direct_CXX=no
10407       hardcode_shlibpath_var_CXX=no
10408       ;;
10409     ia64*)
10410       hardcode_direct_CXX=no
10411       hardcode_shlibpath_var_CXX=no
10412       hardcode_minus_L_CXX=yes # Not in the search PATH,
10413                                               # but as the default
10414                                               # location of the library.
10415       ;;
10416     *)
10417       hardcode_direct_CXX=yes
10418       hardcode_minus_L_CXX=yes # Not in the search PATH,
10419                                               # but as the default
10420                                               # location of the library.
10421       ;;
10422     esac
10423
10424     case $cc_basename in
10425       CC*)
10426         # FIXME: insert proper C++ library support
10427         ld_shlibs_CXX=no
10428         ;;
10429       aCC*)
10430         case "$host_cpu" in
10431         hppa*64*|ia64*)
10432           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10433           ;;
10434         *)
10435           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10436           ;;
10437         esac
10438         # Commands to make compiler produce verbose output that lists
10439         # what "hidden" libraries, object files and flags are used when
10440         # linking a shared library.
10441         #
10442         # There doesn't appear to be a way to prevent this compiler from
10443         # explicitly linking system object files so we need to strip them
10444         # from the output so that they don't get included in the library
10445         # dependencies.
10446         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'
10447         ;;
10448       *)
10449         if test "$GXX" = yes; then
10450           if test $with_gnu_ld = no; then
10451             case "$host_cpu" in
10452             ia64*|hppa*64*)
10453               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10454               ;;
10455             *)
10456               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'
10457               ;;
10458             esac
10459           fi
10460         else
10461           # FIXME: insert proper C++ library support
10462           ld_shlibs_CXX=no
10463         fi
10464         ;;
10465     esac
10466     ;;
10467   irix5* | irix6*)
10468     case $cc_basename in
10469       CC*)
10470         # SGI C++
10471         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 ${output_objdir}/so_locations -o $lib'
10472
10473         # Archives containing C++ object files must be created using
10474         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10475         # necessary to make sure instantiated templates are included
10476         # in the archive.
10477         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10478         ;;
10479       *)
10480         if test "$GXX" = yes; then
10481           if test "$with_gnu_ld" = no; then
10482             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}${output_objdir}/so_locations -o $lib'
10483           else
10484             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'
10485           fi
10486         fi
10487         link_all_deplibs_CXX=yes
10488         ;;
10489     esac
10490     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10491     hardcode_libdir_separator_CXX=:
10492     ;;
10493   linux*)
10494     case $cc_basename in
10495       KCC*)
10496         # Kuck and Associates, Inc. (KAI) C++ Compiler
10497
10498         # KCC will only create a shared library if the output file
10499         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10500         # to its proper name (with version) after linking.
10501         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'
10502         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'
10503         # Commands to make compiler produce verbose output that lists
10504         # what "hidden" libraries, object files and flags are used when
10505         # linking a shared library.
10506         #
10507         # There doesn't appear to be a way to prevent this compiler from
10508         # explicitly linking system object files so we need to strip them
10509         # from the output so that they don't get included in the library
10510         # dependencies.
10511         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'
10512
10513         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10514         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10515
10516         # Archives containing C++ object files must be created using
10517         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10518         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10519         ;;
10520       icpc*)
10521         # Intel C++
10522         with_gnu_ld=yes
10523         # version 8.0 and above of icpc choke on multiply defined symbols
10524         # if we add $predep_objects and $postdep_objects, however 7.1 and
10525         # earlier do not add the objects themselves.
10526         case `$CC -V 2>&1` in
10527         *"Version 7."*)
10528           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10529           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'
10530           ;;
10531         *)  # Version 8.0 or newer
10532           tmp_idyn=
10533           case $host_cpu in
10534             ia64*) tmp_idyn=' -i_dynamic';;
10535           esac
10536           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10537           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10538           ;;
10539         esac
10540         archive_cmds_need_lc_CXX=no
10541         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10542         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10543         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10544         ;;
10545       pgCC*)
10546         # Portland Group C++ compiler
10547         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10548         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10549
10550         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10551         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10552         whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10553         ;;
10554       cxx*)
10555         # Compaq C++
10556         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10557         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'
10558
10559         runpath_var=LD_RUN_PATH
10560         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10561         hardcode_libdir_separator_CXX=:
10562
10563         # Commands to make compiler produce verbose output that lists
10564         # what "hidden" libraries, object files and flags are used when
10565         # linking a shared library.
10566         #
10567         # There doesn't appear to be a way to prevent this compiler from
10568         # explicitly linking system object files so we need to strip them
10569         # from the output so that they don't get included in the library
10570         # dependencies.
10571         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'
10572         ;;
10573     esac
10574     ;;
10575   lynxos*)
10576     # FIXME: insert proper C++ library support
10577     ld_shlibs_CXX=no
10578     ;;
10579   m88k*)
10580     # FIXME: insert proper C++ library support
10581     ld_shlibs_CXX=no
10582     ;;
10583   mvs*)
10584     case $cc_basename in
10585       cxx*)
10586         # FIXME: insert proper C++ library support
10587         ld_shlibs_CXX=no
10588         ;;
10589       *)
10590         # FIXME: insert proper C++ library support
10591         ld_shlibs_CXX=no
10592         ;;
10593     esac
10594     ;;
10595   netbsd*)
10596     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10597       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10598       wlarc=
10599       hardcode_libdir_flag_spec_CXX='-R$libdir'
10600       hardcode_direct_CXX=yes
10601       hardcode_shlibpath_var_CXX=no
10602     fi
10603     # Workaround some broken pre-1.5 toolchains
10604     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10605     ;;
10606   openbsd2*)
10607     # C++ shared libraries are fairly broken
10608     ld_shlibs_CXX=no
10609     ;;
10610   openbsd*)
10611     hardcode_direct_CXX=yes
10612     hardcode_shlibpath_var_CXX=no
10613     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10614     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10615     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10616       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10617       export_dynamic_flag_spec_CXX='${wl}-E'
10618       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10619     fi
10620     output_verbose_link_cmd='echo'
10621     ;;
10622   osf3*)
10623     case $cc_basename in
10624       KCC*)
10625         # Kuck and Associates, Inc. (KAI) C++ Compiler
10626
10627         # KCC will only create a shared library if the output file
10628         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10629         # to its proper name (with version) after linking.
10630         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'
10631
10632         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10633         hardcode_libdir_separator_CXX=:
10634
10635         # Archives containing C++ object files must be created using
10636         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10637         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10638
10639         ;;
10640       RCC*)
10641         # Rational C++ 2.4.1
10642         # FIXME: insert proper C++ library support
10643         ld_shlibs_CXX=no
10644         ;;
10645       cxx*)
10646         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10647         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 ${output_objdir}/so_locations -o $lib'
10648
10649         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10650         hardcode_libdir_separator_CXX=:
10651
10652         # Commands to make compiler produce verbose output that lists
10653         # what "hidden" libraries, object files and flags are used when
10654         # linking a shared library.
10655         #
10656         # There doesn't appear to be a way to prevent this compiler from
10657         # explicitly linking system object files so we need to strip them
10658         # from the output so that they don't get included in the library
10659         # dependencies.
10660         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'
10661         ;;
10662       *)
10663         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10664           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10665           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}${output_objdir}/so_locations -o $lib'
10666
10667           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10668           hardcode_libdir_separator_CXX=:
10669
10670           # Commands to make compiler produce verbose output that lists
10671           # what "hidden" libraries, object files and flags are used when
10672           # linking a shared library.
10673           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10674
10675         else
10676           # FIXME: insert proper C++ library support
10677           ld_shlibs_CXX=no
10678         fi
10679         ;;
10680     esac
10681     ;;
10682   osf4* | osf5*)
10683     case $cc_basename in
10684       KCC*)
10685         # Kuck and Associates, Inc. (KAI) C++ Compiler
10686
10687         # KCC will only create a shared library if the output file
10688         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10689         # to its proper name (with version) after linking.
10690         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'
10691
10692         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10693         hardcode_libdir_separator_CXX=:
10694
10695         # Archives containing C++ object files must be created using
10696         # the KAI C++ compiler.
10697         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10698         ;;
10699       RCC*)
10700         # Rational C++ 2.4.1
10701         # FIXME: insert proper C++ library support
10702         ld_shlibs_CXX=no
10703         ;;
10704       cxx*)
10705         allow_undefined_flag_CXX=' -expect_unresolved \*'
10706         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 ${output_objdir}/so_locations -o $lib'
10707         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10708           echo "-hidden">> $lib.exp~
10709           $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 ${output_objdir}/so_locations -o $lib~
10710           $rm $lib.exp'
10711
10712         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10713         hardcode_libdir_separator_CXX=:
10714
10715         # Commands to make compiler produce verbose output that lists
10716         # what "hidden" libraries, object files and flags are used when
10717         # linking a shared library.
10718         #
10719         # There doesn't appear to be a way to prevent this compiler from
10720         # explicitly linking system object files so we need to strip them
10721         # from the output so that they don't get included in the library
10722         # dependencies.
10723         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'
10724         ;;
10725       *)
10726         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10727           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10728          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}${output_objdir}/so_locations -o $lib'
10729
10730           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10731           hardcode_libdir_separator_CXX=:
10732
10733           # Commands to make compiler produce verbose output that lists
10734           # what "hidden" libraries, object files and flags are used when
10735           # linking a shared library.
10736           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10737
10738         else
10739           # FIXME: insert proper C++ library support
10740           ld_shlibs_CXX=no
10741         fi
10742         ;;
10743     esac
10744     ;;
10745   psos*)
10746     # FIXME: insert proper C++ library support
10747     ld_shlibs_CXX=no
10748     ;;
10749   sco*)
10750     archive_cmds_need_lc_CXX=no
10751     case $cc_basename in
10752       CC*)
10753         # FIXME: insert proper C++ library support
10754         ld_shlibs_CXX=no
10755         ;;
10756       *)
10757         # FIXME: insert proper C++ library support
10758         ld_shlibs_CXX=no
10759         ;;
10760     esac
10761     ;;
10762   sunos4*)
10763     case $cc_basename in
10764       CC*)
10765         # Sun C++ 4.x
10766         # FIXME: insert proper C++ library support
10767         ld_shlibs_CXX=no
10768         ;;
10769       lcc*)
10770         # Lucid
10771         # FIXME: insert proper C++ library support
10772         ld_shlibs_CXX=no
10773         ;;
10774       *)
10775         # FIXME: insert proper C++ library support
10776         ld_shlibs_CXX=no
10777         ;;
10778     esac
10779     ;;
10780   solaris*)
10781     case $cc_basename in
10782       CC*)
10783         # Sun C++ 4.2, 5.x and Centerline C++
10784         no_undefined_flag_CXX=' -zdefs'
10785         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10786         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10787         $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'
10788
10789         hardcode_libdir_flag_spec_CXX='-R$libdir'
10790         hardcode_shlibpath_var_CXX=no
10791         case $host_os in
10792           solaris2.[0-5] | solaris2.[0-5].*) ;;
10793           *)
10794             # The C++ compiler is used as linker so we must use $wl
10795             # flag to pass the commands to the underlying system
10796             # linker. We must also pass each convience library through
10797             # to the system linker between allextract/defaultextract.
10798             # The C++ compiler will combine linker options so we
10799             # cannot just pass the convience library names through
10800             # without $wl.
10801             # Supported since Solaris 2.6 (maybe 2.5.1?)
10802             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10803             ;;
10804         esac
10805         link_all_deplibs_CXX=yes
10806
10807         # Commands to make compiler produce verbose output that lists
10808         # what "hidden" libraries, object files and flags are used when
10809         # linking a shared library.
10810         #
10811         # There doesn't appear to be a way to prevent this compiler from
10812         # explicitly linking system object files so we need to strip them
10813         # from the output so that they don't get included in the library
10814         # dependencies.
10815         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'
10816
10817         # Archives containing C++ object files must be created using
10818         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10819         # necessary to make sure instantiated templates are included
10820         # in the archive.
10821         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10822         ;;
10823       gcx*)
10824         # Green Hills C++ Compiler
10825         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10826
10827         # The C++ compiler must be used to create the archive.
10828         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10829         ;;
10830       *)
10831         # GNU C++ compiler with Solaris linker
10832         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10833           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10834           if $CC --version | grep -v '^2\.7' > /dev/null; then
10835             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10836             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10837                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10838
10839             # Commands to make compiler produce verbose output that lists
10840             # what "hidden" libraries, object files and flags are used when
10841             # linking a shared library.
10842             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10843           else
10844             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10845             # platform.
10846             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10847             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10848                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10849
10850             # Commands to make compiler produce verbose output that lists
10851             # what "hidden" libraries, object files and flags are used when
10852             # linking a shared library.
10853             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10854           fi
10855
10856           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10857         fi
10858         ;;
10859     esac
10860     ;;
10861   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10862     archive_cmds_need_lc_CXX=no
10863     ;;
10864   tandem*)
10865     case $cc_basename in
10866       NCC*)
10867         # NonStop-UX NCC 3.20
10868         # FIXME: insert proper C++ library support
10869         ld_shlibs_CXX=no
10870         ;;
10871       *)
10872         # FIXME: insert proper C++ library support
10873         ld_shlibs_CXX=no
10874         ;;
10875     esac
10876     ;;
10877   vxworks*)
10878     # FIXME: insert proper C++ library support
10879     ld_shlibs_CXX=no
10880     ;;
10881   *)
10882     # FIXME: insert proper C++ library support
10883     ld_shlibs_CXX=no
10884     ;;
10885 esac
10886 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10887 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10888 test "$ld_shlibs_CXX" = no && can_build_shared=no
10889
10890 GCC_CXX="$GXX"
10891 LD_CXX="$LD"
10892
10893
10894 cat > conftest.$ac_ext <<EOF
10895 class Foo
10896 {
10897 public:
10898   Foo (void) { a = 0; }
10899 private:
10900   int a;
10901 };
10902 EOF
10903
10904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10905   (eval $ac_compile) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; then
10909   # Parse the compiler output and extract the necessary
10910   # objects, libraries and library flags.
10911
10912   # Sentinel used to keep track of whether or not we are before
10913   # the conftest object file.
10914   pre_test_object_deps_done=no
10915
10916   # The `*' in the case matches for architectures that use `case' in
10917   # $output_verbose_cmd can trigger glob expansion during the loop
10918   # eval without this substitution.
10919   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10920
10921   for p in `eval $output_verbose_link_cmd`; do
10922     case $p in
10923
10924     -L* | -R* | -l*)
10925        # Some compilers place space between "-{L,R}" and the path.
10926        # Remove the space.
10927        if test $p = "-L" \
10928           || test $p = "-R"; then
10929          prev=$p
10930          continue
10931        else
10932          prev=
10933        fi
10934
10935        if test "$pre_test_object_deps_done" = no; then
10936          case $p in
10937          -L* | -R*)
10938            # Internal compiler library paths should come after those
10939            # provided the user.  The postdeps already come after the
10940            # user supplied libs so there is no need to process them.
10941            if test -z "$compiler_lib_search_path_CXX"; then
10942              compiler_lib_search_path_CXX="${prev}${p}"
10943            else
10944              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10945            fi
10946            ;;
10947          # The "-l" case would never come before the object being
10948          # linked, so don't bother handling this case.
10949          esac
10950        else
10951          if test -z "$postdeps_CXX"; then
10952            postdeps_CXX="${prev}${p}"
10953          else
10954            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10955          fi
10956        fi
10957        ;;
10958
10959     *.$objext)
10960        # This assumes that the test object file only shows up
10961        # once in the compiler output.
10962        if test "$p" = "conftest.$objext"; then
10963          pre_test_object_deps_done=yes
10964          continue
10965        fi
10966
10967        if test "$pre_test_object_deps_done" = no; then
10968          if test -z "$predep_objects_CXX"; then
10969            predep_objects_CXX="$p"
10970          else
10971            predep_objects_CXX="$predep_objects_CXX $p"
10972          fi
10973        else
10974          if test -z "$postdep_objects_CXX"; then
10975            postdep_objects_CXX="$p"
10976          else
10977            postdep_objects_CXX="$postdep_objects_CXX $p"
10978          fi
10979        fi
10980        ;;
10981
10982     *) ;; # Ignore the rest.
10983
10984     esac
10985   done
10986
10987   # Clean up.
10988   rm -f a.out a.exe
10989 else
10990   echo "libtool.m4: error: problem compiling CXX test program"
10991 fi
10992
10993 $rm -f confest.$objext
10994
10995 case " $postdeps_CXX " in
10996 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10997 esac
10998
10999 lt_prog_compiler_wl_CXX=
11000 lt_prog_compiler_pic_CXX=
11001 lt_prog_compiler_static_CXX=
11002
11003 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11004 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11005
11006   # C++ specific cases for pic, static, wl, etc.
11007   if test "$GXX" = yes; then
11008     lt_prog_compiler_wl_CXX='-Wl,'
11009     lt_prog_compiler_static_CXX='-static'
11010
11011     case $host_os in
11012     aix*)
11013       # All AIX code is PIC.
11014       if test "$host_cpu" = ia64; then
11015         # AIX 5 now supports IA64 processor
11016         lt_prog_compiler_static_CXX='-Bstatic'
11017       fi
11018       ;;
11019     amigaos*)
11020       # FIXME: we need at least 68020 code to build shared libraries, but
11021       # adding the `-m68020' flag to GCC prevents building anything better,
11022       # like `-m68040'.
11023       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11024       ;;
11025     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11026       # PIC is the default for these OSes.
11027       ;;
11028     mingw* | os2* | pw32*)
11029       # This hack is so that the source file can tell whether it is being
11030       # built for inclusion in a dll (and should export symbols for example).
11031       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11032       ;;
11033     darwin* | rhapsody*)
11034       # PIC is the default on this platform
11035       # Common symbols not allowed in MH_DYLIB files
11036       lt_prog_compiler_pic_CXX='-fno-common'
11037       ;;
11038     *djgpp*)
11039       # DJGPP does not support shared libraries at all
11040       lt_prog_compiler_pic_CXX=
11041       ;;
11042     sysv4*MP*)
11043       if test -d /usr/nec; then
11044         lt_prog_compiler_pic_CXX=-Kconform_pic
11045       fi
11046       ;;
11047     hpux*)
11048       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11049       # not for PA HP-UX.
11050       case "$host_cpu" in
11051       hppa*64*|ia64*)
11052         ;;
11053       *)
11054         lt_prog_compiler_pic_CXX='-fPIC'
11055         ;;
11056       esac
11057       ;;
11058     *)
11059       lt_prog_compiler_pic_CXX='-fPIC'
11060       ;;
11061     esac
11062   else
11063     case $host_os in
11064       aix4* | aix5*)
11065         # All AIX code is PIC.
11066         if test "$host_cpu" = ia64; then
11067           # AIX 5 now supports IA64 processor
11068           lt_prog_compiler_static_CXX='-Bstatic'
11069         else
11070           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11071         fi
11072         ;;
11073       chorus*)
11074         case $cc_basename in
11075         cxch68*)
11076           # Green Hills C++ Compiler
11077           # _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"
11078           ;;
11079         esac
11080         ;;
11081        darwin*)
11082          # PIC is the default on this platform
11083          # Common symbols not allowed in MH_DYLIB files
11084          case $cc_basename in
11085            xlc*)
11086            lt_prog_compiler_pic_CXX='-qnocommon'
11087            lt_prog_compiler_wl_CXX='-Wl,'
11088            ;;
11089          esac
11090        ;;
11091       dgux*)
11092         case $cc_basename in
11093           ec++*)
11094             lt_prog_compiler_pic_CXX='-KPIC'
11095             ;;
11096           ghcx*)
11097             # Green Hills C++ Compiler
11098             lt_prog_compiler_pic_CXX='-pic'
11099             ;;
11100           *)
11101             ;;
11102         esac
11103         ;;
11104       freebsd* | kfreebsd*-gnu | dragonfly*)
11105         # FreeBSD uses GNU C++
11106         ;;
11107       hpux9* | hpux10* | hpux11*)
11108         case $cc_basename in
11109           CC*)
11110             lt_prog_compiler_wl_CXX='-Wl,'
11111             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11112             if test "$host_cpu" != ia64; then
11113               lt_prog_compiler_pic_CXX='+Z'
11114             fi
11115             ;;
11116           aCC*)
11117             lt_prog_compiler_wl_CXX='-Wl,'
11118             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11119             case "$host_cpu" in
11120             hppa*64*|ia64*)
11121               # +Z the default
11122               ;;
11123             *)
11124               lt_prog_compiler_pic_CXX='+Z'
11125               ;;
11126             esac
11127             ;;
11128           *)
11129             ;;
11130         esac
11131         ;;
11132       irix5* | irix6* | nonstopux*)
11133         case $cc_basename in
11134           CC*)
11135             lt_prog_compiler_wl_CXX='-Wl,'
11136             lt_prog_compiler_static_CXX='-non_shared'
11137             # CC pic flag -KPIC is the default.
11138             ;;
11139           *)
11140             ;;
11141         esac
11142         ;;
11143       linux*)
11144         case $cc_basename in
11145           KCC*)
11146             # KAI C++ Compiler
11147             lt_prog_compiler_wl_CXX='--backend -Wl,'
11148             lt_prog_compiler_pic_CXX='-fPIC'
11149             ;;
11150           icpc* | ecpc*)
11151             # Intel C++
11152             lt_prog_compiler_wl_CXX='-Wl,'
11153             lt_prog_compiler_pic_CXX='-KPIC'
11154             lt_prog_compiler_static_CXX='-static'
11155             ;;
11156           pgCC*)
11157             # Portland Group C++ compiler.
11158             lt_prog_compiler_wl_CXX='-Wl,'
11159             lt_prog_compiler_pic_CXX='-fpic'
11160             lt_prog_compiler_static_CXX='-static'
11161             ;;
11162           cxx*)
11163             # Compaq C++
11164             # Make sure the PIC flag is empty.  It appears that all Alpha
11165             # Linux and Compaq Tru64 Unix objects are PIC.
11166             lt_prog_compiler_pic_CXX=
11167             lt_prog_compiler_static_CXX='-non_shared'
11168             ;;
11169           *)
11170             ;;
11171         esac
11172         ;;
11173       lynxos*)
11174         ;;
11175       m88k*)
11176         ;;
11177       mvs*)
11178         case $cc_basename in
11179           cxx*)
11180             lt_prog_compiler_pic_CXX='-W c,exportall'
11181             ;;
11182           *)
11183             ;;
11184         esac
11185         ;;
11186       netbsd*)
11187         ;;
11188       osf3* | osf4* | osf5*)
11189         case $cc_basename in
11190           KCC*)
11191             lt_prog_compiler_wl_CXX='--backend -Wl,'
11192             ;;
11193           RCC*)
11194             # Rational C++ 2.4.1
11195             lt_prog_compiler_pic_CXX='-pic'
11196             ;;
11197           cxx*)
11198             # Digital/Compaq C++
11199             lt_prog_compiler_wl_CXX='-Wl,'
11200             # Make sure the PIC flag is empty.  It appears that all Alpha
11201             # Linux and Compaq Tru64 Unix objects are PIC.
11202             lt_prog_compiler_pic_CXX=
11203             lt_prog_compiler_static_CXX='-non_shared'
11204             ;;
11205           *)
11206             ;;
11207         esac
11208         ;;
11209       psos*)
11210         ;;
11211       sco*)
11212         case $cc_basename in
11213           CC*)
11214             lt_prog_compiler_pic_CXX='-fPIC'
11215             ;;
11216           *)
11217             ;;
11218         esac
11219         ;;
11220       solaris*)
11221         case $cc_basename in
11222           CC*)
11223             # Sun C++ 4.2, 5.x and Centerline C++
11224             lt_prog_compiler_pic_CXX='-KPIC'
11225             lt_prog_compiler_static_CXX='-Bstatic'
11226             lt_prog_compiler_wl_CXX='-Qoption ld '
11227             ;;
11228           gcx*)
11229             # Green Hills C++ Compiler
11230             lt_prog_compiler_pic_CXX='-PIC'
11231             ;;
11232           *)
11233             ;;
11234         esac
11235         ;;
11236       sunos4*)
11237         case $cc_basename in
11238           CC*)
11239             # Sun C++ 4.x
11240             lt_prog_compiler_pic_CXX='-pic'
11241             lt_prog_compiler_static_CXX='-Bstatic'
11242             ;;
11243           lcc*)
11244             # Lucid
11245             lt_prog_compiler_pic_CXX='-pic'
11246             ;;
11247           *)
11248             ;;
11249         esac
11250         ;;
11251       tandem*)
11252         case $cc_basename in
11253           NCC*)
11254             # NonStop-UX NCC 3.20
11255             lt_prog_compiler_pic_CXX='-KPIC'
11256             ;;
11257           *)
11258             ;;
11259         esac
11260         ;;
11261       unixware*)
11262         ;;
11263       vxworks*)
11264         ;;
11265       *)
11266         lt_prog_compiler_can_build_shared_CXX=no
11267         ;;
11268     esac
11269   fi
11270
11271 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11272 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11273
11274 #
11275 # Check to make sure the PIC flag actually works.
11276 #
11277 if test -n "$lt_prog_compiler_pic_CXX"; then
11278
11279 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11280 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11281 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11282   echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284   lt_prog_compiler_pic_works_CXX=no
11285   ac_outfile=conftest.$ac_objext
11286    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11287    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11288    # Insert the option either (1) after the last *FLAGS variable, or
11289    # (2) before a word containing "conftest.", or (3) at the end.
11290    # Note that $ac_compile itself does not contain backslashes and begins
11291    # with a dollar sign (not a hyphen), so the echo should work correctly.
11292    # The option is referenced via a variable to avoid confusing sed.
11293    lt_compile=`echo "$ac_compile" | $SED \
11294    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11295    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11296    -e 's:$: $lt_compiler_flag:'`
11297    (eval echo "\"\$as_me:11297: $lt_compile\"" >&5)
11298    (eval "$lt_compile" 2>conftest.err)
11299    ac_status=$?
11300    cat conftest.err >&5
11301    echo "$as_me:11301: \$? = $ac_status" >&5
11302    if (exit $ac_status) && test -s "$ac_outfile"; then
11303      # The compiler can only warn and ignore the option if not recognized
11304      # So say no if there are warnings other than the usual output.
11305      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11306      $SED '/^$/d' conftest.err >conftest.er2
11307      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11308        lt_prog_compiler_pic_works_CXX=yes
11309      fi
11310    fi
11311    $rm conftest*
11312
11313 fi
11314 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11315 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11316
11317 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11318     case $lt_prog_compiler_pic_CXX in
11319      "" | " "*) ;;
11320      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11321      esac
11322 else
11323     lt_prog_compiler_pic_CXX=
11324      lt_prog_compiler_can_build_shared_CXX=no
11325 fi
11326
11327 fi
11328 case "$host_os" in
11329   # For platforms which do not support PIC, -DPIC is meaningless:
11330   *djgpp*)
11331     lt_prog_compiler_pic_CXX=
11332     ;;
11333   *)
11334     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11335     ;;
11336 esac
11337
11338 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11339 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11340 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11341   echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343   lt_cv_prog_compiler_c_o_CXX=no
11344    $rm -r conftest 2>/dev/null
11345    mkdir conftest
11346    cd conftest
11347    mkdir out
11348    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11349
11350    lt_compiler_flag="-o out/conftest2.$ac_objext"
11351    # Insert the option either (1) after the last *FLAGS variable, or
11352    # (2) before a word containing "conftest.", or (3) at the end.
11353    # Note that $ac_compile itself does not contain backslashes and begins
11354    # with a dollar sign (not a hyphen), so the echo should work correctly.
11355    lt_compile=`echo "$ac_compile" | $SED \
11356    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11358    -e 's:$: $lt_compiler_flag:'`
11359    (eval echo "\"\$as_me:11359: $lt_compile\"" >&5)
11360    (eval "$lt_compile" 2>out/conftest.err)
11361    ac_status=$?
11362    cat out/conftest.err >&5
11363    echo "$as_me:11363: \$? = $ac_status" >&5
11364    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11365    then
11366      # The compiler can only warn and ignore the option if not recognized
11367      # So say no if there are warnings
11368      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11369      $SED '/^$/d' out/conftest.err >out/conftest.er2
11370      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11371        lt_cv_prog_compiler_c_o_CXX=yes
11372      fi
11373    fi
11374    chmod u+w .
11375    $rm conftest*
11376    # SGI C++ compiler will create directory out/ii_files/ for
11377    # template instantiation
11378    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11379    $rm out/* && rmdir out
11380    cd ..
11381    rmdir conftest
11382    $rm conftest*
11383
11384 fi
11385 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11386 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11387
11388
11389 hard_links="nottested"
11390 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11391   # do not overwrite the value of need_locks provided by the user
11392   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11393 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11394   hard_links=yes
11395   $rm conftest*
11396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11397   touch conftest.a
11398   ln conftest.a conftest.b 2>&5 || hard_links=no
11399   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11400   echo "$as_me:$LINENO: result: $hard_links" >&5
11401 echo "${ECHO_T}$hard_links" >&6
11402   if test "$hard_links" = no; then
11403     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11404 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11405     need_locks=warn
11406   fi
11407 else
11408   need_locks=no
11409 fi
11410
11411 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11412 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11413
11414   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11415   case $host_os in
11416   aix4* | aix5*)
11417     # If we're using GNU nm, then we don't want the "-C" option.
11418     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11419     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11420       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'
11421     else
11422       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'
11423     fi
11424     ;;
11425   pw32*)
11426     export_symbols_cmds_CXX="$ltdll_cmds"
11427   ;;
11428   cygwin* | mingw*)
11429     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11430   ;;
11431   *)
11432     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11433   ;;
11434   esac
11435
11436 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11437 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11438 test "$ld_shlibs_CXX" = no && can_build_shared=no
11439
11440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11441 if test "$GCC" = yes; then
11442   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11443 fi
11444
11445 #
11446 # Do we need to explicitly link libc?
11447 #
11448 case "x$archive_cmds_need_lc_CXX" in
11449 x|xyes)
11450   # Assume -lc should be added
11451   archive_cmds_need_lc_CXX=yes
11452
11453   if test "$enable_shared" = yes && test "$GCC" = yes; then
11454     case $archive_cmds_CXX in
11455     *'~'*)
11456       # FIXME: we may have to deal with multi-command sequences.
11457       ;;
11458     '$CC '*)
11459       # Test whether the compiler implicitly links with -lc since on some
11460       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11461       # to ld, don't add -lc before -lgcc.
11462       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11463 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11464       $rm conftest*
11465       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11466
11467       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11468   (eval $ac_compile) 2>&5
11469   ac_status=$?
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); } 2>conftest.err; then
11472         soname=conftest
11473         lib=conftest
11474         libobjs=conftest.$ac_objext
11475         deplibs=
11476         wl=$lt_prog_compiler_wl_CXX
11477         compiler_flags=-v
11478         linker_flags=-v
11479         verstring=
11480         output_objdir=.
11481         libname=conftest
11482         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11483         allow_undefined_flag_CXX=
11484         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11485   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); }
11489         then
11490           archive_cmds_need_lc_CXX=no
11491         else
11492           archive_cmds_need_lc_CXX=yes
11493         fi
11494         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11495       else
11496         cat conftest.err 1>&5
11497       fi
11498       $rm conftest*
11499       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11500 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11501       ;;
11502     esac
11503   fi
11504   ;;
11505 esac
11506
11507 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11508 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11509 library_names_spec=
11510 libname_spec='lib$name'
11511 soname_spec=
11512 shrext_cmds=".so"
11513 postinstall_cmds=
11514 postuninstall_cmds=
11515 finish_cmds=
11516 finish_eval=
11517 shlibpath_var=
11518 shlibpath_overrides_runpath=unknown
11519 version_type=none
11520 dynamic_linker="$host_os ld.so"
11521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11522 if test "$GCC" = yes; then
11523   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11524   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11525     # if the path contains ";" then we assume it to be the separator
11526     # otherwise default to the standard path separator (i.e. ":") - it is
11527     # assumed that no part of a normal pathname contains ";" but that should
11528     # okay in the real world where ";" in dirpaths is itself problematic.
11529     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11530   else
11531     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11532   fi
11533 else
11534   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11535 fi
11536 need_lib_prefix=unknown
11537 hardcode_into_libs=no
11538
11539 # when you set need_version to no, make sure it does not cause -set_version
11540 # flags to be left without arguments
11541 need_version=unknown
11542
11543 case $host_os in
11544 aix3*)
11545   version_type=linux
11546   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11547   shlibpath_var=LIBPATH
11548
11549   # AIX 3 has no versioning support, so we append a major version to the name.
11550   soname_spec='${libname}${release}${shared_ext}$major'
11551   ;;
11552
11553 aix4* | aix5*)
11554   version_type=linux
11555   need_lib_prefix=no
11556   need_version=no
11557   hardcode_into_libs=yes
11558   if test "$host_cpu" = ia64; then
11559     # AIX 5 supports IA64
11560     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11561     shlibpath_var=LD_LIBRARY_PATH
11562   else
11563     # With GCC up to 2.95.x, collect2 would create an import file
11564     # for dependence libraries.  The import file would start with
11565     # the line `#! .'.  This would cause the generated library to
11566     # depend on `.', always an invalid library.  This was fixed in
11567     # development snapshots of GCC prior to 3.0.
11568     case $host_os in
11569       aix4 | aix4.[01] | aix4.[01].*)
11570       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11571            echo ' yes '
11572            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11573         :
11574       else
11575         can_build_shared=no
11576       fi
11577       ;;
11578     esac
11579     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11580     # soname into executable. Probably we can add versioning support to
11581     # collect2, so additional links can be useful in future.
11582     if test "$aix_use_runtimelinking" = yes; then
11583       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11584       # instead of lib<name>.a to let people know that these are not
11585       # typical AIX shared libraries.
11586       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587     else
11588       # We preserve .a as extension for shared libraries through AIX4.2
11589       # and later when we are not doing run time linking.
11590       library_names_spec='${libname}${release}.a $libname.a'
11591       soname_spec='${libname}${release}${shared_ext}$major'
11592     fi
11593     shlibpath_var=LIBPATH
11594   fi
11595   ;;
11596
11597 amigaos*)
11598   library_names_spec='$libname.ixlibrary $libname.a'
11599   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11600   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'
11601   ;;
11602
11603 beos*)
11604   library_names_spec='${libname}${shared_ext}'
11605   dynamic_linker="$host_os ld.so"
11606   shlibpath_var=LIBRARY_PATH
11607   ;;
11608
11609 bsdi[45]*)
11610   version_type=linux
11611   need_version=no
11612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613   soname_spec='${libname}${release}${shared_ext}$major'
11614   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11615   shlibpath_var=LD_LIBRARY_PATH
11616   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11617   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11618   # the default ld.so.conf also contains /usr/contrib/lib and
11619   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11620   # libtool to hard-code these into programs
11621   ;;
11622
11623 cygwin* | mingw* | pw32*)
11624   version_type=windows
11625   shrext_cmds=".dll"
11626   need_version=no
11627   need_lib_prefix=no
11628
11629   case $GCC,$host_os in
11630   yes,cygwin* | yes,mingw* | yes,pw32*)
11631     library_names_spec='$libname.dll.a'
11632     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11633     postinstall_cmds='base_file=`basename \${file}`~
11634       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11635       dldir=$destdir/`dirname \$dlpath`~
11636       test -d \$dldir || mkdir -p \$dldir~
11637       $install_prog $dir/$dlname \$dldir/$dlname'
11638     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11639       dlpath=$dir/\$dldll~
11640        $rm \$dlpath'
11641     shlibpath_overrides_runpath=yes
11642
11643     case $host_os in
11644     cygwin*)
11645       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11646       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11647       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11648       ;;
11649     mingw*)
11650       # MinGW DLLs use traditional 'lib' prefix
11651       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11652       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11653       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11654         # It is most probably a Windows format PATH printed by
11655         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11656         # path with ; separators, and with drive letters. We can handle the
11657         # drive letters (cygwin fileutils understands them), so leave them,
11658         # especially as we might pass files found there to a mingw objdump,
11659         # which wouldn't understand a cygwinified path. Ahh.
11660         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11661       else
11662         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11663       fi
11664       ;;
11665     pw32*)
11666       # pw32 DLLs use 'pw' prefix rather than 'lib'
11667       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11668       ;;
11669     esac
11670     ;;
11671
11672   *)
11673     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11674     ;;
11675   esac
11676   dynamic_linker='Win32 ld.exe'
11677   # FIXME: first we should search . and the directory the executable is in
11678   shlibpath_var=PATH
11679   ;;
11680
11681 darwin* | rhapsody*)
11682   dynamic_linker="$host_os dyld"
11683   version_type=darwin
11684   need_lib_prefix=no
11685   need_version=no
11686   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11687   soname_spec='${libname}${release}${major}$shared_ext'
11688   shlibpath_overrides_runpath=yes
11689   shlibpath_var=DYLD_LIBRARY_PATH
11690   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11691   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11692   if test "$GCC" = yes; then
11693     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"`
11694   else
11695     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11696   fi
11697   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11698   ;;
11699
11700 dgux*)
11701   version_type=linux
11702   need_lib_prefix=no
11703   need_version=no
11704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11705   soname_spec='${libname}${release}${shared_ext}$major'
11706   shlibpath_var=LD_LIBRARY_PATH
11707   ;;
11708
11709 freebsd1*)
11710   dynamic_linker=no
11711   ;;
11712
11713 kfreebsd*-gnu)
11714   version_type=linux
11715   need_lib_prefix=no
11716   need_version=no
11717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11718   soname_spec='${libname}${release}${shared_ext}$major'
11719   shlibpath_var=LD_LIBRARY_PATH
11720   shlibpath_overrides_runpath=no
11721   hardcode_into_libs=yes
11722   dynamic_linker='GNU ld.so'
11723   ;;
11724
11725 freebsd* | dragonfly*)
11726   # DragonFly does not have aout.  When/if they implement a new
11727   # versioning mechanism, adjust this.
11728   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11729   version_type=freebsd-$objformat
11730   case $version_type in
11731     freebsd-elf*)
11732       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11733       need_version=no
11734       need_lib_prefix=no
11735       ;;
11736     freebsd-*)
11737       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11738       need_version=yes
11739       ;;
11740   esac
11741   shlibpath_var=LD_LIBRARY_PATH
11742   case $host_os in
11743   freebsd2*)
11744     shlibpath_overrides_runpath=yes
11745     ;;
11746   freebsd3.[01]* | freebsdelf3.[01]*)
11747     shlibpath_overrides_runpath=yes
11748     hardcode_into_libs=yes
11749     ;;
11750   *) # from 3.2 on
11751     shlibpath_overrides_runpath=no
11752     hardcode_into_libs=yes
11753     ;;
11754   esac
11755   ;;
11756
11757 gnu*)
11758   version_type=linux
11759   need_lib_prefix=no
11760   need_version=no
11761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11762   soname_spec='${libname}${release}${shared_ext}$major'
11763   shlibpath_var=LD_LIBRARY_PATH
11764   hardcode_into_libs=yes
11765   ;;
11766
11767 hpux9* | hpux10* | hpux11*)
11768   # Give a soname corresponding to the major version so that dld.sl refuses to
11769   # link against other versions.
11770   version_type=sunos
11771   need_lib_prefix=no
11772   need_version=no
11773   case "$host_cpu" in
11774   ia64*)
11775     shrext_cmds='.so'
11776     hardcode_into_libs=yes
11777     dynamic_linker="$host_os dld.so"
11778     shlibpath_var=LD_LIBRARY_PATH
11779     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781     soname_spec='${libname}${release}${shared_ext}$major'
11782     if test "X$HPUX_IA64_MODE" = X32; then
11783       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11784     else
11785       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11786     fi
11787     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11788     ;;
11789    hppa*64*)
11790      shrext_cmds='.sl'
11791      hardcode_into_libs=yes
11792      dynamic_linker="$host_os dld.sl"
11793      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11794      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11795      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796      soname_spec='${libname}${release}${shared_ext}$major'
11797      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11798      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11799      ;;
11800    *)
11801     shrext_cmds='.sl'
11802     dynamic_linker="$host_os dld.sl"
11803     shlibpath_var=SHLIB_PATH
11804     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806     soname_spec='${libname}${release}${shared_ext}$major'
11807     ;;
11808   esac
11809   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11810   postinstall_cmds='chmod 555 $lib'
11811   ;;
11812
11813 irix5* | irix6* | nonstopux*)
11814   case $host_os in
11815     nonstopux*) version_type=nonstopux ;;
11816     *)
11817         if test "$lt_cv_prog_gnu_ld" = yes; then
11818                 version_type=linux
11819         else
11820                 version_type=irix
11821         fi ;;
11822   esac
11823   need_lib_prefix=no
11824   need_version=no
11825   soname_spec='${libname}${release}${shared_ext}$major'
11826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11827   case $host_os in
11828   irix5* | nonstopux*)
11829     libsuff= shlibsuff=
11830     ;;
11831   *)
11832     case $LD in # libtool.m4 will add one of these switches to LD
11833     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11834       libsuff= shlibsuff= libmagic=32-bit;;
11835     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11836       libsuff=32 shlibsuff=N32 libmagic=N32;;
11837     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11838       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11839     *) libsuff= shlibsuff= libmagic=never-match;;
11840     esac
11841     ;;
11842   esac
11843   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11844   shlibpath_overrides_runpath=no
11845   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11846   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11847   hardcode_into_libs=yes
11848   ;;
11849
11850 # No shared lib support for Linux oldld, aout, or coff.
11851 linux*oldld* | linux*aout* | linux*coff*)
11852   dynamic_linker=no
11853   ;;
11854
11855 # This must be Linux ELF.
11856 linux*)
11857   version_type=linux
11858   need_lib_prefix=no
11859   need_version=no
11860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861   soname_spec='${libname}${release}${shared_ext}$major'
11862   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11863   shlibpath_var=LD_LIBRARY_PATH
11864   shlibpath_overrides_runpath=no
11865   # This implies no fast_install, which is unacceptable.
11866   # Some rework will be needed to allow for fast_install
11867   # before this can be enabled.
11868   hardcode_into_libs=yes
11869
11870   # Append ld.so.conf contents to the search path
11871   if test -f /etc/ld.so.conf; then
11872     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; shopt -s nullglob; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,     ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11873     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11874   fi
11875
11876   # We used to test for /lib/ld.so.1 and disable shared libraries on
11877   # powerpc, because MkLinux only supported shared libraries with the
11878   # GNU dynamic linker.  Since this was broken with cross compilers,
11879   # most powerpc-linux boxes support dynamic linking these days and
11880   # people can always --disable-shared, the test was removed, and we
11881   # assume the GNU/Linux dynamic linker is in use.
11882   dynamic_linker='GNU/Linux ld.so'
11883   ;;
11884
11885 knetbsd*-gnu)
11886   version_type=linux
11887   need_lib_prefix=no
11888   need_version=no
11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11890   soname_spec='${libname}${release}${shared_ext}$major'
11891   shlibpath_var=LD_LIBRARY_PATH
11892   shlibpath_overrides_runpath=no
11893   hardcode_into_libs=yes
11894   dynamic_linker='GNU ld.so'
11895   ;;
11896
11897 netbsd*)
11898   version_type=sunos
11899   need_lib_prefix=no
11900   need_version=no
11901   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11903     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11904     dynamic_linker='NetBSD (a.out) ld.so'
11905   else
11906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11907     soname_spec='${libname}${release}${shared_ext}$major'
11908     dynamic_linker='NetBSD ld.elf_so'
11909   fi
11910   shlibpath_var=LD_LIBRARY_PATH
11911   shlibpath_overrides_runpath=yes
11912   hardcode_into_libs=yes
11913   ;;
11914
11915 newsos6)
11916   version_type=linux
11917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918   shlibpath_var=LD_LIBRARY_PATH
11919   shlibpath_overrides_runpath=yes
11920   ;;
11921
11922 nto-qnx*)
11923   version_type=linux
11924   need_lib_prefix=no
11925   need_version=no
11926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927   soname_spec='${libname}${release}${shared_ext}$major'
11928   shlibpath_var=LD_LIBRARY_PATH
11929   shlibpath_overrides_runpath=yes
11930   ;;
11931
11932 openbsd*)
11933   version_type=sunos
11934   need_lib_prefix=no
11935   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11936   case $host_os in
11937     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11938     *)                         need_version=no  ;;
11939   esac
11940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11941   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11942   shlibpath_var=LD_LIBRARY_PATH
11943   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11944     case $host_os in
11945       openbsd2.[89] | openbsd2.[89].*)
11946         shlibpath_overrides_runpath=no
11947         ;;
11948       *)
11949         shlibpath_overrides_runpath=yes
11950         ;;
11951       esac
11952   else
11953     shlibpath_overrides_runpath=yes
11954   fi
11955   ;;
11956
11957 os2*)
11958   libname_spec='$name'
11959   shrext_cmds=".dll"
11960   need_lib_prefix=no
11961   library_names_spec='$libname${shared_ext} $libname.a'
11962   dynamic_linker='OS/2 ld.exe'
11963   shlibpath_var=LIBPATH
11964   ;;
11965
11966 osf3* | osf4* | osf5*)
11967   version_type=osf
11968   need_lib_prefix=no
11969   need_version=no
11970   soname_spec='${libname}${release}${shared_ext}$major'
11971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11972   shlibpath_var=LD_LIBRARY_PATH
11973   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11974   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11975   ;;
11976
11977 sco3.2v5*)
11978   version_type=osf
11979   soname_spec='${libname}${release}${shared_ext}$major'
11980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11981   shlibpath_var=LD_LIBRARY_PATH
11982   ;;
11983
11984 solaris*)
11985   version_type=linux
11986   need_lib_prefix=no
11987   need_version=no
11988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11989   soname_spec='${libname}${release}${shared_ext}$major'
11990   shlibpath_var=LD_LIBRARY_PATH
11991   shlibpath_overrides_runpath=yes
11992   hardcode_into_libs=yes
11993   # ldd complains unless libraries are executable
11994   postinstall_cmds='chmod +x $lib'
11995   ;;
11996
11997 sunos4*)
11998   version_type=sunos
11999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12000   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12001   shlibpath_var=LD_LIBRARY_PATH
12002   shlibpath_overrides_runpath=yes
12003   if test "$with_gnu_ld" = yes; then
12004     need_lib_prefix=no
12005   fi
12006   need_version=yes
12007   ;;
12008
12009 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12010   version_type=linux
12011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012   soname_spec='${libname}${release}${shared_ext}$major'
12013   shlibpath_var=LD_LIBRARY_PATH
12014   case $host_vendor in
12015     sni)
12016       shlibpath_overrides_runpath=no
12017       need_lib_prefix=no
12018       export_dynamic_flag_spec='${wl}-Blargedynsym'
12019       runpath_var=LD_RUN_PATH
12020       ;;
12021     siemens)
12022       need_lib_prefix=no
12023       ;;
12024     motorola)
12025       need_lib_prefix=no
12026       need_version=no
12027       shlibpath_overrides_runpath=no
12028       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12029       ;;
12030   esac
12031   ;;
12032
12033 sysv4*MP*)
12034   if test -d /usr/nec ;then
12035     version_type=linux
12036     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12037     soname_spec='$libname${shared_ext}.$major'
12038     shlibpath_var=LD_LIBRARY_PATH
12039   fi
12040   ;;
12041
12042 uts4*)
12043   version_type=linux
12044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12045   soname_spec='${libname}${release}${shared_ext}$major'
12046   shlibpath_var=LD_LIBRARY_PATH
12047   ;;
12048
12049 *)
12050   dynamic_linker=no
12051   ;;
12052 esac
12053 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12054 echo "${ECHO_T}$dynamic_linker" >&6
12055 test "$dynamic_linker" = no && can_build_shared=no
12056
12057 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12058 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12059 hardcode_action_CXX=
12060 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12061    test -n "$runpath_var_CXX" || \
12062    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12063
12064   # We can hardcode non-existant directories.
12065   if test "$hardcode_direct_CXX" != no &&
12066      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12067      # have to relink, otherwise we might link with an installed library
12068      # when we should be linking with a yet-to-be-installed one
12069      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12070      test "$hardcode_minus_L_CXX" != no; then
12071     # Linking always hardcodes the temporary library directory.
12072     hardcode_action_CXX=relink
12073   else
12074     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12075     hardcode_action_CXX=immediate
12076   fi
12077 else
12078   # We cannot hardcode anything, or else we can only hardcode existing
12079   # directories.
12080   hardcode_action_CXX=unsupported
12081 fi
12082 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12083 echo "${ECHO_T}$hardcode_action_CXX" >&6
12084
12085 if test "$hardcode_action_CXX" = relink; then
12086   # Fast installation is not supported
12087   enable_fast_install=no
12088 elif test "$shlibpath_overrides_runpath" = yes ||
12089      test "$enable_shared" = no; then
12090   # Fast installation is not necessary
12091   enable_fast_install=needless
12092 fi
12093
12094 striplib=
12095 old_striplib=
12096 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12097 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12098 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12099   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12100   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12101   echo "$as_me:$LINENO: result: yes" >&5
12102 echo "${ECHO_T}yes" >&6
12103 else
12104 # FIXME - insert some real tests, host_os isn't really good enough
12105   case $host_os in
12106    darwin*)
12107        if test -n "$STRIP" ; then
12108          striplib="$STRIP -x"
12109          echo "$as_me:$LINENO: result: yes" >&5
12110 echo "${ECHO_T}yes" >&6
12111        else
12112   echo "$as_me:$LINENO: result: no" >&5
12113 echo "${ECHO_T}no" >&6
12114 fi
12115        ;;
12116    *)
12117   echo "$as_me:$LINENO: result: no" >&5
12118 echo "${ECHO_T}no" >&6
12119     ;;
12120   esac
12121 fi
12122
12123 if test "x$enable_dlopen" != xyes; then
12124   enable_dlopen=unknown
12125   enable_dlopen_self=unknown
12126   enable_dlopen_self_static=unknown
12127 else
12128   lt_cv_dlopen=no
12129   lt_cv_dlopen_libs=
12130
12131   case $host_os in
12132   beos*)
12133     lt_cv_dlopen="load_add_on"
12134     lt_cv_dlopen_libs=
12135     lt_cv_dlopen_self=yes
12136     ;;
12137
12138   mingw* | pw32*)
12139     lt_cv_dlopen="LoadLibrary"
12140     lt_cv_dlopen_libs=
12141    ;;
12142
12143   cygwin*)
12144     lt_cv_dlopen="dlopen"
12145     lt_cv_dlopen_libs=
12146    ;;
12147
12148   darwin*)
12149   # if libdl is installed we need to link against it
12150     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12151 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12152 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   ac_check_lib_save_LIBS=$LIBS
12156 LIBS="-ldl  $LIBS"
12157 cat >conftest.$ac_ext <<_ACEOF
12158 /* confdefs.h.  */
12159 _ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h.  */
12163
12164 /* Override any gcc2 internal prototype to avoid an error.  */
12165 #ifdef __cplusplus
12166 extern "C"
12167 #endif
12168 /* We use char because int might match the return type of a gcc2
12169    builtin and then its argument prototype would still apply.  */
12170 char dlopen ();
12171 int
12172 main ()
12173 {
12174 dlopen ();
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181   (eval $ac_link) 2>conftest.er1
12182   ac_status=$?
12183   grep -v '^ *+' conftest.er1 >conftest.err
12184   rm -f conftest.er1
12185   cat conftest.err >&5
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } &&
12188          { ac_try='test -z "$ac_cxx_werror_flag"
12189                          || test ! -s conftest.err'
12190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191   (eval $ac_try) 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }; } &&
12195          { ac_try='test -s conftest$ac_exeext'
12196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197   (eval $ac_try) 2>&5
12198   ac_status=$?
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); }; }; then
12201   ac_cv_lib_dl_dlopen=yes
12202 else
12203   echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12205
12206 ac_cv_lib_dl_dlopen=no
12207 fi
12208 rm -f conftest.err conftest.$ac_objext \
12209       conftest$ac_exeext conftest.$ac_ext
12210 LIBS=$ac_check_lib_save_LIBS
12211 fi
12212 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12213 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12214 if test $ac_cv_lib_dl_dlopen = yes; then
12215   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12216 else
12217
12218     lt_cv_dlopen="dyld"
12219     lt_cv_dlopen_libs=
12220     lt_cv_dlopen_self=yes
12221
12222 fi
12223
12224    ;;
12225
12226   *)
12227     echo "$as_me:$LINENO: checking for shl_load" >&5
12228 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12229 if test "${ac_cv_func_shl_load+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h.  */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h.  */
12238 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12240 #define shl_load innocuous_shl_load
12241
12242 /* System header to define __stub macros and hopefully few prototypes,
12243     which can conflict with char shl_load (); below.
12244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12245     <limits.h> exists even on freestanding compilers.  */
12246
12247 #ifdef __STDC__
12248 # include <limits.h>
12249 #else
12250 # include <assert.h>
12251 #endif
12252
12253 #undef shl_load
12254
12255 /* Override any gcc2 internal prototype to avoid an error.  */
12256 #ifdef __cplusplus
12257 extern "C"
12258 {
12259 #endif
12260 /* We use char because int might match the return type of a gcc2
12261    builtin and then its argument prototype would still apply.  */
12262 char shl_load ();
12263 /* The GNU C library defines this for functions which it implements
12264     to always fail with ENOSYS.  Some functions are actually named
12265     something starting with __ and the normal name is an alias.  */
12266 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12267 choke me
12268 #else
12269 char (*f) () = shl_load;
12270 #endif
12271 #ifdef __cplusplus
12272 }
12273 #endif
12274
12275 int
12276 main ()
12277 {
12278 return f != shl_load;
12279   ;
12280   return 0;
12281 }
12282 _ACEOF
12283 rm -f conftest.$ac_objext conftest$ac_exeext
12284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12285   (eval $ac_link) 2>conftest.er1
12286   ac_status=$?
12287   grep -v '^ *+' conftest.er1 >conftest.err
12288   rm -f conftest.er1
12289   cat conftest.err >&5
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); } &&
12292          { ac_try='test -z "$ac_cxx_werror_flag"
12293                          || test ! -s conftest.err'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; } &&
12299          { ac_try='test -s conftest$ac_exeext'
12300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301   (eval $ac_try) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; }; then
12305   ac_cv_func_shl_load=yes
12306 else
12307   echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310 ac_cv_func_shl_load=no
12311 fi
12312 rm -f conftest.err conftest.$ac_objext \
12313       conftest$ac_exeext conftest.$ac_ext
12314 fi
12315 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12316 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12317 if test $ac_cv_func_shl_load = yes; then
12318   lt_cv_dlopen="shl_load"
12319 else
12320   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12321 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12322 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-ldld  $LIBS"
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h.  */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h.  */
12333
12334 /* Override any gcc2 internal prototype to avoid an error.  */
12335 #ifdef __cplusplus
12336 extern "C"
12337 #endif
12338 /* We use char because int might match the return type of a gcc2
12339    builtin and then its argument prototype would still apply.  */
12340 char shl_load ();
12341 int
12342 main ()
12343 {
12344 shl_load ();
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351   (eval $ac_link) 2>conftest.er1
12352   ac_status=$?
12353   grep -v '^ *+' conftest.er1 >conftest.err
12354   rm -f conftest.er1
12355   cat conftest.err >&5
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); } &&
12358          { ac_try='test -z "$ac_cxx_werror_flag"
12359                          || test ! -s conftest.err'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; } &&
12365          { ac_try='test -s conftest$ac_exeext'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; }; then
12371   ac_cv_lib_dld_shl_load=yes
12372 else
12373   echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375
12376 ac_cv_lib_dld_shl_load=no
12377 fi
12378 rm -f conftest.err conftest.$ac_objext \
12379       conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12381 fi
12382 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12383 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12384 if test $ac_cv_lib_dld_shl_load = yes; then
12385   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12386 else
12387   echo "$as_me:$LINENO: checking for dlopen" >&5
12388 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12389 if test "${ac_cv_func_dlopen+set}" = set; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392   cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h.  */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h.  */
12398 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12400 #define dlopen innocuous_dlopen
12401
12402 /* System header to define __stub macros and hopefully few prototypes,
12403     which can conflict with char dlopen (); below.
12404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405     <limits.h> exists even on freestanding compilers.  */
12406
12407 #ifdef __STDC__
12408 # include <limits.h>
12409 #else
12410 # include <assert.h>
12411 #endif
12412
12413 #undef dlopen
12414
12415 /* Override any gcc2 internal prototype to avoid an error.  */
12416 #ifdef __cplusplus
12417 extern "C"
12418 {
12419 #endif
12420 /* We use char because int might match the return type of a gcc2
12421    builtin and then its argument prototype would still apply.  */
12422 char dlopen ();
12423 /* The GNU C library defines this for functions which it implements
12424     to always fail with ENOSYS.  Some functions are actually named
12425     something starting with __ and the normal name is an alias.  */
12426 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12427 choke me
12428 #else
12429 char (*f) () = dlopen;
12430 #endif
12431 #ifdef __cplusplus
12432 }
12433 #endif
12434
12435 int
12436 main ()
12437 {
12438 return f != dlopen;
12439   ;
12440   return 0;
12441 }
12442 _ACEOF
12443 rm -f conftest.$ac_objext conftest$ac_exeext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445   (eval $ac_link) 2>conftest.er1
12446   ac_status=$?
12447   grep -v '^ *+' conftest.er1 >conftest.err
12448   rm -f conftest.er1
12449   cat conftest.err >&5
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); } &&
12452          { ac_try='test -z "$ac_cxx_werror_flag"
12453                          || test ! -s conftest.err'
12454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455   (eval $ac_try) 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); }; } &&
12459          { ac_try='test -s conftest$ac_exeext'
12460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461   (eval $ac_try) 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); }; }; then
12465   ac_cv_func_dlopen=yes
12466 else
12467   echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12469
12470 ac_cv_func_dlopen=no
12471 fi
12472 rm -f conftest.err conftest.$ac_objext \
12473       conftest$ac_exeext conftest.$ac_ext
12474 fi
12475 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12476 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12477 if test $ac_cv_func_dlopen = yes; then
12478   lt_cv_dlopen="dlopen"
12479 else
12480   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12481 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12482 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12483   echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485   ac_check_lib_save_LIBS=$LIBS
12486 LIBS="-ldl  $LIBS"
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h.  */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h.  */
12493
12494 /* Override any gcc2 internal prototype to avoid an error.  */
12495 #ifdef __cplusplus
12496 extern "C"
12497 #endif
12498 /* We use char because int might match the return type of a gcc2
12499    builtin and then its argument prototype would still apply.  */
12500 char dlopen ();
12501 int
12502 main ()
12503 {
12504 dlopen ();
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 rm -f conftest.$ac_objext conftest$ac_exeext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12511   (eval $ac_link) 2>conftest.er1
12512   ac_status=$?
12513   grep -v '^ *+' conftest.er1 >conftest.err
12514   rm -f conftest.er1
12515   cat conftest.err >&5
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); } &&
12518          { ac_try='test -z "$ac_cxx_werror_flag"
12519                          || test ! -s conftest.err'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; } &&
12525          { ac_try='test -s conftest$ac_exeext'
12526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527   (eval $ac_try) 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); }; }; then
12531   ac_cv_lib_dl_dlopen=yes
12532 else
12533   echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536 ac_cv_lib_dl_dlopen=no
12537 fi
12538 rm -f conftest.err conftest.$ac_objext \
12539       conftest$ac_exeext conftest.$ac_ext
12540 LIBS=$ac_check_lib_save_LIBS
12541 fi
12542 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12543 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12544 if test $ac_cv_lib_dl_dlopen = yes; then
12545   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12546 else
12547   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12548 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12549 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12550   echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552   ac_check_lib_save_LIBS=$LIBS
12553 LIBS="-lsvld  $LIBS"
12554 cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h.  */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h.  */
12560
12561 /* Override any gcc2 internal prototype to avoid an error.  */
12562 #ifdef __cplusplus
12563 extern "C"
12564 #endif
12565 /* We use char because int might match the return type of a gcc2
12566    builtin and then its argument prototype would still apply.  */
12567 char dlopen ();
12568 int
12569 main ()
12570 {
12571 dlopen ();
12572   ;
12573   return 0;
12574 }
12575 _ACEOF
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12578   (eval $ac_link) 2>conftest.er1
12579   ac_status=$?
12580   grep -v '^ *+' conftest.er1 >conftest.err
12581   rm -f conftest.er1
12582   cat conftest.err >&5
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); } &&
12585          { ac_try='test -z "$ac_cxx_werror_flag"
12586                          || test ! -s conftest.err'
12587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588   (eval $ac_try) 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); }; } &&
12592          { ac_try='test -s conftest$ac_exeext'
12593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594   (eval $ac_try) 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }; }; then
12598   ac_cv_lib_svld_dlopen=yes
12599 else
12600   echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 ac_cv_lib_svld_dlopen=no
12604 fi
12605 rm -f conftest.err conftest.$ac_objext \
12606       conftest$ac_exeext conftest.$ac_ext
12607 LIBS=$ac_check_lib_save_LIBS
12608 fi
12609 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12610 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12611 if test $ac_cv_lib_svld_dlopen = yes; then
12612   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12613 else
12614   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12615 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12616 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   ac_check_lib_save_LIBS=$LIBS
12620 LIBS="-ldld  $LIBS"
12621 cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h.  */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h.  */
12627
12628 /* Override any gcc2 internal prototype to avoid an error.  */
12629 #ifdef __cplusplus
12630 extern "C"
12631 #endif
12632 /* We use char because int might match the return type of a gcc2
12633    builtin and then its argument prototype would still apply.  */
12634 char dld_link ();
12635 int
12636 main ()
12637 {
12638 dld_link ();
12639   ;
12640   return 0;
12641 }
12642 _ACEOF
12643 rm -f conftest.$ac_objext conftest$ac_exeext
12644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645   (eval $ac_link) 2>conftest.er1
12646   ac_status=$?
12647   grep -v '^ *+' conftest.er1 >conftest.err
12648   rm -f conftest.er1
12649   cat conftest.err >&5
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); } &&
12652          { ac_try='test -z "$ac_cxx_werror_flag"
12653                          || test ! -s conftest.err'
12654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655   (eval $ac_try) 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; } &&
12659          { ac_try='test -s conftest$ac_exeext'
12660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661   (eval $ac_try) 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); }; }; then
12665   ac_cv_lib_dld_dld_link=yes
12666 else
12667   echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12669
12670 ac_cv_lib_dld_dld_link=no
12671 fi
12672 rm -f conftest.err conftest.$ac_objext \
12673       conftest$ac_exeext conftest.$ac_ext
12674 LIBS=$ac_check_lib_save_LIBS
12675 fi
12676 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12677 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12678 if test $ac_cv_lib_dld_dld_link = yes; then
12679   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12680 fi
12681
12682
12683 fi
12684
12685
12686 fi
12687
12688
12689 fi
12690
12691
12692 fi
12693
12694
12695 fi
12696
12697     ;;
12698   esac
12699
12700   if test "x$lt_cv_dlopen" != xno; then
12701     enable_dlopen=yes
12702   else
12703     enable_dlopen=no
12704   fi
12705
12706   case $lt_cv_dlopen in
12707   dlopen)
12708     save_CPPFLAGS="$CPPFLAGS"
12709     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12710
12711     save_LDFLAGS="$LDFLAGS"
12712     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12713
12714     save_LIBS="$LIBS"
12715     LIBS="$lt_cv_dlopen_libs $LIBS"
12716
12717     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12718 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12719 if test "${lt_cv_dlopen_self+set}" = set; then
12720   echo $ECHO_N "(cached) $ECHO_C" >&6
12721 else
12722           if test "$cross_compiling" = yes; then :
12723   lt_cv_dlopen_self=cross
12724 else
12725   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12726   lt_status=$lt_dlunknown
12727   cat > conftest.$ac_ext <<EOF
12728 #line 12728 "configure"
12729 #include "confdefs.h"
12730
12731 #if HAVE_DLFCN_H
12732 #include <dlfcn.h>
12733 #endif
12734
12735 #include <stdio.h>
12736
12737 #ifdef RTLD_GLOBAL
12738 #  define LT_DLGLOBAL           RTLD_GLOBAL
12739 #else
12740 #  ifdef DL_GLOBAL
12741 #    define LT_DLGLOBAL         DL_GLOBAL
12742 #  else
12743 #    define LT_DLGLOBAL         0
12744 #  endif
12745 #endif
12746
12747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12748    find out it does not work in some platform. */
12749 #ifndef LT_DLLAZY_OR_NOW
12750 #  ifdef RTLD_LAZY
12751 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12752 #  else
12753 #    ifdef DL_LAZY
12754 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12755 #    else
12756 #      ifdef RTLD_NOW
12757 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12758 #      else
12759 #        ifdef DL_NOW
12760 #          define LT_DLLAZY_OR_NOW      DL_NOW
12761 #        else
12762 #          define LT_DLLAZY_OR_NOW      0
12763 #        endif
12764 #      endif
12765 #    endif
12766 #  endif
12767 #endif
12768
12769 #ifdef __cplusplus
12770 extern "C" void exit (int);
12771 #endif
12772
12773 void fnord() { int i=42;}
12774 int main ()
12775 {
12776   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12777   int status = $lt_dlunknown;
12778
12779   if (self)
12780     {
12781       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12782       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12783       /* dlclose (self); */
12784     }
12785
12786     exit (status);
12787 }
12788 EOF
12789   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12790   (eval $ac_link) 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12794     (./conftest; exit; ) 2>/dev/null
12795     lt_status=$?
12796     case x$lt_status in
12797       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12798       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12799       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12800     esac
12801   else :
12802     # compilation failed
12803     lt_cv_dlopen_self=no
12804   fi
12805 fi
12806 rm -fr conftest*
12807
12808
12809 fi
12810 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12811 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12812
12813     if test "x$lt_cv_dlopen_self" = xyes; then
12814       LDFLAGS="$LDFLAGS $link_static_flag"
12815       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12816 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12817 if test "${lt_cv_dlopen_self_static+set}" = set; then
12818   echo $ECHO_N "(cached) $ECHO_C" >&6
12819 else
12820           if test "$cross_compiling" = yes; then :
12821   lt_cv_dlopen_self_static=cross
12822 else
12823   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12824   lt_status=$lt_dlunknown
12825   cat > conftest.$ac_ext <<EOF
12826 #line 12826 "configure"
12827 #include "confdefs.h"
12828
12829 #if HAVE_DLFCN_H
12830 #include <dlfcn.h>
12831 #endif
12832
12833 #include <stdio.h>
12834
12835 #ifdef RTLD_GLOBAL
12836 #  define LT_DLGLOBAL           RTLD_GLOBAL
12837 #else
12838 #  ifdef DL_GLOBAL
12839 #    define LT_DLGLOBAL         DL_GLOBAL
12840 #  else
12841 #    define LT_DLGLOBAL         0
12842 #  endif
12843 #endif
12844
12845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12846    find out it does not work in some platform. */
12847 #ifndef LT_DLLAZY_OR_NOW
12848 #  ifdef RTLD_LAZY
12849 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12850 #  else
12851 #    ifdef DL_LAZY
12852 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12853 #    else
12854 #      ifdef RTLD_NOW
12855 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12856 #      else
12857 #        ifdef DL_NOW
12858 #          define LT_DLLAZY_OR_NOW      DL_NOW
12859 #        else
12860 #          define LT_DLLAZY_OR_NOW      0
12861 #        endif
12862 #      endif
12863 #    endif
12864 #  endif
12865 #endif
12866
12867 #ifdef __cplusplus
12868 extern "C" void exit (int);
12869 #endif
12870
12871 void fnord() { int i=42;}
12872 int main ()
12873 {
12874   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12875   int status = $lt_dlunknown;
12876
12877   if (self)
12878     {
12879       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12880       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12881       /* dlclose (self); */
12882     }
12883
12884     exit (status);
12885 }
12886 EOF
12887   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12888   (eval $ac_link) 2>&5
12889   ac_status=$?
12890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12892     (./conftest; exit; ) 2>/dev/null
12893     lt_status=$?
12894     case x$lt_status in
12895       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12896       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12897       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12898     esac
12899   else :
12900     # compilation failed
12901     lt_cv_dlopen_self_static=no
12902   fi
12903 fi
12904 rm -fr conftest*
12905
12906
12907 fi
12908 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12909 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12910     fi
12911
12912     CPPFLAGS="$save_CPPFLAGS"
12913     LDFLAGS="$save_LDFLAGS"
12914     LIBS="$save_LIBS"
12915     ;;
12916   esac
12917
12918   case $lt_cv_dlopen_self in
12919   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12920   *) enable_dlopen_self=unknown ;;
12921   esac
12922
12923   case $lt_cv_dlopen_self_static in
12924   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12925   *) enable_dlopen_self_static=unknown ;;
12926   esac
12927 fi
12928
12929
12930 # The else clause should only fire when bootstrapping the
12931 # libtool distribution, otherwise you forgot to ship ltmain.sh
12932 # with your package, and you will get complaints that there are
12933 # no rules to generate ltmain.sh.
12934 if test -f "$ltmain"; then
12935   # See if we are running on zsh, and set the options which allow our commands through
12936   # without removal of \ escapes.
12937   if test -n "${ZSH_VERSION+set}" ; then
12938     setopt NO_GLOB_SUBST
12939   fi
12940   # Now quote all the things that may contain metacharacters while being
12941   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12942   # variables and quote the copies for generation of the libtool script.
12943   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12944     SED SHELL STRIP \
12945     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12946     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12947     deplibs_check_method reload_flag reload_cmds need_locks \
12948     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12949     lt_cv_sys_global_symbol_to_c_name_address \
12950     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12951     old_postinstall_cmds old_postuninstall_cmds \
12952     compiler_CXX \
12953     CC_CXX \
12954     LD_CXX \
12955     lt_prog_compiler_wl_CXX \
12956     lt_prog_compiler_pic_CXX \
12957     lt_prog_compiler_static_CXX \
12958     lt_prog_compiler_no_builtin_flag_CXX \
12959     export_dynamic_flag_spec_CXX \
12960     thread_safe_flag_spec_CXX \
12961     whole_archive_flag_spec_CXX \
12962     enable_shared_with_static_runtimes_CXX \
12963     old_archive_cmds_CXX \
12964     old_archive_from_new_cmds_CXX \
12965     predep_objects_CXX \
12966     postdep_objects_CXX \
12967     predeps_CXX \
12968     postdeps_CXX \
12969     compiler_lib_search_path_CXX \
12970     archive_cmds_CXX \
12971     archive_expsym_cmds_CXX \
12972     postinstall_cmds_CXX \
12973     postuninstall_cmds_CXX \
12974     old_archive_from_expsyms_cmds_CXX \
12975     allow_undefined_flag_CXX \
12976     no_undefined_flag_CXX \
12977     export_symbols_cmds_CXX \
12978     hardcode_libdir_flag_spec_CXX \
12979     hardcode_libdir_flag_spec_ld_CXX \
12980     hardcode_libdir_separator_CXX \
12981     hardcode_automatic_CXX \
12982     module_cmds_CXX \
12983     module_expsym_cmds_CXX \
12984     lt_cv_prog_compiler_c_o_CXX \
12985     exclude_expsyms_CXX \
12986     include_expsyms_CXX; do
12987
12988     case $var in
12989     old_archive_cmds_CXX | \
12990     old_archive_from_new_cmds_CXX | \
12991     archive_cmds_CXX | \
12992     archive_expsym_cmds_CXX | \
12993     module_cmds_CXX | \
12994     module_expsym_cmds_CXX | \
12995     old_archive_from_expsyms_cmds_CXX | \
12996     export_symbols_cmds_CXX | \
12997     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12998     postinstall_cmds | postuninstall_cmds | \
12999     old_postinstall_cmds | old_postuninstall_cmds | \
13000     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13001       # Double-quote double-evaled strings.
13002       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13003       ;;
13004     *)
13005       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13006       ;;
13007     esac
13008   done
13009
13010   case $lt_echo in
13011   *'\$0 --fallback-echo"')
13012     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13013     ;;
13014   esac
13015
13016 cfgfile="$ofile"
13017
13018   cat <<__EOF__ >> "$cfgfile"
13019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13020
13021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13022
13023 # Shell to use when invoking shell scripts.
13024 SHELL=$lt_SHELL
13025
13026 # Whether or not to build shared libraries.
13027 build_libtool_libs=$enable_shared
13028
13029 # Whether or not to build static libraries.
13030 build_old_libs=$enable_static
13031
13032 # Whether or not to add -lc for building shared libraries.
13033 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13034
13035 # Whether or not to disallow shared libs when runtime libs are static
13036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13037
13038 # Whether or not to optimize for fast installation.
13039 fast_install=$enable_fast_install
13040
13041 # The host system.
13042 host_alias=$host_alias
13043 host=$host
13044 host_os=$host_os
13045
13046 # The build system.
13047 build_alias=$build_alias
13048 build=$build
13049 build_os=$build_os
13050
13051 # An echo program that does not interpret backslashes.
13052 echo=$lt_echo
13053
13054 # The archiver.
13055 AR=$lt_AR
13056 AR_FLAGS=$lt_AR_FLAGS
13057
13058 # A C compiler.
13059 LTCC=$lt_LTCC
13060
13061 # A language-specific compiler.
13062 CC=$lt_compiler_CXX
13063
13064 # Is the compiler the GNU C compiler?
13065 with_gcc=$GCC_CXX
13066
13067 # An ERE matcher.
13068 EGREP=$lt_EGREP
13069
13070 # The linker used to build libraries.
13071 LD=$lt_LD_CXX
13072
13073 # Whether we need hard or soft links.
13074 LN_S=$lt_LN_S
13075
13076 # A BSD-compatible nm program.
13077 NM=$lt_NM
13078
13079 # A symbol stripping program
13080 STRIP=$lt_STRIP
13081
13082 # Used to examine libraries when file_magic_cmd begins "file"
13083 MAGIC_CMD=$MAGIC_CMD
13084
13085 # Used on cygwin: DLL creation program.
13086 DLLTOOL="$DLLTOOL"
13087
13088 # Used on cygwin: object dumper.
13089 OBJDUMP="$OBJDUMP"
13090
13091 # Used on cygwin: assembler.
13092 AS="$AS"
13093
13094 # The name of the directory that contains temporary libtool files.
13095 objdir=$objdir
13096
13097 # How to create reloadable object files.
13098 reload_flag=$lt_reload_flag
13099 reload_cmds=$lt_reload_cmds
13100
13101 # How to pass a linker flag through the compiler.
13102 wl=$lt_lt_prog_compiler_wl_CXX
13103
13104 # Object file suffix (normally "o").
13105 objext="$ac_objext"
13106
13107 # Old archive suffix (normally "a").
13108 libext="$libext"
13109
13110 # Shared library suffix (normally ".so").
13111 shrext_cmds='$shrext_cmds'
13112
13113 # Executable file suffix (normally "").
13114 exeext="$exeext"
13115
13116 # Additional compiler flags for building library objects.
13117 pic_flag=$lt_lt_prog_compiler_pic_CXX
13118 pic_mode=$pic_mode
13119
13120 # What is the maximum length of a command?
13121 max_cmd_len=$lt_cv_sys_max_cmd_len
13122
13123 # Does compiler simultaneously support -c and -o options?
13124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13125
13126 # Must we lock files when doing compilation?
13127 need_locks=$lt_need_locks
13128
13129 # Do we need the lib prefix for modules?
13130 need_lib_prefix=$need_lib_prefix
13131
13132 # Do we need a version for libraries?
13133 need_version=$need_version
13134
13135 # Whether dlopen is supported.
13136 dlopen_support=$enable_dlopen
13137
13138 # Whether dlopen of programs is supported.
13139 dlopen_self=$enable_dlopen_self
13140
13141 # Whether dlopen of statically linked programs is supported.
13142 dlopen_self_static=$enable_dlopen_self_static
13143
13144 # Compiler flag to prevent dynamic linking.
13145 link_static_flag=$lt_lt_prog_compiler_static_CXX
13146
13147 # Compiler flag to turn off builtin functions.
13148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13149
13150 # Compiler flag to allow reflexive dlopens.
13151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13152
13153 # Compiler flag to generate shared objects directly from archives.
13154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13155
13156 # Compiler flag to generate thread-safe objects.
13157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13158
13159 # Library versioning type.
13160 version_type=$version_type
13161
13162 # Format of library name prefix.
13163 libname_spec=$lt_libname_spec
13164
13165 # List of archive names.  First name is the real one, the rest are links.
13166 # The last name is the one that the linker finds with -lNAME.
13167 library_names_spec=$lt_library_names_spec
13168
13169 # The coded name of the library, if different from the real name.
13170 soname_spec=$lt_soname_spec
13171
13172 # Commands used to build and install an old-style archive.
13173 RANLIB=$lt_RANLIB
13174 old_archive_cmds=$lt_old_archive_cmds_CXX
13175 old_postinstall_cmds=$lt_old_postinstall_cmds
13176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13177
13178 # Create an old-style archive from a shared archive.
13179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13180
13181 # Create a temporary old-style archive to link instead of a shared archive.
13182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13183
13184 # Commands used to build and install a shared archive.
13185 archive_cmds=$lt_archive_cmds_CXX
13186 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13187 postinstall_cmds=$lt_postinstall_cmds
13188 postuninstall_cmds=$lt_postuninstall_cmds
13189
13190 # Commands used to build a loadable module (assumed same as above if empty)
13191 module_cmds=$lt_module_cmds_CXX
13192 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13193
13194 # Commands to strip libraries.
13195 old_striplib=$lt_old_striplib
13196 striplib=$lt_striplib
13197
13198 # Dependencies to place before the objects being linked to create a
13199 # shared library.
13200 predep_objects=$lt_predep_objects_CXX
13201
13202 # Dependencies to place after the objects being linked to create a
13203 # shared library.
13204 postdep_objects=$lt_postdep_objects_CXX
13205
13206 # Dependencies to place before the objects being linked to create a
13207 # shared library.
13208 predeps=$lt_predeps_CXX
13209
13210 # Dependencies to place after the objects being linked to create a
13211 # shared library.
13212 postdeps=$lt_postdeps_CXX
13213
13214 # The library search path used internally by the compiler when linking
13215 # a shared library.
13216 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13217
13218 # Method to check whether dependent libraries are shared objects.
13219 deplibs_check_method=$lt_deplibs_check_method
13220
13221 # Command to use when deplibs_check_method == file_magic.
13222 file_magic_cmd=$lt_file_magic_cmd
13223
13224 # Flag that allows shared libraries with undefined symbols to be built.
13225 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13226
13227 # Flag that forces no undefined symbols.
13228 no_undefined_flag=$lt_no_undefined_flag_CXX
13229
13230 # Commands used to finish a libtool library installation in a directory.
13231 finish_cmds=$lt_finish_cmds
13232
13233 # Same as above, but a single script fragment to be evaled but not shown.
13234 finish_eval=$lt_finish_eval
13235
13236 # Take the output of nm and produce a listing of raw symbols and C names.
13237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13238
13239 # Transform the output of nm in a proper C declaration
13240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13241
13242 # Transform the output of nm in a C name address pair
13243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13244
13245 # This is the shared library runtime path variable.
13246 runpath_var=$runpath_var
13247
13248 # This is the shared library path variable.
13249 shlibpath_var=$shlibpath_var
13250
13251 # Is shlibpath searched before the hard-coded library search path?
13252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13253
13254 # How to hardcode a shared library path into an executable.
13255 hardcode_action=$hardcode_action_CXX
13256
13257 # Whether we should hardcode library paths into libraries.
13258 hardcode_into_libs=$hardcode_into_libs
13259
13260 # Flag to hardcode \$libdir into a binary during linking.
13261 # This must work even if \$libdir does not exist.
13262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13263
13264 # If ld is used when linking, flag to hardcode \$libdir into
13265 # a binary during linking. This must work even if \$libdir does
13266 # not exist.
13267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13268
13269 # Whether we need a single -rpath flag with a separated argument.
13270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13271
13272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13273 # resulting binary.
13274 hardcode_direct=$hardcode_direct_CXX
13275
13276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13277 # resulting binary.
13278 hardcode_minus_L=$hardcode_minus_L_CXX
13279
13280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13281 # the resulting binary.
13282 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13283
13284 # Set to yes if building a shared library automatically hardcodes DIR into the library
13285 # and all subsequent libraries and executables linked against it.
13286 hardcode_automatic=$hardcode_automatic_CXX
13287
13288 # Variables whose values should be saved in libtool wrapper scripts and
13289 # restored at relink time.
13290 variables_saved_for_relink="$variables_saved_for_relink"
13291
13292 # Whether libtool must link a program against all its dependency libraries.
13293 link_all_deplibs=$link_all_deplibs_CXX
13294
13295 # Compile-time system search path for libraries
13296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13297
13298 # Run-time system search path for libraries
13299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13300
13301 # Fix the shell variable \$srcfile for the compiler.
13302 fix_srcfile_path="$fix_srcfile_path_CXX"
13303
13304 # Set to yes if exported symbols are required.
13305 always_export_symbols=$always_export_symbols_CXX
13306
13307 # The commands to list exported symbols.
13308 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13309
13310 # The commands to extract the exported symbol list from a shared archive.
13311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13312
13313 # Symbols that should not be listed in the preloaded symbols.
13314 exclude_expsyms=$lt_exclude_expsyms_CXX
13315
13316 # Symbols that must always be exported.
13317 include_expsyms=$lt_include_expsyms_CXX
13318
13319 # ### END LIBTOOL TAG CONFIG: $tagname
13320
13321 __EOF__
13322
13323
13324 else
13325   # If there is no Makefile yet, we rely on a make rule to execute
13326   # `config.status --recheck' to rerun these tests and create the
13327   # libtool script then.
13328   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13329   if test -f "$ltmain_in"; then
13330     test -f Makefile && make "$ltmain"
13331   fi
13332 fi
13333
13334
13335 ac_ext=c
13336 ac_cpp='$CPP $CPPFLAGS'
13337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13340
13341 CC=$lt_save_CC
13342 LDCXX=$LD
13343 LD=$lt_save_LD
13344 GCC=$lt_save_GCC
13345 with_gnu_ldcxx=$with_gnu_ld
13346 with_gnu_ld=$lt_save_with_gnu_ld
13347 lt_cv_path_LDCXX=$lt_cv_path_LD
13348 lt_cv_path_LD=$lt_save_path_LD
13349 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13350 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13351
13352         else
13353           tagname=""
13354         fi
13355         ;;
13356
13357       F77)
13358         if test -n "$F77" && test "X$F77" != "Xno"; then
13359
13360 ac_ext=f
13361 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13362 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13363 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13364
13365
13366 archive_cmds_need_lc_F77=no
13367 allow_undefined_flag_F77=
13368 always_export_symbols_F77=no
13369 archive_expsym_cmds_F77=
13370 export_dynamic_flag_spec_F77=
13371 hardcode_direct_F77=no
13372 hardcode_libdir_flag_spec_F77=
13373 hardcode_libdir_flag_spec_ld_F77=
13374 hardcode_libdir_separator_F77=
13375 hardcode_minus_L_F77=no
13376 hardcode_automatic_F77=no
13377 module_cmds_F77=
13378 module_expsym_cmds_F77=
13379 link_all_deplibs_F77=unknown
13380 old_archive_cmds_F77=$old_archive_cmds
13381 no_undefined_flag_F77=
13382 whole_archive_flag_spec_F77=
13383 enable_shared_with_static_runtimes_F77=no
13384
13385 # Source file extension for f77 test sources.
13386 ac_ext=f
13387
13388 # Object file extension for compiled f77 test sources.
13389 objext=o
13390 objext_F77=$objext
13391
13392 # Code to be used in simple compile tests
13393 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13394
13395 # Code to be used in simple link tests
13396 lt_simple_link_test_code="      program t\n      end\n"
13397
13398 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13399
13400 # If no C compiler was specified, use CC.
13401 LTCC=${LTCC-"$CC"}
13402
13403 # Allow CC to be a program name with arguments.
13404 compiler=$CC
13405
13406
13407 # save warnings/boilerplate of simple test code
13408 ac_outfile=conftest.$ac_objext
13409 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13410 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13411 _lt_compiler_boilerplate=`cat conftest.err`
13412 $rm conftest*
13413
13414 ac_outfile=conftest.$ac_objext
13415 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13416 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13417 _lt_linker_boilerplate=`cat conftest.err`
13418 $rm conftest*
13419
13420
13421 # Allow CC to be a program name with arguments.
13422 lt_save_CC="$CC"
13423 CC=${F77-"f77"}
13424 compiler=$CC
13425 compiler_F77=$CC
13426 for cc_temp in $compiler""; do
13427   case $cc_temp in
13428     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13429     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13430     \-*) ;;
13431     *) break;;
13432   esac
13433 done
13434 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13435
13436
13437 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13438 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13439 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13440 echo "${ECHO_T}$can_build_shared" >&6
13441
13442 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13443 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13444 test "$can_build_shared" = "no" && enable_shared=no
13445
13446 # On AIX, shared libraries and static libraries use the same namespace, and
13447 # are all built from PIC.
13448 case "$host_os" in
13449 aix3*)
13450   test "$enable_shared" = yes && enable_static=no
13451   if test -n "$RANLIB"; then
13452     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13453     postinstall_cmds='$RANLIB $lib'
13454   fi
13455   ;;
13456 aix4* | aix5*)
13457   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13458     test "$enable_shared" = yes && enable_static=no
13459   fi
13460   ;;
13461 esac
13462 echo "$as_me:$LINENO: result: $enable_shared" >&5
13463 echo "${ECHO_T}$enable_shared" >&6
13464
13465 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13466 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13467 # Make sure either enable_shared or enable_static is yes.
13468 test "$enable_shared" = yes || enable_static=yes
13469 echo "$as_me:$LINENO: result: $enable_static" >&5
13470 echo "${ECHO_T}$enable_static" >&6
13471
13472 test "$ld_shlibs_F77" = no && can_build_shared=no
13473
13474 GCC_F77="$G77"
13475 LD_F77="$LD"
13476
13477 lt_prog_compiler_wl_F77=
13478 lt_prog_compiler_pic_F77=
13479 lt_prog_compiler_static_F77=
13480
13481 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13482 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13483
13484   if test "$GCC" = yes; then
13485     lt_prog_compiler_wl_F77='-Wl,'
13486     lt_prog_compiler_static_F77='-static'
13487
13488     case $host_os in
13489       aix*)
13490       # All AIX code is PIC.
13491       if test "$host_cpu" = ia64; then
13492         # AIX 5 now supports IA64 processor
13493         lt_prog_compiler_static_F77='-Bstatic'
13494       fi
13495       ;;
13496
13497     amigaos*)
13498       # FIXME: we need at least 68020 code to build shared libraries, but
13499       # adding the `-m68020' flag to GCC prevents building anything better,
13500       # like `-m68040'.
13501       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13502       ;;
13503
13504     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13505       # PIC is the default for these OSes.
13506       ;;
13507
13508     mingw* | pw32* | os2*)
13509       # This hack is so that the source file can tell whether it is being
13510       # built for inclusion in a dll (and should export symbols for example).
13511       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13512       ;;
13513
13514     darwin* | rhapsody*)
13515       # PIC is the default on this platform
13516       # Common symbols not allowed in MH_DYLIB files
13517       lt_prog_compiler_pic_F77='-fno-common'
13518       ;;
13519
13520     msdosdjgpp*)
13521       # Just because we use GCC doesn't mean we suddenly get shared libraries
13522       # on systems that don't support them.
13523       lt_prog_compiler_can_build_shared_F77=no
13524       enable_shared=no
13525       ;;
13526
13527     sysv4*MP*)
13528       if test -d /usr/nec; then
13529         lt_prog_compiler_pic_F77=-Kconform_pic
13530       fi
13531       ;;
13532
13533     hpux*)
13534       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13535       # not for PA HP-UX.
13536       case "$host_cpu" in
13537       hppa*64*|ia64*)
13538         # +Z the default
13539         ;;
13540       *)
13541         lt_prog_compiler_pic_F77='-fPIC'
13542         ;;
13543       esac
13544       ;;
13545
13546     *)
13547       lt_prog_compiler_pic_F77='-fPIC'
13548       ;;
13549     esac
13550   else
13551     # PORTME Check for flag to pass linker flags through the system compiler.
13552     case $host_os in
13553     aix*)
13554       lt_prog_compiler_wl_F77='-Wl,'
13555       if test "$host_cpu" = ia64; then
13556         # AIX 5 now supports IA64 processor
13557         lt_prog_compiler_static_F77='-Bstatic'
13558       else
13559         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13560       fi
13561       ;;
13562       darwin*)
13563         # PIC is the default on this platform
13564         # Common symbols not allowed in MH_DYLIB files
13565        case $cc_basename in
13566          xlc*)
13567          lt_prog_compiler_pic_F77='-qnocommon'
13568          lt_prog_compiler_wl_F77='-Wl,'
13569          ;;
13570        esac
13571        ;;
13572
13573     mingw* | pw32* | os2*)
13574       # This hack is so that the source file can tell whether it is being
13575       # built for inclusion in a dll (and should export symbols for example).
13576       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13577       ;;
13578
13579     hpux9* | hpux10* | hpux11*)
13580       lt_prog_compiler_wl_F77='-Wl,'
13581       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13582       # not for PA HP-UX.
13583       case "$host_cpu" in
13584       hppa*64*|ia64*)
13585         # +Z the default
13586         ;;
13587       *)
13588         lt_prog_compiler_pic_F77='+Z'
13589         ;;
13590       esac
13591       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13592       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13593       ;;
13594
13595     irix5* | irix6* | nonstopux*)
13596       lt_prog_compiler_wl_F77='-Wl,'
13597       # PIC (with -KPIC) is the default.
13598       lt_prog_compiler_static_F77='-non_shared'
13599       ;;
13600
13601     newsos6)
13602       lt_prog_compiler_pic_F77='-KPIC'
13603       lt_prog_compiler_static_F77='-Bstatic'
13604       ;;
13605
13606     linux*)
13607       case $cc_basename in
13608       icc* | ecc*)
13609         lt_prog_compiler_wl_F77='-Wl,'
13610         lt_prog_compiler_pic_F77='-KPIC'
13611         lt_prog_compiler_static_F77='-static'
13612         ;;
13613       pgcc* | pgf77* | pgf90*)
13614         # Portland Group compilers (*not* the Pentium gcc compiler,
13615         # which looks to be a dead project)
13616         lt_prog_compiler_wl_F77='-Wl,'
13617         lt_prog_compiler_pic_F77='-fpic'
13618         lt_prog_compiler_static_F77='-static'
13619         ;;
13620       ccc*)
13621         lt_prog_compiler_wl_F77='-Wl,'
13622         # All Alpha code is PIC.
13623         lt_prog_compiler_static_F77='-non_shared'
13624         ;;
13625       esac
13626       ;;
13627
13628     osf3* | osf4* | osf5*)
13629       lt_prog_compiler_wl_F77='-Wl,'
13630       # All OSF/1 code is PIC.
13631       lt_prog_compiler_static_F77='-non_shared'
13632       ;;
13633
13634     sco3.2v5*)
13635       lt_prog_compiler_pic_F77='-Kpic'
13636       lt_prog_compiler_static_F77='-dn'
13637       ;;
13638
13639     solaris*)
13640       lt_prog_compiler_pic_F77='-KPIC'
13641       lt_prog_compiler_static_F77='-Bstatic'
13642       case $cc_basename in
13643       f77* | f90* | f95*)
13644         lt_prog_compiler_wl_F77='-Qoption ld ';;
13645       *)
13646         lt_prog_compiler_wl_F77='-Wl,';;
13647       esac
13648       ;;
13649
13650     sunos4*)
13651       lt_prog_compiler_wl_F77='-Qoption ld '
13652       lt_prog_compiler_pic_F77='-PIC'
13653       lt_prog_compiler_static_F77='-Bstatic'
13654       ;;
13655
13656     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13657       lt_prog_compiler_wl_F77='-Wl,'
13658       lt_prog_compiler_pic_F77='-KPIC'
13659       lt_prog_compiler_static_F77='-Bstatic'
13660       ;;
13661
13662     sysv4*MP*)
13663       if test -d /usr/nec ;then
13664         lt_prog_compiler_pic_F77='-Kconform_pic'
13665         lt_prog_compiler_static_F77='-Bstatic'
13666       fi
13667       ;;
13668
13669     unicos*)
13670       lt_prog_compiler_wl_F77='-Wl,'
13671       lt_prog_compiler_can_build_shared_F77=no
13672       ;;
13673
13674     uts4*)
13675       lt_prog_compiler_pic_F77='-pic'
13676       lt_prog_compiler_static_F77='-Bstatic'
13677       ;;
13678
13679     *)
13680       lt_prog_compiler_can_build_shared_F77=no
13681       ;;
13682     esac
13683   fi
13684
13685 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13686 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13687
13688 #
13689 # Check to make sure the PIC flag actually works.
13690 #
13691 if test -n "$lt_prog_compiler_pic_F77"; then
13692
13693 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13694 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13695 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13696   echo $ECHO_N "(cached) $ECHO_C" >&6
13697 else
13698   lt_prog_compiler_pic_works_F77=no
13699   ac_outfile=conftest.$ac_objext
13700    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13701    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13702    # Insert the option either (1) after the last *FLAGS variable, or
13703    # (2) before a word containing "conftest.", or (3) at the end.
13704    # Note that $ac_compile itself does not contain backslashes and begins
13705    # with a dollar sign (not a hyphen), so the echo should work correctly.
13706    # The option is referenced via a variable to avoid confusing sed.
13707    lt_compile=`echo "$ac_compile" | $SED \
13708    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13709    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13710    -e 's:$: $lt_compiler_flag:'`
13711    (eval echo "\"\$as_me:13711: $lt_compile\"" >&5)
13712    (eval "$lt_compile" 2>conftest.err)
13713    ac_status=$?
13714    cat conftest.err >&5
13715    echo "$as_me:13715: \$? = $ac_status" >&5
13716    if (exit $ac_status) && test -s "$ac_outfile"; then
13717      # The compiler can only warn and ignore the option if not recognized
13718      # So say no if there are warnings other than the usual output.
13719      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13720      $SED '/^$/d' conftest.err >conftest.er2
13721      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13722        lt_prog_compiler_pic_works_F77=yes
13723      fi
13724    fi
13725    $rm conftest*
13726
13727 fi
13728 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13729 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13730
13731 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13732     case $lt_prog_compiler_pic_F77 in
13733      "" | " "*) ;;
13734      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13735      esac
13736 else
13737     lt_prog_compiler_pic_F77=
13738      lt_prog_compiler_can_build_shared_F77=no
13739 fi
13740
13741 fi
13742 case "$host_os" in
13743   # For platforms which do not support PIC, -DPIC is meaningless:
13744   *djgpp*)
13745     lt_prog_compiler_pic_F77=
13746     ;;
13747   *)
13748     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13749     ;;
13750 esac
13751
13752 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13753 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13754 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13755   echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757   lt_cv_prog_compiler_c_o_F77=no
13758    $rm -r conftest 2>/dev/null
13759    mkdir conftest
13760    cd conftest
13761    mkdir out
13762    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13763
13764    lt_compiler_flag="-o out/conftest2.$ac_objext"
13765    # Insert the option either (1) after the last *FLAGS variable, or
13766    # (2) before a word containing "conftest.", or (3) at the end.
13767    # Note that $ac_compile itself does not contain backslashes and begins
13768    # with a dollar sign (not a hyphen), so the echo should work correctly.
13769    lt_compile=`echo "$ac_compile" | $SED \
13770    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13772    -e 's:$: $lt_compiler_flag:'`
13773    (eval echo "\"\$as_me:13773: $lt_compile\"" >&5)
13774    (eval "$lt_compile" 2>out/conftest.err)
13775    ac_status=$?
13776    cat out/conftest.err >&5
13777    echo "$as_me:13777: \$? = $ac_status" >&5
13778    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13779    then
13780      # The compiler can only warn and ignore the option if not recognized
13781      # So say no if there are warnings
13782      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13783      $SED '/^$/d' out/conftest.err >out/conftest.er2
13784      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13785        lt_cv_prog_compiler_c_o_F77=yes
13786      fi
13787    fi
13788    chmod u+w .
13789    $rm conftest*
13790    # SGI C++ compiler will create directory out/ii_files/ for
13791    # template instantiation
13792    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13793    $rm out/* && rmdir out
13794    cd ..
13795    rmdir conftest
13796    $rm conftest*
13797
13798 fi
13799 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13800 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13801
13802
13803 hard_links="nottested"
13804 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13805   # do not overwrite the value of need_locks provided by the user
13806   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13807 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13808   hard_links=yes
13809   $rm conftest*
13810   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13811   touch conftest.a
13812   ln conftest.a conftest.b 2>&5 || hard_links=no
13813   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13814   echo "$as_me:$LINENO: result: $hard_links" >&5
13815 echo "${ECHO_T}$hard_links" >&6
13816   if test "$hard_links" = no; then
13817     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13818 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13819     need_locks=warn
13820   fi
13821 else
13822   need_locks=no
13823 fi
13824
13825 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13826 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13827
13828   runpath_var=
13829   allow_undefined_flag_F77=
13830   enable_shared_with_static_runtimes_F77=no
13831   archive_cmds_F77=
13832   archive_expsym_cmds_F77=
13833   old_archive_From_new_cmds_F77=
13834   old_archive_from_expsyms_cmds_F77=
13835   export_dynamic_flag_spec_F77=
13836   whole_archive_flag_spec_F77=
13837   thread_safe_flag_spec_F77=
13838   hardcode_libdir_flag_spec_F77=
13839   hardcode_libdir_flag_spec_ld_F77=
13840   hardcode_libdir_separator_F77=
13841   hardcode_direct_F77=no
13842   hardcode_minus_L_F77=no
13843   hardcode_shlibpath_var_F77=unsupported
13844   link_all_deplibs_F77=unknown
13845   hardcode_automatic_F77=no
13846   module_cmds_F77=
13847   module_expsym_cmds_F77=
13848   always_export_symbols_F77=no
13849   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13850   # include_expsyms should be a list of space-separated symbols to be *always*
13851   # included in the symbol list
13852   include_expsyms_F77=
13853   # exclude_expsyms can be an extended regexp of symbols to exclude
13854   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13855   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13856   # as well as any symbol that contains `d'.
13857   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13858   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13859   # platforms (ab)use it in PIC code, but their linkers get confused if
13860   # the symbol is explicitly referenced.  Since portable code cannot
13861   # rely on this symbol name, it's probably fine to never include it in
13862   # preloaded symbol tables.
13863   extract_expsyms_cmds=
13864   # Just being paranoid about ensuring that cc_basename is set.
13865   for cc_temp in $compiler""; do
13866   case $cc_temp in
13867     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13868     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13869     \-*) ;;
13870     *) break;;
13871   esac
13872 done
13873 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13874
13875   case $host_os in
13876   cygwin* | mingw* | pw32*)
13877     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13878     # When not using gcc, we currently assume that we are using
13879     # Microsoft Visual C++.
13880     if test "$GCC" != yes; then
13881       with_gnu_ld=no
13882     fi
13883     ;;
13884   openbsd*)
13885     with_gnu_ld=no
13886     ;;
13887   esac
13888
13889   ld_shlibs_F77=yes
13890   if test "$with_gnu_ld" = yes; then
13891     # If archive_cmds runs LD, not CC, wlarc should be empty
13892     wlarc='${wl}'
13893
13894     # Set some defaults for GNU ld with shared library support. These
13895     # are reset later if shared libraries are not supported. Putting them
13896     # here allows them to be overridden if necessary.
13897     runpath_var=LD_RUN_PATH
13898     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13899     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13900     # ancient GNU ld didn't support --whole-archive et. al.
13901     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13902         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13903       else
13904         whole_archive_flag_spec_F77=
13905     fi
13906     supports_anon_versioning=no
13907     case `$LD -v 2>/dev/null` in
13908       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13909       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13910       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13911       *\ 2.11.*) ;; # other 2.11 versions
13912       *) supports_anon_versioning=yes ;;
13913     esac
13914
13915     # See if GNU ld supports shared libraries.
13916     case $host_os in
13917     aix3* | aix4* | aix5*)
13918       # On AIX/PPC, the GNU linker is very broken
13919       if test "$host_cpu" != ia64; then
13920         ld_shlibs_F77=no
13921         cat <<EOF 1>&2
13922
13923 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13924 *** to be unable to reliably create shared libraries on AIX.
13925 *** Therefore, libtool is disabling shared libraries support.  If you
13926 *** really care for shared libraries, you may want to modify your PATH
13927 *** so that a non-GNU linker is found, and then restart.
13928
13929 EOF
13930       fi
13931       ;;
13932
13933     amigaos*)
13934       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)'
13935       hardcode_libdir_flag_spec_F77='-L$libdir'
13936       hardcode_minus_L_F77=yes
13937
13938       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13939       # that the semantics of dynamic libraries on AmigaOS, at least up
13940       # to version 4, is to share data among multiple programs linked
13941       # with the same dynamic library.  Since this doesn't match the
13942       # behavior of shared libraries on other platforms, we can't use
13943       # them.
13944       ld_shlibs_F77=no
13945       ;;
13946
13947     beos*)
13948       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13949         allow_undefined_flag_F77=unsupported
13950         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13951         # support --undefined.  This deserves some investigation.  FIXME
13952         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13953       else
13954         ld_shlibs_F77=no
13955       fi
13956       ;;
13957
13958     cygwin* | mingw* | pw32*)
13959       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13960       # as there is no search path for DLLs.
13961       hardcode_libdir_flag_spec_F77='-L$libdir'
13962       allow_undefined_flag_F77=unsupported
13963       always_export_symbols_F77=no
13964       enable_shared_with_static_runtimes_F77=yes
13965       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13966
13967       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13968         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13969         # If the export-symbols file already is a .def file (1st line
13970         # is EXPORTS), use it as is; otherwise, prepend...
13971         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13972           cp $export_symbols $output_objdir/$soname.def;
13973         else
13974           echo EXPORTS > $output_objdir/$soname.def;
13975           cat $export_symbols >> $output_objdir/$soname.def;
13976         fi~
13977         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13978       else
13979         ld_shlibs_F77=no
13980       fi
13981       ;;
13982
13983     linux*)
13984       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13985         tmp_addflag=
13986         case $cc_basename,$host_cpu in
13987         pgcc*)                          # Portland Group C compiler
13988           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13989           tmp_addflag=' $pic_flag'
13990           ;;
13991         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
13992           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13993           tmp_addflag=' $pic_flag -Mnomain' ;;
13994         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13995           tmp_addflag=' -i_dynamic' ;;
13996         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13997           tmp_addflag=' -i_dynamic -nofor_main' ;;
13998         ifc* | ifort*)                  # Intel Fortran compiler
13999           tmp_addflag=' -nofor_main' ;;
14000         esac
14001         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14002
14003         if test $supports_anon_versioning = yes; then
14004           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14005   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14006   $echo "local: *; };" >> $output_objdir/$libname.ver~
14007           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14008         fi
14009       else
14010         ld_shlibs_F77=no
14011       fi
14012       ;;
14013
14014     netbsd*)
14015       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14016         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14017         wlarc=
14018       else
14019         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14020         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14021       fi
14022       ;;
14023
14024     solaris* | sysv5*)
14025       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14026         ld_shlibs_F77=no
14027         cat <<EOF 1>&2
14028
14029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14030 *** create shared libraries on Solaris systems.  Therefore, libtool
14031 *** is disabling shared libraries support.  We urge you to upgrade GNU
14032 *** binutils to release 2.9.1 or newer.  Another option is to modify
14033 *** your PATH or compiler configuration so that the native linker is
14034 *** used, and then restart.
14035
14036 EOF
14037       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14038         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14039         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14040       else
14041         ld_shlibs_F77=no
14042       fi
14043       ;;
14044
14045     sunos4*)
14046       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14047       wlarc=
14048       hardcode_direct_F77=yes
14049       hardcode_shlibpath_var_F77=no
14050       ;;
14051
14052     *)
14053       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14054         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14055         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14056       else
14057         ld_shlibs_F77=no
14058       fi
14059       ;;
14060     esac
14061
14062     if test "$ld_shlibs_F77" = no; then
14063       runpath_var=
14064       hardcode_libdir_flag_spec_F77=
14065       export_dynamic_flag_spec_F77=
14066       whole_archive_flag_spec_F77=
14067     fi
14068   else
14069     # PORTME fill in a description of your system's linker (not GNU ld)
14070     case $host_os in
14071     aix3*)
14072       allow_undefined_flag_F77=unsupported
14073       always_export_symbols_F77=yes
14074       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'
14075       # Note: this linker hardcodes the directories in LIBPATH if there
14076       # are no directories specified by -L.
14077       hardcode_minus_L_F77=yes
14078       if test "$GCC" = yes && test -z "$link_static_flag"; then
14079         # Neither direct hardcoding nor static linking is supported with a
14080         # broken collect2.
14081         hardcode_direct_F77=unsupported
14082       fi
14083       ;;
14084
14085     aix4* | aix5*)
14086       if test "$host_cpu" = ia64; then
14087         # On IA64, the linker does run time linking by default, so we don't
14088         # have to do anything special.
14089         aix_use_runtimelinking=no
14090         exp_sym_flag='-Bexport'
14091         no_entry_flag=""
14092       else
14093         # If we're using GNU nm, then we don't want the "-C" option.
14094         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14095         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14096           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'
14097         else
14098           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'
14099         fi
14100         aix_use_runtimelinking=no
14101
14102         # Test if we are trying to use run time linking or normal
14103         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14104         # need to do runtime linking.
14105         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14106           for ld_flag in $LDFLAGS; do
14107           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14108             aix_use_runtimelinking=yes
14109             break
14110           fi
14111           done
14112         esac
14113
14114         exp_sym_flag='-bexport'
14115         no_entry_flag='-bnoentry'
14116       fi
14117
14118       # When large executables or shared objects are built, AIX ld can
14119       # have problems creating the table of contents.  If linking a library
14120       # or program results in "error TOC overflow" add -mminimal-toc to
14121       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14122       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14123
14124       archive_cmds_F77=''
14125       hardcode_direct_F77=yes
14126       hardcode_libdir_separator_F77=':'
14127       link_all_deplibs_F77=yes
14128
14129       if test "$GCC" = yes; then
14130         case $host_os in aix4.[012]|aix4.[012].*)
14131         # We only want to do this on AIX 4.2 and lower, the check
14132         # below for broken collect2 doesn't work under 4.3+
14133           collect2name=`${CC} -print-prog-name=collect2`
14134           if test -f "$collect2name" && \
14135            strings "$collect2name" | grep resolve_lib_name >/dev/null
14136           then
14137           # We have reworked collect2
14138           hardcode_direct_F77=yes
14139           else
14140           # We have old collect2
14141           hardcode_direct_F77=unsupported
14142           # It fails to find uninstalled libraries when the uninstalled
14143           # path is not listed in the libpath.  Setting hardcode_minus_L
14144           # to unsupported forces relinking
14145           hardcode_minus_L_F77=yes
14146           hardcode_libdir_flag_spec_F77='-L$libdir'
14147           hardcode_libdir_separator_F77=
14148           fi
14149         esac
14150         shared_flag='-shared'
14151         if test "$aix_use_runtimelinking" = yes; then
14152           shared_flag="$shared_flag "'${wl}-G'
14153         fi
14154       else
14155         # not using gcc
14156         if test "$host_cpu" = ia64; then
14157         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14158         # chokes on -Wl,-G. The following line is correct:
14159           shared_flag='-G'
14160         else
14161         if test "$aix_use_runtimelinking" = yes; then
14162             shared_flag='${wl}-G'
14163           else
14164             shared_flag='${wl}-bM:SRE'
14165         fi
14166         fi
14167       fi
14168
14169       # It seems that -bexpall does not export symbols beginning with
14170       # underscore (_), so it is better to generate a list of symbols to export.
14171       always_export_symbols_F77=yes
14172       if test "$aix_use_runtimelinking" = yes; then
14173         # Warning - without using the other runtime loading flags (-brtl),
14174         # -berok will link without error, but may produce a broken library.
14175         allow_undefined_flag_F77='-berok'
14176        # Determine the default libpath from the value encoded in an empty executable.
14177        cat >conftest.$ac_ext <<_ACEOF
14178       program main
14179
14180       end
14181 _ACEOF
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184   (eval $ac_link) 2>conftest.er1
14185   ac_status=$?
14186   grep -v '^ *+' conftest.er1 >conftest.err
14187   rm -f conftest.er1
14188   cat conftest.err >&5
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } &&
14191          { ac_try='test -z "$ac_f77_werror_flag"
14192                          || test ! -s conftest.err'
14193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194   (eval $ac_try) 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); }; } &&
14198          { ac_try='test -s conftest$ac_exeext'
14199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200   (eval $ac_try) 2>&5
14201   ac_status=$?
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); }; }; then
14204
14205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14206 }'`
14207 # Check for a 64-bit object if we didn't find anything.
14208 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; }
14209 }'`; fi
14210 else
14211   echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14213
14214 fi
14215 rm -f conftest.err conftest.$ac_objext \
14216       conftest$ac_exeext conftest.$ac_ext
14217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14218
14219        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14220         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"
14221        else
14222         if test "$host_cpu" = ia64; then
14223           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14224           allow_undefined_flag_F77="-z nodefs"
14225           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"
14226         else
14227          # Determine the default libpath from the value encoded in an empty executable.
14228          cat >conftest.$ac_ext <<_ACEOF
14229       program main
14230
14231       end
14232 _ACEOF
14233 rm -f conftest.$ac_objext conftest$ac_exeext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14235   (eval $ac_link) 2>conftest.er1
14236   ac_status=$?
14237   grep -v '^ *+' conftest.er1 >conftest.err
14238   rm -f conftest.er1
14239   cat conftest.err >&5
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); } &&
14242          { ac_try='test -z "$ac_f77_werror_flag"
14243                          || test ! -s conftest.err'
14244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245   (eval $ac_try) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; } &&
14249          { ac_try='test -s conftest$ac_exeext'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; }; then
14255
14256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14257 }'`
14258 # Check for a 64-bit object if we didn't find anything.
14259 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; }
14260 }'`; fi
14261 else
14262   echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14264
14265 fi
14266 rm -f conftest.err conftest.$ac_objext \
14267       conftest$ac_exeext conftest.$ac_ext
14268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14269
14270          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14271           # Warning - without using the other run time loading flags,
14272           # -berok will link without error, but may produce a broken library.
14273           no_undefined_flag_F77=' ${wl}-bernotok'
14274           allow_undefined_flag_F77=' ${wl}-berok'
14275           # -bexpall does not export symbols beginning with underscore (_)
14276           always_export_symbols_F77=yes
14277           # Exported symbols can be pulled into shared objects from archives
14278           whole_archive_flag_spec_F77=' '
14279           archive_cmds_need_lc_F77=yes
14280           # This is similar to how AIX traditionally builds it's shared libraries.
14281           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'
14282         fi
14283       fi
14284       ;;
14285
14286     amigaos*)
14287       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)'
14288       hardcode_libdir_flag_spec_F77='-L$libdir'
14289       hardcode_minus_L_F77=yes
14290       # see comment about different semantics on the GNU ld section
14291       ld_shlibs_F77=no
14292       ;;
14293
14294     bsdi[45]*)
14295       export_dynamic_flag_spec_F77=-rdynamic
14296       ;;
14297
14298     cygwin* | mingw* | pw32*)
14299       # When not using gcc, we currently assume that we are using
14300       # Microsoft Visual C++.
14301       # hardcode_libdir_flag_spec is actually meaningless, as there is
14302       # no search path for DLLs.
14303       hardcode_libdir_flag_spec_F77=' '
14304       allow_undefined_flag_F77=unsupported
14305       # Tell ltmain to make .lib files, not .a files.
14306       libext=lib
14307       # Tell ltmain to make .dll files, not .so files.
14308       shrext_cmds=".dll"
14309       # FIXME: Setting linknames here is a bad hack.
14310       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14311       # The linker will automatically build a .lib file if we build a DLL.
14312       old_archive_From_new_cmds_F77='true'
14313       # FIXME: Should let the user specify the lib program.
14314       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14315       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14316       enable_shared_with_static_runtimes_F77=yes
14317       ;;
14318
14319     darwin* | rhapsody*)
14320       case "$host_os" in
14321         rhapsody* | darwin1.[012])
14322          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14323          ;;
14324        *) # Darwin 1.3 on
14325          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14326            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14327          else
14328            case ${MACOSX_DEPLOYMENT_TARGET} in
14329              10.[012])
14330                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14331                ;;
14332              10.*)
14333                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14334                ;;
14335            esac
14336          fi
14337          ;;
14338       esac
14339       archive_cmds_need_lc_F77=no
14340       hardcode_direct_F77=no
14341       hardcode_automatic_F77=yes
14342       hardcode_shlibpath_var_F77=unsupported
14343       whole_archive_flag_spec_F77=''
14344       link_all_deplibs_F77=yes
14345     if test "$GCC" = yes ; then
14346         output_verbose_link_cmd='echo'
14347         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14348       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14349       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14350       archive_expsym_cmds_F77='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}'
14351       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14352     else
14353       case $cc_basename in
14354         xlc*)
14355          output_verbose_link_cmd='echo'
14356          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14357          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14358           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14359          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14360           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14361           ;;
14362        *)
14363          ld_shlibs_F77=no
14364           ;;
14365       esac
14366     fi
14367       ;;
14368
14369     dgux*)
14370       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14371       hardcode_libdir_flag_spec_F77='-L$libdir'
14372       hardcode_shlibpath_var_F77=no
14373       ;;
14374
14375     freebsd1*)
14376       ld_shlibs_F77=no
14377       ;;
14378
14379     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14380     # support.  Future versions do this automatically, but an explicit c++rt0.o
14381     # does not break anything, and helps significantly (at the cost of a little
14382     # extra space).
14383     freebsd2.2*)
14384       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14385       hardcode_libdir_flag_spec_F77='-R$libdir'
14386       hardcode_direct_F77=yes
14387       hardcode_shlibpath_var_F77=no
14388       ;;
14389
14390     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14391     freebsd2*)
14392       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14393       hardcode_direct_F77=yes
14394       hardcode_minus_L_F77=yes
14395       hardcode_shlibpath_var_F77=no
14396       ;;
14397
14398     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14399     freebsd* | kfreebsd*-gnu | dragonfly*)
14400       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14401       hardcode_libdir_flag_spec_F77='-R$libdir'
14402       hardcode_direct_F77=yes
14403       hardcode_shlibpath_var_F77=no
14404       ;;
14405
14406     hpux9*)
14407       if test "$GCC" = yes; then
14408         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'
14409       else
14410         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'
14411       fi
14412       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14413       hardcode_libdir_separator_F77=:
14414       hardcode_direct_F77=yes
14415
14416       # hardcode_minus_L: Not really in the search PATH,
14417       # but as the default location of the library.
14418       hardcode_minus_L_F77=yes
14419       export_dynamic_flag_spec_F77='${wl}-E'
14420       ;;
14421
14422     hpux10* | hpux11*)
14423       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14424         case "$host_cpu" in
14425         hppa*64*|ia64*)
14426           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14427           ;;
14428         *)
14429           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14430           ;;
14431         esac
14432       else
14433         case "$host_cpu" in
14434         hppa*64*|ia64*)
14435           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14436           ;;
14437         *)
14438           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14439           ;;
14440         esac
14441       fi
14442       if test "$with_gnu_ld" = no; then
14443         case "$host_cpu" in
14444         hppa*64*)
14445           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14446           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14447           hardcode_libdir_separator_F77=:
14448           hardcode_direct_F77=no
14449           hardcode_shlibpath_var_F77=no
14450           ;;
14451         ia64*)
14452           hardcode_libdir_flag_spec_F77='-L$libdir'
14453           hardcode_direct_F77=no
14454           hardcode_shlibpath_var_F77=no
14455
14456           # hardcode_minus_L: Not really in the search PATH,
14457           # but as the default location of the library.
14458           hardcode_minus_L_F77=yes
14459           ;;
14460         *)
14461           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14462           hardcode_libdir_separator_F77=:
14463           hardcode_direct_F77=yes
14464           export_dynamic_flag_spec_F77='${wl}-E'
14465
14466           # hardcode_minus_L: Not really in the search PATH,
14467           # but as the default location of the library.
14468           hardcode_minus_L_F77=yes
14469           ;;
14470         esac
14471       fi
14472       ;;
14473
14474     irix5* | irix6* | nonstopux*)
14475       if test "$GCC" = yes; then
14476         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'
14477       else
14478         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'
14479         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14480       fi
14481       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14482       hardcode_libdir_separator_F77=:
14483       link_all_deplibs_F77=yes
14484       ;;
14485
14486     netbsd*)
14487       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14488         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14489       else
14490         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14491       fi
14492       hardcode_libdir_flag_spec_F77='-R$libdir'
14493       hardcode_direct_F77=yes
14494       hardcode_shlibpath_var_F77=no
14495       ;;
14496
14497     newsos6)
14498       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14499       hardcode_direct_F77=yes
14500       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14501       hardcode_libdir_separator_F77=:
14502       hardcode_shlibpath_var_F77=no
14503       ;;
14504
14505     openbsd*)
14506       hardcode_direct_F77=yes
14507       hardcode_shlibpath_var_F77=no
14508       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14509         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14510         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14511         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14512         export_dynamic_flag_spec_F77='${wl}-E'
14513       else
14514        case $host_os in
14515          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14516            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14517            hardcode_libdir_flag_spec_F77='-R$libdir'
14518            ;;
14519          *)
14520            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14521            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14522            ;;
14523        esac
14524       fi
14525       ;;
14526
14527     os2*)
14528       hardcode_libdir_flag_spec_F77='-L$libdir'
14529       hardcode_minus_L_F77=yes
14530       allow_undefined_flag_F77=unsupported
14531       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'
14532       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14533       ;;
14534
14535     osf3*)
14536       if test "$GCC" = yes; then
14537         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14538         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'
14539       else
14540         allow_undefined_flag_F77=' -expect_unresolved \*'
14541         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'
14542       fi
14543       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14544       hardcode_libdir_separator_F77=:
14545       ;;
14546
14547     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14548       if test "$GCC" = yes; then
14549         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14550         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'
14551         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14552       else
14553         allow_undefined_flag_F77=' -expect_unresolved \*'
14554         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'
14555         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~
14556         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14557
14558         # Both c and cxx compiler support -rpath directly
14559         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14560       fi
14561       hardcode_libdir_separator_F77=:
14562       ;;
14563
14564     sco3.2v5*)
14565       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14566       hardcode_shlibpath_var_F77=no
14567       export_dynamic_flag_spec_F77='${wl}-Bexport'
14568       runpath_var=LD_RUN_PATH
14569       hardcode_runpath_var=yes
14570       ;;
14571
14572     solaris*)
14573       no_undefined_flag_F77=' -z text'
14574       if test "$GCC" = yes; then
14575         wlarc='${wl}'
14576         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14577         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14578           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14579       else
14580         wlarc=''
14581         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14582         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14583         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14584       fi
14585       hardcode_libdir_flag_spec_F77='-R$libdir'
14586       hardcode_shlibpath_var_F77=no
14587       case $host_os in
14588       solaris2.[0-5] | solaris2.[0-5].*) ;;
14589       *)
14590         # The compiler driver will combine linker options so we
14591         # cannot just pass the convience library names through
14592         # without $wl, iff we do not link with $LD.
14593         # Luckily, gcc supports the same syntax we need for Sun Studio.
14594         # Supported since Solaris 2.6 (maybe 2.5.1?)
14595         case $wlarc in
14596         '')
14597           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14598         *)
14599           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14600         esac ;;
14601       esac
14602       link_all_deplibs_F77=yes
14603       ;;
14604
14605     sunos4*)
14606       if test "x$host_vendor" = xsequent; then
14607         # Use $CC to link under sequent, because it throws in some extra .o
14608         # files that make .init and .fini sections work.
14609         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14610       else
14611         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14612       fi
14613       hardcode_libdir_flag_spec_F77='-L$libdir'
14614       hardcode_direct_F77=yes
14615       hardcode_minus_L_F77=yes
14616       hardcode_shlibpath_var_F77=no
14617       ;;
14618
14619     sysv4)
14620       case $host_vendor in
14621         sni)
14622           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14623           hardcode_direct_F77=yes # is this really true???
14624         ;;
14625         siemens)
14626           ## LD is ld it makes a PLAMLIB
14627           ## CC just makes a GrossModule.
14628           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14629           reload_cmds_F77='$CC -r -o $output$reload_objs'
14630           hardcode_direct_F77=no
14631         ;;
14632         motorola)
14633           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14635         ;;
14636       esac
14637       runpath_var='LD_RUN_PATH'
14638       hardcode_shlibpath_var_F77=no
14639       ;;
14640
14641     sysv4.3*)
14642       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14643       hardcode_shlibpath_var_F77=no
14644       export_dynamic_flag_spec_F77='-Bexport'
14645       ;;
14646
14647     sysv4*MP*)
14648       if test -d /usr/nec; then
14649         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14650         hardcode_shlibpath_var_F77=no
14651         runpath_var=LD_RUN_PATH
14652         hardcode_runpath_var=yes
14653         ld_shlibs_F77=yes
14654       fi
14655       ;;
14656
14657     sysv4.2uw2*)
14658       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14659       hardcode_direct_F77=yes
14660       hardcode_minus_L_F77=no
14661       hardcode_shlibpath_var_F77=no
14662       hardcode_runpath_var=yes
14663       runpath_var=LD_RUN_PATH
14664       ;;
14665
14666    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14667       no_undefined_flag_F77='${wl}-z ${wl}text'
14668       if test "$GCC" = yes; then
14669         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14670       else
14671         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14672       fi
14673       runpath_var='LD_RUN_PATH'
14674       hardcode_shlibpath_var_F77=no
14675       ;;
14676
14677     sysv5*)
14678       no_undefined_flag_F77=' -z text'
14679       # $CC -shared without GNU ld will not create a library from C++
14680       # object files and a static libstdc++, better avoid it by now
14681       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14682       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14683                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14684       hardcode_libdir_flag_spec_F77=
14685       hardcode_shlibpath_var_F77=no
14686       runpath_var='LD_RUN_PATH'
14687       ;;
14688
14689     uts4*)
14690       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14691       hardcode_libdir_flag_spec_F77='-L$libdir'
14692       hardcode_shlibpath_var_F77=no
14693       ;;
14694
14695     *)
14696       ld_shlibs_F77=no
14697       ;;
14698     esac
14699   fi
14700
14701 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14702 echo "${ECHO_T}$ld_shlibs_F77" >&6
14703 test "$ld_shlibs_F77" = no && can_build_shared=no
14704
14705 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14706 if test "$GCC" = yes; then
14707   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14708 fi
14709
14710 #
14711 # Do we need to explicitly link libc?
14712 #
14713 case "x$archive_cmds_need_lc_F77" in
14714 x|xyes)
14715   # Assume -lc should be added
14716   archive_cmds_need_lc_F77=yes
14717
14718   if test "$enable_shared" = yes && test "$GCC" = yes; then
14719     case $archive_cmds_F77 in
14720     *'~'*)
14721       # FIXME: we may have to deal with multi-command sequences.
14722       ;;
14723     '$CC '*)
14724       # Test whether the compiler implicitly links with -lc since on some
14725       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14726       # to ld, don't add -lc before -lgcc.
14727       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14728 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14729       $rm conftest*
14730       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14731
14732       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14733   (eval $ac_compile) 2>&5
14734   ac_status=$?
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); } 2>conftest.err; then
14737         soname=conftest
14738         lib=conftest
14739         libobjs=conftest.$ac_objext
14740         deplibs=
14741         wl=$lt_prog_compiler_wl_F77
14742         compiler_flags=-v
14743         linker_flags=-v
14744         verstring=
14745         output_objdir=.
14746         libname=conftest
14747         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14748         allow_undefined_flag_F77=
14749         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14750   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14751   ac_status=$?
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); }
14754         then
14755           archive_cmds_need_lc_F77=no
14756         else
14757           archive_cmds_need_lc_F77=yes
14758         fi
14759         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14760       else
14761         cat conftest.err 1>&5
14762       fi
14763       $rm conftest*
14764       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14765 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14766       ;;
14767     esac
14768   fi
14769   ;;
14770 esac
14771
14772 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14773 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14774 library_names_spec=
14775 libname_spec='lib$name'
14776 soname_spec=
14777 shrext_cmds=".so"
14778 postinstall_cmds=
14779 postuninstall_cmds=
14780 finish_cmds=
14781 finish_eval=
14782 shlibpath_var=
14783 shlibpath_overrides_runpath=unknown
14784 version_type=none
14785 dynamic_linker="$host_os ld.so"
14786 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14787 if test "$GCC" = yes; then
14788   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14789   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14790     # if the path contains ";" then we assume it to be the separator
14791     # otherwise default to the standard path separator (i.e. ":") - it is
14792     # assumed that no part of a normal pathname contains ";" but that should
14793     # okay in the real world where ";" in dirpaths is itself problematic.
14794     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14795   else
14796     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14797   fi
14798 else
14799   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14800 fi
14801 need_lib_prefix=unknown
14802 hardcode_into_libs=no
14803
14804 # when you set need_version to no, make sure it does not cause -set_version
14805 # flags to be left without arguments
14806 need_version=unknown
14807
14808 case $host_os in
14809 aix3*)
14810   version_type=linux
14811   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14812   shlibpath_var=LIBPATH
14813
14814   # AIX 3 has no versioning support, so we append a major version to the name.
14815   soname_spec='${libname}${release}${shared_ext}$major'
14816   ;;
14817
14818 aix4* | aix5*)
14819   version_type=linux
14820   need_lib_prefix=no
14821   need_version=no
14822   hardcode_into_libs=yes
14823   if test "$host_cpu" = ia64; then
14824     # AIX 5 supports IA64
14825     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14826     shlibpath_var=LD_LIBRARY_PATH
14827   else
14828     # With GCC up to 2.95.x, collect2 would create an import file
14829     # for dependence libraries.  The import file would start with
14830     # the line `#! .'.  This would cause the generated library to
14831     # depend on `.', always an invalid library.  This was fixed in
14832     # development snapshots of GCC prior to 3.0.
14833     case $host_os in
14834       aix4 | aix4.[01] | aix4.[01].*)
14835       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14836            echo ' yes '
14837            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14838         :
14839       else
14840         can_build_shared=no
14841       fi
14842       ;;
14843     esac
14844     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14845     # soname into executable. Probably we can add versioning support to
14846     # collect2, so additional links can be useful in future.
14847     if test "$aix_use_runtimelinking" = yes; then
14848       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14849       # instead of lib<name>.a to let people know that these are not
14850       # typical AIX shared libraries.
14851       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852     else
14853       # We preserve .a as extension for shared libraries through AIX4.2
14854       # and later when we are not doing run time linking.
14855       library_names_spec='${libname}${release}.a $libname.a'
14856       soname_spec='${libname}${release}${shared_ext}$major'
14857     fi
14858     shlibpath_var=LIBPATH
14859   fi
14860   ;;
14861
14862 amigaos*)
14863   library_names_spec='$libname.ixlibrary $libname.a'
14864   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14865   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'
14866   ;;
14867
14868 beos*)
14869   library_names_spec='${libname}${shared_ext}'
14870   dynamic_linker="$host_os ld.so"
14871   shlibpath_var=LIBRARY_PATH
14872   ;;
14873
14874 bsdi[45]*)
14875   version_type=linux
14876   need_version=no
14877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878   soname_spec='${libname}${release}${shared_ext}$major'
14879   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14880   shlibpath_var=LD_LIBRARY_PATH
14881   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14882   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14883   # the default ld.so.conf also contains /usr/contrib/lib and
14884   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14885   # libtool to hard-code these into programs
14886   ;;
14887
14888 cygwin* | mingw* | pw32*)
14889   version_type=windows
14890   shrext_cmds=".dll"
14891   need_version=no
14892   need_lib_prefix=no
14893
14894   case $GCC,$host_os in
14895   yes,cygwin* | yes,mingw* | yes,pw32*)
14896     library_names_spec='$libname.dll.a'
14897     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14898     postinstall_cmds='base_file=`basename \${file}`~
14899       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14900       dldir=$destdir/`dirname \$dlpath`~
14901       test -d \$dldir || mkdir -p \$dldir~
14902       $install_prog $dir/$dlname \$dldir/$dlname'
14903     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14904       dlpath=$dir/\$dldll~
14905        $rm \$dlpath'
14906     shlibpath_overrides_runpath=yes
14907
14908     case $host_os in
14909     cygwin*)
14910       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14911       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14912       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14913       ;;
14914     mingw*)
14915       # MinGW DLLs use traditional 'lib' prefix
14916       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14917       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14918       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14919         # It is most probably a Windows format PATH printed by
14920         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14921         # path with ; separators, and with drive letters. We can handle the
14922         # drive letters (cygwin fileutils understands them), so leave them,
14923         # especially as we might pass files found there to a mingw objdump,
14924         # which wouldn't understand a cygwinified path. Ahh.
14925         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14926       else
14927         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14928       fi
14929       ;;
14930     pw32*)
14931       # pw32 DLLs use 'pw' prefix rather than 'lib'
14932       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14933       ;;
14934     esac
14935     ;;
14936
14937   *)
14938     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14939     ;;
14940   esac
14941   dynamic_linker='Win32 ld.exe'
14942   # FIXME: first we should search . and the directory the executable is in
14943   shlibpath_var=PATH
14944   ;;
14945
14946 darwin* | rhapsody*)
14947   dynamic_linker="$host_os dyld"
14948   version_type=darwin
14949   need_lib_prefix=no
14950   need_version=no
14951   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14952   soname_spec='${libname}${release}${major}$shared_ext'
14953   shlibpath_overrides_runpath=yes
14954   shlibpath_var=DYLD_LIBRARY_PATH
14955   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14956   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14957   if test "$GCC" = yes; then
14958     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"`
14959   else
14960     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14961   fi
14962   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14963   ;;
14964
14965 dgux*)
14966   version_type=linux
14967   need_lib_prefix=no
14968   need_version=no
14969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14970   soname_spec='${libname}${release}${shared_ext}$major'
14971   shlibpath_var=LD_LIBRARY_PATH
14972   ;;
14973
14974 freebsd1*)
14975   dynamic_linker=no
14976   ;;
14977
14978 kfreebsd*-gnu)
14979   version_type=linux
14980   need_lib_prefix=no
14981   need_version=no
14982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14983   soname_spec='${libname}${release}${shared_ext}$major'
14984   shlibpath_var=LD_LIBRARY_PATH
14985   shlibpath_overrides_runpath=no
14986   hardcode_into_libs=yes
14987   dynamic_linker='GNU ld.so'
14988   ;;
14989
14990 freebsd* | dragonfly*)
14991   # DragonFly does not have aout.  When/if they implement a new
14992   # versioning mechanism, adjust this.
14993   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14994   version_type=freebsd-$objformat
14995   case $version_type in
14996     freebsd-elf*)
14997       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14998       need_version=no
14999       need_lib_prefix=no
15000       ;;
15001     freebsd-*)
15002       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15003       need_version=yes
15004       ;;
15005   esac
15006   shlibpath_var=LD_LIBRARY_PATH
15007   case $host_os in
15008   freebsd2*)
15009     shlibpath_overrides_runpath=yes
15010     ;;
15011   freebsd3.[01]* | freebsdelf3.[01]*)
15012     shlibpath_overrides_runpath=yes
15013     hardcode_into_libs=yes
15014     ;;
15015   *) # from 3.2 on
15016     shlibpath_overrides_runpath=no
15017     hardcode_into_libs=yes
15018     ;;
15019   esac
15020   ;;
15021
15022 gnu*)
15023   version_type=linux
15024   need_lib_prefix=no
15025   need_version=no
15026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15027   soname_spec='${libname}${release}${shared_ext}$major'
15028   shlibpath_var=LD_LIBRARY_PATH
15029   hardcode_into_libs=yes
15030   ;;
15031
15032 hpux9* | hpux10* | hpux11*)
15033   # Give a soname corresponding to the major version so that dld.sl refuses to
15034   # link against other versions.
15035   version_type=sunos
15036   need_lib_prefix=no
15037   need_version=no
15038   case "$host_cpu" in
15039   ia64*)
15040     shrext_cmds='.so'
15041     hardcode_into_libs=yes
15042     dynamic_linker="$host_os dld.so"
15043     shlibpath_var=LD_LIBRARY_PATH
15044     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046     soname_spec='${libname}${release}${shared_ext}$major'
15047     if test "X$HPUX_IA64_MODE" = X32; then
15048       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15049     else
15050       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15051     fi
15052     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15053     ;;
15054    hppa*64*)
15055      shrext_cmds='.sl'
15056      hardcode_into_libs=yes
15057      dynamic_linker="$host_os dld.sl"
15058      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15059      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15060      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15061      soname_spec='${libname}${release}${shared_ext}$major'
15062      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15063      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15064      ;;
15065    *)
15066     shrext_cmds='.sl'
15067     dynamic_linker="$host_os dld.sl"
15068     shlibpath_var=SHLIB_PATH
15069     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071     soname_spec='${libname}${release}${shared_ext}$major'
15072     ;;
15073   esac
15074   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15075   postinstall_cmds='chmod 555 $lib'
15076   ;;
15077
15078 irix5* | irix6* | nonstopux*)
15079   case $host_os in
15080     nonstopux*) version_type=nonstopux ;;
15081     *)
15082         if test "$lt_cv_prog_gnu_ld" = yes; then
15083                 version_type=linux
15084         else
15085                 version_type=irix
15086         fi ;;
15087   esac
15088   need_lib_prefix=no
15089   need_version=no
15090   soname_spec='${libname}${release}${shared_ext}$major'
15091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15092   case $host_os in
15093   irix5* | nonstopux*)
15094     libsuff= shlibsuff=
15095     ;;
15096   *)
15097     case $LD in # libtool.m4 will add one of these switches to LD
15098     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15099       libsuff= shlibsuff= libmagic=32-bit;;
15100     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15101       libsuff=32 shlibsuff=N32 libmagic=N32;;
15102     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15103       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15104     *) libsuff= shlibsuff= libmagic=never-match;;
15105     esac
15106     ;;
15107   esac
15108   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15109   shlibpath_overrides_runpath=no
15110   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15111   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15112   hardcode_into_libs=yes
15113   ;;
15114
15115 # No shared lib support for Linux oldld, aout, or coff.
15116 linux*oldld* | linux*aout* | linux*coff*)
15117   dynamic_linker=no
15118   ;;
15119
15120 # This must be Linux ELF.
15121 linux*)
15122   version_type=linux
15123   need_lib_prefix=no
15124   need_version=no
15125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15126   soname_spec='${libname}${release}${shared_ext}$major'
15127   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15128   shlibpath_var=LD_LIBRARY_PATH
15129   shlibpath_overrides_runpath=no
15130   # This implies no fast_install, which is unacceptable.
15131   # Some rework will be needed to allow for fast_install
15132   # before this can be enabled.
15133   hardcode_into_libs=yes
15134
15135   # Append ld.so.conf contents to the search path
15136   if test -f /etc/ld.so.conf; then
15137     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; shopt -s nullglob; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,     ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15138     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15139   fi
15140
15141   # We used to test for /lib/ld.so.1 and disable shared libraries on
15142   # powerpc, because MkLinux only supported shared libraries with the
15143   # GNU dynamic linker.  Since this was broken with cross compilers,
15144   # most powerpc-linux boxes support dynamic linking these days and
15145   # people can always --disable-shared, the test was removed, and we
15146   # assume the GNU/Linux dynamic linker is in use.
15147   dynamic_linker='GNU/Linux ld.so'
15148   ;;
15149
15150 knetbsd*-gnu)
15151   version_type=linux
15152   need_lib_prefix=no
15153   need_version=no
15154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15155   soname_spec='${libname}${release}${shared_ext}$major'
15156   shlibpath_var=LD_LIBRARY_PATH
15157   shlibpath_overrides_runpath=no
15158   hardcode_into_libs=yes
15159   dynamic_linker='GNU ld.so'
15160   ;;
15161
15162 netbsd*)
15163   version_type=sunos
15164   need_lib_prefix=no
15165   need_version=no
15166   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15168     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15169     dynamic_linker='NetBSD (a.out) ld.so'
15170   else
15171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15172     soname_spec='${libname}${release}${shared_ext}$major'
15173     dynamic_linker='NetBSD ld.elf_so'
15174   fi
15175   shlibpath_var=LD_LIBRARY_PATH
15176   shlibpath_overrides_runpath=yes
15177   hardcode_into_libs=yes
15178   ;;
15179
15180 newsos6)
15181   version_type=linux
15182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183   shlibpath_var=LD_LIBRARY_PATH
15184   shlibpath_overrides_runpath=yes
15185   ;;
15186
15187 nto-qnx*)
15188   version_type=linux
15189   need_lib_prefix=no
15190   need_version=no
15191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192   soname_spec='${libname}${release}${shared_ext}$major'
15193   shlibpath_var=LD_LIBRARY_PATH
15194   shlibpath_overrides_runpath=yes
15195   ;;
15196
15197 openbsd*)
15198   version_type=sunos
15199   need_lib_prefix=no
15200   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15201   case $host_os in
15202     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15203     *)                         need_version=no  ;;
15204   esac
15205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15206   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15207   shlibpath_var=LD_LIBRARY_PATH
15208   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15209     case $host_os in
15210       openbsd2.[89] | openbsd2.[89].*)
15211         shlibpath_overrides_runpath=no
15212         ;;
15213       *)
15214         shlibpath_overrides_runpath=yes
15215         ;;
15216       esac
15217   else
15218     shlibpath_overrides_runpath=yes
15219   fi
15220   ;;
15221
15222 os2*)
15223   libname_spec='$name'
15224   shrext_cmds=".dll"
15225   need_lib_prefix=no
15226   library_names_spec='$libname${shared_ext} $libname.a'
15227   dynamic_linker='OS/2 ld.exe'
15228   shlibpath_var=LIBPATH
15229   ;;
15230
15231 osf3* | osf4* | osf5*)
15232   version_type=osf
15233   need_lib_prefix=no
15234   need_version=no
15235   soname_spec='${libname}${release}${shared_ext}$major'
15236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237   shlibpath_var=LD_LIBRARY_PATH
15238   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15239   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15240   ;;
15241
15242 sco3.2v5*)
15243   version_type=osf
15244   soname_spec='${libname}${release}${shared_ext}$major'
15245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246   shlibpath_var=LD_LIBRARY_PATH
15247   ;;
15248
15249 solaris*)
15250   version_type=linux
15251   need_lib_prefix=no
15252   need_version=no
15253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254   soname_spec='${libname}${release}${shared_ext}$major'
15255   shlibpath_var=LD_LIBRARY_PATH
15256   shlibpath_overrides_runpath=yes
15257   hardcode_into_libs=yes
15258   # ldd complains unless libraries are executable
15259   postinstall_cmds='chmod +x $lib'
15260   ;;
15261
15262 sunos4*)
15263   version_type=sunos
15264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15265   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15266   shlibpath_var=LD_LIBRARY_PATH
15267   shlibpath_overrides_runpath=yes
15268   if test "$with_gnu_ld" = yes; then
15269     need_lib_prefix=no
15270   fi
15271   need_version=yes
15272   ;;
15273
15274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15275   version_type=linux
15276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277   soname_spec='${libname}${release}${shared_ext}$major'
15278   shlibpath_var=LD_LIBRARY_PATH
15279   case $host_vendor in
15280     sni)
15281       shlibpath_overrides_runpath=no
15282       need_lib_prefix=no
15283       export_dynamic_flag_spec='${wl}-Blargedynsym'
15284       runpath_var=LD_RUN_PATH
15285       ;;
15286     siemens)
15287       need_lib_prefix=no
15288       ;;
15289     motorola)
15290       need_lib_prefix=no
15291       need_version=no
15292       shlibpath_overrides_runpath=no
15293       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15294       ;;
15295   esac
15296   ;;
15297
15298 sysv4*MP*)
15299   if test -d /usr/nec ;then
15300     version_type=linux
15301     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15302     soname_spec='$libname${shared_ext}.$major'
15303     shlibpath_var=LD_LIBRARY_PATH
15304   fi
15305   ;;
15306
15307 uts4*)
15308   version_type=linux
15309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15310   soname_spec='${libname}${release}${shared_ext}$major'
15311   shlibpath_var=LD_LIBRARY_PATH
15312   ;;
15313
15314 *)
15315   dynamic_linker=no
15316   ;;
15317 esac
15318 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15319 echo "${ECHO_T}$dynamic_linker" >&6
15320 test "$dynamic_linker" = no && can_build_shared=no
15321
15322 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15323 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15324 hardcode_action_F77=
15325 if test -n "$hardcode_libdir_flag_spec_F77" || \
15326    test -n "$runpath_var_F77" || \
15327    test "X$hardcode_automatic_F77" = "Xyes" ; then
15328
15329   # We can hardcode non-existant directories.
15330   if test "$hardcode_direct_F77" != no &&
15331      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15332      # have to relink, otherwise we might link with an installed library
15333      # when we should be linking with a yet-to-be-installed one
15334      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15335      test "$hardcode_minus_L_F77" != no; then
15336     # Linking always hardcodes the temporary library directory.
15337     hardcode_action_F77=relink
15338   else
15339     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15340     hardcode_action_F77=immediate
15341   fi
15342 else
15343   # We cannot hardcode anything, or else we can only hardcode existing
15344   # directories.
15345   hardcode_action_F77=unsupported
15346 fi
15347 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15348 echo "${ECHO_T}$hardcode_action_F77" >&6
15349
15350 if test "$hardcode_action_F77" = relink; then
15351   # Fast installation is not supported
15352   enable_fast_install=no
15353 elif test "$shlibpath_overrides_runpath" = yes ||
15354      test "$enable_shared" = no; then
15355   # Fast installation is not necessary
15356   enable_fast_install=needless
15357 fi
15358
15359 striplib=
15360 old_striplib=
15361 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15362 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15363 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15364   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15365   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15366   echo "$as_me:$LINENO: result: yes" >&5
15367 echo "${ECHO_T}yes" >&6
15368 else
15369 # FIXME - insert some real tests, host_os isn't really good enough
15370   case $host_os in
15371    darwin*)
15372        if test -n "$STRIP" ; then
15373          striplib="$STRIP -x"
15374          echo "$as_me:$LINENO: result: yes" >&5
15375 echo "${ECHO_T}yes" >&6
15376        else
15377   echo "$as_me:$LINENO: result: no" >&5
15378 echo "${ECHO_T}no" >&6
15379 fi
15380        ;;
15381    *)
15382   echo "$as_me:$LINENO: result: no" >&5
15383 echo "${ECHO_T}no" >&6
15384     ;;
15385   esac
15386 fi
15387
15388
15389
15390 # The else clause should only fire when bootstrapping the
15391 # libtool distribution, otherwise you forgot to ship ltmain.sh
15392 # with your package, and you will get complaints that there are
15393 # no rules to generate ltmain.sh.
15394 if test -f "$ltmain"; then
15395   # See if we are running on zsh, and set the options which allow our commands through
15396   # without removal of \ escapes.
15397   if test -n "${ZSH_VERSION+set}" ; then
15398     setopt NO_GLOB_SUBST
15399   fi
15400   # Now quote all the things that may contain metacharacters while being
15401   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15402   # variables and quote the copies for generation of the libtool script.
15403   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15404     SED SHELL STRIP \
15405     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15406     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15407     deplibs_check_method reload_flag reload_cmds need_locks \
15408     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15409     lt_cv_sys_global_symbol_to_c_name_address \
15410     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15411     old_postinstall_cmds old_postuninstall_cmds \
15412     compiler_F77 \
15413     CC_F77 \
15414     LD_F77 \
15415     lt_prog_compiler_wl_F77 \
15416     lt_prog_compiler_pic_F77 \
15417     lt_prog_compiler_static_F77 \
15418     lt_prog_compiler_no_builtin_flag_F77 \
15419     export_dynamic_flag_spec_F77 \
15420     thread_safe_flag_spec_F77 \
15421     whole_archive_flag_spec_F77 \
15422     enable_shared_with_static_runtimes_F77 \
15423     old_archive_cmds_F77 \
15424     old_archive_from_new_cmds_F77 \
15425     predep_objects_F77 \
15426     postdep_objects_F77 \
15427     predeps_F77 \
15428     postdeps_F77 \
15429     compiler_lib_search_path_F77 \
15430     archive_cmds_F77 \
15431     archive_expsym_cmds_F77 \
15432     postinstall_cmds_F77 \
15433     postuninstall_cmds_F77 \
15434     old_archive_from_expsyms_cmds_F77 \
15435     allow_undefined_flag_F77 \
15436     no_undefined_flag_F77 \
15437     export_symbols_cmds_F77 \
15438     hardcode_libdir_flag_spec_F77 \
15439     hardcode_libdir_flag_spec_ld_F77 \
15440     hardcode_libdir_separator_F77 \
15441     hardcode_automatic_F77 \
15442     module_cmds_F77 \
15443     module_expsym_cmds_F77 \
15444     lt_cv_prog_compiler_c_o_F77 \
15445     exclude_expsyms_F77 \
15446     include_expsyms_F77; do
15447
15448     case $var in
15449     old_archive_cmds_F77 | \
15450     old_archive_from_new_cmds_F77 | \
15451     archive_cmds_F77 | \
15452     archive_expsym_cmds_F77 | \
15453     module_cmds_F77 | \
15454     module_expsym_cmds_F77 | \
15455     old_archive_from_expsyms_cmds_F77 | \
15456     export_symbols_cmds_F77 | \
15457     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15458     postinstall_cmds | postuninstall_cmds | \
15459     old_postinstall_cmds | old_postuninstall_cmds | \
15460     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15461       # Double-quote double-evaled strings.
15462       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15463       ;;
15464     *)
15465       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15466       ;;
15467     esac
15468   done
15469
15470   case $lt_echo in
15471   *'\$0 --fallback-echo"')
15472     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15473     ;;
15474   esac
15475
15476 cfgfile="$ofile"
15477
15478   cat <<__EOF__ >> "$cfgfile"
15479 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15480
15481 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15482
15483 # Shell to use when invoking shell scripts.
15484 SHELL=$lt_SHELL
15485
15486 # Whether or not to build shared libraries.
15487 build_libtool_libs=$enable_shared
15488
15489 # Whether or not to build static libraries.
15490 build_old_libs=$enable_static
15491
15492 # Whether or not to add -lc for building shared libraries.
15493 build_libtool_need_lc=$archive_cmds_need_lc_F77
15494
15495 # Whether or not to disallow shared libs when runtime libs are static
15496 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15497
15498 # Whether or not to optimize for fast installation.
15499 fast_install=$enable_fast_install
15500
15501 # The host system.
15502 host_alias=$host_alias
15503 host=$host
15504 host_os=$host_os
15505
15506 # The build system.
15507 build_alias=$build_alias
15508 build=$build
15509 build_os=$build_os
15510
15511 # An echo program that does not interpret backslashes.
15512 echo=$lt_echo
15513
15514 # The archiver.
15515 AR=$lt_AR
15516 AR_FLAGS=$lt_AR_FLAGS
15517
15518 # A C compiler.
15519 LTCC=$lt_LTCC
15520
15521 # A language-specific compiler.
15522 CC=$lt_compiler_F77
15523
15524 # Is the compiler the GNU C compiler?
15525 with_gcc=$GCC_F77
15526
15527 # An ERE matcher.
15528 EGREP=$lt_EGREP
15529
15530 # The linker used to build libraries.
15531 LD=$lt_LD_F77
15532
15533 # Whether we need hard or soft links.
15534 LN_S=$lt_LN_S
15535
15536 # A BSD-compatible nm program.
15537 NM=$lt_NM
15538
15539 # A symbol stripping program
15540 STRIP=$lt_STRIP
15541
15542 # Used to examine libraries when file_magic_cmd begins "file"
15543 MAGIC_CMD=$MAGIC_CMD
15544
15545 # Used on cygwin: DLL creation program.
15546 DLLTOOL="$DLLTOOL"
15547
15548 # Used on cygwin: object dumper.
15549 OBJDUMP="$OBJDUMP"
15550
15551 # Used on cygwin: assembler.
15552 AS="$AS"
15553
15554 # The name of the directory that contains temporary libtool files.
15555 objdir=$objdir
15556
15557 # How to create reloadable object files.
15558 reload_flag=$lt_reload_flag
15559 reload_cmds=$lt_reload_cmds
15560
15561 # How to pass a linker flag through the compiler.
15562 wl=$lt_lt_prog_compiler_wl_F77
15563
15564 # Object file suffix (normally "o").
15565 objext="$ac_objext"
15566
15567 # Old archive suffix (normally "a").
15568 libext="$libext"
15569
15570 # Shared library suffix (normally ".so").
15571 shrext_cmds='$shrext_cmds'
15572
15573 # Executable file suffix (normally "").
15574 exeext="$exeext"
15575
15576 # Additional compiler flags for building library objects.
15577 pic_flag=$lt_lt_prog_compiler_pic_F77
15578 pic_mode=$pic_mode
15579
15580 # What is the maximum length of a command?
15581 max_cmd_len=$lt_cv_sys_max_cmd_len
15582
15583 # Does compiler simultaneously support -c and -o options?
15584 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15585
15586 # Must we lock files when doing compilation?
15587 need_locks=$lt_need_locks
15588
15589 # Do we need the lib prefix for modules?
15590 need_lib_prefix=$need_lib_prefix
15591
15592 # Do we need a version for libraries?
15593 need_version=$need_version
15594
15595 # Whether dlopen is supported.
15596 dlopen_support=$enable_dlopen
15597
15598 # Whether dlopen of programs is supported.
15599 dlopen_self=$enable_dlopen_self
15600
15601 # Whether dlopen of statically linked programs is supported.
15602 dlopen_self_static=$enable_dlopen_self_static
15603
15604 # Compiler flag to prevent dynamic linking.
15605 link_static_flag=$lt_lt_prog_compiler_static_F77
15606
15607 # Compiler flag to turn off builtin functions.
15608 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15609
15610 # Compiler flag to allow reflexive dlopens.
15611 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15612
15613 # Compiler flag to generate shared objects directly from archives.
15614 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15615
15616 # Compiler flag to generate thread-safe objects.
15617 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15618
15619 # Library versioning type.
15620 version_type=$version_type
15621
15622 # Format of library name prefix.
15623 libname_spec=$lt_libname_spec
15624
15625 # List of archive names.  First name is the real one, the rest are links.
15626 # The last name is the one that the linker finds with -lNAME.
15627 library_names_spec=$lt_library_names_spec
15628
15629 # The coded name of the library, if different from the real name.
15630 soname_spec=$lt_soname_spec
15631
15632 # Commands used to build and install an old-style archive.
15633 RANLIB=$lt_RANLIB
15634 old_archive_cmds=$lt_old_archive_cmds_F77
15635 old_postinstall_cmds=$lt_old_postinstall_cmds
15636 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15637
15638 # Create an old-style archive from a shared archive.
15639 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15640
15641 # Create a temporary old-style archive to link instead of a shared archive.
15642 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15643
15644 # Commands used to build and install a shared archive.
15645 archive_cmds=$lt_archive_cmds_F77
15646 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15647 postinstall_cmds=$lt_postinstall_cmds
15648 postuninstall_cmds=$lt_postuninstall_cmds
15649
15650 # Commands used to build a loadable module (assumed same as above if empty)
15651 module_cmds=$lt_module_cmds_F77
15652 module_expsym_cmds=$lt_module_expsym_cmds_F77
15653
15654 # Commands to strip libraries.
15655 old_striplib=$lt_old_striplib
15656 striplib=$lt_striplib
15657
15658 # Dependencies to place before the objects being linked to create a
15659 # shared library.
15660 predep_objects=$lt_predep_objects_F77
15661
15662 # Dependencies to place after the objects being linked to create a
15663 # shared library.
15664 postdep_objects=$lt_postdep_objects_F77
15665
15666 # Dependencies to place before the objects being linked to create a
15667 # shared library.
15668 predeps=$lt_predeps_F77
15669
15670 # Dependencies to place after the objects being linked to create a
15671 # shared library.
15672 postdeps=$lt_postdeps_F77
15673
15674 # The library search path used internally by the compiler when linking
15675 # a shared library.
15676 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15677
15678 # Method to check whether dependent libraries are shared objects.
15679 deplibs_check_method=$lt_deplibs_check_method
15680
15681 # Command to use when deplibs_check_method == file_magic.
15682 file_magic_cmd=$lt_file_magic_cmd
15683
15684 # Flag that allows shared libraries with undefined symbols to be built.
15685 allow_undefined_flag=$lt_allow_undefined_flag_F77
15686
15687 # Flag that forces no undefined symbols.
15688 no_undefined_flag=$lt_no_undefined_flag_F77
15689
15690 # Commands used to finish a libtool library installation in a directory.
15691 finish_cmds=$lt_finish_cmds
15692
15693 # Same as above, but a single script fragment to be evaled but not shown.
15694 finish_eval=$lt_finish_eval
15695
15696 # Take the output of nm and produce a listing of raw symbols and C names.
15697 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15698
15699 # Transform the output of nm in a proper C declaration
15700 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15701
15702 # Transform the output of nm in a C name address pair
15703 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15704
15705 # This is the shared library runtime path variable.
15706 runpath_var=$runpath_var
15707
15708 # This is the shared library path variable.
15709 shlibpath_var=$shlibpath_var
15710
15711 # Is shlibpath searched before the hard-coded library search path?
15712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15713
15714 # How to hardcode a shared library path into an executable.
15715 hardcode_action=$hardcode_action_F77
15716
15717 # Whether we should hardcode library paths into libraries.
15718 hardcode_into_libs=$hardcode_into_libs
15719
15720 # Flag to hardcode \$libdir into a binary during linking.
15721 # This must work even if \$libdir does not exist.
15722 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15723
15724 # If ld is used when linking, flag to hardcode \$libdir into
15725 # a binary during linking. This must work even if \$libdir does
15726 # not exist.
15727 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15728
15729 # Whether we need a single -rpath flag with a separated argument.
15730 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15731
15732 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15733 # resulting binary.
15734 hardcode_direct=$hardcode_direct_F77
15735
15736 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15737 # resulting binary.
15738 hardcode_minus_L=$hardcode_minus_L_F77
15739
15740 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15741 # the resulting binary.
15742 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15743
15744 # Set to yes if building a shared library automatically hardcodes DIR into the library
15745 # and all subsequent libraries and executables linked against it.
15746 hardcode_automatic=$hardcode_automatic_F77
15747
15748 # Variables whose values should be saved in libtool wrapper scripts and
15749 # restored at relink time.
15750 variables_saved_for_relink="$variables_saved_for_relink"
15751
15752 # Whether libtool must link a program against all its dependency libraries.
15753 link_all_deplibs=$link_all_deplibs_F77
15754
15755 # Compile-time system search path for libraries
15756 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15757
15758 # Run-time system search path for libraries
15759 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15760
15761 # Fix the shell variable \$srcfile for the compiler.
15762 fix_srcfile_path="$fix_srcfile_path_F77"
15763
15764 # Set to yes if exported symbols are required.
15765 always_export_symbols=$always_export_symbols_F77
15766
15767 # The commands to list exported symbols.
15768 export_symbols_cmds=$lt_export_symbols_cmds_F77
15769
15770 # The commands to extract the exported symbol list from a shared archive.
15771 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15772
15773 # Symbols that should not be listed in the preloaded symbols.
15774 exclude_expsyms=$lt_exclude_expsyms_F77
15775
15776 # Symbols that must always be exported.
15777 include_expsyms=$lt_include_expsyms_F77
15778
15779 # ### END LIBTOOL TAG CONFIG: $tagname
15780
15781 __EOF__
15782
15783
15784 else
15785   # If there is no Makefile yet, we rely on a make rule to execute
15786   # `config.status --recheck' to rerun these tests and create the
15787   # libtool script then.
15788   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15789   if test -f "$ltmain_in"; then
15790     test -f Makefile && make "$ltmain"
15791   fi
15792 fi
15793
15794
15795 ac_ext=c
15796 ac_cpp='$CPP $CPPFLAGS'
15797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15800
15801 CC="$lt_save_CC"
15802
15803         else
15804           tagname=""
15805         fi
15806         ;;
15807
15808       GCJ)
15809         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15810
15811
15812
15813 # Source file extension for Java test sources.
15814 ac_ext=java
15815
15816 # Object file extension for compiled Java test sources.
15817 objext=o
15818 objext_GCJ=$objext
15819
15820 # Code to be used in simple compile tests
15821 lt_simple_compile_test_code="class foo {}\n"
15822
15823 # Code to be used in simple link tests
15824 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15825
15826 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15827
15828 # If no C compiler was specified, use CC.
15829 LTCC=${LTCC-"$CC"}
15830
15831 # Allow CC to be a program name with arguments.
15832 compiler=$CC
15833
15834
15835 # save warnings/boilerplate of simple test code
15836 ac_outfile=conftest.$ac_objext
15837 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15838 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15839 _lt_compiler_boilerplate=`cat conftest.err`
15840 $rm conftest*
15841
15842 ac_outfile=conftest.$ac_objext
15843 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15844 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15845 _lt_linker_boilerplate=`cat conftest.err`
15846 $rm conftest*
15847
15848
15849 # Allow CC to be a program name with arguments.
15850 lt_save_CC="$CC"
15851 CC=${GCJ-"gcj"}
15852 compiler=$CC
15853 compiler_GCJ=$CC
15854 for cc_temp in $compiler""; do
15855   case $cc_temp in
15856     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15857     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15858     \-*) ;;
15859     *) break;;
15860   esac
15861 done
15862 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15863
15864
15865 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15866 archive_cmds_need_lc_GCJ=no
15867
15868 old_archive_cmds_GCJ=$old_archive_cmds
15869
15870
15871 lt_prog_compiler_no_builtin_flag_GCJ=
15872
15873 if test "$GCC" = yes; then
15874   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15875
15876
15877 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15878 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15879 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15880   echo $ECHO_N "(cached) $ECHO_C" >&6
15881 else
15882   lt_cv_prog_compiler_rtti_exceptions=no
15883   ac_outfile=conftest.$ac_objext
15884    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15885    lt_compiler_flag="-fno-rtti -fno-exceptions"
15886    # Insert the option either (1) after the last *FLAGS variable, or
15887    # (2) before a word containing "conftest.", or (3) at the end.
15888    # Note that $ac_compile itself does not contain backslashes and begins
15889    # with a dollar sign (not a hyphen), so the echo should work correctly.
15890    # The option is referenced via a variable to avoid confusing sed.
15891    lt_compile=`echo "$ac_compile" | $SED \
15892    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15894    -e 's:$: $lt_compiler_flag:'`
15895    (eval echo "\"\$as_me:15895: $lt_compile\"" >&5)
15896    (eval "$lt_compile" 2>conftest.err)
15897    ac_status=$?
15898    cat conftest.err >&5
15899    echo "$as_me:15899: \$? = $ac_status" >&5
15900    if (exit $ac_status) && test -s "$ac_outfile"; then
15901      # The compiler can only warn and ignore the option if not recognized
15902      # So say no if there are warnings other than the usual output.
15903      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15904      $SED '/^$/d' conftest.err >conftest.er2
15905      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15906        lt_cv_prog_compiler_rtti_exceptions=yes
15907      fi
15908    fi
15909    $rm conftest*
15910
15911 fi
15912 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15913 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15914
15915 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15916     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15917 else
15918     :
15919 fi
15920
15921 fi
15922
15923 lt_prog_compiler_wl_GCJ=
15924 lt_prog_compiler_pic_GCJ=
15925 lt_prog_compiler_static_GCJ=
15926
15927 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15928 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15929
15930   if test "$GCC" = yes; then
15931     lt_prog_compiler_wl_GCJ='-Wl,'
15932     lt_prog_compiler_static_GCJ='-static'
15933
15934     case $host_os in
15935       aix*)
15936       # All AIX code is PIC.
15937       if test "$host_cpu" = ia64; then
15938         # AIX 5 now supports IA64 processor
15939         lt_prog_compiler_static_GCJ='-Bstatic'
15940       fi
15941       ;;
15942
15943     amigaos*)
15944       # FIXME: we need at least 68020 code to build shared libraries, but
15945       # adding the `-m68020' flag to GCC prevents building anything better,
15946       # like `-m68040'.
15947       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15948       ;;
15949
15950     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15951       # PIC is the default for these OSes.
15952       ;;
15953
15954     mingw* | pw32* | os2*)
15955       # This hack is so that the source file can tell whether it is being
15956       # built for inclusion in a dll (and should export symbols for example).
15957       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15958       ;;
15959
15960     darwin* | rhapsody*)
15961       # PIC is the default on this platform
15962       # Common symbols not allowed in MH_DYLIB files
15963       lt_prog_compiler_pic_GCJ='-fno-common'
15964       ;;
15965
15966     msdosdjgpp*)
15967       # Just because we use GCC doesn't mean we suddenly get shared libraries
15968       # on systems that don't support them.
15969       lt_prog_compiler_can_build_shared_GCJ=no
15970       enable_shared=no
15971       ;;
15972
15973     sysv4*MP*)
15974       if test -d /usr/nec; then
15975         lt_prog_compiler_pic_GCJ=-Kconform_pic
15976       fi
15977       ;;
15978
15979     hpux*)
15980       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15981       # not for PA HP-UX.
15982       case "$host_cpu" in
15983       hppa*64*|ia64*)
15984         # +Z the default
15985         ;;
15986       *)
15987         lt_prog_compiler_pic_GCJ='-fPIC'
15988         ;;
15989       esac
15990       ;;
15991
15992     *)
15993       lt_prog_compiler_pic_GCJ='-fPIC'
15994       ;;
15995     esac
15996   else
15997     # PORTME Check for flag to pass linker flags through the system compiler.
15998     case $host_os in
15999     aix*)
16000       lt_prog_compiler_wl_GCJ='-Wl,'
16001       if test "$host_cpu" = ia64; then
16002         # AIX 5 now supports IA64 processor
16003         lt_prog_compiler_static_GCJ='-Bstatic'
16004       else
16005         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16006       fi
16007       ;;
16008       darwin*)
16009         # PIC is the default on this platform
16010         # Common symbols not allowed in MH_DYLIB files
16011        case $cc_basename in
16012          xlc*)
16013          lt_prog_compiler_pic_GCJ='-qnocommon'
16014          lt_prog_compiler_wl_GCJ='-Wl,'
16015          ;;
16016        esac
16017        ;;
16018
16019     mingw* | pw32* | os2*)
16020       # This hack is so that the source file can tell whether it is being
16021       # built for inclusion in a dll (and should export symbols for example).
16022       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16023       ;;
16024
16025     hpux9* | hpux10* | hpux11*)
16026       lt_prog_compiler_wl_GCJ='-Wl,'
16027       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16028       # not for PA HP-UX.
16029       case "$host_cpu" in
16030       hppa*64*|ia64*)
16031         # +Z the default
16032         ;;
16033       *)
16034         lt_prog_compiler_pic_GCJ='+Z'
16035         ;;
16036       esac
16037       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16038       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16039       ;;
16040
16041     irix5* | irix6* | nonstopux*)
16042       lt_prog_compiler_wl_GCJ='-Wl,'
16043       # PIC (with -KPIC) is the default.
16044       lt_prog_compiler_static_GCJ='-non_shared'
16045       ;;
16046
16047     newsos6)
16048       lt_prog_compiler_pic_GCJ='-KPIC'
16049       lt_prog_compiler_static_GCJ='-Bstatic'
16050       ;;
16051
16052     linux*)
16053       case $cc_basename in
16054       icc* | ecc*)
16055         lt_prog_compiler_wl_GCJ='-Wl,'
16056         lt_prog_compiler_pic_GCJ='-KPIC'
16057         lt_prog_compiler_static_GCJ='-static'
16058         ;;
16059       pgcc* | pgf77* | pgf90*)
16060         # Portland Group compilers (*not* the Pentium gcc compiler,
16061         # which looks to be a dead project)
16062         lt_prog_compiler_wl_GCJ='-Wl,'
16063         lt_prog_compiler_pic_GCJ='-fpic'
16064         lt_prog_compiler_static_GCJ='-static'
16065         ;;
16066       ccc*)
16067         lt_prog_compiler_wl_GCJ='-Wl,'
16068         # All Alpha code is PIC.
16069         lt_prog_compiler_static_GCJ='-non_shared'
16070         ;;
16071       esac
16072       ;;
16073
16074     osf3* | osf4* | osf5*)
16075       lt_prog_compiler_wl_GCJ='-Wl,'
16076       # All OSF/1 code is PIC.
16077       lt_prog_compiler_static_GCJ='-non_shared'
16078       ;;
16079
16080     sco3.2v5*)
16081       lt_prog_compiler_pic_GCJ='-Kpic'
16082       lt_prog_compiler_static_GCJ='-dn'
16083       ;;
16084
16085     solaris*)
16086       lt_prog_compiler_pic_GCJ='-KPIC'
16087       lt_prog_compiler_static_GCJ='-Bstatic'
16088       case $cc_basename in
16089       f77* | f90* | f95*)
16090         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16091       *)
16092         lt_prog_compiler_wl_GCJ='-Wl,';;
16093       esac
16094       ;;
16095
16096     sunos4*)
16097       lt_prog_compiler_wl_GCJ='-Qoption ld '
16098       lt_prog_compiler_pic_GCJ='-PIC'
16099       lt_prog_compiler_static_GCJ='-Bstatic'
16100       ;;
16101
16102     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16103       lt_prog_compiler_wl_GCJ='-Wl,'
16104       lt_prog_compiler_pic_GCJ='-KPIC'
16105       lt_prog_compiler_static_GCJ='-Bstatic'
16106       ;;
16107
16108     sysv4*MP*)
16109       if test -d /usr/nec ;then
16110         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16111         lt_prog_compiler_static_GCJ='-Bstatic'
16112       fi
16113       ;;
16114
16115     unicos*)
16116       lt_prog_compiler_wl_GCJ='-Wl,'
16117       lt_prog_compiler_can_build_shared_GCJ=no
16118       ;;
16119
16120     uts4*)
16121       lt_prog_compiler_pic_GCJ='-pic'
16122       lt_prog_compiler_static_GCJ='-Bstatic'
16123       ;;
16124
16125     *)
16126       lt_prog_compiler_can_build_shared_GCJ=no
16127       ;;
16128     esac
16129   fi
16130
16131 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16132 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16133
16134 #
16135 # Check to make sure the PIC flag actually works.
16136 #
16137 if test -n "$lt_prog_compiler_pic_GCJ"; then
16138
16139 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16140 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16141 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16142   echo $ECHO_N "(cached) $ECHO_C" >&6
16143 else
16144   lt_prog_compiler_pic_works_GCJ=no
16145   ac_outfile=conftest.$ac_objext
16146    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16147    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16148    # Insert the option either (1) after the last *FLAGS variable, or
16149    # (2) before a word containing "conftest.", or (3) at the end.
16150    # Note that $ac_compile itself does not contain backslashes and begins
16151    # with a dollar sign (not a hyphen), so the echo should work correctly.
16152    # The option is referenced via a variable to avoid confusing sed.
16153    lt_compile=`echo "$ac_compile" | $SED \
16154    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16155    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16156    -e 's:$: $lt_compiler_flag:'`
16157    (eval echo "\"\$as_me:16157: $lt_compile\"" >&5)
16158    (eval "$lt_compile" 2>conftest.err)
16159    ac_status=$?
16160    cat conftest.err >&5
16161    echo "$as_me:16161: \$? = $ac_status" >&5
16162    if (exit $ac_status) && test -s "$ac_outfile"; then
16163      # The compiler can only warn and ignore the option if not recognized
16164      # So say no if there are warnings other than the usual output.
16165      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16166      $SED '/^$/d' conftest.err >conftest.er2
16167      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16168        lt_prog_compiler_pic_works_GCJ=yes
16169      fi
16170    fi
16171    $rm conftest*
16172
16173 fi
16174 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16175 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16176
16177 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16178     case $lt_prog_compiler_pic_GCJ in
16179      "" | " "*) ;;
16180      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16181      esac
16182 else
16183     lt_prog_compiler_pic_GCJ=
16184      lt_prog_compiler_can_build_shared_GCJ=no
16185 fi
16186
16187 fi
16188 case "$host_os" in
16189   # For platforms which do not support PIC, -DPIC is meaningless:
16190   *djgpp*)
16191     lt_prog_compiler_pic_GCJ=
16192     ;;
16193   *)
16194     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16195     ;;
16196 esac
16197
16198 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16199 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16200 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16201   echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203   lt_cv_prog_compiler_c_o_GCJ=no
16204    $rm -r conftest 2>/dev/null
16205    mkdir conftest
16206    cd conftest
16207    mkdir out
16208    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16209
16210    lt_compiler_flag="-o out/conftest2.$ac_objext"
16211    # Insert the option either (1) after the last *FLAGS variable, or
16212    # (2) before a word containing "conftest.", or (3) at the end.
16213    # Note that $ac_compile itself does not contain backslashes and begins
16214    # with a dollar sign (not a hyphen), so the echo should work correctly.
16215    lt_compile=`echo "$ac_compile" | $SED \
16216    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16217    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16218    -e 's:$: $lt_compiler_flag:'`
16219    (eval echo "\"\$as_me:16219: $lt_compile\"" >&5)
16220    (eval "$lt_compile" 2>out/conftest.err)
16221    ac_status=$?
16222    cat out/conftest.err >&5
16223    echo "$as_me:16223: \$? = $ac_status" >&5
16224    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16225    then
16226      # The compiler can only warn and ignore the option if not recognized
16227      # So say no if there are warnings
16228      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16229      $SED '/^$/d' out/conftest.err >out/conftest.er2
16230      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16231        lt_cv_prog_compiler_c_o_GCJ=yes
16232      fi
16233    fi
16234    chmod u+w .
16235    $rm conftest*
16236    # SGI C++ compiler will create directory out/ii_files/ for
16237    # template instantiation
16238    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16239    $rm out/* && rmdir out
16240    cd ..
16241    rmdir conftest
16242    $rm conftest*
16243
16244 fi
16245 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16246 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16247
16248
16249 hard_links="nottested"
16250 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16251   # do not overwrite the value of need_locks provided by the user
16252   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16253 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16254   hard_links=yes
16255   $rm conftest*
16256   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16257   touch conftest.a
16258   ln conftest.a conftest.b 2>&5 || hard_links=no
16259   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16260   echo "$as_me:$LINENO: result: $hard_links" >&5
16261 echo "${ECHO_T}$hard_links" >&6
16262   if test "$hard_links" = no; then
16263     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16264 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16265     need_locks=warn
16266   fi
16267 else
16268   need_locks=no
16269 fi
16270
16271 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16272 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16273
16274   runpath_var=
16275   allow_undefined_flag_GCJ=
16276   enable_shared_with_static_runtimes_GCJ=no
16277   archive_cmds_GCJ=
16278   archive_expsym_cmds_GCJ=
16279   old_archive_From_new_cmds_GCJ=
16280   old_archive_from_expsyms_cmds_GCJ=
16281   export_dynamic_flag_spec_GCJ=
16282   whole_archive_flag_spec_GCJ=
16283   thread_safe_flag_spec_GCJ=
16284   hardcode_libdir_flag_spec_GCJ=
16285   hardcode_libdir_flag_spec_ld_GCJ=
16286   hardcode_libdir_separator_GCJ=
16287   hardcode_direct_GCJ=no
16288   hardcode_minus_L_GCJ=no
16289   hardcode_shlibpath_var_GCJ=unsupported
16290   link_all_deplibs_GCJ=unknown
16291   hardcode_automatic_GCJ=no
16292   module_cmds_GCJ=
16293   module_expsym_cmds_GCJ=
16294   always_export_symbols_GCJ=no
16295   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16296   # include_expsyms should be a list of space-separated symbols to be *always*
16297   # included in the symbol list
16298   include_expsyms_GCJ=
16299   # exclude_expsyms can be an extended regexp of symbols to exclude
16300   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16301   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16302   # as well as any symbol that contains `d'.
16303   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16304   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16305   # platforms (ab)use it in PIC code, but their linkers get confused if
16306   # the symbol is explicitly referenced.  Since portable code cannot
16307   # rely on this symbol name, it's probably fine to never include it in
16308   # preloaded symbol tables.
16309   extract_expsyms_cmds=
16310   # Just being paranoid about ensuring that cc_basename is set.
16311   for cc_temp in $compiler""; do
16312   case $cc_temp in
16313     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16314     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16315     \-*) ;;
16316     *) break;;
16317   esac
16318 done
16319 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16320
16321   case $host_os in
16322   cygwin* | mingw* | pw32*)
16323     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16324     # When not using gcc, we currently assume that we are using
16325     # Microsoft Visual C++.
16326     if test "$GCC" != yes; then
16327       with_gnu_ld=no
16328     fi
16329     ;;
16330   openbsd*)
16331     with_gnu_ld=no
16332     ;;
16333   esac
16334
16335   ld_shlibs_GCJ=yes
16336   if test "$with_gnu_ld" = yes; then
16337     # If archive_cmds runs LD, not CC, wlarc should be empty
16338     wlarc='${wl}'
16339
16340     # Set some defaults for GNU ld with shared library support. These
16341     # are reset later if shared libraries are not supported. Putting them
16342     # here allows them to be overridden if necessary.
16343     runpath_var=LD_RUN_PATH
16344     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16345     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16346     # ancient GNU ld didn't support --whole-archive et. al.
16347     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16348         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16349       else
16350         whole_archive_flag_spec_GCJ=
16351     fi
16352     supports_anon_versioning=no
16353     case `$LD -v 2>/dev/null` in
16354       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16355       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16356       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16357       *\ 2.11.*) ;; # other 2.11 versions
16358       *) supports_anon_versioning=yes ;;
16359     esac
16360
16361     # See if GNU ld supports shared libraries.
16362     case $host_os in
16363     aix3* | aix4* | aix5*)
16364       # On AIX/PPC, the GNU linker is very broken
16365       if test "$host_cpu" != ia64; then
16366         ld_shlibs_GCJ=no
16367         cat <<EOF 1>&2
16368
16369 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16370 *** to be unable to reliably create shared libraries on AIX.
16371 *** Therefore, libtool is disabling shared libraries support.  If you
16372 *** really care for shared libraries, you may want to modify your PATH
16373 *** so that a non-GNU linker is found, and then restart.
16374
16375 EOF
16376       fi
16377       ;;
16378
16379     amigaos*)
16380       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)'
16381       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16382       hardcode_minus_L_GCJ=yes
16383
16384       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16385       # that the semantics of dynamic libraries on AmigaOS, at least up
16386       # to version 4, is to share data among multiple programs linked
16387       # with the same dynamic library.  Since this doesn't match the
16388       # behavior of shared libraries on other platforms, we can't use
16389       # them.
16390       ld_shlibs_GCJ=no
16391       ;;
16392
16393     beos*)
16394       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16395         allow_undefined_flag_GCJ=unsupported
16396         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16397         # support --undefined.  This deserves some investigation.  FIXME
16398         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16399       else
16400         ld_shlibs_GCJ=no
16401       fi
16402       ;;
16403
16404     cygwin* | mingw* | pw32*)
16405       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16406       # as there is no search path for DLLs.
16407       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16408       allow_undefined_flag_GCJ=unsupported
16409       always_export_symbols_GCJ=no
16410       enable_shared_with_static_runtimes_GCJ=yes
16411       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16412
16413       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16414         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16415         # If the export-symbols file already is a .def file (1st line
16416         # is EXPORTS), use it as is; otherwise, prepend...
16417         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16418           cp $export_symbols $output_objdir/$soname.def;
16419         else
16420           echo EXPORTS > $output_objdir/$soname.def;
16421           cat $export_symbols >> $output_objdir/$soname.def;
16422         fi~
16423         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16424       else
16425         ld_shlibs_GCJ=no
16426       fi
16427       ;;
16428
16429     linux*)
16430       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16431         tmp_addflag=
16432         case $cc_basename,$host_cpu in
16433         pgcc*)                          # Portland Group C compiler
16434           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16435           tmp_addflag=' $pic_flag'
16436           ;;
16437         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16438           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16439           tmp_addflag=' $pic_flag -Mnomain' ;;
16440         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16441           tmp_addflag=' -i_dynamic' ;;
16442         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16443           tmp_addflag=' -i_dynamic -nofor_main' ;;
16444         ifc* | ifort*)                  # Intel Fortran compiler
16445           tmp_addflag=' -nofor_main' ;;
16446         esac
16447         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16448
16449         if test $supports_anon_versioning = yes; then
16450           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16451   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16452   $echo "local: *; };" >> $output_objdir/$libname.ver~
16453           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16454         fi
16455       else
16456         ld_shlibs_GCJ=no
16457       fi
16458       ;;
16459
16460     netbsd*)
16461       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16462         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16463         wlarc=
16464       else
16465         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16466         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16467       fi
16468       ;;
16469
16470     solaris* | sysv5*)
16471       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16472         ld_shlibs_GCJ=no
16473         cat <<EOF 1>&2
16474
16475 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16476 *** create shared libraries on Solaris systems.  Therefore, libtool
16477 *** is disabling shared libraries support.  We urge you to upgrade GNU
16478 *** binutils to release 2.9.1 or newer.  Another option is to modify
16479 *** your PATH or compiler configuration so that the native linker is
16480 *** used, and then restart.
16481
16482 EOF
16483       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16484         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16485         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16486       else
16487         ld_shlibs_GCJ=no
16488       fi
16489       ;;
16490
16491     sunos4*)
16492       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16493       wlarc=
16494       hardcode_direct_GCJ=yes
16495       hardcode_shlibpath_var_GCJ=no
16496       ;;
16497
16498     *)
16499       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16500         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16502       else
16503         ld_shlibs_GCJ=no
16504       fi
16505       ;;
16506     esac
16507
16508     if test "$ld_shlibs_GCJ" = no; then
16509       runpath_var=
16510       hardcode_libdir_flag_spec_GCJ=
16511       export_dynamic_flag_spec_GCJ=
16512       whole_archive_flag_spec_GCJ=
16513     fi
16514   else
16515     # PORTME fill in a description of your system's linker (not GNU ld)
16516     case $host_os in
16517     aix3*)
16518       allow_undefined_flag_GCJ=unsupported
16519       always_export_symbols_GCJ=yes
16520       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'
16521       # Note: this linker hardcodes the directories in LIBPATH if there
16522       # are no directories specified by -L.
16523       hardcode_minus_L_GCJ=yes
16524       if test "$GCC" = yes && test -z "$link_static_flag"; then
16525         # Neither direct hardcoding nor static linking is supported with a
16526         # broken collect2.
16527         hardcode_direct_GCJ=unsupported
16528       fi
16529       ;;
16530
16531     aix4* | aix5*)
16532       if test "$host_cpu" = ia64; then
16533         # On IA64, the linker does run time linking by default, so we don't
16534         # have to do anything special.
16535         aix_use_runtimelinking=no
16536         exp_sym_flag='-Bexport'
16537         no_entry_flag=""
16538       else
16539         # If we're using GNU nm, then we don't want the "-C" option.
16540         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16541         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16542           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'
16543         else
16544           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'
16545         fi
16546         aix_use_runtimelinking=no
16547
16548         # Test if we are trying to use run time linking or normal
16549         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16550         # need to do runtime linking.
16551         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16552           for ld_flag in $LDFLAGS; do
16553           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16554             aix_use_runtimelinking=yes
16555             break
16556           fi
16557           done
16558         esac
16559
16560         exp_sym_flag='-bexport'
16561         no_entry_flag='-bnoentry'
16562       fi
16563
16564       # When large executables or shared objects are built, AIX ld can
16565       # have problems creating the table of contents.  If linking a library
16566       # or program results in "error TOC overflow" add -mminimal-toc to
16567       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16568       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16569
16570       archive_cmds_GCJ=''
16571       hardcode_direct_GCJ=yes
16572       hardcode_libdir_separator_GCJ=':'
16573       link_all_deplibs_GCJ=yes
16574
16575       if test "$GCC" = yes; then
16576         case $host_os in aix4.[012]|aix4.[012].*)
16577         # We only want to do this on AIX 4.2 and lower, the check
16578         # below for broken collect2 doesn't work under 4.3+
16579           collect2name=`${CC} -print-prog-name=collect2`
16580           if test -f "$collect2name" && \
16581            strings "$collect2name" | grep resolve_lib_name >/dev/null
16582           then
16583           # We have reworked collect2
16584           hardcode_direct_GCJ=yes
16585           else
16586           # We have old collect2
16587           hardcode_direct_GCJ=unsupported
16588           # It fails to find uninstalled libraries when the uninstalled
16589           # path is not listed in the libpath.  Setting hardcode_minus_L
16590           # to unsupported forces relinking
16591           hardcode_minus_L_GCJ=yes
16592           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16593           hardcode_libdir_separator_GCJ=
16594           fi
16595         esac
16596         shared_flag='-shared'
16597         if test "$aix_use_runtimelinking" = yes; then
16598           shared_flag="$shared_flag "'${wl}-G'
16599         fi
16600       else
16601         # not using gcc
16602         if test "$host_cpu" = ia64; then
16603         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16604         # chokes on -Wl,-G. The following line is correct:
16605           shared_flag='-G'
16606         else
16607         if test "$aix_use_runtimelinking" = yes; then
16608             shared_flag='${wl}-G'
16609           else
16610             shared_flag='${wl}-bM:SRE'
16611         fi
16612         fi
16613       fi
16614
16615       # It seems that -bexpall does not export symbols beginning with
16616       # underscore (_), so it is better to generate a list of symbols to export.
16617       always_export_symbols_GCJ=yes
16618       if test "$aix_use_runtimelinking" = yes; then
16619         # Warning - without using the other runtime loading flags (-brtl),
16620         # -berok will link without error, but may produce a broken library.
16621         allow_undefined_flag_GCJ='-berok'
16622        # Determine the default libpath from the value encoded in an empty executable.
16623        cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h.  */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h.  */
16629
16630 int
16631 main ()
16632 {
16633
16634   ;
16635   return 0;
16636 }
16637 _ACEOF
16638 rm -f conftest.$ac_objext conftest$ac_exeext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640   (eval $ac_link) 2>conftest.er1
16641   ac_status=$?
16642   grep -v '^ *+' conftest.er1 >conftest.err
16643   rm -f conftest.er1
16644   cat conftest.err >&5
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } &&
16647          { ac_try='test -z "$ac_c_werror_flag"
16648                          || test ! -s conftest.err'
16649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650   (eval $ac_try) 2>&5
16651   ac_status=$?
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); }; } &&
16654          { ac_try='test -s conftest$ac_exeext'
16655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656   (eval $ac_try) 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; }; then
16660
16661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16662 }'`
16663 # Check for a 64-bit object if we didn't find anything.
16664 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; }
16665 }'`; fi
16666 else
16667   echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16669
16670 fi
16671 rm -f conftest.err conftest.$ac_objext \
16672       conftest$ac_exeext conftest.$ac_ext
16673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16674
16675        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16676         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"
16677        else
16678         if test "$host_cpu" = ia64; then
16679           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16680           allow_undefined_flag_GCJ="-z nodefs"
16681           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"
16682         else
16683          # Determine the default libpath from the value encoded in an empty executable.
16684          cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h.  */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h.  */
16690
16691 int
16692 main ()
16693 {
16694
16695   ;
16696   return 0;
16697 }
16698 _ACEOF
16699 rm -f conftest.$ac_objext conftest$ac_exeext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16701   (eval $ac_link) 2>conftest.er1
16702   ac_status=$?
16703   grep -v '^ *+' conftest.er1 >conftest.err
16704   rm -f conftest.er1
16705   cat conftest.err >&5
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); } &&
16708          { ac_try='test -z "$ac_c_werror_flag"
16709                          || test ! -s conftest.err'
16710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711   (eval $ac_try) 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; } &&
16715          { ac_try='test -s conftest$ac_exeext'
16716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717   (eval $ac_try) 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; }; then
16721
16722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16723 }'`
16724 # Check for a 64-bit object if we didn't find anything.
16725 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; }
16726 }'`; fi
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 fi
16732 rm -f conftest.err conftest.$ac_objext \
16733       conftest$ac_exeext conftest.$ac_ext
16734 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16735
16736          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16737           # Warning - without using the other run time loading flags,
16738           # -berok will link without error, but may produce a broken library.
16739           no_undefined_flag_GCJ=' ${wl}-bernotok'
16740           allow_undefined_flag_GCJ=' ${wl}-berok'
16741           # -bexpall does not export symbols beginning with underscore (_)
16742           always_export_symbols_GCJ=yes
16743           # Exported symbols can be pulled into shared objects from archives
16744           whole_archive_flag_spec_GCJ=' '
16745           archive_cmds_need_lc_GCJ=yes
16746           # This is similar to how AIX traditionally builds it's shared libraries.
16747           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'
16748         fi
16749       fi
16750       ;;
16751
16752     amigaos*)
16753       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)'
16754       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16755       hardcode_minus_L_GCJ=yes
16756       # see comment about different semantics on the GNU ld section
16757       ld_shlibs_GCJ=no
16758       ;;
16759
16760     bsdi[45]*)
16761       export_dynamic_flag_spec_GCJ=-rdynamic
16762       ;;
16763
16764     cygwin* | mingw* | pw32*)
16765       # When not using gcc, we currently assume that we are using
16766       # Microsoft Visual C++.
16767       # hardcode_libdir_flag_spec is actually meaningless, as there is
16768       # no search path for DLLs.
16769       hardcode_libdir_flag_spec_GCJ=' '
16770       allow_undefined_flag_GCJ=unsupported
16771       # Tell ltmain to make .lib files, not .a files.
16772       libext=lib
16773       # Tell ltmain to make .dll files, not .so files.
16774       shrext_cmds=".dll"
16775       # FIXME: Setting linknames here is a bad hack.
16776       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16777       # The linker will automatically build a .lib file if we build a DLL.
16778       old_archive_From_new_cmds_GCJ='true'
16779       # FIXME: Should let the user specify the lib program.
16780       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16781       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16782       enable_shared_with_static_runtimes_GCJ=yes
16783       ;;
16784
16785     darwin* | rhapsody*)
16786       case "$host_os" in
16787         rhapsody* | darwin1.[012])
16788          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16789          ;;
16790        *) # Darwin 1.3 on
16791          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16792            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16793          else
16794            case ${MACOSX_DEPLOYMENT_TARGET} in
16795              10.[012])
16796                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16797                ;;
16798              10.*)
16799                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16800                ;;
16801            esac
16802          fi
16803          ;;
16804       esac
16805       archive_cmds_need_lc_GCJ=no
16806       hardcode_direct_GCJ=no
16807       hardcode_automatic_GCJ=yes
16808       hardcode_shlibpath_var_GCJ=unsupported
16809       whole_archive_flag_spec_GCJ=''
16810       link_all_deplibs_GCJ=yes
16811     if test "$GCC" = yes ; then
16812         output_verbose_link_cmd='echo'
16813         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16814       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16815       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16816       archive_expsym_cmds_GCJ='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}'
16817       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16818     else
16819       case $cc_basename in
16820         xlc*)
16821          output_verbose_link_cmd='echo'
16822          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16823          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16824           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16825          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16826           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16827           ;;
16828        *)
16829          ld_shlibs_GCJ=no
16830           ;;
16831       esac
16832     fi
16833       ;;
16834
16835     dgux*)
16836       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16837       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16838       hardcode_shlibpath_var_GCJ=no
16839       ;;
16840
16841     freebsd1*)
16842       ld_shlibs_GCJ=no
16843       ;;
16844
16845     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16846     # support.  Future versions do this automatically, but an explicit c++rt0.o
16847     # does not break anything, and helps significantly (at the cost of a little
16848     # extra space).
16849     freebsd2.2*)
16850       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16851       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16852       hardcode_direct_GCJ=yes
16853       hardcode_shlibpath_var_GCJ=no
16854       ;;
16855
16856     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16857     freebsd2*)
16858       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16859       hardcode_direct_GCJ=yes
16860       hardcode_minus_L_GCJ=yes
16861       hardcode_shlibpath_var_GCJ=no
16862       ;;
16863
16864     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16865     freebsd* | kfreebsd*-gnu | dragonfly*)
16866       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16867       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16868       hardcode_direct_GCJ=yes
16869       hardcode_shlibpath_var_GCJ=no
16870       ;;
16871
16872     hpux9*)
16873       if test "$GCC" = yes; then
16874         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'
16875       else
16876         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'
16877       fi
16878       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16879       hardcode_libdir_separator_GCJ=:
16880       hardcode_direct_GCJ=yes
16881
16882       # hardcode_minus_L: Not really in the search PATH,
16883       # but as the default location of the library.
16884       hardcode_minus_L_GCJ=yes
16885       export_dynamic_flag_spec_GCJ='${wl}-E'
16886       ;;
16887
16888     hpux10* | hpux11*)
16889       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16890         case "$host_cpu" in
16891         hppa*64*|ia64*)
16892           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16893           ;;
16894         *)
16895           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16896           ;;
16897         esac
16898       else
16899         case "$host_cpu" in
16900         hppa*64*|ia64*)
16901           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16902           ;;
16903         *)
16904           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16905           ;;
16906         esac
16907       fi
16908       if test "$with_gnu_ld" = no; then
16909         case "$host_cpu" in
16910         hppa*64*)
16911           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16912           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16913           hardcode_libdir_separator_GCJ=:
16914           hardcode_direct_GCJ=no
16915           hardcode_shlibpath_var_GCJ=no
16916           ;;
16917         ia64*)
16918           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16919           hardcode_direct_GCJ=no
16920           hardcode_shlibpath_var_GCJ=no
16921
16922           # hardcode_minus_L: Not really in the search PATH,
16923           # but as the default location of the library.
16924           hardcode_minus_L_GCJ=yes
16925           ;;
16926         *)
16927           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16928           hardcode_libdir_separator_GCJ=:
16929           hardcode_direct_GCJ=yes
16930           export_dynamic_flag_spec_GCJ='${wl}-E'
16931
16932           # hardcode_minus_L: Not really in the search PATH,
16933           # but as the default location of the library.
16934           hardcode_minus_L_GCJ=yes
16935           ;;
16936         esac
16937       fi
16938       ;;
16939
16940     irix5* | irix6* | nonstopux*)
16941       if test "$GCC" = yes; then
16942         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'
16943       else
16944         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'
16945         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16946       fi
16947       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16948       hardcode_libdir_separator_GCJ=:
16949       link_all_deplibs_GCJ=yes
16950       ;;
16951
16952     netbsd*)
16953       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16954         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16955       else
16956         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16957       fi
16958       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16959       hardcode_direct_GCJ=yes
16960       hardcode_shlibpath_var_GCJ=no
16961       ;;
16962
16963     newsos6)
16964       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16965       hardcode_direct_GCJ=yes
16966       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16967       hardcode_libdir_separator_GCJ=:
16968       hardcode_shlibpath_var_GCJ=no
16969       ;;
16970
16971     openbsd*)
16972       hardcode_direct_GCJ=yes
16973       hardcode_shlibpath_var_GCJ=no
16974       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16975         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16976         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16977         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16978         export_dynamic_flag_spec_GCJ='${wl}-E'
16979       else
16980        case $host_os in
16981          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16982            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16983            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16984            ;;
16985          *)
16986            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16987            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16988            ;;
16989        esac
16990       fi
16991       ;;
16992
16993     os2*)
16994       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16995       hardcode_minus_L_GCJ=yes
16996       allow_undefined_flag_GCJ=unsupported
16997       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'
16998       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16999       ;;
17000
17001     osf3*)
17002       if test "$GCC" = yes; then
17003         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17004         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'
17005       else
17006         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17007         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'
17008       fi
17009       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17010       hardcode_libdir_separator_GCJ=:
17011       ;;
17012
17013     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17014       if test "$GCC" = yes; then
17015         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17016         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'
17017         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17018       else
17019         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17020         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'
17021         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~
17022         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17023
17024         # Both c and cxx compiler support -rpath directly
17025         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17026       fi
17027       hardcode_libdir_separator_GCJ=:
17028       ;;
17029
17030     sco3.2v5*)
17031       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032       hardcode_shlibpath_var_GCJ=no
17033       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17034       runpath_var=LD_RUN_PATH
17035       hardcode_runpath_var=yes
17036       ;;
17037
17038     solaris*)
17039       no_undefined_flag_GCJ=' -z text'
17040       if test "$GCC" = yes; then
17041         wlarc='${wl}'
17042         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17043         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17044           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17045       else
17046         wlarc=''
17047         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17048         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17049         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17050       fi
17051       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17052       hardcode_shlibpath_var_GCJ=no
17053       case $host_os in
17054       solaris2.[0-5] | solaris2.[0-5].*) ;;
17055       *)
17056         # The compiler driver will combine linker options so we
17057         # cannot just pass the convience library names through
17058         # without $wl, iff we do not link with $LD.
17059         # Luckily, gcc supports the same syntax we need for Sun Studio.
17060         # Supported since Solaris 2.6 (maybe 2.5.1?)
17061         case $wlarc in
17062         '')
17063           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17064         *)
17065           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17066         esac ;;
17067       esac
17068       link_all_deplibs_GCJ=yes
17069       ;;
17070
17071     sunos4*)
17072       if test "x$host_vendor" = xsequent; then
17073         # Use $CC to link under sequent, because it throws in some extra .o
17074         # files that make .init and .fini sections work.
17075         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17076       else
17077         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17078       fi
17079       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17080       hardcode_direct_GCJ=yes
17081       hardcode_minus_L_GCJ=yes
17082       hardcode_shlibpath_var_GCJ=no
17083       ;;
17084
17085     sysv4)
17086       case $host_vendor in
17087         sni)
17088           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17089           hardcode_direct_GCJ=yes # is this really true???
17090         ;;
17091         siemens)
17092           ## LD is ld it makes a PLAMLIB
17093           ## CC just makes a GrossModule.
17094           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17095           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17096           hardcode_direct_GCJ=no
17097         ;;
17098         motorola)
17099           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17100           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17101         ;;
17102       esac
17103       runpath_var='LD_RUN_PATH'
17104       hardcode_shlibpath_var_GCJ=no
17105       ;;
17106
17107     sysv4.3*)
17108       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17109       hardcode_shlibpath_var_GCJ=no
17110       export_dynamic_flag_spec_GCJ='-Bexport'
17111       ;;
17112
17113     sysv4*MP*)
17114       if test -d /usr/nec; then
17115         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17116         hardcode_shlibpath_var_GCJ=no
17117         runpath_var=LD_RUN_PATH
17118         hardcode_runpath_var=yes
17119         ld_shlibs_GCJ=yes
17120       fi
17121       ;;
17122
17123     sysv4.2uw2*)
17124       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17125       hardcode_direct_GCJ=yes
17126       hardcode_minus_L_GCJ=no
17127       hardcode_shlibpath_var_GCJ=no
17128       hardcode_runpath_var=yes
17129       runpath_var=LD_RUN_PATH
17130       ;;
17131
17132    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17133       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17134       if test "$GCC" = yes; then
17135         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17136       else
17137         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17138       fi
17139       runpath_var='LD_RUN_PATH'
17140       hardcode_shlibpath_var_GCJ=no
17141       ;;
17142
17143     sysv5*)
17144       no_undefined_flag_GCJ=' -z text'
17145       # $CC -shared without GNU ld will not create a library from C++
17146       # object files and a static libstdc++, better avoid it by now
17147       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17148       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17149                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17150       hardcode_libdir_flag_spec_GCJ=
17151       hardcode_shlibpath_var_GCJ=no
17152       runpath_var='LD_RUN_PATH'
17153       ;;
17154
17155     uts4*)
17156       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17157       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17158       hardcode_shlibpath_var_GCJ=no
17159       ;;
17160
17161     *)
17162       ld_shlibs_GCJ=no
17163       ;;
17164     esac
17165   fi
17166
17167 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17168 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17169 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17170
17171 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17172 if test "$GCC" = yes; then
17173   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17174 fi
17175
17176 #
17177 # Do we need to explicitly link libc?
17178 #
17179 case "x$archive_cmds_need_lc_GCJ" in
17180 x|xyes)
17181   # Assume -lc should be added
17182   archive_cmds_need_lc_GCJ=yes
17183
17184   if test "$enable_shared" = yes && test "$GCC" = yes; then
17185     case $archive_cmds_GCJ in
17186     *'~'*)
17187       # FIXME: we may have to deal with multi-command sequences.
17188       ;;
17189     '$CC '*)
17190       # Test whether the compiler implicitly links with -lc since on some
17191       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17192       # to ld, don't add -lc before -lgcc.
17193       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17194 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17195       $rm conftest*
17196       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17197
17198       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17199   (eval $ac_compile) 2>&5
17200   ac_status=$?
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); } 2>conftest.err; then
17203         soname=conftest
17204         lib=conftest
17205         libobjs=conftest.$ac_objext
17206         deplibs=
17207         wl=$lt_prog_compiler_wl_GCJ
17208         compiler_flags=-v
17209         linker_flags=-v
17210         verstring=
17211         output_objdir=.
17212         libname=conftest
17213         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17214         allow_undefined_flag_GCJ=
17215         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17216   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17217   ac_status=$?
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); }
17220         then
17221           archive_cmds_need_lc_GCJ=no
17222         else
17223           archive_cmds_need_lc_GCJ=yes
17224         fi
17225         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17226       else
17227         cat conftest.err 1>&5
17228       fi
17229       $rm conftest*
17230       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17231 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17232       ;;
17233     esac
17234   fi
17235   ;;
17236 esac
17237
17238 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17239 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17240 library_names_spec=
17241 libname_spec='lib$name'
17242 soname_spec=
17243 shrext_cmds=".so"
17244 postinstall_cmds=
17245 postuninstall_cmds=
17246 finish_cmds=
17247 finish_eval=
17248 shlibpath_var=
17249 shlibpath_overrides_runpath=unknown
17250 version_type=none
17251 dynamic_linker="$host_os ld.so"
17252 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17253 if test "$GCC" = yes; then
17254   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17255   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17256     # if the path contains ";" then we assume it to be the separator
17257     # otherwise default to the standard path separator (i.e. ":") - it is
17258     # assumed that no part of a normal pathname contains ";" but that should
17259     # okay in the real world where ";" in dirpaths is itself problematic.
17260     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17261   else
17262     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17263   fi
17264 else
17265   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17266 fi
17267 need_lib_prefix=unknown
17268 hardcode_into_libs=no
17269
17270 # when you set need_version to no, make sure it does not cause -set_version
17271 # flags to be left without arguments
17272 need_version=unknown
17273
17274 case $host_os in
17275 aix3*)
17276   version_type=linux
17277   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17278   shlibpath_var=LIBPATH
17279
17280   # AIX 3 has no versioning support, so we append a major version to the name.
17281   soname_spec='${libname}${release}${shared_ext}$major'
17282   ;;
17283
17284 aix4* | aix5*)
17285   version_type=linux
17286   need_lib_prefix=no
17287   need_version=no
17288   hardcode_into_libs=yes
17289   if test "$host_cpu" = ia64; then
17290     # AIX 5 supports IA64
17291     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17292     shlibpath_var=LD_LIBRARY_PATH
17293   else
17294     # With GCC up to 2.95.x, collect2 would create an import file
17295     # for dependence libraries.  The import file would start with
17296     # the line `#! .'.  This would cause the generated library to
17297     # depend on `.', always an invalid library.  This was fixed in
17298     # development snapshots of GCC prior to 3.0.
17299     case $host_os in
17300       aix4 | aix4.[01] | aix4.[01].*)
17301       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17302            echo ' yes '
17303            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17304         :
17305       else
17306         can_build_shared=no
17307       fi
17308       ;;
17309     esac
17310     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17311     # soname into executable. Probably we can add versioning support to
17312     # collect2, so additional links can be useful in future.
17313     if test "$aix_use_runtimelinking" = yes; then
17314       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17315       # instead of lib<name>.a to let people know that these are not
17316       # typical AIX shared libraries.
17317       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318     else
17319       # We preserve .a as extension for shared libraries through AIX4.2
17320       # and later when we are not doing run time linking.
17321       library_names_spec='${libname}${release}.a $libname.a'
17322       soname_spec='${libname}${release}${shared_ext}$major'
17323     fi
17324     shlibpath_var=LIBPATH
17325   fi
17326   ;;
17327
17328 amigaos*)
17329   library_names_spec='$libname.ixlibrary $libname.a'
17330   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17331   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'
17332   ;;
17333
17334 beos*)
17335   library_names_spec='${libname}${shared_ext}'
17336   dynamic_linker="$host_os ld.so"
17337   shlibpath_var=LIBRARY_PATH
17338   ;;
17339
17340 bsdi[45]*)
17341   version_type=linux
17342   need_version=no
17343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344   soname_spec='${libname}${release}${shared_ext}$major'
17345   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17346   shlibpath_var=LD_LIBRARY_PATH
17347   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17348   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17349   # the default ld.so.conf also contains /usr/contrib/lib and
17350   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17351   # libtool to hard-code these into programs
17352   ;;
17353
17354 cygwin* | mingw* | pw32*)
17355   version_type=windows
17356   shrext_cmds=".dll"
17357   need_version=no
17358   need_lib_prefix=no
17359
17360   case $GCC,$host_os in
17361   yes,cygwin* | yes,mingw* | yes,pw32*)
17362     library_names_spec='$libname.dll.a'
17363     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17364     postinstall_cmds='base_file=`basename \${file}`~
17365       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17366       dldir=$destdir/`dirname \$dlpath`~
17367       test -d \$dldir || mkdir -p \$dldir~
17368       $install_prog $dir/$dlname \$dldir/$dlname'
17369     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17370       dlpath=$dir/\$dldll~
17371        $rm \$dlpath'
17372     shlibpath_overrides_runpath=yes
17373
17374     case $host_os in
17375     cygwin*)
17376       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17377       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17378       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17379       ;;
17380     mingw*)
17381       # MinGW DLLs use traditional 'lib' prefix
17382       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17383       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17384       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17385         # It is most probably a Windows format PATH printed by
17386         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17387         # path with ; separators, and with drive letters. We can handle the
17388         # drive letters (cygwin fileutils understands them), so leave them,
17389         # especially as we might pass files found there to a mingw objdump,
17390         # which wouldn't understand a cygwinified path. Ahh.
17391         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17392       else
17393         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17394       fi
17395       ;;
17396     pw32*)
17397       # pw32 DLLs use 'pw' prefix rather than 'lib'
17398       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17399       ;;
17400     esac
17401     ;;
17402
17403   *)
17404     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17405     ;;
17406   esac
17407   dynamic_linker='Win32 ld.exe'
17408   # FIXME: first we should search . and the directory the executable is in
17409   shlibpath_var=PATH
17410   ;;
17411
17412 darwin* | rhapsody*)
17413   dynamic_linker="$host_os dyld"
17414   version_type=darwin
17415   need_lib_prefix=no
17416   need_version=no
17417   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17418   soname_spec='${libname}${release}${major}$shared_ext'
17419   shlibpath_overrides_runpath=yes
17420   shlibpath_var=DYLD_LIBRARY_PATH
17421   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17422   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17423   if test "$GCC" = yes; then
17424     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"`
17425   else
17426     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17427   fi
17428   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17429   ;;
17430
17431 dgux*)
17432   version_type=linux
17433   need_lib_prefix=no
17434   need_version=no
17435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17436   soname_spec='${libname}${release}${shared_ext}$major'
17437   shlibpath_var=LD_LIBRARY_PATH
17438   ;;
17439
17440 freebsd1*)
17441   dynamic_linker=no
17442   ;;
17443
17444 kfreebsd*-gnu)
17445   version_type=linux
17446   need_lib_prefix=no
17447   need_version=no
17448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17449   soname_spec='${libname}${release}${shared_ext}$major'
17450   shlibpath_var=LD_LIBRARY_PATH
17451   shlibpath_overrides_runpath=no
17452   hardcode_into_libs=yes
17453   dynamic_linker='GNU ld.so'
17454   ;;
17455
17456 freebsd* | dragonfly*)
17457   # DragonFly does not have aout.  When/if they implement a new
17458   # versioning mechanism, adjust this.
17459   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17460   version_type=freebsd-$objformat
17461   case $version_type in
17462     freebsd-elf*)
17463       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17464       need_version=no
17465       need_lib_prefix=no
17466       ;;
17467     freebsd-*)
17468       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17469       need_version=yes
17470       ;;
17471   esac
17472   shlibpath_var=LD_LIBRARY_PATH
17473   case $host_os in
17474   freebsd2*)
17475     shlibpath_overrides_runpath=yes
17476     ;;
17477   freebsd3.[01]* | freebsdelf3.[01]*)
17478     shlibpath_overrides_runpath=yes
17479     hardcode_into_libs=yes
17480     ;;
17481   *) # from 3.2 on
17482     shlibpath_overrides_runpath=no
17483     hardcode_into_libs=yes
17484     ;;
17485   esac
17486   ;;
17487
17488 gnu*)
17489   version_type=linux
17490   need_lib_prefix=no
17491   need_version=no
17492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17493   soname_spec='${libname}${release}${shared_ext}$major'
17494   shlibpath_var=LD_LIBRARY_PATH
17495   hardcode_into_libs=yes
17496   ;;
17497
17498 hpux9* | hpux10* | hpux11*)
17499   # Give a soname corresponding to the major version so that dld.sl refuses to
17500   # link against other versions.
17501   version_type=sunos
17502   need_lib_prefix=no
17503   need_version=no
17504   case "$host_cpu" in
17505   ia64*)
17506     shrext_cmds='.so'
17507     hardcode_into_libs=yes
17508     dynamic_linker="$host_os dld.so"
17509     shlibpath_var=LD_LIBRARY_PATH
17510     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17512     soname_spec='${libname}${release}${shared_ext}$major'
17513     if test "X$HPUX_IA64_MODE" = X32; then
17514       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17515     else
17516       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17517     fi
17518     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17519     ;;
17520    hppa*64*)
17521      shrext_cmds='.sl'
17522      hardcode_into_libs=yes
17523      dynamic_linker="$host_os dld.sl"
17524      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17525      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17526      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17527      soname_spec='${libname}${release}${shared_ext}$major'
17528      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17529      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17530      ;;
17531    *)
17532     shrext_cmds='.sl'
17533     dynamic_linker="$host_os dld.sl"
17534     shlibpath_var=SHLIB_PATH
17535     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17537     soname_spec='${libname}${release}${shared_ext}$major'
17538     ;;
17539   esac
17540   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17541   postinstall_cmds='chmod 555 $lib'
17542   ;;
17543
17544 irix5* | irix6* | nonstopux*)
17545   case $host_os in
17546     nonstopux*) version_type=nonstopux ;;
17547     *)
17548         if test "$lt_cv_prog_gnu_ld" = yes; then
17549                 version_type=linux
17550         else
17551                 version_type=irix
17552         fi ;;
17553   esac
17554   need_lib_prefix=no
17555   need_version=no
17556   soname_spec='${libname}${release}${shared_ext}$major'
17557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17558   case $host_os in
17559   irix5* | nonstopux*)
17560     libsuff= shlibsuff=
17561     ;;
17562   *)
17563     case $LD in # libtool.m4 will add one of these switches to LD
17564     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17565       libsuff= shlibsuff= libmagic=32-bit;;
17566     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17567       libsuff=32 shlibsuff=N32 libmagic=N32;;
17568     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17569       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17570     *) libsuff= shlibsuff= libmagic=never-match;;
17571     esac
17572     ;;
17573   esac
17574   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17575   shlibpath_overrides_runpath=no
17576   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17577   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17578   hardcode_into_libs=yes
17579   ;;
17580
17581 # No shared lib support for Linux oldld, aout, or coff.
17582 linux*oldld* | linux*aout* | linux*coff*)
17583   dynamic_linker=no
17584   ;;
17585
17586 # This must be Linux ELF.
17587 linux*)
17588   version_type=linux
17589   need_lib_prefix=no
17590   need_version=no
17591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17592   soname_spec='${libname}${release}${shared_ext}$major'
17593   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17594   shlibpath_var=LD_LIBRARY_PATH
17595   shlibpath_overrides_runpath=no
17596   # This implies no fast_install, which is unacceptable.
17597   # Some rework will be needed to allow for fast_install
17598   # before this can be enabled.
17599   hardcode_into_libs=yes
17600
17601   # Append ld.so.conf contents to the search path
17602   if test -f /etc/ld.so.conf; then
17603     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; shopt -s nullglob; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,     ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17604     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17605   fi
17606
17607   # We used to test for /lib/ld.so.1 and disable shared libraries on
17608   # powerpc, because MkLinux only supported shared libraries with the
17609   # GNU dynamic linker.  Since this was broken with cross compilers,
17610   # most powerpc-linux boxes support dynamic linking these days and
17611   # people can always --disable-shared, the test was removed, and we
17612   # assume the GNU/Linux dynamic linker is in use.
17613   dynamic_linker='GNU/Linux ld.so'
17614   ;;
17615
17616 knetbsd*-gnu)
17617   version_type=linux
17618   need_lib_prefix=no
17619   need_version=no
17620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17621   soname_spec='${libname}${release}${shared_ext}$major'
17622   shlibpath_var=LD_LIBRARY_PATH
17623   shlibpath_overrides_runpath=no
17624   hardcode_into_libs=yes
17625   dynamic_linker='GNU ld.so'
17626   ;;
17627
17628 netbsd*)
17629   version_type=sunos
17630   need_lib_prefix=no
17631   need_version=no
17632   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17634     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17635     dynamic_linker='NetBSD (a.out) ld.so'
17636   else
17637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17638     soname_spec='${libname}${release}${shared_ext}$major'
17639     dynamic_linker='NetBSD ld.elf_so'
17640   fi
17641   shlibpath_var=LD_LIBRARY_PATH
17642   shlibpath_overrides_runpath=yes
17643   hardcode_into_libs=yes
17644   ;;
17645
17646 newsos6)
17647   version_type=linux
17648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17649   shlibpath_var=LD_LIBRARY_PATH
17650   shlibpath_overrides_runpath=yes
17651   ;;
17652
17653 nto-qnx*)
17654   version_type=linux
17655   need_lib_prefix=no
17656   need_version=no
17657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17658   soname_spec='${libname}${release}${shared_ext}$major'
17659   shlibpath_var=LD_LIBRARY_PATH
17660   shlibpath_overrides_runpath=yes
17661   ;;
17662
17663 openbsd*)
17664   version_type=sunos
17665   need_lib_prefix=no
17666   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17667   case $host_os in
17668     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17669     *)                         need_version=no  ;;
17670   esac
17671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17672   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17673   shlibpath_var=LD_LIBRARY_PATH
17674   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17675     case $host_os in
17676       openbsd2.[89] | openbsd2.[89].*)
17677         shlibpath_overrides_runpath=no
17678         ;;
17679       *)
17680         shlibpath_overrides_runpath=yes
17681         ;;
17682       esac
17683   else
17684     shlibpath_overrides_runpath=yes
17685   fi
17686   ;;
17687
17688 os2*)
17689   libname_spec='$name'
17690   shrext_cmds=".dll"
17691   need_lib_prefix=no
17692   library_names_spec='$libname${shared_ext} $libname.a'
17693   dynamic_linker='OS/2 ld.exe'
17694   shlibpath_var=LIBPATH
17695   ;;
17696
17697 osf3* | osf4* | osf5*)
17698   version_type=osf
17699   need_lib_prefix=no
17700   need_version=no
17701   soname_spec='${libname}${release}${shared_ext}$major'
17702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17703   shlibpath_var=LD_LIBRARY_PATH
17704   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17705   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17706   ;;
17707
17708 sco3.2v5*)
17709   version_type=osf
17710   soname_spec='${libname}${release}${shared_ext}$major'
17711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17712   shlibpath_var=LD_LIBRARY_PATH
17713   ;;
17714
17715 solaris*)
17716   version_type=linux
17717   need_lib_prefix=no
17718   need_version=no
17719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720   soname_spec='${libname}${release}${shared_ext}$major'
17721   shlibpath_var=LD_LIBRARY_PATH
17722   shlibpath_overrides_runpath=yes
17723   hardcode_into_libs=yes
17724   # ldd complains unless libraries are executable
17725   postinstall_cmds='chmod +x $lib'
17726   ;;
17727
17728 sunos4*)
17729   version_type=sunos
17730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17731   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17732   shlibpath_var=LD_LIBRARY_PATH
17733   shlibpath_overrides_runpath=yes
17734   if test "$with_gnu_ld" = yes; then
17735     need_lib_prefix=no
17736   fi
17737   need_version=yes
17738   ;;
17739
17740 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17741   version_type=linux
17742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17743   soname_spec='${libname}${release}${shared_ext}$major'
17744   shlibpath_var=LD_LIBRARY_PATH
17745   case $host_vendor in
17746     sni)
17747       shlibpath_overrides_runpath=no
17748       need_lib_prefix=no
17749       export_dynamic_flag_spec='${wl}-Blargedynsym'
17750       runpath_var=LD_RUN_PATH
17751       ;;
17752     siemens)
17753       need_lib_prefix=no
17754       ;;
17755     motorola)
17756       need_lib_prefix=no
17757       need_version=no
17758       shlibpath_overrides_runpath=no
17759       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17760       ;;
17761   esac
17762   ;;
17763
17764 sysv4*MP*)
17765   if test -d /usr/nec ;then
17766     version_type=linux
17767     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17768     soname_spec='$libname${shared_ext}.$major'
17769     shlibpath_var=LD_LIBRARY_PATH
17770   fi
17771   ;;
17772
17773 uts4*)
17774   version_type=linux
17775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17776   soname_spec='${libname}${release}${shared_ext}$major'
17777   shlibpath_var=LD_LIBRARY_PATH
17778   ;;
17779
17780 *)
17781   dynamic_linker=no
17782   ;;
17783 esac
17784 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17785 echo "${ECHO_T}$dynamic_linker" >&6
17786 test "$dynamic_linker" = no && can_build_shared=no
17787
17788 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17789 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17790 hardcode_action_GCJ=
17791 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17792    test -n "$runpath_var_GCJ" || \
17793    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17794
17795   # We can hardcode non-existant directories.
17796   if test "$hardcode_direct_GCJ" != no &&
17797      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17798      # have to relink, otherwise we might link with an installed library
17799      # when we should be linking with a yet-to-be-installed one
17800      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17801      test "$hardcode_minus_L_GCJ" != no; then
17802     # Linking always hardcodes the temporary library directory.
17803     hardcode_action_GCJ=relink
17804   else
17805     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17806     hardcode_action_GCJ=immediate
17807   fi
17808 else
17809   # We cannot hardcode anything, or else we can only hardcode existing
17810   # directories.
17811   hardcode_action_GCJ=unsupported
17812 fi
17813 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17814 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17815
17816 if test "$hardcode_action_GCJ" = relink; then
17817   # Fast installation is not supported
17818   enable_fast_install=no
17819 elif test "$shlibpath_overrides_runpath" = yes ||
17820      test "$enable_shared" = no; then
17821   # Fast installation is not necessary
17822   enable_fast_install=needless
17823 fi
17824
17825 striplib=
17826 old_striplib=
17827 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17828 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17829 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17830   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17831   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17832   echo "$as_me:$LINENO: result: yes" >&5
17833 echo "${ECHO_T}yes" >&6
17834 else
17835 # FIXME - insert some real tests, host_os isn't really good enough
17836   case $host_os in
17837    darwin*)
17838        if test -n "$STRIP" ; then
17839          striplib="$STRIP -x"
17840          echo "$as_me:$LINENO: result: yes" >&5
17841 echo "${ECHO_T}yes" >&6
17842        else
17843   echo "$as_me:$LINENO: result: no" >&5
17844 echo "${ECHO_T}no" >&6
17845 fi
17846        ;;
17847    *)
17848   echo "$as_me:$LINENO: result: no" >&5
17849 echo "${ECHO_T}no" >&6
17850     ;;
17851   esac
17852 fi
17853
17854 if test "x$enable_dlopen" != xyes; then
17855   enable_dlopen=unknown
17856   enable_dlopen_self=unknown
17857   enable_dlopen_self_static=unknown
17858 else
17859   lt_cv_dlopen=no
17860   lt_cv_dlopen_libs=
17861
17862   case $host_os in
17863   beos*)
17864     lt_cv_dlopen="load_add_on"
17865     lt_cv_dlopen_libs=
17866     lt_cv_dlopen_self=yes
17867     ;;
17868
17869   mingw* | pw32*)
17870     lt_cv_dlopen="LoadLibrary"
17871     lt_cv_dlopen_libs=
17872    ;;
17873
17874   cygwin*)
17875     lt_cv_dlopen="dlopen"
17876     lt_cv_dlopen_libs=
17877    ;;
17878
17879   darwin*)
17880   # if libdl is installed we need to link against it
17881     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17882 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17883 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17884   echo $ECHO_N "(cached) $ECHO_C" >&6
17885 else
17886   ac_check_lib_save_LIBS=$LIBS
17887 LIBS="-ldl  $LIBS"
17888 cat >conftest.$ac_ext <<_ACEOF
17889 /* confdefs.h.  */
17890 _ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h.  */
17894
17895 /* Override any gcc2 internal prototype to avoid an error.  */
17896 #ifdef __cplusplus
17897 extern "C"
17898 #endif
17899 /* We use char because int might match the return type of a gcc2
17900    builtin and then its argument prototype would still apply.  */
17901 char dlopen ();
17902 int
17903 main ()
17904 {
17905 dlopen ();
17906   ;
17907   return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17912   (eval $ac_link) 2>conftest.er1
17913   ac_status=$?
17914   grep -v '^ *+' conftest.er1 >conftest.err
17915   rm -f conftest.er1
17916   cat conftest.err >&5
17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918   (exit $ac_status); } &&
17919          { ac_try='test -z "$ac_c_werror_flag"
17920                          || test ! -s conftest.err'
17921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922   (eval $ac_try) 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; } &&
17926          { ac_try='test -s conftest$ac_exeext'
17927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928   (eval $ac_try) 2>&5
17929   ac_status=$?
17930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931   (exit $ac_status); }; }; then
17932   ac_cv_lib_dl_dlopen=yes
17933 else
17934   echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 ac_cv_lib_dl_dlopen=no
17938 fi
17939 rm -f conftest.err conftest.$ac_objext \
17940       conftest$ac_exeext conftest.$ac_ext
17941 LIBS=$ac_check_lib_save_LIBS
17942 fi
17943 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17944 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17945 if test $ac_cv_lib_dl_dlopen = yes; then
17946   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17947 else
17948
17949     lt_cv_dlopen="dyld"
17950     lt_cv_dlopen_libs=
17951     lt_cv_dlopen_self=yes
17952
17953 fi
17954
17955    ;;
17956
17957   *)
17958     echo "$as_me:$LINENO: checking for shl_load" >&5
17959 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17960 if test "${ac_cv_func_shl_load+set}" = set; then
17961   echo $ECHO_N "(cached) $ECHO_C" >&6
17962 else
17963   cat >conftest.$ac_ext <<_ACEOF
17964 /* confdefs.h.  */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h.  */
17969 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17971 #define shl_load innocuous_shl_load
17972
17973 /* System header to define __stub macros and hopefully few prototypes,
17974     which can conflict with char shl_load (); below.
17975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17976     <limits.h> exists even on freestanding compilers.  */
17977
17978 #ifdef __STDC__
17979 # include <limits.h>
17980 #else
17981 # include <assert.h>
17982 #endif
17983
17984 #undef shl_load
17985
17986 /* Override any gcc2 internal prototype to avoid an error.  */
17987 #ifdef __cplusplus
17988 extern "C"
17989 {
17990 #endif
17991 /* We use char because int might match the return type of a gcc2
17992    builtin and then its argument prototype would still apply.  */
17993 char shl_load ();
17994 /* The GNU C library defines this for functions which it implements
17995     to always fail with ENOSYS.  Some functions are actually named
17996     something starting with __ and the normal name is an alias.  */
17997 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17998 choke me
17999 #else
18000 char (*f) () = shl_load;
18001 #endif
18002 #ifdef __cplusplus
18003 }
18004 #endif
18005
18006 int
18007 main ()
18008 {
18009 return f != shl_load;
18010   ;
18011   return 0;
18012 }
18013 _ACEOF
18014 rm -f conftest.$ac_objext conftest$ac_exeext
18015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18016   (eval $ac_link) 2>conftest.er1
18017   ac_status=$?
18018   grep -v '^ *+' conftest.er1 >conftest.err
18019   rm -f conftest.er1
18020   cat conftest.err >&5
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); } &&
18023          { ac_try='test -z "$ac_c_werror_flag"
18024                          || test ! -s conftest.err'
18025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026   (eval $ac_try) 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; } &&
18030          { ac_try='test -s conftest$ac_exeext'
18031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032   (eval $ac_try) 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }; }; then
18036   ac_cv_func_shl_load=yes
18037 else
18038   echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 ac_cv_func_shl_load=no
18042 fi
18043 rm -f conftest.err conftest.$ac_objext \
18044       conftest$ac_exeext conftest.$ac_ext
18045 fi
18046 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18047 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18048 if test $ac_cv_func_shl_load = yes; then
18049   lt_cv_dlopen="shl_load"
18050 else
18051   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18052 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18053 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18054   echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056   ac_check_lib_save_LIBS=$LIBS
18057 LIBS="-ldld  $LIBS"
18058 cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h.  */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h.  */
18064
18065 /* Override any gcc2 internal prototype to avoid an error.  */
18066 #ifdef __cplusplus
18067 extern "C"
18068 #endif
18069 /* We use char because int might match the return type of a gcc2
18070    builtin and then its argument prototype would still apply.  */
18071 char shl_load ();
18072 int
18073 main ()
18074 {
18075 shl_load ();
18076   ;
18077   return 0;
18078 }
18079 _ACEOF
18080 rm -f conftest.$ac_objext conftest$ac_exeext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082   (eval $ac_link) 2>conftest.er1
18083   ac_status=$?
18084   grep -v '^ *+' conftest.er1 >conftest.err
18085   rm -f conftest.er1
18086   cat conftest.err >&5
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } &&
18089          { ac_try='test -z "$ac_c_werror_flag"
18090                          || test ! -s conftest.err'
18091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092   (eval $ac_try) 2>&5
18093   ac_status=$?
18094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095   (exit $ac_status); }; } &&
18096          { ac_try='test -s conftest$ac_exeext'
18097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098   (eval $ac_try) 2>&5
18099   ac_status=$?
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); }; }; then
18102   ac_cv_lib_dld_shl_load=yes
18103 else
18104   echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18106
18107 ac_cv_lib_dld_shl_load=no
18108 fi
18109 rm -f conftest.err conftest.$ac_objext \
18110       conftest$ac_exeext conftest.$ac_ext
18111 LIBS=$ac_check_lib_save_LIBS
18112 fi
18113 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18114 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18115 if test $ac_cv_lib_dld_shl_load = yes; then
18116   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18117 else
18118   echo "$as_me:$LINENO: checking for dlopen" >&5
18119 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18120 if test "${ac_cv_func_dlopen+set}" = set; then
18121   echo $ECHO_N "(cached) $ECHO_C" >&6
18122 else
18123   cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h.  */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h.  */
18129 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18131 #define dlopen innocuous_dlopen
18132
18133 /* System header to define __stub macros and hopefully few prototypes,
18134     which can conflict with char dlopen (); below.
18135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18136     <limits.h> exists even on freestanding compilers.  */
18137
18138 #ifdef __STDC__
18139 # include <limits.h>
18140 #else
18141 # include <assert.h>
18142 #endif
18143
18144 #undef dlopen
18145
18146 /* Override any gcc2 internal prototype to avoid an error.  */
18147 #ifdef __cplusplus
18148 extern "C"
18149 {
18150 #endif
18151 /* We use char because int might match the return type of a gcc2
18152    builtin and then its argument prototype would still apply.  */
18153 char dlopen ();
18154 /* The GNU C library defines this for functions which it implements
18155     to always fail with ENOSYS.  Some functions are actually named
18156     something starting with __ and the normal name is an alias.  */
18157 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18158 choke me
18159 #else
18160 char (*f) () = dlopen;
18161 #endif
18162 #ifdef __cplusplus
18163 }
18164 #endif
18165
18166 int
18167 main ()
18168 {
18169 return f != dlopen;
18170   ;
18171   return 0;
18172 }
18173 _ACEOF
18174 rm -f conftest.$ac_objext conftest$ac_exeext
18175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18176   (eval $ac_link) 2>conftest.er1
18177   ac_status=$?
18178   grep -v '^ *+' conftest.er1 >conftest.err
18179   rm -f conftest.er1
18180   cat conftest.err >&5
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); } &&
18183          { ac_try='test -z "$ac_c_werror_flag"
18184                          || test ! -s conftest.err'
18185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186   (eval $ac_try) 2>&5
18187   ac_status=$?
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); }; } &&
18190          { ac_try='test -s conftest$ac_exeext'
18191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192   (eval $ac_try) 2>&5
18193   ac_status=$?
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); }; }; then
18196   ac_cv_func_dlopen=yes
18197 else
18198   echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201 ac_cv_func_dlopen=no
18202 fi
18203 rm -f conftest.err conftest.$ac_objext \
18204       conftest$ac_exeext conftest.$ac_ext
18205 fi
18206 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18207 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18208 if test $ac_cv_func_dlopen = yes; then
18209   lt_cv_dlopen="dlopen"
18210 else
18211   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18212 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18213 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18214   echo $ECHO_N "(cached) $ECHO_C" >&6
18215 else
18216   ac_check_lib_save_LIBS=$LIBS
18217 LIBS="-ldl  $LIBS"
18218 cat >conftest.$ac_ext <<_ACEOF
18219 /* confdefs.h.  */
18220 _ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h.  */
18224
18225 /* Override any gcc2 internal prototype to avoid an error.  */
18226 #ifdef __cplusplus
18227 extern "C"
18228 #endif
18229 /* We use char because int might match the return type of a gcc2
18230    builtin and then its argument prototype would still apply.  */
18231 char dlopen ();
18232 int
18233 main ()
18234 {
18235 dlopen ();
18236   ;
18237   return 0;
18238 }
18239 _ACEOF
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242   (eval $ac_link) 2>conftest.er1
18243   ac_status=$?
18244   grep -v '^ *+' conftest.er1 >conftest.err
18245   rm -f conftest.er1
18246   cat conftest.err >&5
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); } &&
18249          { ac_try='test -z "$ac_c_werror_flag"
18250                          || test ! -s conftest.err'
18251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252   (eval $ac_try) 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; } &&
18256          { ac_try='test -s conftest$ac_exeext'
18257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258   (eval $ac_try) 2>&5
18259   ac_status=$?
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); }; }; then
18262   ac_cv_lib_dl_dlopen=yes
18263 else
18264   echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18266
18267 ac_cv_lib_dl_dlopen=no
18268 fi
18269 rm -f conftest.err conftest.$ac_objext \
18270       conftest$ac_exeext conftest.$ac_ext
18271 LIBS=$ac_check_lib_save_LIBS
18272 fi
18273 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18274 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18275 if test $ac_cv_lib_dl_dlopen = yes; then
18276   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18277 else
18278   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18279 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18280 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18281   echo $ECHO_N "(cached) $ECHO_C" >&6
18282 else
18283   ac_check_lib_save_LIBS=$LIBS
18284 LIBS="-lsvld  $LIBS"
18285 cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h.  */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h.  */
18291
18292 /* Override any gcc2 internal prototype to avoid an error.  */
18293 #ifdef __cplusplus
18294 extern "C"
18295 #endif
18296 /* We use char because int might match the return type of a gcc2
18297    builtin and then its argument prototype would still apply.  */
18298 char dlopen ();
18299 int
18300 main ()
18301 {
18302 dlopen ();
18303   ;
18304   return 0;
18305 }
18306 _ACEOF
18307 rm -f conftest.$ac_objext conftest$ac_exeext
18308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18309   (eval $ac_link) 2>conftest.er1
18310   ac_status=$?
18311   grep -v '^ *+' conftest.er1 >conftest.err
18312   rm -f conftest.er1
18313   cat conftest.err >&5
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); } &&
18316          { ac_try='test -z "$ac_c_werror_flag"
18317                          || test ! -s conftest.err'
18318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319   (eval $ac_try) 2>&5
18320   ac_status=$?
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); }; } &&
18323          { ac_try='test -s conftest$ac_exeext'
18324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325   (eval $ac_try) 2>&5
18326   ac_status=$?
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); }; }; then
18329   ac_cv_lib_svld_dlopen=yes
18330 else
18331   echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18333
18334 ac_cv_lib_svld_dlopen=no
18335 fi
18336 rm -f conftest.err conftest.$ac_objext \
18337       conftest$ac_exeext conftest.$ac_ext
18338 LIBS=$ac_check_lib_save_LIBS
18339 fi
18340 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18341 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18342 if test $ac_cv_lib_svld_dlopen = yes; then
18343   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18344 else
18345   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18346 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18347 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18348   echo $ECHO_N "(cached) $ECHO_C" >&6
18349 else
18350   ac_check_lib_save_LIBS=$LIBS
18351 LIBS="-ldld  $LIBS"
18352 cat >conftest.$ac_ext <<_ACEOF
18353 /* confdefs.h.  */
18354 _ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h.  */
18358
18359 /* Override any gcc2 internal prototype to avoid an error.  */
18360 #ifdef __cplusplus
18361 extern "C"
18362 #endif
18363 /* We use char because int might match the return type of a gcc2
18364    builtin and then its argument prototype would still apply.  */
18365 char dld_link ();
18366 int
18367 main ()
18368 {
18369 dld_link ();
18370   ;
18371   return 0;
18372 }
18373 _ACEOF
18374 rm -f conftest.$ac_objext conftest$ac_exeext
18375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18376   (eval $ac_link) 2>conftest.er1
18377   ac_status=$?
18378   grep -v '^ *+' conftest.er1 >conftest.err
18379   rm -f conftest.er1
18380   cat conftest.err >&5
18381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382   (exit $ac_status); } &&
18383          { ac_try='test -z "$ac_c_werror_flag"
18384                          || test ! -s conftest.err'
18385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386   (eval $ac_try) 2>&5
18387   ac_status=$?
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); }; } &&
18390          { ac_try='test -s conftest$ac_exeext'
18391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392   (eval $ac_try) 2>&5
18393   ac_status=$?
18394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395   (exit $ac_status); }; }; then
18396   ac_cv_lib_dld_dld_link=yes
18397 else
18398   echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18400
18401 ac_cv_lib_dld_dld_link=no
18402 fi
18403 rm -f conftest.err conftest.$ac_objext \
18404       conftest$ac_exeext conftest.$ac_ext
18405 LIBS=$ac_check_lib_save_LIBS
18406 fi
18407 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18408 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18409 if test $ac_cv_lib_dld_dld_link = yes; then
18410   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18411 fi
18412
18413
18414 fi
18415
18416
18417 fi
18418
18419
18420 fi
18421
18422
18423 fi
18424
18425
18426 fi
18427
18428     ;;
18429   esac
18430
18431   if test "x$lt_cv_dlopen" != xno; then
18432     enable_dlopen=yes
18433   else
18434     enable_dlopen=no
18435   fi
18436
18437   case $lt_cv_dlopen in
18438   dlopen)
18439     save_CPPFLAGS="$CPPFLAGS"
18440     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18441
18442     save_LDFLAGS="$LDFLAGS"
18443     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18444
18445     save_LIBS="$LIBS"
18446     LIBS="$lt_cv_dlopen_libs $LIBS"
18447
18448     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18449 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18450 if test "${lt_cv_dlopen_self+set}" = set; then
18451   echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453           if test "$cross_compiling" = yes; then :
18454   lt_cv_dlopen_self=cross
18455 else
18456   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18457   lt_status=$lt_dlunknown
18458   cat > conftest.$ac_ext <<EOF
18459 #line 18459 "configure"
18460 #include "confdefs.h"
18461
18462 #if HAVE_DLFCN_H
18463 #include <dlfcn.h>
18464 #endif
18465
18466 #include <stdio.h>
18467
18468 #ifdef RTLD_GLOBAL
18469 #  define LT_DLGLOBAL           RTLD_GLOBAL
18470 #else
18471 #  ifdef DL_GLOBAL
18472 #    define LT_DLGLOBAL         DL_GLOBAL
18473 #  else
18474 #    define LT_DLGLOBAL         0
18475 #  endif
18476 #endif
18477
18478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18479    find out it does not work in some platform. */
18480 #ifndef LT_DLLAZY_OR_NOW
18481 #  ifdef RTLD_LAZY
18482 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18483 #  else
18484 #    ifdef DL_LAZY
18485 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18486 #    else
18487 #      ifdef RTLD_NOW
18488 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18489 #      else
18490 #        ifdef DL_NOW
18491 #          define LT_DLLAZY_OR_NOW      DL_NOW
18492 #        else
18493 #          define LT_DLLAZY_OR_NOW      0
18494 #        endif
18495 #      endif
18496 #    endif
18497 #  endif
18498 #endif
18499
18500 #ifdef __cplusplus
18501 extern "C" void exit (int);
18502 #endif
18503
18504 void fnord() { int i=42;}
18505 int main ()
18506 {
18507   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18508   int status = $lt_dlunknown;
18509
18510   if (self)
18511     {
18512       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18513       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18514       /* dlclose (self); */
18515     }
18516
18517     exit (status);
18518 }
18519 EOF
18520   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18521   (eval $ac_link) 2>&5
18522   ac_status=$?
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18525     (./conftest; exit; ) 2>/dev/null
18526     lt_status=$?
18527     case x$lt_status in
18528       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18529       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18530       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18531     esac
18532   else :
18533     # compilation failed
18534     lt_cv_dlopen_self=no
18535   fi
18536 fi
18537 rm -fr conftest*
18538
18539
18540 fi
18541 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18542 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18543
18544     if test "x$lt_cv_dlopen_self" = xyes; then
18545       LDFLAGS="$LDFLAGS $link_static_flag"
18546       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18547 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18548 if test "${lt_cv_dlopen_self_static+set}" = set; then
18549   echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551           if test "$cross_compiling" = yes; then :
18552   lt_cv_dlopen_self_static=cross
18553 else
18554   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18555   lt_status=$lt_dlunknown
18556   cat > conftest.$ac_ext <<EOF
18557 #line 18557 "configure"
18558 #include "confdefs.h"
18559
18560 #if HAVE_DLFCN_H
18561 #include <dlfcn.h>
18562 #endif
18563
18564 #include <stdio.h>
18565
18566 #ifdef RTLD_GLOBAL
18567 #  define LT_DLGLOBAL           RTLD_GLOBAL
18568 #else
18569 #  ifdef DL_GLOBAL
18570 #    define LT_DLGLOBAL         DL_GLOBAL
18571 #  else
18572 #    define LT_DLGLOBAL         0
18573 #  endif
18574 #endif
18575
18576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18577    find out it does not work in some platform. */
18578 #ifndef LT_DLLAZY_OR_NOW
18579 #  ifdef RTLD_LAZY
18580 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18581 #  else
18582 #    ifdef DL_LAZY
18583 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18584 #    else
18585 #      ifdef RTLD_NOW
18586 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18587 #      else
18588 #        ifdef DL_NOW
18589 #          define LT_DLLAZY_OR_NOW      DL_NOW
18590 #        else
18591 #          define LT_DLLAZY_OR_NOW      0
18592 #        endif
18593 #      endif
18594 #    endif
18595 #  endif
18596 #endif
18597
18598 #ifdef __cplusplus
18599 extern "C" void exit (int);
18600 #endif
18601
18602 void fnord() { int i=42;}
18603 int main ()
18604 {
18605   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18606   int status = $lt_dlunknown;
18607
18608   if (self)
18609     {
18610       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18611       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18612       /* dlclose (self); */
18613     }
18614
18615     exit (status);
18616 }
18617 EOF
18618   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18619   (eval $ac_link) 2>&5
18620   ac_status=$?
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18623     (./conftest; exit; ) 2>/dev/null
18624     lt_status=$?
18625     case x$lt_status in
18626       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18627       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18628       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18629     esac
18630   else :
18631     # compilation failed
18632     lt_cv_dlopen_self_static=no
18633   fi
18634 fi
18635 rm -fr conftest*
18636
18637
18638 fi
18639 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18640 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18641     fi
18642
18643     CPPFLAGS="$save_CPPFLAGS"
18644     LDFLAGS="$save_LDFLAGS"
18645     LIBS="$save_LIBS"
18646     ;;
18647   esac
18648
18649   case $lt_cv_dlopen_self in
18650   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18651   *) enable_dlopen_self=unknown ;;
18652   esac
18653
18654   case $lt_cv_dlopen_self_static in
18655   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18656   *) enable_dlopen_self_static=unknown ;;
18657   esac
18658 fi
18659
18660
18661 # The else clause should only fire when bootstrapping the
18662 # libtool distribution, otherwise you forgot to ship ltmain.sh
18663 # with your package, and you will get complaints that there are
18664 # no rules to generate ltmain.sh.
18665 if test -f "$ltmain"; then
18666   # See if we are running on zsh, and set the options which allow our commands through
18667   # without removal of \ escapes.
18668   if test -n "${ZSH_VERSION+set}" ; then
18669     setopt NO_GLOB_SUBST
18670   fi
18671   # Now quote all the things that may contain metacharacters while being
18672   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18673   # variables and quote the copies for generation of the libtool script.
18674   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18675     SED SHELL STRIP \
18676     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18677     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18678     deplibs_check_method reload_flag reload_cmds need_locks \
18679     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18680     lt_cv_sys_global_symbol_to_c_name_address \
18681     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18682     old_postinstall_cmds old_postuninstall_cmds \
18683     compiler_GCJ \
18684     CC_GCJ \
18685     LD_GCJ \
18686     lt_prog_compiler_wl_GCJ \
18687     lt_prog_compiler_pic_GCJ \
18688     lt_prog_compiler_static_GCJ \
18689     lt_prog_compiler_no_builtin_flag_GCJ \
18690     export_dynamic_flag_spec_GCJ \
18691     thread_safe_flag_spec_GCJ \
18692     whole_archive_flag_spec_GCJ \
18693     enable_shared_with_static_runtimes_GCJ \
18694     old_archive_cmds_GCJ \
18695     old_archive_from_new_cmds_GCJ \
18696     predep_objects_GCJ \
18697     postdep_objects_GCJ \
18698     predeps_GCJ \
18699     postdeps_GCJ \
18700     compiler_lib_search_path_GCJ \
18701     archive_cmds_GCJ \
18702     archive_expsym_cmds_GCJ \
18703     postinstall_cmds_GCJ \
18704     postuninstall_cmds_GCJ \
18705     old_archive_from_expsyms_cmds_GCJ \
18706     allow_undefined_flag_GCJ \
18707     no_undefined_flag_GCJ \
18708     export_symbols_cmds_GCJ \
18709     hardcode_libdir_flag_spec_GCJ \
18710     hardcode_libdir_flag_spec_ld_GCJ \
18711     hardcode_libdir_separator_GCJ \
18712     hardcode_automatic_GCJ \
18713     module_cmds_GCJ \
18714     module_expsym_cmds_GCJ \
18715     lt_cv_prog_compiler_c_o_GCJ \
18716     exclude_expsyms_GCJ \
18717     include_expsyms_GCJ; do
18718
18719     case $var in
18720     old_archive_cmds_GCJ | \
18721     old_archive_from_new_cmds_GCJ | \
18722     archive_cmds_GCJ | \
18723     archive_expsym_cmds_GCJ | \
18724     module_cmds_GCJ | \
18725     module_expsym_cmds_GCJ | \
18726     old_archive_from_expsyms_cmds_GCJ | \
18727     export_symbols_cmds_GCJ | \
18728     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18729     postinstall_cmds | postuninstall_cmds | \
18730     old_postinstall_cmds | old_postuninstall_cmds | \
18731     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18732       # Double-quote double-evaled strings.
18733       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18734       ;;
18735     *)
18736       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18737       ;;
18738     esac
18739   done
18740
18741   case $lt_echo in
18742   *'\$0 --fallback-echo"')
18743     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18744     ;;
18745   esac
18746
18747 cfgfile="$ofile"
18748
18749   cat <<__EOF__ >> "$cfgfile"
18750 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18751
18752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18753
18754 # Shell to use when invoking shell scripts.
18755 SHELL=$lt_SHELL
18756
18757 # Whether or not to build shared libraries.
18758 build_libtool_libs=$enable_shared
18759
18760 # Whether or not to build static libraries.
18761 build_old_libs=$enable_static
18762
18763 # Whether or not to add -lc for building shared libraries.
18764 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18765
18766 # Whether or not to disallow shared libs when runtime libs are static
18767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18768
18769 # Whether or not to optimize for fast installation.
18770 fast_install=$enable_fast_install
18771
18772 # The host system.
18773 host_alias=$host_alias
18774 host=$host
18775 host_os=$host_os
18776
18777 # The build system.
18778 build_alias=$build_alias
18779 build=$build
18780 build_os=$build_os
18781
18782 # An echo program that does not interpret backslashes.
18783 echo=$lt_echo
18784
18785 # The archiver.
18786 AR=$lt_AR
18787 AR_FLAGS=$lt_AR_FLAGS
18788
18789 # A C compiler.
18790 LTCC=$lt_LTCC
18791
18792 # A language-specific compiler.
18793 CC=$lt_compiler_GCJ
18794
18795 # Is the compiler the GNU C compiler?
18796 with_gcc=$GCC_GCJ
18797
18798 # An ERE matcher.
18799 EGREP=$lt_EGREP
18800
18801 # The linker used to build libraries.
18802 LD=$lt_LD_GCJ
18803
18804 # Whether we need hard or soft links.
18805 LN_S=$lt_LN_S
18806
18807 # A BSD-compatible nm program.
18808 NM=$lt_NM
18809
18810 # A symbol stripping program
18811 STRIP=$lt_STRIP
18812
18813 # Used to examine libraries when file_magic_cmd begins "file"
18814 MAGIC_CMD=$MAGIC_CMD
18815
18816 # Used on cygwin: DLL creation program.
18817 DLLTOOL="$DLLTOOL"
18818
18819 # Used on cygwin: object dumper.
18820 OBJDUMP="$OBJDUMP"
18821
18822 # Used on cygwin: assembler.
18823 AS="$AS"
18824
18825 # The name of the directory that contains temporary libtool files.
18826 objdir=$objdir
18827
18828 # How to create reloadable object files.
18829 reload_flag=$lt_reload_flag
18830 reload_cmds=$lt_reload_cmds
18831
18832 # How to pass a linker flag through the compiler.
18833 wl=$lt_lt_prog_compiler_wl_GCJ
18834
18835 # Object file suffix (normally "o").
18836 objext="$ac_objext"
18837
18838 # Old archive suffix (normally "a").
18839 libext="$libext"
18840
18841 # Shared library suffix (normally ".so").
18842 shrext_cmds='$shrext_cmds'
18843
18844 # Executable file suffix (normally "").
18845 exeext="$exeext"
18846
18847 # Additional compiler flags for building library objects.
18848 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18849 pic_mode=$pic_mode
18850
18851 # What is the maximum length of a command?
18852 max_cmd_len=$lt_cv_sys_max_cmd_len
18853
18854 # Does compiler simultaneously support -c and -o options?
18855 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18856
18857 # Must we lock files when doing compilation?
18858 need_locks=$lt_need_locks
18859
18860 # Do we need the lib prefix for modules?
18861 need_lib_prefix=$need_lib_prefix
18862
18863 # Do we need a version for libraries?
18864 need_version=$need_version
18865
18866 # Whether dlopen is supported.
18867 dlopen_support=$enable_dlopen
18868
18869 # Whether dlopen of programs is supported.
18870 dlopen_self=$enable_dlopen_self
18871
18872 # Whether dlopen of statically linked programs is supported.
18873 dlopen_self_static=$enable_dlopen_self_static
18874
18875 # Compiler flag to prevent dynamic linking.
18876 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18877
18878 # Compiler flag to turn off builtin functions.
18879 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18880
18881 # Compiler flag to allow reflexive dlopens.
18882 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18883
18884 # Compiler flag to generate shared objects directly from archives.
18885 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18886
18887 # Compiler flag to generate thread-safe objects.
18888 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18889
18890 # Library versioning type.
18891 version_type=$version_type
18892
18893 # Format of library name prefix.
18894 libname_spec=$lt_libname_spec
18895
18896 # List of archive names.  First name is the real one, the rest are links.
18897 # The last name is the one that the linker finds with -lNAME.
18898 library_names_spec=$lt_library_names_spec
18899
18900 # The coded name of the library, if different from the real name.
18901 soname_spec=$lt_soname_spec
18902
18903 # Commands used to build and install an old-style archive.
18904 RANLIB=$lt_RANLIB
18905 old_archive_cmds=$lt_old_archive_cmds_GCJ
18906 old_postinstall_cmds=$lt_old_postinstall_cmds
18907 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18908
18909 # Create an old-style archive from a shared archive.
18910 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18911
18912 # Create a temporary old-style archive to link instead of a shared archive.
18913 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18914
18915 # Commands used to build and install a shared archive.
18916 archive_cmds=$lt_archive_cmds_GCJ
18917 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18918 postinstall_cmds=$lt_postinstall_cmds
18919 postuninstall_cmds=$lt_postuninstall_cmds
18920
18921 # Commands used to build a loadable module (assumed same as above if empty)
18922 module_cmds=$lt_module_cmds_GCJ
18923 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18924
18925 # Commands to strip libraries.
18926 old_striplib=$lt_old_striplib
18927 striplib=$lt_striplib
18928
18929 # Dependencies to place before the objects being linked to create a
18930 # shared library.
18931 predep_objects=$lt_predep_objects_GCJ
18932
18933 # Dependencies to place after the objects being linked to create a
18934 # shared library.
18935 postdep_objects=$lt_postdep_objects_GCJ
18936
18937 # Dependencies to place before the objects being linked to create a
18938 # shared library.
18939 predeps=$lt_predeps_GCJ
18940
18941 # Dependencies to place after the objects being linked to create a
18942 # shared library.
18943 postdeps=$lt_postdeps_GCJ
18944
18945 # The library search path used internally by the compiler when linking
18946 # a shared library.
18947 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18948
18949 # Method to check whether dependent libraries are shared objects.
18950 deplibs_check_method=$lt_deplibs_check_method
18951
18952 # Command to use when deplibs_check_method == file_magic.
18953 file_magic_cmd=$lt_file_magic_cmd
18954
18955 # Flag that allows shared libraries with undefined symbols to be built.
18956 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18957
18958 # Flag that forces no undefined symbols.
18959 no_undefined_flag=$lt_no_undefined_flag_GCJ
18960
18961 # Commands used to finish a libtool library installation in a directory.
18962 finish_cmds=$lt_finish_cmds
18963
18964 # Same as above, but a single script fragment to be evaled but not shown.
18965 finish_eval=$lt_finish_eval
18966
18967 # Take the output of nm and produce a listing of raw symbols and C names.
18968 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18969
18970 # Transform the output of nm in a proper C declaration
18971 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18972
18973 # Transform the output of nm in a C name address pair
18974 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18975
18976 # This is the shared library runtime path variable.
18977 runpath_var=$runpath_var
18978
18979 # This is the shared library path variable.
18980 shlibpath_var=$shlibpath_var
18981
18982 # Is shlibpath searched before the hard-coded library search path?
18983 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18984
18985 # How to hardcode a shared library path into an executable.
18986 hardcode_action=$hardcode_action_GCJ
18987
18988 # Whether we should hardcode library paths into libraries.
18989 hardcode_into_libs=$hardcode_into_libs
18990
18991 # Flag to hardcode \$libdir into a binary during linking.
18992 # This must work even if \$libdir does not exist.
18993 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18994
18995 # If ld is used when linking, flag to hardcode \$libdir into
18996 # a binary during linking. This must work even if \$libdir does
18997 # not exist.
18998 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18999
19000 # Whether we need a single -rpath flag with a separated argument.
19001 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19002
19003 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19004 # resulting binary.
19005 hardcode_direct=$hardcode_direct_GCJ
19006
19007 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19008 # resulting binary.
19009 hardcode_minus_L=$hardcode_minus_L_GCJ
19010
19011 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19012 # the resulting binary.
19013 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19014
19015 # Set to yes if building a shared library automatically hardcodes DIR into the library
19016 # and all subsequent libraries and executables linked against it.
19017 hardcode_automatic=$hardcode_automatic_GCJ
19018
19019 # Variables whose values should be saved in libtool wrapper scripts and
19020 # restored at relink time.
19021 variables_saved_for_relink="$variables_saved_for_relink"
19022
19023 # Whether libtool must link a program against all its dependency libraries.
19024 link_all_deplibs=$link_all_deplibs_GCJ
19025
19026 # Compile-time system search path for libraries
19027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19028
19029 # Run-time system search path for libraries
19030 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19031
19032 # Fix the shell variable \$srcfile for the compiler.
19033 fix_srcfile_path="$fix_srcfile_path_GCJ"
19034
19035 # Set to yes if exported symbols are required.
19036 always_export_symbols=$always_export_symbols_GCJ
19037
19038 # The commands to list exported symbols.
19039 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19040
19041 # The commands to extract the exported symbol list from a shared archive.
19042 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19043
19044 # Symbols that should not be listed in the preloaded symbols.
19045 exclude_expsyms=$lt_exclude_expsyms_GCJ
19046
19047 # Symbols that must always be exported.
19048 include_expsyms=$lt_include_expsyms_GCJ
19049
19050 # ### END LIBTOOL TAG CONFIG: $tagname
19051
19052 __EOF__
19053
19054
19055 else
19056   # If there is no Makefile yet, we rely on a make rule to execute
19057   # `config.status --recheck' to rerun these tests and create the
19058   # libtool script then.
19059   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19060   if test -f "$ltmain_in"; then
19061     test -f Makefile && make "$ltmain"
19062   fi
19063 fi
19064
19065
19066 ac_ext=c
19067 ac_cpp='$CPP $CPPFLAGS'
19068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19071
19072 CC="$lt_save_CC"
19073
19074         else
19075           tagname=""
19076         fi
19077         ;;
19078
19079       RC)
19080
19081
19082
19083 # Source file extension for RC test sources.
19084 ac_ext=rc
19085
19086 # Object file extension for compiled RC test sources.
19087 objext=o
19088 objext_RC=$objext
19089
19090 # Code to be used in simple compile tests
19091 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19092
19093 # Code to be used in simple link tests
19094 lt_simple_link_test_code="$lt_simple_compile_test_code"
19095
19096 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19097
19098 # If no C compiler was specified, use CC.
19099 LTCC=${LTCC-"$CC"}
19100
19101 # Allow CC to be a program name with arguments.
19102 compiler=$CC
19103
19104
19105 # save warnings/boilerplate of simple test code
19106 ac_outfile=conftest.$ac_objext
19107 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19109 _lt_compiler_boilerplate=`cat conftest.err`
19110 $rm conftest*
19111
19112 ac_outfile=conftest.$ac_objext
19113 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19115 _lt_linker_boilerplate=`cat conftest.err`
19116 $rm conftest*
19117
19118
19119 # Allow CC to be a program name with arguments.
19120 lt_save_CC="$CC"
19121 CC=${RC-"windres"}
19122 compiler=$CC
19123 compiler_RC=$CC
19124 for cc_temp in $compiler""; do
19125   case $cc_temp in
19126     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19127     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19128     \-*) ;;
19129     *) break;;
19130   esac
19131 done
19132 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19133
19134 lt_cv_prog_compiler_c_o_RC=yes
19135
19136 # The else clause should only fire when bootstrapping the
19137 # libtool distribution, otherwise you forgot to ship ltmain.sh
19138 # with your package, and you will get complaints that there are
19139 # no rules to generate ltmain.sh.
19140 if test -f "$ltmain"; then
19141   # See if we are running on zsh, and set the options which allow our commands through
19142   # without removal of \ escapes.
19143   if test -n "${ZSH_VERSION+set}" ; then
19144     setopt NO_GLOB_SUBST
19145   fi
19146   # Now quote all the things that may contain metacharacters while being
19147   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19148   # variables and quote the copies for generation of the libtool script.
19149   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19150     SED SHELL STRIP \
19151     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19152     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19153     deplibs_check_method reload_flag reload_cmds need_locks \
19154     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19155     lt_cv_sys_global_symbol_to_c_name_address \
19156     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19157     old_postinstall_cmds old_postuninstall_cmds \
19158     compiler_RC \
19159     CC_RC \
19160     LD_RC \
19161     lt_prog_compiler_wl_RC \
19162     lt_prog_compiler_pic_RC \
19163     lt_prog_compiler_static_RC \
19164     lt_prog_compiler_no_builtin_flag_RC \
19165     export_dynamic_flag_spec_RC \
19166     thread_safe_flag_spec_RC \
19167     whole_archive_flag_spec_RC \
19168     enable_shared_with_static_runtimes_RC \
19169     old_archive_cmds_RC \
19170     old_archive_from_new_cmds_RC \
19171     predep_objects_RC \
19172     postdep_objects_RC \
19173     predeps_RC \
19174     postdeps_RC \
19175     compiler_lib_search_path_RC \
19176     archive_cmds_RC \
19177     archive_expsym_cmds_RC \
19178     postinstall_cmds_RC \
19179     postuninstall_cmds_RC \
19180     old_archive_from_expsyms_cmds_RC \
19181     allow_undefined_flag_RC \
19182     no_undefined_flag_RC \
19183     export_symbols_cmds_RC \
19184     hardcode_libdir_flag_spec_RC \
19185     hardcode_libdir_flag_spec_ld_RC \
19186     hardcode_libdir_separator_RC \
19187     hardcode_automatic_RC \
19188     module_cmds_RC \
19189     module_expsym_cmds_RC \
19190     lt_cv_prog_compiler_c_o_RC \
19191     exclude_expsyms_RC \
19192     include_expsyms_RC; do
19193
19194     case $var in
19195     old_archive_cmds_RC | \
19196     old_archive_from_new_cmds_RC | \
19197     archive_cmds_RC | \
19198     archive_expsym_cmds_RC | \
19199     module_cmds_RC | \
19200     module_expsym_cmds_RC | \
19201     old_archive_from_expsyms_cmds_RC | \
19202     export_symbols_cmds_RC | \
19203     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19204     postinstall_cmds | postuninstall_cmds | \
19205     old_postinstall_cmds | old_postuninstall_cmds | \
19206     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19207       # Double-quote double-evaled strings.
19208       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19209       ;;
19210     *)
19211       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19212       ;;
19213     esac
19214   done
19215
19216   case $lt_echo in
19217   *'\$0 --fallback-echo"')
19218     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19219     ;;
19220   esac
19221
19222 cfgfile="$ofile"
19223
19224   cat <<__EOF__ >> "$cfgfile"
19225 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19226
19227 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19228
19229 # Shell to use when invoking shell scripts.
19230 SHELL=$lt_SHELL
19231
19232 # Whether or not to build shared libraries.
19233 build_libtool_libs=$enable_shared
19234
19235 # Whether or not to build static libraries.
19236 build_old_libs=$enable_static
19237
19238 # Whether or not to add -lc for building shared libraries.
19239 build_libtool_need_lc=$archive_cmds_need_lc_RC
19240
19241 # Whether or not to disallow shared libs when runtime libs are static
19242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19243
19244 # Whether or not to optimize for fast installation.
19245 fast_install=$enable_fast_install
19246
19247 # The host system.
19248 host_alias=$host_alias
19249 host=$host
19250 host_os=$host_os
19251
19252 # The build system.
19253 build_alias=$build_alias
19254 build=$build
19255 build_os=$build_os
19256
19257 # An echo program that does not interpret backslashes.
19258 echo=$lt_echo
19259
19260 # The archiver.
19261 AR=$lt_AR
19262 AR_FLAGS=$lt_AR_FLAGS
19263
19264 # A C compiler.
19265 LTCC=$lt_LTCC
19266
19267 # A language-specific compiler.
19268 CC=$lt_compiler_RC
19269
19270 # Is the compiler the GNU C compiler?
19271 with_gcc=$GCC_RC
19272
19273 # An ERE matcher.
19274 EGREP=$lt_EGREP
19275
19276 # The linker used to build libraries.
19277 LD=$lt_LD_RC
19278
19279 # Whether we need hard or soft links.
19280 LN_S=$lt_LN_S
19281
19282 # A BSD-compatible nm program.
19283 NM=$lt_NM
19284
19285 # A symbol stripping program
19286 STRIP=$lt_STRIP
19287
19288 # Used to examine libraries when file_magic_cmd begins "file"
19289 MAGIC_CMD=$MAGIC_CMD
19290
19291 # Used on cygwin: DLL creation program.
19292 DLLTOOL="$DLLTOOL"
19293
19294 # Used on cygwin: object dumper.
19295 OBJDUMP="$OBJDUMP"
19296
19297 # Used on cygwin: assembler.
19298 AS="$AS"
19299
19300 # The name of the directory that contains temporary libtool files.
19301 objdir=$objdir
19302
19303 # How to create reloadable object files.
19304 reload_flag=$lt_reload_flag
19305 reload_cmds=$lt_reload_cmds
19306
19307 # How to pass a linker flag through the compiler.
19308 wl=$lt_lt_prog_compiler_wl_RC
19309
19310 # Object file suffix (normally "o").
19311 objext="$ac_objext"
19312
19313 # Old archive suffix (normally "a").
19314 libext="$libext"
19315
19316 # Shared library suffix (normally ".so").
19317 shrext_cmds='$shrext_cmds'
19318
19319 # Executable file suffix (normally "").
19320 exeext="$exeext"
19321
19322 # Additional compiler flags for building library objects.
19323 pic_flag=$lt_lt_prog_compiler_pic_RC
19324 pic_mode=$pic_mode
19325
19326 # What is the maximum length of a command?
19327 max_cmd_len=$lt_cv_sys_max_cmd_len
19328
19329 # Does compiler simultaneously support -c and -o options?
19330 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19331
19332 # Must we lock files when doing compilation?
19333 need_locks=$lt_need_locks
19334
19335 # Do we need the lib prefix for modules?
19336 need_lib_prefix=$need_lib_prefix
19337
19338 # Do we need a version for libraries?
19339 need_version=$need_version
19340
19341 # Whether dlopen is supported.
19342 dlopen_support=$enable_dlopen
19343
19344 # Whether dlopen of programs is supported.
19345 dlopen_self=$enable_dlopen_self
19346
19347 # Whether dlopen of statically linked programs is supported.
19348 dlopen_self_static=$enable_dlopen_self_static
19349
19350 # Compiler flag to prevent dynamic linking.
19351 link_static_flag=$lt_lt_prog_compiler_static_RC
19352
19353 # Compiler flag to turn off builtin functions.
19354 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19355
19356 # Compiler flag to allow reflexive dlopens.
19357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19358
19359 # Compiler flag to generate shared objects directly from archives.
19360 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19361
19362 # Compiler flag to generate thread-safe objects.
19363 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19364
19365 # Library versioning type.
19366 version_type=$version_type
19367
19368 # Format of library name prefix.
19369 libname_spec=$lt_libname_spec
19370
19371 # List of archive names.  First name is the real one, the rest are links.
19372 # The last name is the one that the linker finds with -lNAME.
19373 library_names_spec=$lt_library_names_spec
19374
19375 # The coded name of the library, if different from the real name.
19376 soname_spec=$lt_soname_spec
19377
19378 # Commands used to build and install an old-style archive.
19379 RANLIB=$lt_RANLIB
19380 old_archive_cmds=$lt_old_archive_cmds_RC
19381 old_postinstall_cmds=$lt_old_postinstall_cmds
19382 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19383
19384 # Create an old-style archive from a shared archive.
19385 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19386
19387 # Create a temporary old-style archive to link instead of a shared archive.
19388 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19389
19390 # Commands used to build and install a shared archive.
19391 archive_cmds=$lt_archive_cmds_RC
19392 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19393 postinstall_cmds=$lt_postinstall_cmds
19394 postuninstall_cmds=$lt_postuninstall_cmds
19395
19396 # Commands used to build a loadable module (assumed same as above if empty)
19397 module_cmds=$lt_module_cmds_RC
19398 module_expsym_cmds=$lt_module_expsym_cmds_RC
19399
19400 # Commands to strip libraries.
19401 old_striplib=$lt_old_striplib
19402 striplib=$lt_striplib
19403
19404 # Dependencies to place before the objects being linked to create a
19405 # shared library.
19406 predep_objects=$lt_predep_objects_RC
19407
19408 # Dependencies to place after the objects being linked to create a
19409 # shared library.
19410 postdep_objects=$lt_postdep_objects_RC
19411
19412 # Dependencies to place before the objects being linked to create a
19413 # shared library.
19414 predeps=$lt_predeps_RC
19415
19416 # Dependencies to place after the objects being linked to create a
19417 # shared library.
19418 postdeps=$lt_postdeps_RC
19419
19420 # The library search path used internally by the compiler when linking
19421 # a shared library.
19422 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19423
19424 # Method to check whether dependent libraries are shared objects.
19425 deplibs_check_method=$lt_deplibs_check_method
19426
19427 # Command to use when deplibs_check_method == file_magic.
19428 file_magic_cmd=$lt_file_magic_cmd
19429
19430 # Flag that allows shared libraries with undefined symbols to be built.
19431 allow_undefined_flag=$lt_allow_undefined_flag_RC
19432
19433 # Flag that forces no undefined symbols.
19434 no_undefined_flag=$lt_no_undefined_flag_RC
19435
19436 # Commands used to finish a libtool library installation in a directory.
19437 finish_cmds=$lt_finish_cmds
19438
19439 # Same as above, but a single script fragment to be evaled but not shown.
19440 finish_eval=$lt_finish_eval
19441
19442 # Take the output of nm and produce a listing of raw symbols and C names.
19443 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19444
19445 # Transform the output of nm in a proper C declaration
19446 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19447
19448 # Transform the output of nm in a C name address pair
19449 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19450
19451 # This is the shared library runtime path variable.
19452 runpath_var=$runpath_var
19453
19454 # This is the shared library path variable.
19455 shlibpath_var=$shlibpath_var
19456
19457 # Is shlibpath searched before the hard-coded library search path?
19458 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19459
19460 # How to hardcode a shared library path into an executable.
19461 hardcode_action=$hardcode_action_RC
19462
19463 # Whether we should hardcode library paths into libraries.
19464 hardcode_into_libs=$hardcode_into_libs
19465
19466 # Flag to hardcode \$libdir into a binary during linking.
19467 # This must work even if \$libdir does not exist.
19468 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19469
19470 # If ld is used when linking, flag to hardcode \$libdir into
19471 # a binary during linking. This must work even if \$libdir does
19472 # not exist.
19473 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19474
19475 # Whether we need a single -rpath flag with a separated argument.
19476 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19477
19478 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19479 # resulting binary.
19480 hardcode_direct=$hardcode_direct_RC
19481
19482 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19483 # resulting binary.
19484 hardcode_minus_L=$hardcode_minus_L_RC
19485
19486 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19487 # the resulting binary.
19488 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19489
19490 # Set to yes if building a shared library automatically hardcodes DIR into the library
19491 # and all subsequent libraries and executables linked against it.
19492 hardcode_automatic=$hardcode_automatic_RC
19493
19494 # Variables whose values should be saved in libtool wrapper scripts and
19495 # restored at relink time.
19496 variables_saved_for_relink="$variables_saved_for_relink"
19497
19498 # Whether libtool must link a program against all its dependency libraries.
19499 link_all_deplibs=$link_all_deplibs_RC
19500
19501 # Compile-time system search path for libraries
19502 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19503
19504 # Run-time system search path for libraries
19505 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19506
19507 # Fix the shell variable \$srcfile for the compiler.
19508 fix_srcfile_path="$fix_srcfile_path_RC"
19509
19510 # Set to yes if exported symbols are required.
19511 always_export_symbols=$always_export_symbols_RC
19512
19513 # The commands to list exported symbols.
19514 export_symbols_cmds=$lt_export_symbols_cmds_RC
19515
19516 # The commands to extract the exported symbol list from a shared archive.
19517 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19518
19519 # Symbols that should not be listed in the preloaded symbols.
19520 exclude_expsyms=$lt_exclude_expsyms_RC
19521
19522 # Symbols that must always be exported.
19523 include_expsyms=$lt_include_expsyms_RC
19524
19525 # ### END LIBTOOL TAG CONFIG: $tagname
19526
19527 __EOF__
19528
19529
19530 else
19531   # If there is no Makefile yet, we rely on a make rule to execute
19532   # `config.status --recheck' to rerun these tests and create the
19533   # libtool script then.
19534   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19535   if test -f "$ltmain_in"; then
19536     test -f Makefile && make "$ltmain"
19537   fi
19538 fi
19539
19540
19541 ac_ext=c
19542 ac_cpp='$CPP $CPPFLAGS'
19543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19546
19547 CC="$lt_save_CC"
19548
19549         ;;
19550
19551       *)
19552         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19553 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19554    { (exit 1); exit 1; }; }
19555         ;;
19556       esac
19557
19558       # Append the new tag name to the list of available tags.
19559       if test -n "$tagname" ; then
19560       available_tags="$available_tags $tagname"
19561     fi
19562     fi
19563   done
19564   IFS="$lt_save_ifs"
19565
19566   # Now substitute the updated list of available tags.
19567   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19568     mv "${ofile}T" "$ofile"
19569     chmod +x "$ofile"
19570   else
19571     rm -f "${ofile}T"
19572     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19573 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19574    { (exit 1); exit 1; }; }
19575   fi
19576 fi
19577
19578
19579
19580 # This can be used to rebuild libtool when needed
19581 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19582
19583 # Always use our own libtool.
19584 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19585
19586 # Prevent multiple expansion
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611 ac_ext=c
19612 ac_cpp='$CPP $CPPFLAGS'
19613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19616 if test -n "$ac_tool_prefix"; then
19617   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19618 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19619 echo "$as_me:$LINENO: checking for $ac_word" >&5
19620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19621 if test "${ac_cv_prog_CC+set}" = set; then
19622   echo $ECHO_N "(cached) $ECHO_C" >&6
19623 else
19624   if test -n "$CC"; then
19625   ac_cv_prog_CC="$CC" # Let the user override the test.
19626 else
19627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19628 for as_dir in $PATH
19629 do
19630   IFS=$as_save_IFS
19631   test -z "$as_dir" && as_dir=.
19632   for ac_exec_ext in '' $ac_executable_extensions; do
19633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19634     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19636     break 2
19637   fi
19638 done
19639 done
19640
19641 fi
19642 fi
19643 CC=$ac_cv_prog_CC
19644 if test -n "$CC"; then
19645   echo "$as_me:$LINENO: result: $CC" >&5
19646 echo "${ECHO_T}$CC" >&6
19647 else
19648   echo "$as_me:$LINENO: result: no" >&5
19649 echo "${ECHO_T}no" >&6
19650 fi
19651
19652 fi
19653 if test -z "$ac_cv_prog_CC"; then
19654   ac_ct_CC=$CC
19655   # Extract the first word of "gcc", so it can be a program name with args.
19656 set dummy gcc; ac_word=$2
19657 echo "$as_me:$LINENO: checking for $ac_word" >&5
19658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19660   echo $ECHO_N "(cached) $ECHO_C" >&6
19661 else
19662   if test -n "$ac_ct_CC"; then
19663   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19664 else
19665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19666 for as_dir in $PATH
19667 do
19668   IFS=$as_save_IFS
19669   test -z "$as_dir" && as_dir=.
19670   for ac_exec_ext in '' $ac_executable_extensions; do
19671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19672     ac_cv_prog_ac_ct_CC="gcc"
19673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19674     break 2
19675   fi
19676 done
19677 done
19678
19679 fi
19680 fi
19681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19682 if test -n "$ac_ct_CC"; then
19683   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19684 echo "${ECHO_T}$ac_ct_CC" >&6
19685 else
19686   echo "$as_me:$LINENO: result: no" >&5
19687 echo "${ECHO_T}no" >&6
19688 fi
19689
19690   CC=$ac_ct_CC
19691 else
19692   CC="$ac_cv_prog_CC"
19693 fi
19694
19695 if test -z "$CC"; then
19696   if test -n "$ac_tool_prefix"; then
19697   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19698 set dummy ${ac_tool_prefix}cc; ac_word=$2
19699 echo "$as_me:$LINENO: checking for $ac_word" >&5
19700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19701 if test "${ac_cv_prog_CC+set}" = set; then
19702   echo $ECHO_N "(cached) $ECHO_C" >&6
19703 else
19704   if test -n "$CC"; then
19705   ac_cv_prog_CC="$CC" # Let the user override the test.
19706 else
19707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19708 for as_dir in $PATH
19709 do
19710   IFS=$as_save_IFS
19711   test -z "$as_dir" && as_dir=.
19712   for ac_exec_ext in '' $ac_executable_extensions; do
19713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19714     ac_cv_prog_CC="${ac_tool_prefix}cc"
19715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19716     break 2
19717   fi
19718 done
19719 done
19720
19721 fi
19722 fi
19723 CC=$ac_cv_prog_CC
19724 if test -n "$CC"; then
19725   echo "$as_me:$LINENO: result: $CC" >&5
19726 echo "${ECHO_T}$CC" >&6
19727 else
19728   echo "$as_me:$LINENO: result: no" >&5
19729 echo "${ECHO_T}no" >&6
19730 fi
19731
19732 fi
19733 if test -z "$ac_cv_prog_CC"; then
19734   ac_ct_CC=$CC
19735   # Extract the first word of "cc", so it can be a program name with args.
19736 set dummy cc; ac_word=$2
19737 echo "$as_me:$LINENO: checking for $ac_word" >&5
19738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19740   echo $ECHO_N "(cached) $ECHO_C" >&6
19741 else
19742   if test -n "$ac_ct_CC"; then
19743   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19744 else
19745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19746 for as_dir in $PATH
19747 do
19748   IFS=$as_save_IFS
19749   test -z "$as_dir" && as_dir=.
19750   for ac_exec_ext in '' $ac_executable_extensions; do
19751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19752     ac_cv_prog_ac_ct_CC="cc"
19753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19754     break 2
19755   fi
19756 done
19757 done
19758
19759 fi
19760 fi
19761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19762 if test -n "$ac_ct_CC"; then
19763   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19764 echo "${ECHO_T}$ac_ct_CC" >&6
19765 else
19766   echo "$as_me:$LINENO: result: no" >&5
19767 echo "${ECHO_T}no" >&6
19768 fi
19769
19770   CC=$ac_ct_CC
19771 else
19772   CC="$ac_cv_prog_CC"
19773 fi
19774
19775 fi
19776 if test -z "$CC"; then
19777   # Extract the first word of "cc", so it can be a program name with args.
19778 set dummy cc; ac_word=$2
19779 echo "$as_me:$LINENO: checking for $ac_word" >&5
19780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19781 if test "${ac_cv_prog_CC+set}" = set; then
19782   echo $ECHO_N "(cached) $ECHO_C" >&6
19783 else
19784   if test -n "$CC"; then
19785   ac_cv_prog_CC="$CC" # Let the user override the test.
19786 else
19787   ac_prog_rejected=no
19788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19789 for as_dir in $PATH
19790 do
19791   IFS=$as_save_IFS
19792   test -z "$as_dir" && as_dir=.
19793   for ac_exec_ext in '' $ac_executable_extensions; do
19794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19795     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19796        ac_prog_rejected=yes
19797        continue
19798      fi
19799     ac_cv_prog_CC="cc"
19800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19801     break 2
19802   fi
19803 done
19804 done
19805
19806 if test $ac_prog_rejected = yes; then
19807   # We found a bogon in the path, so make sure we never use it.
19808   set dummy $ac_cv_prog_CC
19809   shift
19810   if test $# != 0; then
19811     # We chose a different compiler from the bogus one.
19812     # However, it has the same basename, so the bogon will be chosen
19813     # first if we set CC to just the basename; use the full file name.
19814     shift
19815     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19816   fi
19817 fi
19818 fi
19819 fi
19820 CC=$ac_cv_prog_CC
19821 if test -n "$CC"; then
19822   echo "$as_me:$LINENO: result: $CC" >&5
19823 echo "${ECHO_T}$CC" >&6
19824 else
19825   echo "$as_me:$LINENO: result: no" >&5
19826 echo "${ECHO_T}no" >&6
19827 fi
19828
19829 fi
19830 if test -z "$CC"; then
19831   if test -n "$ac_tool_prefix"; then
19832   for ac_prog in cl
19833   do
19834     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19836 echo "$as_me:$LINENO: checking for $ac_word" >&5
19837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19838 if test "${ac_cv_prog_CC+set}" = set; then
19839   echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841   if test -n "$CC"; then
19842   ac_cv_prog_CC="$CC" # Let the user override the test.
19843 else
19844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19845 for as_dir in $PATH
19846 do
19847   IFS=$as_save_IFS
19848   test -z "$as_dir" && as_dir=.
19849   for ac_exec_ext in '' $ac_executable_extensions; do
19850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19851     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19853     break 2
19854   fi
19855 done
19856 done
19857
19858 fi
19859 fi
19860 CC=$ac_cv_prog_CC
19861 if test -n "$CC"; then
19862   echo "$as_me:$LINENO: result: $CC" >&5
19863 echo "${ECHO_T}$CC" >&6
19864 else
19865   echo "$as_me:$LINENO: result: no" >&5
19866 echo "${ECHO_T}no" >&6
19867 fi
19868
19869     test -n "$CC" && break
19870   done
19871 fi
19872 if test -z "$CC"; then
19873   ac_ct_CC=$CC
19874   for ac_prog in cl
19875 do
19876   # Extract the first word of "$ac_prog", so it can be a program name with args.
19877 set dummy $ac_prog; ac_word=$2
19878 echo "$as_me:$LINENO: checking for $ac_word" >&5
19879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19881   echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883   if test -n "$ac_ct_CC"; then
19884   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19885 else
19886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19887 for as_dir in $PATH
19888 do
19889   IFS=$as_save_IFS
19890   test -z "$as_dir" && as_dir=.
19891   for ac_exec_ext in '' $ac_executable_extensions; do
19892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19893     ac_cv_prog_ac_ct_CC="$ac_prog"
19894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19895     break 2
19896   fi
19897 done
19898 done
19899
19900 fi
19901 fi
19902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19903 if test -n "$ac_ct_CC"; then
19904   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19905 echo "${ECHO_T}$ac_ct_CC" >&6
19906 else
19907   echo "$as_me:$LINENO: result: no" >&5
19908 echo "${ECHO_T}no" >&6
19909 fi
19910
19911   test -n "$ac_ct_CC" && break
19912 done
19913
19914   CC=$ac_ct_CC
19915 fi
19916
19917 fi
19918
19919
19920 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19921 See \`config.log' for more details." >&5
19922 echo "$as_me: error: no acceptable C compiler found in \$PATH
19923 See \`config.log' for more details." >&2;}
19924    { (exit 1); exit 1; }; }
19925
19926 # Provide some information about the compiler.
19927 echo "$as_me:$LINENO:" \
19928      "checking for C compiler version" >&5
19929 ac_compiler=`set X $ac_compile; echo $2`
19930 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19931   (eval $ac_compiler --version </dev/null >&5) 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); }
19935 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19936   (eval $ac_compiler -v </dev/null >&5) 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); }
19940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19941   (eval $ac_compiler -V </dev/null >&5) 2>&5
19942   ac_status=$?
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); }
19945
19946 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19947 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19948 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19949   echo $ECHO_N "(cached) $ECHO_C" >&6
19950 else
19951   cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h.  */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h.  */
19957
19958 int
19959 main ()
19960 {
19961 #ifndef __GNUC__
19962        choke me
19963 #endif
19964
19965   ;
19966   return 0;
19967 }
19968 _ACEOF
19969 rm -f conftest.$ac_objext
19970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19971   (eval $ac_compile) 2>conftest.er1
19972   ac_status=$?
19973   grep -v '^ *+' conftest.er1 >conftest.err
19974   rm -f conftest.er1
19975   cat conftest.err >&5
19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); } &&
19978          { ac_try='test -z "$ac_c_werror_flag"
19979                          || test ! -s conftest.err'
19980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981   (eval $ac_try) 2>&5
19982   ac_status=$?
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); }; } &&
19985          { ac_try='test -s conftest.$ac_objext'
19986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987   (eval $ac_try) 2>&5
19988   ac_status=$?
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); }; }; then
19991   ac_compiler_gnu=yes
19992 else
19993   echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19995
19996 ac_compiler_gnu=no
19997 fi
19998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19999 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20000
20001 fi
20002 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20003 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
20004 GCC=`test $ac_compiler_gnu = yes && echo yes`
20005 ac_test_CFLAGS=${CFLAGS+set}
20006 ac_save_CFLAGS=$CFLAGS
20007 CFLAGS="-g"
20008 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20009 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
20010 if test "${ac_cv_prog_cc_g+set}" = set; then
20011   echo $ECHO_N "(cached) $ECHO_C" >&6
20012 else
20013   cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h.  */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h.  */
20019
20020 int
20021 main ()
20022 {
20023
20024   ;
20025   return 0;
20026 }
20027 _ACEOF
20028 rm -f conftest.$ac_objext
20029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20030   (eval $ac_compile) 2>conftest.er1
20031   ac_status=$?
20032   grep -v '^ *+' conftest.er1 >conftest.err
20033   rm -f conftest.er1
20034   cat conftest.err >&5
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } &&
20037          { ac_try='test -z "$ac_c_werror_flag"
20038                          || test ! -s conftest.err'
20039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040   (eval $ac_try) 2>&5
20041   ac_status=$?
20042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); }; } &&
20044          { ac_try='test -s conftest.$ac_objext'
20045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046   (eval $ac_try) 2>&5
20047   ac_status=$?
20048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049   (exit $ac_status); }; }; then
20050   ac_cv_prog_cc_g=yes
20051 else
20052   echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20054
20055 ac_cv_prog_cc_g=no
20056 fi
20057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20058 fi
20059 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20060 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
20061 if test "$ac_test_CFLAGS" = set; then
20062   CFLAGS=$ac_save_CFLAGS
20063 elif test $ac_cv_prog_cc_g = yes; then
20064   if test "$GCC" = yes; then
20065     CFLAGS="-g -O2"
20066   else
20067     CFLAGS="-g"
20068   fi
20069 else
20070   if test "$GCC" = yes; then
20071     CFLAGS="-O2"
20072   else
20073     CFLAGS=
20074   fi
20075 fi
20076 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
20077 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
20078 if test "${ac_cv_prog_cc_stdc+set}" = set; then
20079   echo $ECHO_N "(cached) $ECHO_C" >&6
20080 else
20081   ac_cv_prog_cc_stdc=no
20082 ac_save_CC=$CC
20083 cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089 #include <stdarg.h>
20090 #include <stdio.h>
20091 #include <sys/types.h>
20092 #include <sys/stat.h>
20093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20094 struct buf { int x; };
20095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20096 static char *e (p, i)
20097      char **p;
20098      int i;
20099 {
20100   return p[i];
20101 }
20102 static char *f (char * (*g) (char **, int), char **p, ...)
20103 {
20104   char *s;
20105   va_list v;
20106   va_start (v,p);
20107   s = g (p, va_arg (v,int));
20108   va_end (v);
20109   return s;
20110 }
20111
20112 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20113    function prototypes and stuff, but not '\xHH' hex character constants.
20114    These don't provoke an error unfortunately, instead are silently treated
20115    as 'x'.  The following induces an error, until -std1 is added to get
20116    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20117    array size at least.  It's necessary to write '\x00'==0 to get something
20118    that's true only with -std1.  */
20119 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20120
20121 int test (int i, double x);
20122 struct s1 {int (*f) (int a);};
20123 struct s2 {int (*f) (double a);};
20124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20125 int argc;
20126 char **argv;
20127 int
20128 main ()
20129 {
20130 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20131   ;
20132   return 0;
20133 }
20134 _ACEOF
20135 # Don't try gcc -ansi; that turns off useful extensions and
20136 # breaks some systems' header files.
20137 # AIX                   -qlanglvl=ansi
20138 # Ultrix and OSF/1      -std1
20139 # HP-UX 10.20 and later -Ae
20140 # HP-UX older versions  -Aa -D_HPUX_SOURCE
20141 # SVR4                  -Xc -D__EXTENSIONS__
20142 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20143 do
20144   CC="$ac_save_CC $ac_arg"
20145   rm -f conftest.$ac_objext
20146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20147   (eval $ac_compile) 2>conftest.er1
20148   ac_status=$?
20149   grep -v '^ *+' conftest.er1 >conftest.err
20150   rm -f conftest.er1
20151   cat conftest.err >&5
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); } &&
20154          { ac_try='test -z "$ac_c_werror_flag"
20155                          || test ! -s conftest.err'
20156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157   (eval $ac_try) 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; } &&
20161          { ac_try='test -s conftest.$ac_objext'
20162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163   (eval $ac_try) 2>&5
20164   ac_status=$?
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); }; }; then
20167   ac_cv_prog_cc_stdc=$ac_arg
20168 break
20169 else
20170   echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20172
20173 fi
20174 rm -f conftest.err conftest.$ac_objext
20175 done
20176 rm -f conftest.$ac_ext conftest.$ac_objext
20177 CC=$ac_save_CC
20178
20179 fi
20180
20181 case "x$ac_cv_prog_cc_stdc" in
20182   x|xno)
20183     echo "$as_me:$LINENO: result: none needed" >&5
20184 echo "${ECHO_T}none needed" >&6 ;;
20185   *)
20186     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
20187 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
20188     CC="$CC $ac_cv_prog_cc_stdc" ;;
20189 esac
20190
20191 # Some people use a C++ compiler to compile C.  Since we use `exit',
20192 # in C++ we need to declare it.  In case someone uses the same compiler
20193 # for both compiling C and C++ we need to have the C++ compiler decide
20194 # the declaration of exit, since it's the most demanding environment.
20195 cat >conftest.$ac_ext <<_ACEOF
20196 #ifndef __cplusplus
20197   choke me
20198 #endif
20199 _ACEOF
20200 rm -f conftest.$ac_objext
20201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20202   (eval $ac_compile) 2>conftest.er1
20203   ac_status=$?
20204   grep -v '^ *+' conftest.er1 >conftest.err
20205   rm -f conftest.er1
20206   cat conftest.err >&5
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); } &&
20209          { ac_try='test -z "$ac_c_werror_flag"
20210                          || test ! -s conftest.err'
20211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212   (eval $ac_try) 2>&5
20213   ac_status=$?
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); }; } &&
20216          { ac_try='test -s conftest.$ac_objext'
20217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218   (eval $ac_try) 2>&5
20219   ac_status=$?
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); }; }; then
20222   for ac_declaration in \
20223    '' \
20224    'extern "C" void std::exit (int) throw (); using std::exit;' \
20225    'extern "C" void std::exit (int); using std::exit;' \
20226    'extern "C" void exit (int) throw ();' \
20227    'extern "C" void exit (int);' \
20228    'void exit (int);'
20229 do
20230   cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h.  */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h.  */
20236 $ac_declaration
20237 #include <stdlib.h>
20238 int
20239 main ()
20240 {
20241 exit (42);
20242   ;
20243   return 0;
20244 }
20245 _ACEOF
20246 rm -f conftest.$ac_objext
20247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20248   (eval $ac_compile) 2>conftest.er1
20249   ac_status=$?
20250   grep -v '^ *+' conftest.er1 >conftest.err
20251   rm -f conftest.er1
20252   cat conftest.err >&5
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); } &&
20255          { ac_try='test -z "$ac_c_werror_flag"
20256                          || test ! -s conftest.err'
20257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258   (eval $ac_try) 2>&5
20259   ac_status=$?
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); }; } &&
20262          { ac_try='test -s conftest.$ac_objext'
20263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264   (eval $ac_try) 2>&5
20265   ac_status=$?
20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); }; }; then
20268   :
20269 else
20270   echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20272
20273 continue
20274 fi
20275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20276   cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h.  */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h.  */
20282 $ac_declaration
20283 int
20284 main ()
20285 {
20286 exit (42);
20287   ;
20288   return 0;
20289 }
20290 _ACEOF
20291 rm -f conftest.$ac_objext
20292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20293   (eval $ac_compile) 2>conftest.er1
20294   ac_status=$?
20295   grep -v '^ *+' conftest.er1 >conftest.err
20296   rm -f conftest.er1
20297   cat conftest.err >&5
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); } &&
20300          { ac_try='test -z "$ac_c_werror_flag"
20301                          || test ! -s conftest.err'
20302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303   (eval $ac_try) 2>&5
20304   ac_status=$?
20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); }; } &&
20307          { ac_try='test -s conftest.$ac_objext'
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   break
20314 else
20315   echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318 fi
20319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20320 done
20321 rm -f conftest*
20322 if test -n "$ac_declaration"; then
20323   echo '#ifdef __cplusplus' >>confdefs.h
20324   echo $ac_declaration      >>confdefs.h
20325   echo '#endif'             >>confdefs.h
20326 fi
20327
20328 else
20329   echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20331
20332 fi
20333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20334 ac_ext=c
20335 ac_cpp='$CPP $CPPFLAGS'
20336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20339
20340 depcc="$CC"   am_compiler_list=
20341
20342 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20343 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20344 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20345   echo $ECHO_N "(cached) $ECHO_C" >&6
20346 else
20347   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20348   # We make a subdir and do the tests there.  Otherwise we can end up
20349   # making bogus files that we don't know about and never remove.  For
20350   # instance it was reported that on HP-UX the gcc test will end up
20351   # making a dummy file named `D' -- because `-MD' means `put the output
20352   # in D'.
20353   mkdir conftest.dir
20354   # Copy depcomp to subdir because otherwise we won't find it if we're
20355   # using a relative directory.
20356   cp "$am_depcomp" conftest.dir
20357   cd conftest.dir
20358   # We will build objects and dependencies in a subdirectory because
20359   # it helps to detect inapplicable dependency modes.  For instance
20360   # both Tru64's cc and ICC support -MD to output dependencies as a
20361   # side effect of compilation, but ICC will put the dependencies in
20362   # the current directory while Tru64 will put them in the object
20363   # directory.
20364   mkdir sub
20365
20366   am_cv_CC_dependencies_compiler_type=none
20367   if test "$am_compiler_list" = ""; then
20368      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20369   fi
20370   for depmode in $am_compiler_list; do
20371     # Setup a source with many dependencies, because some compilers
20372     # like to wrap large dependency lists on column 80 (with \), and
20373     # we should not choose a depcomp mode which is confused by this.
20374     #
20375     # We need to recreate these files for each test, as the compiler may
20376     # overwrite some of them when testing with obscure command lines.
20377     # This happens at least with the AIX C compiler.
20378     : > sub/conftest.c
20379     for i in 1 2 3 4 5 6; do
20380       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20381       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20382       # Solaris 8's {/usr,}/bin/sh.
20383       touch sub/conftst$i.h
20384     done
20385     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20386
20387     case $depmode in
20388     nosideeffect)
20389       # after this tag, mechanisms are not by side-effect, so they'll
20390       # only be used when explicitly requested
20391       if test "x$enable_dependency_tracking" = xyes; then
20392         continue
20393       else
20394         break
20395       fi
20396       ;;
20397     none) break ;;
20398     esac
20399     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20400     # mode.  It turns out that the SunPro C++ compiler does not properly
20401     # handle `-M -o', and we need to detect this.
20402     if depmode=$depmode \
20403        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20404        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20405        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20406          >/dev/null 2>conftest.err &&
20407        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20408        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20409        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20410       # icc doesn't choke on unknown options, it will just issue warnings
20411       # or remarks (even with -Werror).  So we grep stderr for any message
20412       # that says an option was ignored or not supported.
20413       # When given -MP, icc 7.0 and 7.1 complain thusly:
20414       #   icc: Command line warning: ignoring option '-M'; no argument required
20415       # The diagnosis changed in icc 8.0:
20416       #   icc: Command line remark: option '-MP' not supported
20417       if (grep 'ignoring option' conftest.err ||
20418           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20419         am_cv_CC_dependencies_compiler_type=$depmode
20420         break
20421       fi
20422     fi
20423   done
20424
20425   cd ..
20426   rm -rf conftest.dir
20427 else
20428   am_cv_CC_dependencies_compiler_type=none
20429 fi
20430
20431 fi
20432 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20433 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20434 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20435
20436
20437
20438 if
20439   test "x$enable_dependency_tracking" != xno \
20440   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20441   am__fastdepCC_TRUE=
20442   am__fastdepCC_FALSE='#'
20443 else
20444   am__fastdepCC_TRUE='#'
20445   am__fastdepCC_FALSE=
20446 fi
20447
20448
20449 ac_ext=cc
20450 ac_cpp='$CXXCPP $CPPFLAGS'
20451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20454 if test -n "$ac_tool_prefix"; then
20455   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20456   do
20457     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20459 echo "$as_me:$LINENO: checking for $ac_word" >&5
20460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20461 if test "${ac_cv_prog_CXX+set}" = set; then
20462   echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464   if test -n "$CXX"; then
20465   ac_cv_prog_CXX="$CXX" # Let the user override the test.
20466 else
20467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20468 for as_dir in $PATH
20469 do
20470   IFS=$as_save_IFS
20471   test -z "$as_dir" && as_dir=.
20472   for ac_exec_ext in '' $ac_executable_extensions; do
20473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20474     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20476     break 2
20477   fi
20478 done
20479 done
20480
20481 fi
20482 fi
20483 CXX=$ac_cv_prog_CXX
20484 if test -n "$CXX"; then
20485   echo "$as_me:$LINENO: result: $CXX" >&5
20486 echo "${ECHO_T}$CXX" >&6
20487 else
20488   echo "$as_me:$LINENO: result: no" >&5
20489 echo "${ECHO_T}no" >&6
20490 fi
20491
20492     test -n "$CXX" && break
20493   done
20494 fi
20495 if test -z "$CXX"; then
20496   ac_ct_CXX=$CXX
20497   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20498 do
20499   # Extract the first word of "$ac_prog", so it can be a program name with args.
20500 set dummy $ac_prog; ac_word=$2
20501 echo "$as_me:$LINENO: checking for $ac_word" >&5
20502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20503 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20504   echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506   if test -n "$ac_ct_CXX"; then
20507   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20508 else
20509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20510 for as_dir in $PATH
20511 do
20512   IFS=$as_save_IFS
20513   test -z "$as_dir" && as_dir=.
20514   for ac_exec_ext in '' $ac_executable_extensions; do
20515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20516     ac_cv_prog_ac_ct_CXX="$ac_prog"
20517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20518     break 2
20519   fi
20520 done
20521 done
20522
20523 fi
20524 fi
20525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20526 if test -n "$ac_ct_CXX"; then
20527   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20528 echo "${ECHO_T}$ac_ct_CXX" >&6
20529 else
20530   echo "$as_me:$LINENO: result: no" >&5
20531 echo "${ECHO_T}no" >&6
20532 fi
20533
20534   test -n "$ac_ct_CXX" && break
20535 done
20536 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
20537
20538   CXX=$ac_ct_CXX
20539 fi
20540
20541
20542 # Provide some information about the compiler.
20543 echo "$as_me:$LINENO:" \
20544      "checking for C++ compiler version" >&5
20545 ac_compiler=`set X $ac_compile; echo $2`
20546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20547   (eval $ac_compiler --version </dev/null >&5) 2>&5
20548   ac_status=$?
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); }
20551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20552   (eval $ac_compiler -v </dev/null >&5) 2>&5
20553   ac_status=$?
20554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555   (exit $ac_status); }
20556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20557   (eval $ac_compiler -V </dev/null >&5) 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); }
20561
20562 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20563 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
20564 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20565   echo $ECHO_N "(cached) $ECHO_C" >&6
20566 else
20567   cat >conftest.$ac_ext <<_ACEOF
20568 /* confdefs.h.  */
20569 _ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h.  */
20573
20574 int
20575 main ()
20576 {
20577 #ifndef __GNUC__
20578        choke me
20579 #endif
20580
20581   ;
20582   return 0;
20583 }
20584 _ACEOF
20585 rm -f conftest.$ac_objext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20587   (eval $ac_compile) 2>conftest.er1
20588   ac_status=$?
20589   grep -v '^ *+' conftest.er1 >conftest.err
20590   rm -f conftest.er1
20591   cat conftest.err >&5
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); } &&
20594          { ac_try='test -z "$ac_cxx_werror_flag"
20595                          || test ! -s conftest.err'
20596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597   (eval $ac_try) 2>&5
20598   ac_status=$?
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); }; } &&
20601          { ac_try='test -s conftest.$ac_objext'
20602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603   (eval $ac_try) 2>&5
20604   ac_status=$?
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); }; }; then
20607   ac_compiler_gnu=yes
20608 else
20609   echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20611
20612 ac_compiler_gnu=no
20613 fi
20614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20615 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20616
20617 fi
20618 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20619 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
20620 GXX=`test $ac_compiler_gnu = yes && echo yes`
20621 ac_test_CXXFLAGS=${CXXFLAGS+set}
20622 ac_save_CXXFLAGS=$CXXFLAGS
20623 CXXFLAGS="-g"
20624 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20625 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
20626 if test "${ac_cv_prog_cxx_g+set}" = set; then
20627   echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629   cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h.  */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h.  */
20635
20636 int
20637 main ()
20638 {
20639
20640   ;
20641   return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646   (eval $ac_compile) 2>conftest.er1
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
20650   cat conftest.err >&5
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } &&
20653          { ac_try='test -z "$ac_cxx_werror_flag"
20654                          || test ! -s conftest.err'
20655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656   (eval $ac_try) 2>&5
20657   ac_status=$?
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); }; } &&
20660          { ac_try='test -s conftest.$ac_objext'
20661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662   (eval $ac_try) 2>&5
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; }; then
20666   ac_cv_prog_cxx_g=yes
20667 else
20668   echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671 ac_cv_prog_cxx_g=no
20672 fi
20673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20674 fi
20675 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
20677 if test "$ac_test_CXXFLAGS" = set; then
20678   CXXFLAGS=$ac_save_CXXFLAGS
20679 elif test $ac_cv_prog_cxx_g = yes; then
20680   if test "$GXX" = yes; then
20681     CXXFLAGS="-g -O2"
20682   else
20683     CXXFLAGS="-g"
20684   fi
20685 else
20686   if test "$GXX" = yes; then
20687     CXXFLAGS="-O2"
20688   else
20689     CXXFLAGS=
20690   fi
20691 fi
20692 for ac_declaration in \
20693    '' \
20694    'extern "C" void std::exit (int) throw (); using std::exit;' \
20695    'extern "C" void std::exit (int); using std::exit;' \
20696    'extern "C" void exit (int) throw ();' \
20697    'extern "C" void exit (int);' \
20698    'void exit (int);'
20699 do
20700   cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h.  */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h.  */
20706 $ac_declaration
20707 #include <stdlib.h>
20708 int
20709 main ()
20710 {
20711 exit (42);
20712   ;
20713   return 0;
20714 }
20715 _ACEOF
20716 rm -f conftest.$ac_objext
20717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20718   (eval $ac_compile) 2>conftest.er1
20719   ac_status=$?
20720   grep -v '^ *+' conftest.er1 >conftest.err
20721   rm -f conftest.er1
20722   cat conftest.err >&5
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); } &&
20725          { ac_try='test -z "$ac_cxx_werror_flag"
20726                          || test ! -s conftest.err'
20727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728   (eval $ac_try) 2>&5
20729   ac_status=$?
20730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731   (exit $ac_status); }; } &&
20732          { ac_try='test -s conftest.$ac_objext'
20733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734   (eval $ac_try) 2>&5
20735   ac_status=$?
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); }; }; then
20738   :
20739 else
20740   echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20742
20743 continue
20744 fi
20745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20746   cat >conftest.$ac_ext <<_ACEOF
20747 /* confdefs.h.  */
20748 _ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h.  */
20752 $ac_declaration
20753 int
20754 main ()
20755 {
20756 exit (42);
20757   ;
20758   return 0;
20759 }
20760 _ACEOF
20761 rm -f conftest.$ac_objext
20762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20763   (eval $ac_compile) 2>conftest.er1
20764   ac_status=$?
20765   grep -v '^ *+' conftest.er1 >conftest.err
20766   rm -f conftest.er1
20767   cat conftest.err >&5
20768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769   (exit $ac_status); } &&
20770          { ac_try='test -z "$ac_cxx_werror_flag"
20771                          || test ! -s conftest.err'
20772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773   (eval $ac_try) 2>&5
20774   ac_status=$?
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); }; } &&
20777          { ac_try='test -s conftest.$ac_objext'
20778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779   (eval $ac_try) 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); }; }; then
20783   break
20784 else
20785   echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20787
20788 fi
20789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20790 done
20791 rm -f conftest*
20792 if test -n "$ac_declaration"; then
20793   echo '#ifdef __cplusplus' >>confdefs.h
20794   echo $ac_declaration      >>confdefs.h
20795   echo '#endif'             >>confdefs.h
20796 fi
20797
20798 ac_ext=c
20799 ac_cpp='$CPP $CPPFLAGS'
20800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20803
20804 depcc="$CXX"  am_compiler_list=
20805
20806 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20807 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20808 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20809   echo $ECHO_N "(cached) $ECHO_C" >&6
20810 else
20811   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20812   # We make a subdir and do the tests there.  Otherwise we can end up
20813   # making bogus files that we don't know about and never remove.  For
20814   # instance it was reported that on HP-UX the gcc test will end up
20815   # making a dummy file named `D' -- because `-MD' means `put the output
20816   # in D'.
20817   mkdir conftest.dir
20818   # Copy depcomp to subdir because otherwise we won't find it if we're
20819   # using a relative directory.
20820   cp "$am_depcomp" conftest.dir
20821   cd conftest.dir
20822   # We will build objects and dependencies in a subdirectory because
20823   # it helps to detect inapplicable dependency modes.  For instance
20824   # both Tru64's cc and ICC support -MD to output dependencies as a
20825   # side effect of compilation, but ICC will put the dependencies in
20826   # the current directory while Tru64 will put them in the object
20827   # directory.
20828   mkdir sub
20829
20830   am_cv_CXX_dependencies_compiler_type=none
20831   if test "$am_compiler_list" = ""; then
20832      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20833   fi
20834   for depmode in $am_compiler_list; do
20835     # Setup a source with many dependencies, because some compilers
20836     # like to wrap large dependency lists on column 80 (with \), and
20837     # we should not choose a depcomp mode which is confused by this.
20838     #
20839     # We need to recreate these files for each test, as the compiler may
20840     # overwrite some of them when testing with obscure command lines.
20841     # This happens at least with the AIX C compiler.
20842     : > sub/conftest.c
20843     for i in 1 2 3 4 5 6; do
20844       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20845       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20846       # Solaris 8's {/usr,}/bin/sh.
20847       touch sub/conftst$i.h
20848     done
20849     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20850
20851     case $depmode in
20852     nosideeffect)
20853       # after this tag, mechanisms are not by side-effect, so they'll
20854       # only be used when explicitly requested
20855       if test "x$enable_dependency_tracking" = xyes; then
20856         continue
20857       else
20858         break
20859       fi
20860       ;;
20861     none) break ;;
20862     esac
20863     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20864     # mode.  It turns out that the SunPro C++ compiler does not properly
20865     # handle `-M -o', and we need to detect this.
20866     if depmode=$depmode \
20867        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20868        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20869        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20870          >/dev/null 2>conftest.err &&
20871        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20872        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20873        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20874       # icc doesn't choke on unknown options, it will just issue warnings
20875       # or remarks (even with -Werror).  So we grep stderr for any message
20876       # that says an option was ignored or not supported.
20877       # When given -MP, icc 7.0 and 7.1 complain thusly:
20878       #   icc: Command line warning: ignoring option '-M'; no argument required
20879       # The diagnosis changed in icc 8.0:
20880       #   icc: Command line remark: option '-MP' not supported
20881       if (grep 'ignoring option' conftest.err ||
20882           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20883         am_cv_CXX_dependencies_compiler_type=$depmode
20884         break
20885       fi
20886     fi
20887   done
20888
20889   cd ..
20890   rm -rf conftest.dir
20891 else
20892   am_cv_CXX_dependencies_compiler_type=none
20893 fi
20894
20895 fi
20896 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20897 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
20898 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20899
20900
20901
20902 if
20903   test "x$enable_dependency_tracking" != xno \
20904   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20905   am__fastdepCXX_TRUE=
20906   am__fastdepCXX_FALSE='#'
20907 else
20908   am__fastdepCXX_TRUE='#'
20909   am__fastdepCXX_FALSE=
20910 fi
20911
20912
20913 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20914 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20915 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20916 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20917   echo $ECHO_N "(cached) $ECHO_C" >&6
20918 else
20919   cat >conftest.make <<\_ACEOF
20920 all:
20921         @echo 'ac_maketemp="$(MAKE)"'
20922 _ACEOF
20923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20924 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20925 if test -n "$ac_maketemp"; then
20926   eval ac_cv_prog_make_${ac_make}_set=yes
20927 else
20928   eval ac_cv_prog_make_${ac_make}_set=no
20929 fi
20930 rm -f conftest.make
20931 fi
20932 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20933   echo "$as_me:$LINENO: result: yes" >&5
20934 echo "${ECHO_T}yes" >&6
20935   SET_MAKE=
20936 else
20937   echo "$as_me:$LINENO: result: no" >&5
20938 echo "${ECHO_T}no" >&6
20939   SET_MAKE="MAKE=${MAKE-make}"
20940 fi
20941
20942 if test -n "$ac_tool_prefix"; then
20943   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20945 echo "$as_me:$LINENO: checking for $ac_word" >&5
20946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20947 if test "${ac_cv_prog_RANLIB+set}" = set; then
20948   echo $ECHO_N "(cached) $ECHO_C" >&6
20949 else
20950   if test -n "$RANLIB"; then
20951   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20952 else
20953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20954 for as_dir in $PATH
20955 do
20956   IFS=$as_save_IFS
20957   test -z "$as_dir" && as_dir=.
20958   for ac_exec_ext in '' $ac_executable_extensions; do
20959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20960     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20962     break 2
20963   fi
20964 done
20965 done
20966
20967 fi
20968 fi
20969 RANLIB=$ac_cv_prog_RANLIB
20970 if test -n "$RANLIB"; then
20971   echo "$as_me:$LINENO: result: $RANLIB" >&5
20972 echo "${ECHO_T}$RANLIB" >&6
20973 else
20974   echo "$as_me:$LINENO: result: no" >&5
20975 echo "${ECHO_T}no" >&6
20976 fi
20977
20978 fi
20979 if test -z "$ac_cv_prog_RANLIB"; then
20980   ac_ct_RANLIB=$RANLIB
20981   # Extract the first word of "ranlib", so it can be a program name with args.
20982 set dummy ranlib; ac_word=$2
20983 echo "$as_me:$LINENO: checking for $ac_word" >&5
20984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20985 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20986   echo $ECHO_N "(cached) $ECHO_C" >&6
20987 else
20988   if test -n "$ac_ct_RANLIB"; then
20989   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20990 else
20991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20992 for as_dir in $PATH
20993 do
20994   IFS=$as_save_IFS
20995   test -z "$as_dir" && as_dir=.
20996   for ac_exec_ext in '' $ac_executable_extensions; do
20997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20998     ac_cv_prog_ac_ct_RANLIB="ranlib"
20999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21000     break 2
21001   fi
21002 done
21003 done
21004
21005   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
21006 fi
21007 fi
21008 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
21009 if test -n "$ac_ct_RANLIB"; then
21010   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
21011 echo "${ECHO_T}$ac_ct_RANLIB" >&6
21012 else
21013   echo "$as_me:$LINENO: result: no" >&5
21014 echo "${ECHO_T}no" >&6
21015 fi
21016
21017   RANLIB=$ac_ct_RANLIB
21018 else
21019   RANLIB="$ac_cv_prog_RANLIB"
21020 fi
21021
21022
21023 echo "$as_me:$LINENO: checking for X" >&5
21024 echo $ECHO_N "checking for X... $ECHO_C" >&6
21025
21026
21027 # Check whether --with-x or --without-x was given.
21028 if test "${with_x+set}" = set; then
21029   withval="$with_x"
21030
21031 fi;
21032 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21033 if test "x$with_x" = xno; then
21034   # The user explicitly disabled X.
21035   have_x=disabled
21036 else
21037   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21038     # Both variables are already set.
21039     have_x=yes
21040   else
21041     if test "${ac_cv_have_x+set}" = set; then
21042   echo $ECHO_N "(cached) $ECHO_C" >&6
21043 else
21044   # One or both of the vars are not set, and there is no cached value.
21045 ac_x_includes=no ac_x_libraries=no
21046 rm -fr conftest.dir
21047 if mkdir conftest.dir; then
21048   cd conftest.dir
21049   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21050   cat >Imakefile <<'_ACEOF'
21051 acfindx:
21052         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21053 _ACEOF
21054   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21055     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21056     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21057     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21058     for ac_extension in a so sl; do
21059       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21060          test -f $ac_im_libdir/libX11.$ac_extension; then
21061         ac_im_usrlibdir=$ac_im_libdir; break
21062       fi
21063     done
21064     # Screen out bogus values from the imake configuration.  They are
21065     # bogus both because they are the default anyway, and because
21066     # using them would break gcc on systems where it needs fixed includes.
21067     case $ac_im_incroot in
21068         /usr/include) ;;
21069         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21070     esac
21071     case $ac_im_usrlibdir in
21072         /usr/lib | /lib) ;;
21073         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21074     esac
21075   fi
21076   cd ..
21077   rm -fr conftest.dir
21078 fi
21079
21080 # Standard set of common directories for X headers.
21081 # Check X11 before X11Rn because it is often a symlink to the current release.
21082 ac_x_header_dirs='
21083 /usr/X11/include
21084 /usr/X11R6/include
21085 /usr/X11R5/include
21086 /usr/X11R4/include
21087
21088 /usr/include/X11
21089 /usr/include/X11R6
21090 /usr/include/X11R5
21091 /usr/include/X11R4
21092
21093 /usr/local/X11/include
21094 /usr/local/X11R6/include
21095 /usr/local/X11R5/include
21096 /usr/local/X11R4/include
21097
21098 /usr/local/include/X11
21099 /usr/local/include/X11R6
21100 /usr/local/include/X11R5
21101 /usr/local/include/X11R4
21102
21103 /usr/X386/include
21104 /usr/x386/include
21105 /usr/XFree86/include/X11
21106
21107 /usr/include
21108 /usr/local/include
21109 /usr/unsupported/include
21110 /usr/athena/include
21111 /usr/local/x11r5/include
21112 /usr/lpp/Xamples/include
21113
21114 /usr/openwin/include
21115 /usr/openwin/share/include'
21116
21117 if test "$ac_x_includes" = no; then
21118   # Guess where to find include files, by looking for Intrinsic.h.
21119   # First, try using that file with no special directory specified.
21120   cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126 #include <X11/Intrinsic.h>
21127 _ACEOF
21128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21130   ac_status=$?
21131   grep -v '^ *+' conftest.er1 >conftest.err
21132   rm -f conftest.er1
21133   cat conftest.err >&5
21134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135   (exit $ac_status); } >/dev/null; then
21136   if test -s conftest.err; then
21137     ac_cpp_err=$ac_c_preproc_warn_flag
21138     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21139   else
21140     ac_cpp_err=
21141   fi
21142 else
21143   ac_cpp_err=yes
21144 fi
21145 if test -z "$ac_cpp_err"; then
21146   # We can compile using X headers with no special include directory.
21147 ac_x_includes=
21148 else
21149   echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21151
21152   for ac_dir in $ac_x_header_dirs; do
21153   if test -r "$ac_dir/X11/Intrinsic.h"; then
21154     ac_x_includes=$ac_dir
21155     break
21156   fi
21157 done
21158 fi
21159 rm -f conftest.err conftest.$ac_ext
21160 fi # $ac_x_includes = no
21161
21162 if test "$ac_x_libraries" = no; then
21163   # Check for the libraries.
21164   # See if we find them without any special options.
21165   # Don't add to $LIBS permanently.
21166   ac_save_LIBS=$LIBS
21167   LIBS="-lXt $LIBS"
21168   cat >conftest.$ac_ext <<_ACEOF
21169 /* confdefs.h.  */
21170 _ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h.  */
21174 #include <X11/Intrinsic.h>
21175 int
21176 main ()
21177 {
21178 XtMalloc (0)
21179   ;
21180   return 0;
21181 }
21182 _ACEOF
21183 rm -f conftest.$ac_objext conftest$ac_exeext
21184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21185   (eval $ac_link) 2>conftest.er1
21186   ac_status=$?
21187   grep -v '^ *+' conftest.er1 >conftest.err
21188   rm -f conftest.er1
21189   cat conftest.err >&5
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } &&
21192          { ac_try='test -z "$ac_c_werror_flag"
21193                          || test ! -s conftest.err'
21194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195   (eval $ac_try) 2>&5
21196   ac_status=$?
21197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198   (exit $ac_status); }; } &&
21199          { ac_try='test -s conftest$ac_exeext'
21200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201   (eval $ac_try) 2>&5
21202   ac_status=$?
21203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204   (exit $ac_status); }; }; then
21205   LIBS=$ac_save_LIBS
21206 # We can link X programs with no special library path.
21207 ac_x_libraries=
21208 else
21209   echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 LIBS=$ac_save_LIBS
21213 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21214 do
21215   # Don't even attempt the hair of trying to link an X program!
21216   for ac_extension in a so sl; do
21217     if test -r $ac_dir/libXt.$ac_extension; then
21218       ac_x_libraries=$ac_dir
21219       break 2
21220     fi
21221   done
21222 done
21223 fi
21224 rm -f conftest.err conftest.$ac_objext \
21225       conftest$ac_exeext conftest.$ac_ext
21226 fi # $ac_x_libraries = no
21227
21228 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21229   # Didn't find X anywhere.  Cache the known absence of X.
21230   ac_cv_have_x="have_x=no"
21231 else
21232   # Record where we found X for the cache.
21233   ac_cv_have_x="have_x=yes \
21234                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21235 fi
21236 fi
21237
21238   fi
21239   eval "$ac_cv_have_x"
21240 fi # $with_x != no
21241
21242 if test "$have_x" != yes; then
21243   echo "$as_me:$LINENO: result: $have_x" >&5
21244 echo "${ECHO_T}$have_x" >&6
21245   no_x=yes
21246 else
21247   # If each of the values was on the command line, it overrides each guess.
21248   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21249   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21250   # Update the cache value to reflect the command line values.
21251   ac_cv_have_x="have_x=yes \
21252                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21253   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21254 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21255 fi
21256
21257 if test "$no_x" = yes; then
21258   # Not all programs may use this symbol, but it does not hurt to define it.
21259
21260 cat >>confdefs.h <<\_ACEOF
21261 #define X_DISPLAY_MISSING 1
21262 _ACEOF
21263
21264   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21265 else
21266   if test -n "$x_includes"; then
21267     X_CFLAGS="$X_CFLAGS -I$x_includes"
21268   fi
21269
21270   # It would also be nice to do this for all -L options, not just this one.
21271   if test -n "$x_libraries"; then
21272     X_LIBS="$X_LIBS -L$x_libraries"
21273     # For Solaris; some versions of Sun CC require a space after -R and
21274     # others require no space.  Words are not sufficient . . . .
21275     case `(uname -sr) 2>/dev/null` in
21276     "SunOS 5"*)
21277       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21278 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21279       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21280       cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h.  */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h.  */
21286
21287 int
21288 main ()
21289 {
21290
21291   ;
21292   return 0;
21293 }
21294 _ACEOF
21295 rm -f conftest.$ac_objext conftest$ac_exeext
21296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21297   (eval $ac_link) 2>conftest.er1
21298   ac_status=$?
21299   grep -v '^ *+' conftest.er1 >conftest.err
21300   rm -f conftest.er1
21301   cat conftest.err >&5
21302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); } &&
21304          { ac_try='test -z "$ac_c_werror_flag"
21305                          || test ! -s conftest.err'
21306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307   (eval $ac_try) 2>&5
21308   ac_status=$?
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); }; } &&
21311          { ac_try='test -s conftest$ac_exeext'
21312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313   (eval $ac_try) 2>&5
21314   ac_status=$?
21315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316   (exit $ac_status); }; }; then
21317   ac_R_nospace=yes
21318 else
21319   echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21321
21322 ac_R_nospace=no
21323 fi
21324 rm -f conftest.err conftest.$ac_objext \
21325       conftest$ac_exeext conftest.$ac_ext
21326       if test $ac_R_nospace = yes; then
21327         echo "$as_me:$LINENO: result: no" >&5
21328 echo "${ECHO_T}no" >&6
21329         X_LIBS="$X_LIBS -R$x_libraries"
21330       else
21331         LIBS="$ac_xsave_LIBS -R $x_libraries"
21332         cat >conftest.$ac_ext <<_ACEOF
21333 /* confdefs.h.  */
21334 _ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h.  */
21338
21339 int
21340 main ()
21341 {
21342
21343   ;
21344   return 0;
21345 }
21346 _ACEOF
21347 rm -f conftest.$ac_objext conftest$ac_exeext
21348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21349   (eval $ac_link) 2>conftest.er1
21350   ac_status=$?
21351   grep -v '^ *+' conftest.er1 >conftest.err
21352   rm -f conftest.er1
21353   cat conftest.err >&5
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); } &&
21356          { ac_try='test -z "$ac_c_werror_flag"
21357                          || test ! -s conftest.err'
21358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359   (eval $ac_try) 2>&5
21360   ac_status=$?
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); }; } &&
21363          { ac_try='test -s conftest$ac_exeext'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; }; then
21369   ac_R_space=yes
21370 else
21371   echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374 ac_R_space=no
21375 fi
21376 rm -f conftest.err conftest.$ac_objext \
21377       conftest$ac_exeext conftest.$ac_ext
21378         if test $ac_R_space = yes; then
21379           echo "$as_me:$LINENO: result: yes" >&5
21380 echo "${ECHO_T}yes" >&6
21381           X_LIBS="$X_LIBS -R $x_libraries"
21382         else
21383           echo "$as_me:$LINENO: result: neither works" >&5
21384 echo "${ECHO_T}neither works" >&6
21385         fi
21386       fi
21387       LIBS=$ac_xsave_LIBS
21388     esac
21389   fi
21390
21391   # Check for system-dependent libraries X programs must link with.
21392   # Do this before checking for the system-independent R6 libraries
21393   # (-lICE), since we may need -lsocket or whatever for X linking.
21394
21395   if test "$ISC" = yes; then
21396     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21397   else
21398     # Martyn Johnson says this is needed for Ultrix, if the X
21399     # libraries were built with DECnet support.  And Karl Berry says
21400     # the Alpha needs dnet_stub (dnet does not exist).
21401     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21402     cat >conftest.$ac_ext <<_ACEOF
21403 /* confdefs.h.  */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h.  */
21408
21409 /* Override any gcc2 internal prototype to avoid an error.  */
21410 #ifdef __cplusplus
21411 extern "C"
21412 #endif
21413 /* We use char because int might match the return type of a gcc2
21414    builtin and then its argument prototype would still apply.  */
21415 char XOpenDisplay ();
21416 int
21417 main ()
21418 {
21419 XOpenDisplay ();
21420   ;
21421   return 0;
21422 }
21423 _ACEOF
21424 rm -f conftest.$ac_objext conftest$ac_exeext
21425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21426   (eval $ac_link) 2>conftest.er1
21427   ac_status=$?
21428   grep -v '^ *+' conftest.er1 >conftest.err
21429   rm -f conftest.er1
21430   cat conftest.err >&5
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } &&
21433          { ac_try='test -z "$ac_c_werror_flag"
21434                          || test ! -s conftest.err'
21435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436   (eval $ac_try) 2>&5
21437   ac_status=$?
21438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439   (exit $ac_status); }; } &&
21440          { ac_try='test -s conftest$ac_exeext'
21441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442   (eval $ac_try) 2>&5
21443   ac_status=$?
21444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445   (exit $ac_status); }; }; then
21446   :
21447 else
21448   echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21450
21451 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21452 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21453 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21454   echo $ECHO_N "(cached) $ECHO_C" >&6
21455 else
21456   ac_check_lib_save_LIBS=$LIBS
21457 LIBS="-ldnet  $LIBS"
21458 cat >conftest.$ac_ext <<_ACEOF
21459 /* confdefs.h.  */
21460 _ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h.  */
21464
21465 /* Override any gcc2 internal prototype to avoid an error.  */
21466 #ifdef __cplusplus
21467 extern "C"
21468 #endif
21469 /* We use char because int might match the return type of a gcc2
21470    builtin and then its argument prototype would still apply.  */
21471 char dnet_ntoa ();
21472 int
21473 main ()
21474 {
21475 dnet_ntoa ();
21476   ;
21477   return 0;
21478 }
21479 _ACEOF
21480 rm -f conftest.$ac_objext conftest$ac_exeext
21481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21482   (eval $ac_link) 2>conftest.er1
21483   ac_status=$?
21484   grep -v '^ *+' conftest.er1 >conftest.err
21485   rm -f conftest.er1
21486   cat conftest.err >&5
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); } &&
21489          { ac_try='test -z "$ac_c_werror_flag"
21490                          || test ! -s conftest.err'
21491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492   (eval $ac_try) 2>&5
21493   ac_status=$?
21494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495   (exit $ac_status); }; } &&
21496          { ac_try='test -s conftest$ac_exeext'
21497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498   (eval $ac_try) 2>&5
21499   ac_status=$?
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); }; }; then
21502   ac_cv_lib_dnet_dnet_ntoa=yes
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 ac_cv_lib_dnet_dnet_ntoa=no
21508 fi
21509 rm -f conftest.err conftest.$ac_objext \
21510       conftest$ac_exeext conftest.$ac_ext
21511 LIBS=$ac_check_lib_save_LIBS
21512 fi
21513 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21514 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21515 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21516   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21517 fi
21518
21519     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21520       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21521 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21522 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21523   echo $ECHO_N "(cached) $ECHO_C" >&6
21524 else
21525   ac_check_lib_save_LIBS=$LIBS
21526 LIBS="-ldnet_stub  $LIBS"
21527 cat >conftest.$ac_ext <<_ACEOF
21528 /* confdefs.h.  */
21529 _ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h.  */
21533
21534 /* Override any gcc2 internal prototype to avoid an error.  */
21535 #ifdef __cplusplus
21536 extern "C"
21537 #endif
21538 /* We use char because int might match the return type of a gcc2
21539    builtin and then its argument prototype would still apply.  */
21540 char dnet_ntoa ();
21541 int
21542 main ()
21543 {
21544 dnet_ntoa ();
21545   ;
21546   return 0;
21547 }
21548 _ACEOF
21549 rm -f conftest.$ac_objext conftest$ac_exeext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21551   (eval $ac_link) 2>conftest.er1
21552   ac_status=$?
21553   grep -v '^ *+' conftest.er1 >conftest.err
21554   rm -f conftest.er1
21555   cat conftest.err >&5
21556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557   (exit $ac_status); } &&
21558          { ac_try='test -z "$ac_c_werror_flag"
21559                          || test ! -s conftest.err'
21560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561   (eval $ac_try) 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); }; } &&
21565          { ac_try='test -s conftest$ac_exeext'
21566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567   (eval $ac_try) 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; }; then
21571   ac_cv_lib_dnet_stub_dnet_ntoa=yes
21572 else
21573   echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21575
21576 ac_cv_lib_dnet_stub_dnet_ntoa=no
21577 fi
21578 rm -f conftest.err conftest.$ac_objext \
21579       conftest$ac_exeext conftest.$ac_ext
21580 LIBS=$ac_check_lib_save_LIBS
21581 fi
21582 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21583 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21584 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21585   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21586 fi
21587
21588     fi
21589 fi
21590 rm -f conftest.err conftest.$ac_objext \
21591       conftest$ac_exeext conftest.$ac_ext
21592     LIBS="$ac_xsave_LIBS"
21593
21594     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21595     # to get the SysV transport functions.
21596     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21597     # needs -lnsl.
21598     # The nsl library prevents programs from opening the X display
21599     # on Irix 5.2, according to T.E. Dickey.
21600     # The functions gethostbyname, getservbyname, and inet_addr are
21601     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21602     echo "$as_me:$LINENO: checking for gethostbyname" >&5
21603 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21604 if test "${ac_cv_func_gethostbyname+set}" = set; then
21605   echo $ECHO_N "(cached) $ECHO_C" >&6
21606 else
21607   cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h.  */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h.  */
21613 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21615 #define gethostbyname innocuous_gethostbyname
21616
21617 /* System header to define __stub macros and hopefully few prototypes,
21618     which can conflict with char gethostbyname (); below.
21619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21620     <limits.h> exists even on freestanding compilers.  */
21621
21622 #ifdef __STDC__
21623 # include <limits.h>
21624 #else
21625 # include <assert.h>
21626 #endif
21627
21628 #undef gethostbyname
21629
21630 /* Override any gcc2 internal prototype to avoid an error.  */
21631 #ifdef __cplusplus
21632 extern "C"
21633 {
21634 #endif
21635 /* We use char because int might match the return type of a gcc2
21636    builtin and then its argument prototype would still apply.  */
21637 char gethostbyname ();
21638 /* The GNU C library defines this for functions which it implements
21639     to always fail with ENOSYS.  Some functions are actually named
21640     something starting with __ and the normal name is an alias.  */
21641 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21642 choke me
21643 #else
21644 char (*f) () = gethostbyname;
21645 #endif
21646 #ifdef __cplusplus
21647 }
21648 #endif
21649
21650 int
21651 main ()
21652 {
21653 return f != gethostbyname;
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest.$ac_objext conftest$ac_exeext
21659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21660   (eval $ac_link) 2>conftest.er1
21661   ac_status=$?
21662   grep -v '^ *+' conftest.er1 >conftest.err
21663   rm -f conftest.er1
21664   cat conftest.err >&5
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); } &&
21667          { ac_try='test -z "$ac_c_werror_flag"
21668                          || test ! -s conftest.err'
21669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670   (eval $ac_try) 2>&5
21671   ac_status=$?
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); }; } &&
21674          { ac_try='test -s conftest$ac_exeext'
21675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676   (eval $ac_try) 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); }; }; then
21680   ac_cv_func_gethostbyname=yes
21681 else
21682   echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685 ac_cv_func_gethostbyname=no
21686 fi
21687 rm -f conftest.err conftest.$ac_objext \
21688       conftest$ac_exeext conftest.$ac_ext
21689 fi
21690 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21691 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21692
21693     if test $ac_cv_func_gethostbyname = no; then
21694       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21695 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21696 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21697   echo $ECHO_N "(cached) $ECHO_C" >&6
21698 else
21699   ac_check_lib_save_LIBS=$LIBS
21700 LIBS="-lnsl  $LIBS"
21701 cat >conftest.$ac_ext <<_ACEOF
21702 /* confdefs.h.  */
21703 _ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h.  */
21707
21708 /* Override any gcc2 internal prototype to avoid an error.  */
21709 #ifdef __cplusplus
21710 extern "C"
21711 #endif
21712 /* We use char because int might match the return type of a gcc2
21713    builtin and then its argument prototype would still apply.  */
21714 char gethostbyname ();
21715 int
21716 main ()
21717 {
21718 gethostbyname ();
21719   ;
21720   return 0;
21721 }
21722 _ACEOF
21723 rm -f conftest.$ac_objext conftest$ac_exeext
21724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21725   (eval $ac_link) 2>conftest.er1
21726   ac_status=$?
21727   grep -v '^ *+' conftest.er1 >conftest.err
21728   rm -f conftest.er1
21729   cat conftest.err >&5
21730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731   (exit $ac_status); } &&
21732          { ac_try='test -z "$ac_c_werror_flag"
21733                          || test ! -s conftest.err'
21734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21735   (eval $ac_try) 2>&5
21736   ac_status=$?
21737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738   (exit $ac_status); }; } &&
21739          { ac_try='test -s conftest$ac_exeext'
21740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741   (eval $ac_try) 2>&5
21742   ac_status=$?
21743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); }; }; then
21745   ac_cv_lib_nsl_gethostbyname=yes
21746 else
21747   echo "$as_me: failed program was:" >&5
21748 sed 's/^/| /' conftest.$ac_ext >&5
21749
21750 ac_cv_lib_nsl_gethostbyname=no
21751 fi
21752 rm -f conftest.err conftest.$ac_objext \
21753       conftest$ac_exeext conftest.$ac_ext
21754 LIBS=$ac_check_lib_save_LIBS
21755 fi
21756 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21757 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21758 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21759   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21760 fi
21761
21762       if test $ac_cv_lib_nsl_gethostbyname = no; then
21763         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21764 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21765 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21766   echo $ECHO_N "(cached) $ECHO_C" >&6
21767 else
21768   ac_check_lib_save_LIBS=$LIBS
21769 LIBS="-lbsd  $LIBS"
21770 cat >conftest.$ac_ext <<_ACEOF
21771 /* confdefs.h.  */
21772 _ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h.  */
21776
21777 /* Override any gcc2 internal prototype to avoid an error.  */
21778 #ifdef __cplusplus
21779 extern "C"
21780 #endif
21781 /* We use char because int might match the return type of a gcc2
21782    builtin and then its argument prototype would still apply.  */
21783 char gethostbyname ();
21784 int
21785 main ()
21786 {
21787 gethostbyname ();
21788   ;
21789   return 0;
21790 }
21791 _ACEOF
21792 rm -f conftest.$ac_objext conftest$ac_exeext
21793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21794   (eval $ac_link) 2>conftest.er1
21795   ac_status=$?
21796   grep -v '^ *+' conftest.er1 >conftest.err
21797   rm -f conftest.er1
21798   cat conftest.err >&5
21799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); } &&
21801          { ac_try='test -z "$ac_c_werror_flag"
21802                          || test ! -s conftest.err'
21803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804   (eval $ac_try) 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); }; } &&
21808          { ac_try='test -s conftest$ac_exeext'
21809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810   (eval $ac_try) 2>&5
21811   ac_status=$?
21812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); }; }; then
21814   ac_cv_lib_bsd_gethostbyname=yes
21815 else
21816   echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21818
21819 ac_cv_lib_bsd_gethostbyname=no
21820 fi
21821 rm -f conftest.err conftest.$ac_objext \
21822       conftest$ac_exeext conftest.$ac_ext
21823 LIBS=$ac_check_lib_save_LIBS
21824 fi
21825 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21826 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21827 if test $ac_cv_lib_bsd_gethostbyname = yes; then
21828   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21829 fi
21830
21831       fi
21832     fi
21833
21834     # lieder@skyler.mavd.honeywell.com says without -lsocket,
21835     # socket/setsockopt and other routines are undefined under SCO ODT
21836     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
21837     # on later versions), says Simon Leinen: it contains gethostby*
21838     # variants that don't use the name server (or something).  -lsocket
21839     # must be given before -lnsl if both are needed.  We assume that
21840     # if connect needs -lnsl, so does gethostbyname.
21841     echo "$as_me:$LINENO: checking for connect" >&5
21842 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21843 if test "${ac_cv_func_connect+set}" = set; then
21844   echo $ECHO_N "(cached) $ECHO_C" >&6
21845 else
21846   cat >conftest.$ac_ext <<_ACEOF
21847 /* confdefs.h.  */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h.  */
21852 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21854 #define connect innocuous_connect
21855
21856 /* System header to define __stub macros and hopefully few prototypes,
21857     which can conflict with char connect (); below.
21858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21859     <limits.h> exists even on freestanding compilers.  */
21860
21861 #ifdef __STDC__
21862 # include <limits.h>
21863 #else
21864 # include <assert.h>
21865 #endif
21866
21867 #undef connect
21868
21869 /* Override any gcc2 internal prototype to avoid an error.  */
21870 #ifdef __cplusplus
21871 extern "C"
21872 {
21873 #endif
21874 /* We use char because int might match the return type of a gcc2
21875    builtin and then its argument prototype would still apply.  */
21876 char connect ();
21877 /* The GNU C library defines this for functions which it implements
21878     to always fail with ENOSYS.  Some functions are actually named
21879     something starting with __ and the normal name is an alias.  */
21880 #if defined (__stub_connect) || defined (__stub___connect)
21881 choke me
21882 #else
21883 char (*f) () = connect;
21884 #endif
21885 #ifdef __cplusplus
21886 }
21887 #endif
21888
21889 int
21890 main ()
21891 {
21892 return f != connect;
21893   ;
21894   return 0;
21895 }
21896 _ACEOF
21897 rm -f conftest.$ac_objext conftest$ac_exeext
21898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21899   (eval $ac_link) 2>conftest.er1
21900   ac_status=$?
21901   grep -v '^ *+' conftest.er1 >conftest.err
21902   rm -f conftest.er1
21903   cat conftest.err >&5
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); } &&
21906          { ac_try='test -z "$ac_c_werror_flag"
21907                          || test ! -s conftest.err'
21908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909   (eval $ac_try) 2>&5
21910   ac_status=$?
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); }; } &&
21913          { ac_try='test -s conftest$ac_exeext'
21914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915   (eval $ac_try) 2>&5
21916   ac_status=$?
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); }; }; then
21919   ac_cv_func_connect=yes
21920 else
21921   echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924 ac_cv_func_connect=no
21925 fi
21926 rm -f conftest.err conftest.$ac_objext \
21927       conftest$ac_exeext conftest.$ac_ext
21928 fi
21929 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21930 echo "${ECHO_T}$ac_cv_func_connect" >&6
21931
21932     if test $ac_cv_func_connect = no; then
21933       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21934 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21935 if test "${ac_cv_lib_socket_connect+set}" = set; then
21936   echo $ECHO_N "(cached) $ECHO_C" >&6
21937 else
21938   ac_check_lib_save_LIBS=$LIBS
21939 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21940 cat >conftest.$ac_ext <<_ACEOF
21941 /* confdefs.h.  */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h.  */
21946
21947 /* Override any gcc2 internal prototype to avoid an error.  */
21948 #ifdef __cplusplus
21949 extern "C"
21950 #endif
21951 /* We use char because int might match the return type of a gcc2
21952    builtin and then its argument prototype would still apply.  */
21953 char connect ();
21954 int
21955 main ()
21956 {
21957 connect ();
21958   ;
21959   return 0;
21960 }
21961 _ACEOF
21962 rm -f conftest.$ac_objext conftest$ac_exeext
21963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21964   (eval $ac_link) 2>conftest.er1
21965   ac_status=$?
21966   grep -v '^ *+' conftest.er1 >conftest.err
21967   rm -f conftest.er1
21968   cat conftest.err >&5
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); } &&
21971          { ac_try='test -z "$ac_c_werror_flag"
21972                          || test ! -s conftest.err'
21973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974   (eval $ac_try) 2>&5
21975   ac_status=$?
21976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977   (exit $ac_status); }; } &&
21978          { ac_try='test -s conftest$ac_exeext'
21979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980   (eval $ac_try) 2>&5
21981   ac_status=$?
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); }; }; then
21984   ac_cv_lib_socket_connect=yes
21985 else
21986   echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21988
21989 ac_cv_lib_socket_connect=no
21990 fi
21991 rm -f conftest.err conftest.$ac_objext \
21992       conftest$ac_exeext conftest.$ac_ext
21993 LIBS=$ac_check_lib_save_LIBS
21994 fi
21995 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21996 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21997 if test $ac_cv_lib_socket_connect = yes; then
21998   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21999 fi
22000
22001     fi
22002
22003     # Guillermo Gomez says -lposix is necessary on A/UX.
22004     echo "$as_me:$LINENO: checking for remove" >&5
22005 echo $ECHO_N "checking for remove... $ECHO_C" >&6
22006 if test "${ac_cv_func_remove+set}" = set; then
22007   echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009   cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h.  */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h.  */
22015 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
22016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22017 #define remove innocuous_remove
22018
22019 /* System header to define __stub macros and hopefully few prototypes,
22020     which can conflict with char remove (); below.
22021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22022     <limits.h> exists even on freestanding compilers.  */
22023
22024 #ifdef __STDC__
22025 # include <limits.h>
22026 #else
22027 # include <assert.h>
22028 #endif
22029
22030 #undef remove
22031
22032 /* Override any gcc2 internal prototype to avoid an error.  */
22033 #ifdef __cplusplus
22034 extern "C"
22035 {
22036 #endif
22037 /* We use char because int might match the return type of a gcc2
22038    builtin and then its argument prototype would still apply.  */
22039 char remove ();
22040 /* The GNU C library defines this for functions which it implements
22041     to always fail with ENOSYS.  Some functions are actually named
22042     something starting with __ and the normal name is an alias.  */
22043 #if defined (__stub_remove) || defined (__stub___remove)
22044 choke me
22045 #else
22046 char (*f) () = remove;
22047 #endif
22048 #ifdef __cplusplus
22049 }
22050 #endif
22051
22052 int
22053 main ()
22054 {
22055 return f != remove;
22056   ;
22057   return 0;
22058 }
22059 _ACEOF
22060 rm -f conftest.$ac_objext conftest$ac_exeext
22061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22062   (eval $ac_link) 2>conftest.er1
22063   ac_status=$?
22064   grep -v '^ *+' conftest.er1 >conftest.err
22065   rm -f conftest.er1
22066   cat conftest.err >&5
22067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068   (exit $ac_status); } &&
22069          { ac_try='test -z "$ac_c_werror_flag"
22070                          || test ! -s conftest.err'
22071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072   (eval $ac_try) 2>&5
22073   ac_status=$?
22074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075   (exit $ac_status); }; } &&
22076          { ac_try='test -s conftest$ac_exeext'
22077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078   (eval $ac_try) 2>&5
22079   ac_status=$?
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); }; }; then
22082   ac_cv_func_remove=yes
22083 else
22084   echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22086
22087 ac_cv_func_remove=no
22088 fi
22089 rm -f conftest.err conftest.$ac_objext \
22090       conftest$ac_exeext conftest.$ac_ext
22091 fi
22092 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22093 echo "${ECHO_T}$ac_cv_func_remove" >&6
22094
22095     if test $ac_cv_func_remove = no; then
22096       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22097 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22098 if test "${ac_cv_lib_posix_remove+set}" = set; then
22099   echo $ECHO_N "(cached) $ECHO_C" >&6
22100 else
22101   ac_check_lib_save_LIBS=$LIBS
22102 LIBS="-lposix  $LIBS"
22103 cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h.  */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h.  */
22109
22110 /* Override any gcc2 internal prototype to avoid an error.  */
22111 #ifdef __cplusplus
22112 extern "C"
22113 #endif
22114 /* We use char because int might match the return type of a gcc2
22115    builtin and then its argument prototype would still apply.  */
22116 char remove ();
22117 int
22118 main ()
22119 {
22120 remove ();
22121   ;
22122   return 0;
22123 }
22124 _ACEOF
22125 rm -f conftest.$ac_objext conftest$ac_exeext
22126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22127   (eval $ac_link) 2>conftest.er1
22128   ac_status=$?
22129   grep -v '^ *+' conftest.er1 >conftest.err
22130   rm -f conftest.er1
22131   cat conftest.err >&5
22132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133   (exit $ac_status); } &&
22134          { ac_try='test -z "$ac_c_werror_flag"
22135                          || test ! -s conftest.err'
22136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137   (eval $ac_try) 2>&5
22138   ac_status=$?
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); }; } &&
22141          { ac_try='test -s conftest$ac_exeext'
22142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143   (eval $ac_try) 2>&5
22144   ac_status=$?
22145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146   (exit $ac_status); }; }; then
22147   ac_cv_lib_posix_remove=yes
22148 else
22149   echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152 ac_cv_lib_posix_remove=no
22153 fi
22154 rm -f conftest.err conftest.$ac_objext \
22155       conftest$ac_exeext conftest.$ac_ext
22156 LIBS=$ac_check_lib_save_LIBS
22157 fi
22158 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22159 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22160 if test $ac_cv_lib_posix_remove = yes; then
22161   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22162 fi
22163
22164     fi
22165
22166     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22167     echo "$as_me:$LINENO: checking for shmat" >&5
22168 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22169 if test "${ac_cv_func_shmat+set}" = set; then
22170   echo $ECHO_N "(cached) $ECHO_C" >&6
22171 else
22172   cat >conftest.$ac_ext <<_ACEOF
22173 /* confdefs.h.  */
22174 _ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h.  */
22178 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
22179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22180 #define shmat innocuous_shmat
22181
22182 /* System header to define __stub macros and hopefully few prototypes,
22183     which can conflict with char shmat (); below.
22184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22185     <limits.h> exists even on freestanding compilers.  */
22186
22187 #ifdef __STDC__
22188 # include <limits.h>
22189 #else
22190 # include <assert.h>
22191 #endif
22192
22193 #undef shmat
22194
22195 /* Override any gcc2 internal prototype to avoid an error.  */
22196 #ifdef __cplusplus
22197 extern "C"
22198 {
22199 #endif
22200 /* We use char because int might match the return type of a gcc2
22201    builtin and then its argument prototype would still apply.  */
22202 char shmat ();
22203 /* The GNU C library defines this for functions which it implements
22204     to always fail with ENOSYS.  Some functions are actually named
22205     something starting with __ and the normal name is an alias.  */
22206 #if defined (__stub_shmat) || defined (__stub___shmat)
22207 choke me
22208 #else
22209 char (*f) () = shmat;
22210 #endif
22211 #ifdef __cplusplus
22212 }
22213 #endif
22214
22215 int
22216 main ()
22217 {
22218 return f != shmat;
22219   ;
22220   return 0;
22221 }
22222 _ACEOF
22223 rm -f conftest.$ac_objext conftest$ac_exeext
22224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22225   (eval $ac_link) 2>conftest.er1
22226   ac_status=$?
22227   grep -v '^ *+' conftest.er1 >conftest.err
22228   rm -f conftest.er1
22229   cat conftest.err >&5
22230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231   (exit $ac_status); } &&
22232          { ac_try='test -z "$ac_c_werror_flag"
22233                          || test ! -s conftest.err'
22234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235   (eval $ac_try) 2>&5
22236   ac_status=$?
22237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238   (exit $ac_status); }; } &&
22239          { ac_try='test -s conftest$ac_exeext'
22240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22241   (eval $ac_try) 2>&5
22242   ac_status=$?
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); }; }; then
22245   ac_cv_func_shmat=yes
22246 else
22247   echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22249
22250 ac_cv_func_shmat=no
22251 fi
22252 rm -f conftest.err conftest.$ac_objext \
22253       conftest$ac_exeext conftest.$ac_ext
22254 fi
22255 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22256 echo "${ECHO_T}$ac_cv_func_shmat" >&6
22257
22258     if test $ac_cv_func_shmat = no; then
22259       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22260 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22261 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22262   echo $ECHO_N "(cached) $ECHO_C" >&6
22263 else
22264   ac_check_lib_save_LIBS=$LIBS
22265 LIBS="-lipc  $LIBS"
22266 cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h.  */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h.  */
22272
22273 /* Override any gcc2 internal prototype to avoid an error.  */
22274 #ifdef __cplusplus
22275 extern "C"
22276 #endif
22277 /* We use char because int might match the return type of a gcc2
22278    builtin and then its argument prototype would still apply.  */
22279 char shmat ();
22280 int
22281 main ()
22282 {
22283 shmat ();
22284   ;
22285   return 0;
22286 }
22287 _ACEOF
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22290   (eval $ac_link) 2>conftest.er1
22291   ac_status=$?
22292   grep -v '^ *+' conftest.er1 >conftest.err
22293   rm -f conftest.er1
22294   cat conftest.err >&5
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); } &&
22297          { ac_try='test -z "$ac_c_werror_flag"
22298                          || test ! -s conftest.err'
22299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300   (eval $ac_try) 2>&5
22301   ac_status=$?
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); }; } &&
22304          { ac_try='test -s conftest$ac_exeext'
22305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306   (eval $ac_try) 2>&5
22307   ac_status=$?
22308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309   (exit $ac_status); }; }; then
22310   ac_cv_lib_ipc_shmat=yes
22311 else
22312   echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22314
22315 ac_cv_lib_ipc_shmat=no
22316 fi
22317 rm -f conftest.err conftest.$ac_objext \
22318       conftest$ac_exeext conftest.$ac_ext
22319 LIBS=$ac_check_lib_save_LIBS
22320 fi
22321 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22322 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22323 if test $ac_cv_lib_ipc_shmat = yes; then
22324   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22325 fi
22326
22327     fi
22328   fi
22329
22330   # Check for libraries that X11R6 Xt/Xaw programs need.
22331   ac_save_LDFLAGS=$LDFLAGS
22332   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22333   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22334   # check for ICE first), but we must link in the order -lSM -lICE or
22335   # we get undefined symbols.  So assume we have SM if we have ICE.
22336   # These have to be linked with before -lX11, unlike the other
22337   # libraries we check for below, so use a different variable.
22338   # John Interrante, Karl Berry
22339   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22340 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22341 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22342   echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344   ac_check_lib_save_LIBS=$LIBS
22345 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22346 cat >conftest.$ac_ext <<_ACEOF
22347 /* confdefs.h.  */
22348 _ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h.  */
22352
22353 /* Override any gcc2 internal prototype to avoid an error.  */
22354 #ifdef __cplusplus
22355 extern "C"
22356 #endif
22357 /* We use char because int might match the return type of a gcc2
22358    builtin and then its argument prototype would still apply.  */
22359 char IceConnectionNumber ();
22360 int
22361 main ()
22362 {
22363 IceConnectionNumber ();
22364   ;
22365   return 0;
22366 }
22367 _ACEOF
22368 rm -f conftest.$ac_objext conftest$ac_exeext
22369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22370   (eval $ac_link) 2>conftest.er1
22371   ac_status=$?
22372   grep -v '^ *+' conftest.er1 >conftest.err
22373   rm -f conftest.er1
22374   cat conftest.err >&5
22375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376   (exit $ac_status); } &&
22377          { ac_try='test -z "$ac_c_werror_flag"
22378                          || test ! -s conftest.err'
22379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380   (eval $ac_try) 2>&5
22381   ac_status=$?
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); }; } &&
22384          { ac_try='test -s conftest$ac_exeext'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; }; then
22390   ac_cv_lib_ICE_IceConnectionNumber=yes
22391 else
22392   echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22394
22395 ac_cv_lib_ICE_IceConnectionNumber=no
22396 fi
22397 rm -f conftest.err conftest.$ac_objext \
22398       conftest$ac_exeext conftest.$ac_ext
22399 LIBS=$ac_check_lib_save_LIBS
22400 fi
22401 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22402 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22403 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
22404   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22405 fi
22406
22407   LDFLAGS=$ac_save_LDFLAGS
22408
22409 fi
22410
22411
22412 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22413 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22414 if test "${ac_cv_c_bigendian+set}" = set; then
22415   echo $ECHO_N "(cached) $ECHO_C" >&6
22416 else
22417   # See if sys/param.h defines the BYTE_ORDER macro.
22418 cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h.  */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h.  */
22424 #include <sys/types.h>
22425 #include <sys/param.h>
22426
22427 int
22428 main ()
22429 {
22430 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22431  bogus endian macros
22432 #endif
22433
22434   ;
22435   return 0;
22436 }
22437 _ACEOF
22438 rm -f conftest.$ac_objext
22439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22440   (eval $ac_compile) 2>conftest.er1
22441   ac_status=$?
22442   grep -v '^ *+' conftest.er1 >conftest.err
22443   rm -f conftest.er1
22444   cat conftest.err >&5
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); } &&
22447          { ac_try='test -z "$ac_c_werror_flag"
22448                          || test ! -s conftest.err'
22449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450   (eval $ac_try) 2>&5
22451   ac_status=$?
22452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); }; } &&
22454          { ac_try='test -s conftest.$ac_objext'
22455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456   (eval $ac_try) 2>&5
22457   ac_status=$?
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); }; }; then
22460   # It does; now see whether it defined to BIG_ENDIAN or not.
22461 cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22467 #include <sys/types.h>
22468 #include <sys/param.h>
22469
22470 int
22471 main ()
22472 {
22473 #if BYTE_ORDER != BIG_ENDIAN
22474  not big endian
22475 #endif
22476
22477   ;
22478   return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext
22482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22483   (eval $ac_compile) 2>conftest.er1
22484   ac_status=$?
22485   grep -v '^ *+' conftest.er1 >conftest.err
22486   rm -f conftest.er1
22487   cat conftest.err >&5
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); } &&
22490          { ac_try='test -z "$ac_c_werror_flag"
22491                          || test ! -s conftest.err'
22492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493   (eval $ac_try) 2>&5
22494   ac_status=$?
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); }; } &&
22497          { ac_try='test -s conftest.$ac_objext'
22498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22499   (eval $ac_try) 2>&5
22500   ac_status=$?
22501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502   (exit $ac_status); }; }; then
22503   ac_cv_c_bigendian=yes
22504 else
22505   echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22507
22508 ac_cv_c_bigendian=no
22509 fi
22510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22511 else
22512   echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22514
22515 # It does not; compile a test program.
22516 if test "$cross_compiling" = yes; then
22517   # try to guess the endianness by grepping values into an object file
22518   ac_cv_c_bigendian=unknown
22519   cat >conftest.$ac_ext <<_ACEOF
22520 /* confdefs.h.  */
22521 _ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h.  */
22525 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22526 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22527 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22528 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22529 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22530 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22531 int
22532 main ()
22533 {
22534  _ascii (); _ebcdic ();
22535   ;
22536   return 0;
22537 }
22538 _ACEOF
22539 rm -f conftest.$ac_objext
22540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22541   (eval $ac_compile) 2>conftest.er1
22542   ac_status=$?
22543   grep -v '^ *+' conftest.er1 >conftest.err
22544   rm -f conftest.er1
22545   cat conftest.err >&5
22546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547   (exit $ac_status); } &&
22548          { ac_try='test -z "$ac_c_werror_flag"
22549                          || test ! -s conftest.err'
22550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551   (eval $ac_try) 2>&5
22552   ac_status=$?
22553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554   (exit $ac_status); }; } &&
22555          { ac_try='test -s conftest.$ac_objext'
22556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22557   (eval $ac_try) 2>&5
22558   ac_status=$?
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); }; }; then
22561   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22562   ac_cv_c_bigendian=yes
22563 fi
22564 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22565   if test "$ac_cv_c_bigendian" = unknown; then
22566     ac_cv_c_bigendian=no
22567   else
22568     # finding both strings is unlikely to happen, but who knows?
22569     ac_cv_c_bigendian=unknown
22570   fi
22571 fi
22572 else
22573   echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22575
22576 fi
22577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22578 else
22579   cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h.  */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h.  */
22585 int
22586 main ()
22587 {
22588   /* Are we little or big endian?  From Harbison&Steele.  */
22589   union
22590   {
22591     long l;
22592     char c[sizeof (long)];
22593   } u;
22594   u.l = 1;
22595   exit (u.c[sizeof (long) - 1] == 1);
22596 }
22597 _ACEOF
22598 rm -f conftest$ac_exeext
22599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22600   (eval $ac_link) 2>&5
22601   ac_status=$?
22602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605   (eval $ac_try) 2>&5
22606   ac_status=$?
22607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608   (exit $ac_status); }; }; then
22609   ac_cv_c_bigendian=no
22610 else
22611   echo "$as_me: program exited with status $ac_status" >&5
22612 echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22614
22615 ( exit $ac_status )
22616 ac_cv_c_bigendian=yes
22617 fi
22618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22619 fi
22620 fi
22621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22622 fi
22623 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22624 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22625 case $ac_cv_c_bigendian in
22626   yes)
22627
22628 cat >>confdefs.h <<\_ACEOF
22629 #define WORDS_BIGENDIAN 1
22630 _ACEOF
22631  ;;
22632   no)
22633      ;;
22634   *)
22635     { { echo "$as_me:$LINENO: error: unknown endianness
22636 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22637 echo "$as_me: error: unknown endianness
22638 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22639    { (exit 1); exit 1; }; } ;;
22640 esac
22641
22642 echo "$as_me:$LINENO: checking for inline" >&5
22643 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22644 if test "${ac_cv_c_inline+set}" = set; then
22645   echo $ECHO_N "(cached) $ECHO_C" >&6
22646 else
22647   ac_cv_c_inline=no
22648 for ac_kw in inline __inline__ __inline; do
22649   cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h.  */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h.  */
22655 #ifndef __cplusplus
22656 typedef int foo_t;
22657 static $ac_kw foo_t static_foo () {return 0; }
22658 $ac_kw foo_t foo () {return 0; }
22659 #endif
22660
22661 _ACEOF
22662 rm -f conftest.$ac_objext
22663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22664   (eval $ac_compile) 2>conftest.er1
22665   ac_status=$?
22666   grep -v '^ *+' conftest.er1 >conftest.err
22667   rm -f conftest.er1
22668   cat conftest.err >&5
22669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670   (exit $ac_status); } &&
22671          { ac_try='test -z "$ac_c_werror_flag"
22672                          || test ! -s conftest.err'
22673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674   (eval $ac_try) 2>&5
22675   ac_status=$?
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); }; } &&
22678          { ac_try='test -s conftest.$ac_objext'
22679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680   (eval $ac_try) 2>&5
22681   ac_status=$?
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); }; }; then
22684   ac_cv_c_inline=$ac_kw; break
22685 else
22686   echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22688
22689 fi
22690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22691 done
22692
22693 fi
22694 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22695 echo "${ECHO_T}$ac_cv_c_inline" >&6
22696
22697
22698 case $ac_cv_c_inline in
22699   inline | yes) ;;
22700   *)
22701     case $ac_cv_c_inline in
22702       no) ac_val=;;
22703       *) ac_val=$ac_cv_c_inline;;
22704     esac
22705     cat >>confdefs.h <<_ACEOF
22706 #ifndef __cplusplus
22707 #define inline $ac_val
22708 #endif
22709 _ACEOF
22710     ;;
22711 esac
22712
22713 echo "$as_me:$LINENO: checking for unsigned char" >&5
22714 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
22715 if test "${ac_cv_type_unsigned_char+set}" = set; then
22716   echo $ECHO_N "(cached) $ECHO_C" >&6
22717 else
22718   cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h.  */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h.  */
22724 $ac_includes_default
22725 int
22726 main ()
22727 {
22728 if ((unsigned char *) 0)
22729   return 0;
22730 if (sizeof (unsigned char))
22731   return 0;
22732   ;
22733   return 0;
22734 }
22735 _ACEOF
22736 rm -f conftest.$ac_objext
22737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22738   (eval $ac_compile) 2>conftest.er1
22739   ac_status=$?
22740   grep -v '^ *+' conftest.er1 >conftest.err
22741   rm -f conftest.er1
22742   cat conftest.err >&5
22743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744   (exit $ac_status); } &&
22745          { ac_try='test -z "$ac_c_werror_flag"
22746                          || test ! -s conftest.err'
22747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748   (eval $ac_try) 2>&5
22749   ac_status=$?
22750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751   (exit $ac_status); }; } &&
22752          { ac_try='test -s conftest.$ac_objext'
22753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22754   (eval $ac_try) 2>&5
22755   ac_status=$?
22756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757   (exit $ac_status); }; }; then
22758   ac_cv_type_unsigned_char=yes
22759 else
22760   echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.$ac_ext >&5
22762
22763 ac_cv_type_unsigned_char=no
22764 fi
22765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22766 fi
22767 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
22768 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
22769
22770 echo "$as_me:$LINENO: checking size of unsigned char" >&5
22771 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
22772 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22773   echo $ECHO_N "(cached) $ECHO_C" >&6
22774 else
22775   if test "$ac_cv_type_unsigned_char" = yes; then
22776   # The cast to unsigned long works around a bug in the HP C Compiler
22777   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22778   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22779   # This bug is HP SR number 8606223364.
22780   if test "$cross_compiling" = yes; then
22781   # Depending upon the size, compute the lo and hi bounds.
22782 cat >conftest.$ac_ext <<_ACEOF
22783 /* confdefs.h.  */
22784 _ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h.  */
22788 $ac_includes_default
22789 int
22790 main ()
22791 {
22792 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
22793 test_array [0] = 0
22794
22795   ;
22796   return 0;
22797 }
22798 _ACEOF
22799 rm -f conftest.$ac_objext
22800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22801   (eval $ac_compile) 2>conftest.er1
22802   ac_status=$?
22803   grep -v '^ *+' conftest.er1 >conftest.err
22804   rm -f conftest.er1
22805   cat conftest.err >&5
22806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807   (exit $ac_status); } &&
22808          { ac_try='test -z "$ac_c_werror_flag"
22809                          || test ! -s conftest.err'
22810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811   (eval $ac_try) 2>&5
22812   ac_status=$?
22813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814   (exit $ac_status); }; } &&
22815          { ac_try='test -s conftest.$ac_objext'
22816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817   (eval $ac_try) 2>&5
22818   ac_status=$?
22819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820   (exit $ac_status); }; }; then
22821   ac_lo=0 ac_mid=0
22822   while :; do
22823     cat >conftest.$ac_ext <<_ACEOF
22824 /* confdefs.h.  */
22825 _ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h.  */
22829 $ac_includes_default
22830 int
22831 main ()
22832 {
22833 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
22834 test_array [0] = 0
22835
22836   ;
22837   return 0;
22838 }
22839 _ACEOF
22840 rm -f conftest.$ac_objext
22841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22842   (eval $ac_compile) 2>conftest.er1
22843   ac_status=$?
22844   grep -v '^ *+' conftest.er1 >conftest.err
22845   rm -f conftest.er1
22846   cat conftest.err >&5
22847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848   (exit $ac_status); } &&
22849          { ac_try='test -z "$ac_c_werror_flag"
22850                          || test ! -s conftest.err'
22851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852   (eval $ac_try) 2>&5
22853   ac_status=$?
22854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); }; } &&
22856          { ac_try='test -s conftest.$ac_objext'
22857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858   (eval $ac_try) 2>&5
22859   ac_status=$?
22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861   (exit $ac_status); }; }; then
22862   ac_hi=$ac_mid; break
22863 else
22864   echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22866
22867 ac_lo=`expr $ac_mid + 1`
22868                     if test $ac_lo -le $ac_mid; then
22869                       ac_lo= ac_hi=
22870                       break
22871                     fi
22872                     ac_mid=`expr 2 '*' $ac_mid + 1`
22873 fi
22874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22875   done
22876 else
22877   echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22879
22880 cat >conftest.$ac_ext <<_ACEOF
22881 /* confdefs.h.  */
22882 _ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h.  */
22886 $ac_includes_default
22887 int
22888 main ()
22889 {
22890 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
22891 test_array [0] = 0
22892
22893   ;
22894   return 0;
22895 }
22896 _ACEOF
22897 rm -f conftest.$ac_objext
22898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22899   (eval $ac_compile) 2>conftest.er1
22900   ac_status=$?
22901   grep -v '^ *+' conftest.er1 >conftest.err
22902   rm -f conftest.er1
22903   cat conftest.err >&5
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); } &&
22906          { ac_try='test -z "$ac_c_werror_flag"
22907                          || test ! -s conftest.err'
22908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909   (eval $ac_try) 2>&5
22910   ac_status=$?
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); }; } &&
22913          { ac_try='test -s conftest.$ac_objext'
22914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915   (eval $ac_try) 2>&5
22916   ac_status=$?
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); }; }; then
22919   ac_hi=-1 ac_mid=-1
22920   while :; do
22921     cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h.  */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h.  */
22927 $ac_includes_default
22928 int
22929 main ()
22930 {
22931 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
22932 test_array [0] = 0
22933
22934   ;
22935   return 0;
22936 }
22937 _ACEOF
22938 rm -f conftest.$ac_objext
22939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22940   (eval $ac_compile) 2>conftest.er1
22941   ac_status=$?
22942   grep -v '^ *+' conftest.er1 >conftest.err
22943   rm -f conftest.er1
22944   cat conftest.err >&5
22945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946   (exit $ac_status); } &&
22947          { ac_try='test -z "$ac_c_werror_flag"
22948                          || test ! -s conftest.err'
22949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950   (eval $ac_try) 2>&5
22951   ac_status=$?
22952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953   (exit $ac_status); }; } &&
22954          { ac_try='test -s conftest.$ac_objext'
22955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956   (eval $ac_try) 2>&5
22957   ac_status=$?
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); }; }; then
22960   ac_lo=$ac_mid; break
22961 else
22962   echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22964
22965 ac_hi=`expr '(' $ac_mid ')' - 1`
22966                        if test $ac_mid -le $ac_hi; then
22967                          ac_lo= ac_hi=
22968                          break
22969                        fi
22970                        ac_mid=`expr 2 '*' $ac_mid`
22971 fi
22972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22973   done
22974 else
22975   echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22977
22978 ac_lo= ac_hi=
22979 fi
22980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22981 fi
22982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22983 # Binary search between lo and hi bounds.
22984 while test "x$ac_lo" != "x$ac_hi"; do
22985   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22986   cat >conftest.$ac_ext <<_ACEOF
22987 /* confdefs.h.  */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h.  */
22992 $ac_includes_default
22993 int
22994 main ()
22995 {
22996 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
22997 test_array [0] = 0
22998
22999   ;
23000   return 0;
23001 }
23002 _ACEOF
23003 rm -f conftest.$ac_objext
23004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23005   (eval $ac_compile) 2>conftest.er1
23006   ac_status=$?
23007   grep -v '^ *+' conftest.er1 >conftest.err
23008   rm -f conftest.er1
23009   cat conftest.err >&5
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); } &&
23012          { ac_try='test -z "$ac_c_werror_flag"
23013                          || test ! -s conftest.err'
23014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015   (eval $ac_try) 2>&5
23016   ac_status=$?
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); }; } &&
23019          { ac_try='test -s conftest.$ac_objext'
23020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021   (eval $ac_try) 2>&5
23022   ac_status=$?
23023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); }; }; then
23025   ac_hi=$ac_mid
23026 else
23027   echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23029
23030 ac_lo=`expr '(' $ac_mid ')' + 1`
23031 fi
23032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23033 done
23034 case $ac_lo in
23035 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
23036 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
23037 See \`config.log' for more details." >&5
23038 echo "$as_me: error: cannot compute sizeof (unsigned char), 77
23039 See \`config.log' for more details." >&2;}
23040    { (exit 1); exit 1; }; } ;;
23041 esac
23042 else
23043   if test "$cross_compiling" = yes; then
23044   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23045 See \`config.log' for more details." >&5
23046 echo "$as_me: error: cannot run test program while cross compiling
23047 See \`config.log' for more details." >&2;}
23048    { (exit 1); exit 1; }; }
23049 else
23050   cat >conftest.$ac_ext <<_ACEOF
23051 /* confdefs.h.  */
23052 _ACEOF
23053 cat confdefs.h >>conftest.$ac_ext
23054 cat >>conftest.$ac_ext <<_ACEOF
23055 /* end confdefs.h.  */
23056 $ac_includes_default
23057 long longval () { return (long) (sizeof (unsigned char)); }
23058 unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
23059 #include <stdio.h>
23060 #include <stdlib.h>
23061 int
23062 main ()
23063 {
23064
23065   FILE *f = fopen ("conftest.val", "w");
23066   if (! f)
23067     exit (1);
23068   if (((long) (sizeof (unsigned char))) < 0)
23069     {
23070       long i = longval ();
23071       if (i != ((long) (sizeof (unsigned char))))
23072         exit (1);
23073       fprintf (f, "%ld\n", i);
23074     }
23075   else
23076     {
23077       unsigned long i = ulongval ();
23078       if (i != ((long) (sizeof (unsigned char))))
23079         exit (1);
23080       fprintf (f, "%lu\n", i);
23081     }
23082   exit (ferror (f) || fclose (f) != 0);
23083
23084   ;
23085   return 0;
23086 }
23087 _ACEOF
23088 rm -f conftest$ac_exeext
23089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23090   (eval $ac_link) 2>&5
23091   ac_status=$?
23092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095   (eval $ac_try) 2>&5
23096   ac_status=$?
23097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098   (exit $ac_status); }; }; then
23099   ac_cv_sizeof_unsigned_char=`cat conftest.val`
23100 else
23101   echo "$as_me: program exited with status $ac_status" >&5
23102 echo "$as_me: failed program was:" >&5
23103 sed 's/^/| /' conftest.$ac_ext >&5
23104
23105 ( exit $ac_status )
23106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
23107 See \`config.log' for more details." >&5
23108 echo "$as_me: error: cannot compute sizeof (unsigned char), 77
23109 See \`config.log' for more details." >&2;}
23110    { (exit 1); exit 1; }; }
23111 fi
23112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23113 fi
23114 fi
23115 rm -f conftest.val
23116 else
23117   ac_cv_sizeof_unsigned_char=0
23118 fi
23119 fi
23120 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23121 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
23122 cat >>confdefs.h <<_ACEOF
23123 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
23124 _ACEOF
23125
23126
23127 echo "$as_me:$LINENO: checking for unsigned short" >&5
23128 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
23129 if test "${ac_cv_type_unsigned_short+set}" = set; then
23130   echo $ECHO_N "(cached) $ECHO_C" >&6
23131 else
23132   cat >conftest.$ac_ext <<_ACEOF
23133 /* confdefs.h.  */
23134 _ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h.  */
23138 $ac_includes_default
23139 int
23140 main ()
23141 {
23142 if ((unsigned short *) 0)
23143   return 0;
23144 if (sizeof (unsigned short))
23145   return 0;
23146   ;
23147   return 0;
23148 }
23149 _ACEOF
23150 rm -f conftest.$ac_objext
23151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23152   (eval $ac_compile) 2>conftest.er1
23153   ac_status=$?
23154   grep -v '^ *+' conftest.er1 >conftest.err
23155   rm -f conftest.er1
23156   cat conftest.err >&5
23157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); } &&
23159          { ac_try='test -z "$ac_c_werror_flag"
23160                          || test ! -s conftest.err'
23161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162   (eval $ac_try) 2>&5
23163   ac_status=$?
23164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165   (exit $ac_status); }; } &&
23166          { ac_try='test -s conftest.$ac_objext'
23167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23168   (eval $ac_try) 2>&5
23169   ac_status=$?
23170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171   (exit $ac_status); }; }; then
23172   ac_cv_type_unsigned_short=yes
23173 else
23174   echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23176
23177 ac_cv_type_unsigned_short=no
23178 fi
23179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23180 fi
23181 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
23182 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
23183
23184 echo "$as_me:$LINENO: checking size of unsigned short" >&5
23185 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
23186 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
23187   echo $ECHO_N "(cached) $ECHO_C" >&6
23188 else
23189   if test "$ac_cv_type_unsigned_short" = yes; then
23190   # The cast to unsigned long works around a bug in the HP C Compiler
23191   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23192   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23193   # This bug is HP SR number 8606223364.
23194   if test "$cross_compiling" = yes; then
23195   # Depending upon the size, compute the lo and hi bounds.
23196 cat >conftest.$ac_ext <<_ACEOF
23197 /* confdefs.h.  */
23198 _ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h.  */
23202 $ac_includes_default
23203 int
23204 main ()
23205 {
23206 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
23207 test_array [0] = 0
23208
23209   ;
23210   return 0;
23211 }
23212 _ACEOF
23213 rm -f conftest.$ac_objext
23214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23215   (eval $ac_compile) 2>conftest.er1
23216   ac_status=$?
23217   grep -v '^ *+' conftest.er1 >conftest.err
23218   rm -f conftest.er1
23219   cat conftest.err >&5
23220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221   (exit $ac_status); } &&
23222          { ac_try='test -z "$ac_c_werror_flag"
23223                          || test ! -s conftest.err'
23224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225   (eval $ac_try) 2>&5
23226   ac_status=$?
23227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228   (exit $ac_status); }; } &&
23229          { ac_try='test -s conftest.$ac_objext'
23230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231   (eval $ac_try) 2>&5
23232   ac_status=$?
23233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234   (exit $ac_status); }; }; then
23235   ac_lo=0 ac_mid=0
23236   while :; do
23237     cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243 $ac_includes_default
23244 int
23245 main ()
23246 {
23247 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
23248 test_array [0] = 0
23249
23250   ;
23251   return 0;
23252 }
23253 _ACEOF
23254 rm -f conftest.$ac_objext
23255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23256   (eval $ac_compile) 2>conftest.er1
23257   ac_status=$?
23258   grep -v '^ *+' conftest.er1 >conftest.err
23259   rm -f conftest.er1
23260   cat conftest.err >&5
23261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262   (exit $ac_status); } &&
23263          { ac_try='test -z "$ac_c_werror_flag"
23264                          || test ! -s conftest.err'
23265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266   (eval $ac_try) 2>&5
23267   ac_status=$?
23268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269   (exit $ac_status); }; } &&
23270          { ac_try='test -s conftest.$ac_objext'
23271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272   (eval $ac_try) 2>&5
23273   ac_status=$?
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); }; }; then
23276   ac_hi=$ac_mid; break
23277 else
23278   echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23280
23281 ac_lo=`expr $ac_mid + 1`
23282                     if test $ac_lo -le $ac_mid; then
23283                       ac_lo= ac_hi=
23284                       break
23285                     fi
23286                     ac_mid=`expr 2 '*' $ac_mid + 1`
23287 fi
23288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23289   done
23290 else
23291   echo "$as_me: failed program was:" >&5
23292 sed 's/^/| /' conftest.$ac_ext >&5
23293
23294 cat >conftest.$ac_ext <<_ACEOF
23295 /* confdefs.h.  */
23296 _ACEOF
23297 cat confdefs.h >>conftest.$ac_ext
23298 cat >>conftest.$ac_ext <<_ACEOF
23299 /* end confdefs.h.  */
23300 $ac_includes_default
23301 int
23302 main ()
23303 {
23304 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
23305 test_array [0] = 0
23306
23307   ;
23308   return 0;
23309 }
23310 _ACEOF
23311 rm -f conftest.$ac_objext
23312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23313   (eval $ac_compile) 2>conftest.er1
23314   ac_status=$?
23315   grep -v '^ *+' conftest.er1 >conftest.err
23316   rm -f conftest.er1
23317   cat conftest.err >&5
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); } &&
23320          { ac_try='test -z "$ac_c_werror_flag"
23321                          || test ! -s conftest.err'
23322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323   (eval $ac_try) 2>&5
23324   ac_status=$?
23325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326   (exit $ac_status); }; } &&
23327          { ac_try='test -s conftest.$ac_objext'
23328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329   (eval $ac_try) 2>&5
23330   ac_status=$?
23331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); }; }; then
23333   ac_hi=-1 ac_mid=-1
23334   while :; do
23335     cat >conftest.$ac_ext <<_ACEOF
23336 /* confdefs.h.  */
23337 _ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h.  */
23341 $ac_includes_default
23342 int
23343 main ()
23344 {
23345 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
23346 test_array [0] = 0
23347
23348   ;
23349   return 0;
23350 }
23351 _ACEOF
23352 rm -f conftest.$ac_objext
23353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23354   (eval $ac_compile) 2>conftest.er1
23355   ac_status=$?
23356   grep -v '^ *+' conftest.er1 >conftest.err
23357   rm -f conftest.er1
23358   cat conftest.err >&5
23359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360   (exit $ac_status); } &&
23361          { ac_try='test -z "$ac_c_werror_flag"
23362                          || test ! -s conftest.err'
23363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23364   (eval $ac_try) 2>&5
23365   ac_status=$?
23366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367   (exit $ac_status); }; } &&
23368          { ac_try='test -s conftest.$ac_objext'
23369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370   (eval $ac_try) 2>&5
23371   ac_status=$?
23372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373   (exit $ac_status); }; }; then
23374   ac_lo=$ac_mid; break
23375 else
23376   echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23378
23379 ac_hi=`expr '(' $ac_mid ')' - 1`
23380                        if test $ac_mid -le $ac_hi; then
23381                          ac_lo= ac_hi=
23382                          break
23383                        fi
23384                        ac_mid=`expr 2 '*' $ac_mid`
23385 fi
23386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23387   done
23388 else
23389   echo "$as_me: failed program was:" >&5
23390 sed 's/^/| /' conftest.$ac_ext >&5
23391
23392 ac_lo= ac_hi=
23393 fi
23394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23395 fi
23396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23397 # Binary search between lo and hi bounds.
23398 while test "x$ac_lo" != "x$ac_hi"; do
23399   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23400   cat >conftest.$ac_ext <<_ACEOF
23401 /* confdefs.h.  */
23402 _ACEOF
23403 cat confdefs.h >>conftest.$ac_ext
23404 cat >>conftest.$ac_ext <<_ACEOF
23405 /* end confdefs.h.  */
23406 $ac_includes_default
23407 int
23408 main ()
23409 {
23410 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
23411 test_array [0] = 0
23412
23413   ;
23414   return 0;
23415 }
23416 _ACEOF
23417 rm -f conftest.$ac_objext
23418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23419   (eval $ac_compile) 2>conftest.er1
23420   ac_status=$?
23421   grep -v '^ *+' conftest.er1 >conftest.err
23422   rm -f conftest.er1
23423   cat conftest.err >&5
23424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); } &&
23426          { ac_try='test -z "$ac_c_werror_flag"
23427                          || test ! -s conftest.err'
23428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429   (eval $ac_try) 2>&5
23430   ac_status=$?
23431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); }; } &&
23433          { ac_try='test -s conftest.$ac_objext'
23434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435   (eval $ac_try) 2>&5
23436   ac_status=$?
23437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438   (exit $ac_status); }; }; then
23439   ac_hi=$ac_mid
23440 else
23441   echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23443
23444 ac_lo=`expr '(' $ac_mid ')' + 1`
23445 fi
23446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23447 done
23448 case $ac_lo in
23449 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
23450 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
23451 See \`config.log' for more details." >&5
23452 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
23453 See \`config.log' for more details." >&2;}
23454    { (exit 1); exit 1; }; } ;;
23455 esac
23456 else
23457   if test "$cross_compiling" = yes; then
23458   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23459 See \`config.log' for more details." >&5
23460 echo "$as_me: error: cannot run test program while cross compiling
23461 See \`config.log' for more details." >&2;}
23462    { (exit 1); exit 1; }; }
23463 else
23464   cat >conftest.$ac_ext <<_ACEOF
23465 /* confdefs.h.  */
23466 _ACEOF
23467 cat confdefs.h >>conftest.$ac_ext
23468 cat >>conftest.$ac_ext <<_ACEOF
23469 /* end confdefs.h.  */
23470 $ac_includes_default
23471 long longval () { return (long) (sizeof (unsigned short)); }
23472 unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
23473 #include <stdio.h>
23474 #include <stdlib.h>
23475 int
23476 main ()
23477 {
23478
23479   FILE *f = fopen ("conftest.val", "w");
23480   if (! f)
23481     exit (1);
23482   if (((long) (sizeof (unsigned short))) < 0)
23483     {
23484       long i = longval ();
23485       if (i != ((long) (sizeof (unsigned short))))
23486         exit (1);
23487       fprintf (f, "%ld\n", i);
23488     }
23489   else
23490     {
23491       unsigned long i = ulongval ();
23492       if (i != ((long) (sizeof (unsigned short))))
23493         exit (1);
23494       fprintf (f, "%lu\n", i);
23495     }
23496   exit (ferror (f) || fclose (f) != 0);
23497
23498   ;
23499   return 0;
23500 }
23501 _ACEOF
23502 rm -f conftest$ac_exeext
23503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23504   (eval $ac_link) 2>&5
23505   ac_status=$?
23506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23509   (eval $ac_try) 2>&5
23510   ac_status=$?
23511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512   (exit $ac_status); }; }; then
23513   ac_cv_sizeof_unsigned_short=`cat conftest.val`
23514 else
23515   echo "$as_me: program exited with status $ac_status" >&5
23516 echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23518
23519 ( exit $ac_status )
23520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
23521 See \`config.log' for more details." >&5
23522 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
23523 See \`config.log' for more details." >&2;}
23524    { (exit 1); exit 1; }; }
23525 fi
23526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23527 fi
23528 fi
23529 rm -f conftest.val
23530 else
23531   ac_cv_sizeof_unsigned_short=0
23532 fi
23533 fi
23534 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
23535 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
23536 cat >>confdefs.h <<_ACEOF
23537 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23538 _ACEOF
23539
23540
23541 echo "$as_me:$LINENO: checking for unsigned int" >&5
23542 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
23543 if test "${ac_cv_type_unsigned_int+set}" = set; then
23544   echo $ECHO_N "(cached) $ECHO_C" >&6
23545 else
23546   cat >conftest.$ac_ext <<_ACEOF
23547 /* confdefs.h.  */
23548 _ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h.  */
23552 $ac_includes_default
23553 int
23554 main ()
23555 {
23556 if ((unsigned int *) 0)
23557   return 0;
23558 if (sizeof (unsigned int))
23559   return 0;
23560   ;
23561   return 0;
23562 }
23563 _ACEOF
23564 rm -f conftest.$ac_objext
23565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23566   (eval $ac_compile) 2>conftest.er1
23567   ac_status=$?
23568   grep -v '^ *+' conftest.er1 >conftest.err
23569   rm -f conftest.er1
23570   cat conftest.err >&5
23571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572   (exit $ac_status); } &&
23573          { ac_try='test -z "$ac_c_werror_flag"
23574                          || test ! -s conftest.err'
23575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576   (eval $ac_try) 2>&5
23577   ac_status=$?
23578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579   (exit $ac_status); }; } &&
23580          { ac_try='test -s conftest.$ac_objext'
23581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582   (eval $ac_try) 2>&5
23583   ac_status=$?
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); }; }; then
23586   ac_cv_type_unsigned_int=yes
23587 else
23588   echo "$as_me: failed program was:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23590
23591 ac_cv_type_unsigned_int=no
23592 fi
23593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23594 fi
23595 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
23596 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
23597
23598 echo "$as_me:$LINENO: checking size of unsigned int" >&5
23599 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
23600 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
23601   echo $ECHO_N "(cached) $ECHO_C" >&6
23602 else
23603   if test "$ac_cv_type_unsigned_int" = yes; then
23604   # The cast to unsigned long works around a bug in the HP C Compiler
23605   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23606   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23607   # This bug is HP SR number 8606223364.
23608   if test "$cross_compiling" = yes; then
23609   # Depending upon the size, compute the lo and hi bounds.
23610 cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h.  */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h.  */
23616 $ac_includes_default
23617 int
23618 main ()
23619 {
23620 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
23621 test_array [0] = 0
23622
23623   ;
23624   return 0;
23625 }
23626 _ACEOF
23627 rm -f conftest.$ac_objext
23628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23629   (eval $ac_compile) 2>conftest.er1
23630   ac_status=$?
23631   grep -v '^ *+' conftest.er1 >conftest.err
23632   rm -f conftest.er1
23633   cat conftest.err >&5
23634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635   (exit $ac_status); } &&
23636          { ac_try='test -z "$ac_c_werror_flag"
23637                          || test ! -s conftest.err'
23638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639   (eval $ac_try) 2>&5
23640   ac_status=$?
23641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642   (exit $ac_status); }; } &&
23643          { ac_try='test -s conftest.$ac_objext'
23644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645   (eval $ac_try) 2>&5
23646   ac_status=$?
23647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648   (exit $ac_status); }; }; then
23649   ac_lo=0 ac_mid=0
23650   while :; do
23651     cat >conftest.$ac_ext <<_ACEOF
23652 /* confdefs.h.  */
23653 _ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h.  */
23657 $ac_includes_default
23658 int
23659 main ()
23660 {
23661 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
23662 test_array [0] = 0
23663
23664   ;
23665   return 0;
23666 }
23667 _ACEOF
23668 rm -f conftest.$ac_objext
23669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23670   (eval $ac_compile) 2>conftest.er1
23671   ac_status=$?
23672   grep -v '^ *+' conftest.er1 >conftest.err
23673   rm -f conftest.er1
23674   cat conftest.err >&5
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); } &&
23677          { ac_try='test -z "$ac_c_werror_flag"
23678                          || test ! -s conftest.err'
23679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23680   (eval $ac_try) 2>&5
23681   ac_status=$?
23682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683   (exit $ac_status); }; } &&
23684          { ac_try='test -s conftest.$ac_objext'
23685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23686   (eval $ac_try) 2>&5
23687   ac_status=$?
23688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); }; }; then
23690   ac_hi=$ac_mid; break
23691 else
23692   echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23694
23695 ac_lo=`expr $ac_mid + 1`
23696                     if test $ac_lo -le $ac_mid; then
23697                       ac_lo= ac_hi=
23698                       break
23699                     fi
23700                     ac_mid=`expr 2 '*' $ac_mid + 1`
23701 fi
23702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23703   done
23704 else
23705   echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708 cat >conftest.$ac_ext <<_ACEOF
23709 /* confdefs.h.  */
23710 _ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h.  */
23714 $ac_includes_default
23715 int
23716 main ()
23717 {
23718 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
23719 test_array [0] = 0
23720
23721   ;
23722   return 0;
23723 }
23724 _ACEOF
23725 rm -f conftest.$ac_objext
23726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23727   (eval $ac_compile) 2>conftest.er1
23728   ac_status=$?
23729   grep -v '^ *+' conftest.er1 >conftest.err
23730   rm -f conftest.er1
23731   cat conftest.err >&5
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); } &&
23734          { ac_try='test -z "$ac_c_werror_flag"
23735                          || test ! -s conftest.err'
23736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737   (eval $ac_try) 2>&5
23738   ac_status=$?
23739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740   (exit $ac_status); }; } &&
23741          { ac_try='test -s conftest.$ac_objext'
23742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23743   (eval $ac_try) 2>&5
23744   ac_status=$?
23745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746   (exit $ac_status); }; }; then
23747   ac_hi=-1 ac_mid=-1
23748   while :; do
23749     cat >conftest.$ac_ext <<_ACEOF
23750 /* confdefs.h.  */
23751 _ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.h.  */
23755 $ac_includes_default
23756 int
23757 main ()
23758 {
23759 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
23760 test_array [0] = 0
23761
23762   ;
23763   return 0;
23764 }
23765 _ACEOF
23766 rm -f conftest.$ac_objext
23767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23768   (eval $ac_compile) 2>conftest.er1
23769   ac_status=$?
23770   grep -v '^ *+' conftest.er1 >conftest.err
23771   rm -f conftest.er1
23772   cat conftest.err >&5
23773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774   (exit $ac_status); } &&
23775          { ac_try='test -z "$ac_c_werror_flag"
23776                          || test ! -s conftest.err'
23777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23778   (eval $ac_try) 2>&5
23779   ac_status=$?
23780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781   (exit $ac_status); }; } &&
23782          { ac_try='test -s conftest.$ac_objext'
23783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784   (eval $ac_try) 2>&5
23785   ac_status=$?
23786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787   (exit $ac_status); }; }; then
23788   ac_lo=$ac_mid; break
23789 else
23790   echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23792
23793 ac_hi=`expr '(' $ac_mid ')' - 1`
23794                        if test $ac_mid -le $ac_hi; then
23795                          ac_lo= ac_hi=
23796                          break
23797                        fi
23798                        ac_mid=`expr 2 '*' $ac_mid`
23799 fi
23800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23801   done
23802 else
23803   echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23805
23806 ac_lo= ac_hi=
23807 fi
23808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23809 fi
23810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23811 # Binary search between lo and hi bounds.
23812 while test "x$ac_lo" != "x$ac_hi"; do
23813   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23814   cat >conftest.$ac_ext <<_ACEOF
23815 /* confdefs.h.  */
23816 _ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h.  */
23820 $ac_includes_default
23821 int
23822 main ()
23823 {
23824 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
23825 test_array [0] = 0
23826
23827   ;
23828   return 0;
23829 }
23830 _ACEOF
23831 rm -f conftest.$ac_objext
23832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23833   (eval $ac_compile) 2>conftest.er1
23834   ac_status=$?
23835   grep -v '^ *+' conftest.er1 >conftest.err
23836   rm -f conftest.er1
23837   cat conftest.err >&5
23838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839   (exit $ac_status); } &&
23840          { ac_try='test -z "$ac_c_werror_flag"
23841                          || test ! -s conftest.err'
23842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23843   (eval $ac_try) 2>&5
23844   ac_status=$?
23845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846   (exit $ac_status); }; } &&
23847          { ac_try='test -s conftest.$ac_objext'
23848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23849   (eval $ac_try) 2>&5
23850   ac_status=$?
23851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852   (exit $ac_status); }; }; then
23853   ac_hi=$ac_mid
23854 else
23855   echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23857
23858 ac_lo=`expr '(' $ac_mid ')' + 1`
23859 fi
23860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23861 done
23862 case $ac_lo in
23863 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
23864 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
23865 See \`config.log' for more details." >&5
23866 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
23867 See \`config.log' for more details." >&2;}
23868    { (exit 1); exit 1; }; } ;;
23869 esac
23870 else
23871   if test "$cross_compiling" = yes; then
23872   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23873 See \`config.log' for more details." >&5
23874 echo "$as_me: error: cannot run test program while cross compiling
23875 See \`config.log' for more details." >&2;}
23876    { (exit 1); exit 1; }; }
23877 else
23878   cat >conftest.$ac_ext <<_ACEOF
23879 /* confdefs.h.  */
23880 _ACEOF
23881 cat confdefs.h >>conftest.$ac_ext
23882 cat >>conftest.$ac_ext <<_ACEOF
23883 /* end confdefs.h.  */
23884 $ac_includes_default
23885 long longval () { return (long) (sizeof (unsigned int)); }
23886 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
23887 #include <stdio.h>
23888 #include <stdlib.h>
23889 int
23890 main ()
23891 {
23892
23893   FILE *f = fopen ("conftest.val", "w");
23894   if (! f)
23895     exit (1);
23896   if (((long) (sizeof (unsigned int))) < 0)
23897     {
23898       long i = longval ();
23899       if (i != ((long) (sizeof (unsigned int))))
23900         exit (1);
23901       fprintf (f, "%ld\n", i);
23902     }
23903   else
23904     {
23905       unsigned long i = ulongval ();
23906       if (i != ((long) (sizeof (unsigned int))))
23907         exit (1);
23908       fprintf (f, "%lu\n", i);
23909     }
23910   exit (ferror (f) || fclose (f) != 0);
23911
23912   ;
23913   return 0;
23914 }
23915 _ACEOF
23916 rm -f conftest$ac_exeext
23917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23918   (eval $ac_link) 2>&5
23919   ac_status=$?
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923   (eval $ac_try) 2>&5
23924   ac_status=$?
23925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926   (exit $ac_status); }; }; then
23927   ac_cv_sizeof_unsigned_int=`cat conftest.val`
23928 else
23929   echo "$as_me: program exited with status $ac_status" >&5
23930 echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23932
23933 ( exit $ac_status )
23934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
23935 See \`config.log' for more details." >&5
23936 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
23937 See \`config.log' for more details." >&2;}
23938    { (exit 1); exit 1; }; }
23939 fi
23940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23941 fi
23942 fi
23943 rm -f conftest.val
23944 else
23945   ac_cv_sizeof_unsigned_int=0
23946 fi
23947 fi
23948 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23949 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
23950 cat >>confdefs.h <<_ACEOF
23951 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23952 _ACEOF
23953
23954
23955 echo "$as_me:$LINENO: checking for unsigned long" >&5
23956 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
23957 if test "${ac_cv_type_unsigned_long+set}" = set; then
23958   echo $ECHO_N "(cached) $ECHO_C" >&6
23959 else
23960   cat >conftest.$ac_ext <<_ACEOF
23961 /* confdefs.h.  */
23962 _ACEOF
23963 cat confdefs.h >>conftest.$ac_ext
23964 cat >>conftest.$ac_ext <<_ACEOF
23965 /* end confdefs.h.  */
23966 $ac_includes_default
23967 int
23968 main ()
23969 {
23970 if ((unsigned long *) 0)
23971   return 0;
23972 if (sizeof (unsigned long))
23973   return 0;
23974   ;
23975   return 0;
23976 }
23977 _ACEOF
23978 rm -f conftest.$ac_objext
23979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23980   (eval $ac_compile) 2>conftest.er1
23981   ac_status=$?
23982   grep -v '^ *+' conftest.er1 >conftest.err
23983   rm -f conftest.er1
23984   cat conftest.err >&5
23985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986   (exit $ac_status); } &&
23987          { ac_try='test -z "$ac_c_werror_flag"
23988                          || test ! -s conftest.err'
23989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23990   (eval $ac_try) 2>&5
23991   ac_status=$?
23992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993   (exit $ac_status); }; } &&
23994          { ac_try='test -s conftest.$ac_objext'
23995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23996   (eval $ac_try) 2>&5
23997   ac_status=$?
23998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999   (exit $ac_status); }; }; then
24000   ac_cv_type_unsigned_long=yes
24001 else
24002   echo "$as_me: failed program was:" >&5
24003 sed 's/^/| /' conftest.$ac_ext >&5
24004
24005 ac_cv_type_unsigned_long=no
24006 fi
24007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24008 fi
24009 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24010 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
24011
24012 echo "$as_me:$LINENO: checking size of unsigned long" >&5
24013 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
24014 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24015   echo $ECHO_N "(cached) $ECHO_C" >&6
24016 else
24017   if test "$ac_cv_type_unsigned_long" = yes; then
24018   # The cast to unsigned long works around a bug in the HP C Compiler
24019   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24020   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24021   # This bug is HP SR number 8606223364.
24022   if test "$cross_compiling" = yes; then
24023   # Depending upon the size, compute the lo and hi bounds.
24024 cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h.  */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h.  */
24030 $ac_includes_default
24031 int
24032 main ()
24033 {
24034 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
24035 test_array [0] = 0
24036
24037   ;
24038   return 0;
24039 }
24040 _ACEOF
24041 rm -f conftest.$ac_objext
24042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24043   (eval $ac_compile) 2>conftest.er1
24044   ac_status=$?
24045   grep -v '^ *+' conftest.er1 >conftest.err
24046   rm -f conftest.er1
24047   cat conftest.err >&5
24048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049   (exit $ac_status); } &&
24050          { ac_try='test -z "$ac_c_werror_flag"
24051                          || test ! -s conftest.err'
24052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24053   (eval $ac_try) 2>&5
24054   ac_status=$?
24055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056   (exit $ac_status); }; } &&
24057          { ac_try='test -s conftest.$ac_objext'
24058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24059   (eval $ac_try) 2>&5
24060   ac_status=$?
24061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062   (exit $ac_status); }; }; then
24063   ac_lo=0 ac_mid=0
24064   while :; do
24065     cat >conftest.$ac_ext <<_ACEOF
24066 /* confdefs.h.  */
24067 _ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h.  */
24071 $ac_includes_default
24072 int
24073 main ()
24074 {
24075 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
24076 test_array [0] = 0
24077
24078   ;
24079   return 0;
24080 }
24081 _ACEOF
24082 rm -f conftest.$ac_objext
24083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24084   (eval $ac_compile) 2>conftest.er1
24085   ac_status=$?
24086   grep -v '^ *+' conftest.er1 >conftest.err
24087   rm -f conftest.er1
24088   cat conftest.err >&5
24089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090   (exit $ac_status); } &&
24091          { ac_try='test -z "$ac_c_werror_flag"
24092                          || test ! -s conftest.err'
24093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24094   (eval $ac_try) 2>&5
24095   ac_status=$?
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); }; } &&
24098          { ac_try='test -s conftest.$ac_objext'
24099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24100   (eval $ac_try) 2>&5
24101   ac_status=$?
24102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103   (exit $ac_status); }; }; then
24104   ac_hi=$ac_mid; break
24105 else
24106   echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24108
24109 ac_lo=`expr $ac_mid + 1`
24110                     if test $ac_lo -le $ac_mid; then
24111                       ac_lo= ac_hi=
24112                       break
24113                     fi
24114                     ac_mid=`expr 2 '*' $ac_mid + 1`
24115 fi
24116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24117   done
24118 else
24119   echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.$ac_ext >&5
24121
24122 cat >conftest.$ac_ext <<_ACEOF
24123 /* confdefs.h.  */
24124 _ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h.  */
24128 $ac_includes_default
24129 int
24130 main ()
24131 {
24132 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
24133 test_array [0] = 0
24134
24135   ;
24136   return 0;
24137 }
24138 _ACEOF
24139 rm -f conftest.$ac_objext
24140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24141   (eval $ac_compile) 2>conftest.er1
24142   ac_status=$?
24143   grep -v '^ *+' conftest.er1 >conftest.err
24144   rm -f conftest.er1
24145   cat conftest.err >&5
24146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147   (exit $ac_status); } &&
24148          { ac_try='test -z "$ac_c_werror_flag"
24149                          || test ! -s conftest.err'
24150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24151   (eval $ac_try) 2>&5
24152   ac_status=$?
24153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154   (exit $ac_status); }; } &&
24155          { ac_try='test -s conftest.$ac_objext'
24156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24157   (eval $ac_try) 2>&5
24158   ac_status=$?
24159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160   (exit $ac_status); }; }; then
24161   ac_hi=-1 ac_mid=-1
24162   while :; do
24163     cat >conftest.$ac_ext <<_ACEOF
24164 /* confdefs.h.  */
24165 _ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h.  */
24169 $ac_includes_default
24170 int
24171 main ()
24172 {
24173 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
24174 test_array [0] = 0
24175
24176   ;
24177   return 0;
24178 }
24179 _ACEOF
24180 rm -f conftest.$ac_objext
24181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24182   (eval $ac_compile) 2>conftest.er1
24183   ac_status=$?
24184   grep -v '^ *+' conftest.er1 >conftest.err
24185   rm -f conftest.er1
24186   cat conftest.err >&5
24187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188   (exit $ac_status); } &&
24189          { ac_try='test -z "$ac_c_werror_flag"
24190                          || test ! -s conftest.err'
24191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192   (eval $ac_try) 2>&5
24193   ac_status=$?
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); }; } &&
24196          { ac_try='test -s conftest.$ac_objext'
24197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198   (eval $ac_try) 2>&5
24199   ac_status=$?
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); }; }; then
24202   ac_lo=$ac_mid; break
24203 else
24204   echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24206
24207 ac_hi=`expr '(' $ac_mid ')' - 1`
24208                        if test $ac_mid -le $ac_hi; then
24209                          ac_lo= ac_hi=
24210                          break
24211                        fi
24212                        ac_mid=`expr 2 '*' $ac_mid`
24213 fi
24214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24215   done
24216 else
24217   echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24219
24220 ac_lo= ac_hi=
24221 fi
24222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24223 fi
24224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24225 # Binary search between lo and hi bounds.
24226 while test "x$ac_lo" != "x$ac_hi"; do
24227   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24228   cat >conftest.$ac_ext <<_ACEOF
24229 /* confdefs.h.  */
24230 _ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h.  */
24234 $ac_includes_default
24235 int
24236 main ()
24237 {
24238 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
24239 test_array [0] = 0
24240
24241   ;
24242   return 0;
24243 }
24244 _ACEOF
24245 rm -f conftest.$ac_objext
24246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24247   (eval $ac_compile) 2>conftest.er1
24248   ac_status=$?
24249   grep -v '^ *+' conftest.er1 >conftest.err
24250   rm -f conftest.er1
24251   cat conftest.err >&5
24252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253   (exit $ac_status); } &&
24254          { ac_try='test -z "$ac_c_werror_flag"
24255                          || test ! -s conftest.err'
24256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257   (eval $ac_try) 2>&5
24258   ac_status=$?
24259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260   (exit $ac_status); }; } &&
24261          { ac_try='test -s conftest.$ac_objext'
24262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263   (eval $ac_try) 2>&5
24264   ac_status=$?
24265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); }; }; then
24267   ac_hi=$ac_mid
24268 else
24269   echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24271
24272 ac_lo=`expr '(' $ac_mid ')' + 1`
24273 fi
24274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24275 done
24276 case $ac_lo in
24277 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
24278 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
24279 See \`config.log' for more details." >&5
24280 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
24281 See \`config.log' for more details." >&2;}
24282    { (exit 1); exit 1; }; } ;;
24283 esac
24284 else
24285   if test "$cross_compiling" = yes; then
24286   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24287 See \`config.log' for more details." >&5
24288 echo "$as_me: error: cannot run test program while cross compiling
24289 See \`config.log' for more details." >&2;}
24290    { (exit 1); exit 1; }; }
24291 else
24292   cat >conftest.$ac_ext <<_ACEOF
24293 /* confdefs.h.  */
24294 _ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h.  */
24298 $ac_includes_default
24299 long longval () { return (long) (sizeof (unsigned long)); }
24300 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
24301 #include <stdio.h>
24302 #include <stdlib.h>
24303 int
24304 main ()
24305 {
24306
24307   FILE *f = fopen ("conftest.val", "w");
24308   if (! f)
24309     exit (1);
24310   if (((long) (sizeof (unsigned long))) < 0)
24311     {
24312       long i = longval ();
24313       if (i != ((long) (sizeof (unsigned long))))
24314         exit (1);
24315       fprintf (f, "%ld\n", i);
24316     }
24317   else
24318     {
24319       unsigned long i = ulongval ();
24320       if (i != ((long) (sizeof (unsigned long))))
24321         exit (1);
24322       fprintf (f, "%lu\n", i);
24323     }
24324   exit (ferror (f) || fclose (f) != 0);
24325
24326   ;
24327   return 0;
24328 }
24329 _ACEOF
24330 rm -f conftest$ac_exeext
24331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24332   (eval $ac_link) 2>&5
24333   ac_status=$?
24334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337   (eval $ac_try) 2>&5
24338   ac_status=$?
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); }; }; then
24341   ac_cv_sizeof_unsigned_long=`cat conftest.val`
24342 else
24343   echo "$as_me: program exited with status $ac_status" >&5
24344 echo "$as_me: failed program was:" >&5
24345 sed 's/^/| /' conftest.$ac_ext >&5
24346
24347 ( exit $ac_status )
24348 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
24349 See \`config.log' for more details." >&5
24350 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
24351 See \`config.log' for more details." >&2;}
24352    { (exit 1); exit 1; }; }
24353 fi
24354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24355 fi
24356 fi
24357 rm -f conftest.val
24358 else
24359   ac_cv_sizeof_unsigned_long=0
24360 fi
24361 fi
24362 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
24363 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
24364 cat >>confdefs.h <<_ACEOF
24365 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24366 _ACEOF
24367
24368
24369 echo "$as_me:$LINENO: checking for unsigned long long" >&5
24370 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
24371 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
24372   echo $ECHO_N "(cached) $ECHO_C" >&6
24373 else
24374   cat >conftest.$ac_ext <<_ACEOF
24375 /* confdefs.h.  */
24376 _ACEOF
24377 cat confdefs.h >>conftest.$ac_ext
24378 cat >>conftest.$ac_ext <<_ACEOF
24379 /* end confdefs.h.  */
24380 $ac_includes_default
24381 int
24382 main ()
24383 {
24384 if ((unsigned long long *) 0)
24385   return 0;
24386 if (sizeof (unsigned long long))
24387   return 0;
24388   ;
24389   return 0;
24390 }
24391 _ACEOF
24392 rm -f conftest.$ac_objext
24393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24394   (eval $ac_compile) 2>conftest.er1
24395   ac_status=$?
24396   grep -v '^ *+' conftest.er1 >conftest.err
24397   rm -f conftest.er1
24398   cat conftest.err >&5
24399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400   (exit $ac_status); } &&
24401          { ac_try='test -z "$ac_c_werror_flag"
24402                          || test ! -s conftest.err'
24403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404   (eval $ac_try) 2>&5
24405   ac_status=$?
24406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407   (exit $ac_status); }; } &&
24408          { ac_try='test -s conftest.$ac_objext'
24409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410   (eval $ac_try) 2>&5
24411   ac_status=$?
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); }; }; then
24414   ac_cv_type_unsigned_long_long=yes
24415 else
24416   echo "$as_me: failed program was:" >&5
24417 sed 's/^/| /' conftest.$ac_ext >&5
24418
24419 ac_cv_type_unsigned_long_long=no
24420 fi
24421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24422 fi
24423 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
24424 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
24425
24426 echo "$as_me:$LINENO: checking size of unsigned long long" >&5
24427 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6
24428 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
24429   echo $ECHO_N "(cached) $ECHO_C" >&6
24430 else
24431   if test "$ac_cv_type_unsigned_long_long" = yes; then
24432   # The cast to unsigned long works around a bug in the HP C Compiler
24433   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24434   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24435   # This bug is HP SR number 8606223364.
24436   if test "$cross_compiling" = yes; then
24437   # Depending upon the size, compute the lo and hi bounds.
24438 cat >conftest.$ac_ext <<_ACEOF
24439 /* confdefs.h.  */
24440 _ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h.  */
24444 $ac_includes_default
24445 int
24446 main ()
24447 {
24448 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)];
24449 test_array [0] = 0
24450
24451   ;
24452   return 0;
24453 }
24454 _ACEOF
24455 rm -f conftest.$ac_objext
24456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24457   (eval $ac_compile) 2>conftest.er1
24458   ac_status=$?
24459   grep -v '^ *+' conftest.er1 >conftest.err
24460   rm -f conftest.er1
24461   cat conftest.err >&5
24462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463   (exit $ac_status); } &&
24464          { ac_try='test -z "$ac_c_werror_flag"
24465                          || test ! -s conftest.err'
24466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24467   (eval $ac_try) 2>&5
24468   ac_status=$?
24469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470   (exit $ac_status); }; } &&
24471          { ac_try='test -s conftest.$ac_objext'
24472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473   (eval $ac_try) 2>&5
24474   ac_status=$?
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); }; }; then
24477   ac_lo=0 ac_mid=0
24478   while :; do
24479     cat >conftest.$ac_ext <<_ACEOF
24480 /* confdefs.h.  */
24481 _ACEOF
24482 cat confdefs.h >>conftest.$ac_ext
24483 cat >>conftest.$ac_ext <<_ACEOF
24484 /* end confdefs.h.  */
24485 $ac_includes_default
24486 int
24487 main ()
24488 {
24489 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
24490 test_array [0] = 0
24491
24492   ;
24493   return 0;
24494 }
24495 _ACEOF
24496 rm -f conftest.$ac_objext
24497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24498   (eval $ac_compile) 2>conftest.er1
24499   ac_status=$?
24500   grep -v '^ *+' conftest.er1 >conftest.err
24501   rm -f conftest.er1
24502   cat conftest.err >&5
24503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504   (exit $ac_status); } &&
24505          { ac_try='test -z "$ac_c_werror_flag"
24506                          || test ! -s conftest.err'
24507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24508   (eval $ac_try) 2>&5
24509   ac_status=$?
24510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511   (exit $ac_status); }; } &&
24512          { ac_try='test -s conftest.$ac_objext'
24513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24514   (eval $ac_try) 2>&5
24515   ac_status=$?
24516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517   (exit $ac_status); }; }; then
24518   ac_hi=$ac_mid; break
24519 else
24520   echo "$as_me: failed program was:" >&5
24521 sed 's/^/| /' conftest.$ac_ext >&5
24522
24523 ac_lo=`expr $ac_mid + 1`
24524                     if test $ac_lo -le $ac_mid; then
24525                       ac_lo= ac_hi=
24526                       break
24527                     fi
24528                     ac_mid=`expr 2 '*' $ac_mid + 1`
24529 fi
24530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24531   done
24532 else
24533   echo "$as_me: failed program was:" >&5
24534 sed 's/^/| /' conftest.$ac_ext >&5
24535
24536 cat >conftest.$ac_ext <<_ACEOF
24537 /* confdefs.h.  */
24538 _ACEOF
24539 cat confdefs.h >>conftest.$ac_ext
24540 cat >>conftest.$ac_ext <<_ACEOF
24541 /* end confdefs.h.  */
24542 $ac_includes_default
24543 int
24544 main ()
24545 {
24546 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)];
24547 test_array [0] = 0
24548
24549   ;
24550   return 0;
24551 }
24552 _ACEOF
24553 rm -f conftest.$ac_objext
24554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24555   (eval $ac_compile) 2>conftest.er1
24556   ac_status=$?
24557   grep -v '^ *+' conftest.er1 >conftest.err
24558   rm -f conftest.er1
24559   cat conftest.err >&5
24560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561   (exit $ac_status); } &&
24562          { ac_try='test -z "$ac_c_werror_flag"
24563                          || test ! -s conftest.err'
24564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565   (eval $ac_try) 2>&5
24566   ac_status=$?
24567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568   (exit $ac_status); }; } &&
24569          { ac_try='test -s conftest.$ac_objext'
24570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24571   (eval $ac_try) 2>&5
24572   ac_status=$?
24573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574   (exit $ac_status); }; }; then
24575   ac_hi=-1 ac_mid=-1
24576   while :; do
24577     cat >conftest.$ac_ext <<_ACEOF
24578 /* confdefs.h.  */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h.  */
24583 $ac_includes_default
24584 int
24585 main ()
24586 {
24587 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)];
24588 test_array [0] = 0
24589
24590   ;
24591   return 0;
24592 }
24593 _ACEOF
24594 rm -f conftest.$ac_objext
24595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24596   (eval $ac_compile) 2>conftest.er1
24597   ac_status=$?
24598   grep -v '^ *+' conftest.er1 >conftest.err
24599   rm -f conftest.er1
24600   cat conftest.err >&5
24601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602   (exit $ac_status); } &&
24603          { ac_try='test -z "$ac_c_werror_flag"
24604                          || test ! -s conftest.err'
24605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24606   (eval $ac_try) 2>&5
24607   ac_status=$?
24608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609   (exit $ac_status); }; } &&
24610          { ac_try='test -s conftest.$ac_objext'
24611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24612   (eval $ac_try) 2>&5
24613   ac_status=$?
24614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615   (exit $ac_status); }; }; then
24616   ac_lo=$ac_mid; break
24617 else
24618   echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24620
24621 ac_hi=`expr '(' $ac_mid ')' - 1`
24622                        if test $ac_mid -le $ac_hi; then
24623                          ac_lo= ac_hi=
24624                          break
24625                        fi
24626                        ac_mid=`expr 2 '*' $ac_mid`
24627 fi
24628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24629   done
24630 else
24631   echo "$as_me: failed program was:" >&5
24632 sed 's/^/| /' conftest.$ac_ext >&5
24633
24634 ac_lo= ac_hi=
24635 fi
24636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24637 fi
24638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24639 # Binary search between lo and hi bounds.
24640 while test "x$ac_lo" != "x$ac_hi"; do
24641   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24642   cat >conftest.$ac_ext <<_ACEOF
24643 /* confdefs.h.  */
24644 _ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h.  */
24648 $ac_includes_default
24649 int
24650 main ()
24651 {
24652 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
24653 test_array [0] = 0
24654
24655   ;
24656   return 0;
24657 }
24658 _ACEOF
24659 rm -f conftest.$ac_objext
24660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24661   (eval $ac_compile) 2>conftest.er1
24662   ac_status=$?
24663   grep -v '^ *+' conftest.er1 >conftest.err
24664   rm -f conftest.er1
24665   cat conftest.err >&5
24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667   (exit $ac_status); } &&
24668          { ac_try='test -z "$ac_c_werror_flag"
24669                          || test ! -s conftest.err'
24670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671   (eval $ac_try) 2>&5
24672   ac_status=$?
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); }; } &&
24675          { ac_try='test -s conftest.$ac_objext'
24676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677   (eval $ac_try) 2>&5
24678   ac_status=$?
24679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680   (exit $ac_status); }; }; then
24681   ac_hi=$ac_mid
24682 else
24683   echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24685
24686 ac_lo=`expr '(' $ac_mid ')' + 1`
24687 fi
24688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24689 done
24690 case $ac_lo in
24691 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
24692 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
24693 See \`config.log' for more details." >&5
24694 echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
24695 See \`config.log' for more details." >&2;}
24696    { (exit 1); exit 1; }; } ;;
24697 esac
24698 else
24699   if test "$cross_compiling" = yes; then
24700   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24701 See \`config.log' for more details." >&5
24702 echo "$as_me: error: cannot run test program while cross compiling
24703 See \`config.log' for more details." >&2;}
24704    { (exit 1); exit 1; }; }
24705 else
24706   cat >conftest.$ac_ext <<_ACEOF
24707 /* confdefs.h.  */
24708 _ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h.  */
24712 $ac_includes_default
24713 long longval () { return (long) (sizeof (unsigned long long)); }
24714 unsigned long ulongval () { return (long) (sizeof (unsigned long long)); }
24715 #include <stdio.h>
24716 #include <stdlib.h>
24717 int
24718 main ()
24719 {
24720
24721   FILE *f = fopen ("conftest.val", "w");
24722   if (! f)
24723     exit (1);
24724   if (((long) (sizeof (unsigned long long))) < 0)
24725     {
24726       long i = longval ();
24727       if (i != ((long) (sizeof (unsigned long long))))
24728         exit (1);
24729       fprintf (f, "%ld\n", i);
24730     }
24731   else
24732     {
24733       unsigned long i = ulongval ();
24734       if (i != ((long) (sizeof (unsigned long long))))
24735         exit (1);
24736       fprintf (f, "%lu\n", i);
24737     }
24738   exit (ferror (f) || fclose (f) != 0);
24739
24740   ;
24741   return 0;
24742 }
24743 _ACEOF
24744 rm -f conftest$ac_exeext
24745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24746   (eval $ac_link) 2>&5
24747   ac_status=$?
24748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24751   (eval $ac_try) 2>&5
24752   ac_status=$?
24753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754   (exit $ac_status); }; }; then
24755   ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
24756 else
24757   echo "$as_me: program exited with status $ac_status" >&5
24758 echo "$as_me: failed program was:" >&5
24759 sed 's/^/| /' conftest.$ac_ext >&5
24760
24761 ( exit $ac_status )
24762 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
24763 See \`config.log' for more details." >&5
24764 echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
24765 See \`config.log' for more details." >&2;}
24766    { (exit 1); exit 1; }; }
24767 fi
24768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24769 fi
24770 fi
24771 rm -f conftest.val
24772 else
24773   ac_cv_sizeof_unsigned_long_long=0
24774 fi
24775 fi
24776 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
24777 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6
24778 cat >>confdefs.h <<_ACEOF
24779 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24780 _ACEOF
24781
24782
24783 echo "$as_me:$LINENO: checking for int *" >&5
24784 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24785 if test "${ac_cv_type_int_p+set}" = set; then
24786   echo $ECHO_N "(cached) $ECHO_C" >&6
24787 else
24788   cat >conftest.$ac_ext <<_ACEOF
24789 /* confdefs.h.  */
24790 _ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h.  */
24794 $ac_includes_default
24795 int
24796 main ()
24797 {
24798 if ((int * *) 0)
24799   return 0;
24800 if (sizeof (int *))
24801   return 0;
24802   ;
24803   return 0;
24804 }
24805 _ACEOF
24806 rm -f conftest.$ac_objext
24807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24808   (eval $ac_compile) 2>conftest.er1
24809   ac_status=$?
24810   grep -v '^ *+' conftest.er1 >conftest.err
24811   rm -f conftest.er1
24812   cat conftest.err >&5
24813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814   (exit $ac_status); } &&
24815          { ac_try='test -z "$ac_c_werror_flag"
24816                          || test ! -s conftest.err'
24817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818   (eval $ac_try) 2>&5
24819   ac_status=$?
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); }; } &&
24822          { ac_try='test -s conftest.$ac_objext'
24823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824   (eval $ac_try) 2>&5
24825   ac_status=$?
24826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827   (exit $ac_status); }; }; then
24828   ac_cv_type_int_p=yes
24829 else
24830   echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24832
24833 ac_cv_type_int_p=no
24834 fi
24835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24836 fi
24837 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24838 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24839
24840 echo "$as_me:$LINENO: checking size of int *" >&5
24841 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24842 if test "${ac_cv_sizeof_int_p+set}" = set; then
24843   echo $ECHO_N "(cached) $ECHO_C" >&6
24844 else
24845   if test "$ac_cv_type_int_p" = yes; then
24846   # The cast to unsigned long works around a bug in the HP C Compiler
24847   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24848   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24849   # This bug is HP SR number 8606223364.
24850   if test "$cross_compiling" = yes; then
24851   # Depending upon the size, compute the lo and hi bounds.
24852 cat >conftest.$ac_ext <<_ACEOF
24853 /* confdefs.h.  */
24854 _ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h.  */
24858 $ac_includes_default
24859 int
24860 main ()
24861 {
24862 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24863 test_array [0] = 0
24864
24865   ;
24866   return 0;
24867 }
24868 _ACEOF
24869 rm -f conftest.$ac_objext
24870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24871   (eval $ac_compile) 2>conftest.er1
24872   ac_status=$?
24873   grep -v '^ *+' conftest.er1 >conftest.err
24874   rm -f conftest.er1
24875   cat conftest.err >&5
24876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877   (exit $ac_status); } &&
24878          { ac_try='test -z "$ac_c_werror_flag"
24879                          || test ! -s conftest.err'
24880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881   (eval $ac_try) 2>&5
24882   ac_status=$?
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); }; } &&
24885          { ac_try='test -s conftest.$ac_objext'
24886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887   (eval $ac_try) 2>&5
24888   ac_status=$?
24889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890   (exit $ac_status); }; }; then
24891   ac_lo=0 ac_mid=0
24892   while :; do
24893     cat >conftest.$ac_ext <<_ACEOF
24894 /* confdefs.h.  */
24895 _ACEOF
24896 cat confdefs.h >>conftest.$ac_ext
24897 cat >>conftest.$ac_ext <<_ACEOF
24898 /* end confdefs.h.  */
24899 $ac_includes_default
24900 int
24901 main ()
24902 {
24903 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24904 test_array [0] = 0
24905
24906   ;
24907   return 0;
24908 }
24909 _ACEOF
24910 rm -f conftest.$ac_objext
24911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24912   (eval $ac_compile) 2>conftest.er1
24913   ac_status=$?
24914   grep -v '^ *+' conftest.er1 >conftest.err
24915   rm -f conftest.er1
24916   cat conftest.err >&5
24917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918   (exit $ac_status); } &&
24919          { ac_try='test -z "$ac_c_werror_flag"
24920                          || test ! -s conftest.err'
24921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922   (eval $ac_try) 2>&5
24923   ac_status=$?
24924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925   (exit $ac_status); }; } &&
24926          { ac_try='test -s conftest.$ac_objext'
24927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928   (eval $ac_try) 2>&5
24929   ac_status=$?
24930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931   (exit $ac_status); }; }; then
24932   ac_hi=$ac_mid; break
24933 else
24934   echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24936
24937 ac_lo=`expr $ac_mid + 1`
24938                     if test $ac_lo -le $ac_mid; then
24939                       ac_lo= ac_hi=
24940                       break
24941                     fi
24942                     ac_mid=`expr 2 '*' $ac_mid + 1`
24943 fi
24944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24945   done
24946 else
24947   echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24949
24950 cat >conftest.$ac_ext <<_ACEOF
24951 /* confdefs.h.  */
24952 _ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h.  */
24956 $ac_includes_default
24957 int
24958 main ()
24959 {
24960 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
24961 test_array [0] = 0
24962
24963   ;
24964   return 0;
24965 }
24966 _ACEOF
24967 rm -f conftest.$ac_objext
24968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24969   (eval $ac_compile) 2>conftest.er1
24970   ac_status=$?
24971   grep -v '^ *+' conftest.er1 >conftest.err
24972   rm -f conftest.er1
24973   cat conftest.err >&5
24974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975   (exit $ac_status); } &&
24976          { ac_try='test -z "$ac_c_werror_flag"
24977                          || test ! -s conftest.err'
24978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24979   (eval $ac_try) 2>&5
24980   ac_status=$?
24981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982   (exit $ac_status); }; } &&
24983          { ac_try='test -s conftest.$ac_objext'
24984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985   (eval $ac_try) 2>&5
24986   ac_status=$?
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); }; }; then
24989   ac_hi=-1 ac_mid=-1
24990   while :; do
24991     cat >conftest.$ac_ext <<_ACEOF
24992 /* confdefs.h.  */
24993 _ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h.  */
24997 $ac_includes_default
24998 int
24999 main ()
25000 {
25001 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25002 test_array [0] = 0
25003
25004   ;
25005   return 0;
25006 }
25007 _ACEOF
25008 rm -f conftest.$ac_objext
25009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25010   (eval $ac_compile) 2>conftest.er1
25011   ac_status=$?
25012   grep -v '^ *+' conftest.er1 >conftest.err
25013   rm -f conftest.er1
25014   cat conftest.err >&5
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); } &&
25017          { ac_try='test -z "$ac_c_werror_flag"
25018                          || test ! -s conftest.err'
25019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020   (eval $ac_try) 2>&5
25021   ac_status=$?
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); }; } &&
25024          { ac_try='test -s conftest.$ac_objext'
25025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026   (eval $ac_try) 2>&5
25027   ac_status=$?
25028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029   (exit $ac_status); }; }; then
25030   ac_lo=$ac_mid; break
25031 else
25032   echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25034
25035 ac_hi=`expr '(' $ac_mid ')' - 1`
25036                        if test $ac_mid -le $ac_hi; then
25037                          ac_lo= ac_hi=
25038                          break
25039                        fi
25040                        ac_mid=`expr 2 '*' $ac_mid`
25041 fi
25042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25043   done
25044 else
25045   echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25047
25048 ac_lo= ac_hi=
25049 fi
25050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25051 fi
25052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25053 # Binary search between lo and hi bounds.
25054 while test "x$ac_lo" != "x$ac_hi"; do
25055   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25056   cat >conftest.$ac_ext <<_ACEOF
25057 /* confdefs.h.  */
25058 _ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h.  */
25062 $ac_includes_default
25063 int
25064 main ()
25065 {
25066 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25067 test_array [0] = 0
25068
25069   ;
25070   return 0;
25071 }
25072 _ACEOF
25073 rm -f conftest.$ac_objext
25074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25075   (eval $ac_compile) 2>conftest.er1
25076   ac_status=$?
25077   grep -v '^ *+' conftest.er1 >conftest.err
25078   rm -f conftest.er1
25079   cat conftest.err >&5
25080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081   (exit $ac_status); } &&
25082          { ac_try='test -z "$ac_c_werror_flag"
25083                          || test ! -s conftest.err'
25084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25085   (eval $ac_try) 2>&5
25086   ac_status=$?
25087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088   (exit $ac_status); }; } &&
25089          { ac_try='test -s conftest.$ac_objext'
25090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091   (eval $ac_try) 2>&5
25092   ac_status=$?
25093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094   (exit $ac_status); }; }; then
25095   ac_hi=$ac_mid
25096 else
25097   echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25099
25100 ac_lo=`expr '(' $ac_mid ')' + 1`
25101 fi
25102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25103 done
25104 case $ac_lo in
25105 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25107 See \`config.log' for more details." >&5
25108 echo "$as_me: error: cannot compute sizeof (int *), 77
25109 See \`config.log' for more details." >&2;}
25110    { (exit 1); exit 1; }; } ;;
25111 esac
25112 else
25113   if test "$cross_compiling" = yes; then
25114   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25115 See \`config.log' for more details." >&5
25116 echo "$as_me: error: cannot run test program while cross compiling
25117 See \`config.log' for more details." >&2;}
25118    { (exit 1); exit 1; }; }
25119 else
25120   cat >conftest.$ac_ext <<_ACEOF
25121 /* confdefs.h.  */
25122 _ACEOF
25123 cat confdefs.h >>conftest.$ac_ext
25124 cat >>conftest.$ac_ext <<_ACEOF
25125 /* end confdefs.h.  */
25126 $ac_includes_default
25127 long longval () { return (long) (sizeof (int *)); }
25128 unsigned long ulongval () { return (long) (sizeof (int *)); }
25129 #include <stdio.h>
25130 #include <stdlib.h>
25131 int
25132 main ()
25133 {
25134
25135   FILE *f = fopen ("conftest.val", "w");
25136   if (! f)
25137     exit (1);
25138   if (((long) (sizeof (int *))) < 0)
25139     {
25140       long i = longval ();
25141       if (i != ((long) (sizeof (int *))))
25142         exit (1);
25143       fprintf (f, "%ld\n", i);
25144     }
25145   else
25146     {
25147       unsigned long i = ulongval ();
25148       if (i != ((long) (sizeof (int *))))
25149         exit (1);
25150       fprintf (f, "%lu\n", i);
25151     }
25152   exit (ferror (f) || fclose (f) != 0);
25153
25154   ;
25155   return 0;
25156 }
25157 _ACEOF
25158 rm -f conftest$ac_exeext
25159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25160   (eval $ac_link) 2>&5
25161   ac_status=$?
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165   (eval $ac_try) 2>&5
25166   ac_status=$?
25167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168   (exit $ac_status); }; }; then
25169   ac_cv_sizeof_int_p=`cat conftest.val`
25170 else
25171   echo "$as_me: program exited with status $ac_status" >&5
25172 echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25174
25175 ( exit $ac_status )
25176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25177 See \`config.log' for more details." >&5
25178 echo "$as_me: error: cannot compute sizeof (int *), 77
25179 See \`config.log' for more details." >&2;}
25180    { (exit 1); exit 1; }; }
25181 fi
25182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25183 fi
25184 fi
25185 rm -f conftest.val
25186 else
25187   ac_cv_sizeof_int_p=0
25188 fi
25189 fi
25190 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25191 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25192 cat >>confdefs.h <<_ACEOF
25193 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25194 _ACEOF
25195
25196
25197
25198 for ac_func in select
25199 do
25200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25201 echo "$as_me:$LINENO: checking for $ac_func" >&5
25202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25203 if eval "test \"\${$as_ac_var+set}\" = set"; then
25204   echo $ECHO_N "(cached) $ECHO_C" >&6
25205 else
25206   cat >conftest.$ac_ext <<_ACEOF
25207 /* confdefs.h.  */
25208 _ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h.  */
25212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25214 #define $ac_func innocuous_$ac_func
25215
25216 /* System header to define __stub macros and hopefully few prototypes,
25217     which can conflict with char $ac_func (); below.
25218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25219     <limits.h> exists even on freestanding compilers.  */
25220
25221 #ifdef __STDC__
25222 # include <limits.h>
25223 #else
25224 # include <assert.h>
25225 #endif
25226
25227 #undef $ac_func
25228
25229 /* Override any gcc2 internal prototype to avoid an error.  */
25230 #ifdef __cplusplus
25231 extern "C"
25232 {
25233 #endif
25234 /* We use char because int might match the return type of a gcc2
25235    builtin and then its argument prototype would still apply.  */
25236 char $ac_func ();
25237 /* The GNU C library defines this for functions which it implements
25238     to always fail with ENOSYS.  Some functions are actually named
25239     something starting with __ and the normal name is an alias.  */
25240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25241 choke me
25242 #else
25243 char (*f) () = $ac_func;
25244 #endif
25245 #ifdef __cplusplus
25246 }
25247 #endif
25248
25249 int
25250 main ()
25251 {
25252 return f != $ac_func;
25253   ;
25254   return 0;
25255 }
25256 _ACEOF
25257 rm -f conftest.$ac_objext conftest$ac_exeext
25258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25259   (eval $ac_link) 2>conftest.er1
25260   ac_status=$?
25261   grep -v '^ *+' conftest.er1 >conftest.err
25262   rm -f conftest.er1
25263   cat conftest.err >&5
25264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265   (exit $ac_status); } &&
25266          { ac_try='test -z "$ac_c_werror_flag"
25267                          || test ! -s conftest.err'
25268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25269   (eval $ac_try) 2>&5
25270   ac_status=$?
25271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272   (exit $ac_status); }; } &&
25273          { ac_try='test -s conftest$ac_exeext'
25274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275   (eval $ac_try) 2>&5
25276   ac_status=$?
25277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278   (exit $ac_status); }; }; then
25279   eval "$as_ac_var=yes"
25280 else
25281   echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25283
25284 eval "$as_ac_var=no"
25285 fi
25286 rm -f conftest.err conftest.$ac_objext \
25287       conftest$ac_exeext conftest.$ac_ext
25288 fi
25289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25291 if test `eval echo '${'$as_ac_var'}'` = yes; then
25292   cat >>confdefs.h <<_ACEOF
25293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25294 _ACEOF
25295  cat >>confdefs.h <<\_ACEOF
25296 #define BX_HAVE_SELECT 1
25297 _ACEOF
25298
25299 fi
25300 done
25301
25302
25303 for ac_func in snprintf
25304 do
25305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25306 echo "$as_me:$LINENO: checking for $ac_func" >&5
25307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25308 if eval "test \"\${$as_ac_var+set}\" = set"; then
25309   echo $ECHO_N "(cached) $ECHO_C" >&6
25310 else
25311   cat >conftest.$ac_ext <<_ACEOF
25312 /* confdefs.h.  */
25313 _ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h.  */
25317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25319 #define $ac_func innocuous_$ac_func
25320
25321 /* System header to define __stub macros and hopefully few prototypes,
25322     which can conflict with char $ac_func (); below.
25323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25324     <limits.h> exists even on freestanding compilers.  */
25325
25326 #ifdef __STDC__
25327 # include <limits.h>
25328 #else
25329 # include <assert.h>
25330 #endif
25331
25332 #undef $ac_func
25333
25334 /* Override any gcc2 internal prototype to avoid an error.  */
25335 #ifdef __cplusplus
25336 extern "C"
25337 {
25338 #endif
25339 /* We use char because int might match the return type of a gcc2
25340    builtin and then its argument prototype would still apply.  */
25341 char $ac_func ();
25342 /* The GNU C library defines this for functions which it implements
25343     to always fail with ENOSYS.  Some functions are actually named
25344     something starting with __ and the normal name is an alias.  */
25345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25346 choke me
25347 #else
25348 char (*f) () = $ac_func;
25349 #endif
25350 #ifdef __cplusplus
25351 }
25352 #endif
25353
25354 int
25355 main ()
25356 {
25357 return f != $ac_func;
25358   ;
25359   return 0;
25360 }
25361 _ACEOF
25362 rm -f conftest.$ac_objext conftest$ac_exeext
25363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25364   (eval $ac_link) 2>conftest.er1
25365   ac_status=$?
25366   grep -v '^ *+' conftest.er1 >conftest.err
25367   rm -f conftest.er1
25368   cat conftest.err >&5
25369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370   (exit $ac_status); } &&
25371          { ac_try='test -z "$ac_c_werror_flag"
25372                          || test ! -s conftest.err'
25373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25374   (eval $ac_try) 2>&5
25375   ac_status=$?
25376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377   (exit $ac_status); }; } &&
25378          { ac_try='test -s conftest$ac_exeext'
25379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25380   (eval $ac_try) 2>&5
25381   ac_status=$?
25382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383   (exit $ac_status); }; }; then
25384   eval "$as_ac_var=yes"
25385 else
25386   echo "$as_me: failed program was:" >&5
25387 sed 's/^/| /' conftest.$ac_ext >&5
25388
25389 eval "$as_ac_var=no"
25390 fi
25391 rm -f conftest.err conftest.$ac_objext \
25392       conftest$ac_exeext conftest.$ac_ext
25393 fi
25394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25396 if test `eval echo '${'$as_ac_var'}'` = yes; then
25397   cat >>confdefs.h <<_ACEOF
25398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25399 _ACEOF
25400  cat >>confdefs.h <<\_ACEOF
25401 #define BX_HAVE_SNPRINTF 1
25402 _ACEOF
25403
25404 fi
25405 done
25406
25407
25408 for ac_func in strtoull
25409 do
25410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25411 echo "$as_me:$LINENO: checking for $ac_func" >&5
25412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25413 if eval "test \"\${$as_ac_var+set}\" = set"; then
25414   echo $ECHO_N "(cached) $ECHO_C" >&6
25415 else
25416   cat >conftest.$ac_ext <<_ACEOF
25417 /* confdefs.h.  */
25418 _ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h.  */
25422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25424 #define $ac_func innocuous_$ac_func
25425
25426 /* System header to define __stub macros and hopefully few prototypes,
25427     which can conflict with char $ac_func (); below.
25428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25429     <limits.h> exists even on freestanding compilers.  */
25430
25431 #ifdef __STDC__
25432 # include <limits.h>
25433 #else
25434 # include <assert.h>
25435 #endif
25436
25437 #undef $ac_func
25438
25439 /* Override any gcc2 internal prototype to avoid an error.  */
25440 #ifdef __cplusplus
25441 extern "C"
25442 {
25443 #endif
25444 /* We use char because int might match the return type of a gcc2
25445    builtin and then its argument prototype would still apply.  */
25446 char $ac_func ();
25447 /* The GNU C library defines this for functions which it implements
25448     to always fail with ENOSYS.  Some functions are actually named
25449     something starting with __ and the normal name is an alias.  */
25450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25451 choke me
25452 #else
25453 char (*f) () = $ac_func;
25454 #endif
25455 #ifdef __cplusplus
25456 }
25457 #endif
25458
25459 int
25460 main ()
25461 {
25462 return f != $ac_func;
25463   ;
25464   return 0;
25465 }
25466 _ACEOF
25467 rm -f conftest.$ac_objext conftest$ac_exeext
25468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25469   (eval $ac_link) 2>conftest.er1
25470   ac_status=$?
25471   grep -v '^ *+' conftest.er1 >conftest.err
25472   rm -f conftest.er1
25473   cat conftest.err >&5
25474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475   (exit $ac_status); } &&
25476          { ac_try='test -z "$ac_c_werror_flag"
25477                          || test ! -s conftest.err'
25478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479   (eval $ac_try) 2>&5
25480   ac_status=$?
25481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482   (exit $ac_status); }; } &&
25483          { ac_try='test -s conftest$ac_exeext'
25484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485   (eval $ac_try) 2>&5
25486   ac_status=$?
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); }; }; then
25489   eval "$as_ac_var=yes"
25490 else
25491   echo "$as_me: failed program was:" >&5
25492 sed 's/^/| /' conftest.$ac_ext >&5
25493
25494 eval "$as_ac_var=no"
25495 fi
25496 rm -f conftest.err conftest.$ac_objext \
25497       conftest$ac_exeext conftest.$ac_ext
25498 fi
25499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25501 if test `eval echo '${'$as_ac_var'}'` = yes; then
25502   cat >>confdefs.h <<_ACEOF
25503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25504 _ACEOF
25505  cat >>confdefs.h <<\_ACEOF
25506 #define BX_HAVE_STRTOULL 1
25507 _ACEOF
25508
25509 fi
25510 done
25511
25512
25513 for ac_func in strtouq
25514 do
25515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25516 echo "$as_me:$LINENO: checking for $ac_func" >&5
25517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25518 if eval "test \"\${$as_ac_var+set}\" = set"; then
25519   echo $ECHO_N "(cached) $ECHO_C" >&6
25520 else
25521   cat >conftest.$ac_ext <<_ACEOF
25522 /* confdefs.h.  */
25523 _ACEOF
25524 cat confdefs.h >>conftest.$ac_ext
25525 cat >>conftest.$ac_ext <<_ACEOF
25526 /* end confdefs.h.  */
25527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25529 #define $ac_func innocuous_$ac_func
25530
25531 /* System header to define __stub macros and hopefully few prototypes,
25532     which can conflict with char $ac_func (); below.
25533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25534     <limits.h> exists even on freestanding compilers.  */
25535
25536 #ifdef __STDC__
25537 # include <limits.h>
25538 #else
25539 # include <assert.h>
25540 #endif
25541
25542 #undef $ac_func
25543
25544 /* Override any gcc2 internal prototype to avoid an error.  */
25545 #ifdef __cplusplus
25546 extern "C"
25547 {
25548 #endif
25549 /* We use char because int might match the return type of a gcc2
25550    builtin and then its argument prototype would still apply.  */
25551 char $ac_func ();
25552 /* The GNU C library defines this for functions which it implements
25553     to always fail with ENOSYS.  Some functions are actually named
25554     something starting with __ and the normal name is an alias.  */
25555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25556 choke me
25557 #else
25558 char (*f) () = $ac_func;
25559 #endif
25560 #ifdef __cplusplus
25561 }
25562 #endif
25563
25564 int
25565 main ()
25566 {
25567 return f != $ac_func;
25568   ;
25569   return 0;
25570 }
25571 _ACEOF
25572 rm -f conftest.$ac_objext conftest$ac_exeext
25573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25574   (eval $ac_link) 2>conftest.er1
25575   ac_status=$?
25576   grep -v '^ *+' conftest.er1 >conftest.err
25577   rm -f conftest.er1
25578   cat conftest.err >&5
25579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580   (exit $ac_status); } &&
25581          { ac_try='test -z "$ac_c_werror_flag"
25582                          || test ! -s conftest.err'
25583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25584   (eval $ac_try) 2>&5
25585   ac_status=$?
25586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587   (exit $ac_status); }; } &&
25588          { ac_try='test -s conftest$ac_exeext'
25589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590   (eval $ac_try) 2>&5
25591   ac_status=$?
25592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); }; }; then
25594   eval "$as_ac_var=yes"
25595 else
25596   echo "$as_me: failed program was:" >&5
25597 sed 's/^/| /' conftest.$ac_ext >&5
25598
25599 eval "$as_ac_var=no"
25600 fi
25601 rm -f conftest.err conftest.$ac_objext \
25602       conftest$ac_exeext conftest.$ac_ext
25603 fi
25604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25606 if test `eval echo '${'$as_ac_var'}'` = yes; then
25607   cat >>confdefs.h <<_ACEOF
25608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25609 _ACEOF
25610  cat >>confdefs.h <<\_ACEOF
25611 #define BX_HAVE_STRTOUQ 1
25612 _ACEOF
25613
25614 fi
25615 done
25616
25617
25618 for ac_func in strdup
25619 do
25620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25621 echo "$as_me:$LINENO: checking for $ac_func" >&5
25622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25623 if eval "test \"\${$as_ac_var+set}\" = set"; then
25624   echo $ECHO_N "(cached) $ECHO_C" >&6
25625 else
25626   cat >conftest.$ac_ext <<_ACEOF
25627 /* confdefs.h.  */
25628 _ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h.  */
25632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25634 #define $ac_func innocuous_$ac_func
25635
25636 /* System header to define __stub macros and hopefully few prototypes,
25637     which can conflict with char $ac_func (); below.
25638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25639     <limits.h> exists even on freestanding compilers.  */
25640
25641 #ifdef __STDC__
25642 # include <limits.h>
25643 #else
25644 # include <assert.h>
25645 #endif
25646
25647 #undef $ac_func
25648
25649 /* Override any gcc2 internal prototype to avoid an error.  */
25650 #ifdef __cplusplus
25651 extern "C"
25652 {
25653 #endif
25654 /* We use char because int might match the return type of a gcc2
25655    builtin and then its argument prototype would still apply.  */
25656 char $ac_func ();
25657 /* The GNU C library defines this for functions which it implements
25658     to always fail with ENOSYS.  Some functions are actually named
25659     something starting with __ and the normal name is an alias.  */
25660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25661 choke me
25662 #else
25663 char (*f) () = $ac_func;
25664 #endif
25665 #ifdef __cplusplus
25666 }
25667 #endif
25668
25669 int
25670 main ()
25671 {
25672 return f != $ac_func;
25673   ;
25674   return 0;
25675 }
25676 _ACEOF
25677 rm -f conftest.$ac_objext conftest$ac_exeext
25678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25679   (eval $ac_link) 2>conftest.er1
25680   ac_status=$?
25681   grep -v '^ *+' conftest.er1 >conftest.err
25682   rm -f conftest.er1
25683   cat conftest.err >&5
25684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685   (exit $ac_status); } &&
25686          { ac_try='test -z "$ac_c_werror_flag"
25687                          || test ! -s conftest.err'
25688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689   (eval $ac_try) 2>&5
25690   ac_status=$?
25691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692   (exit $ac_status); }; } &&
25693          { ac_try='test -s conftest$ac_exeext'
25694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25695   (eval $ac_try) 2>&5
25696   ac_status=$?
25697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698   (exit $ac_status); }; }; then
25699   eval "$as_ac_var=yes"
25700 else
25701   echo "$as_me: failed program was:" >&5
25702 sed 's/^/| /' conftest.$ac_ext >&5
25703
25704 eval "$as_ac_var=no"
25705 fi
25706 rm -f conftest.err conftest.$ac_objext \
25707       conftest$ac_exeext conftest.$ac_ext
25708 fi
25709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25711 if test `eval echo '${'$as_ac_var'}'` = yes; then
25712   cat >>confdefs.h <<_ACEOF
25713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25714 _ACEOF
25715  cat >>confdefs.h <<\_ACEOF
25716 #define BX_HAVE_STRDUP 1
25717 _ACEOF
25718
25719 fi
25720 done
25721
25722
25723 echo "$as_me:$LINENO: checking if compiler allows empty structs" >&5
25724 echo $ECHO_N "checking if compiler allows empty structs... $ECHO_C" >&6
25725 cat >conftest.$ac_ext <<_ACEOF
25726 /* confdefs.h.  */
25727 _ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h.  */
25731
25732 int
25733 main ()
25734 {
25735 typedef struct { } junk;
25736   ;
25737   return 0;
25738 }
25739 _ACEOF
25740 rm -f conftest.$ac_objext
25741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25742   (eval $ac_compile) 2>conftest.er1
25743   ac_status=$?
25744   grep -v '^ *+' conftest.er1 >conftest.err
25745   rm -f conftest.er1
25746   cat conftest.err >&5
25747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748   (exit $ac_status); } &&
25749          { ac_try='test -z "$ac_c_werror_flag"
25750                          || test ! -s conftest.err'
25751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25752   (eval $ac_try) 2>&5
25753   ac_status=$?
25754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755   (exit $ac_status); }; } &&
25756          { ac_try='test -s conftest.$ac_objext'
25757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758   (eval $ac_try) 2>&5
25759   ac_status=$?
25760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761   (exit $ac_status); }; }; then
25762   echo "$as_me:$LINENO: result: yes" >&5
25763 echo "${ECHO_T}yes" >&6
25764 else
25765   echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25767
25768
25769       cat >>confdefs.h <<\_ACEOF
25770 #define BX_NO_EMPTY_STRUCTS 1
25771 _ACEOF
25772
25773       echo "$as_me:$LINENO: result: no" >&5
25774 echo "${ECHO_T}no" >&6
25775
25776 fi
25777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25778
25779 echo "$as_me:$LINENO: checking if compiler allows __attribute__" >&5
25780 echo $ECHO_N "checking if compiler allows __attribute__... $ECHO_C" >&6
25781 cat >conftest.$ac_ext <<_ACEOF
25782 /* confdefs.h.  */
25783 _ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h.  */
25787
25788 int
25789 main ()
25790 {
25791 typedef struct { } __attribute__ ((packed)) junk;
25792   ;
25793   return 0;
25794 }
25795 _ACEOF
25796 rm -f conftest.$ac_objext
25797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25798   (eval $ac_compile) 2>conftest.er1
25799   ac_status=$?
25800   grep -v '^ *+' conftest.er1 >conftest.err
25801   rm -f conftest.er1
25802   cat conftest.err >&5
25803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804   (exit $ac_status); } &&
25805          { ac_try='test -z "$ac_c_werror_flag"
25806                          || test ! -s conftest.err'
25807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808   (eval $ac_try) 2>&5
25809   ac_status=$?
25810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811   (exit $ac_status); }; } &&
25812          { ac_try='test -s conftest.$ac_objext'
25813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814   (eval $ac_try) 2>&5
25815   ac_status=$?
25816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817   (exit $ac_status); }; }; then
25818   echo "$as_me:$LINENO: result: yes" >&5
25819 echo "${ECHO_T}yes" >&6
25820 else
25821   echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25823
25824
25825       echo "$as_me:$LINENO: result: no" >&5
25826 echo "${ECHO_T}no" >&6
25827       cat >>confdefs.h <<\_ACEOF
25828 #define BX_NO_ATTRIBUTES 1
25829 _ACEOF
25830
25831
25832 fi
25833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25834
25835
25836
25837 ac_ext=cc
25838 ac_cpp='$CXXCPP $CPPFLAGS'
25839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25842
25843 echo "$as_me:$LINENO: checking for hash_map.h" >&5
25844 echo $ECHO_N "checking for hash_map.h... $ECHO_C" >&6
25845 cat >conftest.$ac_ext <<_ACEOF
25846 /* confdefs.h.  */
25847 _ACEOF
25848 cat confdefs.h >>conftest.$ac_ext
25849 cat >>conftest.$ac_ext <<_ACEOF
25850 /* end confdefs.h.  */
25851 #include <hash_map.h>
25852 int
25853 main ()
25854 {
25855
25856   ;
25857   return 0;
25858 }
25859 _ACEOF
25860 rm -f conftest.$ac_objext
25861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25862   (eval $ac_compile) 2>conftest.er1
25863   ac_status=$?
25864   grep -v '^ *+' conftest.er1 >conftest.err
25865   rm -f conftest.er1
25866   cat conftest.err >&5
25867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); } &&
25869          { ac_try='test -z "$ac_cxx_werror_flag"
25870                          || test ! -s conftest.err'
25871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872   (eval $ac_try) 2>&5
25873   ac_status=$?
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); }; } &&
25876          { ac_try='test -s conftest.$ac_objext'
25877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25878   (eval $ac_try) 2>&5
25879   ac_status=$?
25880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881   (exit $ac_status); }; }; then
25882
25883      echo "$as_me:$LINENO: result: yes" >&5
25884 echo "${ECHO_T}yes" >&6
25885      cat >>confdefs.h <<\_ACEOF
25886 #define BX_HAVE_HASH_MAP 1
25887 _ACEOF
25888
25889
25890 else
25891   echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25893
25894 echo "$as_me:$LINENO: result: no" >&5
25895 echo "${ECHO_T}no" >&6
25896 fi
25897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25898 ac_ext=c
25899 ac_cpp='$CPP $CPPFLAGS'
25900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25903
25904
25905 echo "$as_me:$LINENO: checking for number of processors" >&5
25906 echo $ECHO_N "checking for number of processors... $ECHO_C" >&6
25907 # Check whether --enable-processors or --disable-processors was given.
25908 if test "${enable_processors+set}" = set; then
25909   enableval="$enable_processors"
25910   case "$enableval" in
25911      1)
25912        echo "$as_me:$LINENO: result: 1" >&5
25913 echo "${ECHO_T}1" >&6
25914        cat >>confdefs.h <<\_ACEOF
25915 #define BX_SMP_PROCESSORS 1
25916 _ACEOF
25917
25918        cat >>confdefs.h <<\_ACEOF
25919 #define BX_BOOTSTRAP_PROCESSOR 0
25920 _ACEOF
25921
25922        cat >>confdefs.h <<\_ACEOF
25923 #define BX_IOAPIC_DEFAULT_ID 1
25924 _ACEOF
25925
25926        ;;
25927      2)
25928        echo "$as_me:$LINENO: result: 2" >&5
25929 echo "${ECHO_T}2" >&6
25930        cat >>confdefs.h <<\_ACEOF
25931 #define BX_SMP_PROCESSORS 2
25932 _ACEOF
25933
25934        cat >>confdefs.h <<\_ACEOF
25935 #define BX_BOOTSTRAP_PROCESSOR 0
25936 _ACEOF
25937
25938        cat >>confdefs.h <<\_ACEOF
25939 #define BX_IOAPIC_DEFAULT_ID 2
25940 _ACEOF
25941
25942        cat >>confdefs.h <<\_ACEOF
25943 #define BX_USE_CPU_SMF 0
25944 _ACEOF
25945
25946        ;;
25947      4)
25948        echo "$as_me:$LINENO: result: 4" >&5
25949 echo "${ECHO_T}4" >&6
25950        cat >>confdefs.h <<\_ACEOF
25951 #define BX_SMP_PROCESSORS 4
25952 _ACEOF
25953
25954        cat >>confdefs.h <<\_ACEOF
25955 #define BX_BOOTSTRAP_PROCESSOR 2
25956 _ACEOF
25957
25958        cat >>confdefs.h <<\_ACEOF
25959 #define BX_IOAPIC_DEFAULT_ID 4
25960 _ACEOF
25961
25962        cat >>confdefs.h <<\_ACEOF
25963 #define BX_USE_CPU_SMF 0
25964 _ACEOF
25965
25966        ;;
25967      *)
25968        echo " "
25969        echo "WARNING: processors != 1,2,4 can work, but you need to modify rombios.c manually"
25970        echo "$as_me:$LINENO: result: $enable_val" >&5
25971 echo "${ECHO_T}$enable_val" >&6
25972        cat >>confdefs.h <<\_ACEOF
25973 #define BX_SMP_PROCESSORS $enable_val
25974 _ACEOF
25975
25976        cat >>confdefs.h <<\_ACEOF
25977 #define BX_BOOTSTRAP_PROCESSOR 0
25978 _ACEOF
25979
25980        cat >>confdefs.h <<\_ACEOF
25981 #define BX_IOAPIC_DEFAULT_ID $enable_val
25982 _ACEOF
25983
25984        cat >>confdefs.h <<\_ACEOF
25985 #define BX_USE_CPU_SMF 0
25986 _ACEOF
25987
25988        ;;
25989    esac
25990    bx_procs="$enableval"
25991
25992 else
25993
25994      echo "$as_me:$LINENO: result: 1" >&5
25995 echo "${ECHO_T}1" >&6
25996      cat >>confdefs.h <<\_ACEOF
25997 #define BX_SMP_PROCESSORS 1
25998 _ACEOF
25999
26000      cat >>confdefs.h <<\_ACEOF
26001 #define BX_BOOTSTRAP_PROCESSOR 0
26002 _ACEOF
26003
26004      cat >>confdefs.h <<\_ACEOF
26005 #define BX_IOAPIC_DEFAULT_ID 1
26006 _ACEOF
26007
26008      bx_procs=1
26009
26010
26011 fi;
26012
26013 echo "$as_me:$LINENO: checking if compiler allows blank labels" >&5
26014 echo $ECHO_N "checking if compiler allows blank labels... $ECHO_C" >&6
26015 cat >conftest.$ac_ext <<_ACEOF
26016 /* confdefs.h.  */
26017 _ACEOF
26018 cat confdefs.h >>conftest.$ac_ext
26019 cat >>conftest.$ac_ext <<_ACEOF
26020 /* end confdefs.h.  */
26021
26022 int
26023 main ()
26024 {
26025  { label1: }
26026   ;
26027   return 0;
26028 }
26029 _ACEOF
26030 rm -f conftest.$ac_objext
26031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26032   (eval $ac_compile) 2>conftest.er1
26033   ac_status=$?
26034   grep -v '^ *+' conftest.er1 >conftest.err
26035   rm -f conftest.er1
26036   cat conftest.err >&5
26037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038   (exit $ac_status); } &&
26039          { ac_try='test -z "$ac_c_werror_flag"
26040                          || test ! -s conftest.err'
26041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042   (eval $ac_try) 2>&5
26043   ac_status=$?
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); }; } &&
26046          { ac_try='test -s conftest.$ac_objext'
26047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048   (eval $ac_try) 2>&5
26049   ac_status=$?
26050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); }; }; then
26052   echo "$as_me:$LINENO: result: yes" >&5
26053 echo "${ECHO_T}yes" >&6
26054 else
26055   echo "$as_me: failed program was:" >&5
26056 sed 's/^/| /' conftest.$ac_ext >&5
26057
26058
26059       echo "$as_me:$LINENO: result: no" >&5
26060 echo "${ECHO_T}no" >&6
26061       cat >>confdefs.h <<\_ACEOF
26062 #define BX_NO_BLANK_LABELS 1
26063 _ACEOF
26064
26065
26066 fi
26067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26068
26069 echo "$as_me:$LINENO: checking if compiler allows LL for 64-bit constants" >&5
26070 echo $ECHO_N "checking if compiler allows LL for 64-bit constants... $ECHO_C" >&6
26071 cat >conftest.$ac_ext <<_ACEOF
26072 /* confdefs.h.  */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h.  */
26077
26078 int
26079 main ()
26080 {
26081  { 42LL; }
26082   ;
26083   return 0;
26084 }
26085 _ACEOF
26086 rm -f conftest.$ac_objext
26087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26088   (eval $ac_compile) 2>conftest.er1
26089   ac_status=$?
26090   grep -v '^ *+' conftest.er1 >conftest.err
26091   rm -f conftest.er1
26092   cat conftest.err >&5
26093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094   (exit $ac_status); } &&
26095          { ac_try='test -z "$ac_c_werror_flag"
26096                          || test ! -s conftest.err'
26097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098   (eval $ac_try) 2>&5
26099   ac_status=$?
26100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101   (exit $ac_status); }; } &&
26102          { ac_try='test -s conftest.$ac_objext'
26103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104   (eval $ac_try) 2>&5
26105   ac_status=$?
26106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107   (exit $ac_status); }; }; then
26108   echo "$as_me:$LINENO: result: yes" >&5
26109 echo "${ECHO_T}yes" >&6
26110 else
26111   echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26113
26114
26115       echo "$as_me:$LINENO: result: no" >&5
26116 echo "${ECHO_T}no" >&6
26117       cat >>confdefs.h <<\_ACEOF
26118 #define BX_64BIT_CONSTANTS_USE_LL 0
26119 _ACEOF
26120
26121
26122 fi
26123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26124
26125 echo "$as_me:$LINENO: checking for cpu level" >&5
26126 echo $ECHO_N "checking for cpu level... $ECHO_C" >&6
26127 # Check whether --enable-cpu-level or --disable-cpu-level was given.
26128 if test "${enable_cpu_level+set}" = set; then
26129   enableval="$enable_cpu_level"
26130   case "$enableval" in
26131      3)
26132        echo "$as_me:$LINENO: result: 3" >&5
26133 echo "${ECHO_T}3" >&6
26134        cat >>confdefs.h <<\_ACEOF
26135 #define BX_CPU_LEVEL 3
26136 _ACEOF
26137
26138        cat >>confdefs.h <<\_ACEOF
26139 #define BX_CPU_LEVEL_HACKED 3
26140 _ACEOF
26141
26142        ;;
26143      4)
26144        echo "$as_me:$LINENO: result: 4" >&5
26145 echo "${ECHO_T}4" >&6
26146        cat >>confdefs.h <<\_ACEOF
26147 #define BX_CPU_LEVEL 4
26148 _ACEOF
26149
26150        cat >>confdefs.h <<\_ACEOF
26151 #define BX_CPU_LEVEL_HACKED 4
26152 _ACEOF
26153
26154        ;;
26155      5)
26156        echo "$as_me:$LINENO: result: 5" >&5
26157 echo "${ECHO_T}5" >&6
26158        cat >>confdefs.h <<\_ACEOF
26159 #define BX_CPU_LEVEL 5
26160 _ACEOF
26161
26162        cat >>confdefs.h <<\_ACEOF
26163 #define BX_CPU_LEVEL_HACKED 5
26164 _ACEOF
26165
26166        ;;
26167      6)
26168        echo "$as_me:$LINENO: result: 6" >&5
26169 echo "${ECHO_T}6" >&6
26170        cat >>confdefs.h <<\_ACEOF
26171 #define BX_CPU_LEVEL 6
26172 _ACEOF
26173
26174        cat >>confdefs.h <<\_ACEOF
26175 #define BX_CPU_LEVEL_HACKED 6
26176 _ACEOF
26177
26178        ;;
26179      *)
26180        echo " "
26181        echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
26182        exit 1
26183        ;;
26184    esac
26185    bx_cpu_level=$enableval
26186    if test "$bx_procs" -gt 1 -a "$enableval" -lt 6; then
26187      echo "ERROR: with >1 processor, use --enable-cpu-level=6"
26188      exit 1
26189    fi
26190
26191 else
26192
26193     # for multiprocessors, cpu level must be 6
26194     if test "$bx_procs" -gt 1; then
26195       echo "$as_me:$LINENO: result: 6" >&5
26196 echo "${ECHO_T}6" >&6
26197       cat >>confdefs.h <<\_ACEOF
26198 #define BX_CPU_LEVEL 6
26199 _ACEOF
26200
26201       cat >>confdefs.h <<\_ACEOF
26202 #define BX_CPU_LEVEL_HACKED 6
26203 _ACEOF
26204
26205       bx_cpu_level=6
26206     else
26207       echo "$as_me:$LINENO: result: 5" >&5
26208 echo "${ECHO_T}5" >&6
26209       cat >>confdefs.h <<\_ACEOF
26210 #define BX_CPU_LEVEL 5
26211 _ACEOF
26212
26213       cat >>confdefs.h <<\_ACEOF
26214 #define BX_CPU_LEVEL_HACKED 5
26215 _ACEOF
26216
26217       bx_cpu_level=5
26218     fi
26219
26220
26221 fi;
26222
26223
26224
26225 echo "$as_me:$LINENO: checking for dynamic translation support" >&5
26226 echo $ECHO_N "checking for dynamic translation support... $ECHO_C" >&6
26227 # Check whether --enable-dynamic or --disable-dynamic was given.
26228 if test "${enable_dynamic+set}" = set; then
26229   enableval="$enable_dynamic"
26230   if test "$enableval" = no; then
26231      echo "$as_me:$LINENO: result: no" >&5
26232 echo "${ECHO_T}no" >&6
26233      cat >>confdefs.h <<\_ACEOF
26234 #define BX_DYNAMIC_TRANSLATION 0
26235 _ACEOF
26236
26237      DYNAMIC_VAR=''
26238      AS_DYNAMIC_OBJS=''
26239      AS_DYNAMIC_INCS=''
26240    else
26241      if test "$enableval" = yes; then
26242        echo " "
26243        echo \!\!\!Error\!\!\!
26244        echo "You must specify a CPU type to dynamic-translation option"
26245        echo \!\!\!Error\!\!\!
26246        exit 1
26247      fi
26248      case "$enableval" in
26249        i386)
26250          cat >>confdefs.h <<\_ACEOF
26251 #define BX_DYNAMIC_CPU_I386 1
26252 _ACEOF
26253
26254          AS_DYNAMIC_OBJS='$(X86_OBJS)'
26255          AS_DYNAMIC_INCS='$(X86_H)'
26256          ;;
26257        sparc)
26258          cat >>confdefs.h <<\_ACEOF
26259 #define BX_DYNAMIC_CPU_SPARC 1
26260 _ACEOF
26261
26262          AS_DYNAMIC_OBJS='$(SPARC_OBJS).o'
26263          AS_DYNAMIC_INCS='$(SPARC_H)'
26264          ;;
26265        *)
26266          echo " "
26267          echo \!\!\!Error\!\!\!
26268          echo "Sorry, dynamic translation is not yet available on your platform"
26269          echo \!\!\!Error\!\!\!
26270          AS_DYNAMIC_OBJS=''
26271          AS_DYNAMIC_INCS=''
26272          exit 1 ;;
26273      esac
26274      echo "$as_me:$LINENO: result: yes" >&5
26275 echo "${ECHO_T}yes" >&6
26276      cat >>confdefs.h <<\_ACEOF
26277 #define BX_DYNAMIC_TRANSLATION 1
26278 _ACEOF
26279
26280      DYNAMIC_VAR='$(DYNAMIC_LIB)'
26281    fi
26282 else
26283
26284     echo "$as_me:$LINENO: result: no" >&5
26285 echo "${ECHO_T}no" >&6
26286     cat >>confdefs.h <<\_ACEOF
26287 #define BX_DYNAMIC_TRANSLATION 0
26288 _ACEOF
26289
26290     DYNAMIC_VAR=''
26291     AS_DYNAMIC_OBJS=''
26292     AS_DYNAMIC_INCS=''
26293
26294
26295 fi;
26296
26297
26298
26299
26300 echo "$as_me:$LINENO: checking for APIC support" >&5
26301 echo $ECHO_N "checking for APIC support... $ECHO_C" >&6
26302 # Check whether --enable-apic or --disable-apic was given.
26303 if test "${enable_apic+set}" = set; then
26304   enableval="$enable_apic"
26305   if test "$enableval" = yes; then
26306     echo "$as_me:$LINENO: result: yes" >&5
26307 echo "${ECHO_T}yes" >&6
26308     cat >>confdefs.h <<\_ACEOF
26309 #define BX_SUPPORT_APIC 1
26310 _ACEOF
26311
26312     IOAPIC_OBJS='ioapic.o'
26313     APIC_OBJS='apic.o'
26314    else
26315     echo "$as_me:$LINENO: result: no" >&5
26316 echo "${ECHO_T}no" >&6
26317     if test "$bx_procs" -gt 1; then
26318       echo "Number of processors = $bx_procs"
26319       echo "ERROR: With processors > 1 you must use --enable-apic"
26320       exit 1
26321     fi
26322     cat >>confdefs.h <<\_ACEOF
26323 #define BX_SUPPORT_APIC 0
26324 _ACEOF
26325
26326     IOAPIC_OBJS=''
26327     APIC_OBJS=''
26328    fi
26329
26330 else
26331
26332     if test "$bx_procs" -gt 1 -o "$bx_cpu_level" -gt 5; then
26333       # enable APIC by default, if processors>1 or if cpulevel>5
26334       echo "$as_me:$LINENO: result: yes" >&5
26335 echo "${ECHO_T}yes" >&6
26336       cat >>confdefs.h <<\_ACEOF
26337 #define BX_SUPPORT_APIC 1
26338 _ACEOF
26339
26340       IOAPIC_OBJS='ioapic.o'
26341       APIC_OBJS='apic.o'
26342     else
26343       echo "$as_me:$LINENO: result: no" >&5
26344 echo "${ECHO_T}no" >&6
26345       cat >>confdefs.h <<\_ACEOF
26346 #define BX_SUPPORT_APIC 0
26347 _ACEOF
26348
26349       IOAPIC_OBJS=''
26350       APIC_OBJS=''
26351      fi
26352
26353
26354 fi;
26355
26356
26357
26358 echo "$as_me:$LINENO: checking for split hard disk image support" >&5
26359 echo $ECHO_N "checking for split hard disk image support... $ECHO_C" >&6
26360 # Check whether --enable-split-hd or --disable-split-hd was given.
26361 if test "${enable_split_hd+set}" = set; then
26362   enableval="$enable_split_hd"
26363   if test "$enableval" = yes; then
26364     echo "$as_me:$LINENO: result: yes" >&5
26365 echo "${ECHO_T}yes" >&6
26366     cat >>confdefs.h <<\_ACEOF
26367 #define BX_SPLIT_HD_SUPPORT 1
26368 _ACEOF
26369
26370    else
26371     echo "$as_me:$LINENO: result: no" >&5
26372 echo "${ECHO_T}no" >&6
26373     cat >>confdefs.h <<\_ACEOF
26374 #define BX_SPLIT_HD_SUPPORT 0
26375 _ACEOF
26376
26377    fi
26378 else
26379
26380     echo "$as_me:$LINENO: result: yes" >&5
26381 echo "${ECHO_T}yes" >&6
26382     cat >>confdefs.h <<\_ACEOF
26383 #define BX_SPLIT_HD_SUPPORT 1
26384 _ACEOF
26385
26386
26387
26388 fi;
26389
26390
26391 echo "$as_me:$LINENO: checking for NE2000 support" >&5
26392 echo $ECHO_N "checking for NE2000 support... $ECHO_C" >&6
26393 # Check whether --enable-ne2000 or --disable-ne2000 was given.
26394 if test "${enable_ne2000+set}" = set; then
26395   enableval="$enable_ne2000"
26396   if test "$enableval" = yes; then
26397     echo "$as_me:$LINENO: result: yes" >&5
26398 echo "${ECHO_T}yes" >&6
26399     cat >>confdefs.h <<\_ACEOF
26400 #define BX_NE2K_SUPPORT 1
26401 _ACEOF
26402
26403     NE2K_OBJS='ne2k.o eth.o eth_null.o'
26404     if test "${ac_cv_header_net_bpf_h+set}" = set; then
26405   echo "$as_me:$LINENO: checking for net/bpf.h" >&5
26406 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6
26407 if test "${ac_cv_header_net_bpf_h+set}" = set; then
26408   echo $ECHO_N "(cached) $ECHO_C" >&6
26409 fi
26410 echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
26411 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6
26412 else
26413   # Is the header compilable?
26414 echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
26415 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6
26416 cat >conftest.$ac_ext <<_ACEOF
26417 /* confdefs.h.  */
26418 _ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h.  */
26422 $ac_includes_default
26423 #include <net/bpf.h>
26424 _ACEOF
26425 rm -f conftest.$ac_objext
26426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26427   (eval $ac_compile) 2>conftest.er1
26428   ac_status=$?
26429   grep -v '^ *+' conftest.er1 >conftest.err
26430   rm -f conftest.er1
26431   cat conftest.err >&5
26432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433   (exit $ac_status); } &&
26434          { ac_try='test -z "$ac_c_werror_flag"
26435                          || test ! -s conftest.err'
26436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26437   (eval $ac_try) 2>&5
26438   ac_status=$?
26439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440   (exit $ac_status); }; } &&
26441          { ac_try='test -s conftest.$ac_objext'
26442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26443   (eval $ac_try) 2>&5
26444   ac_status=$?
26445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446   (exit $ac_status); }; }; then
26447   ac_header_compiler=yes
26448 else
26449   echo "$as_me: failed program was:" >&5
26450 sed 's/^/| /' conftest.$ac_ext >&5
26451
26452 ac_header_compiler=no
26453 fi
26454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26456 echo "${ECHO_T}$ac_header_compiler" >&6
26457
26458 # Is the header present?
26459 echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
26460 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6
26461 cat >conftest.$ac_ext <<_ACEOF
26462 /* confdefs.h.  */
26463 _ACEOF
26464 cat confdefs.h >>conftest.$ac_ext
26465 cat >>conftest.$ac_ext <<_ACEOF
26466 /* end confdefs.h.  */
26467 #include <net/bpf.h>
26468 _ACEOF
26469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26470   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26471   ac_status=$?
26472   grep -v '^ *+' conftest.er1 >conftest.err
26473   rm -f conftest.er1
26474   cat conftest.err >&5
26475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476   (exit $ac_status); } >/dev/null; then
26477   if test -s conftest.err; then
26478     ac_cpp_err=$ac_c_preproc_warn_flag
26479     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26480   else
26481     ac_cpp_err=
26482   fi
26483 else
26484   ac_cpp_err=yes
26485 fi
26486 if test -z "$ac_cpp_err"; then
26487   ac_header_preproc=yes
26488 else
26489   echo "$as_me: failed program was:" >&5
26490 sed 's/^/| /' conftest.$ac_ext >&5
26491
26492   ac_header_preproc=no
26493 fi
26494 rm -f conftest.err conftest.$ac_ext
26495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26496 echo "${ECHO_T}$ac_header_preproc" >&6
26497
26498 # So?  What about this header?
26499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26500   yes:no: )
26501     { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
26502 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26503     { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
26504 echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
26505     ac_header_preproc=yes
26506     ;;
26507   no:yes:* )
26508     { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
26509 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
26510     { echo "$as_me:$LINENO: WARNING: net/bpf.h:     check for missing prerequisite headers?" >&5
26511 echo "$as_me: WARNING: net/bpf.h:     check for missing prerequisite headers?" >&2;}
26512     { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
26513 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
26514     { echo "$as_me:$LINENO: WARNING: net/bpf.h:     section \"Present But Cannot Be Compiled\"" >&5
26515 echo "$as_me: WARNING: net/bpf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26516     { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
26517 echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
26518     { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
26519 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
26520     (
26521       cat <<\_ASBOX
26522 ## ------------------------------------------ ##
26523 ## Report this to the AC_PACKAGE_NAME lists.  ##
26524 ## ------------------------------------------ ##
26525 _ASBOX
26526     ) |
26527       sed "s/^/$as_me: WARNING:     /" >&2
26528     ;;
26529 esac
26530 echo "$as_me:$LINENO: checking for net/bpf.h" >&5
26531 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6
26532 if test "${ac_cv_header_net_bpf_h+set}" = set; then
26533   echo $ECHO_N "(cached) $ECHO_C" >&6
26534 else
26535   ac_cv_header_net_bpf_h=$ac_header_preproc
26536 fi
26537 echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
26538 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6
26539
26540 fi
26541 if test $ac_cv_header_net_bpf_h = yes; then
26542   NE2K_OBJS="$NE2K_OBJS eth_fbsd.o"
26543 fi
26544
26545
26546    else
26547     echo "$as_me:$LINENO: result: no" >&5
26548 echo "${ECHO_T}no" >&6
26549     cat >>confdefs.h <<\_ACEOF
26550 #define BX_NE2K_SUPPORT 0
26551 _ACEOF
26552
26553     NE2K_OBJS=''
26554    fi
26555 else
26556
26557     echo "$as_me:$LINENO: result: no" >&5
26558 echo "${ECHO_T}no" >&6
26559     cat >>confdefs.h <<\_ACEOF
26560 #define BX_NE2K_SUPPORT 0
26561 _ACEOF
26562
26563     NE2K_OBJS=''
26564
26565
26566 fi;
26567
26568
26569
26570 echo "$as_me:$LINENO: checking for i440FX PCI support" >&5
26571 echo $ECHO_N "checking for i440FX PCI support... $ECHO_C" >&6
26572 # Check whether --enable-pci or --disable-pci was given.
26573 if test "${enable_pci+set}" = set; then
26574   enableval="$enable_pci"
26575   if test "$enableval" = yes; then
26576     echo "$as_me:$LINENO: result: yes" >&5
26577 echo "${ECHO_T}yes" >&6
26578     cat >>confdefs.h <<\_ACEOF
26579 #define BX_PCI_SUPPORT 1
26580 _ACEOF
26581
26582     PCI_OBJ='pci.o'
26583    else
26584     echo "$as_me:$LINENO: result: no" >&5
26585 echo "${ECHO_T}no" >&6
26586     cat >>confdefs.h <<\_ACEOF
26587 #define BX_PCI_SUPPORT 0
26588 _ACEOF
26589
26590     PCI_OBJ=''
26591    fi
26592 else
26593
26594     echo "$as_me:$LINENO: result: no" >&5
26595 echo "${ECHO_T}no" >&6
26596     cat >>confdefs.h <<\_ACEOF
26597 #define BX_PCI_SUPPORT 0
26598 _ACEOF
26599
26600     PCI_OBJ=''
26601
26602
26603 fi;
26604
26605
26606
26607 echo "$as_me:$LINENO: checking for port e9 hack" >&5
26608 echo $ECHO_N "checking for port e9 hack... $ECHO_C" >&6
26609 # Check whether --enable-port-e9-hack or --disable-port-e9-hack was given.
26610 if test "${enable_port_e9_hack+set}" = set; then
26611   enableval="$enable_port_e9_hack"
26612   if test "$enableval" = yes; then
26613     echo "$as_me:$LINENO: result: yes" >&5
26614 echo "${ECHO_T}yes" >&6
26615     cat >>confdefs.h <<\_ACEOF
26616 #define BX_PORT_E9_HACK 1
26617 _ACEOF
26618
26619    else
26620     echo "$as_me:$LINENO: result: no" >&5
26621 echo "${ECHO_T}no" >&6
26622     cat >>confdefs.h <<\_ACEOF
26623 #define BX_PORT_E9_HACK 0
26624 _ACEOF
26625
26626    fi
26627 else
26628
26629     echo "$as_me:$LINENO: result: no" >&5
26630 echo "${ECHO_T}no" >&6
26631     cat >>confdefs.h <<\_ACEOF
26632 #define BX_PORT_E9_HACK 0
26633 _ACEOF
26634
26635
26636
26637 fi;
26638
26639
26640 echo "$as_me:$LINENO: checking for use of .cpp as suffix" >&5
26641 echo $ECHO_N "checking for use of .cpp as suffix... $ECHO_C" >&6
26642 # Check whether --enable-cpp or --disable-cpp was given.
26643 if test "${enable_cpp+set}" = set; then
26644   enableval="$enable_cpp"
26645   if test "$enableval" = yes; then
26646     echo "$as_me:$LINENO: result: yes" >&5
26647 echo "${ECHO_T}yes" >&6
26648     SUFFIX_LINE='.SUFFIXES: .cpp'
26649     CPP_SUFFIX='cpp'
26650    else
26651     echo "$as_me:$LINENO: result: no" >&5
26652 echo "${ECHO_T}no" >&6
26653     SUFFIX_LINE='.SUFFIXES: .cc'
26654     CPP_SUFFIX='cc'
26655    fi
26656 else
26657
26658     echo "$as_me:$LINENO: result: no" >&5
26659 echo "${ECHO_T}no" >&6
26660     SUFFIX_LINE='.SUFFIXES: .cc'
26661     CPP_SUFFIX='cc'
26662
26663
26664 fi;
26665
26666
26667
26668 if test "$enable_cpp" = yes; then
26669   echo "moving .cc source files to .cpp"
26670   sourcefiles=`find . -name "*.cc" -print`
26671   if test "$sourcefiles" != ""; then
26672     for ccname in $sourcefiles
26673     do
26674       cppname=`echo $ccname | sed -e "s/\.cc$/.cpp/"`
26675       echo "mv $ccname $cppname"
26676       mv   $ccname $cppname
26677     done
26678   else
26679     echo "no more .cc source files to rename"
26680   fi
26681 fi
26682
26683
26684 echo "$as_me:$LINENO: checking for Bochs internal debugger support" >&5
26685 echo $ECHO_N "checking for Bochs internal debugger support... $ECHO_C" >&6
26686 # Check whether --enable-debugger or --disable-debugger was given.
26687 if test "${enable_debugger+set}" = set; then
26688   enableval="$enable_debugger"
26689   if test "$enableval" = yes; then
26690     echo "$as_me:$LINENO: result: yes" >&5
26691 echo "${ECHO_T}yes" >&6
26692     cat >>confdefs.h <<\_ACEOF
26693 #define BX_DEBUGGER 1
26694 _ACEOF
26695
26696     DEBUGGER_VAR='$(DEBUGGER_LIB)'
26697     bx_debugger=1
26698    else
26699     echo "$as_me:$LINENO: result: no" >&5
26700 echo "${ECHO_T}no" >&6
26701     cat >>confdefs.h <<\_ACEOF
26702 #define BX_DEBUGGER 0
26703 _ACEOF
26704
26705     DEBUGGER_VAR=''
26706     bx_debugger=0
26707    fi
26708
26709 else
26710
26711     echo "$as_me:$LINENO: result: no" >&5
26712 echo "${ECHO_T}no" >&6
26713     cat >>confdefs.h <<\_ACEOF
26714 #define BX_DEBUGGER 0
26715 _ACEOF
26716
26717     DEBUGGER_VAR=''
26718     bx_debugger=0
26719
26720
26721 fi;
26722
26723
26724 echo "$as_me:$LINENO: checking for disassembler support" >&5
26725 echo $ECHO_N "checking for disassembler support... $ECHO_C" >&6
26726 # Check whether --enable-disasm or --disable-disasm was given.
26727 if test "${enable_disasm+set}" = set; then
26728   enableval="$enable_disasm"
26729   if test "$enableval" = yes; then
26730     echo "$as_me:$LINENO: result: yes" >&5
26731 echo "${ECHO_T}yes" >&6
26732     cat >>confdefs.h <<\_ACEOF
26733 #define BX_DISASM 1
26734 _ACEOF
26735
26736     DISASM_VAR='$(DISASM_LIB)'
26737    else
26738     echo "$as_me:$LINENO: result: no" >&5
26739 echo "${ECHO_T}no" >&6
26740     if test "$bx_debugger" = 1; then
26741       echo "ERROR: debugger is enabled, so --enable-disasm is required"
26742       exit 1
26743     fi
26744     cat >>confdefs.h <<\_ACEOF
26745 #define BX_DISASM 0
26746 _ACEOF
26747
26748     DISASM_VAR=''
26749    fi
26750 else
26751
26752     if test "$bx_debugger" = 1; then
26753       echo "$as_me:$LINENO: result: yes" >&5
26754 echo "${ECHO_T}yes" >&6
26755       cat >>confdefs.h <<\_ACEOF
26756 #define BX_DISASM 1
26757 _ACEOF
26758
26759       DISASM_VAR='$(DISASM_LIB)'
26760     else
26761       echo "$as_me:$LINENO: result: no" >&5
26762 echo "${ECHO_T}no" >&6
26763       cat >>confdefs.h <<\_ACEOF
26764 #define BX_DISASM 0
26765 _ACEOF
26766
26767       DISASM_VAR=''
26768     fi
26769
26770
26771 fi;
26772
26773
26774 echo "$as_me:$LINENO: checking whether to use readline" >&5
26775 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
26776 # Check whether --enable-readline or --disable-readline was given.
26777 if test "${enable_readline+set}" = set; then
26778   enableval="$enable_readline"
26779   if test "$enableval" = yes; then
26780     echo "$as_me:$LINENO: result: yes" >&5
26781 echo "${ECHO_T}yes" >&6
26782      want_readline=yes
26783    else
26784      echo "$as_me:$LINENO: result: no" >&5
26785 echo "${ECHO_T}no" >&6
26786      want_readline=no
26787    fi
26788 else
26789    # default is yes
26790     echo "$as_me:$LINENO: result: yes" >&5
26791 echo "${ECHO_T}yes" >&6
26792     want_readline=yes
26793
26794 fi;
26795
26796
26797 if test "$want_readline" = yes; then
26798   echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
26799 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
26800 if test "${ac_cv_lib_readline_readline+set}" = set; then
26801   echo $ECHO_N "(cached) $ECHO_C" >&6
26802 else
26803   ac_check_lib_save_LIBS=$LIBS
26804 LIBS="-lreadline  $LIBS"
26805 cat >conftest.$ac_ext <<_ACEOF
26806 /* confdefs.h.  */
26807 _ACEOF
26808 cat confdefs.h >>conftest.$ac_ext
26809 cat >>conftest.$ac_ext <<_ACEOF
26810 /* end confdefs.h.  */
26811
26812 /* Override any gcc2 internal prototype to avoid an error.  */
26813 #ifdef __cplusplus
26814 extern "C"
26815 #endif
26816 /* We use char because int might match the return type of a gcc2
26817    builtin and then its argument prototype would still apply.  */
26818 char readline ();
26819 int
26820 main ()
26821 {
26822 readline ();
26823   ;
26824   return 0;
26825 }
26826 _ACEOF
26827 rm -f conftest.$ac_objext conftest$ac_exeext
26828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26829   (eval $ac_link) 2>conftest.er1
26830   ac_status=$?
26831   grep -v '^ *+' conftest.er1 >conftest.err
26832   rm -f conftest.er1
26833   cat conftest.err >&5
26834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835   (exit $ac_status); } &&
26836          { ac_try='test -z "$ac_c_werror_flag"
26837                          || test ! -s conftest.err'
26838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839   (eval $ac_try) 2>&5
26840   ac_status=$?
26841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842   (exit $ac_status); }; } &&
26843          { ac_try='test -s conftest$ac_exeext'
26844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845   (eval $ac_try) 2>&5
26846   ac_status=$?
26847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848   (exit $ac_status); }; }; then
26849   ac_cv_lib_readline_readline=yes
26850 else
26851   echo "$as_me: failed program was:" >&5
26852 sed 's/^/| /' conftest.$ac_ext >&5
26853
26854 ac_cv_lib_readline_readline=no
26855 fi
26856 rm -f conftest.err conftest.$ac_objext \
26857       conftest$ac_exeext conftest.$ac_ext
26858 LIBS=$ac_check_lib_save_LIBS
26859 fi
26860 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
26861 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
26862 if test $ac_cv_lib_readline_readline = yes; then
26863
26864       if test "$bx_debugger" = 1; then
26865         # only add readline library if debugger is on
26866         cat >>confdefs.h <<\_ACEOF
26867 #define HAVE_LIBREADLINE 1
26868 _ACEOF
26869
26870         READLINE_LIB='-lreadline'
26871       fi
26872
26873
26874 fi
26875
26876 fi
26877
26878
26879 if test "${ac_cv_header_readline_history_h+set}" = set; then
26880   echo "$as_me:$LINENO: checking for readline/history.h" >&5
26881 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
26882 if test "${ac_cv_header_readline_history_h+set}" = set; then
26883   echo $ECHO_N "(cached) $ECHO_C" >&6
26884 fi
26885 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
26886 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
26887 else
26888   # Is the header compilable?
26889 echo "$as_me:$LINENO: checking readline/history.h usability" >&5
26890 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
26891 cat >conftest.$ac_ext <<_ACEOF
26892 /* confdefs.h.  */
26893 _ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h.  */
26897 $ac_includes_default
26898 #include <readline/history.h>
26899 _ACEOF
26900 rm -f conftest.$ac_objext
26901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26902   (eval $ac_compile) 2>conftest.er1
26903   ac_status=$?
26904   grep -v '^ *+' conftest.er1 >conftest.err
26905   rm -f conftest.er1
26906   cat conftest.err >&5
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); } &&
26909          { ac_try='test -z "$ac_c_werror_flag"
26910                          || test ! -s conftest.err'
26911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912   (eval $ac_try) 2>&5
26913   ac_status=$?
26914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915   (exit $ac_status); }; } &&
26916          { ac_try='test -s conftest.$ac_objext'
26917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918   (eval $ac_try) 2>&5
26919   ac_status=$?
26920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921   (exit $ac_status); }; }; then
26922   ac_header_compiler=yes
26923 else
26924   echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26926
26927 ac_header_compiler=no
26928 fi
26929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26931 echo "${ECHO_T}$ac_header_compiler" >&6
26932
26933 # Is the header present?
26934 echo "$as_me:$LINENO: checking readline/history.h presence" >&5
26935 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
26936 cat >conftest.$ac_ext <<_ACEOF
26937 /* confdefs.h.  */
26938 _ACEOF
26939 cat confdefs.h >>conftest.$ac_ext
26940 cat >>conftest.$ac_ext <<_ACEOF
26941 /* end confdefs.h.  */
26942 #include <readline/history.h>
26943 _ACEOF
26944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26946   ac_status=$?
26947   grep -v '^ *+' conftest.er1 >conftest.err
26948   rm -f conftest.er1
26949   cat conftest.err >&5
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); } >/dev/null; then
26952   if test -s conftest.err; then
26953     ac_cpp_err=$ac_c_preproc_warn_flag
26954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26955   else
26956     ac_cpp_err=
26957   fi
26958 else
26959   ac_cpp_err=yes
26960 fi
26961 if test -z "$ac_cpp_err"; then
26962   ac_header_preproc=yes
26963 else
26964   echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26966
26967   ac_header_preproc=no
26968 fi
26969 rm -f conftest.err conftest.$ac_ext
26970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26971 echo "${ECHO_T}$ac_header_preproc" >&6
26972
26973 # So?  What about this header?
26974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26975   yes:no: )
26976     { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
26977 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26978     { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
26979 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
26980     ac_header_preproc=yes
26981     ;;
26982   no:yes:* )
26983     { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
26984 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
26985     { echo "$as_me:$LINENO: WARNING: readline/history.h:     check for missing prerequisite headers?" >&5
26986 echo "$as_me: WARNING: readline/history.h:     check for missing prerequisite headers?" >&2;}
26987     { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
26988 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
26989     { echo "$as_me:$LINENO: WARNING: readline/history.h:     section \"Present But Cannot Be Compiled\"" >&5
26990 echo "$as_me: WARNING: readline/history.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26991     { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
26992 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
26993     { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
26994 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
26995     (
26996       cat <<\_ASBOX
26997 ## ------------------------------------------ ##
26998 ## Report this to the AC_PACKAGE_NAME lists.  ##
26999 ## ------------------------------------------ ##
27000 _ASBOX
27001     ) |
27002       sed "s/^/$as_me: WARNING:     /" >&2
27003     ;;
27004 esac
27005 echo "$as_me:$LINENO: checking for readline/history.h" >&5
27006 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
27007 if test "${ac_cv_header_readline_history_h+set}" = set; then
27008   echo $ECHO_N "(cached) $ECHO_C" >&6
27009 else
27010   ac_cv_header_readline_history_h=$ac_header_preproc
27011 fi
27012 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
27013 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
27014
27015 fi
27016 if test $ac_cv_header_readline_history_h = yes; then
27017   cat >>confdefs.h <<\_ACEOF
27018 #define HAVE_READLINE_HISTORY_H 1
27019 _ACEOF
27020
27021
27022 fi
27023
27024
27025
27026
27027 echo "$as_me:$LINENO: checking for loader support" >&5
27028 echo $ECHO_N "checking for loader support... $ECHO_C" >&6
27029 # Check whether --enable-loader or --disable-loader was given.
27030 if test "${enable_loader+set}" = set; then
27031   enableval="$enable_loader"
27032   if test "$enableval" = yes; then
27033     echo "$as_me:$LINENO: result: yes" >&5
27034 echo "${ECHO_T}yes" >&6
27035     cat >>confdefs.h <<\_ACEOF
27036 #define BX_USE_LOADER 1
27037 _ACEOF
27038
27039     BX_LOADER_OBJS='bx_loader.o loader.o'
27040    else
27041     echo "$as_me:$LINENO: result: no" >&5
27042 echo "${ECHO_T}no" >&6
27043     cat >>confdefs.h <<\_ACEOF
27044 #define BX_USE_LOADER 0
27045 _ACEOF
27046
27047     BX_LOADER_OBJS=''
27048    fi
27049 else
27050
27051     echo "$as_me:$LINENO: result: no" >&5
27052 echo "${ECHO_T}no" >&6
27053     cat >>confdefs.h <<\_ACEOF
27054 #define BX_USE_LOADER 0
27055 _ACEOF
27056
27057     BX_LOADER_OBJS=''
27058
27059
27060 fi;
27061
27062
27063
27064
27065 INSTRUMENT_DIR='instrument/stubs'
27066
27067 echo "$as_me:$LINENO: checking for instrumentation support" >&5
27068 echo $ECHO_N "checking for instrumentation support... $ECHO_C" >&6
27069 # Check whether --enable-instrumentation or --disable-instrumentation was given.
27070 if test "${enable_instrumentation+set}" = set; then
27071   enableval="$enable_instrumentation"
27072   if test "$enableval" = yes; then
27073     echo "$as_me:$LINENO: result: yes" >&5
27074 echo "${ECHO_T}yes" >&6
27075     cat >>confdefs.h <<\_ACEOF
27076 #define BX_INSTRUMENTATION 1
27077 _ACEOF
27078
27079     INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
27080    elif test "$enableval" = no; then
27081     echo "$as_me:$LINENO: result: no" >&5
27082 echo "${ECHO_T}no" >&6
27083     cat >>confdefs.h <<\_ACEOF
27084 #define BX_INSTRUMENTATION 0
27085 _ACEOF
27086
27087     INSTRUMENT_VAR=''
27088    else
27089     echo "$as_me:$LINENO: result: yes" >&5
27090 echo "${ECHO_T}yes" >&6
27091     cat >>confdefs.h <<\_ACEOF
27092 #define BX_INSTRUMENTATION 1
27093 _ACEOF
27094
27095     INSTRUMENT_DIR=$enableval
27096     INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
27097    fi
27098 else
27099
27100     echo "$as_me:$LINENO: result: no" >&5
27101 echo "${ECHO_T}no" >&6
27102     cat >>confdefs.h <<\_ACEOF
27103 #define BX_INSTRUMENTATION 0
27104 _ACEOF
27105
27106     INSTRUMENT_VAR=''
27107
27108
27109 fi;
27110
27111
27112
27113 # Check whether --enable-simid or --disable-simid was given.
27114 if test "${enable_simid+set}" = set; then
27115   enableval="$enable_simid"
27116   if test "$enableval" = yes; then
27117     cat >>confdefs.h <<\_ACEOF
27118 #define BX_SIM_ID 0
27119 _ACEOF
27120
27121    elif test "$enableval" = no; then
27122     cat >>confdefs.h <<\_ACEOF
27123 #define BX_SIM_ID 0
27124 _ACEOF
27125
27126    else
27127     cat >>confdefs.h <<_ACEOF
27128 #define BX_SIM_ID $enableval
27129 _ACEOF
27130
27131    fi
27132 else
27133
27134     cat >>confdefs.h <<\_ACEOF
27135 #define BX_SIM_ID 0
27136 _ACEOF
27137
27138
27139
27140 fi;
27141
27142 # Check whether --enable-num-sim or --disable-num-sim was given.
27143 if test "${enable_num_sim+set}" = set; then
27144   enableval="$enable_num_sim"
27145   if test "$enableval" = yes; then
27146     cat >>confdefs.h <<\_ACEOF
27147 #define BX_NUM_SIMULATORS 1
27148 _ACEOF
27149
27150    elif test "$enableval" = no; then
27151     cat >>confdefs.h <<\_ACEOF
27152 #define BX_NUM_SIMULATORS 1
27153 _ACEOF
27154
27155    else
27156     cat >>confdefs.h <<_ACEOF
27157 #define BX_NUM_SIMULATORS $enableval
27158 _ACEOF
27159
27160    fi
27161 else
27162
27163     cat >>confdefs.h <<\_ACEOF
27164 #define BX_NUM_SIMULATORS 1
27165 _ACEOF
27166
27167
27168
27169 fi;
27170
27171 # Check whether --enable-time0 or --disable-time0 was given.
27172 if test "${enable_time0+set}" = set; then
27173   enableval="$enable_time0"
27174   if test "$enableval" = yes; then
27175     cat >>confdefs.h <<\_ACEOF
27176 #define BX_USE_SPECIFIED_TIME0 917385580
27177 _ACEOF
27178
27179    elif test "$enableval" = no; then
27180     cat >>confdefs.h <<\_ACEOF
27181 #define BX_USE_SPECIFIED_TIME0 0
27182 _ACEOF
27183
27184    else
27185     cat >>confdefs.h <<_ACEOF
27186 #define BX_USE_SPECIFIED_TIME0 $enableval
27187 _ACEOF
27188
27189    fi
27190 else
27191
27192     cat >>confdefs.h <<\_ACEOF
27193 #define BX_USE_SPECIFIED_TIME0 0
27194 _ACEOF
27195
27196
27197
27198 fi;
27199
27200
27201
27202 echo "$as_me:$LINENO: checking for VGA emulation" >&5
27203 echo $ECHO_N "checking for VGA emulation... $ECHO_C" >&6
27204 # Check whether --enable-vga or --disable-vga was given.
27205 if test "${enable_vga+set}" = set; then
27206   enableval="$enable_vga"
27207   if test "$enableval" = yes; then
27208     echo "$as_me:$LINENO: result: yes" >&5
27209 echo "${ECHO_T}yes" >&6
27210     cat >>confdefs.h <<\_ACEOF
27211 #define BX_SUPPORT_VGA 1
27212 _ACEOF
27213
27214     VIDEO_OBJS='$(VIDEO_OBJS_VGA)'
27215    else
27216     echo "$as_me:$LINENO: result: no" >&5
27217 echo "${ECHO_T}no" >&6
27218     cat >>confdefs.h <<\_ACEOF
27219 #define BX_SUPPORT_VGA 0
27220 _ACEOF
27221
27222     VIDEO_OBJS='$(VIDEO_OBJS_HGA)'
27223    fi
27224 else
27225
27226     echo "$as_me:$LINENO: result: no" >&5
27227 echo "${ECHO_T}no" >&6
27228     cat >>confdefs.h <<\_ACEOF
27229 #define BX_SUPPORT_VGA 0
27230 _ACEOF
27231
27232     VIDEO_OBJS='$(VIDEO_OBJS_HGA)'
27233
27234
27235 fi;
27236
27237
27238 echo "$as_me:$LINENO: checking for FPU emulation" >&5
27239 echo $ECHO_N "checking for FPU emulation... $ECHO_C" >&6
27240 FPU_VAR=''
27241 FPU_GLUE_OBJ=''
27242 # Check whether --enable-fpu or --disable-fpu was given.
27243 if test "${enable_fpu+set}" = set; then
27244   enableval="$enable_fpu"
27245   if test "$enableval" = yes; then
27246     echo "$as_me:$LINENO: result: yes" >&5
27247 echo "${ECHO_T}yes" >&6
27248     cat >>confdefs.h <<\_ACEOF
27249 #define BX_SUPPORT_FPU 1
27250 _ACEOF
27251
27252     FPU_VAR='$(FPU_LIB)'
27253     FPU_GLUE_OBJ='$(FPU_GLUE_OBJ)'
27254    elif test "$enableval" = no; then
27255     echo "$as_me:$LINENO: result: no" >&5
27256 echo "${ECHO_T}no" >&6
27257     cat >>confdefs.h <<\_ACEOF
27258 #define BX_SUPPORT_FPU 0
27259 _ACEOF
27260
27261    else
27262     echo " "
27263     echo "ERROR: --enable-fpu does not accept a path"
27264     exit 1
27265    fi
27266
27267 else
27268
27269     echo "$as_me:$LINENO: result: yes" >&5
27270 echo "${ECHO_T}yes" >&6
27271     cat >>confdefs.h <<\_ACEOF
27272 #define BX_SUPPORT_FPU 1
27273 _ACEOF
27274
27275     FPU_VAR='$(FPU_LIB)'
27276     FPU_GLUE_OBJ='$(FPU_GLUE_OBJ)'
27277
27278
27279 fi;
27280
27281
27282
27283
27284
27285 echo "$as_me:$LINENO: checking for x86 debugger support" >&5
27286 echo $ECHO_N "checking for x86 debugger support... $ECHO_C" >&6
27287 # Check whether --enable-x86-debugger or --disable-x86-debugger was given.
27288 if test "${enable_x86_debugger+set}" = set; then
27289   enableval="$enable_x86_debugger"
27290   if test "$enableval" = yes; then
27291     echo "$as_me:$LINENO: result: yes" >&5
27292 echo "${ECHO_T}yes" >&6
27293     cat >>confdefs.h <<\_ACEOF
27294 #define BX_X86_DEBUGGER 1
27295 _ACEOF
27296
27297    elif test "$enableval" = no; then
27298     echo "$as_me:$LINENO: result: no" >&5
27299 echo "${ECHO_T}no" >&6
27300     cat >>confdefs.h <<\_ACEOF
27301 #define BX_X86_DEBUGGER 0
27302 _ACEOF
27303
27304    else
27305     echo "$as_me:$LINENO: result: yes" >&5
27306 echo "${ECHO_T}yes" >&6
27307     cat >>confdefs.h <<\_ACEOF
27308 #define BX_X86_DEBUGGER 1
27309 _ACEOF
27310
27311    fi
27312 else
27313
27314     echo "$as_me:$LINENO: result: no" >&5
27315 echo "${ECHO_T}no" >&6
27316     cat >>confdefs.h <<\_ACEOF
27317 #define BX_X86_DEBUGGER 0
27318 _ACEOF
27319
27320
27321
27322 fi;
27323
27324 echo "$as_me:$LINENO: checking for CDROM support" >&5
27325 echo $ECHO_N "checking for CDROM support... $ECHO_C" >&6
27326 # Check whether --enable-cdrom or --disable-cdrom was given.
27327 if test "${enable_cdrom+set}" = set; then
27328   enableval="$enable_cdrom"
27329   if test "$enableval" = yes; then
27330     echo "$as_me:$LINENO: result: yes" >&5
27331 echo "${ECHO_T}yes" >&6
27332     CDROM_OBJS='cdrom.o'
27333     cat >>confdefs.h <<\_ACEOF
27334 #define BX_SUPPORT_CDROM 1
27335 _ACEOF
27336
27337    elif test "$enableval" = no; then
27338     echo "$as_me:$LINENO: result: no" >&5
27339 echo "${ECHO_T}no" >&6
27340     CDROM_OBJS=''
27341     cat >>confdefs.h <<\_ACEOF
27342 #define BX_SUPPORT_CDROM 0
27343 _ACEOF
27344
27345    else
27346     echo "$as_me:$LINENO: result: yes" >&5
27347 echo "${ECHO_T}yes" >&6
27348     CDROM_OBJS='cdrom.o'
27349     cat >>confdefs.h <<\_ACEOF
27350 #define BX_SUPPORT_CDROM 1
27351 _ACEOF
27352
27353    fi
27354 else
27355
27356     echo "$as_me:$LINENO: result: no" >&5
27357 echo "${ECHO_T}no" >&6
27358     CDROM_OBJS=''
27359     cat >>confdefs.h <<\_ACEOF
27360 #define BX_SUPPORT_CDROM 0
27361 _ACEOF
27362
27363
27364
27365 fi;
27366
27367
27368
27369 echo "$as_me:$LINENO: checking for Sound Blaster 16 support" >&5
27370 echo $ECHO_N "checking for Sound Blaster 16 support... $ECHO_C" >&6
27371 # Check whether --enable-sb16 or --disable-sb16 was given.
27372 if test "${enable_sb16+set}" = set; then
27373   enableval="$enable_sb16"
27374   if test "$enableval" = no; then
27375      echo "$as_me:$LINENO: result: no" >&5
27376 echo "${ECHO_T}no" >&6
27377      SB16_OBJS=''
27378      cat >>confdefs.h <<\_ACEOF
27379 #define BX_SUPPORT_SB16 0
27380 _ACEOF
27381
27382    else
27383      case "$enableval" in
27384        dummy)
27385          SB16_OBJS='$(SB16_DUMMY_OBJS)'
27386          cat >>confdefs.h <<\_ACEOF
27387 #define BX_SOUND_OUTPUT_C bx_sound_output_c
27388 _ACEOF
27389
27390          echo "$as_me:$LINENO: result: dummy" >&5
27391 echo "${ECHO_T}dummy" >&6
27392          ;;
27393        linux)
27394          SB16_OBJS='$(SB16_LINUX_OBJS)'
27395          cat >>confdefs.h <<\_ACEOF
27396 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
27397 _ACEOF
27398
27399          echo "$as_me:$LINENO: result: linux" >&5
27400 echo "${ECHO_T}linux" >&6
27401          ;;
27402        win)
27403          SB16_OBJS='$(SB16_WIN_OBJS)'
27404          cat >>confdefs.h <<\_ACEOF
27405 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
27406 _ACEOF
27407
27408          echo "$as_me:$LINENO: result: win" >&5
27409 echo "${ECHO_T}win" >&6
27410          ;;
27411        *)
27412          echo " "
27413          echo \!\!\!Error\!\!\!
27414          echo "You must pass one of dummy, linux, win to --enable-sb16"
27415          exit 1 ;;
27416      esac
27417      cat >>confdefs.h <<\_ACEOF
27418 #define BX_SUPPORT_SB16 1
27419 _ACEOF
27420
27421    fi
27422 else
27423
27424     echo "$as_me:$LINENO: result: no" >&5
27425 echo "${ECHO_T}no" >&6
27426     SB16_OBJS=''
27427     cat >>confdefs.h <<\_ACEOF
27428 #define BX_SUPPORT_SB16 0
27429 _ACEOF
27430
27431
27432
27433 fi;
27434
27435
27436
27437 # Check whether --enable-hga-dumps or --disable-hga-dumps was given.
27438 if test "${enable_hga_dumps+set}" = set; then
27439   enableval="$enable_hga_dumps"
27440   cat >>confdefs.h <<_ACEOF
27441 #define BX_EMULATE_HGA_DUMPS $enableval
27442 _ACEOF
27443
27444 fi;
27445
27446 PRIMARY_TARGET='bochs'
27447
27448 cat >>confdefs.h <<\_ACEOF
27449 #define BX_PROVIDE_DEVICE_MODELS 0
27450 _ACEOF
27451
27452 IODEV_LIB_VAR='iodev/libiodev.a'
27453 cat >>confdefs.h <<\_ACEOF
27454 #define BX_PROVIDE_CPU_MEMORY 1
27455 _ACEOF
27456
27457 NONINLINE_VAR='$(NONINLINE_OBJS)'
27458
27459
27460
27461
27462
27463
27464
27465
27466 # Check whether --with-x11 or --without-x11 was given.
27467 if test "${with_x11+set}" = set; then
27468   withval="$with_x11"
27469
27470 fi;
27471
27472
27473 # Check whether --with-beos or --without-beos was given.
27474 if test "${with_beos+set}" = set; then
27475   withval="$with_beos"
27476
27477 fi;
27478
27479
27480 # Check whether --with-win32 or --without-win32 was given.
27481 if test "${with_win32+set}" = set; then
27482   withval="$with_win32"
27483
27484 fi;
27485
27486
27487 # Check whether --with-win32-vcpp or --without-win32-vcpp was given.
27488 if test "${with_win32_vcpp+set}" = set; then
27489   withval="$with_win32_vcpp"
27490
27491 fi;
27492
27493
27494 # Check whether --with-macos or --without-macos was given.
27495 if test "${with_macos+set}" = set; then
27496   withval="$with_macos"
27497
27498 fi;
27499
27500
27501 # Check whether --with-nogui or --without-nogui was given.
27502 if test "${with_nogui+set}" = set; then
27503   withval="$with_nogui"
27504
27505 fi;
27506
27507
27508 # Check whether --with-term or --without-term was given.
27509 if test "${with_term+set}" = set; then
27510   withval="$with_term"
27511
27512 fi;
27513
27514
27515 # Check whether --with-rfb or --without-rfb was given.
27516 if test "${with_rfb+set}" = set; then
27517   withval="$with_rfb"
27518
27519 fi;
27520
27521 echo "$as_me:$LINENO: checking for gui library to use" >&5
27522 echo $ECHO_N "checking for gui library to use... $ECHO_C" >&6
27523
27524 with_nogui=yes
27525
27526 if (test "$with_x11" != yes) && \
27527    (test "$with_beos" != yes) && \
27528    (test "$with_win32" != yes) && \
27529    (test "$with_nogui" != yes) && \
27530    (test "$with_win32_vcpp" != yes) && \
27531    (test "$with_term" != yes) && \
27532    (test "$with_rfb" != yes) && \
27533    (test "$with_macos" != yes); then
27534   with_x11=yes
27535 fi
27536
27537 DASH="-"
27538 SLASH="/"
27539 CXXFP=""
27540 CFP=""
27541 OFP="-o "
27542 MAKELIB="ar rv \$@"
27543 RMCOMMAND="rm -f "
27544 LINK="\$(CXX) -o \$@ \$(CXXFLAGS)"
27545 EXE=""
27546 COMMAND_SEPARATOR="&& \\"
27547 CD_UP_ONE="echo done"
27548 CD_UP_TWO="echo done"
27549
27550 if test "$with_x11" = yes; then
27551   echo "$as_me:$LINENO: result: X windows" >&5
27552 echo "${ECHO_T}X windows" >&6
27553   if test "$no_x" = yes; then
27554     echo ERROR: X windows gui was selected, but X windows libraries were not found.
27555     exit 1
27556   fi
27557   cat >>confdefs.h <<\_ACEOF
27558 #define BX_WITH_X11 1
27559 _ACEOF
27560
27561   GUI_OBJS='$(GUI_OBJS_X11)'
27562   GUI_LINK_OPTS='$(GUI_LINK_OPTS_X)'
27563 elif test "$with_win32" = yes; then
27564   echo "$as_me:$LINENO: result: win32" >&5
27565 echo "${ECHO_T}win32" >&6
27566   cat >>confdefs.h <<\_ACEOF
27567 #define BX_WITH_WIN32 1
27568 _ACEOF
27569
27570   GUI_OBJS='$(GUI_OBJS_WIN32)'
27571   GUI_LINK_OPTS='$(GUI_LINK_OPTS_WIN32)'
27572 elif test "$with_beos" = yes; then
27573   echo "$as_me:$LINENO: result: beos" >&5
27574 echo "${ECHO_T}beos" >&6
27575   cat >>confdefs.h <<\_ACEOF
27576 #define BX_WITH_BEOS 1
27577 _ACEOF
27578
27579   GUI_OBJS='$(GUI_OBJS_BEOS)'
27580   GUI_LINK_OPTS='$(GUI_LINK_OPTS_BEOS)'
27581 elif test "$with_rfb" = yes; then
27582   echo "$as_me:$LINENO: result: rfb" >&5
27583 echo "${ECHO_T}rfb" >&6
27584   cat >>confdefs.h <<\_ACEOF
27585 #define BX_WITH_RFB 1
27586 _ACEOF
27587
27588   GUI_OBJS='$(GUI_OBJS_RFB)'
27589   GUI_LINK_OPTS='$(GUI_LINK_OPTS_RFB)'
27590 elif test "$with_win32_vcpp" = yes; then
27591   echo "$as_me:$LINENO: result: win32-vcpp" >&5
27592 echo "${ECHO_T}win32-vcpp" >&6
27593   cat >>confdefs.h <<\_ACEOF
27594 #define BX_WITH_WIN32 1
27595 _ACEOF
27596
27597   GUI_OBJS='$(GUI_OBJS_WIN32)'
27598   GUI_LINK_OPTS='$(GUI_LINK_OPTS_WIN32_VCPP)'
27599
27600   CC="cl"
27601   CXX="$CC"
27602   #C_OPT="/Zi"   # for debugging
27603   C_OPT="/O2"   # optimize for speed
27604   CFLAGS="/nologo /G6 /MT /W3 /GX /DNDEBUG /DWIN32 /D_WINDOWS $C_OPT"
27605   CXXFLAGS="$CFLAGS"
27606   DASH="/"
27607   SLASH="\\"
27608   CXXFP="/Tp"
27609   CFP="/Tc"
27610   OFP="/Fo"
27611   MAKELIB="lib.exe /nologo /subsystem:console /machine:I386 /verbose /out:\$@"
27612   RMCOMMAND="-del"
27613   RANLIB="echo"
27614   #L_OPT="/debug"    # for debugging
27615   L_OPT=""           # no debug info
27616   LINK="link $L_OPT /nologo /subsystem:console /incremental:no /machine:I386 /out:\$@ BINMODE.OBJ"
27617   EXE=".exe"
27618   PRIMARY_TARGET="bochs.exe"
27619   COMMAND_SEPARATOR=""
27620   CD_UP_ONE="cd .."
27621   CD_UP_TWO="cd ..\.."
27622   cat >>confdefs.h <<\_ACEOF
27623 #define BX_64BIT_CONSTANTS_USE_LL 0
27624 _ACEOF
27625
27626   cat >>confdefs.h <<\_ACEOF
27627 #define inline __inline
27628 _ACEOF
27629
27630   cat >>confdefs.h <<\_ACEOF
27631 #define BX_NO_EMPTY_STRUCTS 1
27632 _ACEOF
27633
27634   cat >>confdefs.h <<\_ACEOF
27635 #define BX_NO_ATTRIBUTES 1
27636 _ACEOF
27637
27638   cat >>confdefs.h <<\_ACEOF
27639 #define BX_HAVE_HASH_MAP 0
27640 _ACEOF
27641
27642 elif test "$with_macos" = yes; then
27643   echo "$as_me:$LINENO: result: macos" >&5
27644 echo "${ECHO_T}macos" >&6
27645   cat >>confdefs.h <<\_ACEOF
27646 #define BX_WITH_MACOS 1
27647 _ACEOF
27648
27649   cat >>confdefs.h <<\_ACEOF
27650 #define BX_HAVE_STRDUP 0
27651 _ACEOF
27652
27653   GUI_OBJS='$(GUI_OBJS_MACOS)'
27654   GUI_LINK_OPTS='$(GUI_LINK_OPTS_MACOS)'
27655 elif test "$with_term" = yes; then
27656   echo "$as_me:$LINENO: result: term" >&5
27657 echo "${ECHO_T}term" >&6
27658   cat >>confdefs.h <<\_ACEOF
27659 #define BX_WITH_TERM 1
27660 _ACEOF
27661
27662   GUI_OBJS='$(GUI_OBJS_TERM)'
27663   GUI_LINK_OPTS='$(GUI_LINK_OPTS_TERM)'
27664   use_curses=yes
27665 else
27666   echo "$as_me:$LINENO: result: none" >&5
27667 echo "${ECHO_T}none" >&6
27668   cat >>confdefs.h <<\_ACEOF
27669 #define BX_WITH_NOGUI 1
27670 _ACEOF
27671
27672   GUI_OBJS='$(GUI_OBJS_NOGUI)'
27673   GUI_LINK_OPTS='$(GUI_LINK_OPTS_NOGUI)'
27674 fi
27675
27676 if test "$use_curses" = yes; then
27677   echo "$as_me:$LINENO: checking for mvaddch in -lcurses" >&5
27678 echo $ECHO_N "checking for mvaddch in -lcurses... $ECHO_C" >&6
27679 if test "${ac_cv_lib_curses_mvaddch+set}" = set; then
27680   echo $ECHO_N "(cached) $ECHO_C" >&6
27681 else
27682   ac_check_lib_save_LIBS=$LIBS
27683 LIBS="-lcurses  $LIBS"
27684 cat >conftest.$ac_ext <<_ACEOF
27685 /* confdefs.h.  */
27686 _ACEOF
27687 cat confdefs.h >>conftest.$ac_ext
27688 cat >>conftest.$ac_ext <<_ACEOF
27689 /* end confdefs.h.  */
27690
27691 /* Override any gcc2 internal prototype to avoid an error.  */
27692 #ifdef __cplusplus
27693 extern "C"
27694 #endif
27695 /* We use char because int might match the return type of a gcc2
27696    builtin and then its argument prototype would still apply.  */
27697 char mvaddch ();
27698 int
27699 main ()
27700 {
27701 mvaddch ();
27702   ;
27703   return 0;
27704 }
27705 _ACEOF
27706 rm -f conftest.$ac_objext conftest$ac_exeext
27707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27708   (eval $ac_link) 2>conftest.er1
27709   ac_status=$?
27710   grep -v '^ *+' conftest.er1 >conftest.err
27711   rm -f conftest.er1
27712   cat conftest.err >&5
27713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714   (exit $ac_status); } &&
27715          { ac_try='test -z "$ac_c_werror_flag"
27716                          || test ! -s conftest.err'
27717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27718   (eval $ac_try) 2>&5
27719   ac_status=$?
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); }; } &&
27722          { ac_try='test -s conftest$ac_exeext'
27723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724   (eval $ac_try) 2>&5
27725   ac_status=$?
27726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727   (exit $ac_status); }; }; then
27728   ac_cv_lib_curses_mvaddch=yes
27729 else
27730   echo "$as_me: failed program was:" >&5
27731 sed 's/^/| /' conftest.$ac_ext >&5
27732
27733 ac_cv_lib_curses_mvaddch=no
27734 fi
27735 rm -f conftest.err conftest.$ac_objext \
27736       conftest$ac_exeext conftest.$ac_ext
27737 LIBS=$ac_check_lib_save_LIBS
27738 fi
27739 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_mvaddch" >&5
27740 echo "${ECHO_T}$ac_cv_lib_curses_mvaddch" >&6
27741 if test $ac_cv_lib_curses_mvaddch = yes; then
27742   GUI_LINK_OPTS_TERM='-lcurses'
27743 fi
27744
27745   echo "$as_me:$LINENO: checking for mvaddch in -lncurses" >&5
27746 echo $ECHO_N "checking for mvaddch in -lncurses... $ECHO_C" >&6
27747 if test "${ac_cv_lib_ncurses_mvaddch+set}" = set; then
27748   echo $ECHO_N "(cached) $ECHO_C" >&6
27749 else
27750   ac_check_lib_save_LIBS=$LIBS
27751 LIBS="-lncurses  $LIBS"
27752 cat >conftest.$ac_ext <<_ACEOF
27753 /* confdefs.h.  */
27754 _ACEOF
27755 cat confdefs.h >>conftest.$ac_ext
27756 cat >>conftest.$ac_ext <<_ACEOF
27757 /* end confdefs.h.  */
27758
27759 /* Override any gcc2 internal prototype to avoid an error.  */
27760 #ifdef __cplusplus
27761 extern "C"
27762 #endif
27763 /* We use char because int might match the return type of a gcc2
27764    builtin and then its argument prototype would still apply.  */
27765 char mvaddch ();
27766 int
27767 main ()
27768 {
27769 mvaddch ();
27770   ;
27771   return 0;
27772 }
27773 _ACEOF
27774 rm -f conftest.$ac_objext conftest$ac_exeext
27775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27776   (eval $ac_link) 2>conftest.er1
27777   ac_status=$?
27778   grep -v '^ *+' conftest.er1 >conftest.err
27779   rm -f conftest.er1
27780   cat conftest.err >&5
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); } &&
27783          { ac_try='test -z "$ac_c_werror_flag"
27784                          || test ! -s conftest.err'
27785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786   (eval $ac_try) 2>&5
27787   ac_status=$?
27788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789   (exit $ac_status); }; } &&
27790          { ac_try='test -s conftest$ac_exeext'
27791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792   (eval $ac_try) 2>&5
27793   ac_status=$?
27794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795   (exit $ac_status); }; }; then
27796   ac_cv_lib_ncurses_mvaddch=yes
27797 else
27798   echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27800
27801 ac_cv_lib_ncurses_mvaddch=no
27802 fi
27803 rm -f conftest.err conftest.$ac_objext \
27804       conftest$ac_exeext conftest.$ac_ext
27805 LIBS=$ac_check_lib_save_LIBS
27806 fi
27807 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_mvaddch" >&5
27808 echo "${ECHO_T}$ac_cv_lib_ncurses_mvaddch" >&6
27809 if test $ac_cv_lib_ncurses_mvaddch = yes; then
27810   GUI_LINK_OPTS_TERM='-lncurses'
27811 fi
27812
27813   echo "$as_me:$LINENO: checking for mvaddch in -ltermlib" >&5
27814 echo $ECHO_N "checking for mvaddch in -ltermlib... $ECHO_C" >&6
27815 if test "${ac_cv_lib_termlib_mvaddch+set}" = set; then
27816   echo $ECHO_N "(cached) $ECHO_C" >&6
27817 else
27818   ac_check_lib_save_LIBS=$LIBS
27819 LIBS="-ltermlib  $LIBS"
27820 cat >conftest.$ac_ext <<_ACEOF
27821 /* confdefs.h.  */
27822 _ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h.  */
27826
27827 /* Override any gcc2 internal prototype to avoid an error.  */
27828 #ifdef __cplusplus
27829 extern "C"
27830 #endif
27831 /* We use char because int might match the return type of a gcc2
27832    builtin and then its argument prototype would still apply.  */
27833 char mvaddch ();
27834 int
27835 main ()
27836 {
27837 mvaddch ();
27838   ;
27839   return 0;
27840 }
27841 _ACEOF
27842 rm -f conftest.$ac_objext conftest$ac_exeext
27843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27844   (eval $ac_link) 2>conftest.er1
27845   ac_status=$?
27846   grep -v '^ *+' conftest.er1 >conftest.err
27847   rm -f conftest.er1
27848   cat conftest.err >&5
27849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850   (exit $ac_status); } &&
27851          { ac_try='test -z "$ac_c_werror_flag"
27852                          || test ! -s conftest.err'
27853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854   (eval $ac_try) 2>&5
27855   ac_status=$?
27856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); }; } &&
27858          { ac_try='test -s conftest$ac_exeext'
27859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27860   (eval $ac_try) 2>&5
27861   ac_status=$?
27862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863   (exit $ac_status); }; }; then
27864   ac_cv_lib_termlib_mvaddch=yes
27865 else
27866   echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27868
27869 ac_cv_lib_termlib_mvaddch=no
27870 fi
27871 rm -f conftest.err conftest.$ac_objext \
27872       conftest$ac_exeext conftest.$ac_ext
27873 LIBS=$ac_check_lib_save_LIBS
27874 fi
27875 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_mvaddch" >&5
27876 echo "${ECHO_T}$ac_cv_lib_termlib_mvaddch" >&6
27877 if test $ac_cv_lib_termlib_mvaddch = yes; then
27878   GUI_LINK_OPTS_TERM='-ltermlib'
27879 fi
27880
27881   if test "$GUI_LINK_OPTS_TERM" = ""; then
27882     echo Curses library not found: tried curses, ncurses, and termlib.
27883     exit 1
27884   fi
27885 fi
27886
27887 if test "$with_rfb" = yes; then
27888   # first see if compiler takes "-pthread" argument
27889   echo "$as_me:$LINENO: checking for -pthread arg to compiler" >&5
27890 echo $ECHO_N "checking for -pthread arg to compiler... $ECHO_C" >&6
27891   CFLAGS_SAVE="$CFLAGS"
27892   CFLAGS="$CFLAGS -pthread"
27893   cat >conftest.$ac_ext <<_ACEOF
27894 /* confdefs.h.  */
27895 _ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h.  */
27899  #include <pthread.h>
27900 int
27901 main ()
27902 {
27903  pthread_create(0,0,0,0);
27904   ;
27905   return 0;
27906 }
27907 _ACEOF
27908 rm -f conftest.$ac_objext conftest$ac_exeext
27909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27910   (eval $ac_link) 2>conftest.er1
27911   ac_status=$?
27912   grep -v '^ *+' conftest.er1 >conftest.err
27913   rm -f conftest.er1
27914   cat conftest.err >&5
27915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916   (exit $ac_status); } &&
27917          { ac_try='test -z "$ac_c_werror_flag"
27918                          || test ! -s conftest.err'
27919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27920   (eval $ac_try) 2>&5
27921   ac_status=$?
27922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923   (exit $ac_status); }; } &&
27924          { ac_try='test -s conftest$ac_exeext'
27925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27926   (eval $ac_try) 2>&5
27927   ac_status=$?
27928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929   (exit $ac_status); }; }; then
27930
27931       # it compiles with -pthread
27932       echo "$as_me:$LINENO: result: yes" >&5
27933 echo "${ECHO_T}yes" >&6
27934       CXXFLAGS="$CXXFLAGS -pthread"
27935
27936 else
27937   echo "$as_me: failed program was:" >&5
27938 sed 's/^/| /' conftest.$ac_ext >&5
27939
27940
27941       echo "$as_me:$LINENO: result: no" >&5
27942 echo "${ECHO_T}no" >&6
27943       # now try with -lpthread
27944       CFLAGS="$CFLAGS_SAVE"
27945       echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
27946 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
27947 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
27948   echo $ECHO_N "(cached) $ECHO_C" >&6
27949 else
27950   ac_check_lib_save_LIBS=$LIBS
27951 LIBS="-lpthread  $LIBS"
27952 cat >conftest.$ac_ext <<_ACEOF
27953 /* confdefs.h.  */
27954 _ACEOF
27955 cat confdefs.h >>conftest.$ac_ext
27956 cat >>conftest.$ac_ext <<_ACEOF
27957 /* end confdefs.h.  */
27958
27959 /* Override any gcc2 internal prototype to avoid an error.  */
27960 #ifdef __cplusplus
27961 extern "C"
27962 #endif
27963 /* We use char because int might match the return type of a gcc2
27964    builtin and then its argument prototype would still apply.  */
27965 char pthread_create ();
27966 int
27967 main ()
27968 {
27969 pthread_create ();
27970   ;
27971   return 0;
27972 }
27973 _ACEOF
27974 rm -f conftest.$ac_objext conftest$ac_exeext
27975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27976   (eval $ac_link) 2>conftest.er1
27977   ac_status=$?
27978   grep -v '^ *+' conftest.er1 >conftest.err
27979   rm -f conftest.er1
27980   cat conftest.err >&5
27981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982   (exit $ac_status); } &&
27983          { ac_try='test -z "$ac_c_werror_flag"
27984                          || test ! -s conftest.err'
27985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27986   (eval $ac_try) 2>&5
27987   ac_status=$?
27988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989   (exit $ac_status); }; } &&
27990          { ac_try='test -s conftest$ac_exeext'
27991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27992   (eval $ac_try) 2>&5
27993   ac_status=$?
27994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995   (exit $ac_status); }; }; then
27996   ac_cv_lib_pthread_pthread_create=yes
27997 else
27998   echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28000
28001 ac_cv_lib_pthread_pthread_create=no
28002 fi
28003 rm -f conftest.err conftest.$ac_objext \
28004       conftest$ac_exeext conftest.$ac_ext
28005 LIBS=$ac_check_lib_save_LIBS
28006 fi
28007 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
28008 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
28009 if test $ac_cv_lib_pthread_pthread_create = yes; then
28010
28011           # it compiles with -lpthread
28012           RFB_LIBS='-lpthread'
28013
28014 else
28015
28016             echo ERROR: --with-rfb requires the pthread library, which could not be found.; exit 1
28017
28018 fi
28019
28020
28021 fi
28022 rm -f conftest.err conftest.$ac_objext \
28023       conftest$ac_exeext conftest.$ac_ext
28024 fi
28025
28026
28027 for ac_header in X11/Xos.h
28028 do
28029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28031   echo "$as_me:$LINENO: checking for $ac_header" >&5
28032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28034   echo $ECHO_N "(cached) $ECHO_C" >&6
28035 fi
28036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28038 else
28039   # Is the header compilable?
28040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28042 cat >conftest.$ac_ext <<_ACEOF
28043 /* confdefs.h.  */
28044 _ACEOF
28045 cat confdefs.h >>conftest.$ac_ext
28046 cat >>conftest.$ac_ext <<_ACEOF
28047 /* end confdefs.h.  */
28048 $ac_includes_default
28049 #include <$ac_header>
28050 _ACEOF
28051 rm -f conftest.$ac_objext
28052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28053   (eval $ac_compile) 2>conftest.er1
28054   ac_status=$?
28055   grep -v '^ *+' conftest.er1 >conftest.err
28056   rm -f conftest.er1
28057   cat conftest.err >&5
28058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059   (exit $ac_status); } &&
28060          { ac_try='test -z "$ac_c_werror_flag"
28061                          || test ! -s conftest.err'
28062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28063   (eval $ac_try) 2>&5
28064   ac_status=$?
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); }; } &&
28067          { ac_try='test -s conftest.$ac_objext'
28068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069   (eval $ac_try) 2>&5
28070   ac_status=$?
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); }; }; then
28073   ac_header_compiler=yes
28074 else
28075   echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.$ac_ext >&5
28077
28078 ac_header_compiler=no
28079 fi
28080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28082 echo "${ECHO_T}$ac_header_compiler" >&6
28083
28084 # Is the header present?
28085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28087 cat >conftest.$ac_ext <<_ACEOF
28088 /* confdefs.h.  */
28089 _ACEOF
28090 cat confdefs.h >>conftest.$ac_ext
28091 cat >>conftest.$ac_ext <<_ACEOF
28092 /* end confdefs.h.  */
28093 #include <$ac_header>
28094 _ACEOF
28095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28097   ac_status=$?
28098   grep -v '^ *+' conftest.er1 >conftest.err
28099   rm -f conftest.er1
28100   cat conftest.err >&5
28101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102   (exit $ac_status); } >/dev/null; then
28103   if test -s conftest.err; then
28104     ac_cpp_err=$ac_c_preproc_warn_flag
28105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28106   else
28107     ac_cpp_err=
28108   fi
28109 else
28110   ac_cpp_err=yes
28111 fi
28112 if test -z "$ac_cpp_err"; then
28113   ac_header_preproc=yes
28114 else
28115   echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28117
28118   ac_header_preproc=no
28119 fi
28120 rm -f conftest.err conftest.$ac_ext
28121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28122 echo "${ECHO_T}$ac_header_preproc" >&6
28123
28124 # So?  What about this header?
28125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28126   yes:no: )
28127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28131     ac_header_preproc=yes
28132     ;;
28133   no:yes:* )
28134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28136     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28137 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28138     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28140     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28141 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28144     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28146     (
28147       cat <<\_ASBOX
28148 ## ------------------------------------------ ##
28149 ## Report this to the AC_PACKAGE_NAME lists.  ##
28150 ## ------------------------------------------ ##
28151 _ASBOX
28152     ) |
28153       sed "s/^/$as_me: WARNING:     /" >&2
28154     ;;
28155 esac
28156 echo "$as_me:$LINENO: checking for $ac_header" >&5
28157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28159   echo $ECHO_N "(cached) $ECHO_C" >&6
28160 else
28161   eval "$as_ac_Header=\$ac_header_preproc"
28162 fi
28163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28165
28166 fi
28167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28168   cat >>confdefs.h <<_ACEOF
28169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28170 _ACEOF
28171  have_xos_header=true
28172 else
28173   have_xos_header=false
28174 fi
28175
28176 done
28177
28178
28179
28180 if test x$have_xos_header = xtrue; then
28181   HAVE_XOS_HEADER_TRUE=
28182   HAVE_XOS_HEADER_FALSE='#'
28183 else
28184   HAVE_XOS_HEADER_TRUE='#'
28185   HAVE_XOS_HEADER_FALSE=
28186 fi
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207 # Extract the first word of "gzip", so it can be a program name with args.
28208 set dummy gzip; ac_word=$2
28209 echo "$as_me:$LINENO: checking for $ac_word" >&5
28210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28211 if test "${ac_cv_path_GZIP+set}" = set; then
28212   echo $ECHO_N "(cached) $ECHO_C" >&6
28213 else
28214   case $GZIP in
28215   [\\/]* | ?:[\\/]*)
28216   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
28217   ;;
28218   *)
28219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28220 for as_dir in $PATH
28221 do
28222   IFS=$as_save_IFS
28223   test -z "$as_dir" && as_dir=.
28224   for ac_exec_ext in '' $ac_executable_extensions; do
28225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28226     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
28227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28228     break 2
28229   fi
28230 done
28231 done
28232
28233   ;;
28234 esac
28235 fi
28236 GZIP=$ac_cv_path_GZIP
28237
28238 if test -n "$GZIP"; then
28239   echo "$as_me:$LINENO: result: $GZIP" >&5
28240 echo "${ECHO_T}$GZIP" >&6
28241 else
28242   echo "$as_me:$LINENO: result: no" >&5
28243 echo "${ECHO_T}no" >&6
28244 fi
28245
28246 # Extract the first word of "tar", so it can be a program name with args.
28247 set dummy tar; ac_word=$2
28248 echo "$as_me:$LINENO: checking for $ac_word" >&5
28249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28250 if test "${ac_cv_path_TAR+set}" = set; then
28251   echo $ECHO_N "(cached) $ECHO_C" >&6
28252 else
28253   case $TAR in
28254   [\\/]* | ?:[\\/]*)
28255   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
28256   ;;
28257   *)
28258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28259 for as_dir in $PATH
28260 do
28261   IFS=$as_save_IFS
28262   test -z "$as_dir" && as_dir=.
28263   for ac_exec_ext in '' $ac_executable_extensions; do
28264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28265     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
28266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28267     break 2
28268   fi
28269 done
28270 done
28271
28272   ;;
28273 esac
28274 fi
28275 TAR=$ac_cv_path_TAR
28276
28277 if test -n "$TAR"; then
28278   echo "$as_me:$LINENO: result: $TAR" >&5
28279 echo "${ECHO_T}$TAR" >&6
28280 else
28281   echo "$as_me:$LINENO: result: no" >&5
28282 echo "${ECHO_T}no" >&6
28283 fi
28284
28285
28286
28287
28288
28289 sid_host=`$ac_config_sub $host`
28290 sid_target=`$ac_config_sub $target`
28291
28292 if test "$sid_host" = "$sid_target" -o "$target" = "NONE"
28293 then
28294     { echo "$as_me:$LINENO: WARNING: Assuming --enable-targets=all" >&5
28295 echo "$as_me: WARNING: Assuming --enable-targets=all" >&2;}
28296     all_targets=""
28297     sidtarget_default=1
28298 else
28299     all_targets="$target"
28300     sidtarget_default=0
28301 fi
28302
28303
28304 # Check whether --enable-targets or --disable-targets was given.
28305 if test "${enable_targets+set}" = set; then
28306   enableval="$enable_targets"
28307
28308   case "${enable_targets}" in
28309     all)  sidtarget_default=1 ;;
28310     no)   sidtarget_default=0 ;;
28311     *)    all_targets="${all_targets} `echo ${enable_targets} | sed -e 's-,- -g'`" ;;
28312   esac
28313
28314 fi;
28315
28316 sidtarget_arm=$sidtarget_default
28317 sidtarget_x86=$sidtarget_default
28318 sidtarget_mips=$sidtarget_default
28319 sidtarget_m32r=$sidtarget_default
28320 sidtarget_m68k=$sidtarget_default
28321 sidtarget_mep=$sidtarget_default
28322 sidtarget_mt=$sidtarget_default
28323 sidtarget_ppc=$sidtarget_default
28324 sidtarget_sh=$sidtarget_default
28325 sidtarget_sh64=$sidtarget_default
28326 sidtarget_xstormy16=$sidtarget_default
28327
28328 for targ in $all_targets
28329 do
28330    case "$targ" in
28331       arm*)   sidtarget_arm=1 ;;
28332       thumb*) sidtarget_arm=1 ;;
28333       i386*) sidtarget_x86=1 ;;
28334       mips*)  sidtarget_mips=1 ;;
28335       m32r*)  sidtarget_m32r=1 ;;
28336       m68k*)  sidtarget_m68k=1 ;;
28337       mep*)   sidtarget_mep=1 ;;
28338       mt*)    sidtarget_mt=1 ;;
28339       powerpc*) sidtarget_ppc=1 ;;
28340       ppc*)   sidtarget_ppc=1 ;;
28341       sh64*) sidtarget_sh64=1 ;;
28342       sh*)   sidtarget_sh=1 ;;
28343       xstormy16*) sidtarget_xstormy16=1 ;;
28344       *)      { echo "$as_me:$LINENO: WARNING: \"Unknown target $targ\"" >&5
28345 echo "$as_me: WARNING: \"Unknown target $targ\"" >&2;} ;;
28346    esac
28347 done
28348
28349 case 1 in
28350   ${sidtarget_arm}) ;;
28351   ${sidtarget_x86}) ;;
28352   ${sidtarget_mips}) ;;
28353   ${sidtarget_m32r}) ;;
28354   ${sidtarget_m68k}) ;;
28355   ${sidtarget_mep}) ;;
28356   ${sidtarget_mt}) ;;
28357   ${sidtarget_ppc}) ;;
28358   ${sidtarget_sh}) ;;
28359   ${sidtarget_sh64}) ;;
28360   ${sidtarget_xstormy16}) ;;
28361   *) { echo "$as_me:$LINENO: WARNING: No selected sid targets: use --enable-targets or --target" >&5
28362 echo "$as_me: WARNING: No selected sid targets: use --enable-targets or --target" >&2;}
28363         ;;
28364 esac
28365
28366
28367 echo "$as_me:$LINENO: checking ARM family support" >&5
28368 echo $ECHO_N "checking ARM family support... $ECHO_C" >&6
28369
28370
28371
28372 if test "x$sidtarget_arm" = x1; then
28373   SIDTARGET_ARM_TRUE=
28374   SIDTARGET_ARM_FALSE='#'
28375 else
28376   SIDTARGET_ARM_TRUE='#'
28377   SIDTARGET_ARM_FALSE=
28378 fi
28379
28380 echo "$as_me:$LINENO: result: $sidtarget_arm" >&5
28381 echo "${ECHO_T}$sidtarget_arm" >&6
28382
28383 echo "$as_me:$LINENO: checking X86 family support" >&5
28384 echo $ECHO_N "checking X86 family support... $ECHO_C" >&6
28385
28386
28387
28388 if test "x$sidtarget_x86" = x1; then
28389   SIDTARGET_X86_TRUE=
28390   SIDTARGET_X86_FALSE='#'
28391 else
28392   SIDTARGET_X86_TRUE='#'
28393   SIDTARGET_X86_FALSE=
28394 fi
28395
28396 echo "$as_me:$LINENO: result: $sidtarget_x86" >&5
28397 echo "${ECHO_T}$sidtarget_x86" >&6
28398
28399 echo "$as_me:$LINENO: checking MIPS family support" >&5
28400 echo $ECHO_N "checking MIPS family support... $ECHO_C" >&6
28401
28402
28403
28404 if test "x$sidtarget_mips" = x1; then
28405   SIDTARGET_MIPS_TRUE=
28406   SIDTARGET_MIPS_FALSE='#'
28407 else
28408   SIDTARGET_MIPS_TRUE='#'
28409   SIDTARGET_MIPS_FALSE=
28410 fi
28411
28412 echo "$as_me:$LINENO: result: $sidtarget_mips" >&5
28413 echo "${ECHO_T}$sidtarget_mips" >&6
28414
28415 echo "$as_me:$LINENO: checking M32R family support" >&5
28416 echo $ECHO_N "checking M32R family support... $ECHO_C" >&6
28417
28418
28419
28420 if test "x$sidtarget_m32r" = x1; then
28421   SIDTARGET_M32R_TRUE=
28422   SIDTARGET_M32R_FALSE='#'
28423 else
28424   SIDTARGET_M32R_TRUE='#'
28425   SIDTARGET_M32R_FALSE=
28426 fi
28427
28428 echo "$as_me:$LINENO: result: $sidtarget_m32r" >&5
28429 echo "${ECHO_T}$sidtarget_m32r" >&6
28430
28431 echo "$as_me:$LINENO: checking M68K family support" >&5
28432 echo $ECHO_N "checking M68K family support... $ECHO_C" >&6
28433
28434
28435
28436 if test "x$sidtarget_m68k" = x1; then
28437   SIDTARGET_M68K_TRUE=
28438   SIDTARGET_M68K_FALSE='#'
28439 else
28440   SIDTARGET_M68K_TRUE='#'
28441   SIDTARGET_M68K_FALSE=
28442 fi
28443
28444 echo "$as_me:$LINENO: result: $sidtarget_m68k" >&5
28445 echo "${ECHO_T}$sidtarget_m68k" >&6
28446
28447 echo "$as_me:$LINENO: checking Toshiba MeP family support" >&5
28448 echo $ECHO_N "checking Toshiba MeP family support... $ECHO_C" >&6
28449
28450
28451
28452 if test "x$sidtarget_mep" = x1; then
28453   SIDTARGET_MEP_TRUE=
28454   SIDTARGET_MEP_FALSE='#'
28455 else
28456   SIDTARGET_MEP_TRUE='#'
28457   SIDTARGET_MEP_FALSE=
28458 fi
28459
28460 echo "$as_me:$LINENO: result: $sidtarget_mep" >&5
28461 echo "${ECHO_T}$sidtarget_mep" >&6
28462
28463 echo "$as_me:$LINENO: checking MT family support" >&5
28464 echo $ECHO_N "checking MT family support... $ECHO_C" >&6
28465
28466
28467
28468 if test "x$sidtarget_mt" = x1; then
28469   SIDTARGET_MT_TRUE=
28470   SIDTARGET_MT_FALSE='#'
28471 else
28472   SIDTARGET_MT_TRUE='#'
28473   SIDTARGET_MT_FALSE=
28474 fi
28475
28476 echo "$as_me:$LINENO: result: $sidtarget_mt" >&5
28477 echo "${ECHO_T}$sidtarget_mt" >&6
28478
28479 echo "$as_me:$LINENO: checking PPC family support" >&5
28480 echo $ECHO_N "checking PPC family support... $ECHO_C" >&6
28481
28482
28483
28484 if test "x$sidtarget_ppc" = x1; then
28485   SIDTARGET_PPC_TRUE=
28486   SIDTARGET_PPC_FALSE='#'
28487 else
28488   SIDTARGET_PPC_TRUE='#'
28489   SIDTARGET_PPC_FALSE=
28490 fi
28491
28492 echo "$as_me:$LINENO: result: $sidtarget_ppc" >&5
28493 echo "${ECHO_T}$sidtarget_ppc" >&6
28494
28495 echo "$as_me:$LINENO: checking SH family support" >&5
28496 echo $ECHO_N "checking SH family support... $ECHO_C" >&6
28497
28498
28499
28500 if test "x$sidtarget_sh" = x1; then
28501   SIDTARGET_SH_TRUE=
28502   SIDTARGET_SH_FALSE='#'
28503 else
28504   SIDTARGET_SH_TRUE='#'
28505   SIDTARGET_SH_FALSE=
28506 fi
28507
28508 echo "$as_me:$LINENO: result: $sidtarget_sh" >&5
28509 echo "${ECHO_T}$sidtarget_sh" >&6
28510
28511 echo "$as_me:$LINENO: checking SH64 family support" >&5
28512 echo $ECHO_N "checking SH64 family support... $ECHO_C" >&6
28513
28514
28515
28516 if test "x$sidtarget_sh64" = x1; then
28517   SIDTARGET_SH64_TRUE=
28518   SIDTARGET_SH64_FALSE='#'
28519 else
28520   SIDTARGET_SH64_TRUE='#'
28521   SIDTARGET_SH64_FALSE=
28522 fi
28523
28524 echo "$as_me:$LINENO: result: $sidtarget_sh64" >&5
28525 echo "${ECHO_T}$sidtarget_sh64" >&6
28526
28527 echo "$as_me:$LINENO: checking Sanyo Xstormy16 family support" >&5
28528 echo $ECHO_N "checking Sanyo Xstormy16 family support... $ECHO_C" >&6
28529
28530
28531
28532 if test "x$sidtarget_xstormy16" = x1; then
28533   SIDTARGET_XSTORMY16_TRUE=
28534   SIDTARGET_XSTORMY16_FALSE='#'
28535 else
28536   SIDTARGET_XSTORMY16_TRUE='#'
28537   SIDTARGET_XSTORMY16_FALSE=
28538 fi
28539
28540 echo "$as_me:$LINENO: result: $sidtarget_xstormy16" >&5
28541 echo "${ECHO_T}$sidtarget_xstormy16" >&6
28542
28543
28544
28545                                                                                                                                             ac_config_files="$ac_config_files Makefile vga/Makefile gui/Makefile keyboard/Makefile pic/Makefile pit/Makefile cmos/Makefile dma/Makefile floppy/Makefile unmapped/Makefile harddrv/Makefile cpu/Makefile cpu/memory/Makefile cpu/fpu/Makefile"
28546 cat >confcache <<\_ACEOF
28547 # This file is a shell script that caches the results of configure
28548 # tests run on this system so they can be shared between configure
28549 # scripts and configure runs, see configure's option --config-cache.
28550 # It is not useful on other systems.  If it contains results you don't
28551 # want to keep, you may remove or edit it.
28552 #
28553 # config.status only pays attention to the cache file if you give it
28554 # the --recheck option to rerun configure.
28555 #
28556 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28557 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28558 # following values.
28559
28560 _ACEOF
28561
28562 # The following way of writing the cache mishandles newlines in values,
28563 # but we know of no workaround that is simple, portable, and efficient.
28564 # So, don't put newlines in cache variables' values.
28565 # Ultrix sh set writes to stderr and can't be redirected directly,
28566 # and sets the high bit in the cache file unless we assign to the vars.
28567 {
28568   (set) 2>&1 |
28569     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28570     *ac_space=\ *)
28571       # `set' does not quote correctly, so add quotes (double-quote
28572       # substitution turns \\\\ into \\, and sed turns \\ into \).
28573       sed -n \
28574         "s/'/'\\\\''/g;
28575           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28576       ;;
28577     *)
28578       # `set' quotes correctly as required by POSIX, so do not add quotes.
28579       sed -n \
28580         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28581       ;;
28582     esac;
28583 } |
28584   sed '
28585      t clear
28586      : clear
28587      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28588      t end
28589      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28590      : end' >>confcache
28591 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28592   if test -w $cache_file; then
28593     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28594     cat confcache >$cache_file
28595   else
28596     echo "not updating unwritable cache $cache_file"
28597   fi
28598 fi
28599 rm -f confcache
28600
28601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28602 # Let make expand exec_prefix.
28603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28604
28605 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28606 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28607 # trailing colons and then remove the whole line if VPATH becomes empty
28608 # (actually we leave an empty line to preserve line numbers).
28609 if test "x$srcdir" = x.; then
28610   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28611 s/:*\$(srcdir):*/:/;
28612 s/:*\${srcdir}:*/:/;
28613 s/:*@srcdir@:*/:/;
28614 s/^\([^=]*=[     ]*\):*/\1/;
28615 s/:*$//;
28616 s/^[^=]*=[       ]*$//;
28617 }'
28618 fi
28619
28620 DEFS=-DHAVE_CONFIG_H
28621
28622 ac_libobjs=
28623 ac_ltlibobjs=
28624 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28625   # 1. Remove the extension, and $U if already installed.
28626   ac_i=`echo "$ac_i" |
28627          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28628   # 2. Add them.
28629   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28630   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28631 done
28632 LIBOBJS=$ac_libobjs
28633
28634 LTLIBOBJS=$ac_ltlibobjs
28635
28636
28637 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28638   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28639 Usually this means the macro was only invoked conditionally." >&5
28640 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28641 Usually this means the macro was only invoked conditionally." >&2;}
28642    { (exit 1); exit 1; }; }
28643 fi
28644 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28645   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28646 Usually this means the macro was only invoked conditionally." >&5
28647 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28648 Usually this means the macro was only invoked conditionally." >&2;}
28649    { (exit 1); exit 1; }; }
28650 fi
28651 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28652   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28653 Usually this means the macro was only invoked conditionally." >&5
28654 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28655 Usually this means the macro was only invoked conditionally." >&2;}
28656    { (exit 1); exit 1; }; }
28657 fi
28658 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28659   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28660 Usually this means the macro was only invoked conditionally." >&5
28661 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28662 Usually this means the macro was only invoked conditionally." >&2;}
28663    { (exit 1); exit 1; }; }
28664 fi
28665 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28666   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28667 Usually this means the macro was only invoked conditionally." >&5
28668 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28669 Usually this means the macro was only invoked conditionally." >&2;}
28670    { (exit 1); exit 1; }; }
28671 fi
28672 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28673   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28674 Usually this means the macro was only invoked conditionally." >&5
28675 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28676 Usually this means the macro was only invoked conditionally." >&2;}
28677    { (exit 1); exit 1; }; }
28678 fi
28679 if test -z "${HAVE_XOS_HEADER_TRUE}" && test -z "${HAVE_XOS_HEADER_FALSE}"; then
28680   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XOS_HEADER\" was never defined.
28681 Usually this means the macro was only invoked conditionally." >&5
28682 echo "$as_me: error: conditional \"HAVE_XOS_HEADER\" was never defined.
28683 Usually this means the macro was only invoked conditionally." >&2;}
28684    { (exit 1); exit 1; }; }
28685 fi
28686 if test -z "${SIDTARGET_ARM_TRUE}" && test -z "${SIDTARGET_ARM_FALSE}"; then
28687   { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_ARM\" was never defined.
28688 Usually this means the macro was only invoked conditionally." >&5
28689 echo "$as_me: error: conditional \"SIDTARGET_ARM\" was never defined.
28690 Usually this means the macro was only invoked conditionally." >&2;}
28691    { (exit 1); exit 1; }; }
28692 fi
28693 if test -z "${SIDTARGET_X86_TRUE}" && test -z "${SIDTARGET_X86_FALSE}"; then
28694   { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_X86\" was never defined.
28695 Usually this means the macro was only invoked conditionally." >&5
28696 echo "$as_me: error: conditional \"SIDTARGET_X86\" was never defined.
28697 Usually this means the macro was only invoked conditionally." >&2;}
28698    { (exit 1); exit 1; }; }
28699 fi
28700 if test -z "${SIDTARGET_MIPS_TRUE}" && test -z "${SIDTARGET_MIPS_FALSE}"; then
28701   { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_MIPS\" was never defined.
28702 Usually this means the macro was only invoked conditionally." >&5
28703 echo "$as_me: error: conditional \"SIDTARGET_MIPS\" was never defined.
28704 Usually this means the macro was only invoked conditionally." >&2;}
28705    { (exit 1); exit 1; }; }
28706 fi
28707 if test -z "${SIDTARGET_M32R_TRUE}" && test -z "${SIDTARGET_M32R_FALSE}"; then
28708   { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_M32R\" was never defined.
28709 Usually this means the macro was only invoked conditionally." >&5
28710 echo "$as_me: error: conditional \"SIDTARGET_M32R\" was never defined.
28711 Usually this means the macro was only invoked conditionally." >&2;}
28712    { (exit 1); exit 1; }; }
28713 fi
28714 if test -z "${SIDTARGET_M68K_TRUE}" && test -z "${SIDTARGET_M68K_FALSE}"; then
28715   { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_M68K\" was never defined.
28716 Usually this means the macro was only invoked conditionally." >&5
28717 echo "$as_me: error: conditional \"SIDTARGET_M68K\" was never defined.
28718 Usually this means the macro was only invoked conditionally." >&2;}
28719    { (exit 1); exit 1; }; }
28720 fi
28721 if test -z "${SIDTARGET_MEP_TRUE}" && test -z "${SIDTARGET_MEP_FALSE}"; then
28722   { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_MEP\" was never defined.
28723 Usually this means the macro was only invoked conditionally." >&5
28724 echo "$as_me: error: conditional \"SIDTARGET_MEP\" was never defined.
28725 Usually this means the macro was only invoked conditionally." >&2;}
28726    { (exit 1); exit 1; }; }
28727 fi
28728 if test -z "${SIDTARGET_MT_TRUE}" && test -z "${SIDTARGET_MT_FALSE}"; then
28729   { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_MT\" was never defined.
28730 Usually this means the macro was only invoked conditionally." >&5
28731 echo "$as_me: error: conditional \"SIDTARGET_MT\" was never defined.
28732 Usually this means the macro was only invoked conditionally." >&2;}
28733    { (exit 1); exit 1; }; }
28734 fi
28735 if test -z "${SIDTARGET_PPC_TRUE}" && test -z "${SIDTARGET_PPC_FALSE}"; then
28736   { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_PPC\" was never defined.
28737 Usually this means the macro was only invoked conditionally." >&5
28738 echo "$as_me: error: conditional \"SIDTARGET_PPC\" was never defined.
28739 Usually this means the macro was only invoked conditionally." >&2;}
28740    { (exit 1); exit 1; }; }
28741 fi
28742 if test -z "${SIDTARGET_SH_TRUE}" && test -z "${SIDTARGET_SH_FALSE}"; then
28743   { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_SH\" was never defined.
28744 Usually this means the macro was only invoked conditionally." >&5
28745 echo "$as_me: error: conditional \"SIDTARGET_SH\" was never defined.
28746 Usually this means the macro was only invoked conditionally." >&2;}
28747    { (exit 1); exit 1; }; }
28748 fi
28749 if test -z "${SIDTARGET_SH64_TRUE}" && test -z "${SIDTARGET_SH64_FALSE}"; then
28750   { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_SH64\" was never defined.
28751 Usually this means the macro was only invoked conditionally." >&5
28752 echo "$as_me: error: conditional \"SIDTARGET_SH64\" was never defined.
28753 Usually this means the macro was only invoked conditionally." >&2;}
28754    { (exit 1); exit 1; }; }
28755 fi
28756 if test -z "${SIDTARGET_XSTORMY16_TRUE}" && test -z "${SIDTARGET_XSTORMY16_FALSE}"; then
28757   { { echo "$as_me:$LINENO: error: conditional \"SIDTARGET_XSTORMY16\" was never defined.
28758 Usually this means the macro was only invoked conditionally." >&5
28759 echo "$as_me: error: conditional \"SIDTARGET_XSTORMY16\" was never defined.
28760 Usually this means the macro was only invoked conditionally." >&2;}
28761    { (exit 1); exit 1; }; }
28762 fi
28763
28764 : ${CONFIG_STATUS=./config.status}
28765 ac_clean_files_save=$ac_clean_files
28766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28767 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28768 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28769 cat >$CONFIG_STATUS <<_ACEOF
28770 #! $SHELL
28771 # Generated by $as_me.
28772 # Run this file to recreate the current configuration.
28773 # Compiler output produced by configure, useful for debugging
28774 # configure, is in config.log if it exists.
28775
28776 debug=false
28777 ac_cs_recheck=false
28778 ac_cs_silent=false
28779 SHELL=\${CONFIG_SHELL-$SHELL}
28780 _ACEOF
28781
28782 cat >>$CONFIG_STATUS <<\_ACEOF
28783 ## --------------------- ##
28784 ## M4sh Initialization.  ##
28785 ## --------------------- ##
28786
28787 # Be Bourne compatible
28788 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28789   emulate sh
28790   NULLCMD=:
28791   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28792   # is contrary to our usage.  Disable this feature.
28793   alias -g '${1+"$@"}'='"$@"'
28794 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28795   set -o posix
28796 fi
28797 DUALCASE=1; export DUALCASE # for MKS sh
28798
28799 # Support unset when possible.
28800 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28801   as_unset=unset
28802 else
28803   as_unset=false
28804 fi
28805
28806
28807 # Work around bugs in pre-3.0 UWIN ksh.
28808 $as_unset ENV MAIL MAILPATH
28809 PS1='$ '
28810 PS2='> '
28811 PS4='+ '
28812
28813 # NLS nuisances.
28814 for as_var in \
28815   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28816   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28817   LC_TELEPHONE LC_TIME
28818 do
28819   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28820     eval $as_var=C; export $as_var
28821   else
28822     $as_unset $as_var
28823   fi
28824 done
28825
28826 # Required to use basename.
28827 if expr a : '\(a\)' >/dev/null 2>&1; then
28828   as_expr=expr
28829 else
28830   as_expr=false
28831 fi
28832
28833 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28834   as_basename=basename
28835 else
28836   as_basename=false
28837 fi
28838
28839
28840 # Name of the executable.
28841 as_me=`$as_basename "$0" ||
28842 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28843          X"$0" : 'X\(//\)$' \| \
28844          X"$0" : 'X\(/\)$' \| \
28845          .     : '\(.\)' 2>/dev/null ||
28846 echo X/"$0" |
28847     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28848           /^X\/\(\/\/\)$/{ s//\1/; q; }
28849           /^X\/\(\/\).*/{ s//\1/; q; }
28850           s/.*/./; q'`
28851
28852
28853 # PATH needs CR, and LINENO needs CR and PATH.
28854 # Avoid depending upon Character Ranges.
28855 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28856 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28857 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28858 as_cr_digits='0123456789'
28859 as_cr_alnum=$as_cr_Letters$as_cr_digits
28860
28861 # The user is always right.
28862 if test "${PATH_SEPARATOR+set}" != set; then
28863   echo "#! /bin/sh" >conf$$.sh
28864   echo  "exit 0"   >>conf$$.sh
28865   chmod +x conf$$.sh
28866   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28867     PATH_SEPARATOR=';'
28868   else
28869     PATH_SEPARATOR=:
28870   fi
28871   rm -f conf$$.sh
28872 fi
28873
28874
28875   as_lineno_1=$LINENO
28876   as_lineno_2=$LINENO
28877   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28878   test "x$as_lineno_1" != "x$as_lineno_2" &&
28879   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28880   # Find who we are.  Look in the path if we contain no path at all
28881   # relative or not.
28882   case $0 in
28883     *[\\/]* ) as_myself=$0 ;;
28884     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28885 for as_dir in $PATH
28886 do
28887   IFS=$as_save_IFS
28888   test -z "$as_dir" && as_dir=.
28889   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28890 done
28891
28892        ;;
28893   esac
28894   # We did not find ourselves, most probably we were run as `sh COMMAND'
28895   # in which case we are not to be found in the path.
28896   if test "x$as_myself" = x; then
28897     as_myself=$0
28898   fi
28899   if test ! -f "$as_myself"; then
28900     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28901 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28902    { (exit 1); exit 1; }; }
28903   fi
28904   case $CONFIG_SHELL in
28905   '')
28906     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28907 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28908 do
28909   IFS=$as_save_IFS
28910   test -z "$as_dir" && as_dir=.
28911   for as_base in sh bash ksh sh5; do
28912          case $as_dir in
28913          /*)
28914            if ("$as_dir/$as_base" -c '
28915   as_lineno_1=$LINENO
28916   as_lineno_2=$LINENO
28917   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28918   test "x$as_lineno_1" != "x$as_lineno_2" &&
28919   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28920              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28921              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28922              CONFIG_SHELL=$as_dir/$as_base
28923              export CONFIG_SHELL
28924              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28925            fi;;
28926          esac
28927        done
28928 done
28929 ;;
28930   esac
28931
28932   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28933   # uniformly replaced by the line number.  The first 'sed' inserts a
28934   # line-number line before each line; the second 'sed' does the real
28935   # work.  The second script uses 'N' to pair each line-number line
28936   # with the numbered line, and appends trailing '-' during
28937   # substitution so that $LINENO is not a special case at line end.
28938   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28939   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28940   sed '=' <$as_myself |
28941     sed '
28942       N
28943       s,$,-,
28944       : loop
28945       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28946       t loop
28947       s,-$,,
28948       s,^['$as_cr_digits']*\n,,
28949     ' >$as_me.lineno &&
28950   chmod +x $as_me.lineno ||
28951     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28952 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28953    { (exit 1); exit 1; }; }
28954
28955   # Don't try to exec as it changes $[0], causing all sort of problems
28956   # (the dirname of $[0] is not the place where we might find the
28957   # original and so on.  Autoconf is especially sensible to this).
28958   . ./$as_me.lineno
28959   # Exit status is that of the last command.
28960   exit
28961 }
28962
28963
28964 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28965   *c*,-n*) ECHO_N= ECHO_C='
28966 ' ECHO_T='      ' ;;
28967   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28968   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28969 esac
28970
28971 if expr a : '\(a\)' >/dev/null 2>&1; then
28972   as_expr=expr
28973 else
28974   as_expr=false
28975 fi
28976
28977 rm -f conf$$ conf$$.exe conf$$.file
28978 echo >conf$$.file
28979 if ln -s conf$$.file conf$$ 2>/dev/null; then
28980   # We could just check for DJGPP; but this test a) works b) is more generic
28981   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28982   if test -f conf$$.exe; then
28983     # Don't use ln at all; we don't have any links
28984     as_ln_s='cp -p'
28985   else
28986     as_ln_s='ln -s'
28987   fi
28988 elif ln conf$$.file conf$$ 2>/dev/null; then
28989   as_ln_s=ln
28990 else
28991   as_ln_s='cp -p'
28992 fi
28993 rm -f conf$$ conf$$.exe conf$$.file
28994
28995 if mkdir -p . 2>/dev/null; then
28996   as_mkdir_p=:
28997 else
28998   test -d ./-p && rmdir ./-p
28999   as_mkdir_p=false
29000 fi
29001
29002 as_executable_p="test -f"
29003
29004 # Sed expression to map a string onto a valid CPP name.
29005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29006
29007 # Sed expression to map a string onto a valid variable name.
29008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29009
29010
29011 # IFS
29012 # We need space, tab and new line, in precisely that order.
29013 as_nl='
29014 '
29015 IFS="   $as_nl"
29016
29017 # CDPATH.
29018 $as_unset CDPATH
29019
29020 exec 6>&1
29021
29022 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29023 # report actual input values of CONFIG_FILES etc. instead of their
29024 # values after options handling.  Logging --version etc. is OK.
29025 exec 5>>config.log
29026 {
29027   echo
29028   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29029 ## Running $as_me. ##
29030 _ASBOX
29031 } >&5
29032 cat >&5 <<_CSEOF
29033
29034 This file was extended by $as_me, which was
29035 generated by GNU Autoconf 2.59.  Invocation command line was
29036
29037   CONFIG_FILES    = $CONFIG_FILES
29038   CONFIG_HEADERS  = $CONFIG_HEADERS
29039   CONFIG_LINKS    = $CONFIG_LINKS
29040   CONFIG_COMMANDS = $CONFIG_COMMANDS
29041   $ $0 $@
29042
29043 _CSEOF
29044 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29045 echo >&5
29046 _ACEOF
29047
29048 # Files that config.status was made for.
29049 if test -n "$ac_config_files"; then
29050   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29051 fi
29052
29053 if test -n "$ac_config_headers"; then
29054   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29055 fi
29056
29057 if test -n "$ac_config_links"; then
29058   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29059 fi
29060
29061 if test -n "$ac_config_commands"; then
29062   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29063 fi
29064
29065 cat >>$CONFIG_STATUS <<\_ACEOF
29066
29067 ac_cs_usage="\
29068 \`$as_me' instantiates files from templates according to the
29069 current configuration.
29070
29071 Usage: $0 [OPTIONS] [FILE]...
29072
29073   -h, --help       print this help, then exit
29074   -V, --version    print version number, then exit
29075   -q, --quiet      do not print progress messages
29076   -d, --debug      don't remove temporary files
29077       --recheck    update $as_me by reconfiguring in the same conditions
29078   --file=FILE[:TEMPLATE]
29079                    instantiate the configuration file FILE
29080   --header=FILE[:TEMPLATE]
29081                    instantiate the configuration header FILE
29082
29083 Configuration files:
29084 $config_files
29085
29086 Configuration headers:
29087 $config_headers
29088
29089 Configuration commands:
29090 $config_commands
29091
29092 Report bugs to <bug-autoconf@gnu.org>."
29093 _ACEOF
29094
29095 cat >>$CONFIG_STATUS <<_ACEOF
29096 ac_cs_version="\\
29097 config.status
29098 configured by $0, generated by GNU Autoconf 2.59,
29099   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29100
29101 Copyright (C) 2003 Free Software Foundation, Inc.
29102 This config.status script is free software; the Free Software Foundation
29103 gives unlimited permission to copy, distribute and modify it."
29104 srcdir=$srcdir
29105 INSTALL="$INSTALL"
29106 _ACEOF
29107
29108 cat >>$CONFIG_STATUS <<\_ACEOF
29109 # If no file are specified by the user, then we need to provide default
29110 # value.  By we need to know if files were specified by the user.
29111 ac_need_defaults=:
29112 while test $# != 0
29113 do
29114   case $1 in
29115   --*=*)
29116     ac_option=`expr "x$1" : 'x\([^=]*\)='`
29117     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29118     ac_shift=:
29119     ;;
29120   -*)
29121     ac_option=$1
29122     ac_optarg=$2
29123     ac_shift=shift
29124     ;;
29125   *) # This is not an option, so the user has probably given explicit
29126      # arguments.
29127      ac_option=$1
29128      ac_need_defaults=false;;
29129   esac
29130
29131   case $ac_option in
29132   # Handling of the options.
29133 _ACEOF
29134 cat >>$CONFIG_STATUS <<\_ACEOF
29135   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29136     ac_cs_recheck=: ;;
29137   --version | --vers* | -V )
29138     echo "$ac_cs_version"; exit 0 ;;
29139   --he | --h)
29140     # Conflict between --help and --header
29141     { { echo "$as_me:$LINENO: error: ambiguous option: $1
29142 Try \`$0 --help' for more information." >&5
29143 echo "$as_me: error: ambiguous option: $1
29144 Try \`$0 --help' for more information." >&2;}
29145    { (exit 1); exit 1; }; };;
29146   --help | --hel | -h )
29147     echo "$ac_cs_usage"; exit 0 ;;
29148   --debug | --d* | -d )
29149     debug=: ;;
29150   --file | --fil | --fi | --f )
29151     $ac_shift
29152     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29153     ac_need_defaults=false;;
29154   --header | --heade | --head | --hea )
29155     $ac_shift
29156     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29157     ac_need_defaults=false;;
29158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29159   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29160     ac_cs_silent=: ;;
29161
29162   # This is an error.
29163   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29164 Try \`$0 --help' for more information." >&5
29165 echo "$as_me: error: unrecognized option: $1
29166 Try \`$0 --help' for more information." >&2;}
29167    { (exit 1); exit 1; }; } ;;
29168
29169   *) ac_config_targets="$ac_config_targets $1" ;;
29170
29171   esac
29172   shift
29173 done
29174
29175 ac_configure_extra_args=
29176
29177 if $ac_cs_silent; then
29178   exec 6>/dev/null
29179   ac_configure_extra_args="$ac_configure_extra_args --silent"
29180 fi
29181
29182 _ACEOF
29183 cat >>$CONFIG_STATUS <<_ACEOF
29184 if \$ac_cs_recheck; then
29185   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29186   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29187 fi
29188
29189 _ACEOF
29190
29191 cat >>$CONFIG_STATUS <<_ACEOF
29192 #
29193 # INIT-COMMANDS section.
29194 #
29195
29196 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29197
29198 _ACEOF
29199
29200
29201
29202 cat >>$CONFIG_STATUS <<\_ACEOF
29203 for ac_config_target in $ac_config_targets
29204 do
29205   case "$ac_config_target" in
29206   # Handling of arguments.
29207   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29208   "vga/Makefile" ) CONFIG_FILES="$CONFIG_FILES vga/Makefile" ;;
29209   "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
29210   "keyboard/Makefile" ) CONFIG_FILES="$CONFIG_FILES keyboard/Makefile" ;;
29211   "pic/Makefile" ) CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
29212   "pit/Makefile" ) CONFIG_FILES="$CONFIG_FILES pit/Makefile" ;;
29213   "cmos/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmos/Makefile" ;;
29214   "dma/Makefile" ) CONFIG_FILES="$CONFIG_FILES dma/Makefile" ;;
29215   "floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES floppy/Makefile" ;;
29216   "unmapped/Makefile" ) CONFIG_FILES="$CONFIG_FILES unmapped/Makefile" ;;
29217   "harddrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES harddrv/Makefile" ;;
29218   "cpu/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
29219   "cpu/memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/memory/Makefile" ;;
29220   "cpu/fpu/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/fpu/Makefile" ;;
29221   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29222   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29223   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29224 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29225    { (exit 1); exit 1; }; };;
29226   esac
29227 done
29228
29229 # If the user did not use the arguments to specify the items to instantiate,
29230 # then the envvar interface is used.  Set only those that are not.
29231 # We use the long form for the default assignment because of an extremely
29232 # bizarre bug on SunOS 4.1.3.
29233 if $ac_need_defaults; then
29234   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29235   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29236   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29237 fi
29238
29239 # Have a temporary directory for convenience.  Make it in the build tree
29240 # simply because there is no reason to put it here, and in addition,
29241 # creating and moving files from /tmp can sometimes cause problems.
29242 # Create a temporary directory, and hook for its removal unless debugging.
29243 $debug ||
29244 {
29245   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29246   trap '{ (exit 1); exit 1; }' 1 2 13 15
29247 }
29248
29249 # Create a (secure) tmp directory for tmp files.
29250
29251 {
29252   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29253   test -n "$tmp" && test -d "$tmp"
29254 }  ||
29255 {
29256   tmp=./confstat$$-$RANDOM
29257   (umask 077 && mkdir $tmp)
29258 } ||
29259 {
29260    echo "$me: cannot create a temporary directory in ." >&2
29261    { (exit 1); exit 1; }
29262 }
29263
29264 _ACEOF
29265
29266 cat >>$CONFIG_STATUS <<_ACEOF
29267
29268 #
29269 # CONFIG_FILES section.
29270 #
29271
29272 # No need to generate the scripts if there are no CONFIG_FILES.
29273 # This happens for instance when ./config.status config.h
29274 if test -n "\$CONFIG_FILES"; then
29275   # Protect against being on the right side of a sed subst in config.status.
29276   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29277    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29278 s,@SHELL@,$SHELL,;t t
29279 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29280 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29281 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29282 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29283 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29284 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29285 s,@exec_prefix@,$exec_prefix,;t t
29286 s,@prefix@,$prefix,;t t
29287 s,@program_transform_name@,$program_transform_name,;t t
29288 s,@bindir@,$bindir,;t t
29289 s,@sbindir@,$sbindir,;t t
29290 s,@libexecdir@,$libexecdir,;t t
29291 s,@datadir@,$datadir,;t t
29292 s,@sysconfdir@,$sysconfdir,;t t
29293 s,@sharedstatedir@,$sharedstatedir,;t t
29294 s,@localstatedir@,$localstatedir,;t t
29295 s,@libdir@,$libdir,;t t
29296 s,@includedir@,$includedir,;t t
29297 s,@oldincludedir@,$oldincludedir,;t t
29298 s,@infodir@,$infodir,;t t
29299 s,@mandir@,$mandir,;t t
29300 s,@build_alias@,$build_alias,;t t
29301 s,@host_alias@,$host_alias,;t t
29302 s,@target_alias@,$target_alias,;t t
29303 s,@DEFS@,$DEFS,;t t
29304 s,@ECHO_C@,$ECHO_C,;t t
29305 s,@ECHO_N@,$ECHO_N,;t t
29306 s,@ECHO_T@,$ECHO_T,;t t
29307 s,@LIBS@,$LIBS,;t t
29308 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29309 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29310 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29311 s,@CYGPATH_W@,$CYGPATH_W,;t t
29312 s,@PACKAGE@,$PACKAGE,;t t
29313 s,@VERSION@,$VERSION,;t t
29314 s,@ACLOCAL@,$ACLOCAL,;t t
29315 s,@AUTOCONF@,$AUTOCONF,;t t
29316 s,@AUTOMAKE@,$AUTOMAKE,;t t
29317 s,@AUTOHEADER@,$AUTOHEADER,;t t
29318 s,@MAKEINFO@,$MAKEINFO,;t t
29319 s,@install_sh@,$install_sh,;t t
29320 s,@STRIP@,$STRIP,;t t
29321 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29322 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29323 s,@mkdir_p@,$mkdir_p,;t t
29324 s,@AWK@,$AWK,;t t
29325 s,@SET_MAKE@,$SET_MAKE,;t t
29326 s,@am__leading_dot@,$am__leading_dot,;t t
29327 s,@AMTAR@,$AMTAR,;t t
29328 s,@am__tar@,$am__tar,;t t
29329 s,@am__untar@,$am__untar,;t t
29330 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29331 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29332 s,@MAINT@,$MAINT,;t t
29333 s,@build@,$build,;t t
29334 s,@build_cpu@,$build_cpu,;t t
29335 s,@build_vendor@,$build_vendor,;t t
29336 s,@build_os@,$build_os,;t t
29337 s,@host@,$host,;t t
29338 s,@host_cpu@,$host_cpu,;t t
29339 s,@host_vendor@,$host_vendor,;t t
29340 s,@host_os@,$host_os,;t t
29341 s,@CC@,$CC,;t t
29342 s,@CFLAGS@,$CFLAGS,;t t
29343 s,@LDFLAGS@,$LDFLAGS,;t t
29344 s,@CPPFLAGS@,$CPPFLAGS,;t t
29345 s,@ac_ct_CC@,$ac_ct_CC,;t t
29346 s,@EXEEXT@,$EXEEXT,;t t
29347 s,@OBJEXT@,$OBJEXT,;t t
29348 s,@DEPDIR@,$DEPDIR,;t t
29349 s,@am__include@,$am__include,;t t
29350 s,@am__quote@,$am__quote,;t t
29351 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29352 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29353 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29354 s,@CCDEPMODE@,$CCDEPMODE,;t t
29355 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29356 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29357 s,@EGREP@,$EGREP,;t t
29358 s,@LN_S@,$LN_S,;t t
29359 s,@ECHO@,$ECHO,;t t
29360 s,@AR@,$AR,;t t
29361 s,@ac_ct_AR@,$ac_ct_AR,;t t
29362 s,@RANLIB@,$RANLIB,;t t
29363 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29364 s,@CPP@,$CPP,;t t
29365 s,@CXX@,$CXX,;t t
29366 s,@CXXFLAGS@,$CXXFLAGS,;t t
29367 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29368 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29369 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29370 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29371 s,@CXXCPP@,$CXXCPP,;t t
29372 s,@F77@,$F77,;t t
29373 s,@FFLAGS@,$FFLAGS,;t t
29374 s,@ac_ct_F77@,$ac_ct_F77,;t t
29375 s,@LIBTOOL@,$LIBTOOL,;t t
29376 s,@X_CFLAGS@,$X_CFLAGS,;t t
29377 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29378 s,@X_LIBS@,$X_LIBS,;t t
29379 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29380 s,@DYNAMIC_VAR@,$DYNAMIC_VAR,;t t
29381 s,@AS_DYNAMIC_OBJS@,$AS_DYNAMIC_OBJS,;t t
29382 s,@AS_DYNAMIC_INCS@,$AS_DYNAMIC_INCS,;t t
29383 s,@IOAPIC_OBJS@,$IOAPIC_OBJS,;t t
29384 s,@APIC_OBJS@,$APIC_OBJS,;t t
29385 s,@BX_SPLIT_HD_SUPPORT@,$BX_SPLIT_HD_SUPPORT,;t t
29386 s,@NE2K_OBJS@,$NE2K_OBJS,;t t
29387 s,@PCI_OBJ@,$PCI_OBJ,;t t
29388 s,@SUFFIX_LINE@,$SUFFIX_LINE,;t t
29389 s,@CPP_SUFFIX@,$CPP_SUFFIX,;t t
29390 s,@DEBUGGER_VAR@,$DEBUGGER_VAR,;t t
29391 s,@DISASM_VAR@,$DISASM_VAR,;t t
29392 s,@READLINE_LIB@,$READLINE_LIB,;t t
29393 s,@BX_LOADER_OBJS@,$BX_LOADER_OBJS,;t t
29394 s,@INSTRUMENT_DIR@,$INSTRUMENT_DIR,;t t
29395 s,@INSTRUMENT_VAR@,$INSTRUMENT_VAR,;t t
29396 s,@VIDEO_OBJS@,$VIDEO_OBJS,;t t
29397 s,@FPU_VAR@,$FPU_VAR,;t t
29398 s,@FPU_GLUE_OBJ@,$FPU_GLUE_OBJ,;t t
29399 s,@CDROM_OBJS@,$CDROM_OBJS,;t t
29400 s,@SB16_OBJS@,$SB16_OBJS,;t t
29401 s,@IODEV_LIB_VAR@,$IODEV_LIB_VAR,;t t
29402 s,@NONINLINE_VAR@,$NONINLINE_VAR,;t t
29403 s,@INLINE_VAR@,$INLINE_VAR,;t t
29404 s,@EXTERNAL_DEPENDENCY@,$EXTERNAL_DEPENDENCY,;t t
29405 s,@HAVE_XOS_HEADER_TRUE@,$HAVE_XOS_HEADER_TRUE,;t t
29406 s,@HAVE_XOS_HEADER_FALSE@,$HAVE_XOS_HEADER_FALSE,;t t
29407 s,@RFB_LIBS@,$RFB_LIBS,;t t
29408 s,@GUI_OBJS@,$GUI_OBJS,;t t
29409 s,@GUI_LINK_OPTS@,$GUI_LINK_OPTS,;t t
29410 s,@GUI_LINK_OPTS_TERM@,$GUI_LINK_OPTS_TERM,;t t
29411 s,@DASH@,$DASH,;t t
29412 s,@SLASH@,$SLASH,;t t
29413 s,@CXXFP@,$CXXFP,;t t
29414 s,@CFP@,$CFP,;t t
29415 s,@OFP@,$OFP,;t t
29416 s,@MAKELIB@,$MAKELIB,;t t
29417 s,@RMCOMMAND@,$RMCOMMAND,;t t
29418 s,@LINK@,$LINK,;t t
29419 s,@EXE@,$EXE,;t t
29420 s,@PRIMARY_TARGET@,$PRIMARY_TARGET,;t t
29421 s,@COMMAND_SEPARATOR@,$COMMAND_SEPARATOR,;t t
29422 s,@CD_UP_ONE@,$CD_UP_ONE,;t t
29423 s,@CD_UP_TWO@,$CD_UP_TWO,;t t
29424 s,@GZIP@,$GZIP,;t t
29425 s,@TAR@,$TAR,;t t
29426 s,@sidtarget_arm@,$sidtarget_arm,;t t
29427 s,@SIDTARGET_ARM_TRUE@,$SIDTARGET_ARM_TRUE,;t t
29428 s,@SIDTARGET_ARM_FALSE@,$SIDTARGET_ARM_FALSE,;t t
29429 s,@sidtarget_x86@,$sidtarget_x86,;t t
29430 s,@SIDTARGET_X86_TRUE@,$SIDTARGET_X86_TRUE,;t t
29431 s,@SIDTARGET_X86_FALSE@,$SIDTARGET_X86_FALSE,;t t
29432 s,@sidtarget_mips@,$sidtarget_mips,;t t
29433 s,@SIDTARGET_MIPS_TRUE@,$SIDTARGET_MIPS_TRUE,;t t
29434 s,@SIDTARGET_MIPS_FALSE@,$SIDTARGET_MIPS_FALSE,;t t
29435 s,@sidtarget_m32r@,$sidtarget_m32r,;t t
29436 s,@SIDTARGET_M32R_TRUE@,$SIDTARGET_M32R_TRUE,;t t
29437 s,@SIDTARGET_M32R_FALSE@,$SIDTARGET_M32R_FALSE,;t t
29438 s,@sidtarget_m68k@,$sidtarget_m68k,;t t
29439 s,@SIDTARGET_M68K_TRUE@,$SIDTARGET_M68K_TRUE,;t t
29440 s,@SIDTARGET_M68K_FALSE@,$SIDTARGET_M68K_FALSE,;t t
29441 s,@sidtarget_mep@,$sidtarget_mep,;t t
29442 s,@SIDTARGET_MEP_TRUE@,$SIDTARGET_MEP_TRUE,;t t
29443 s,@SIDTARGET_MEP_FALSE@,$SIDTARGET_MEP_FALSE,;t t
29444 s,@sidtarget_mt@,$sidtarget_mt,;t t
29445 s,@SIDTARGET_MT_TRUE@,$SIDTARGET_MT_TRUE,;t t
29446 s,@SIDTARGET_MT_FALSE@,$SIDTARGET_MT_FALSE,;t t
29447 s,@sidtarget_ppc@,$sidtarget_ppc,;t t
29448 s,@SIDTARGET_PPC_TRUE@,$SIDTARGET_PPC_TRUE,;t t
29449 s,@SIDTARGET_PPC_FALSE@,$SIDTARGET_PPC_FALSE,;t t
29450 s,@sidtarget_sh@,$sidtarget_sh,;t t
29451 s,@SIDTARGET_SH_TRUE@,$SIDTARGET_SH_TRUE,;t t
29452 s,@SIDTARGET_SH_FALSE@,$SIDTARGET_SH_FALSE,;t t
29453 s,@sidtarget_sh64@,$sidtarget_sh64,;t t
29454 s,@SIDTARGET_SH64_TRUE@,$SIDTARGET_SH64_TRUE,;t t
29455 s,@SIDTARGET_SH64_FALSE@,$SIDTARGET_SH64_FALSE,;t t
29456 s,@sidtarget_xstormy16@,$sidtarget_xstormy16,;t t
29457 s,@SIDTARGET_XSTORMY16_TRUE@,$SIDTARGET_XSTORMY16_TRUE,;t t
29458 s,@SIDTARGET_XSTORMY16_FALSE@,$SIDTARGET_XSTORMY16_FALSE,;t t
29459 s,@LIBOBJS@,$LIBOBJS,;t t
29460 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29461 CEOF
29462
29463 _ACEOF
29464
29465   cat >>$CONFIG_STATUS <<\_ACEOF
29466   # Split the substitutions into bite-sized pieces for seds with
29467   # small command number limits, like on Digital OSF/1 and HP-UX.
29468   ac_max_sed_lines=48
29469   ac_sed_frag=1 # Number of current file.
29470   ac_beg=1 # First line for current file.
29471   ac_end=$ac_max_sed_lines # Line after last line for current file.
29472   ac_more_lines=:
29473   ac_sed_cmds=
29474   while $ac_more_lines; do
29475     if test $ac_beg -gt 1; then
29476       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29477     else
29478       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29479     fi
29480     if test ! -s $tmp/subs.frag; then
29481       ac_more_lines=false
29482     else
29483       # The purpose of the label and of the branching condition is to
29484       # speed up the sed processing (if there are no `@' at all, there
29485       # is no need to browse any of the substitutions).
29486       # These are the two extra sed commands mentioned above.
29487       (echo ':t
29488   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29489       if test -z "$ac_sed_cmds"; then
29490         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29491       else
29492         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29493       fi
29494       ac_sed_frag=`expr $ac_sed_frag + 1`
29495       ac_beg=$ac_end
29496       ac_end=`expr $ac_end + $ac_max_sed_lines`
29497     fi
29498   done
29499   if test -z "$ac_sed_cmds"; then
29500     ac_sed_cmds=cat
29501   fi
29502 fi # test -n "$CONFIG_FILES"
29503
29504 _ACEOF
29505 cat >>$CONFIG_STATUS <<\_ACEOF
29506 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29507   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29508   case $ac_file in
29509   - | *:- | *:-:* ) # input from stdin
29510         cat >$tmp/stdin
29511         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29512         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29513   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29514         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29515   * )   ac_file_in=$ac_file.in ;;
29516   esac
29517
29518   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29519   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29520 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29521          X"$ac_file" : 'X\(//\)[^/]' \| \
29522          X"$ac_file" : 'X\(//\)$' \| \
29523          X"$ac_file" : 'X\(/\)' \| \
29524          .     : '\(.\)' 2>/dev/null ||
29525 echo X"$ac_file" |
29526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29527           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29528           /^X\(\/\/\)$/{ s//\1/; q; }
29529           /^X\(\/\).*/{ s//\1/; q; }
29530           s/.*/./; q'`
29531   { if $as_mkdir_p; then
29532     mkdir -p "$ac_dir"
29533   else
29534     as_dir="$ac_dir"
29535     as_dirs=
29536     while test ! -d "$as_dir"; do
29537       as_dirs="$as_dir $as_dirs"
29538       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29540          X"$as_dir" : 'X\(//\)[^/]' \| \
29541          X"$as_dir" : 'X\(//\)$' \| \
29542          X"$as_dir" : 'X\(/\)' \| \
29543          .     : '\(.\)' 2>/dev/null ||
29544 echo X"$as_dir" |
29545     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29546           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29547           /^X\(\/\/\)$/{ s//\1/; q; }
29548           /^X\(\/\).*/{ s//\1/; q; }
29549           s/.*/./; q'`
29550     done
29551     test ! -n "$as_dirs" || mkdir $as_dirs
29552   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29553 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29554    { (exit 1); exit 1; }; }; }
29555
29556   ac_builddir=.
29557
29558 if test "$ac_dir" != .; then
29559   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29560   # A "../" for each directory in $ac_dir_suffix.
29561   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29562 else
29563   ac_dir_suffix= ac_top_builddir=
29564 fi
29565
29566 case $srcdir in
29567   .)  # No --srcdir option.  We are building in place.
29568     ac_srcdir=.
29569     if test -z "$ac_top_builddir"; then
29570        ac_top_srcdir=.
29571     else
29572        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29573     fi ;;
29574   [\\/]* | ?:[\\/]* )  # Absolute path.
29575     ac_srcdir=$srcdir$ac_dir_suffix;
29576     ac_top_srcdir=$srcdir ;;
29577   *) # Relative path.
29578     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29579     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29580 esac
29581
29582 # Do not use `cd foo && pwd` to compute absolute paths, because
29583 # the directories may not exist.
29584 case `pwd` in
29585 .) ac_abs_builddir="$ac_dir";;
29586 *)
29587   case "$ac_dir" in
29588   .) ac_abs_builddir=`pwd`;;
29589   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29590   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29591   esac;;
29592 esac
29593 case $ac_abs_builddir in
29594 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29595 *)
29596   case ${ac_top_builddir}. in
29597   .) ac_abs_top_builddir=$ac_abs_builddir;;
29598   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29599   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29600   esac;;
29601 esac
29602 case $ac_abs_builddir in
29603 .) ac_abs_srcdir=$ac_srcdir;;
29604 *)
29605   case $ac_srcdir in
29606   .) ac_abs_srcdir=$ac_abs_builddir;;
29607   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29608   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29609   esac;;
29610 esac
29611 case $ac_abs_builddir in
29612 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29613 *)
29614   case $ac_top_srcdir in
29615   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29616   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29617   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29618   esac;;
29619 esac
29620
29621
29622   case $INSTALL in
29623   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29624   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29625   esac
29626
29627   if test x"$ac_file" != x-; then
29628     { echo "$as_me:$LINENO: creating $ac_file" >&5
29629 echo "$as_me: creating $ac_file" >&6;}
29630     rm -f "$ac_file"
29631   fi
29632   # Let's still pretend it is `configure' which instantiates (i.e., don't
29633   # use $as_me), people would be surprised to read:
29634   #    /* config.h.  Generated by config.status.  */
29635   if test x"$ac_file" = x-; then
29636     configure_input=
29637   else
29638     configure_input="$ac_file.  "
29639   fi
29640   configure_input=$configure_input"Generated from `echo $ac_file_in |
29641                                      sed 's,.*/,,'` by configure."
29642
29643   # First look for the input files in the build tree, otherwise in the
29644   # src tree.
29645   ac_file_inputs=`IFS=:
29646     for f in $ac_file_in; do
29647       case $f in
29648       -) echo $tmp/stdin ;;
29649       [\\/$]*)
29650          # Absolute (can't be DOS-style, as IFS=:)
29651          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29652 echo "$as_me: error: cannot find input file: $f" >&2;}
29653    { (exit 1); exit 1; }; }
29654          echo "$f";;
29655       *) # Relative
29656          if test -f "$f"; then
29657            # Build tree
29658            echo "$f"
29659          elif test -f "$srcdir/$f"; then
29660            # Source tree
29661            echo "$srcdir/$f"
29662          else
29663            # /dev/null tree
29664            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29665 echo "$as_me: error: cannot find input file: $f" >&2;}
29666    { (exit 1); exit 1; }; }
29667          fi;;
29668       esac
29669     done` || { (exit 1); exit 1; }
29670 _ACEOF
29671 cat >>$CONFIG_STATUS <<_ACEOF
29672   sed "$ac_vpsub
29673 $extrasub
29674 _ACEOF
29675 cat >>$CONFIG_STATUS <<\_ACEOF
29676 :t
29677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29678 s,@configure_input@,$configure_input,;t t
29679 s,@srcdir@,$ac_srcdir,;t t
29680 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29681 s,@top_srcdir@,$ac_top_srcdir,;t t
29682 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29683 s,@builddir@,$ac_builddir,;t t
29684 s,@abs_builddir@,$ac_abs_builddir,;t t
29685 s,@top_builddir@,$ac_top_builddir,;t t
29686 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29687 s,@INSTALL@,$ac_INSTALL,;t t
29688 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29689   rm -f $tmp/stdin
29690   if test x"$ac_file" != x-; then
29691     mv $tmp/out $ac_file
29692   else
29693     cat $tmp/out
29694     rm -f $tmp/out
29695   fi
29696
29697 done
29698 _ACEOF
29699 cat >>$CONFIG_STATUS <<\_ACEOF
29700
29701 #
29702 # CONFIG_HEADER section.
29703 #
29704
29705 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29706 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29707 #
29708 # ac_d sets the value in "#define NAME VALUE" lines.
29709 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
29710 ac_dB='[         ].*$,\1#\2'
29711 ac_dC=' '
29712 ac_dD=',;t'
29713 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29714 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
29715 ac_uB='$,\1#\2define\3'
29716 ac_uC=' '
29717 ac_uD=',;t'
29718
29719 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29720   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29721   case $ac_file in
29722   - | *:- | *:-:* ) # input from stdin
29723         cat >$tmp/stdin
29724         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29725         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29726   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29727         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29728   * )   ac_file_in=$ac_file.in ;;
29729   esac
29730
29731   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29732 echo "$as_me: creating $ac_file" >&6;}
29733
29734   # First look for the input files in the build tree, otherwise in the
29735   # src tree.
29736   ac_file_inputs=`IFS=:
29737     for f in $ac_file_in; do
29738       case $f in
29739       -) echo $tmp/stdin ;;
29740       [\\/$]*)
29741          # Absolute (can't be DOS-style, as IFS=:)
29742          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29743 echo "$as_me: error: cannot find input file: $f" >&2;}
29744    { (exit 1); exit 1; }; }
29745          # Do quote $f, to prevent DOS paths from being IFS'd.
29746          echo "$f";;
29747       *) # Relative
29748          if test -f "$f"; then
29749            # Build tree
29750            echo "$f"
29751          elif test -f "$srcdir/$f"; then
29752            # Source tree
29753            echo "$srcdir/$f"
29754          else
29755            # /dev/null tree
29756            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29757 echo "$as_me: error: cannot find input file: $f" >&2;}
29758    { (exit 1); exit 1; }; }
29759          fi;;
29760       esac
29761     done` || { (exit 1); exit 1; }
29762   # Remove the trailing spaces.
29763   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
29764
29765 _ACEOF
29766
29767 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29768 # `conftest.undefs', that substitutes the proper values into
29769 # config.h.in to produce config.h.  The first handles `#define'
29770 # templates, and the second `#undef' templates.
29771 # And first: Protect against being on the right side of a sed subst in
29772 # config.status.  Protect against being in an unquoted here document
29773 # in config.status.
29774 rm -f conftest.defines conftest.undefs
29775 # Using a here document instead of a string reduces the quoting nightmare.
29776 # Putting comments in sed scripts is not portable.
29777 #
29778 # `end' is used to avoid that the second main sed command (meant for
29779 # 0-ary CPP macros) applies to n-ary macro definitions.
29780 # See the Autoconf documentation for `clear'.
29781 cat >confdef2sed.sed <<\_ACEOF
29782 s/[\\&,]/\\&/g
29783 s,[\\$`],\\&,g
29784 t clear
29785 : clear
29786 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29787 t end
29788 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29789 : end
29790 _ACEOF
29791 # If some macros were called several times there might be several times
29792 # the same #defines, which is useless.  Nevertheless, we may not want to
29793 # sort them, since we want the *last* AC-DEFINE to be honored.
29794 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29795 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29796 rm -f confdef2sed.sed
29797
29798 # This sed command replaces #undef with comments.  This is necessary, for
29799 # example, in the case of _POSIX_SOURCE, which is predefined and required
29800 # on some systems where configure will not decide to define it.
29801 cat >>conftest.undefs <<\_ACEOF
29802 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29803 _ACEOF
29804
29805 # Break up conftest.defines because some shells have a limit on the size
29806 # of here documents, and old seds have small limits too (100 cmds).
29807 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29808 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29809 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29810 echo '  :' >>$CONFIG_STATUS
29811 rm -f conftest.tail
29812 while grep . conftest.defines >/dev/null
29813 do
29814   # Write a limited-size here document to $tmp/defines.sed.
29815   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29816   # Speed up: don't consider the non `#define' lines.
29817   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
29818   # Work around the forget-to-reset-the-flag bug.
29819   echo 't clr' >>$CONFIG_STATUS
29820   echo ': clr' >>$CONFIG_STATUS
29821   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29822   echo 'CEOF
29823   sed -f $tmp/defines.sed $tmp/in >$tmp/out
29824   rm -f $tmp/in
29825   mv $tmp/out $tmp/in
29826 ' >>$CONFIG_STATUS
29827   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29828   rm -f conftest.defines
29829   mv conftest.tail conftest.defines
29830 done
29831 rm -f conftest.defines
29832 echo '  fi # grep' >>$CONFIG_STATUS
29833 echo >>$CONFIG_STATUS
29834
29835 # Break up conftest.undefs because some shells have a limit on the size
29836 # of here documents, and old seds have small limits too (100 cmds).
29837 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
29838 rm -f conftest.tail
29839 while grep . conftest.undefs >/dev/null
29840 do
29841   # Write a limited-size here document to $tmp/undefs.sed.
29842   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29843   # Speed up: don't consider the non `#undef'
29844   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
29845   # Work around the forget-to-reset-the-flag bug.
29846   echo 't clr' >>$CONFIG_STATUS
29847   echo ': clr' >>$CONFIG_STATUS
29848   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29849   echo 'CEOF
29850   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29851   rm -f $tmp/in
29852   mv $tmp/out $tmp/in
29853 ' >>$CONFIG_STATUS
29854   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29855   rm -f conftest.undefs
29856   mv conftest.tail conftest.undefs
29857 done
29858 rm -f conftest.undefs
29859
29860 cat >>$CONFIG_STATUS <<\_ACEOF
29861   # Let's still pretend it is `configure' which instantiates (i.e., don't
29862   # use $as_me), people would be surprised to read:
29863   #    /* config.h.  Generated by config.status.  */
29864   if test x"$ac_file" = x-; then
29865     echo "/* Generated by configure.  */" >$tmp/config.h
29866   else
29867     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
29868   fi
29869   cat $tmp/in >>$tmp/config.h
29870   rm -f $tmp/in
29871   if test x"$ac_file" != x-; then
29872     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29873       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29874 echo "$as_me: $ac_file is unchanged" >&6;}
29875     else
29876       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29878          X"$ac_file" : 'X\(//\)[^/]' \| \
29879          X"$ac_file" : 'X\(//\)$' \| \
29880          X"$ac_file" : 'X\(/\)' \| \
29881          .     : '\(.\)' 2>/dev/null ||
29882 echo X"$ac_file" |
29883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29885           /^X\(\/\/\)$/{ s//\1/; q; }
29886           /^X\(\/\).*/{ s//\1/; q; }
29887           s/.*/./; q'`
29888       { if $as_mkdir_p; then
29889     mkdir -p "$ac_dir"
29890   else
29891     as_dir="$ac_dir"
29892     as_dirs=
29893     while test ! -d "$as_dir"; do
29894       as_dirs="$as_dir $as_dirs"
29895       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29897          X"$as_dir" : 'X\(//\)[^/]' \| \
29898          X"$as_dir" : 'X\(//\)$' \| \
29899          X"$as_dir" : 'X\(/\)' \| \
29900          .     : '\(.\)' 2>/dev/null ||
29901 echo X"$as_dir" |
29902     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29903           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29904           /^X\(\/\/\)$/{ s//\1/; q; }
29905           /^X\(\/\).*/{ s//\1/; q; }
29906           s/.*/./; q'`
29907     done
29908     test ! -n "$as_dirs" || mkdir $as_dirs
29909   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29910 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29911    { (exit 1); exit 1; }; }; }
29912
29913       rm -f $ac_file
29914       mv $tmp/config.h $ac_file
29915     fi
29916   else
29917     cat $tmp/config.h
29918     rm -f $tmp/config.h
29919   fi
29920 # Compute $ac_file's index in $config_headers.
29921 _am_stamp_count=1
29922 for _am_header in $config_headers :; do
29923   case $_am_header in
29924     $ac_file | $ac_file:* )
29925       break ;;
29926     * )
29927       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29928   esac
29929 done
29930 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29931 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29932          X$ac_file : 'X\(//\)[^/]' \| \
29933          X$ac_file : 'X\(//\)$' \| \
29934          X$ac_file : 'X\(/\)' \| \
29935          .     : '\(.\)' 2>/dev/null ||
29936 echo X$ac_file |
29937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29938           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29939           /^X\(\/\/\)$/{ s//\1/; q; }
29940           /^X\(\/\).*/{ s//\1/; q; }
29941           s/.*/./; q'`/stamp-h$_am_stamp_count
29942 done
29943 _ACEOF
29944 cat >>$CONFIG_STATUS <<\_ACEOF
29945
29946 #
29947 # CONFIG_COMMANDS section.
29948 #
29949 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29950   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29951   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29952   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29953 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29954          X"$ac_dest" : 'X\(//\)[^/]' \| \
29955          X"$ac_dest" : 'X\(//\)$' \| \
29956          X"$ac_dest" : 'X\(/\)' \| \
29957          .     : '\(.\)' 2>/dev/null ||
29958 echo X"$ac_dest" |
29959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29960           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29961           /^X\(\/\/\)$/{ s//\1/; q; }
29962           /^X\(\/\).*/{ s//\1/; q; }
29963           s/.*/./; q'`
29964   { if $as_mkdir_p; then
29965     mkdir -p "$ac_dir"
29966   else
29967     as_dir="$ac_dir"
29968     as_dirs=
29969     while test ! -d "$as_dir"; do
29970       as_dirs="$as_dir $as_dirs"
29971       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29972 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29973          X"$as_dir" : 'X\(//\)[^/]' \| \
29974          X"$as_dir" : 'X\(//\)$' \| \
29975          X"$as_dir" : 'X\(/\)' \| \
29976          .     : '\(.\)' 2>/dev/null ||
29977 echo X"$as_dir" |
29978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29979           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29980           /^X\(\/\/\)$/{ s//\1/; q; }
29981           /^X\(\/\).*/{ s//\1/; q; }
29982           s/.*/./; q'`
29983     done
29984     test ! -n "$as_dirs" || mkdir $as_dirs
29985   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29986 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29987    { (exit 1); exit 1; }; }; }
29988
29989   ac_builddir=.
29990
29991 if test "$ac_dir" != .; then
29992   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29993   # A "../" for each directory in $ac_dir_suffix.
29994   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29995 else
29996   ac_dir_suffix= ac_top_builddir=
29997 fi
29998
29999 case $srcdir in
30000   .)  # No --srcdir option.  We are building in place.
30001     ac_srcdir=.
30002     if test -z "$ac_top_builddir"; then
30003        ac_top_srcdir=.
30004     else
30005        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30006     fi ;;
30007   [\\/]* | ?:[\\/]* )  # Absolute path.
30008     ac_srcdir=$srcdir$ac_dir_suffix;
30009     ac_top_srcdir=$srcdir ;;
30010   *) # Relative path.
30011     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30012     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30013 esac
30014
30015 # Do not use `cd foo && pwd` to compute absolute paths, because
30016 # the directories may not exist.
30017 case `pwd` in
30018 .) ac_abs_builddir="$ac_dir";;
30019 *)
30020   case "$ac_dir" in
30021   .) ac_abs_builddir=`pwd`;;
30022   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30023   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30024   esac;;
30025 esac
30026 case $ac_abs_builddir in
30027 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30028 *)
30029   case ${ac_top_builddir}. in
30030   .) ac_abs_top_builddir=$ac_abs_builddir;;
30031   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30032   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30033   esac;;
30034 esac
30035 case $ac_abs_builddir in
30036 .) ac_abs_srcdir=$ac_srcdir;;
30037 *)
30038   case $ac_srcdir in
30039   .) ac_abs_srcdir=$ac_abs_builddir;;
30040   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30041   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30042   esac;;
30043 esac
30044 case $ac_abs_builddir in
30045 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30046 *)
30047   case $ac_top_srcdir in
30048   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30049   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30050   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30051   esac;;
30052 esac
30053
30054
30055   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30056 echo "$as_me: executing $ac_dest commands" >&6;}
30057   case $ac_dest in
30058     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30059   # Strip MF so we end up with the name of the file.
30060   mf=`echo "$mf" | sed -e 's/:.*$//'`
30061   # Check whether this is an Automake generated Makefile or not.
30062   # We used to match only the files named `Makefile.in', but
30063   # some people rename them; so instead we look at the file content.
30064   # Grep'ing the first line is not enough: some people post-process
30065   # each Makefile.in and add a new line on top of each file to say so.
30066   # So let's grep whole file.
30067   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30068     dirpart=`(dirname "$mf") 2>/dev/null ||
30069 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30070          X"$mf" : 'X\(//\)[^/]' \| \
30071          X"$mf" : 'X\(//\)$' \| \
30072          X"$mf" : 'X\(/\)' \| \
30073          .     : '\(.\)' 2>/dev/null ||
30074 echo X"$mf" |
30075     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30076           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30077           /^X\(\/\/\)$/{ s//\1/; q; }
30078           /^X\(\/\).*/{ s//\1/; q; }
30079           s/.*/./; q'`
30080   else
30081     continue
30082   fi
30083   # Extract the definition of DEPDIR, am__include, and am__quote
30084   # from the Makefile without running `make'.
30085   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30086   test -z "$DEPDIR" && continue
30087   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30088   test -z "am__include" && continue
30089   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30090   # When using ansi2knr, U may be empty or an underscore; expand it
30091   U=`sed -n 's/^U = //p' < "$mf"`
30092   # Find all dependency output files, they are included files with
30093   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30094   # simplest approach to changing $(DEPDIR) to its actual value in the
30095   # expansion.
30096   for file in `sed -n "
30097     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30098        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30099     # Make sure the directory exists.
30100     test -f "$dirpart/$file" && continue
30101     fdir=`(dirname "$file") 2>/dev/null ||
30102 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30103          X"$file" : 'X\(//\)[^/]' \| \
30104          X"$file" : 'X\(//\)$' \| \
30105          X"$file" : 'X\(/\)' \| \
30106          .     : '\(.\)' 2>/dev/null ||
30107 echo X"$file" |
30108     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30109           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30110           /^X\(\/\/\)$/{ s//\1/; q; }
30111           /^X\(\/\).*/{ s//\1/; q; }
30112           s/.*/./; q'`
30113     { if $as_mkdir_p; then
30114     mkdir -p $dirpart/$fdir
30115   else
30116     as_dir=$dirpart/$fdir
30117     as_dirs=
30118     while test ! -d "$as_dir"; do
30119       as_dirs="$as_dir $as_dirs"
30120       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30122          X"$as_dir" : 'X\(//\)[^/]' \| \
30123          X"$as_dir" : 'X\(//\)$' \| \
30124          X"$as_dir" : 'X\(/\)' \| \
30125          .     : '\(.\)' 2>/dev/null ||
30126 echo X"$as_dir" |
30127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30128           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30129           /^X\(\/\/\)$/{ s//\1/; q; }
30130           /^X\(\/\).*/{ s//\1/; q; }
30131           s/.*/./; q'`
30132     done
30133     test ! -n "$as_dirs" || mkdir $as_dirs
30134   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30135 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30136    { (exit 1); exit 1; }; }; }
30137
30138     # echo "creating $dirpart/$file"
30139     echo '# dummy' > "$dirpart/$file"
30140   done
30141 done
30142  ;;
30143   esac
30144 done
30145 _ACEOF
30146
30147 cat >>$CONFIG_STATUS <<\_ACEOF
30148
30149 { (exit 0); exit 0; }
30150 _ACEOF
30151 chmod +x $CONFIG_STATUS
30152 ac_clean_files=$ac_clean_files_save
30153
30154
30155 # configure is writing to config.log, and then calls config.status.
30156 # config.status does its own redirection, appending to config.log.
30157 # Unfortunately, on DOS this fails, as config.log is still kept open
30158 # by configure, so config.status won't be able to write to it; its
30159 # output is simply discarded.  So we exec the FD to /dev/null,
30160 # effectively closing config.log, so it can be properly (re)opened and
30161 # appended to by config.status.  When coming back to configure, we
30162 # need to make the FD available again.
30163 if test "$no_create" != yes; then
30164   ac_cs_success=:
30165   ac_config_status_args=
30166   test "$silent" = yes &&
30167     ac_config_status_args="$ac_config_status_args --quiet"
30168   exec 5>/dev/null
30169   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30170   exec 5>>config.log
30171   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30172   # would make configure fail if this is the last instruction.
30173   $ac_cs_success || { (exit 1); exit 1; }
30174 fi
30175