re PR java/32098 (New libtool doesn't support libjava)
[gcc.git] / libjava / classpath / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Classpath 0.94-pre.
4 #
5 # Report bugs to <classpath@gnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$lt_ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255 esac
256
257 ECHO=${lt_ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $ECHO works!
266 :
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<_LT_EOF
276 $*
277 _LT_EOF
278 exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$lt_ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
291 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
292 then
293 break
294 fi
295 done
296 fi
297
298 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302 else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
311 IFS="$lt_save_ifs"
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 ECHO="$dir/echo"
317 break
318 fi
319 done
320 IFS="$lt_save_ifs"
321
322 if test "X$ECHO" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 ECHO='print -r'
329 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 ECHO='printf %s\n'
340 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 ECHO="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 ECHO="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 ECHO=echo
378 fi
379 fi
380 fi
381 fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 lt_ECHO=$ECHO
388 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 # Name of the host.
396 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
397 # so uname gets run too.
398 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
399
400 exec 6>&1
401
402 #
403 # Initializations.
404 #
405 ac_default_prefix=/usr/local
406 ac_config_libobj_dir=.
407 cross_compiling=no
408 subdirs=
409 MFLAGS=
410 MAKEFLAGS=
411 SHELL=${CONFIG_SHELL-/bin/sh}
412
413 # Maximum number of lines to put in a shell here document.
414 # This variable seems obsolete. It should probably be removed, and
415 # only ac_max_sed_lines should be used.
416 : ${ac_max_here_lines=38}
417
418 # Identity of this package.
419 PACKAGE_NAME='GNU Classpath'
420 PACKAGE_TARNAME='classpath'
421 PACKAGE_VERSION='0.94-pre'
422 PACKAGE_STRING='GNU Classpath 0.94-pre'
423 PACKAGE_BUGREPORT='classpath@gnu.org'
424
425 ac_unique_file="java/lang/System.java"
426 ac_default_prefix=/usr/local/classpath
427 # Factoring default headers for most tests.
428 ac_includes_default="\
429 #include <stdio.h>
430 #if HAVE_SYS_TYPES_H
431 # include <sys/types.h>
432 #endif
433 #if HAVE_SYS_STAT_H
434 # include <sys/stat.h>
435 #endif
436 #if STDC_HEADERS
437 # include <stdlib.h>
438 # include <stddef.h>
439 #else
440 # if HAVE_STDLIB_H
441 # include <stdlib.h>
442 # endif
443 #endif
444 #if HAVE_STRING_H
445 # if !STDC_HEADERS && HAVE_MEMORY_H
446 # include <memory.h>
447 # endif
448 # include <string.h>
449 #endif
450 #if HAVE_STRINGS_H
451 # include <strings.h>
452 #endif
453 #if HAVE_INTTYPES_H
454 # include <inttypes.h>
455 #else
456 # if HAVE_STDINT_H
457 # include <stdint.h>
458 # endif
459 #endif
460 #if HAVE_UNISTD_H
461 # include <unistd.h>
462 #endif"
463
464 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE GENINSRC_TRUE GENINSRC_FALSE multi_basedir LIBVERSION CLASSPATH_MODULE CLASSPATH_CONVENIENCE 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 CREATE_COLLECTIONS_TRUE CREATE_COLLECTIONS_FALSE CREATE_JNI_LIBRARIES_TRUE CREATE_JNI_LIBRARIES_FALSE CREATE_CORE_JNI_LIBRARIES_TRUE CREATE_CORE_JNI_LIBRARIES_FALSE CREATE_GCONF_PEER_LIBRARIES_TRUE CREATE_GCONF_PEER_LIBRARIES_FALSE default_toolkit CREATE_XMLJ_LIBRARY_TRUE CREATE_XMLJ_LIBRARY_FALSE 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 CPP EGREP CREATE_ALSA_LIBRARIES_TRUE CREATE_ALSA_LIBRARIES_FALSE CREATE_DSSI_LIBRARIES_TRUE CREATE_DSSI_LIBRARIES_FALSE CREATE_GTK_PEER_LIBRARIES_TRUE CREATE_GTK_PEER_LIBRARIES_FALSE CREATE_QT_PEER_LIBRARIES_TRUE CREATE_QT_PEER_LIBRARIES_FALSE CREATE_PLUGIN_TRUE CREATE_PLUGIN_FALSE toolexeclibdir nativeexeclibdir glibjdir VM_BINARY FOUND_CACAO_TRUE FOUND_CACAO_FALSE CREATE_JNI_HEADERS_TRUE CREATE_JNI_HEADERS_FALSE CREATE_WRAPPERS_TRUE CREATE_WRAPPERS_FALSE LN_S LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP PERL COLLECTIONS_PREFIX LIBMAGIC LIBICONV LTLIBICONV WARNING_CFLAGS STRICT_WARNING_CFLAGS ERROR_CFLAGS PKG_CONFIG XML_CFLAGS XML_LIBS XSLT_CFLAGS XSLT_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CFLAGS GTK_LIBS FREETYPE2_CFLAGS FREETYPE2_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS XTEST_LIBS GCONF_CFLAGS GCONF_LIBS GDK_CFLAGS GDK_LIBS QT_CFLAGS QT_LIBS MOC MOZILLA_CFLAGS MOZILLA_LIBS GLIB_CFLAGS GLIB_LIBS PLUGIN_DIR USER_JAVAH USER_SPECIFIED_JAVAH_TRUE USER_SPECIFIED_JAVAH_FALSE CLASSPATH_INCLUDES GCJ JIKES JIKESENCODING JIKESWARNINGS KJC GCJX ECJ FOUND_GCJ_TRUE FOUND_GCJ_FALSE FOUND_JIKES_TRUE FOUND_JIKES_FALSE FOUND_ECJ_TRUE FOUND_ECJ_FALSE FOUND_KJC_TRUE FOUND_KJC_FALSE FOUND_GCJX_TRUE FOUND_GCJX_FALSE USER_CLASSLIB USER_SPECIFIED_CLASSLIB_TRUE USER_SPECIFIED_CLASSLIB_FALSE vm_classes MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBDEBUG INIT_LOAD_LIBRARY ECJ_JAR JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION REMOVE MKDIR CP DATE FIND ZIP FASTJAR INSTALL_GLIBJ_ZIP_TRUE INSTALL_GLIBJ_ZIP_FALSE INSTALL_CLASS_FILES_TRUE INSTALL_CLASS_FILES_FALSE BUILD_CLASS_FILES_TRUE BUILD_CLASS_FILES_FALSE EXAMPLESDIR GJDOC CREATE_API_DOCS_TRUE CREATE_API_DOCS_FALSE JAY JAY_SKELETON REGEN_PARSERS_TRUE REGEN_PARSERS_FALSE USE_PREBUILT_GLIBJ_ZIP_TRUE USE_PREBUILT_GLIBJ_ZIP_FALSE PATH_TO_GLIBJ_ZIP USE_ESCHER_TRUE USE_ESCHER_FALSE PATH_TO_ESCHER ENABLE_LOCAL_SOCKETS_TRUE ENABLE_LOCAL_SOCKETS_FALSE DEFAULT_PREFS_PEER LIBOBJS LTLIBOBJS'
465 ac_subst_files=''
466
467 # Initialize some variables set by options.
468 ac_init_help=
469 ac_init_version=false
470 # The variables have the same names as the options, with
471 # dashes changed to underlines.
472 cache_file=/dev/null
473 exec_prefix=NONE
474 no_create=
475 no_recursion=
476 prefix=NONE
477 program_prefix=NONE
478 program_suffix=NONE
479 program_transform_name=s,x,x,
480 silent=
481 site=
482 srcdir=
483 verbose=
484 x_includes=NONE
485 x_libraries=NONE
486
487 # Installation directory options.
488 # These are left unexpanded so users can "make install exec_prefix=/foo"
489 # and all the variables that are supposed to be based on exec_prefix
490 # by default will actually change.
491 # Use braces instead of parens because sh, perl, etc. also accept them.
492 bindir='${exec_prefix}/bin'
493 sbindir='${exec_prefix}/sbin'
494 libexecdir='${exec_prefix}/libexec'
495 datadir='${prefix}/share'
496 sysconfdir='${prefix}/etc'
497 sharedstatedir='${prefix}/com'
498 localstatedir='${prefix}/var'
499 libdir='${exec_prefix}/lib'
500 includedir='${prefix}/include'
501 oldincludedir='/usr/include'
502 infodir='${prefix}/info'
503 mandir='${prefix}/man'
504
505 ac_prev=
506 for ac_option
507 do
508 # If the previous option needs an argument, assign it.
509 if test -n "$ac_prev"; then
510 eval "$ac_prev=\$ac_option"
511 ac_prev=
512 continue
513 fi
514
515 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
516
517 # Accept the important Cygnus configure options, so we can diagnose typos.
518
519 case $ac_option in
520
521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
522 ac_prev=bindir ;;
523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 bindir=$ac_optarg ;;
525
526 -build | --build | --buil | --bui | --bu)
527 ac_prev=build_alias ;;
528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
529 build_alias=$ac_optarg ;;
530
531 -cache-file | --cache-file | --cache-fil | --cache-fi \
532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533 ac_prev=cache_file ;;
534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
536 cache_file=$ac_optarg ;;
537
538 --config-cache | -C)
539 cache_file=config.cache ;;
540
541 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542 ac_prev=datadir ;;
543 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544 | --da=*)
545 datadir=$ac_optarg ;;
546
547 -disable-* | --disable-*)
548 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
549 # Reject names that are not valid shell variable names.
550 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
551 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
552 { (exit 1); exit 1; }; }
553 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
554 eval "enable_$ac_feature=no" ;;
555
556 -enable-* | --enable-*)
557 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561 { (exit 1); exit 1; }; }
562 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563 case $ac_option in
564 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 *) ac_optarg=yes ;;
566 esac
567 eval "enable_$ac_feature='$ac_optarg'" ;;
568
569 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571 | --exec | --exe | --ex)
572 ac_prev=exec_prefix ;;
573 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575 | --exec=* | --exe=* | --ex=*)
576 exec_prefix=$ac_optarg ;;
577
578 -gas | --gas | --ga | --g)
579 # Obsolete; use --with-gas.
580 with_gas=yes ;;
581
582 -help | --help | --hel | --he | -h)
583 ac_init_help=long ;;
584 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
585 ac_init_help=recursive ;;
586 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
587 ac_init_help=short ;;
588
589 -host | --host | --hos | --ho)
590 ac_prev=host_alias ;;
591 -host=* | --host=* | --hos=* | --ho=*)
592 host_alias=$ac_optarg ;;
593
594 -includedir | --includedir | --includedi | --included | --include \
595 | --includ | --inclu | --incl | --inc)
596 ac_prev=includedir ;;
597 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
598 | --includ=* | --inclu=* | --incl=* | --inc=*)
599 includedir=$ac_optarg ;;
600
601 -infodir | --infodir | --infodi | --infod | --info | --inf)
602 ac_prev=infodir ;;
603 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
604 infodir=$ac_optarg ;;
605
606 -libdir | --libdir | --libdi | --libd)
607 ac_prev=libdir ;;
608 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 libdir=$ac_optarg ;;
610
611 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
612 | --libexe | --libex | --libe)
613 ac_prev=libexecdir ;;
614 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
615 | --libexe=* | --libex=* | --libe=*)
616 libexecdir=$ac_optarg ;;
617
618 -localstatedir | --localstatedir | --localstatedi | --localstated \
619 | --localstate | --localstat | --localsta | --localst \
620 | --locals | --local | --loca | --loc | --lo)
621 ac_prev=localstatedir ;;
622 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
623 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
624 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
625 localstatedir=$ac_optarg ;;
626
627 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
628 ac_prev=mandir ;;
629 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 mandir=$ac_optarg ;;
631
632 -nfp | --nfp | --nf)
633 # Obsolete; use --without-fp.
634 with_fp=no ;;
635
636 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
637 | --no-cr | --no-c | -n)
638 no_create=yes ;;
639
640 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
641 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 no_recursion=yes ;;
643
644 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
645 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
646 | --oldin | --oldi | --old | --ol | --o)
647 ac_prev=oldincludedir ;;
648 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
649 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
650 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
651 oldincludedir=$ac_optarg ;;
652
653 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
654 ac_prev=prefix ;;
655 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 prefix=$ac_optarg ;;
657
658 -program-prefix | --program-prefix | --program-prefi | --program-pref \
659 | --program-pre | --program-pr | --program-p)
660 ac_prev=program_prefix ;;
661 -program-prefix=* | --program-prefix=* | --program-prefi=* \
662 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
663 program_prefix=$ac_optarg ;;
664
665 -program-suffix | --program-suffix | --program-suffi | --program-suff \
666 | --program-suf | --program-su | --program-s)
667 ac_prev=program_suffix ;;
668 -program-suffix=* | --program-suffix=* | --program-suffi=* \
669 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
670 program_suffix=$ac_optarg ;;
671
672 -program-transform-name | --program-transform-name \
673 | --program-transform-nam | --program-transform-na \
674 | --program-transform-n | --program-transform- \
675 | --program-transform | --program-transfor \
676 | --program-transfo | --program-transf \
677 | --program-trans | --program-tran \
678 | --progr-tra | --program-tr | --program-t)
679 ac_prev=program_transform_name ;;
680 -program-transform-name=* | --program-transform-name=* \
681 | --program-transform-nam=* | --program-transform-na=* \
682 | --program-transform-n=* | --program-transform-=* \
683 | --program-transform=* | --program-transfor=* \
684 | --program-transfo=* | --program-transf=* \
685 | --program-trans=* | --program-tran=* \
686 | --progr-tra=* | --program-tr=* | --program-t=*)
687 program_transform_name=$ac_optarg ;;
688
689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
690 | -silent | --silent | --silen | --sile | --sil)
691 silent=yes ;;
692
693 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
694 ac_prev=sbindir ;;
695 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
696 | --sbi=* | --sb=*)
697 sbindir=$ac_optarg ;;
698
699 -sharedstatedir | --sharedstatedir | --sharedstatedi \
700 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
701 | --sharedst | --shareds | --shared | --share | --shar \
702 | --sha | --sh)
703 ac_prev=sharedstatedir ;;
704 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
705 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
706 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
707 | --sha=* | --sh=*)
708 sharedstatedir=$ac_optarg ;;
709
710 -site | --site | --sit)
711 ac_prev=site ;;
712 -site=* | --site=* | --sit=*)
713 site=$ac_optarg ;;
714
715 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
716 ac_prev=srcdir ;;
717 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 srcdir=$ac_optarg ;;
719
720 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
721 | --syscon | --sysco | --sysc | --sys | --sy)
722 ac_prev=sysconfdir ;;
723 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
724 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
725 sysconfdir=$ac_optarg ;;
726
727 -target | --target | --targe | --targ | --tar | --ta | --t)
728 ac_prev=target_alias ;;
729 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
730 target_alias=$ac_optarg ;;
731
732 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 verbose=yes ;;
734
735 -version | --version | --versio | --versi | --vers | -V)
736 ac_init_version=: ;;
737
738 -with-* | --with-*)
739 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
740 # Reject names that are not valid shell variable names.
741 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
742 { echo "$as_me: error: invalid package name: $ac_package" >&2
743 { (exit 1); exit 1; }; }
744 ac_package=`echo $ac_package| sed 's/-/_/g'`
745 case $ac_option in
746 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 *) ac_optarg=yes ;;
748 esac
749 eval "with_$ac_package='$ac_optarg'" ;;
750
751 -without-* | --without-*)
752 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package | sed 's/-/_/g'`
758 eval "with_$ac_package=no" ;;
759
760 --x)
761 # Obsolete; use --with-x.
762 with_x=yes ;;
763
764 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
765 | --x-incl | --x-inc | --x-in | --x-i)
766 ac_prev=x_includes ;;
767 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
768 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
769 x_includes=$ac_optarg ;;
770
771 -x-libraries | --x-libraries | --x-librarie | --x-librari \
772 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
773 ac_prev=x_libraries ;;
774 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
775 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
776 x_libraries=$ac_optarg ;;
777
778 -*) { echo "$as_me: error: unrecognized option: $ac_option
779 Try \`$0 --help' for more information." >&2
780 { (exit 1); exit 1; }; }
781 ;;
782
783 *=*)
784 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
785 # Reject names that are not valid shell variable names.
786 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
787 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
788 { (exit 1); exit 1; }; }
789 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
790 eval "$ac_envvar='$ac_optarg'"
791 export $ac_envvar ;;
792
793 *)
794 # FIXME: should be removed in autoconf 3.0.
795 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
796 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
797 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
798 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 ;;
800
801 esac
802 done
803
804 if test -n "$ac_prev"; then
805 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
806 { echo "$as_me: error: missing argument to $ac_option" >&2
807 { (exit 1); exit 1; }; }
808 fi
809
810 # Be sure to have absolute paths.
811 for ac_var in exec_prefix prefix
812 do
813 eval ac_val=$`echo $ac_var`
814 case $ac_val in
815 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
816 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
817 { (exit 1); exit 1; }; };;
818 esac
819 done
820
821 # Be sure to have absolute paths.
822 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
823 localstatedir libdir includedir oldincludedir infodir mandir
824 do
825 eval ac_val=$`echo $ac_var`
826 case $ac_val in
827 [\\/$]* | ?:[\\/]* ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
830 esac
831 done
832
833 # There might be people who depend on the old broken behavior: `$host'
834 # used to hold the argument of --host etc.
835 # FIXME: To remove some day.
836 build=$build_alias
837 host=$host_alias
838 target=$target_alias
839
840 # FIXME: To remove some day.
841 if test "x$host_alias" != x; then
842 if test "x$build_alias" = x; then
843 cross_compiling=maybe
844 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
845 If a cross compiler is detected then cross compile mode will be used." >&2
846 elif test "x$build_alias" != "x$host_alias"; then
847 cross_compiling=yes
848 fi
849 fi
850
851 ac_tool_prefix=
852 test -n "$host_alias" && ac_tool_prefix=$host_alias-
853
854 test "$silent" = yes && exec 6>/dev/null
855
856
857 # Find the source files, if location was not specified.
858 if test -z "$srcdir"; then
859 ac_srcdir_defaulted=yes
860 # Try the directory containing this script, then its parent.
861 ac_confdir=`(dirname "$0") 2>/dev/null ||
862 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
863 X"$0" : 'X\(//\)[^/]' \| \
864 X"$0" : 'X\(//\)$' \| \
865 X"$0" : 'X\(/\)' \| \
866 . : '\(.\)' 2>/dev/null ||
867 echo X"$0" |
868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
870 /^X\(\/\/\)$/{ s//\1/; q; }
871 /^X\(\/\).*/{ s//\1/; q; }
872 s/.*/./; q'`
873 srcdir=$ac_confdir
874 if test ! -r $srcdir/$ac_unique_file; then
875 srcdir=..
876 fi
877 else
878 ac_srcdir_defaulted=no
879 fi
880 if test ! -r $srcdir/$ac_unique_file; then
881 if test "$ac_srcdir_defaulted" = yes; then
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
883 { (exit 1); exit 1; }; }
884 else
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
886 { (exit 1); exit 1; }; }
887 fi
888 fi
889 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
890 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
891 { (exit 1); exit 1; }; }
892 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
893 ac_env_build_alias_set=${build_alias+set}
894 ac_env_build_alias_value=$build_alias
895 ac_cv_env_build_alias_set=${build_alias+set}
896 ac_cv_env_build_alias_value=$build_alias
897 ac_env_host_alias_set=${host_alias+set}
898 ac_env_host_alias_value=$host_alias
899 ac_cv_env_host_alias_set=${host_alias+set}
900 ac_cv_env_host_alias_value=$host_alias
901 ac_env_target_alias_set=${target_alias+set}
902 ac_env_target_alias_value=$target_alias
903 ac_cv_env_target_alias_set=${target_alias+set}
904 ac_cv_env_target_alias_value=$target_alias
905 ac_env_CC_set=${CC+set}
906 ac_env_CC_value=$CC
907 ac_cv_env_CC_set=${CC+set}
908 ac_cv_env_CC_value=$CC
909 ac_env_CFLAGS_set=${CFLAGS+set}
910 ac_env_CFLAGS_value=$CFLAGS
911 ac_cv_env_CFLAGS_set=${CFLAGS+set}
912 ac_cv_env_CFLAGS_value=$CFLAGS
913 ac_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_env_LDFLAGS_value=$LDFLAGS
915 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_cv_env_LDFLAGS_value=$LDFLAGS
917 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_env_CPPFLAGS_value=$CPPFLAGS
919 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
921 ac_env_CPP_set=${CPP+set}
922 ac_env_CPP_value=$CPP
923 ac_cv_env_CPP_set=${CPP+set}
924 ac_cv_env_CPP_value=$CPP
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CXXCPP_set=${CXXCPP+set}
934 ac_env_CXXCPP_value=$CXXCPP
935 ac_cv_env_CXXCPP_set=${CXXCPP+set}
936 ac_cv_env_CXXCPP_value=$CXXCPP
937
938 #
939 # Report the --help message.
940 #
941 if test "$ac_init_help" = "long"; then
942 # Omit some internal or obsolete options to make the list less imposing.
943 # This message is too long to be a string in the A/UX 3.1 sh.
944 cat <<_ACEOF
945 \`configure' configures GNU Classpath 0.94-pre to adapt to many kinds of systems.
946
947 Usage: $0 [OPTION]... [VAR=VALUE]...
948
949 To assign environment variables (e.g., CC, CFLAGS...), specify them as
950 VAR=VALUE. See below for descriptions of some of the useful variables.
951
952 Defaults for the options are specified in brackets.
953
954 Configuration:
955 -h, --help display this help and exit
956 --help=short display options specific to this package
957 --help=recursive display the short help of all the included packages
958 -V, --version display version information and exit
959 -q, --quiet, --silent do not print \`checking...' messages
960 --cache-file=FILE cache test results in FILE [disabled]
961 -C, --config-cache alias for \`--cache-file=config.cache'
962 -n, --no-create do not create output files
963 --srcdir=DIR find the sources in DIR [configure dir or \`..']
964
965 _ACEOF
966
967 cat <<_ACEOF
968 Installation directories:
969 --prefix=PREFIX install architecture-independent files in PREFIX
970 [$ac_default_prefix]
971 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
972 [PREFIX]
973
974 By default, \`make install' will install all the files in
975 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
976 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
977 for instance \`--prefix=\$HOME'.
978
979 For better control, use the options below.
980
981 Fine tuning of the installation directories:
982 --bindir=DIR user executables [EPREFIX/bin]
983 --sbindir=DIR system admin executables [EPREFIX/sbin]
984 --libexecdir=DIR program executables [EPREFIX/libexec]
985 --datadir=DIR read-only architecture-independent data [PREFIX/share]
986 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
987 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
988 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
989 --libdir=DIR object code libraries [EPREFIX/lib]
990 --includedir=DIR C header files [PREFIX/include]
991 --oldincludedir=DIR C header files for non-gcc [/usr/include]
992 --infodir=DIR info documentation [PREFIX/info]
993 --mandir=DIR man documentation [PREFIX/man]
994 _ACEOF
995
996 cat <<\_ACEOF
997
998 Program names:
999 --program-prefix=PREFIX prepend PREFIX to installed program names
1000 --program-suffix=SUFFIX append SUFFIX to installed program names
1001 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1002
1003 X features:
1004 --x-includes=DIR X include files are in DIR
1005 --x-libraries=DIR X library files are in DIR
1006
1007 System types:
1008 --build=BUILD configure for building on BUILD [guessed]
1009 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1010 --target=TARGET configure for building compilers for TARGET [HOST]
1011 _ACEOF
1012 fi
1013
1014 if test -n "$ac_init_help"; then
1015 case $ac_init_help in
1016 short | recursive ) echo "Configuration of GNU Classpath 0.94-pre:";;
1017 esac
1018 cat <<\_ACEOF
1019
1020 Optional Features:
1021 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1022 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1023 --enable-java-maintainer-mode
1024 allow rebuilding of .class and .h files
1025 --enable-generated-files-in-srcdir
1026 put copies of generated files in source dir
1027 intended for creating source tarballs for users
1028 without texinfo, perl, bison or flex.
1029 --enable-multilib build many library versions (default)
1030 --enable-collections create collections.jar default=no
1031 --enable-jni compile JNI source default=yes
1032 --enable-core-jni compile JNI sources for core default=yes
1033 --enable-default-preferences-peer[=peer type or class name]
1034 specify one of: "gconf" [default] for a GConf based
1035 backend, "file" for a file based one, "memory" for a
1036 transient one, or a fully qualified class name
1037 implementing java.util.prefs.PreferencesFactory
1038 --disable-gconf-peer compile GConf native peers (disabled by
1039 --disable-jni) default=yes
1040
1041 --enable-Werror whether to compile C code with -Werror which turns
1042 any compiler warning into a compilation failure
1043 default=no
1044 --enable-default-toolkit
1045 fully qualified class name of default AWT toolkit
1046 --enable-xmlj compile native libxml/xslt library default=no
1047 --disable-alsa compile ALSA providers (enable by --enable-alsa)
1048 default=yes
1049 --disable-dependency-tracking speeds up one-time build
1050 --enable-dependency-tracking do not reject slow dependency extractors
1051 --disable-dssi compile DSSI providers (enable by --enable-dssi)
1052 default=yes
1053 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
1054 default=yes
1055 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
1056 default=no
1057 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
1058 default=yes
1059 --enable-regen-headers automatically regenerate JNI headers default=no
1060 --enable-tool-wrappers create tool wrapper binaries default=no
1061 --enable-static[=PKGS]
1062 build static libraries [default=no]
1063 --enable-shared[=PKGS]
1064 build shared libraries [default=yes]
1065 --enable-fast-install[=PKGS]
1066 optimize for fast installation [default=yes]
1067 --disable-libtool-lock avoid locking (might break parallel builds)
1068 --disable-rpath do not hardcode runtime library paths
1069 --enable-maintainer-mode enable make rules and dependencies not useful
1070 (and sometimes confusing) to the casual installer
1071 --enable-debug enable runtime debugging code
1072 --enable-load-library enable to use JNI native methods default=yes
1073 --enable-java-lang-system-explicit-initialization
1074 will the VM explicitly invoke java.lang.System's
1075 static initialization methods default=no
1076 --enable-examples enable build of the examples default=yes
1077 --enable-portable-native-sync
1078 synchronize VM threads portably
1079 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
1080
1081 Optional Packages:
1082 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1083 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1084 --with-native-libdir sets the installation directory for native libraries
1085 default='${libdir}/${PACKAGE}'
1086 --with-glibj-dir sets the installation directory for glibj.zip
1087 default='${libdir}/${PACKAGE}'
1088 --with-vm sets the VM binary name
1089 default='${prefix}/bin/jamvm'
1090 --with-pic try to use only PIC/non-PIC objects [default=use
1091 both]
1092 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1093 --with-gnu-ld assume the C compiler uses GNU ld default=no
1094 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1095 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1096 --with-x use the X Window System
1097 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
1098 systems use pkg-config.
1099 --with-javah specify path or name of a javah-like program
1100 --with-gcj bytecode compilation with gcj
1101 --with-jikes bytecode compilation with jikes
1102 --with-kjc bytecode compilation with kjc
1103 --with-gcjx bytecode compilation with gcjx
1104 --with-ecj bytecode compilation with ecj
1105 --with-classpath specify path to a classes.zip like file
1106 --with-vm-classes specify path to VM override source files
1107 --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1108 Compiler
1109 --with-fastjar=PATH define to use a fastjar style tool
1110 --with-glibj define what to install (zip|flat|both|none|build)
1111 [default=zip]
1112 --with-gjdoc generate documentation using gjdoc (default is NO)
1113 --with-jay Regenerate the parsers with jay must be given the
1114 path to the jay executable
1115 --with-glibj-zip=ABS.PATH
1116 use prebuilt glibj.zip class library
1117 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1118
1119 Some influential environment variables:
1120 CC C compiler command
1121 CFLAGS C compiler flags
1122 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1123 nonstandard directory <lib dir>
1124 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1125 headers in a nonstandard directory <include dir>
1126 CPP C preprocessor
1127 CXX C++ compiler command
1128 CXXFLAGS C++ compiler flags
1129 CXXCPP C++ preprocessor
1130
1131 Use these variables to override the choices made by `configure' or to help
1132 it to find libraries and programs with nonstandard names/locations.
1133
1134 Report bugs to <classpath@gnu.org>.
1135 _ACEOF
1136 fi
1137
1138 if test "$ac_init_help" = "recursive"; then
1139 # If there are subdirs, report their specific --help.
1140 ac_popdir=`pwd`
1141 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1142 test -d $ac_dir || continue
1143 ac_builddir=.
1144
1145 if test "$ac_dir" != .; then
1146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1147 # A "../" for each directory in $ac_dir_suffix.
1148 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1149 else
1150 ac_dir_suffix= ac_top_builddir=
1151 fi
1152
1153 case $srcdir in
1154 .) # No --srcdir option. We are building in place.
1155 ac_srcdir=.
1156 if test -z "$ac_top_builddir"; then
1157 ac_top_srcdir=.
1158 else
1159 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1160 fi ;;
1161 [\\/]* | ?:[\\/]* ) # Absolute path.
1162 ac_srcdir=$srcdir$ac_dir_suffix;
1163 ac_top_srcdir=$srcdir ;;
1164 *) # Relative path.
1165 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1166 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1167 esac
1168
1169 # Do not use `cd foo && pwd` to compute absolute paths, because
1170 # the directories may not exist.
1171 case `pwd` in
1172 .) ac_abs_builddir="$ac_dir";;
1173 *)
1174 case "$ac_dir" in
1175 .) ac_abs_builddir=`pwd`;;
1176 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1177 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1178 esac;;
1179 esac
1180 case $ac_abs_builddir in
1181 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1182 *)
1183 case ${ac_top_builddir}. in
1184 .) ac_abs_top_builddir=$ac_abs_builddir;;
1185 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1186 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1187 esac;;
1188 esac
1189 case $ac_abs_builddir in
1190 .) ac_abs_srcdir=$ac_srcdir;;
1191 *)
1192 case $ac_srcdir in
1193 .) ac_abs_srcdir=$ac_abs_builddir;;
1194 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1195 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1196 esac;;
1197 esac
1198 case $ac_abs_builddir in
1199 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1200 *)
1201 case $ac_top_srcdir in
1202 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1203 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1204 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1205 esac;;
1206 esac
1207
1208 cd $ac_dir
1209 # Check for guested configure; otherwise get Cygnus style configure.
1210 if test -f $ac_srcdir/configure.gnu; then
1211 echo
1212 $SHELL $ac_srcdir/configure.gnu --help=recursive
1213 elif test -f $ac_srcdir/configure; then
1214 echo
1215 $SHELL $ac_srcdir/configure --help=recursive
1216 elif test -f $ac_srcdir/configure.ac ||
1217 test -f $ac_srcdir/configure.in; then
1218 echo
1219 $ac_configure --help
1220 else
1221 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1222 fi
1223 cd $ac_popdir
1224 done
1225 fi
1226
1227 test -n "$ac_init_help" && exit 0
1228 if $ac_init_version; then
1229 cat <<\_ACEOF
1230 GNU Classpath configure 0.94-pre
1231 generated by GNU Autoconf 2.59
1232
1233 Copyright (C) 2003 Free Software Foundation, Inc.
1234 This configure script is free software; the Free Software Foundation
1235 gives unlimited permission to copy, distribute and modify it.
1236 _ACEOF
1237 exit 0
1238 fi
1239 exec 5>config.log
1240 cat >&5 <<_ACEOF
1241 This file contains any messages produced by compilers while
1242 running configure, to aid debugging if configure makes a mistake.
1243
1244 It was created by GNU Classpath $as_me 0.94-pre, which was
1245 generated by GNU Autoconf 2.59. Invocation command line was
1246
1247 $ $0 $@
1248
1249 _ACEOF
1250 {
1251 cat <<_ASUNAME
1252 ## --------- ##
1253 ## Platform. ##
1254 ## --------- ##
1255
1256 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1257 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1258 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1259 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1260 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1261
1262 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1263 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1264
1265 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1266 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1267 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1268 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1269 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1270 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1271 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1272
1273 _ASUNAME
1274
1275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1276 for as_dir in $PATH
1277 do
1278 IFS=$as_save_IFS
1279 test -z "$as_dir" && as_dir=.
1280 echo "PATH: $as_dir"
1281 done
1282
1283 } >&5
1284
1285 cat >&5 <<_ACEOF
1286
1287
1288 ## ----------- ##
1289 ## Core tests. ##
1290 ## ----------- ##
1291
1292 _ACEOF
1293
1294
1295 # Keep a trace of the command line.
1296 # Strip out --no-create and --no-recursion so they do not pile up.
1297 # Strip out --silent because we don't want to record it for future runs.
1298 # Also quote any args containing shell meta-characters.
1299 # Make two passes to allow for proper duplicate-argument suppression.
1300 ac_configure_args=
1301 ac_configure_args0=
1302 ac_configure_args1=
1303 ac_sep=
1304 ac_must_keep_next=false
1305 for ac_pass in 1 2
1306 do
1307 for ac_arg
1308 do
1309 case $ac_arg in
1310 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1312 | -silent | --silent | --silen | --sile | --sil)
1313 continue ;;
1314 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1315 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1316 esac
1317 case $ac_pass in
1318 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1319 2)
1320 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1321 if test $ac_must_keep_next = true; then
1322 ac_must_keep_next=false # Got value, back to normal.
1323 else
1324 case $ac_arg in
1325 *=* | --config-cache | -C | -disable-* | --disable-* \
1326 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1327 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1328 | -with-* | --with-* | -without-* | --without-* | --x)
1329 case "$ac_configure_args0 " in
1330 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1331 esac
1332 ;;
1333 -* ) ac_must_keep_next=true ;;
1334 esac
1335 fi
1336 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1337 # Get rid of the leading space.
1338 ac_sep=" "
1339 ;;
1340 esac
1341 done
1342 done
1343 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1344 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1345
1346 # When interrupted or exit'd, cleanup temporary files, and complete
1347 # config.log. We remove comments because anyway the quotes in there
1348 # would cause problems or look ugly.
1349 # WARNING: Be sure not to use single quotes in there, as some shells,
1350 # such as our DU 5.0 friend, will then `close' the trap.
1351 trap 'exit_status=$?
1352 # Save into config.log some information that might help in debugging.
1353 {
1354 echo
1355
1356 cat <<\_ASBOX
1357 ## ---------------- ##
1358 ## Cache variables. ##
1359 ## ---------------- ##
1360 _ASBOX
1361 echo
1362 # The following way of writing the cache mishandles newlines in values,
1363 {
1364 (set) 2>&1 |
1365 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1366 *ac_space=\ *)
1367 sed -n \
1368 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1370 ;;
1371 *)
1372 sed -n \
1373 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1374 ;;
1375 esac;
1376 }
1377 echo
1378
1379 cat <<\_ASBOX
1380 ## ----------------- ##
1381 ## Output variables. ##
1382 ## ----------------- ##
1383 _ASBOX
1384 echo
1385 for ac_var in $ac_subst_vars
1386 do
1387 eval ac_val=$`echo $ac_var`
1388 echo "$ac_var='"'"'$ac_val'"'"'"
1389 done | sort
1390 echo
1391
1392 if test -n "$ac_subst_files"; then
1393 cat <<\_ASBOX
1394 ## ------------- ##
1395 ## Output files. ##
1396 ## ------------- ##
1397 _ASBOX
1398 echo
1399 for ac_var in $ac_subst_files
1400 do
1401 eval ac_val=$`echo $ac_var`
1402 echo "$ac_var='"'"'$ac_val'"'"'"
1403 done | sort
1404 echo
1405 fi
1406
1407 if test -s confdefs.h; then
1408 cat <<\_ASBOX
1409 ## ----------- ##
1410 ## confdefs.h. ##
1411 ## ----------- ##
1412 _ASBOX
1413 echo
1414 sed "/^$/d" confdefs.h | sort
1415 echo
1416 fi
1417 test "$ac_signal" != 0 &&
1418 echo "$as_me: caught signal $ac_signal"
1419 echo "$as_me: exit $exit_status"
1420 } >&5
1421 rm -f core *.core &&
1422 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1423 exit $exit_status
1424 ' 0
1425 for ac_signal in 1 2 13 15; do
1426 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1427 done
1428 ac_signal=0
1429
1430 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1431 rm -rf conftest* confdefs.h
1432 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1433 echo >confdefs.h
1434
1435 # Predefined preprocessor variables.
1436
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_NAME "$PACKAGE_NAME"
1439 _ACEOF
1440
1441
1442 cat >>confdefs.h <<_ACEOF
1443 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1444 _ACEOF
1445
1446
1447 cat >>confdefs.h <<_ACEOF
1448 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1449 _ACEOF
1450
1451
1452 cat >>confdefs.h <<_ACEOF
1453 #define PACKAGE_STRING "$PACKAGE_STRING"
1454 _ACEOF
1455
1456
1457 cat >>confdefs.h <<_ACEOF
1458 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1459 _ACEOF
1460
1461
1462 # Let the site file select an alternate cache file if it wants to.
1463 # Prefer explicitly selected file to automatically selected ones.
1464 if test -z "$CONFIG_SITE"; then
1465 if test "x$prefix" != xNONE; then
1466 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1467 else
1468 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1469 fi
1470 fi
1471 for ac_site_file in $CONFIG_SITE; do
1472 if test -r "$ac_site_file"; then
1473 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1474 echo "$as_me: loading site script $ac_site_file" >&6;}
1475 sed 's/^/| /' "$ac_site_file" >&5
1476 . "$ac_site_file"
1477 fi
1478 done
1479
1480 if test -r "$cache_file"; then
1481 # Some versions of bash will fail to source /dev/null (special
1482 # files actually), so we avoid doing that.
1483 if test -f "$cache_file"; then
1484 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1485 echo "$as_me: loading cache $cache_file" >&6;}
1486 case $cache_file in
1487 [\\/]* | ?:[\\/]* ) . $cache_file;;
1488 *) . ./$cache_file;;
1489 esac
1490 fi
1491 else
1492 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1493 echo "$as_me: creating cache $cache_file" >&6;}
1494 >$cache_file
1495 fi
1496
1497 # Check that the precious variables saved in the cache have kept the same
1498 # value.
1499 ac_cache_corrupted=false
1500 for ac_var in `(set) 2>&1 |
1501 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1502 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1503 eval ac_new_set=\$ac_env_${ac_var}_set
1504 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1505 eval ac_new_val="\$ac_env_${ac_var}_value"
1506 case $ac_old_set,$ac_new_set in
1507 set,)
1508 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1509 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1510 ac_cache_corrupted=: ;;
1511 ,set)
1512 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1513 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1514 ac_cache_corrupted=: ;;
1515 ,);;
1516 *)
1517 if test "x$ac_old_val" != "x$ac_new_val"; then
1518 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1519 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1520 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1521 echo "$as_me: former value: $ac_old_val" >&2;}
1522 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1523 echo "$as_me: current value: $ac_new_val" >&2;}
1524 ac_cache_corrupted=:
1525 fi;;
1526 esac
1527 # Pass precious variables to config.status.
1528 if test "$ac_new_set" = set; then
1529 case $ac_new_val in
1530 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1531 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 *) ac_arg=$ac_var=$ac_new_val ;;
1533 esac
1534 case " $ac_configure_args " in
1535 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1536 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1537 esac
1538 fi
1539 done
1540 if $ac_cache_corrupted; then
1541 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1542 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1543 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1544 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1545 { (exit 1); exit 1; }; }
1546 fi
1547
1548 ac_ext=c
1549 ac_cpp='$CPP $CPPFLAGS'
1550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582 ac_aux_dir=
1583 for ac_dir in ../.. $srcdir/../..; do
1584 if test -f $ac_dir/install-sh; then
1585 ac_aux_dir=$ac_dir
1586 ac_install_sh="$ac_aux_dir/install-sh -c"
1587 break
1588 elif test -f $ac_dir/install.sh; then
1589 ac_aux_dir=$ac_dir
1590 ac_install_sh="$ac_aux_dir/install.sh -c"
1591 break
1592 elif test -f $ac_dir/shtool; then
1593 ac_aux_dir=$ac_dir
1594 ac_install_sh="$ac_aux_dir/shtool install -c"
1595 break
1596 fi
1597 done
1598 if test -z "$ac_aux_dir"; then
1599 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&5
1600 echo "$as_me: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&2;}
1601 { (exit 1); exit 1; }; }
1602 fi
1603 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1604 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1605 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1606
1607
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1630
1631 fi
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669 ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687 test "$program_prefix$program_suffix$program_transform_name" = \
1688 NONENONEs,x,x, &&
1689 program_prefix=${target_alias}-
1690
1691 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1692 if test "${enable_java_maintainer_mode+set}" = set; then
1693 enableval="$enable_java_maintainer_mode"
1694
1695 fi;
1696
1697
1698 if test "$enable_java_maintainer_mode" = yes; then
1699 JAVA_MAINTAINER_MODE_TRUE=
1700 JAVA_MAINTAINER_MODE_FALSE='#'
1701 else
1702 JAVA_MAINTAINER_MODE_TRUE='#'
1703 JAVA_MAINTAINER_MODE_FALSE=
1704 fi
1705
1706
1707 # We would like to our source tree to be readonly. However when releases or
1708 # pre-releases are generated, the man pages need to be included as they are
1709 # converted from the texi files via perl which we don't require end users to
1710 # have installed.
1711 # Therefore we have --enable-generated-files-in-srcdir to do just that.
1712
1713 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1714 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1715 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1716 if test "${enable_generated_files_in_srcdir+set}" = set; then
1717 enableval="$enable_generated_files_in_srcdir"
1718 generated_files_in_srcdir=$enableval
1719 else
1720 generated_files_in_srcdir=no
1721 fi;
1722
1723 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1724 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1725
1726
1727 if test x$generated_files_in_srcdir = xyes; then
1728 GENINSRC_TRUE=
1729 GENINSRC_FALSE='#'
1730 else
1731 GENINSRC_TRUE='#'
1732 GENINSRC_FALSE=
1733 fi
1734
1735
1736 # Find the rest of the source tree framework.
1737 # Default to --enable-multilib
1738 # Check whether --enable-multilib or --disable-multilib was given.
1739 if test "${enable_multilib+set}" = set; then
1740 enableval="$enable_multilib"
1741 case "$enableval" in
1742 yes) multilib=yes ;;
1743 no) multilib=no ;;
1744 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1745 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1746 { (exit 1); exit 1; }; } ;;
1747 esac
1748 else
1749 multilib=yes
1750 fi;
1751
1752 # We may get other options which we leave undocumented:
1753 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1754 # See config-ml.in if you want the gory details.
1755
1756 if test "$srcdir" = "."; then
1757 if test "$with_target_subdir" != "."; then
1758 multi_basedir="$srcdir/$with_multisrctop../../.."
1759 else
1760 multi_basedir="$srcdir/$with_multisrctop../.."
1761 fi
1762 else
1763 multi_basedir="$srcdir/../.."
1764 fi
1765
1766
1767 # Even if the default multilib is not a cross compilation,
1768 # it may be that some of the other multilibs are.
1769 if test $cross_compiling = no && test $multilib = yes \
1770 && test "x${with_multisubdir}" != x ; then
1771 cross_compiling=maybe
1772 fi
1773
1774 ac_config_commands="$ac_config_commands default-1"
1775
1776
1777 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1778
1779 LIBVERSION="0:0:0"
1780
1781 case "$host_os" in
1782 darwin*)
1783 cp_module=""
1784 ;;
1785 *)
1786 cp_module="-module"
1787 ;;
1788 esac
1789
1790 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1791
1792
1793 CLASSPATH_CONVENIENCE="-no-undefined"
1794
1795
1796
1797 am__api_version="1.9"
1798 # Find a good install program. We prefer a C program (faster),
1799 # so one script is as good as another. But avoid the broken or
1800 # incompatible versions:
1801 # SysV /etc/install, /usr/sbin/install
1802 # SunOS /usr/etc/install
1803 # IRIX /sbin/install
1804 # AIX /bin/install
1805 # AmigaOS /C/install, which installs bootblocks on floppy discs
1806 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1809 # OS/2's system install, which has a completely different semantic
1810 # ./install, which can be erroneously created by make from ./install.sh.
1811 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1812 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1813 if test -z "$INSTALL"; then
1814 if test "${ac_cv_path_install+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 # Account for people who put trailing slashes in PATH elements.
1823 case $as_dir/ in
1824 ./ | .// | /cC/* | \
1825 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1826 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1827 /usr/ucb/* ) ;;
1828 *)
1829 # OSF1 and SCO ODT 3.0 have their own names for install.
1830 # Don't use installbsd from OSF since it installs stuff as root
1831 # by default.
1832 for ac_prog in ginstall scoinst install; do
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1835 if test $ac_prog = install &&
1836 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1837 # AIX install. It has an incompatible calling convention.
1838 :
1839 elif test $ac_prog = install &&
1840 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1841 # program-specific install script used by HP pwplus--don't use.
1842 :
1843 else
1844 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1845 break 3
1846 fi
1847 fi
1848 done
1849 done
1850 ;;
1851 esac
1852 done
1853
1854
1855 fi
1856 if test "${ac_cv_path_install+set}" = set; then
1857 INSTALL=$ac_cv_path_install
1858 else
1859 # As a last resort, use the slow shell script. We don't cache a
1860 # path for INSTALL within a source directory, because that will
1861 # break other packages using the cache if that directory is
1862 # removed, or if the path is relative.
1863 INSTALL=$ac_install_sh
1864 fi
1865 fi
1866 echo "$as_me:$LINENO: result: $INSTALL" >&5
1867 echo "${ECHO_T}$INSTALL" >&6
1868
1869 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1870 # It thinks the first close brace ends the variable substitution.
1871 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1872
1873 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1874
1875 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1876
1877 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1878 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1879 # Just in case
1880 sleep 1
1881 echo timestamp > conftest.file
1882 # Do `set' in a subshell so we don't clobber the current shell's
1883 # arguments. Must try -L first in case configure is actually a
1884 # symlink; some systems play weird games with the mod time of symlinks
1885 # (eg FreeBSD returns the mod time of the symlink's containing
1886 # directory).
1887 if (
1888 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1889 if test "$*" = "X"; then
1890 # -L didn't work.
1891 set X `ls -t $srcdir/configure conftest.file`
1892 fi
1893 rm -f conftest.file
1894 if test "$*" != "X $srcdir/configure conftest.file" \
1895 && test "$*" != "X conftest.file $srcdir/configure"; then
1896
1897 # If neither matched, then we have a broken ls. This can happen
1898 # if, for instance, CONFIG_SHELL is bash and it inherits a
1899 # broken ls alias from the environment. This has actually
1900 # happened. Such a system could not be considered "sane".
1901 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1902 alias in your environment" >&5
1903 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1904 alias in your environment" >&2;}
1905 { (exit 1); exit 1; }; }
1906 fi
1907
1908 test "$2" = conftest.file
1909 )
1910 then
1911 # Ok.
1912 :
1913 else
1914 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1915 Check your system clock" >&5
1916 echo "$as_me: error: newly created file is older than distributed files!
1917 Check your system clock" >&2;}
1918 { (exit 1); exit 1; }; }
1919 fi
1920 echo "$as_me:$LINENO: result: yes" >&5
1921 echo "${ECHO_T}yes" >&6
1922 test "$program_prefix" != NONE &&
1923 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1924 # Use a double $ so make ignores it.
1925 test "$program_suffix" != NONE &&
1926 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1927 # Double any \ or $. echo might interpret backslashes.
1928 # By default was `s,x,x', remove it if useless.
1929 cat <<\_ACEOF >conftest.sed
1930 s/[\\$]/&&/g;s/;s,x,x,$//
1931 _ACEOF
1932 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1933 rm conftest.sed
1934
1935 # expand $ac_aux_dir to an absolute path
1936 am_aux_dir=`cd $ac_aux_dir && pwd`
1937
1938 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1939 # Use eval to expand $SHELL
1940 if eval "$MISSING --run true"; then
1941 am_missing_run="$MISSING --run "
1942 else
1943 am_missing_run=
1944 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1945 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1946 fi
1947
1948 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1949 # We used to keeping the `.' as first argument, in order to
1950 # allow $(mkdir_p) to be used without argument. As in
1951 # $(mkdir_p) $(somedir)
1952 # where $(somedir) is conditionally defined. However this is wrong
1953 # for two reasons:
1954 # 1. if the package is installed by a user who cannot write `.'
1955 # make install will fail,
1956 # 2. the above comment should most certainly read
1957 # $(mkdir_p) $(DESTDIR)$(somedir)
1958 # so it does not work when $(somedir) is undefined and
1959 # $(DESTDIR) is not.
1960 # To support the latter case, we have to write
1961 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1962 # so the `.' trick is pointless.
1963 mkdir_p='mkdir -p --'
1964 else
1965 # On NextStep and OpenStep, the `mkdir' command does not
1966 # recognize any option. It will interpret all options as
1967 # directories to create, and then abort because `.' already
1968 # exists.
1969 for d in ./-p ./--version;
1970 do
1971 test -d $d && rmdir $d
1972 done
1973 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1974 if test -f "$ac_aux_dir/mkinstalldirs"; then
1975 mkdir_p='$(mkinstalldirs)'
1976 else
1977 mkdir_p='$(install_sh) -d'
1978 fi
1979 fi
1980
1981 for ac_prog in gawk mawk nawk awk
1982 do
1983 # Extract the first word of "$ac_prog", so it can be a program name with args.
1984 set dummy $ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_AWK+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990 if test -n "$AWK"; then
1991 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_AWK="$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2003 fi
2004 done
2005 done
2006
2007 fi
2008 fi
2009 AWK=$ac_cv_prog_AWK
2010 if test -n "$AWK"; then
2011 echo "$as_me:$LINENO: result: $AWK" >&5
2012 echo "${ECHO_T}$AWK" >&6
2013 else
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2016 fi
2017
2018 test -n "$AWK" && break
2019 done
2020
2021 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2022 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2023 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2024 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 cat >conftest.make <<\_ACEOF
2028 all:
2029 @echo 'ac_maketemp="$(MAKE)"'
2030 _ACEOF
2031 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2032 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2033 if test -n "$ac_maketemp"; then
2034 eval ac_cv_prog_make_${ac_make}_set=yes
2035 else
2036 eval ac_cv_prog_make_${ac_make}_set=no
2037 fi
2038 rm -f conftest.make
2039 fi
2040 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2041 echo "$as_me:$LINENO: result: yes" >&5
2042 echo "${ECHO_T}yes" >&6
2043 SET_MAKE=
2044 else
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2047 SET_MAKE="MAKE=${MAKE-make}"
2048 fi
2049
2050 rm -rf .tst 2>/dev/null
2051 mkdir .tst 2>/dev/null
2052 if test -d .tst; then
2053 am__leading_dot=.
2054 else
2055 am__leading_dot=_
2056 fi
2057 rmdir .tst 2>/dev/null
2058
2059 # test to see if srcdir already configured
2060 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2061 test -f $srcdir/config.status; then
2062 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2063 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2064 { (exit 1); exit 1; }; }
2065 fi
2066
2067 # test whether we have cygpath
2068 if test -z "$CYGPATH_W"; then
2069 if (cygpath --version) >/dev/null 2>/dev/null; then
2070 CYGPATH_W='cygpath -w'
2071 else
2072 CYGPATH_W=echo
2073 fi
2074 fi
2075
2076
2077 # Define the identity of the package.
2078 PACKAGE='classpath'
2079 VERSION='0.94-pre'
2080
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE "$PACKAGE"
2084 _ACEOF
2085
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define VERSION "$VERSION"
2089 _ACEOF
2090
2091 # Some tools Automake needs.
2092
2093 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2094
2095
2096 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2097
2098
2099 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2100
2101
2102 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2103
2104
2105 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2106
2107 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2108
2109 # Installed binaries are usually stripped using `strip' when the user
2110 # run `make install-strip'. However `strip' might not be the right
2111 # tool to use in cross-compilation environments, therefore Automake
2112 # will honor the `STRIP' environment variable to overrule this program.
2113 if test "$cross_compiling" != no; then
2114 if test -n "$ac_tool_prefix"; then
2115 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2116 set dummy ${ac_tool_prefix}strip; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_STRIP+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122 if test -n "$STRIP"; then
2123 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2127 do
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 break 2
2135 fi
2136 done
2137 done
2138
2139 fi
2140 fi
2141 STRIP=$ac_cv_prog_STRIP
2142 if test -n "$STRIP"; then
2143 echo "$as_me:$LINENO: result: $STRIP" >&5
2144 echo "${ECHO_T}$STRIP" >&6
2145 else
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2148 fi
2149
2150 fi
2151 if test -z "$ac_cv_prog_STRIP"; then
2152 ac_ct_STRIP=$STRIP
2153 # Extract the first word of "strip", so it can be a program name with args.
2154 set dummy strip; ac_word=$2
2155 echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 if test -n "$ac_ct_STRIP"; then
2161 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170 ac_cv_prog_ac_ct_STRIP="strip"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2173 fi
2174 done
2175 done
2176
2177 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2178 fi
2179 fi
2180 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2181 if test -n "$ac_ct_STRIP"; then
2182 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2183 echo "${ECHO_T}$ac_ct_STRIP" >&6
2184 else
2185 echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6
2187 fi
2188
2189 STRIP=$ac_ct_STRIP
2190 else
2191 STRIP="$ac_cv_prog_STRIP"
2192 fi
2193
2194 fi
2195 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2196
2197 # We need awk for the "check" target. The system "awk" is bad on
2198 # some platforms.
2199 # Always define AMTAR for backward compatibility.
2200
2201 AMTAR=${AMTAR-"${am_missing_run}tar"}
2202
2203
2204 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2205 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
2206 # Loop over all known methods to create a tar archive until one works.
2207 _am_tools='gnutar plaintar pax cpio none'
2208 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2209 # Do not fold the above two line into one, because Tru64 sh and
2210 # Solaris sh will not grok spaces in the rhs of `-'.
2211 for _am_tool in $_am_tools
2212 do
2213 case $_am_tool in
2214 gnutar)
2215 for _am_tar in tar gnutar gtar;
2216 do
2217 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2218 ($_am_tar --version) >&5 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); } && break
2222 done
2223 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2224 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2225 am__untar="$_am_tar -xf -"
2226 ;;
2227 plaintar)
2228 # Must skip GNU tar: if it does not support --format= it doesn't create
2229 # ustar tarball either.
2230 (tar --version) >/dev/null 2>&1 && continue
2231 am__tar='tar chf - "$$tardir"'
2232 am__tar_='tar chf - "$tardir"'
2233 am__untar='tar xf -'
2234 ;;
2235 pax)
2236 am__tar='pax -L -x ustar -w "$$tardir"'
2237 am__tar_='pax -L -x ustar -w "$tardir"'
2238 am__untar='pax -r'
2239 ;;
2240 cpio)
2241 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2242 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2243 am__untar='cpio -i -H ustar -d'
2244 ;;
2245 none)
2246 am__tar=false
2247 am__tar_=false
2248 am__untar=false
2249 ;;
2250 esac
2251
2252 # If the value was cached, stop now. We just wanted to have am__tar
2253 # and am__untar set.
2254 test -n "${am_cv_prog_tar_ustar}" && break
2255
2256 # tar/untar a dummy directory, and stop if the command works
2257 rm -rf conftest.dir
2258 mkdir conftest.dir
2259 echo GrepMe > conftest.dir/file
2260 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2261 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }
2265 rm -rf conftest.dir
2266 if test -s conftest.tar; then
2267 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2268 ($am__untar <conftest.tar) >&5 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2272 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2273 fi
2274 done
2275 rm -rf conftest.dir
2276
2277 if test "${am_cv_prog_tar_ustar+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 am_cv_prog_tar_ustar=$_am_tool
2281 fi
2282
2283 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2284 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2285
2286
2287
2288
2289
2290 ac_config_headers="$ac_config_headers include/config.h"
2291
2292
2293
2294
2295
2296 # Check whether --enable-collections or --disable-collections was given.
2297 if test "${enable_collections+set}" = set; then
2298 enableval="$enable_collections"
2299 case x"${enableval}" in
2300 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2301 xno) COMPILE_COLLECTIONS=no ;;
2302 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2303 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
2304 esac
2305 else
2306 COMPILE_COLLECTIONS=no
2307 fi;
2308
2309
2310 if test "x${COMPILE_COLLECTIONS}" = xyes; then
2311 CREATE_COLLECTIONS_TRUE=
2312 CREATE_COLLECTIONS_FALSE='#'
2313 else
2314 CREATE_COLLECTIONS_TRUE='#'
2315 CREATE_COLLECTIONS_FALSE=
2316 fi
2317
2318
2319 # Check whether --enable-jni or --disable-jni was given.
2320 if test "${enable_jni+set}" = set; then
2321 enableval="$enable_jni"
2322 case "${enableval}" in
2323 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2324 no) COMPILE_JNI=no ;;
2325 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2326 esac
2327 else
2328 COMPILE_JNI=yes
2329 fi;
2330
2331
2332 if test "x${COMPILE_JNI}" = xyes; then
2333 CREATE_JNI_LIBRARIES_TRUE=
2334 CREATE_JNI_LIBRARIES_FALSE='#'
2335 else
2336 CREATE_JNI_LIBRARIES_TRUE='#'
2337 CREATE_JNI_LIBRARIES_FALSE=
2338 fi
2339
2340
2341 # Check whether --enable-core-jni or --disable-core-jni was given.
2342 if test "${enable_core_jni+set}" = set; then
2343 enableval="$enable_core_jni"
2344 case "${enableval}" in
2345 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2346 no) COMPILE_CORE_JNI=no ;;
2347 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2348 esac
2349 else
2350 COMPILE_CORE_JNI=yes
2351 fi;
2352
2353
2354 if test "x${COMPILE_CORE_JNI}" = xyes; then
2355 CREATE_CORE_JNI_LIBRARIES_TRUE=
2356 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2357 else
2358 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2359 CREATE_CORE_JNI_LIBRARIES_FALSE=
2360 fi
2361
2362
2363 # Check whether --enable-default-preferences-peer or --disable-default-preferences-peer was given.
2364 if test "${enable_default_preferences_peer+set}" = set; then
2365 enableval="$enable_default_preferences_peer"
2366 case "${enableval}" in
2367 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
2368 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
2369 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
2370 no|false) { { echo "$as_me:$LINENO: error: bad value '${enableval}' for --enable-default-preferences-peer" >&5
2371 echo "$as_me: error: bad value '${enableval}' for --enable-default-preferences-peer" >&2;}
2372 { (exit 1); exit 1; }; } ;;
2373 *) DEFAULT_PREFS_PEER=${enableval} ;;
2374 esac
2375 else
2376 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
2377 fi;
2378
2379 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
2380 if test "${enable_gconf_peer+set}" = set; then
2381 enableval="$enable_gconf_peer"
2382 case "${enableval}" in
2383 yes) COMPILE_GCONF_PEER=yes ;;
2384 no) COMPILE_GCONF_PEER=no ;;
2385 *) COMPILE_GCONF_PEER=yes ;;
2386 esac
2387 else
2388 COMPILE_GCONF_PEER=yes
2389 fi;
2390
2391
2392 if test "x${COMPILE_GCONF_PEER}" = xyes; then
2393 CREATE_GCONF_PEER_LIBRARIES_TRUE=
2394 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
2395 else
2396 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
2397 CREATE_GCONF_PEER_LIBRARIES_FALSE=
2398 fi
2399
2400
2401 # Check whether --enable-gconf-peers or --disable-gconf-peers was given.
2402 if test "${enable_gconf_peers+set}" = set; then
2403 enableval="$enable_gconf_peers"
2404 { { echo "$as_me:$LINENO: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&5
2405 echo "$as_me: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&2;}
2406 { (exit 1); exit 1; }; }
2407 fi;
2408
2409 # Check whether --enable-Werror or --disable-Werror was given.
2410 if test "${enable_Werror+set}" = set; then
2411 enableval="$enable_Werror"
2412 case "${enableval}" in
2413 yes) ENABLE_WERROR=yes ;;
2414 no) ENABLE_WERROR=no ;;
2415 *) ENABLE_WERROR=default ;;
2416 esac
2417 else
2418 ENABLE_WERROR=default
2419 fi;
2420
2421 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2422 if test "${enable_default_toolkit+set}" = set; then
2423 enableval="$enable_default_toolkit"
2424
2425 fi;
2426 default_toolkit=$enable_default_toolkit
2427 if test "$default_toolkit" = ""; then
2428 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2429 fi
2430
2431
2432 # Check whether --enable-xmlj or --disable-xmlj was given.
2433 if test "${enable_xmlj+set}" = set; then
2434 enableval="$enable_xmlj"
2435 case "${enableval}" in
2436 yes) COMPILE_XMLJ=yes ;;
2437 no) COMPILE_XMLJ=no ;;
2438 *) COMPILE_XMLJ=no ;;
2439 esac
2440 else
2441 COMPILE_XMLJ=no
2442 fi;
2443
2444
2445 if test "x${COMPILE_XMLJ}" = xyes; then
2446 CREATE_XMLJ_LIBRARY_TRUE=
2447 CREATE_XMLJ_LIBRARY_FALSE='#'
2448 else
2449 CREATE_XMLJ_LIBRARY_TRUE='#'
2450 CREATE_XMLJ_LIBRARY_FALSE=
2451 fi
2452
2453
2454 DEPDIR="${am__leading_dot}deps"
2455
2456 ac_config_commands="$ac_config_commands depfiles"
2457
2458
2459 am_make=${MAKE-make}
2460 cat > confinc << 'END'
2461 am__doit:
2462 @echo done
2463 .PHONY: am__doit
2464 END
2465 # If we don't find an include directive, just comment out the code.
2466 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2467 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2468 am__include="#"
2469 am__quote=
2470 _am_result=none
2471 # First try GNU make style include.
2472 echo "include confinc" > confmf
2473 # We grep out `Entering directory' and `Leaving directory'
2474 # messages which can occur if `w' ends up in MAKEFLAGS.
2475 # In particular we don't look at `^make:' because GNU make might
2476 # be invoked under some other name (usually "gmake"), in which
2477 # case it prints its new name instead of `make'.
2478 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2479 am__include=include
2480 am__quote=
2481 _am_result=GNU
2482 fi
2483 # Now try BSD make style include.
2484 if test "$am__include" = "#"; then
2485 echo '.include "confinc"' > confmf
2486 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2487 am__include=.include
2488 am__quote="\""
2489 _am_result=BSD
2490 fi
2491 fi
2492
2493
2494 echo "$as_me:$LINENO: result: $_am_result" >&5
2495 echo "${ECHO_T}$_am_result" >&6
2496 rm -f confinc confmf
2497
2498 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2499 if test "${enable_dependency_tracking+set}" = set; then
2500 enableval="$enable_dependency_tracking"
2501
2502 fi;
2503 if test "x$enable_dependency_tracking" != xno; then
2504 am_depcomp="$ac_aux_dir/depcomp"
2505 AMDEPBACKSLASH='\'
2506 fi
2507
2508
2509 if test "x$enable_dependency_tracking" != xno; then
2510 AMDEP_TRUE=
2511 AMDEP_FALSE='#'
2512 else
2513 AMDEP_TRUE='#'
2514 AMDEP_FALSE=
2515 fi
2516
2517
2518
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 if test -n "$ac_tool_prefix"; then
2525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2527 echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2545 fi
2546 done
2547 done
2548
2549 fi
2550 fi
2551 CC=$ac_cv_prog_CC
2552 if test -n "$CC"; then
2553 echo "$as_me:$LINENO: result: $CC" >&5
2554 echo "${ECHO_T}$CC" >&6
2555 else
2556 echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6
2558 fi
2559
2560 fi
2561 if test -z "$ac_cv_prog_CC"; then
2562 ac_ct_CC=$CC
2563 # Extract the first word of "gcc", so it can be a program name with args.
2564 set dummy gcc; ac_word=$2
2565 echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 if test -n "$ac_ct_CC"; then
2571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580 ac_cv_prog_ac_ct_CC="gcc"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584 done
2585 done
2586
2587 fi
2588 fi
2589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590 if test -n "$ac_ct_CC"; then
2591 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2592 echo "${ECHO_T}$ac_ct_CC" >&6
2593 else
2594 echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6
2596 fi
2597
2598 CC=$ac_ct_CC
2599 else
2600 CC="$ac_cv_prog_CC"
2601 fi
2602
2603 if test -z "$CC"; then
2604 if test -n "$ac_tool_prefix"; then
2605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2606 set dummy ${ac_tool_prefix}cc; ac_word=$2
2607 echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609 if test "${ac_cv_prog_CC+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622 ac_cv_prog_CC="${ac_tool_prefix}cc"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626 done
2627 done
2628
2629 fi
2630 fi
2631 CC=$ac_cv_prog_CC
2632 if test -n "$CC"; then
2633 echo "$as_me:$LINENO: result: $CC" >&5
2634 echo "${ECHO_T}$CC" >&6
2635 else
2636 echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6
2638 fi
2639
2640 fi
2641 if test -z "$ac_cv_prog_CC"; then
2642 ac_ct_CC=$CC
2643 # Extract the first word of "cc", so it can be a program name with args.
2644 set dummy cc; ac_word=$2
2645 echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650 if test -n "$ac_ct_CC"; then
2651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_ac_ct_CC="cc"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2663 fi
2664 done
2665 done
2666
2667 fi
2668 fi
2669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2670 if test -n "$ac_ct_CC"; then
2671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2672 echo "${ECHO_T}$ac_ct_CC" >&6
2673 else
2674 echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2676 fi
2677
2678 CC=$ac_ct_CC
2679 else
2680 CC="$ac_cv_prog_CC"
2681 fi
2682
2683 fi
2684 if test -z "$CC"; then
2685 # Extract the first word of "cc", so it can be a program name with args.
2686 set dummy cc; ac_word=$2
2687 echo "$as_me:$LINENO: checking for $ac_word" >&5
2688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2689 if test "${ac_cv_prog_CC+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 else
2695 ac_prog_rejected=no
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2704 ac_prog_rejected=yes
2705 continue
2706 fi
2707 ac_cv_prog_CC="cc"
2708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711 done
2712 done
2713
2714 if test $ac_prog_rejected = yes; then
2715 # We found a bogon in the path, so make sure we never use it.
2716 set dummy $ac_cv_prog_CC
2717 shift
2718 if test $# != 0; then
2719 # We chose a different compiler from the bogus one.
2720 # However, it has the same basename, so the bogon will be chosen
2721 # first if we set CC to just the basename; use the full file name.
2722 shift
2723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2724 fi
2725 fi
2726 fi
2727 fi
2728 CC=$ac_cv_prog_CC
2729 if test -n "$CC"; then
2730 echo "$as_me:$LINENO: result: $CC" >&5
2731 echo "${ECHO_T}$CC" >&6
2732 else
2733 echo "$as_me:$LINENO: result: no" >&5
2734 echo "${ECHO_T}no" >&6
2735 fi
2736
2737 fi
2738 if test -z "$CC"; then
2739 if test -n "$ac_tool_prefix"; then
2740 for ac_prog in cl
2741 do
2742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2744 echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2746 if test "${ac_cv_prog_CC+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2762 fi
2763 done
2764 done
2765
2766 fi
2767 fi
2768 CC=$ac_cv_prog_CC
2769 if test -n "$CC"; then
2770 echo "$as_me:$LINENO: result: $CC" >&5
2771 echo "${ECHO_T}$CC" >&6
2772 else
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2775 fi
2776
2777 test -n "$CC" && break
2778 done
2779 fi
2780 if test -z "$CC"; then
2781 ac_ct_CC=$CC
2782 for ac_prog in cl
2783 do
2784 # Extract the first word of "$ac_prog", so it can be a program name with args.
2785 set dummy $ac_prog; ac_word=$2
2786 echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2790 else
2791 if test -n "$ac_ct_CC"; then
2792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2801 ac_cv_prog_ac_ct_CC="$ac_prog"
2802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807
2808 fi
2809 fi
2810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811 if test -n "$ac_ct_CC"; then
2812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2813 echo "${ECHO_T}$ac_ct_CC" >&6
2814 else
2815 echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6
2817 fi
2818
2819 test -n "$ac_ct_CC" && break
2820 done
2821
2822 CC=$ac_ct_CC
2823 fi
2824
2825 fi
2826
2827
2828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: no acceptable C compiler found in \$PATH
2831 See \`config.log' for more details." >&2;}
2832 { (exit 1); exit 1; }; }
2833
2834 # Provide some information about the compiler.
2835 echo "$as_me:$LINENO:" \
2836 "checking for C compiler version" >&5
2837 ac_compiler=`set X $ac_compile; echo $2`
2838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2839 (eval $ac_compiler --version </dev/null >&5) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }
2843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2844 (eval $ac_compiler -v </dev/null >&5) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }
2848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2849 (eval $ac_compiler -V </dev/null >&5) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }
2853
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860
2861 int
2862 main ()
2863 {
2864
2865 ;
2866 return 0;
2867 }
2868 _ACEOF
2869 # FIXME: Cleanup?
2870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2871 (eval $ac_link) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; then
2875 gcc_no_link=no
2876 else
2877 gcc_no_link=yes
2878 fi
2879
2880 if test x$gcc_no_link = xyes; then
2881 # Setting cross_compile will disable run tests; it will
2882 # also disable AC_CHECK_FILE but that's generally
2883 # correct if we can't link.
2884 cross_compiling=yes
2885 EXEEXT=
2886 else
2887 cat >conftest.$ac_ext <<_ACEOF
2888 /* confdefs.h. */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2893
2894 int
2895 main ()
2896 {
2897
2898 ;
2899 return 0;
2900 }
2901 _ACEOF
2902 ac_clean_files_save=$ac_clean_files
2903 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2904 # Try to create an executable without -o first, disregard a.out.
2905 # It will help us diagnose broken compilers, and finding out an intuition
2906 # of exeext.
2907 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2908 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2909 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2910 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2911 (eval $ac_link_default) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; then
2915 # Find the output, starting from the most likely. This scheme is
2916 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2917 # resort.
2918
2919 # Be careful to initialize this variable, since it used to be cached.
2920 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2921 ac_cv_exeext=
2922 # b.out is created by i960 compilers.
2923 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2924 do
2925 test -f "$ac_file" || continue
2926 case $ac_file in
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2928 ;;
2929 conftest.$ac_ext )
2930 # This is the source file.
2931 ;;
2932 [ab].out )
2933 # We found the default executable, but exeext='' is most
2934 # certainly right.
2935 break;;
2936 *.* )
2937 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938 # FIXME: I believe we export ac_cv_exeext for Libtool,
2939 # but it would be cool to find out if it's true. Does anybody
2940 # maintain Libtool? --akim.
2941 export ac_cv_exeext
2942 break;;
2943 * )
2944 break;;
2945 esac
2946 done
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: C compiler cannot create executables
2954 See \`config.log' for more details." >&2;}
2955 { (exit 77); exit 77; }; }
2956 fi
2957
2958 ac_exeext=$ac_cv_exeext
2959 echo "$as_me:$LINENO: result: $ac_file" >&5
2960 echo "${ECHO_T}$ac_file" >&6
2961
2962 # Check the compiler produces executables we can run. If not, either
2963 # the compiler is broken, or we cross compile.
2964 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2965 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2966 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2967 # If not cross compiling, check that we can run a simple program.
2968 if test "$cross_compiling" != yes; then
2969 if { ac_try='./$ac_file'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 (eval $ac_try) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 cross_compiling=no
2976 else
2977 if test "$cross_compiling" = maybe; then
2978 cross_compiling=yes
2979 else
2980 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'.
2982 See \`config.log' for more details." >&5
2983 echo "$as_me: error: cannot run C compiled programs.
2984 If you meant to cross compile, use \`--host'.
2985 See \`config.log' for more details." >&2;}
2986 { (exit 1); exit 1; }; }
2987 fi
2988 fi
2989 fi
2990 echo "$as_me:$LINENO: result: yes" >&5
2991 echo "${ECHO_T}yes" >&6
2992
2993 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2994 ac_clean_files=$ac_clean_files_save
2995 # Check the compiler produces executables we can run. If not, either
2996 # the compiler is broken, or we cross compile.
2997 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2998 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2999 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3000 echo "${ECHO_T}$cross_compiling" >&6
3001
3002 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3003 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3005 (eval $ac_link) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; then
3009 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3010 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3011 # work properly (i.e., refer to `conftest.exe'), while it won't with
3012 # `rm'.
3013 for ac_file in conftest.exe conftest conftest.*; do
3014 test -f "$ac_file" || continue
3015 case $ac_file in
3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3017 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018 export ac_cv_exeext
3019 break;;
3020 * ) break;;
3021 esac
3022 done
3023 else
3024 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }
3029 fi
3030
3031 rm -f conftest$ac_cv_exeext
3032 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3033 echo "${ECHO_T}$ac_cv_exeext" >&6
3034
3035 rm -f conftest.$ac_ext
3036 EXEEXT=$ac_cv_exeext
3037 ac_exeext=$EXEEXT
3038 fi
3039 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3040 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3041 if test "${ac_cv_objext+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044 cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h. */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3050
3051 int
3052 main ()
3053 {
3054
3055 ;
3056 return 0;
3057 }
3058 _ACEOF
3059 rm -f conftest.o conftest.obj
3060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3061 (eval $ac_compile) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; then
3065 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3066 case $ac_file in
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3068 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3069 break;;
3070 esac
3071 done
3072 else
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3077 See \`config.log' for more details." >&5
3078 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3079 See \`config.log' for more details." >&2;}
3080 { (exit 1); exit 1; }; }
3081 fi
3082
3083 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3084 fi
3085 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3086 echo "${ECHO_T}$ac_cv_objext" >&6
3087 OBJEXT=$ac_cv_objext
3088 ac_objext=$OBJEXT
3089 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3090 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3091 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3100
3101 int
3102 main ()
3103 {
3104 #ifndef __GNUC__
3105 choke me
3106 #endif
3107
3108 ;
3109 return 0;
3110 }
3111 _ACEOF
3112 rm -f conftest.$ac_objext
3113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3114 (eval $ac_compile) 2>conftest.er1
3115 ac_status=$?
3116 grep -v '^ *+' conftest.er1 >conftest.err
3117 rm -f conftest.er1
3118 cat conftest.err >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } &&
3121 { ac_try='test -z "$ac_c_werror_flag"
3122 || test ! -s conftest.err'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 (eval $ac_try) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; } &&
3128 { ac_try='test -s conftest.$ac_objext'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3134 ac_compiler_gnu=yes
3135 else
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139 ac_compiler_gnu=no
3140 fi
3141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3142 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3143
3144 fi
3145 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3146 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3147 GCC=`test $ac_compiler_gnu = yes && echo yes`
3148 ac_test_CFLAGS=${CFLAGS+set}
3149 ac_save_CFLAGS=$CFLAGS
3150 CFLAGS="-g"
3151 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3152 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3153 if test "${ac_cv_prog_cc_g+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162
3163 int
3164 main ()
3165 {
3166
3167 ;
3168 return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>conftest.er1
3174 ac_status=$?
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } &&
3180 { ac_try='test -z "$ac_c_werror_flag"
3181 || test ! -s conftest.err'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 (eval $ac_try) 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 (eval $ac_try) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 ac_cv_prog_cc_g=yes
3194 else
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 ac_cv_prog_cc_g=no
3199 fi
3200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3203 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3204 if test "$ac_test_CFLAGS" = set; then
3205 CFLAGS=$ac_save_CFLAGS
3206 elif test $ac_cv_prog_cc_g = yes; then
3207 if test "$GCC" = yes; then
3208 CFLAGS="-g -O2"
3209 else
3210 CFLAGS="-g"
3211 fi
3212 else
3213 if test "$GCC" = yes; then
3214 CFLAGS="-O2"
3215 else
3216 CFLAGS=
3217 fi
3218 fi
3219 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3220 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3221 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 ac_cv_prog_cc_stdc=no
3225 ac_save_CC=$CC
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3232 #include <stdarg.h>
3233 #include <stdio.h>
3234 #include <sys/types.h>
3235 #include <sys/stat.h>
3236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3237 struct buf { int x; };
3238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3239 static char *e (p, i)
3240 char **p;
3241 int i;
3242 {
3243 return p[i];
3244 }
3245 static char *f (char * (*g) (char **, int), char **p, ...)
3246 {
3247 char *s;
3248 va_list v;
3249 va_start (v,p);
3250 s = g (p, va_arg (v,int));
3251 va_end (v);
3252 return s;
3253 }
3254
3255 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3256 function prototypes and stuff, but not '\xHH' hex character constants.
3257 These don't provoke an error unfortunately, instead are silently treated
3258 as 'x'. The following induces an error, until -std1 is added to get
3259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3260 array size at least. It's necessary to write '\x00'==0 to get something
3261 that's true only with -std1. */
3262 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263
3264 int test (int i, double x);
3265 struct s1 {int (*f) (int a);};
3266 struct s2 {int (*f) (double a);};
3267 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3268 int argc;
3269 char **argv;
3270 int
3271 main ()
3272 {
3273 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3274 ;
3275 return 0;
3276 }
3277 _ACEOF
3278 # Don't try gcc -ansi; that turns off useful extensions and
3279 # breaks some systems' header files.
3280 # AIX -qlanglvl=ansi
3281 # Ultrix and OSF/1 -std1
3282 # HP-UX 10.20 and later -Ae
3283 # HP-UX older versions -Aa -D_HPUX_SOURCE
3284 # SVR4 -Xc -D__EXTENSIONS__
3285 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3286 do
3287 CC="$ac_save_CC $ac_arg"
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -z "$ac_c_werror_flag"
3298 || test ! -s conftest.err'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; } &&
3304 { ac_try='test -s conftest.$ac_objext'
3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 (eval $ac_try) 2>&5
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; }; then
3310 ac_cv_prog_cc_stdc=$ac_arg
3311 break
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 fi
3317 rm -f conftest.err conftest.$ac_objext
3318 done
3319 rm -f conftest.$ac_ext conftest.$ac_objext
3320 CC=$ac_save_CC
3321
3322 fi
3323
3324 case "x$ac_cv_prog_cc_stdc" in
3325 x|xno)
3326 echo "$as_me:$LINENO: result: none needed" >&5
3327 echo "${ECHO_T}none needed" >&6 ;;
3328 *)
3329 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3330 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3331 CC="$CC $ac_cv_prog_cc_stdc" ;;
3332 esac
3333
3334 # Some people use a C++ compiler to compile C. Since we use `exit',
3335 # in C++ we need to declare it. In case someone uses the same compiler
3336 # for both compiling C and C++ we need to have the C++ compiler decide
3337 # the declaration of exit, since it's the most demanding environment.
3338 cat >conftest.$ac_ext <<_ACEOF
3339 #ifndef __cplusplus
3340 choke me
3341 #endif
3342 _ACEOF
3343 rm -f conftest.$ac_objext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3345 (eval $ac_compile) 2>conftest.er1
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -z "$ac_c_werror_flag"
3353 || test ! -s conftest.err'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 (eval $ac_try) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 (eval $ac_try) 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; }; then
3365 for ac_declaration in \
3366 '' \
3367 'extern "C" void std::exit (int) throw (); using std::exit;' \
3368 'extern "C" void std::exit (int); using std::exit;' \
3369 'extern "C" void exit (int) throw ();' \
3370 'extern "C" void exit (int);' \
3371 'void exit (int);'
3372 do
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 $ac_declaration
3380 #include <stdlib.h>
3381 int
3382 main ()
3383 {
3384 exit (42);
3385 ;
3386 return 0;
3387 }
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391 (eval $ac_compile) 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } &&
3398 { ac_try='test -z "$ac_c_werror_flag"
3399 || test ! -s conftest.err'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 :
3412 else
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 continue
3417 fi
3418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 $ac_declaration
3426 int
3427 main ()
3428 {
3429 exit (42);
3430 ;
3431 return 0;
3432 }
3433 _ACEOF
3434 rm -f conftest.$ac_objext
3435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3436 (eval $ac_compile) 2>conftest.er1
3437 ac_status=$?
3438 grep -v '^ *+' conftest.er1 >conftest.err
3439 rm -f conftest.er1
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } &&
3443 { ac_try='test -z "$ac_c_werror_flag"
3444 || test ! -s conftest.err'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; } &&
3450 { ac_try='test -s conftest.$ac_objext'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 (eval $ac_try) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; }; then
3456 break
3457 else
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 fi
3462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463 done
3464 rm -f conftest*
3465 if test -n "$ac_declaration"; then
3466 echo '#ifdef __cplusplus' >>confdefs.h
3467 echo $ac_declaration >>confdefs.h
3468 echo '#endif' >>confdefs.h
3469 fi
3470
3471 else
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475 fi
3476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3477 ac_ext=c
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482
3483 depcc="$CC" am_compiler_list=
3484
3485 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3486 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3487 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3491 # We make a subdir and do the tests there. Otherwise we can end up
3492 # making bogus files that we don't know about and never remove. For
3493 # instance it was reported that on HP-UX the gcc test will end up
3494 # making a dummy file named `D' -- because `-MD' means `put the output
3495 # in D'.
3496 mkdir conftest.dir
3497 # Copy depcomp to subdir because otherwise we won't find it if we're
3498 # using a relative directory.
3499 cp "$am_depcomp" conftest.dir
3500 cd conftest.dir
3501 # We will build objects and dependencies in a subdirectory because
3502 # it helps to detect inapplicable dependency modes. For instance
3503 # both Tru64's cc and ICC support -MD to output dependencies as a
3504 # side effect of compilation, but ICC will put the dependencies in
3505 # the current directory while Tru64 will put them in the object
3506 # directory.
3507 mkdir sub
3508
3509 am_cv_CC_dependencies_compiler_type=none
3510 if test "$am_compiler_list" = ""; then
3511 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3512 fi
3513 for depmode in $am_compiler_list; do
3514 # Setup a source with many dependencies, because some compilers
3515 # like to wrap large dependency lists on column 80 (with \), and
3516 # we should not choose a depcomp mode which is confused by this.
3517 #
3518 # We need to recreate these files for each test, as the compiler may
3519 # overwrite some of them when testing with obscure command lines.
3520 # This happens at least with the AIX C compiler.
3521 : > sub/conftest.c
3522 for i in 1 2 3 4 5 6; do
3523 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3524 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3525 # Solaris 8's {/usr,}/bin/sh.
3526 touch sub/conftst$i.h
3527 done
3528 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3529
3530 case $depmode in
3531 nosideeffect)
3532 # after this tag, mechanisms are not by side-effect, so they'll
3533 # only be used when explicitly requested
3534 if test "x$enable_dependency_tracking" = xyes; then
3535 continue
3536 else
3537 break
3538 fi
3539 ;;
3540 none) break ;;
3541 esac
3542 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3543 # mode. It turns out that the SunPro C++ compiler does not properly
3544 # handle `-M -o', and we need to detect this.
3545 if depmode=$depmode \
3546 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3547 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3548 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3549 >/dev/null 2>conftest.err &&
3550 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3551 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3552 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3553 # icc doesn't choke on unknown options, it will just issue warnings
3554 # or remarks (even with -Werror). So we grep stderr for any message
3555 # that says an option was ignored or not supported.
3556 # When given -MP, icc 7.0 and 7.1 complain thusly:
3557 # icc: Command line warning: ignoring option '-M'; no argument required
3558 # The diagnosis changed in icc 8.0:
3559 # icc: Command line remark: option '-MP' not supported
3560 if (grep 'ignoring option' conftest.err ||
3561 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3562 am_cv_CC_dependencies_compiler_type=$depmode
3563 break
3564 fi
3565 fi
3566 done
3567
3568 cd ..
3569 rm -rf conftest.dir
3570 else
3571 am_cv_CC_dependencies_compiler_type=none
3572 fi
3573
3574 fi
3575 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3576 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3577 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3578
3579
3580
3581 if
3582 test "x$enable_dependency_tracking" != xno \
3583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3584 am__fastdepCC_TRUE=
3585 am__fastdepCC_FALSE='#'
3586 else
3587 am__fastdepCC_TRUE='#'
3588 am__fastdepCC_FALSE=
3589 fi
3590
3591
3592
3593 ac_ext=c
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3599 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3600 # On Suns, sometimes $CPP names a directory.
3601 if test -n "$CPP" && test -d "$CPP"; then
3602 CPP=
3603 fi
3604 if test -z "$CPP"; then
3605 if test "${ac_cv_prog_CPP+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 # Double quotes because CPP needs to be expanded
3609 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3610 do
3611 ac_preproc_ok=false
3612 for ac_c_preproc_warn_flag in '' yes
3613 do
3614 # Use a header file that comes with gcc, so configuring glibc
3615 # with a fresh cross-compiler works.
3616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3617 # <limits.h> exists even on freestanding compilers.
3618 # On the NeXT, cc -E runs the code through the compiler's parser,
3619 # not just through cpp. "Syntax error" is here to catch this case.
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h. */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 #ifdef __STDC__
3627 # include <limits.h>
3628 #else
3629 # include <assert.h>
3630 #endif
3631 Syntax error
3632 _ACEOF
3633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } >/dev/null; then
3641 if test -s conftest.err; then
3642 ac_cpp_err=$ac_c_preproc_warn_flag
3643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3644 else
3645 ac_cpp_err=
3646 fi
3647 else
3648 ac_cpp_err=yes
3649 fi
3650 if test -z "$ac_cpp_err"; then
3651 :
3652 else
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3655
3656 # Broken: fails on valid input.
3657 continue
3658 fi
3659 rm -f conftest.err conftest.$ac_ext
3660
3661 # OK, works on sane cases. Now check whether non-existent headers
3662 # can be detected and how.
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h. */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3669 #include <ac_nonexistent.h>
3670 _ACEOF
3671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } >/dev/null; then
3679 if test -s conftest.err; then
3680 ac_cpp_err=$ac_c_preproc_warn_flag
3681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3682 else
3683 ac_cpp_err=
3684 fi
3685 else
3686 ac_cpp_err=yes
3687 fi
3688 if test -z "$ac_cpp_err"; then
3689 # Broken: success on invalid input.
3690 continue
3691 else
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3694
3695 # Passes both tests.
3696 ac_preproc_ok=:
3697 break
3698 fi
3699 rm -f conftest.err conftest.$ac_ext
3700
3701 done
3702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3703 rm -f conftest.err conftest.$ac_ext
3704 if $ac_preproc_ok; then
3705 break
3706 fi
3707
3708 done
3709 ac_cv_prog_CPP=$CPP
3710
3711 fi
3712 CPP=$ac_cv_prog_CPP
3713 else
3714 ac_cv_prog_CPP=$CPP
3715 fi
3716 echo "$as_me:$LINENO: result: $CPP" >&5
3717 echo "${ECHO_T}$CPP" >&6
3718 ac_preproc_ok=false
3719 for ac_c_preproc_warn_flag in '' yes
3720 do
3721 # Use a header file that comes with gcc, so configuring glibc
3722 # with a fresh cross-compiler works.
3723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3724 # <limits.h> exists even on freestanding compilers.
3725 # On the NeXT, cc -E runs the code through the compiler's parser,
3726 # not just through cpp. "Syntax error" is here to catch this case.
3727 cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h. */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 #ifdef __STDC__
3734 # include <limits.h>
3735 #else
3736 # include <assert.h>
3737 #endif
3738 Syntax error
3739 _ACEOF
3740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3742 ac_status=$?
3743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } >/dev/null; then
3748 if test -s conftest.err; then
3749 ac_cpp_err=$ac_c_preproc_warn_flag
3750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3751 else
3752 ac_cpp_err=
3753 fi
3754 else
3755 ac_cpp_err=yes
3756 fi
3757 if test -z "$ac_cpp_err"; then
3758 :
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 # Broken: fails on valid input.
3764 continue
3765 fi
3766 rm -f conftest.err conftest.$ac_ext
3767
3768 # OK, works on sane cases. Now check whether non-existent headers
3769 # can be detected and how.
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 #include <ac_nonexistent.h>
3777 _ACEOF
3778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } >/dev/null; then
3786 if test -s conftest.err; then
3787 ac_cpp_err=$ac_c_preproc_warn_flag
3788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3789 else
3790 ac_cpp_err=
3791 fi
3792 else
3793 ac_cpp_err=yes
3794 fi
3795 if test -z "$ac_cpp_err"; then
3796 # Broken: success on invalid input.
3797 continue
3798 else
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 # Passes both tests.
3803 ac_preproc_ok=:
3804 break
3805 fi
3806 rm -f conftest.err conftest.$ac_ext
3807
3808 done
3809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3810 rm -f conftest.err conftest.$ac_ext
3811 if $ac_preproc_ok; then
3812 :
3813 else
3814 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3815 See \`config.log' for more details." >&5
3816 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3817 See \`config.log' for more details." >&2;}
3818 { (exit 1); exit 1; }; }
3819 fi
3820
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826
3827
3828 echo "$as_me:$LINENO: checking for egrep" >&5
3829 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3830 if test "${ac_cv_prog_egrep+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3834 then ac_cv_prog_egrep='grep -E'
3835 else ac_cv_prog_egrep='egrep'
3836 fi
3837 fi
3838 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3839 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3840 EGREP=$ac_cv_prog_egrep
3841
3842
3843 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3844 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3845 if test "${ac_cv_header_stdc+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h. */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3854 #include <stdlib.h>
3855 #include <stdarg.h>
3856 #include <string.h>
3857 #include <float.h>
3858
3859 int
3860 main ()
3861 {
3862
3863 ;
3864 return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869 (eval $ac_compile) 2>conftest.er1
3870 ac_status=$?
3871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try='test -z "$ac_c_werror_flag"
3877 || test ! -s conftest.err'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; } &&
3883 { ac_try='test -s conftest.$ac_objext'
3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 (eval $ac_try) 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; }; then
3889 ac_cv_header_stdc=yes
3890 else
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894 ac_cv_header_stdc=no
3895 fi
3896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3897
3898 if test $ac_cv_header_stdc = yes; then
3899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 #include <string.h>
3907
3908 _ACEOF
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "memchr" >/dev/null 2>&1; then
3911 :
3912 else
3913 ac_cv_header_stdc=no
3914 fi
3915 rm -f conftest*
3916
3917 fi
3918
3919 if test $ac_cv_header_stdc = yes; then
3920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3921 cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h. */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3927 #include <stdlib.h>
3928
3929 _ACEOF
3930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3931 $EGREP "free" >/dev/null 2>&1; then
3932 :
3933 else
3934 ac_cv_header_stdc=no
3935 fi
3936 rm -f conftest*
3937
3938 fi
3939
3940 if test $ac_cv_header_stdc = yes; then
3941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3942 if test "$cross_compiling" = yes; then
3943 :
3944 else
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #include <ctype.h>
3952 #if ((' ' & 0x0FF) == 0x020)
3953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3955 #else
3956 # define ISLOWER(c) \
3957 (('a' <= (c) && (c) <= 'i') \
3958 || ('j' <= (c) && (c) <= 'r') \
3959 || ('s' <= (c) && (c) <= 'z'))
3960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3961 #endif
3962
3963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3964 int
3965 main ()
3966 {
3967 int i;
3968 for (i = 0; i < 256; i++)
3969 if (XOR (islower (i), ISLOWER (i))
3970 || toupper (i) != TOUPPER (i))
3971 exit(2);
3972 exit (0);
3973 }
3974 _ACEOF
3975 rm -f conftest$ac_exeext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3977 (eval $ac_link) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 :
3987 else
3988 echo "$as_me: program exited with status $ac_status" >&5
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 ( exit $ac_status )
3993 ac_cv_header_stdc=no
3994 fi
3995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3996 fi
3997 fi
3998 fi
3999 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4000 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4001 if test $ac_cv_header_stdc = yes; then
4002
4003 cat >>confdefs.h <<\_ACEOF
4004 #define STDC_HEADERS 1
4005 _ACEOF
4006
4007 fi
4008
4009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4020 inttypes.h stdint.h unistd.h
4021 do
4022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4023 echo "$as_me:$LINENO: checking for $ac_header" >&5
4024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028 cat >conftest.$ac_ext <<_ACEOF
4029 /* confdefs.h. */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 $ac_includes_default
4035
4036 #include <$ac_header>
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag"
4048 || test ! -s conftest.err'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 eval "$as_ac_Header=yes"
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 eval "$as_ac_Header=no"
4066 fi
4067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4068 fi
4069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4072 cat >>confdefs.h <<_ACEOF
4073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4074 _ACEOF
4075
4076 fi
4077
4078 done
4079
4080
4081 # Check whether --enable-alsa or --disable-alsa was given.
4082 if test "${enable_alsa+set}" = set; then
4083 enableval="$enable_alsa"
4084 case "${enableval}" in
4085 yes) COMPILE_ALSA=yes ;;
4086 no) COMPILE_ALSA=no ;;
4087 *) COMPILE_ALSA=yes ;;
4088 esac
4089 else
4090
4091 for ac_header in alsa/asoundlib.h
4092 do
4093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4095 echo "$as_me:$LINENO: checking for $ac_header" >&5
4096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 fi
4100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4102 else
4103 # Is the header compilable?
4104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h. */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 $ac_includes_default
4113 #include <$ac_header>
4114 _ACEOF
4115 rm -f conftest.$ac_objext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag"
4125 || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_header_compiler=yes
4138 else
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4141
4142 ac_header_compiler=no
4143 fi
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4146 echo "${ECHO_T}$ac_header_compiler" >&6
4147
4148 # Is the header present?
4149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #include <$ac_header>
4158 _ACEOF
4159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4161 ac_status=$?
4162 grep -v '^ *+' conftest.er1 >conftest.err
4163 rm -f conftest.er1
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } >/dev/null; then
4167 if test -s conftest.err; then
4168 ac_cpp_err=$ac_c_preproc_warn_flag
4169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4170 else
4171 ac_cpp_err=
4172 fi
4173 else
4174 ac_cpp_err=yes
4175 fi
4176 if test -z "$ac_cpp_err"; then
4177 ac_header_preproc=yes
4178 else
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 ac_header_preproc=no
4183 fi
4184 rm -f conftest.err conftest.$ac_ext
4185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4186 echo "${ECHO_T}$ac_header_preproc" >&6
4187
4188 # So? What about this header?
4189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4190 yes:no: )
4191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4195 ac_header_preproc=yes
4196 ;;
4197 no:yes:* )
4198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4210 (
4211 cat <<\_ASBOX
4212 ## -------------------------------- ##
4213 ## Report this to classpath@gnu.org ##
4214 ## -------------------------------- ##
4215 _ASBOX
4216 ) |
4217 sed "s/^/$as_me: WARNING: /" >&2
4218 ;;
4219 esac
4220 echo "$as_me:$LINENO: checking for $ac_header" >&5
4221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225 eval "$as_ac_Header=\$ac_header_preproc"
4226 fi
4227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4229
4230 fi
4231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4232 cat >>confdefs.h <<_ACEOF
4233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4234 _ACEOF
4235 echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
4236 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
4237 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240 ac_check_lib_save_LIBS=$LIBS
4241 LIBS="-lasound $LIBS"
4242 if test x$gcc_no_link = xyes; then
4243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4245 { (exit 1); exit 1; }; }
4246 fi
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253
4254 /* Override any gcc2 internal prototype to avoid an error. */
4255 #ifdef __cplusplus
4256 extern "C"
4257 #endif
4258 /* We use char because int might match the return type of a gcc2
4259 builtin and then its argument prototype would still apply. */
4260 char snd_seq_open ();
4261 int
4262 main ()
4263 {
4264 snd_seq_open ();
4265 ;
4266 return 0;
4267 }
4268 _ACEOF
4269 rm -f conftest.$ac_objext conftest$ac_exeext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4271 (eval $ac_link) 2>conftest.er1
4272 ac_status=$?
4273 grep -v '^ *+' conftest.er1 >conftest.err
4274 rm -f conftest.er1
4275 cat conftest.err >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } &&
4278 { ac_try='test -z "$ac_c_werror_flag"
4279 || test ! -s conftest.err'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 (eval $ac_try) 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; } &&
4285 { ac_try='test -s conftest$ac_exeext'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 (eval $ac_try) 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 ac_cv_lib_asound_snd_seq_open=yes
4292 else
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296 ac_cv_lib_asound_snd_seq_open=no
4297 fi
4298 rm -f conftest.err conftest.$ac_objext \
4299 conftest$ac_exeext conftest.$ac_ext
4300 LIBS=$ac_check_lib_save_LIBS
4301 fi
4302 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
4303 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
4304 if test $ac_cv_lib_asound_snd_seq_open = yes; then
4305 COMPILE_ALSA=yes
4306 else
4307 COMPILE_ALSA=no
4308 fi
4309
4310 else
4311 COMPILE_ALSA=no
4312 fi
4313
4314 done
4315
4316 fi;
4317
4318
4319 if test "x${COMPILE_ALSA}" = xyes; then
4320 CREATE_ALSA_LIBRARIES_TRUE=
4321 CREATE_ALSA_LIBRARIES_FALSE='#'
4322 else
4323 CREATE_ALSA_LIBRARIES_TRUE='#'
4324 CREATE_ALSA_LIBRARIES_FALSE=
4325 fi
4326
4327
4328 # Check whether --enable-dssi or --disable-dssi was given.
4329 if test "${enable_dssi+set}" = set; then
4330 enableval="$enable_dssi"
4331 case "${enableval}" in
4332 yes) COMPILE_DSSI=yes ;;
4333 no) COMPILE_DSSI=no ;;
4334 *) COMPILE_DSSI=yes ;;
4335 esac
4336 else
4337 COMPILE_DSSI=no
4338
4339 for ac_header in dssi.h
4340 do
4341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4343 echo "$as_me:$LINENO: checking for $ac_header" >&5
4344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 fi
4348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4350 else
4351 # Is the header compilable?
4352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4354 cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h. */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 $ac_includes_default
4361 #include <$ac_header>
4362 _ACEOF
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest.$ac_objext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 (eval $ac_try) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_header_compiler=yes
4386 else
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4389
4390 ac_header_compiler=no
4391 fi
4392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4394 echo "${ECHO_T}$ac_header_compiler" >&6
4395
4396 # Is the header present?
4397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h. */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <$ac_header>
4406 _ACEOF
4407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4409 ac_status=$?
4410 grep -v '^ *+' conftest.er1 >conftest.err
4411 rm -f conftest.er1
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } >/dev/null; then
4415 if test -s conftest.err; then
4416 ac_cpp_err=$ac_c_preproc_warn_flag
4417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4418 else
4419 ac_cpp_err=
4420 fi
4421 else
4422 ac_cpp_err=yes
4423 fi
4424 if test -z "$ac_cpp_err"; then
4425 ac_header_preproc=yes
4426 else
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 ac_header_preproc=no
4431 fi
4432 rm -f conftest.err conftest.$ac_ext
4433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4434 echo "${ECHO_T}$ac_header_preproc" >&6
4435
4436 # So? What about this header?
4437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4438 yes:no: )
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4443 ac_header_preproc=yes
4444 ;;
4445 no:yes:* )
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4458 (
4459 cat <<\_ASBOX
4460 ## -------------------------------- ##
4461 ## Report this to classpath@gnu.org ##
4462 ## -------------------------------- ##
4463 _ASBOX
4464 ) |
4465 sed "s/^/$as_me: WARNING: /" >&2
4466 ;;
4467 esac
4468 echo "$as_me:$LINENO: checking for $ac_header" >&5
4469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473 eval "$as_ac_Header=\$ac_header_preproc"
4474 fi
4475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4477
4478 fi
4479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4480 cat >>confdefs.h <<_ACEOF
4481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4482 _ACEOF
4483
4484
4485 for ac_header in jack/jack.h
4486 do
4487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4489 echo "$as_me:$LINENO: checking for $ac_header" >&5
4490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 fi
4494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4496 else
4497 # Is the header compilable?
4498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4500 cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h. */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 $ac_includes_default
4507 #include <$ac_header>
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>conftest.er1
4512 ac_status=$?
4513 grep -v '^ *+' conftest.er1 >conftest.err
4514 rm -f conftest.er1
4515 cat conftest.err >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try='test -z "$ac_c_werror_flag"
4519 || test ! -s conftest.err'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; } &&
4525 { ac_try='test -s conftest.$ac_objext'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 ac_header_compiler=yes
4532 else
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4535
4536 ac_header_compiler=no
4537 fi
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4540 echo "${ECHO_T}$ac_header_compiler" >&6
4541
4542 # Is the header present?
4543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 #include <$ac_header>
4552 _ACEOF
4553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4555 ac_status=$?
4556 grep -v '^ *+' conftest.er1 >conftest.err
4557 rm -f conftest.er1
4558 cat conftest.err >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } >/dev/null; then
4561 if test -s conftest.err; then
4562 ac_cpp_err=$ac_c_preproc_warn_flag
4563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4564 else
4565 ac_cpp_err=
4566 fi
4567 else
4568 ac_cpp_err=yes
4569 fi
4570 if test -z "$ac_cpp_err"; then
4571 ac_header_preproc=yes
4572 else
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4575
4576 ac_header_preproc=no
4577 fi
4578 rm -f conftest.err conftest.$ac_ext
4579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4580 echo "${ECHO_T}$ac_header_preproc" >&6
4581
4582 # So? What about this header?
4583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4584 yes:no: )
4585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4589 ac_header_preproc=yes
4590 ;;
4591 no:yes:* )
4592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4604 (
4605 cat <<\_ASBOX
4606 ## -------------------------------- ##
4607 ## Report this to classpath@gnu.org ##
4608 ## -------------------------------- ##
4609 _ASBOX
4610 ) |
4611 sed "s/^/$as_me: WARNING: /" >&2
4612 ;;
4613 esac
4614 echo "$as_me:$LINENO: checking for $ac_header" >&5
4615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619 eval "$as_ac_Header=\$ac_header_preproc"
4620 fi
4621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4623
4624 fi
4625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4626 cat >>confdefs.h <<_ACEOF
4627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4628 _ACEOF
4629 COMPILE_DSSI=yes
4630 fi
4631
4632 done
4633
4634 fi
4635
4636 done
4637
4638 fi;
4639
4640
4641 if test "x${COMPILE_DSSI}" = xyes; then
4642 CREATE_DSSI_LIBRARIES_TRUE=
4643 CREATE_DSSI_LIBRARIES_FALSE='#'
4644 else
4645 CREATE_DSSI_LIBRARIES_TRUE='#'
4646 CREATE_DSSI_LIBRARIES_FALSE=
4647 fi
4648
4649
4650 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
4651 if test "${enable_gtk_peer+set}" = set; then
4652 enableval="$enable_gtk_peer"
4653 case "${enableval}" in
4654 yes) COMPILE_GTK_PEER=yes ;;
4655 no) COMPILE_GTK_PEER=no ;;
4656 *) COMPILE_GTK_PEER=yes ;;
4657 esac
4658 else
4659 COMPILE_GTK_PEER=yes
4660 fi;
4661
4662
4663 if test "x${COMPILE_GTK_PEER}" = xyes; then
4664 CREATE_GTK_PEER_LIBRARIES_TRUE=
4665 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
4666 else
4667 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
4668 CREATE_GTK_PEER_LIBRARIES_FALSE=
4669 fi
4670
4671
4672 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
4673 if test "${enable_gtk_peers+set}" = set; then
4674 enableval="$enable_gtk_peers"
4675 { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
4676 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
4677 { (exit 1); exit 1; }; }
4678 fi;
4679
4680 # Check whether --enable-qt-peer or --disable-qt-peer was given.
4681 if test "${enable_qt_peer+set}" = set; then
4682 enableval="$enable_qt_peer"
4683 case "${enableval}" in
4684 yes) COMPILE_QT_PEER=yes ;;
4685 no) COMPILE_QT_PEER=no ;;
4686 *) COMPILE_QT_PEER=yes ;;
4687 esac
4688 else
4689 COMPILE_QT_PEER=no
4690 fi;
4691
4692
4693 if test "x${COMPILE_QT_PEER}" = xyes; then
4694 CREATE_QT_PEER_LIBRARIES_TRUE=
4695 CREATE_QT_PEER_LIBRARIES_FALSE='#'
4696 else
4697 CREATE_QT_PEER_LIBRARIES_TRUE='#'
4698 CREATE_QT_PEER_LIBRARIES_FALSE=
4699 fi
4700
4701
4702 # Check whether --enable-plugin or --disable-plugin was given.
4703 if test "${enable_plugin+set}" = set; then
4704 enableval="$enable_plugin"
4705 case "${enableval}" in
4706 yes) COMPILE_PLUGIN=yes ;;
4707 no) COMPILE_PLUGIN=no ;;
4708 *) COMPILE_PLUGIN=yes ;;
4709 esac
4710 else
4711 COMPILE_PLUGIN=yes
4712 fi;
4713
4714
4715 if test "x${COMPILE_PLUGIN}" = xyes; then
4716 CREATE_PLUGIN_TRUE=
4717 CREATE_PLUGIN_FALSE='#'
4718 else
4719 CREATE_PLUGIN_TRUE='#'
4720 CREATE_PLUGIN_FALSE=
4721 fi
4722
4723
4724
4725 multi_os_directory=`$CC -print-multi-os-directory`
4726 case $multi_os_directory in
4727 .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
4728 *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
4729 esac
4730
4731
4732
4733
4734 # Check whether --with-native-libdir or --without-native-libdir was given.
4735 if test "${with_native_libdir+set}" = set; then
4736 withval="$with_native_libdir"
4737
4738 nativeexeclibdir=${withval}
4739
4740 else
4741
4742 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`
4743
4744 fi;
4745
4746
4747
4748
4749 # Check whether --with-glibj-dir or --without-glibj-dir was given.
4750 if test "${with_glibj_dir+set}" = set; then
4751 withval="$with_glibj_dir"
4752
4753 glibjdir=${withval}
4754
4755 else
4756
4757 glibjdir='${datadir}/${PACKAGE}'
4758
4759 fi;
4760
4761
4762
4763
4764 # Check whether --with-vm or --without-vm was given.
4765 if test "${with_vm+set}" = set; then
4766 withval="$with_vm"
4767
4768 VM_BINARY=${withval}
4769
4770 else
4771
4772 VM_BINARY='${prefix}/bin/jamvm'
4773
4774 fi;
4775
4776
4777
4778
4779 if test "x`basename $VM_BINARY`" = xcacao; then
4780 FOUND_CACAO_TRUE=
4781 FOUND_CACAO_FALSE='#'
4782 else
4783 FOUND_CACAO_TRUE='#'
4784 FOUND_CACAO_FALSE=
4785 fi
4786
4787
4788 # Check whether --enable-regen-headers or --disable-regen-headers was given.
4789 if test "${enable_regen_headers+set}" = set; then
4790 enableval="$enable_regen_headers"
4791 case "${enableval}" in
4792 yes) REGENERATE_JNI_HEADERS=yes ;;
4793 no) REGENERATE_JNI_HEADERS=no ;;
4794 *) REGENERATE_JNI_HEADERS=no ;;
4795 esac
4796 else
4797 REGENERATE_JNI_HEADERS=no
4798 fi;
4799
4800
4801 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
4802 CREATE_JNI_HEADERS_TRUE=
4803 CREATE_JNI_HEADERS_FALSE='#'
4804 else
4805 CREATE_JNI_HEADERS_TRUE='#'
4806 CREATE_JNI_HEADERS_FALSE=
4807 fi
4808
4809
4810 # Check whether --enable-tool-wrappers or --disable-tool-wrappers was given.
4811 if test "${enable_tool_wrappers+set}" = set; then
4812 enableval="$enable_tool_wrappers"
4813 case x"${enableval}" in
4814 xyes)
4815 COMPILE_WRAPPERS=yes;
4816
4817 for ac_header in ltdl.h
4818 do
4819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4821 echo "$as_me:$LINENO: checking for $ac_header" >&5
4822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 fi
4826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4828 else
4829 # Is the header compilable?
4830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 $ac_includes_default
4839 #include <$ac_header>
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -z "$ac_c_werror_flag"
4851 || test ! -s conftest.err'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; } &&
4857 { ac_try='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_header_compiler=yes
4864 else
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868 ac_header_compiler=no
4869 fi
4870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4872 echo "${ECHO_T}$ac_header_compiler" >&6
4873
4874 # Is the header present?
4875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4877 cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h. */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4883 #include <$ac_header>
4884 _ACEOF
4885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } >/dev/null; then
4893 if test -s conftest.err; then
4894 ac_cpp_err=$ac_c_preproc_warn_flag
4895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4896 else
4897 ac_cpp_err=
4898 fi
4899 else
4900 ac_cpp_err=yes
4901 fi
4902 if test -z "$ac_cpp_err"; then
4903 ac_header_preproc=yes
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 ac_header_preproc=no
4909 fi
4910 rm -f conftest.err conftest.$ac_ext
4911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4912 echo "${ECHO_T}$ac_header_preproc" >&6
4913
4914 # So? What about this header?
4915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4916 yes:no: )
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4921 ac_header_preproc=yes
4922 ;;
4923 no:yes:* )
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4936 (
4937 cat <<\_ASBOX
4938 ## -------------------------------- ##
4939 ## Report this to classpath@gnu.org ##
4940 ## -------------------------------- ##
4941 _ASBOX
4942 ) |
4943 sed "s/^/$as_me: WARNING: /" >&2
4944 ;;
4945 esac
4946 echo "$as_me:$LINENO: checking for $ac_header" >&5
4947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951 eval "$as_ac_Header=\$ac_header_preproc"
4952 fi
4953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4955
4956 fi
4957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4958 cat >>confdefs.h <<_ACEOF
4959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4960 _ACEOF
4961
4962 else
4963 { { echo "$as_me:$LINENO: error: cannot find ltdl.h" >&5
4964 echo "$as_me: error: cannot find ltdl.h" >&2;}
4965 { (exit 1); exit 1; }; }
4966 fi
4967
4968 done
4969
4970
4971 echo "$as_me:$LINENO: checking for lt_dlopen in -lltdl" >&5
4972 echo $ECHO_N "checking for lt_dlopen in -lltdl... $ECHO_C" >&6
4973 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976 ac_check_lib_save_LIBS=$LIBS
4977 LIBS="-lltdl $LIBS"
4978 if test x$gcc_no_link = xyes; then
4979 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4980 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4981 { (exit 1); exit 1; }; }
4982 fi
4983 cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h. */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989
4990 /* Override any gcc2 internal prototype to avoid an error. */
4991 #ifdef __cplusplus
4992 extern "C"
4993 #endif
4994 /* We use char because int might match the return type of a gcc2
4995 builtin and then its argument prototype would still apply. */
4996 char lt_dlopen ();
4997 int
4998 main ()
4999 {
5000 lt_dlopen ();
5001 ;
5002 return 0;
5003 }
5004 _ACEOF
5005 rm -f conftest.$ac_objext conftest$ac_exeext
5006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5007 (eval $ac_link) 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try='test -z "$ac_c_werror_flag"
5015 || test ! -s conftest.err'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; } &&
5021 { ac_try='test -s conftest$ac_exeext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 ac_cv_lib_ltdl_lt_dlopen=yes
5028 else
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5031
5032 ac_cv_lib_ltdl_lt_dlopen=no
5033 fi
5034 rm -f conftest.err conftest.$ac_objext \
5035 conftest$ac_exeext conftest.$ac_ext
5036 LIBS=$ac_check_lib_save_LIBS
5037 fi
5038 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5039 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlopen" >&6
5040 if test $ac_cv_lib_ltdl_lt_dlopen = yes; then
5041 cat >>confdefs.h <<_ACEOF
5042 #define HAVE_LIBLTDL 1
5043 _ACEOF
5044
5045 LIBS="-lltdl $LIBS"
5046
5047 else
5048 { { echo "$as_me:$LINENO: error: cannot find libltdl" >&5
5049 echo "$as_me: error: cannot find libltdl" >&2;}
5050 { (exit 1); exit 1; }; }
5051 fi
5052
5053 ;;
5054 xno) COMPILE_WRAPPERS=no ;;
5055 x) COMPILE_WRAPPERS=yes ;;
5056 *) COMPILE_WRAPPERS=yes ;;
5057 esac
5058 else
5059 COMPILE_WRAPPERS=no
5060 fi;
5061
5062
5063 if test "x${COMPILE_WRAPPERS}" = xyes; then
5064 CREATE_WRAPPERS_TRUE=
5065 CREATE_WRAPPERS_FALSE='#'
5066 else
5067 CREATE_WRAPPERS_TRUE='#'
5068 CREATE_WRAPPERS_FALSE=
5069 fi
5070
5071
5072 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5073 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5074 LN_S=$as_ln_s
5075 if test "$LN_S" = "ln -s"; then
5076 echo "$as_me:$LINENO: result: yes" >&5
5077 echo "${ECHO_T}yes" >&6
5078 else
5079 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5080 echo "${ECHO_T}no, using $LN_S" >&6
5081 fi
5082
5083 # Find a good install program. We prefer a C program (faster),
5084 # so one script is as good as another. But avoid the broken or
5085 # incompatible versions:
5086 # SysV /etc/install, /usr/sbin/install
5087 # SunOS /usr/etc/install
5088 # IRIX /sbin/install
5089 # AIX /bin/install
5090 # AmigaOS /C/install, which installs bootblocks on floppy discs
5091 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5092 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5093 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5094 # OS/2's system install, which has a completely different semantic
5095 # ./install, which can be erroneously created by make from ./install.sh.
5096 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5097 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5098 if test -z "$INSTALL"; then
5099 if test "${ac_cv_path_install+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5104 do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 # Account for people who put trailing slashes in PATH elements.
5108 case $as_dir/ in
5109 ./ | .// | /cC/* | \
5110 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5111 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5112 /usr/ucb/* ) ;;
5113 *)
5114 # OSF1 and SCO ODT 3.0 have their own names for install.
5115 # Don't use installbsd from OSF since it installs stuff as root
5116 # by default.
5117 for ac_prog in ginstall scoinst install; do
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5120 if test $ac_prog = install &&
5121 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5122 # AIX install. It has an incompatible calling convention.
5123 :
5124 elif test $ac_prog = install &&
5125 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5126 # program-specific install script used by HP pwplus--don't use.
5127 :
5128 else
5129 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5130 break 3
5131 fi
5132 fi
5133 done
5134 done
5135 ;;
5136 esac
5137 done
5138
5139
5140 fi
5141 if test "${ac_cv_path_install+set}" = set; then
5142 INSTALL=$ac_cv_path_install
5143 else
5144 # As a last resort, use the slow shell script. We don't cache a
5145 # path for INSTALL within a source directory, because that will
5146 # break other packages using the cache if that directory is
5147 # removed, or if the path is relative.
5148 INSTALL=$ac_install_sh
5149 fi
5150 fi
5151 echo "$as_me:$LINENO: result: $INSTALL" >&5
5152 echo "${ECHO_T}$INSTALL" >&6
5153
5154 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5155 # It thinks the first close brace ends the variable substitution.
5156 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5157
5158 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5159
5160 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5161
5162
5163
5164 # Check whether --enable-static or --disable-static was given.
5165 if test "${enable_static+set}" = set; then
5166 enableval="$enable_static"
5167 p=${PACKAGE-default}
5168 case $enableval in
5169 yes) enable_static=yes ;;
5170 no) enable_static=no ;;
5171 *)
5172 enable_static=no
5173 # Look at the argument we got. We use all the common list separators.
5174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5175 for pkg in $enableval; do
5176 IFS="$lt_save_ifs"
5177 if test "X$pkg" = "X$p"; then
5178 enable_static=yes
5179 fi
5180 done
5181 IFS="$lt_save_ifs"
5182 ;;
5183 esac
5184 else
5185 enable_static=no
5186 fi;
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197 macro_version='2.1a'
5198 macro_revision='1.2435'
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211 ltmain="$ac_aux_dir/ltmain.sh"
5212
5213 # Set options
5214
5215 enable_dlopen=no
5216
5217
5218 enable_win32_dll=no
5219
5220
5221 # Check whether --enable-shared or --disable-shared was given.
5222 if test "${enable_shared+set}" = set; then
5223 enableval="$enable_shared"
5224 p=${PACKAGE-default}
5225 case $enableval in
5226 yes) enable_shared=yes ;;
5227 no) enable_shared=no ;;
5228 *)
5229 enable_shared=no
5230 # Look at the argument we got. We use all the common list separators.
5231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5232 for pkg in $enableval; do
5233 IFS="$lt_save_ifs"
5234 if test "X$pkg" = "X$p"; then
5235 enable_shared=yes
5236 fi
5237 done
5238 IFS="$lt_save_ifs"
5239 ;;
5240 esac
5241 else
5242 enable_shared=yes
5243 fi;
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254 # Check whether --with-pic or --without-pic was given.
5255 if test "${with_pic+set}" = set; then
5256 withval="$with_pic"
5257 pic_mode="$withval"
5258 else
5259 pic_mode=default
5260 fi;
5261
5262 test -z "$pic_mode" && pic_mode=default
5263
5264
5265
5266
5267
5268
5269
5270 # Check whether --enable-fast-install or --disable-fast-install was given.
5271 if test "${enable_fast_install+set}" = set; then
5272 enableval="$enable_fast_install"
5273 p=${PACKAGE-default}
5274 case $enableval in
5275 yes) enable_fast_install=yes ;;
5276 no) enable_fast_install=no ;;
5277 *)
5278 enable_fast_install=no
5279 # Look at the argument we got. We use all the common list separators.
5280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5281 for pkg in $enableval; do
5282 IFS="$lt_save_ifs"
5283 if test "X$pkg" = "X$p"; then
5284 enable_fast_install=yes
5285 fi
5286 done
5287 IFS="$lt_save_ifs"
5288 ;;
5289 esac
5290 else
5291 enable_fast_install=yes
5292 fi;
5293
5294
5295
5296
5297
5298
5299
5300
5301 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5302 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5303 if test "${lt_cv_path_SED+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306 # Loop through the user's path and test for sed and gsed.
5307 # Then use that list of sed's as ones to test for truncation.
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for lt_ac_prog in sed gsed; do
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5316 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5317 fi
5318 done
5319 done
5320 done
5321 IFS=$as_save_IFS
5322 lt_ac_max=0
5323 lt_ac_count=0
5324 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5325 # along with /bin/sed that truncates output.
5326 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5327 test ! -f $lt_ac_sed && continue
5328 cat /dev/null > conftest.in
5329 lt_ac_count=0
5330 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5331 # Check for GNU sed and select it if it is found.
5332 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5333 lt_cv_path_SED=$lt_ac_sed
5334 break
5335 fi
5336 while true; do
5337 cat conftest.in conftest.in >conftest.tmp
5338 mv conftest.tmp conftest.in
5339 cp conftest.in conftest.nl
5340 echo >>conftest.nl
5341 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5342 cmp -s conftest.out conftest.nl || break
5343 # 10000 chars as input seems more than enough
5344 test $lt_ac_count -gt 10 && break
5345 lt_ac_count=`expr $lt_ac_count + 1`
5346 if test $lt_ac_count -gt $lt_ac_max; then
5347 lt_ac_max=$lt_ac_count
5348 lt_cv_path_SED=$lt_ac_sed
5349 fi
5350 done
5351 done
5352
5353 fi
5354
5355 SED=$lt_cv_path_SED
5356
5357 echo "$as_me:$LINENO: result: $SED" >&5
5358 echo "${ECHO_T}$SED" >&6
5359
5360 test -z "$SED" && SED=sed
5361 Xsed="$SED -e 1s/^X//"
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373 echo "$as_me:$LINENO: checking for fgrep" >&5
5374 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5375 if test "${ac_cv_prog_fgrep+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5379 then ac_cv_prog_fgrep='grep -F'
5380 else ac_cv_prog_fgrep='fgrep'
5381 fi
5382 fi
5383 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5384 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5385 FGREP=$ac_cv_prog_fgrep
5386
5387
5388 test -z "$GREP" && GREP=grep
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5409 if test "${with_gnu_ld+set}" = set; then
5410 withval="$with_gnu_ld"
5411 test "$withval" = no || with_gnu_ld=yes
5412 else
5413 with_gnu_ld=no
5414 fi;
5415 ac_prog=ld
5416 if test "$GCC" = yes; then
5417 # Check if gcc -print-prog-name=ld gives a path.
5418 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5419 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5420 case $host in
5421 *-*-mingw*)
5422 # gcc leaves a trailing carriage return which upsets mingw
5423 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5424 *)
5425 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5426 esac
5427 case $ac_prog in
5428 # Accept absolute paths.
5429 [\\/]* | ?:[\\/]*)
5430 re_direlt='/[^/][^/]*/\.\./'
5431 # Canonicalize the pathname of ld
5432 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5433 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5434 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5435 done
5436 test -z "$LD" && LD="$ac_prog"
5437 ;;
5438 "")
5439 # If it fails, then pretend we aren't using GCC.
5440 ac_prog=ld
5441 ;;
5442 *)
5443 # If it is relative, then search for the first ld in PATH.
5444 with_gnu_ld=unknown
5445 ;;
5446 esac
5447 elif test "$with_gnu_ld" = yes; then
5448 echo "$as_me:$LINENO: checking for GNU ld" >&5
5449 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5450 else
5451 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5452 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5453 fi
5454 if test "${lt_cv_path_LD+set}" = set; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 else
5457 if test -z "$LD"; then
5458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5459 for ac_dir in $PATH; do
5460 IFS="$lt_save_ifs"
5461 test -z "$ac_dir" && ac_dir=.
5462 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5463 lt_cv_path_LD="$ac_dir/$ac_prog"
5464 # Check to see if the program is GNU ld. I'd rather use --version,
5465 # but apparently some variants of GNU ld only accept -v.
5466 # Break only if it was the GNU/non-GNU ld that we prefer.
5467 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5468 *GNU* | *'with BFD'*)
5469 test "$with_gnu_ld" != no && break
5470 ;;
5471 *)
5472 test "$with_gnu_ld" != yes && break
5473 ;;
5474 esac
5475 fi
5476 done
5477 IFS="$lt_save_ifs"
5478 else
5479 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5480 fi
5481 fi
5482
5483 LD="$lt_cv_path_LD"
5484 if test -n "$LD"; then
5485 echo "$as_me:$LINENO: result: $LD" >&5
5486 echo "${ECHO_T}$LD" >&6
5487 else
5488 echo "$as_me:$LINENO: result: no" >&5
5489 echo "${ECHO_T}no" >&6
5490 fi
5491 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5492 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5493 { (exit 1); exit 1; }; }
5494 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5495 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5496 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5500 case `$LD -v 2>&1 </dev/null` in
5501 *GNU* | *'with BFD'*)
5502 lt_cv_prog_gnu_ld=yes
5503 ;;
5504 *)
5505 lt_cv_prog_gnu_ld=no
5506 ;;
5507 esac
5508 fi
5509 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5510 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5511 with_gnu_ld=$lt_cv_prog_gnu_ld
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5523 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5524 if test "${lt_cv_path_NM+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527 if test -n "$NM"; then
5528 # Let the user override the test.
5529 lt_cv_path_NM="$NM"
5530 else
5531 lt_nm_to_check="${ac_tool_prefix}nm"
5532 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5533 lt_nm_to_check="$lt_nm_to_check nm"
5534 fi
5535 for lt_tmp_nm in $lt_nm_to_check; do
5536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5537 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5538 IFS="$lt_save_ifs"
5539 test -z "$ac_dir" && ac_dir=.
5540 tmp_nm="$ac_dir/$lt_tmp_nm"
5541 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5542 # Check to see if the nm accepts a BSD-compat flag.
5543 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5544 # nm: unknown option "B" ignored
5545 # Tru64's nm complains that /dev/null is an invalid object file
5546 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5547 */dev/null* | *'Invalid file or object type'*)
5548 lt_cv_path_NM="$tmp_nm -B"
5549 break
5550 ;;
5551 *)
5552 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5553 */dev/null*)
5554 lt_cv_path_NM="$tmp_nm -p"
5555 break
5556 ;;
5557 *)
5558 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5559 continue # so that we can try to find one that supports BSD flags
5560 ;;
5561 esac
5562 ;;
5563 esac
5564 fi
5565 done
5566 IFS="$lt_save_ifs"
5567 done
5568 : ${lt_cv_path_NM=no}
5569 fi
5570 fi
5571 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5572 echo "${ECHO_T}$lt_cv_path_NM" >&6
5573 if test "$lt_cv_path_NM" != "no"; then
5574 NM="$lt_cv_path_NM"
5575 else
5576 # Didn't find any BSD compatible name lister, look for dumpbin.
5577 if test -n "$ac_tool_prefix"; then
5578 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5579 do
5580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5582 echo "$as_me:$LINENO: checking for $ac_word" >&5
5583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5584 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 if test -n "$DUMPBIN"; then
5588 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601 done
5602 done
5603
5604 fi
5605 fi
5606 DUMPBIN=$ac_cv_prog_DUMPBIN
5607 if test -n "$DUMPBIN"; then
5608 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5609 echo "${ECHO_T}$DUMPBIN" >&6
5610 else
5611 echo "$as_me:$LINENO: result: no" >&5
5612 echo "${ECHO_T}no" >&6
5613 fi
5614
5615 test -n "$DUMPBIN" && break
5616 done
5617 fi
5618 if test -z "$DUMPBIN"; then
5619 ac_ct_DUMPBIN=$DUMPBIN
5620 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5621 do
5622 # Extract the first word of "$ac_prog", so it can be a program name with args.
5623 set dummy $ac_prog; ac_word=$2
5624 echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5626 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629 if test -n "$ac_ct_DUMPBIN"; then
5630 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5642 fi
5643 done
5644 done
5645
5646 fi
5647 fi
5648 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5649 if test -n "$ac_ct_DUMPBIN"; then
5650 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5651 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5652 else
5653 echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5655 fi
5656
5657 test -n "$ac_ct_DUMPBIN" && break
5658 done
5659 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5660
5661 DUMPBIN=$ac_ct_DUMPBIN
5662 fi
5663
5664
5665 if test "$DUMPBIN" != ":"; then
5666 NM="$DUMPBIN"
5667 fi
5668 fi
5669 test -z "$NM" && NM=nm
5670
5671
5672
5673
5674
5675
5676 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5677 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5678 if test "${lt_cv_nm_interface+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681 lt_cv_nm_interface="BSD nm"
5682 echo "int some_variable = 0;" > conftest.$ac_ext
5683 (eval echo "\"\$as_me:5683: $ac_compile\"" >&5)
5684 (eval "$ac_compile" 2>conftest.err)
5685 cat conftest.err >&5
5686 (eval echo "\"\$as_me:5686: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5687 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5688 cat conftest.err >&5
5689 (eval echo "\"\$as_me:5689: output\"" >&5)
5690 cat conftest.out >&5
5691 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5692 lt_cv_nm_interface="MS dumpbin"
5693 fi
5694 rm -f conftest*
5695 fi
5696 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5697 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5698
5699 # find the maximum length of command line arguments
5700 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5701 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5702 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705 i=0
5706 teststring="ABCD"
5707
5708 case $build_os in
5709 msdosdjgpp*)
5710 # On DJGPP, this test can blow up pretty badly due to problems in libc
5711 # (any single argument exceeding 2000 bytes causes a buffer overrun
5712 # during glob expansion). Even if it were fixed, the result of this
5713 # check would be larger than it should be.
5714 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5715 ;;
5716
5717 gnu*)
5718 # Under GNU Hurd, this test is not required because there is
5719 # no limit to the length of command line arguments.
5720 # Libtool will interpret -1 as no limit whatsoever
5721 lt_cv_sys_max_cmd_len=-1;
5722 ;;
5723
5724 cygwin* | mingw*)
5725 # On Win9x/ME, this test blows up -- it succeeds, but takes
5726 # about 5 minutes as the teststring grows exponentially.
5727 # Worse, since 9x/ME are not pre-emptively multitasking,
5728 # you end up with a "frozen" computer, even though with patience
5729 # the test eventually succeeds (with a max line length of 256k).
5730 # Instead, let's just punt: use the minimum linelength reported by
5731 # all of the supported platforms: 8192 (on NT/2K/XP).
5732 lt_cv_sys_max_cmd_len=8192;
5733 ;;
5734
5735 amigaos*)
5736 # On AmigaOS with pdksh, this test takes hours, literally.
5737 # So we just punt and use a minimum line length of 8192.
5738 lt_cv_sys_max_cmd_len=8192;
5739 ;;
5740
5741 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5742 # This has been around since 386BSD, at least. Likely further.
5743 if test -x /sbin/sysctl; then
5744 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5745 elif test -x /usr/sbin/sysctl; then
5746 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5747 else
5748 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5749 fi
5750 # And add a safety zone
5751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5753 ;;
5754
5755 interix*)
5756 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5757 lt_cv_sys_max_cmd_len=196608
5758 ;;
5759
5760 osf*)
5761 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5762 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5763 # nice to cause kernel panics so lets avoid the loop below.
5764 # First set a reasonable default.
5765 lt_cv_sys_max_cmd_len=16384
5766 #
5767 if test -x /sbin/sysconfig; then
5768 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5769 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5770 esac
5771 fi
5772 ;;
5773 sco3.2v5*)
5774 lt_cv_sys_max_cmd_len=102400
5775 ;;
5776 sysv5* | sco5v6* | sysv4.2uw2*)
5777 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5778 if test -n "$kargmax"; then
5779 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5780 else
5781 lt_cv_sys_max_cmd_len=32768
5782 fi
5783 ;;
5784 *)
5785 # Make teststring a little bigger before we do anything with it.
5786 # a 1K string should be a reasonable start.
5787 for i in 1 2 3 4 5 6 7 8 ; do
5788 teststring=$teststring$teststring
5789 done
5790 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5791 # If test is not a shell built-in, we'll probably end up computing a
5792 # maximum length that is only half of the actual maximum length, but
5793 # we can't tell.
5794 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5795 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5796 test $i != 17 # 1/2 MB should be enough
5797 do
5798 i=`expr $i + 1`
5799 teststring=$teststring$teststring
5800 done
5801 # Only check the string length outside the loop.
5802 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5803 teststring=
5804 # Add a significant safety factor because C++ compilers can tack on massive
5805 # amounts of additional arguments before passing them to the linker.
5806 # It appears as though 1/2 is a usable value.
5807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5808 ;;
5809 esac
5810
5811 fi
5812
5813 if test -n $lt_cv_sys_max_cmd_len ; then
5814 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5815 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5816 else
5817 echo "$as_me:$LINENO: result: none" >&5
5818 echo "${ECHO_T}none" >&6
5819 fi
5820 max_cmd_len=$lt_cv_sys_max_cmd_len
5821
5822
5823
5824
5825
5826
5827
5828 : ${CP="cp -f"}
5829 : ${MV="mv -f"}
5830 : ${RM="rm -f"}
5831
5832 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5833 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5834 # Try some XSI features
5835 xsi_shell=no
5836 ( _lt_dummy="a/b/c"
5837 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5838 = c,a/b,, ) >/dev/null 2>&1 \
5839 && xsi_shell=yes
5840 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5841 echo "${ECHO_T}$xsi_shell" >&6
5842
5843
5844 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5845 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5846 lt_shell_append=no
5847 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5848 >/dev/null 2>&1 \
5849 && lt_shell_append=yes
5850 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5851 echo "${ECHO_T}$lt_shell_append" >&6
5852
5853
5854 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5855 lt_unset=unset
5856 else
5857 lt_unset=false
5858 fi
5859
5860
5861
5862
5863
5864 # test EBCDIC or ASCII
5865 case `echo X|tr X '\101'` in
5866 A) # ASCII based system
5867 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5868 lt_SP2NL='tr \040 \012'
5869 lt_NL2SP='tr \015\012 \040\040'
5870 ;;
5871 *) # EBCDIC based system
5872 lt_SP2NL='tr \100 \n'
5873 lt_NL2SP='tr \r\n \100\100'
5874 ;;
5875 esac
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5886 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5887 if test "${lt_cv_ld_reload_flag+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 lt_cv_ld_reload_flag='-r'
5891 fi
5892 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5893 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5894 reload_flag=$lt_cv_ld_reload_flag
5895 case $reload_flag in
5896 "" | " "*) ;;
5897 *) reload_flag=" $reload_flag" ;;
5898 esac
5899 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5900 case $host_os in
5901 darwin*)
5902 if test "$GCC" = yes; then
5903 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5904 else
5905 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5906 fi
5907 ;;
5908 esac
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5920 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5921 if test "${lt_cv_deplibs_check_method+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924 lt_cv_file_magic_cmd='$MAGIC_CMD'
5925 lt_cv_file_magic_test_file=
5926 lt_cv_deplibs_check_method='unknown'
5927 # Need to set the preceding variable on all platforms that support
5928 # interlibrary dependencies.
5929 # 'none' -- dependencies not supported.
5930 # `unknown' -- same as none, but documents that we really don't know.
5931 # 'pass_all' -- all dependencies passed with no checks.
5932 # 'test_compile' -- check by making test program.
5933 # 'file_magic [[regex]]' -- check by looking for files in library path
5934 # which responds to the $file_magic_cmd with a given extended regex.
5935 # If you have `file' or equivalent on your system and you're not sure
5936 # whether `pass_all' will *always* work, you probably want this one.
5937
5938 case $host_os in
5939 aix4* | aix5*)
5940 lt_cv_deplibs_check_method=pass_all
5941 ;;
5942
5943 beos*)
5944 lt_cv_deplibs_check_method=pass_all
5945 ;;
5946
5947 bsdi[45]*)
5948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5949 lt_cv_file_magic_cmd='/usr/bin/file -L'
5950 lt_cv_file_magic_test_file=/shlib/libc.so
5951 ;;
5952
5953 cygwin*)
5954 # func_win32_libid is a shell function defined in ltmain.sh
5955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5956 lt_cv_file_magic_cmd='func_win32_libid'
5957 ;;
5958
5959 mingw* | pw32*)
5960 # Base MSYS/MinGW do not provide the 'file' command needed by
5961 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5962 # unless we find 'file', for example because we are cross-compiling.
5963 if ( file / ) >/dev/null 2>&1; then
5964 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5965 lt_cv_file_magic_cmd='func_win32_libid'
5966 else
5967 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5968 lt_cv_file_magic_cmd='$OBJDUMP -f'
5969 fi
5970 ;;
5971
5972 darwin* | rhapsody*)
5973 lt_cv_deplibs_check_method=pass_all
5974 ;;
5975
5976 freebsd* | dragonfly*)
5977 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5978 case $host_cpu in
5979 i*86 )
5980 # Not sure whether the presence of OpenBSD here was a mistake.
5981 # Let's accept both of them until this is cleared up.
5982 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5983 lt_cv_file_magic_cmd=/usr/bin/file
5984 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5985 ;;
5986 esac
5987 else
5988 lt_cv_deplibs_check_method=pass_all
5989 fi
5990 ;;
5991
5992 gnu*)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995
5996 hpux10.20* | hpux11*)
5997 lt_cv_file_magic_cmd=/usr/bin/file
5998 case $host_cpu in
5999 ia64*)
6000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6001 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6002 ;;
6003 hppa*64*)
6004 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]'
6005 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6006 ;;
6007 *)
6008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6009 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6010 ;;
6011 esac
6012 ;;
6013
6014 interix[3-9]*)
6015 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6017 ;;
6018
6019 irix5* | irix6* | nonstopux*)
6020 case $LD in
6021 *-32|*"-32 ") libmagic=32-bit;;
6022 *-n32|*"-n32 ") libmagic=N32;;
6023 *-64|*"-64 ") libmagic=64-bit;;
6024 *) libmagic=never-match;;
6025 esac
6026 lt_cv_deplibs_check_method=pass_all
6027 ;;
6028
6029 # This must be Linux ELF.
6030 linux* | k*bsd*-gnu)
6031 lt_cv_deplibs_check_method=pass_all
6032 ;;
6033
6034 netbsd*)
6035 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6037 else
6038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6039 fi
6040 ;;
6041
6042 newos6*)
6043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6044 lt_cv_file_magic_cmd=/usr/bin/file
6045 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6046 ;;
6047
6048 *nto* | *qnx*)
6049 lt_cv_deplibs_check_method=pass_all
6050 ;;
6051
6052 openbsd*)
6053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6055 else
6056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6057 fi
6058 ;;
6059
6060 osf3* | osf4* | osf5*)
6061 lt_cv_deplibs_check_method=pass_all
6062 ;;
6063
6064 rdos*)
6065 lt_cv_deplibs_check_method=pass_all
6066 ;;
6067
6068 solaris*)
6069 lt_cv_deplibs_check_method=pass_all
6070 ;;
6071
6072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6073 lt_cv_deplibs_check_method=pass_all
6074 ;;
6075
6076 sysv4 | sysv4.3*)
6077 case $host_vendor in
6078 motorola)
6079 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]'
6080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6081 ;;
6082 ncr)
6083 lt_cv_deplibs_check_method=pass_all
6084 ;;
6085 sequent)
6086 lt_cv_file_magic_cmd='/bin/file'
6087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6088 ;;
6089 sni)
6090 lt_cv_file_magic_cmd='/bin/file'
6091 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6092 lt_cv_file_magic_test_file=/lib/libc.so
6093 ;;
6094 siemens)
6095 lt_cv_deplibs_check_method=pass_all
6096 ;;
6097 pc)
6098 lt_cv_deplibs_check_method=pass_all
6099 ;;
6100 esac
6101 ;;
6102
6103 tpf*)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106 esac
6107
6108 fi
6109 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6110 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6111 file_magic_cmd=$lt_cv_file_magic_cmd
6112 deplibs_check_method=$lt_cv_deplibs_check_method
6113 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}ar; ac_word=$2
6129 echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6131 if test "${ac_cv_prog_AR+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134 if test -n "$AR"; then
6135 ac_cv_prog_AR="$AR" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_AR="${ac_tool_prefix}ar"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148 done
6149 done
6150
6151 fi
6152 fi
6153 AR=$ac_cv_prog_AR
6154 if test -n "$AR"; then
6155 echo "$as_me:$LINENO: result: $AR" >&5
6156 echo "${ECHO_T}$AR" >&6
6157 else
6158 echo "$as_me:$LINENO: result: no" >&5
6159 echo "${ECHO_T}no" >&6
6160 fi
6161
6162 fi
6163 if test -z "$ac_cv_prog_AR"; then
6164 ac_ct_AR=$AR
6165 # Extract the first word of "ar", so it can be a program name with args.
6166 set dummy ar; ac_word=$2
6167 echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6169 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 if test -n "$ac_ct_AR"; then
6173 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178 IFS=$as_save_IFS
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182 ac_cv_prog_ac_ct_AR="ar"
6183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 break 2
6185 fi
6186 done
6187 done
6188
6189 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6190 fi
6191 fi
6192 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6193 if test -n "$ac_ct_AR"; then
6194 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6195 echo "${ECHO_T}$ac_ct_AR" >&6
6196 else
6197 echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6
6199 fi
6200
6201 AR=$ac_ct_AR
6202 else
6203 AR="$ac_cv_prog_AR"
6204 fi
6205
6206 test -z "$AR" && AR=ar
6207 test -z "$AR_FLAGS" && AR_FLAGS=cru
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219 if test -n "$ac_tool_prefix"; then
6220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6221 set dummy ${ac_tool_prefix}strip; ac_word=$2
6222 echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6224 if test "${ac_cv_prog_STRIP+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227 if test -n "$STRIP"; then
6228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6237 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241 done
6242 done
6243
6244 fi
6245 fi
6246 STRIP=$ac_cv_prog_STRIP
6247 if test -n "$STRIP"; then
6248 echo "$as_me:$LINENO: result: $STRIP" >&5
6249 echo "${ECHO_T}$STRIP" >&6
6250 else
6251 echo "$as_me:$LINENO: result: no" >&5
6252 echo "${ECHO_T}no" >&6
6253 fi
6254
6255 fi
6256 if test -z "$ac_cv_prog_STRIP"; then
6257 ac_ct_STRIP=$STRIP
6258 # Extract the first word of "strip", so it can be a program name with args.
6259 set dummy strip; ac_word=$2
6260 echo "$as_me:$LINENO: checking for $ac_word" >&5
6261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6262 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 if test -n "$ac_ct_STRIP"; then
6266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6275 ac_cv_prog_ac_ct_STRIP="strip"
6276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
6278 fi
6279 done
6280 done
6281
6282 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6283 fi
6284 fi
6285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6286 if test -n "$ac_ct_STRIP"; then
6287 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6288 echo "${ECHO_T}$ac_ct_STRIP" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6
6292 fi
6293
6294 STRIP=$ac_ct_STRIP
6295 else
6296 STRIP="$ac_cv_prog_STRIP"
6297 fi
6298
6299 test -z "$STRIP" && STRIP=:
6300
6301
6302
6303
6304
6305
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6309 echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6311 if test "${ac_cv_prog_RANLIB+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314 if test -n "$RANLIB"; then
6315 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6327 fi
6328 done
6329 done
6330
6331 fi
6332 fi
6333 RANLIB=$ac_cv_prog_RANLIB
6334 if test -n "$RANLIB"; then
6335 echo "$as_me:$LINENO: result: $RANLIB" >&5
6336 echo "${ECHO_T}$RANLIB" >&6
6337 else
6338 echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6
6340 fi
6341
6342 fi
6343 if test -z "$ac_cv_prog_RANLIB"; then
6344 ac_ct_RANLIB=$RANLIB
6345 # Extract the first word of "ranlib", so it can be a program name with args.
6346 set dummy ranlib; ac_word=$2
6347 echo "$as_me:$LINENO: checking for $ac_word" >&5
6348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352 if test -n "$ac_ct_RANLIB"; then
6353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_RANLIB="ranlib"
6363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366 done
6367 done
6368
6369 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6370 fi
6371 fi
6372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6373 if test -n "$ac_ct_RANLIB"; then
6374 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6375 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6376 else
6377 echo "$as_me:$LINENO: result: no" >&5
6378 echo "${ECHO_T}no" >&6
6379 fi
6380
6381 RANLIB=$ac_ct_RANLIB
6382 else
6383 RANLIB="$ac_cv_prog_RANLIB"
6384 fi
6385
6386 test -z "$RANLIB" && RANLIB=:
6387
6388
6389
6390
6391
6392
6393 # Determine commands to create old-style static archives.
6394 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6395 old_postinstall_cmds='chmod 644 $oldlib'
6396 old_postuninstall_cmds=
6397
6398 if test -n "$RANLIB"; then
6399 case $host_os in
6400 openbsd*)
6401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6402 ;;
6403 *)
6404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6405 ;;
6406 esac
6407 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6408 fi
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 # If no C compiler was specified, use CC.
6444 LTCC=${LTCC-"$CC"}
6445
6446 # If no C compiler flags were specified, use CFLAGS.
6447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6448
6449 # Allow CC to be a program name with arguments.
6450 compiler=$CC
6451
6452
6453 # Check for command to grab the raw symbol name followed by C symbol from nm.
6454 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6455 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6456 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459
6460 # These are sane defaults that work on at least a few old systems.
6461 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6462
6463 # Character class describing NM global symbol codes.
6464 symcode='[BCDEGRST]'
6465
6466 # Regexp to match symbols that can be accessed directly from C.
6467 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6468
6469 # Define system-specific variables.
6470 case $host_os in
6471 aix*)
6472 symcode='[BCDT]'
6473 ;;
6474 cygwin* | mingw* | pw32*)
6475 symcode='[ABCDGISTW]'
6476 ;;
6477 hpux*)
6478 if test "$host_cpu" = ia64; then
6479 symcode='[ABCDEGRST]'
6480 fi
6481 ;;
6482 irix* | nonstopux*)
6483 symcode='[BCDEGRST]'
6484 ;;
6485 osf*)
6486 symcode='[BCDEGQRST]'
6487 ;;
6488 solaris*)
6489 symcode='[BDRT]'
6490 ;;
6491 sco3.2v5*)
6492 symcode='[DT]'
6493 ;;
6494 sysv4.2uw2*)
6495 symcode='[DT]'
6496 ;;
6497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6498 symcode='[ABDT]'
6499 ;;
6500 sysv4)
6501 symcode='[DFNSTU]'
6502 ;;
6503 esac
6504
6505 # If we're using GNU nm, then use its standard symbol codes.
6506 case `$NM -V 2>&1` in
6507 *GNU* | *'with BFD'*)
6508 symcode='[ABCDGIRSTW]' ;;
6509 esac
6510
6511 # Transform an extracted symbol line into a proper C declaration.
6512 # Some systems (esp. on ia64) link data and code symbols differently,
6513 # so use this general approach.
6514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6515
6516 # Transform an extracted symbol line into symbol name and symbol address
6517 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6518
6519 # Handle CRLF in mingw tool chain
6520 opt_cr=
6521 case $build_os in
6522 mingw*)
6523 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6524 ;;
6525 esac
6526
6527 # Try without a prefix underscore, then with it.
6528 for ac_symprfx in "" "_"; do
6529
6530 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6531 symxfrm="\\1 $ac_symprfx\\2 \\2"
6532
6533 # Write the raw and C identifiers.
6534 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6535 # Fake it for dumpbin and say T for any non-static function
6536 # and D for any global variable.
6537 # Also find C++ and __fastcall symbols from MSVC++,
6538 # which start with @ or ?.
6539 lt_cv_sys_global_symbol_pipe="$AWK '"\
6540 " {last_section=section; section=\$ 3};"\
6541 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6542 " \$ 0!~/External *\|/{next};"\
6543 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6544 " {if(hide[section]) next};"\
6545 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6546 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6547 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6548 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6549 " ' prfx=^$ac_symprfx"
6550 else
6551 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6552 fi
6553
6554 # Check to see that the pipe works correctly.
6555 pipe_works=no
6556
6557 rm -f conftest*
6558 cat > conftest.$ac_ext <<_LT_EOF
6559 #ifdef __cplusplus
6560 extern "C" {
6561 #endif
6562 char nm_test_var;
6563 void nm_test_func(void);
6564 void nm_test_func(void){}
6565 #ifdef __cplusplus
6566 }
6567 #endif
6568 int main(){nm_test_var='a';nm_test_func();return(0);}
6569 _LT_EOF
6570
6571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6572 (eval $ac_compile) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; then
6576 # Now try to grab the symbols.
6577 nlist=conftest.nm
6578 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6579 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && test -s "$nlist"; then
6583 # Try sorting and uniquifying the output.
6584 if sort "$nlist" | uniq > "$nlist"T; then
6585 mv -f "$nlist"T "$nlist"
6586 else
6587 rm -f "$nlist"T
6588 fi
6589
6590 # Make sure that we snagged all the symbols we need.
6591 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6592 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6593 cat <<_LT_EOF > conftest.$ac_ext
6594 #ifdef __cplusplus
6595 extern "C" {
6596 #endif
6597
6598 _LT_EOF
6599 # Now generate the symbol file.
6600 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6601
6602 cat <<_LT_EOF >> conftest.$ac_ext
6603
6604 /* The mapping between symbol names and symbols. */
6605 const struct {
6606 const char *name;
6607 void *address;
6608 }
6609 lt__PROGRAM__LTX_preloaded_symbols[] =
6610 {
6611 { "@PROGRAM@", (void *) 0 },
6612 _LT_EOF
6613 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6614 cat <<\_LT_EOF >> conftest.$ac_ext
6615 {0, (void *) 0}
6616 };
6617
6618 /* This works around a problem in FreeBSD linker */
6619 #ifdef FREEBSD_WORKAROUND
6620 static const void *lt_preloaded_setup() {
6621 return lt__PROGRAM__LTX_preloaded_symbols;
6622 }
6623 #endif
6624
6625 #ifdef __cplusplus
6626 }
6627 #endif
6628 _LT_EOF
6629 # Now try linking the two files.
6630 mv conftest.$ac_objext conftstm.$ac_objext
6631 lt_save_LIBS="$LIBS"
6632 lt_save_CFLAGS="$CFLAGS"
6633 LIBS="conftstm.$ac_objext"
6634 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636 (eval $ac_link) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6640 pipe_works=yes
6641 fi
6642 LIBS="$lt_save_LIBS"
6643 CFLAGS="$lt_save_CFLAGS"
6644 else
6645 echo "cannot find nm_test_func in $nlist" >&5
6646 fi
6647 else
6648 echo "cannot find nm_test_var in $nlist" >&5
6649 fi
6650 else
6651 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6652 fi
6653 else
6654 echo "$progname: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6656 fi
6657 rm -f conftest* conftst*
6658
6659 # Do not use the global_symbol_pipe unless it works.
6660 if test "$pipe_works" = yes; then
6661 break
6662 else
6663 lt_cv_sys_global_symbol_pipe=
6664 fi
6665 done
6666
6667 fi
6668
6669 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6670 lt_cv_sys_global_symbol_to_cdecl=
6671 fi
6672 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6673 echo "$as_me:$LINENO: result: failed" >&5
6674 echo "${ECHO_T}failed" >&6
6675 else
6676 echo "$as_me:$LINENO: result: ok" >&5
6677 echo "${ECHO_T}ok" >&6
6678 fi
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6697 if test "${enable_libtool_lock+set}" = set; then
6698 enableval="$enable_libtool_lock"
6699
6700 fi;
6701 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6702
6703 # Some flags need to be propagated to the compiler or linker for good
6704 # libtool support.
6705 case $host in
6706 ia64-*-hpux*)
6707 # Find out which ABI we are using.
6708 echo 'int i;' > conftest.$ac_ext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710 (eval $ac_compile) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; then
6714 case `/usr/bin/file conftest.$ac_objext` in
6715 *ELF-32*)
6716 HPUX_IA64_MODE="32"
6717 ;;
6718 *ELF-64*)
6719 HPUX_IA64_MODE="64"
6720 ;;
6721 esac
6722 fi
6723 rm -rf conftest*
6724 ;;
6725 *-*-irix6*)
6726 # Find out which ABI we are using.
6727 echo '#line 6727 "configure"' > conftest.$ac_ext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729 (eval $ac_compile) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; then
6733 if test "$lt_cv_prog_gnu_ld" = yes; then
6734 case `/usr/bin/file conftest.$ac_objext` in
6735 *32-bit*)
6736 LD="${LD-ld} -melf32bsmip"
6737 ;;
6738 *N32*)
6739 LD="${LD-ld} -melf32bmipn32"
6740 ;;
6741 *64-bit*)
6742 LD="${LD-ld} -melf64bmip"
6743 ;;
6744 esac
6745 else
6746 case `/usr/bin/file conftest.$ac_objext` in
6747 *32-bit*)
6748 LD="${LD-ld} -32"
6749 ;;
6750 *N32*)
6751 LD="${LD-ld} -n32"
6752 ;;
6753 *64-bit*)
6754 LD="${LD-ld} -64"
6755 ;;
6756 esac
6757 fi
6758 fi
6759 rm -rf conftest*
6760 ;;
6761
6762 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6763 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6764 # Find out which ABI we are using.
6765 echo 'int i;' > conftest.$ac_ext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767 (eval $ac_compile) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; then
6771 case `/usr/bin/file conftest.o` in
6772 *32-bit*)
6773 case $host in
6774 x86_64-*kfreebsd*-gnu)
6775 LD="${LD-ld} -m elf_i386_fbsd"
6776 ;;
6777 x86_64-*linux*)
6778 LD="${LD-ld} -m elf_i386"
6779 ;;
6780 ppc64-*linux*|powerpc64-*linux*)
6781 LD="${LD-ld} -m elf32ppclinux"
6782 ;;
6783 s390x-*linux*)
6784 LD="${LD-ld} -m elf_s390"
6785 ;;
6786 sparc64-*linux*)
6787 LD="${LD-ld} -m elf32_sparc"
6788 ;;
6789 esac
6790 ;;
6791 *64-bit*)
6792 case $host in
6793 x86_64-*kfreebsd*-gnu)
6794 LD="${LD-ld} -m elf_x86_64_fbsd"
6795 ;;
6796 x86_64-*linux*)
6797 LD="${LD-ld} -m elf_x86_64"
6798 ;;
6799 ppc*-*linux*|powerpc*-*linux*)
6800 LD="${LD-ld} -m elf64ppc"
6801 ;;
6802 s390*-*linux*|s390*-*tpf*)
6803 LD="${LD-ld} -m elf64_s390"
6804 ;;
6805 sparc*-*linux*)
6806 LD="${LD-ld} -m elf64_sparc"
6807 ;;
6808 esac
6809 ;;
6810 esac
6811 fi
6812 rm -rf conftest*
6813 ;;
6814
6815 *-*-sco3.2v5*)
6816 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6817 SAVE_CFLAGS="$CFLAGS"
6818 CFLAGS="$CFLAGS -belf"
6819 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6820 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6821 if test "${lt_cv_cc_needs_belf+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 ac_ext=c
6825 ac_cpp='$CPP $CPPFLAGS'
6826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6829
6830 if test x$gcc_no_link = xyes; then
6831 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6832 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6833 { (exit 1); exit 1; }; }
6834 fi
6835 cat >conftest.$ac_ext <<_ACEOF
6836 /* confdefs.h. */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841
6842 int
6843 main ()
6844 {
6845
6846 ;
6847 return 0;
6848 }
6849 _ACEOF
6850 rm -f conftest.$ac_objext conftest$ac_exeext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6852 (eval $ac_link) 2>conftest.er1
6853 ac_status=$?
6854 grep -v '^ *+' conftest.er1 >conftest.err
6855 rm -f conftest.er1
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -z "$ac_c_werror_flag"
6860 || test ! -s conftest.err'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 (eval $ac_try) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; } &&
6866 { ac_try='test -s conftest$ac_exeext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 (eval $ac_try) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6872 lt_cv_cc_needs_belf=yes
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877 lt_cv_cc_needs_belf=no
6878 fi
6879 rm -f conftest.err conftest.$ac_objext \
6880 conftest$ac_exeext conftest.$ac_ext
6881 ac_ext=c
6882 ac_cpp='$CPP $CPPFLAGS'
6883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6886
6887 fi
6888 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6889 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6890 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6891 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6892 CFLAGS="$SAVE_CFLAGS"
6893 fi
6894 ;;
6895 sparc*-*solaris*)
6896 # Find out which ABI we are using.
6897 echo 'int i;' > conftest.$ac_ext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; then
6903 case `/usr/bin/file conftest.o` in
6904 *64-bit*)
6905 case $lt_cv_prog_gnu_ld in
6906 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6907 *) LD="${LD-ld} -64" ;;
6908 esac
6909 ;;
6910 esac
6911 fi
6912 rm -rf conftest*
6913 ;;
6914 esac
6915
6916 need_locks="$enable_libtool_lock"
6917
6918
6919 for ac_header in dlfcn.h
6920 do
6921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6922 echo "$as_me:$LINENO: checking for $ac_header" >&5
6923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h. */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 $ac_includes_default
6934
6935 #include <$ac_header>
6936 _ACEOF
6937 rm -f conftest.$ac_objext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939 (eval $ac_compile) 2>conftest.er1
6940 ac_status=$?
6941 grep -v '^ *+' conftest.er1 >conftest.err
6942 rm -f conftest.er1
6943 cat conftest.err >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } &&
6946 { ac_try='test -z "$ac_c_werror_flag"
6947 || test ! -s conftest.err'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; } &&
6953 { ac_try='test -s conftest.$ac_objext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 (eval $ac_try) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959 eval "$as_ac_Header=yes"
6960 else
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6963
6964 eval "$as_ac_Header=no"
6965 fi
6966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6967 fi
6968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6971 cat >>confdefs.h <<_ACEOF
6972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6973 _ACEOF
6974
6975 fi
6976
6977 done
6978
6979
6980
6981 # This can be used to rebuild libtool when needed
6982 LIBTOOL_DEPS="$ltmain"
6983
6984 # Always use our own libtool.
6985 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011 test -z "$LN_S" && LN_S="ln -s"
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026 if test -n "${ZSH_VERSION+set}" ; then
7027 setopt NO_GLOB_SUBST
7028 fi
7029
7030 echo "$as_me:$LINENO: checking for objdir" >&5
7031 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7032 if test "${lt_cv_objdir+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 rm -f .libs 2>/dev/null
7036 mkdir .libs 2>/dev/null
7037 if test -d .libs; then
7038 lt_cv_objdir=.libs
7039 else
7040 # MS-DOS does not allow filenames that begin with a dot.
7041 lt_cv_objdir=_libs
7042 fi
7043 rmdir .libs 2>/dev/null
7044 fi
7045 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7046 echo "${ECHO_T}$lt_cv_objdir" >&6
7047 objdir=$lt_cv_objdir
7048
7049
7050
7051
7052
7053 cat >>confdefs.h <<_ACEOF
7054 #define LT_OBJDIR "$lt_cv_objdir/"
7055 _ACEOF
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073 case $host_os in
7074 aix3*)
7075 # AIX sometimes has problems with the GCC collect2 program. For some
7076 # reason, if we set the COLLECT_NAMES environment variable, the problems
7077 # vanish in a puff of smoke.
7078 if test "X${COLLECT_NAMES+set}" != Xset; then
7079 COLLECT_NAMES=
7080 export COLLECT_NAMES
7081 fi
7082 ;;
7083 esac
7084
7085 # Sed substitution that helps us do robust quoting. It backslashifies
7086 # metacharacters that are still active within double-quoted strings.
7087 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7088
7089 # Same as above, but do not quote variable references.
7090 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7091
7092 # Sed substitution to delay expansion of an escaped shell variable in a
7093 # double_quote_subst'ed string.
7094 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7095
7096 # Sed substitution to delay expansion of an escaped single quote.
7097 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7098
7099 # Sed substitution to avoid accidental globbing in evaled expressions
7100 no_glob_subst='s/\*/\\\*/g'
7101
7102 # Global variables:
7103 ofile=libtool
7104 can_build_shared=yes
7105
7106 # All known linkers require a `.a' archive for static linking (except MSVC,
7107 # which needs '.lib').
7108 libext=a
7109
7110 with_gnu_ld="$lt_cv_prog_gnu_ld"
7111
7112 old_CC="$CC"
7113 old_CFLAGS="$CFLAGS"
7114
7115 # Set sane defaults for various variables
7116 test -z "$CC" && CC=cc
7117 test -z "$LTCC" && LTCC=$CC
7118 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7119 test -z "$LD" && LD=ld
7120 test -z "$ac_objext" && ac_objext=o
7121
7122 for cc_temp in $compiler""; do
7123 case $cc_temp in
7124 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7125 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7126 \-*) ;;
7127 *) break;;
7128 esac
7129 done
7130 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7131
7132
7133 # Only perform the check for file, if the check method requires it
7134 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7135 case $deplibs_check_method in
7136 file_magic*)
7137 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7138 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7139 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7140 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143 case $MAGIC_CMD in
7144 [\\/*] | ?:[\\/]*)
7145 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7146 ;;
7147 *)
7148 lt_save_MAGIC_CMD="$MAGIC_CMD"
7149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7150 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7151 for ac_dir in $ac_dummy; do
7152 IFS="$lt_save_ifs"
7153 test -z "$ac_dir" && ac_dir=.
7154 if test -f $ac_dir/${ac_tool_prefix}file; then
7155 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7156 if test -n "$file_magic_test_file"; then
7157 case $deplibs_check_method in
7158 "file_magic "*)
7159 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7161 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7162 $EGREP "$file_magic_regex" > /dev/null; then
7163 :
7164 else
7165 cat <<_LT_EOF 1>&2
7166
7167 *** Warning: the command libtool uses to detect shared libraries,
7168 *** $file_magic_cmd, produces output that libtool cannot recognize.
7169 *** The result is that libtool may fail to recognize shared libraries
7170 *** as such. This will affect the creation of libtool libraries that
7171 *** depend on shared libraries, but programs linked with such libtool
7172 *** libraries will work regardless of this problem. Nevertheless, you
7173 *** may want to report the problem to your system manager and/or to
7174 *** bug-libtool@gnu.org
7175
7176 _LT_EOF
7177 fi ;;
7178 esac
7179 fi
7180 break
7181 fi
7182 done
7183 IFS="$lt_save_ifs"
7184 MAGIC_CMD="$lt_save_MAGIC_CMD"
7185 ;;
7186 esac
7187 fi
7188
7189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7190 if test -n "$MAGIC_CMD"; then
7191 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7192 echo "${ECHO_T}$MAGIC_CMD" >&6
7193 else
7194 echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6
7196 fi
7197
7198
7199
7200
7201
7202 if test -z "$lt_cv_path_MAGIC_CMD"; then
7203 if test -n "$ac_tool_prefix"; then
7204 echo "$as_me:$LINENO: checking for file" >&5
7205 echo $ECHO_N "checking for file... $ECHO_C" >&6
7206 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209 case $MAGIC_CMD in
7210 [\\/*] | ?:[\\/]*)
7211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 lt_save_MAGIC_CMD="$MAGIC_CMD"
7215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7217 for ac_dir in $ac_dummy; do
7218 IFS="$lt_save_ifs"
7219 test -z "$ac_dir" && ac_dir=.
7220 if test -f $ac_dir/file; then
7221 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7222 if test -n "$file_magic_test_file"; then
7223 case $deplibs_check_method in
7224 "file_magic "*)
7225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7228 $EGREP "$file_magic_regex" > /dev/null; then
7229 :
7230 else
7231 cat <<_LT_EOF 1>&2
7232
7233 *** Warning: the command libtool uses to detect shared libraries,
7234 *** $file_magic_cmd, produces output that libtool cannot recognize.
7235 *** The result is that libtool may fail to recognize shared libraries
7236 *** as such. This will affect the creation of libtool libraries that
7237 *** depend on shared libraries, but programs linked with such libtool
7238 *** libraries will work regardless of this problem. Nevertheless, you
7239 *** may want to report the problem to your system manager and/or to
7240 *** bug-libtool@gnu.org
7241
7242 _LT_EOF
7243 fi ;;
7244 esac
7245 fi
7246 break
7247 fi
7248 done
7249 IFS="$lt_save_ifs"
7250 MAGIC_CMD="$lt_save_MAGIC_CMD"
7251 ;;
7252 esac
7253 fi
7254
7255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7256 if test -n "$MAGIC_CMD"; then
7257 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7258 echo "${ECHO_T}$MAGIC_CMD" >&6
7259 else
7260 echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6
7262 fi
7263
7264
7265 else
7266 MAGIC_CMD=:
7267 fi
7268 fi
7269
7270 fi
7271 ;;
7272 esac
7273
7274 # Use C for the default configuration in the libtool script
7275
7276 lt_save_CC="$CC"
7277 ac_ext=c
7278 ac_cpp='$CPP $CPPFLAGS'
7279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282
7283
7284 # Source file extension for C test sources.
7285 ac_ext=c
7286
7287 # Object file extension for compiled C test sources.
7288 objext=o
7289 objext=$objext
7290
7291 # Code to be used in simple compile tests
7292 lt_simple_compile_test_code="int some_variable = 0;"
7293
7294 # Code to be used in simple link tests
7295 lt_simple_link_test_code='int main(){return(0);}'
7296
7297
7298
7299
7300
7301
7302
7303 # If no C compiler was specified, use CC.
7304 LTCC=${LTCC-"$CC"}
7305
7306 # If no C compiler flags were specified, use CFLAGS.
7307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7308
7309 # Allow CC to be a program name with arguments.
7310 compiler=$CC
7311
7312 # Save the default compiler, since it gets overwritten when the other
7313 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7314 compiler_DEFAULT=$CC
7315
7316 # save warnings/boilerplate of simple test code
7317 ac_outfile=conftest.$ac_objext
7318 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7320 _lt_compiler_boilerplate=`cat conftest.err`
7321 $RM conftest*
7322
7323 ac_outfile=conftest.$ac_objext
7324 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7326 _lt_linker_boilerplate=`cat conftest.err`
7327 $RM conftest*
7328
7329
7330 ## CAVEAT EMPTOR:
7331 ## There is no encapsulation within the following macros, do not change
7332 ## the running order or otherwise move them around unless you know exactly
7333 ## what you are doing...
7334 if test -n "$compiler"; then
7335
7336 lt_prog_compiler_no_builtin_flag=
7337
7338 if test "$GCC" = yes; then
7339 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7340
7341 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7342 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7343 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346 lt_cv_prog_compiler_rtti_exceptions=no
7347 ac_outfile=conftest.$ac_objext
7348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7349 lt_compiler_flag="-fno-rtti -fno-exceptions"
7350 # Insert the option either (1) after the last *FLAGS variable, or
7351 # (2) before a word containing "conftest.", or (3) at the end.
7352 # Note that $ac_compile itself does not contain backslashes and begins
7353 # with a dollar sign (not a hyphen), so the echo should work correctly.
7354 # The option is referenced via a variable to avoid confusing sed.
7355 lt_compile=`echo "$ac_compile" | $SED \
7356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7358 -e 's:$: $lt_compiler_flag:'`
7359 (eval echo "\"\$as_me:7359: $lt_compile\"" >&5)
7360 (eval "$lt_compile" 2>conftest.err)
7361 ac_status=$?
7362 cat conftest.err >&5
7363 echo "$as_me:7363: \$? = $ac_status" >&5
7364 if (exit $ac_status) && test -s "$ac_outfile"; then
7365 # The compiler can only warn and ignore the option if not recognized
7366 # So say no if there are warnings other than the usual output.
7367 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7370 lt_cv_prog_compiler_rtti_exceptions=yes
7371 fi
7372 fi
7373 $RM conftest*
7374
7375 fi
7376 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7377 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7378
7379 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7380 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7381 else
7382 :
7383 fi
7384
7385 fi
7386
7387
7388
7389
7390
7391
7392 lt_prog_compiler_wl=
7393 lt_prog_compiler_pic=
7394 lt_prog_compiler_static=
7395
7396 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7397 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7398
7399 if test "$GCC" = yes; then
7400 lt_prog_compiler_wl='-Wl,'
7401 lt_prog_compiler_static='-static'
7402
7403 case $host_os in
7404 aix*)
7405 # All AIX code is PIC.
7406 if test "$host_cpu" = ia64; then
7407 # AIX 5 now supports IA64 processor
7408 lt_prog_compiler_static='-Bstatic'
7409 fi
7410 ;;
7411
7412 amigaos*)
7413 if test "$host_cpu" = m68k; then
7414 # FIXME: we need at least 68020 code to build shared libraries, but
7415 # adding the `-m68020' flag to GCC prevents building anything better,
7416 # like `-m68040'.
7417 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7418 fi
7419 ;;
7420
7421 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7422 # PIC is the default for these OSes.
7423 ;;
7424
7425 mingw* | cygwin* | pw32* | os2*)
7426 # This hack is so that the source file can tell whether it is being
7427 # built for inclusion in a dll (and should export symbols for example).
7428 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7429 # (--disable-auto-import) libraries
7430 lt_prog_compiler_pic='-DDLL_EXPORT'
7431 ;;
7432
7433 darwin* | rhapsody*)
7434 # PIC is the default on this platform
7435 # Common symbols not allowed in MH_DYLIB files
7436 lt_prog_compiler_pic='-fno-common'
7437 ;;
7438
7439 hpux*)
7440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7441 # not for PA HP-UX.
7442 case $host_cpu in
7443 hppa*64*|ia64*)
7444 # +Z the default
7445 ;;
7446 *)
7447 lt_prog_compiler_pic='-fPIC'
7448 ;;
7449 esac
7450 ;;
7451
7452 interix[3-9]*)
7453 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7454 # Instead, we relocate shared libraries at runtime.
7455 ;;
7456
7457 msdosdjgpp*)
7458 # Just because we use GCC doesn't mean we suddenly get shared libraries
7459 # on systems that don't support them.
7460 lt_prog_compiler_can_build_shared=no
7461 enable_shared=no
7462 ;;
7463
7464 *nto* | *qnx*)
7465 # QNX uses GNU C++, but need to define -shared option too, otherwise
7466 # it will coredump.
7467 lt_prog_compiler_pic='-fPIC -shared'
7468 ;;
7469
7470 sysv4*MP*)
7471 if test -d /usr/nec; then
7472 lt_prog_compiler_pic=-Kconform_pic
7473 fi
7474 ;;
7475
7476 *)
7477 lt_prog_compiler_pic='-fPIC'
7478 ;;
7479 esac
7480 else
7481 # PORTME Check for flag to pass linker flags through the system compiler.
7482 case $host_os in
7483 aix*)
7484 lt_prog_compiler_wl='-Wl,'
7485 if test "$host_cpu" = ia64; then
7486 # AIX 5 now supports IA64 processor
7487 lt_prog_compiler_static='-Bstatic'
7488 else
7489 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7490 fi
7491 ;;
7492 darwin*)
7493 # PIC is the default on this platform
7494 # Common symbols not allowed in MH_DYLIB files
7495 case $cc_basename in
7496 xlc*)
7497 lt_prog_compiler_pic='-qnocommon'
7498 lt_prog_compiler_wl='-Wl,'
7499 ;;
7500 esac
7501 ;;
7502
7503 mingw* | cygwin* | pw32* | os2*)
7504 # This hack is so that the source file can tell whether it is being
7505 # built for inclusion in a dll (and should export symbols for example).
7506 lt_prog_compiler_pic='-DDLL_EXPORT'
7507 ;;
7508
7509 hpux9* | hpux10* | hpux11*)
7510 lt_prog_compiler_wl='-Wl,'
7511 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7512 # not for PA HP-UX.
7513 case $host_cpu in
7514 hppa*64*|ia64*)
7515 # +Z the default
7516 ;;
7517 *)
7518 lt_prog_compiler_pic='+Z'
7519 ;;
7520 esac
7521 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7522 lt_prog_compiler_static='${wl}-a ${wl}archive'
7523 ;;
7524
7525 irix5* | irix6* | nonstopux*)
7526 lt_prog_compiler_wl='-Wl,'
7527 # PIC (with -KPIC) is the default.
7528 lt_prog_compiler_static='-non_shared'
7529 ;;
7530
7531 linux* | k*bsd*-gnu)
7532 case $cc_basename in
7533 icc* | ecc*)
7534 lt_prog_compiler_wl='-Wl,'
7535 lt_prog_compiler_pic='-KPIC'
7536 lt_prog_compiler_static='-static'
7537 ;;
7538 pgcc* | pgf77* | pgf90* | pgf95*)
7539 # Portland Group compilers (*not* the Pentium gcc compiler,
7540 # which looks to be a dead project)
7541 lt_prog_compiler_wl='-Wl,'
7542 lt_prog_compiler_pic='-fpic'
7543 lt_prog_compiler_static='-Bstatic'
7544 ;;
7545 ccc*)
7546 lt_prog_compiler_wl='-Wl,'
7547 # All Alpha code is PIC.
7548 lt_prog_compiler_static='-non_shared'
7549 ;;
7550 *)
7551 case `$CC -V 2>&1 | sed 5q` in
7552 *Sun\ C*)
7553 # Sun C 5.9
7554 lt_prog_compiler_pic='-KPIC'
7555 lt_prog_compiler_static='-Bstatic'
7556 lt_prog_compiler_wl='-Wl,'
7557 ;;
7558 *Sun\ F*)
7559 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7560 lt_prog_compiler_pic='-KPIC'
7561 lt_prog_compiler_static='-Bstatic'
7562 lt_prog_compiler_wl=''
7563 ;;
7564 esac
7565 ;;
7566 esac
7567 ;;
7568
7569 newsos6)
7570 lt_prog_compiler_pic='-KPIC'
7571 lt_prog_compiler_static='-Bstatic'
7572 ;;
7573
7574 *nto* | *qnx*)
7575 # QNX uses GNU C++, but need to define -shared option too, otherwise
7576 # it will coredump.
7577 lt_prog_compiler_pic='-fPIC -shared'
7578 ;;
7579
7580 osf3* | osf4* | osf5*)
7581 lt_prog_compiler_wl='-Wl,'
7582 # All OSF/1 code is PIC.
7583 lt_prog_compiler_static='-non_shared'
7584 ;;
7585
7586 rdos*)
7587 lt_prog_compiler_static='-non_shared'
7588 ;;
7589
7590 solaris*)
7591 lt_prog_compiler_pic='-KPIC'
7592 lt_prog_compiler_static='-Bstatic'
7593 case $cc_basename in
7594 f77* | f90* | f95*)
7595 lt_prog_compiler_wl='-Qoption ld ';;
7596 *)
7597 lt_prog_compiler_wl='-Wl,';;
7598 esac
7599 ;;
7600
7601 sunos4*)
7602 lt_prog_compiler_wl='-Qoption ld '
7603 lt_prog_compiler_pic='-PIC'
7604 lt_prog_compiler_static='-Bstatic'
7605 ;;
7606
7607 sysv4 | sysv4.2uw2* | sysv4.3*)
7608 lt_prog_compiler_wl='-Wl,'
7609 lt_prog_compiler_pic='-KPIC'
7610 lt_prog_compiler_static='-Bstatic'
7611 ;;
7612
7613 sysv4*MP*)
7614 if test -d /usr/nec ;then
7615 lt_prog_compiler_pic='-Kconform_pic'
7616 lt_prog_compiler_static='-Bstatic'
7617 fi
7618 ;;
7619
7620 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7621 lt_prog_compiler_wl='-Wl,'
7622 lt_prog_compiler_pic='-KPIC'
7623 lt_prog_compiler_static='-Bstatic'
7624 ;;
7625
7626 unicos*)
7627 lt_prog_compiler_wl='-Wl,'
7628 lt_prog_compiler_can_build_shared=no
7629 ;;
7630
7631 uts4*)
7632 lt_prog_compiler_pic='-pic'
7633 lt_prog_compiler_static='-Bstatic'
7634 ;;
7635
7636 *)
7637 lt_prog_compiler_can_build_shared=no
7638 ;;
7639 esac
7640 fi
7641
7642 case $host_os in
7643 # For platforms which do not support PIC, -DPIC is meaningless:
7644 *djgpp*)
7645 lt_prog_compiler_pic=
7646 ;;
7647 *)
7648 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7649 ;;
7650 esac
7651 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7652 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7653
7654
7655
7656
7657
7658
7659 #
7660 # Check to make sure the PIC flag actually works.
7661 #
7662 if test -n "$lt_prog_compiler_pic"; then
7663 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7664 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7665 if test "${lt_prog_compiler_pic_works+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668 lt_prog_compiler_pic_works=no
7669 ac_outfile=conftest.$ac_objext
7670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7671 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7672 # Insert the option either (1) after the last *FLAGS variable, or
7673 # (2) before a word containing "conftest.", or (3) at the end.
7674 # Note that $ac_compile itself does not contain backslashes and begins
7675 # with a dollar sign (not a hyphen), so the echo should work correctly.
7676 # The option is referenced via a variable to avoid confusing sed.
7677 lt_compile=`echo "$ac_compile" | $SED \
7678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7680 -e 's:$: $lt_compiler_flag:'`
7681 (eval echo "\"\$as_me:7681: $lt_compile\"" >&5)
7682 (eval "$lt_compile" 2>conftest.err)
7683 ac_status=$?
7684 cat conftest.err >&5
7685 echo "$as_me:7685: \$? = $ac_status" >&5
7686 if (exit $ac_status) && test -s "$ac_outfile"; then
7687 # The compiler can only warn and ignore the option if not recognized
7688 # So say no if there are warnings other than the usual output.
7689 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7692 lt_prog_compiler_pic_works=yes
7693 fi
7694 fi
7695 $RM conftest*
7696
7697 fi
7698 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7699 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7700
7701 if test x"$lt_prog_compiler_pic_works" = xyes; then
7702 case $lt_prog_compiler_pic in
7703 "" | " "*) ;;
7704 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7705 esac
7706 else
7707 lt_prog_compiler_pic=
7708 lt_prog_compiler_can_build_shared=no
7709 fi
7710
7711 fi
7712
7713
7714
7715
7716
7717
7718 #
7719 # Check to make sure the static flag actually works.
7720 #
7721 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7722 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7723 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7724 if test "${lt_prog_compiler_static_works+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727 lt_prog_compiler_static_works=no
7728 save_LDFLAGS="$LDFLAGS"
7729 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7730 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7731 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7732 # The linker can only warn and ignore the option if not recognized
7733 # So say no if there are warnings
7734 if test -s conftest.err; then
7735 # Append any errors to the config.log.
7736 cat conftest.err 1>&5
7737 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7739 if diff conftest.exp conftest.er2 >/dev/null; then
7740 lt_prog_compiler_static_works=yes
7741 fi
7742 else
7743 lt_prog_compiler_static_works=yes
7744 fi
7745 fi
7746 $RM conftest*
7747 LDFLAGS="$save_LDFLAGS"
7748
7749 fi
7750 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7751 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7752
7753 if test x"$lt_prog_compiler_static_works" = xyes; then
7754 :
7755 else
7756 lt_prog_compiler_static=
7757 fi
7758
7759
7760
7761
7762
7763
7764
7765 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7766 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7767 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770 lt_cv_prog_compiler_c_o=no
7771 $RM -r conftest 2>/dev/null
7772 mkdir conftest
7773 cd conftest
7774 mkdir out
7775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7776
7777 lt_compiler_flag="-o out/conftest2.$ac_objext"
7778 # Insert the option either (1) after the last *FLAGS variable, or
7779 # (2) before a word containing "conftest.", or (3) at the end.
7780 # Note that $ac_compile itself does not contain backslashes and begins
7781 # with a dollar sign (not a hyphen), so the echo should work correctly.
7782 lt_compile=`echo "$ac_compile" | $SED \
7783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7785 -e 's:$: $lt_compiler_flag:'`
7786 (eval echo "\"\$as_me:7786: $lt_compile\"" >&5)
7787 (eval "$lt_compile" 2>out/conftest.err)
7788 ac_status=$?
7789 cat out/conftest.err >&5
7790 echo "$as_me:7790: \$? = $ac_status" >&5
7791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7792 then
7793 # The compiler can only warn and ignore the option if not recognized
7794 # So say no if there are warnings
7795 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7798 lt_cv_prog_compiler_c_o=yes
7799 fi
7800 fi
7801 chmod u+w . 2>&5
7802 $RM conftest*
7803 # SGI C++ compiler will create directory out/ii_files/ for
7804 # template instantiation
7805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7806 $RM out/* && rmdir out
7807 cd ..
7808 $RM -r conftest
7809 $RM conftest*
7810
7811 fi
7812 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7813 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7814
7815
7816
7817
7818
7819
7820 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7822 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825 lt_cv_prog_compiler_c_o=no
7826 $RM -r conftest 2>/dev/null
7827 mkdir conftest
7828 cd conftest
7829 mkdir out
7830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7831
7832 lt_compiler_flag="-o out/conftest2.$ac_objext"
7833 # Insert the option either (1) after the last *FLAGS variable, or
7834 # (2) before a word containing "conftest.", or (3) at the end.
7835 # Note that $ac_compile itself does not contain backslashes and begins
7836 # with a dollar sign (not a hyphen), so the echo should work correctly.
7837 lt_compile=`echo "$ac_compile" | $SED \
7838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7840 -e 's:$: $lt_compiler_flag:'`
7841 (eval echo "\"\$as_me:7841: $lt_compile\"" >&5)
7842 (eval "$lt_compile" 2>out/conftest.err)
7843 ac_status=$?
7844 cat out/conftest.err >&5
7845 echo "$as_me:7845: \$? = $ac_status" >&5
7846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7847 then
7848 # The compiler can only warn and ignore the option if not recognized
7849 # So say no if there are warnings
7850 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7853 lt_cv_prog_compiler_c_o=yes
7854 fi
7855 fi
7856 chmod u+w . 2>&5
7857 $RM conftest*
7858 # SGI C++ compiler will create directory out/ii_files/ for
7859 # template instantiation
7860 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7861 $RM out/* && rmdir out
7862 cd ..
7863 $RM -r conftest
7864 $RM conftest*
7865
7866 fi
7867 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7869
7870
7871
7872
7873 hard_links="nottested"
7874 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7875 # do not overwrite the value of need_locks provided by the user
7876 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7877 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7878 hard_links=yes
7879 $RM conftest*
7880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7881 touch conftest.a
7882 ln conftest.a conftest.b 2>&5 || hard_links=no
7883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7884 echo "$as_me:$LINENO: result: $hard_links" >&5
7885 echo "${ECHO_T}$hard_links" >&6
7886 if test "$hard_links" = no; then
7887 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7888 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7889 need_locks=warn
7890 fi
7891 else
7892 need_locks=no
7893 fi
7894
7895
7896
7897
7898
7899
7900 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7901 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7902
7903 runpath_var=
7904 allow_undefined_flag=
7905 always_export_symbols=no
7906 archive_cmds=
7907 archive_expsym_cmds=
7908 compiler_needs_object=no
7909 enable_shared_with_static_runtimes=no
7910 export_dynamic_flag_spec=
7911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7912 hardcode_automatic=no
7913 hardcode_direct=no
7914 hardcode_direct_absolute=no
7915 hardcode_libdir_flag_spec=
7916 hardcode_libdir_flag_spec_ld=
7917 hardcode_libdir_separator=
7918 hardcode_minus_L=no
7919 hardcode_shlibpath_var=unsupported
7920 inherit_rpath=no
7921 link_all_deplibs=unknown
7922 module_cmds=
7923 module_expsym_cmds=
7924 old_archive_from_new_cmds=
7925 old_archive_from_expsyms_cmds=
7926 thread_safe_flag_spec=
7927 whole_archive_flag_spec=
7928 # include_expsyms should be a list of space-separated symbols to be *always*
7929 # included in the symbol list
7930 include_expsyms=
7931 # exclude_expsyms can be an extended regexp of symbols to exclude
7932 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7933 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7934 # as well as any symbol that contains `d'.
7935 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7936 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7937 # platforms (ab)use it in PIC code, but their linkers get confused if
7938 # the symbol is explicitly referenced. Since portable code cannot
7939 # rely on this symbol name, it's probably fine to never include it in
7940 # preloaded symbol tables.
7941 extract_expsyms_cmds=
7942
7943 case $host_os in
7944 cygwin* | mingw* | pw32*)
7945 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7946 # When not using gcc, we currently assume that we are using
7947 # Microsoft Visual C++.
7948 if test "$GCC" != yes; then
7949 with_gnu_ld=no
7950 fi
7951 ;;
7952 interix*)
7953 # we just hope/assume this is gcc and not c89 (= MSVC++)
7954 with_gnu_ld=yes
7955 ;;
7956 openbsd*)
7957 with_gnu_ld=no
7958 ;;
7959 esac
7960
7961 ld_shlibs=yes
7962 if test "$with_gnu_ld" = yes; then
7963 # If archive_cmds runs LD, not CC, wlarc should be empty
7964 wlarc='${wl}'
7965
7966 # Set some defaults for GNU ld with shared library support. These
7967 # are reset later if shared libraries are not supported. Putting them
7968 # here allows them to be overridden if necessary.
7969 runpath_var=LD_RUN_PATH
7970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7971 export_dynamic_flag_spec='${wl}--export-dynamic'
7972 # ancient GNU ld didn't support --whole-archive et. al.
7973 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7974 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7975 else
7976 whole_archive_flag_spec=
7977 fi
7978 supports_anon_versioning=no
7979 case `$LD -v 2>&1` in
7980 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7981 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7982 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7983 *\ 2.11.*) ;; # other 2.11 versions
7984 *) supports_anon_versioning=yes ;;
7985 esac
7986
7987 # See if GNU ld supports shared libraries.
7988 case $host_os in
7989 aix3* | aix4* | aix5*)
7990 # On AIX/PPC, the GNU linker is very broken
7991 if test "$host_cpu" != ia64; then
7992 ld_shlibs=no
7993 cat <<_LT_EOF 1>&2
7994
7995 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7996 *** to be unable to reliably create shared libraries on AIX.
7997 *** Therefore, libtool is disabling shared libraries support. If you
7998 *** really care for shared libraries, you may want to modify your PATH
7999 *** so that a non-GNU linker is found, and then restart.
8000
8001 _LT_EOF
8002 fi
8003 ;;
8004
8005 amigaos*)
8006 if test "$host_cpu" = m68k; then
8007 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)'
8008 hardcode_libdir_flag_spec='-L$libdir'
8009 hardcode_minus_L=yes
8010 fi
8011
8012 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8013 # that the semantics of dynamic libraries on AmigaOS, at least up
8014 # to version 4, is to share data among multiple programs linked
8015 # with the same dynamic library. Since this doesn't match the
8016 # behavior of shared libraries on other platforms, we can't use
8017 # them.
8018 ld_shlibs=no
8019 ;;
8020
8021 beos*)
8022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8023 allow_undefined_flag=unsupported
8024 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8025 # support --undefined. This deserves some investigation. FIXME
8026 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8027 else
8028 ld_shlibs=no
8029 fi
8030 ;;
8031
8032 cygwin* | mingw* | pw32*)
8033 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8034 # as there is no search path for DLLs.
8035 hardcode_libdir_flag_spec='-L$libdir'
8036 allow_undefined_flag=unsupported
8037 always_export_symbols=no
8038 enable_shared_with_static_runtimes=yes
8039 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8040
8041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8043 # If the export-symbols file already is a .def file (1st line
8044 # is EXPORTS), use it as is; otherwise, prepend...
8045 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8046 cp $export_symbols $output_objdir/$soname.def;
8047 else
8048 echo EXPORTS > $output_objdir/$soname.def;
8049 cat $export_symbols >> $output_objdir/$soname.def;
8050 fi~
8051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8052 else
8053 ld_shlibs=no
8054 fi
8055 ;;
8056
8057 interix[3-9]*)
8058 hardcode_direct=no
8059 hardcode_shlibpath_var=no
8060 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8061 export_dynamic_flag_spec='${wl}-E'
8062 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8063 # Instead, shared libraries are loaded at an image base (0x10000000 by
8064 # default) and relocated if they conflict, which is a slow very memory
8065 # consuming and fragmenting process. To avoid this, we pick a random,
8066 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8067 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8068 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8069 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8070 ;;
8071
8072 gnu* | linux* | tpf* | k*bsd*-gnu)
8073 tmp_diet=no
8074 if test "$host_os" = linux-dietlibc; then
8075 case $cc_basename in
8076 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8077 esac
8078 fi
8079 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8080 && test "$tmp_diet" = no
8081 then
8082 tmp_addflag=
8083 case $cc_basename,$host_cpu in
8084 pgcc*) # Portland Group C compiler
8085 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'
8086 tmp_addflag=' $pic_flag'
8087 ;;
8088 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8089 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'
8090 tmp_addflag=' $pic_flag -Mnomain' ;;
8091 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8092 tmp_addflag=' -i_dynamic' ;;
8093 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8094 tmp_addflag=' -i_dynamic -nofor_main' ;;
8095 ifc* | ifort*) # Intel Fortran compiler
8096 tmp_addflag=' -nofor_main' ;;
8097 esac
8098 case `$CC -V 2>&1 | sed 5q` in
8099 *Sun\ C*) # Sun C 5.9
8100 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8101 compiler_needs_object=yes
8102 tmp_sharedflag='-G' ;;
8103 *Sun\ F*) # Sun Fortran 8.3
8104 tmp_sharedflag='-G' ;;
8105 *)
8106 tmp_sharedflag='-shared' ;;
8107 esac
8108 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8109
8110 if test "x$supports_anon_versioning" = xyes; then
8111 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8112 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8113 echo "local: *; };" >> $output_objdir/$libname.ver~
8114 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8115 fi
8116 else
8117 ld_shlibs=no
8118 fi
8119 ;;
8120
8121 netbsd*)
8122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8123 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8124 wlarc=
8125 else
8126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8128 fi
8129 ;;
8130
8131 solaris*)
8132 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8133 ld_shlibs=no
8134 cat <<_LT_EOF 1>&2
8135
8136 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8137 *** create shared libraries on Solaris systems. Therefore, libtool
8138 *** is disabling shared libraries support. We urge you to upgrade GNU
8139 *** binutils to release 2.9.1 or newer. Another option is to modify
8140 *** your PATH or compiler configuration so that the native linker is
8141 *** used, and then restart.
8142
8143 _LT_EOF
8144 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8147 else
8148 ld_shlibs=no
8149 fi
8150 ;;
8151
8152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8153 case `$LD -v 2>&1` in
8154 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8155 ld_shlibs=no
8156 cat <<_LT_EOF 1>&2
8157
8158 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8159 *** reliably create shared libraries on SCO systems. Therefore, libtool
8160 *** is disabling shared libraries support. We urge you to upgrade GNU
8161 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8162 *** your PATH or compiler configuration so that the native linker is
8163 *** used, and then restart.
8164
8165 _LT_EOF
8166 ;;
8167 *)
8168 # For security reasons, it is highly recommended that you always
8169 # use absolute paths for naming shared libraries, and exclude the
8170 # DT_RUNPATH tag from executables and libraries. But doing so
8171 # requires that you compile everything twice, which is a pain.
8172 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8175 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8176 else
8177 ld_shlibs=no
8178 fi
8179 ;;
8180 esac
8181 ;;
8182
8183 sunos4*)
8184 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8185 wlarc=
8186 hardcode_direct=yes
8187 hardcode_shlibpath_var=no
8188 ;;
8189
8190 *)
8191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8194 else
8195 ld_shlibs=no
8196 fi
8197 ;;
8198 esac
8199
8200 if test "$ld_shlibs" = no; then
8201 runpath_var=
8202 hardcode_libdir_flag_spec=
8203 export_dynamic_flag_spec=
8204 whole_archive_flag_spec=
8205 fi
8206 else
8207 # PORTME fill in a description of your system's linker (not GNU ld)
8208 case $host_os in
8209 aix3*)
8210 allow_undefined_flag=unsupported
8211 always_export_symbols=yes
8212 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'
8213 # Note: this linker hardcodes the directories in LIBPATH if there
8214 # are no directories specified by -L.
8215 hardcode_minus_L=yes
8216 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8217 # Neither direct hardcoding nor static linking is supported with a
8218 # broken collect2.
8219 hardcode_direct=unsupported
8220 fi
8221 ;;
8222
8223 aix4* | aix5*)
8224 if test "$host_cpu" = ia64; then
8225 # On IA64, the linker does run time linking by default, so we don't
8226 # have to do anything special.
8227 aix_use_runtimelinking=no
8228 exp_sym_flag='-Bexport'
8229 no_entry_flag=""
8230 else
8231 # If we're using GNU nm, then we don't want the "-C" option.
8232 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8233 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8234 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'
8235 else
8236 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'
8237 fi
8238 aix_use_runtimelinking=no
8239
8240 # Test if we are trying to use run time linking or normal
8241 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8242 # need to do runtime linking.
8243 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8244 for ld_flag in $LDFLAGS; do
8245 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8246 aix_use_runtimelinking=yes
8247 break
8248 fi
8249 done
8250 ;;
8251 esac
8252
8253 exp_sym_flag='-bexport'
8254 no_entry_flag='-bnoentry'
8255 fi
8256
8257 # When large executables or shared objects are built, AIX ld can
8258 # have problems creating the table of contents. If linking a library
8259 # or program results in "error TOC overflow" add -mminimal-toc to
8260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8262
8263 archive_cmds=''
8264 hardcode_direct=yes
8265 hardcode_direct_absolute=yes
8266 hardcode_libdir_separator=':'
8267 link_all_deplibs=yes
8268 file_list_spec='${wl}-f,'
8269
8270 if test "$GCC" = yes; then
8271 case $host_os in aix4.[012]|aix4.[012].*)
8272 # We only want to do this on AIX 4.2 and lower, the check
8273 # below for broken collect2 doesn't work under 4.3+
8274 collect2name=`${CC} -print-prog-name=collect2`
8275 if test -f "$collect2name" &&
8276 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8277 then
8278 # We have reworked collect2
8279 :
8280 else
8281 # We have old collect2
8282 hardcode_direct=unsupported
8283 # It fails to find uninstalled libraries when the uninstalled
8284 # path is not listed in the libpath. Setting hardcode_minus_L
8285 # to unsupported forces relinking
8286 hardcode_minus_L=yes
8287 hardcode_libdir_flag_spec='-L$libdir'
8288 hardcode_libdir_separator=
8289 fi
8290 ;;
8291 esac
8292 shared_flag='-shared'
8293 if test "$aix_use_runtimelinking" = yes; then
8294 shared_flag="$shared_flag "'${wl}-G'
8295 fi
8296 else
8297 # not using gcc
8298 if test "$host_cpu" = ia64; then
8299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8300 # chokes on -Wl,-G. The following line is correct:
8301 shared_flag='-G'
8302 else
8303 if test "$aix_use_runtimelinking" = yes; then
8304 shared_flag='${wl}-G'
8305 else
8306 shared_flag='${wl}-bM:SRE'
8307 fi
8308 fi
8309 fi
8310
8311 # It seems that -bexpall does not export symbols beginning with
8312 # underscore (_), so it is better to generate a list of symbols to export.
8313 always_export_symbols=yes
8314 if test "$aix_use_runtimelinking" = yes; then
8315 # Warning - without using the other runtime loading flags (-brtl),
8316 # -berok will link without error, but may produce a broken library.
8317 allow_undefined_flag='-berok'
8318 # Determine the default libpath from the value encoded in an
8319 # empty executable.
8320 if test x$gcc_no_link = xyes; then
8321 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8322 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8323 { (exit 1); exit 1; }; }
8324 fi
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h. */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8331
8332 int
8333 main ()
8334 {
8335
8336 ;
8337 return 0;
8338 }
8339 _ACEOF
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342 (eval $ac_link) 2>conftest.er1
8343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -z "$ac_c_werror_flag"
8350 || test ! -s conftest.err'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; } &&
8356 { ac_try='test -s conftest$ac_exeext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 (eval $ac_try) 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362
8363 lt_aix_libpath_sed='
8364 /Import File Strings/,/^$/ {
8365 /^0/ {
8366 s/^0 *\(.*\)$/\1/
8367 p
8368 }
8369 }'
8370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8371 # Check for a 64-bit object if we didn't find anything.
8372 if test -z "$aix_libpath"; then
8373 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8374 fi
8375 else
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8378
8379 fi
8380 rm -f conftest.err conftest.$ac_objext \
8381 conftest$ac_exeext conftest.$ac_ext
8382 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8383
8384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8385 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8386 else
8387 if test "$host_cpu" = ia64; then
8388 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8389 allow_undefined_flag="-z nodefs"
8390 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8391 else
8392 # Determine the default libpath from the value encoded in an
8393 # empty executable.
8394 if test x$gcc_no_link = xyes; then
8395 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8396 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8397 { (exit 1); exit 1; }; }
8398 fi
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405
8406 int
8407 main ()
8408 {
8409
8410 ;
8411 return 0;
8412 }
8413 _ACEOF
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436
8437 lt_aix_libpath_sed='
8438 /Import File Strings/,/^$/ {
8439 /^0/ {
8440 s/^0 *\(.*\)$/\1/
8441 p
8442 }
8443 }'
8444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8445 # Check for a 64-bit object if we didn't find anything.
8446 if test -z "$aix_libpath"; then
8447 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8448 fi
8449 else
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8452
8453 fi
8454 rm -f conftest.err conftest.$ac_objext \
8455 conftest$ac_exeext conftest.$ac_ext
8456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8457
8458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8459 # Warning - without using the other run time loading flags,
8460 # -berok will link without error, but may produce a broken library.
8461 no_undefined_flag=' ${wl}-bernotok'
8462 allow_undefined_flag=' ${wl}-berok'
8463 # Exported symbols can be pulled into shared objects from archives
8464 whole_archive_flag_spec='$convenience'
8465 archive_cmds_need_lc=yes
8466 # This is similar to how AIX traditionally builds its shared libraries.
8467 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8468 fi
8469 fi
8470 ;;
8471
8472 amigaos*)
8473 if test "$host_cpu" = m68k; then
8474 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)'
8475 hardcode_libdir_flag_spec='-L$libdir'
8476 hardcode_minus_L=yes
8477 fi
8478 # see comment about different semantics on the GNU ld section
8479 ld_shlibs=no
8480 ;;
8481
8482 bsdi[45]*)
8483 export_dynamic_flag_spec=-rdynamic
8484 ;;
8485
8486 cygwin* | mingw* | pw32*)
8487 # When not using gcc, we currently assume that we are using
8488 # Microsoft Visual C++.
8489 # hardcode_libdir_flag_spec is actually meaningless, as there is
8490 # no search path for DLLs.
8491 hardcode_libdir_flag_spec=' '
8492 allow_undefined_flag=unsupported
8493 # Tell ltmain to make .lib files, not .a files.
8494 libext=lib
8495 # Tell ltmain to make .dll files, not .so files.
8496 shrext_cmds=".dll"
8497 # FIXME: Setting linknames here is a bad hack.
8498 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8499 # The linker will automatically build a .lib file if we build a DLL.
8500 old_archive_from_new_cmds='true'
8501 # FIXME: Should let the user specify the lib program.
8502 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8503 fix_srcfile_path='`cygpath -w "$srcfile"`'
8504 enable_shared_with_static_runtimes=yes
8505 ;;
8506
8507 darwin* | rhapsody*)
8508 case $host_os in
8509 rhapsody* | darwin1.[012])
8510 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8511 ;;
8512 *) # Darwin 1.3 on
8513 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8514 10.[012])
8515 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8516 ;;
8517 10.*)
8518 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8519 ;;
8520 esac
8521 ;;
8522 esac
8523 archive_cmds_need_lc=no
8524 hardcode_direct=no
8525 hardcode_automatic=yes
8526 hardcode_shlibpath_var=unsupported
8527 whole_archive_flag_spec=''
8528 link_all_deplibs=yes
8529 if test "$GCC" = yes ; then
8530 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 lt_cv_apple_cc_single_mod=no
8534 if test -z "${LT_MULTI_MODULE}"; then
8535 # By default we will add the -single_module flag. You can override
8536 # by either setting the environment variable LT_MULTI_MODULE
8537 # non-empty at configure time, or by adding -multi-module to the
8538 # link flags.
8539 echo "int foo(void){return 1;}" > conftest.c
8540 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8541 -dynamiclib ${wl}-single_module conftest.c
8542 if test -f libconftest.dylib; then
8543 lt_cv_apple_cc_single_mod=yes
8544 rm libconftest.dylib
8545 fi
8546 rm conftest.$ac_ext
8547 fi
8548 fi
8549
8550 output_verbose_link_cmd=echo
8551 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8552 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8553 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8554 else
8555 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8556 archive_expsym_cmds='sed "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}'
8557 fi
8558 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8559 module_expsym_cmds='sed -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}'
8560 else
8561 case $cc_basename in
8562 xlc*)
8563 output_verbose_link_cmd=echo
8564 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8565 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8566 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8567 archive_expsym_cmds='sed "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}'
8568 module_expsym_cmds='sed "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}'
8569 ;;
8570 *)
8571 ld_shlibs=no
8572 ;;
8573 esac
8574 fi
8575 ;;
8576
8577 dgux*)
8578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8579 hardcode_libdir_flag_spec='-L$libdir'
8580 hardcode_shlibpath_var=no
8581 ;;
8582
8583 freebsd1*)
8584 ld_shlibs=no
8585 ;;
8586
8587 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8588 # support. Future versions do this automatically, but an explicit c++rt0.o
8589 # does not break anything, and helps significantly (at the cost of a little
8590 # extra space).
8591 freebsd2.2*)
8592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8593 hardcode_libdir_flag_spec='-R$libdir'
8594 hardcode_direct=yes
8595 hardcode_shlibpath_var=no
8596 ;;
8597
8598 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8599 freebsd2*)
8600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8601 hardcode_direct=yes
8602 hardcode_minus_L=yes
8603 hardcode_shlibpath_var=no
8604 ;;
8605
8606 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8607 freebsd* | dragonfly*)
8608 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8609 hardcode_libdir_flag_spec='-R$libdir'
8610 hardcode_direct=yes
8611 hardcode_shlibpath_var=no
8612 ;;
8613
8614 hpux9*)
8615 if test "$GCC" = yes; then
8616 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'
8617 else
8618 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'
8619 fi
8620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8621 hardcode_libdir_separator=:
8622 hardcode_direct=yes
8623
8624 # hardcode_minus_L: Not really in the search PATH,
8625 # but as the default location of the library.
8626 hardcode_minus_L=yes
8627 export_dynamic_flag_spec='${wl}-E'
8628 ;;
8629
8630 hpux10*)
8631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8632 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8633 else
8634 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8635 fi
8636 if test "$with_gnu_ld" = no; then
8637 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8638 hardcode_libdir_flag_spec_ld='+b $libdir'
8639 hardcode_libdir_separator=:
8640 hardcode_direct=yes
8641 hardcode_direct_absolute=yes
8642 export_dynamic_flag_spec='${wl}-E'
8643 # hardcode_minus_L: Not really in the search PATH,
8644 # but as the default location of the library.
8645 hardcode_minus_L=yes
8646 fi
8647 ;;
8648
8649 hpux11*)
8650 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8651 case $host_cpu in
8652 hppa*64*)
8653 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8654 ;;
8655 ia64*)
8656 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8657 ;;
8658 *)
8659 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8660 ;;
8661 esac
8662 else
8663 case $host_cpu in
8664 hppa*64*)
8665 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8666 ;;
8667 ia64*)
8668 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8669 ;;
8670 *)
8671 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8672 ;;
8673 esac
8674 fi
8675 if test "$with_gnu_ld" = no; then
8676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8677 hardcode_libdir_separator=:
8678
8679 case $host_cpu in
8680 hppa*64*|ia64*)
8681 hardcode_direct=no
8682 hardcode_shlibpath_var=no
8683 ;;
8684 *)
8685 hardcode_direct=yes
8686 hardcode_direct_absolute=yes
8687 export_dynamic_flag_spec='${wl}-E'
8688
8689 # hardcode_minus_L: Not really in the search PATH,
8690 # but as the default location of the library.
8691 hardcode_minus_L=yes
8692 ;;
8693 esac
8694 fi
8695 ;;
8696
8697 irix5* | irix6* | nonstopux*)
8698 if test "$GCC" = yes; then
8699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8700 # Try to use the -exported_symbol ld option, if it does not
8701 # work, assume that -exports_file does not work either and
8702 # implicitly export all symbols.
8703 save_LDFLAGS="$LDFLAGS"
8704 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8705 if test x$gcc_no_link = xyes; then
8706 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8707 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8708 { (exit 1); exit 1; }; }
8709 fi
8710 cat >conftest.$ac_ext <<_ACEOF
8711 int foo(void) {}
8712 _ACEOF
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715 (eval $ac_link) 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -z "$ac_c_werror_flag"
8723 || test ! -s conftest.err'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; } &&
8729 { ac_try='test -s conftest$ac_exeext'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 (eval $ac_try) 2>&5
8732 ac_status=$?
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8736
8737 else
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8740
8741 fi
8742 rm -f conftest.err conftest.$ac_objext \
8743 conftest$ac_exeext conftest.$ac_ext
8744 LDFLAGS="$save_LDFLAGS"
8745 else
8746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8747 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8748 fi
8749 archive_cmds_need_lc='no'
8750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8751 hardcode_libdir_separator=:
8752 inherit_rpath=yes
8753 link_all_deplibs=yes
8754 ;;
8755
8756 netbsd*)
8757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8759 else
8760 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8761 fi
8762 hardcode_libdir_flag_spec='-R$libdir'
8763 hardcode_direct=yes
8764 hardcode_shlibpath_var=no
8765 ;;
8766
8767 newsos6)
8768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8769 hardcode_direct=yes
8770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8771 hardcode_libdir_separator=:
8772 hardcode_shlibpath_var=no
8773 ;;
8774
8775 *nto* | *qnx*)
8776 ;;
8777
8778 openbsd*)
8779 hardcode_direct=yes
8780 hardcode_shlibpath_var=no
8781 hardcode_direct_absolute=yes
8782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8784 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8786 export_dynamic_flag_spec='${wl}-E'
8787 else
8788 case $host_os in
8789 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_libdir_flag_spec='-R$libdir'
8792 ;;
8793 *)
8794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8796 ;;
8797 esac
8798 fi
8799 ;;
8800
8801 os2*)
8802 hardcode_libdir_flag_spec='-L$libdir'
8803 hardcode_minus_L=yes
8804 allow_undefined_flag=unsupported
8805 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'
8806 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8807 ;;
8808
8809 osf3*)
8810 if test "$GCC" = yes; then
8811 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8812 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8813 else
8814 allow_undefined_flag=' -expect_unresolved \*'
8815 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8816 fi
8817 archive_cmds_need_lc='no'
8818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8819 hardcode_libdir_separator=:
8820 ;;
8821
8822 osf4* | osf5*) # as osf3* with the addition of -msym flag
8823 if test "$GCC" = yes; then
8824 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8825 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8827 else
8828 allow_undefined_flag=' -expect_unresolved \*'
8829 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8830 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8831 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8832
8833 # Both c and cxx compiler support -rpath directly
8834 hardcode_libdir_flag_spec='-rpath $libdir'
8835 fi
8836 archive_cmds_need_lc='no'
8837 hardcode_libdir_separator=:
8838 ;;
8839
8840 solaris*)
8841 no_undefined_flag=' -z defs'
8842 if test "$GCC" = yes; then
8843 wlarc='${wl}'
8844 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8846 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8847 else
8848 case `$CC -V 2>&1` in
8849 *"Compilers 5.0"*)
8850 wlarc=''
8851 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8852 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8853 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8854 ;;
8855 *)
8856 wlarc='${wl}'
8857 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8859 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8860 ;;
8861 esac
8862 fi
8863 hardcode_libdir_flag_spec='-R$libdir'
8864 hardcode_shlibpath_var=no
8865 case $host_os in
8866 solaris2.[0-5] | solaris2.[0-5].*) ;;
8867 *)
8868 # The compiler driver will combine and reorder linker options,
8869 # but understands `-z linker_flag'. GCC discards it without `$wl',
8870 # but is careful enough not to reorder.
8871 # Supported since Solaris 2.6 (maybe 2.5.1?)
8872 if test "$GCC" = yes; then
8873 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8874 else
8875 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8876 fi
8877 ;;
8878 esac
8879 link_all_deplibs=yes
8880 ;;
8881
8882 sunos4*)
8883 if test "x$host_vendor" = xsequent; then
8884 # Use $CC to link under sequent, because it throws in some extra .o
8885 # files that make .init and .fini sections work.
8886 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8887 else
8888 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8889 fi
8890 hardcode_libdir_flag_spec='-L$libdir'
8891 hardcode_direct=yes
8892 hardcode_minus_L=yes
8893 hardcode_shlibpath_var=no
8894 ;;
8895
8896 sysv4)
8897 case $host_vendor in
8898 sni)
8899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8900 hardcode_direct=yes # is this really true???
8901 ;;
8902 siemens)
8903 ## LD is ld it makes a PLAMLIB
8904 ## CC just makes a GrossModule.
8905 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8906 reload_cmds='$CC -r -o $output$reload_objs'
8907 hardcode_direct=no
8908 ;;
8909 motorola)
8910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8911 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8912 ;;
8913 esac
8914 runpath_var='LD_RUN_PATH'
8915 hardcode_shlibpath_var=no
8916 ;;
8917
8918 sysv4.3*)
8919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8920 hardcode_shlibpath_var=no
8921 export_dynamic_flag_spec='-Bexport'
8922 ;;
8923
8924 sysv4*MP*)
8925 if test -d /usr/nec; then
8926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_shlibpath_var=no
8928 runpath_var=LD_RUN_PATH
8929 hardcode_runpath_var=yes
8930 ld_shlibs=yes
8931 fi
8932 ;;
8933
8934 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8935 no_undefined_flag='${wl}-z,text'
8936 archive_cmds_need_lc=no
8937 hardcode_shlibpath_var=no
8938 runpath_var='LD_RUN_PATH'
8939
8940 if test "$GCC" = yes; then
8941 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8942 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8943 else
8944 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8945 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8946 fi
8947 ;;
8948
8949 sysv5* | sco3.2v5* | sco5v6*)
8950 # Note: We can NOT use -z defs as we might desire, because we do not
8951 # link with -lc, and that would cause any symbols used from libc to
8952 # always be unresolved, which means just about no library would
8953 # ever link correctly. If we're not using GNU ld we use -z text
8954 # though, which does catch some bad symbols but isn't as heavy-handed
8955 # as -z defs.
8956 no_undefined_flag='${wl}-z,text'
8957 allow_undefined_flag='${wl}-z,nodefs'
8958 archive_cmds_need_lc=no
8959 hardcode_shlibpath_var=no
8960 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8961 hardcode_libdir_separator=':'
8962 link_all_deplibs=yes
8963 export_dynamic_flag_spec='${wl}-Bexport'
8964 runpath_var='LD_RUN_PATH'
8965
8966 if test "$GCC" = yes; then
8967 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8968 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8969 else
8970 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8971 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8972 fi
8973 ;;
8974
8975 uts4*)
8976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8977 hardcode_libdir_flag_spec='-L$libdir'
8978 hardcode_shlibpath_var=no
8979 ;;
8980
8981 *)
8982 ld_shlibs=no
8983 ;;
8984 esac
8985
8986 if test x$host_vendor = xsni; then
8987 case $host in
8988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8989 export_dynamic_flag_spec='${wl}-Blargedynsym'
8990 ;;
8991 esac
8992 fi
8993 fi
8994
8995 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8996 echo "${ECHO_T}$ld_shlibs" >&6
8997 test "$ld_shlibs" = no && can_build_shared=no
8998
8999 with_gnu_ld=$with_gnu_ld
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015 #
9016 # Do we need to explicitly link libc?
9017 #
9018 case "x$archive_cmds_need_lc" in
9019 x|xyes)
9020 # Assume -lc should be added
9021 archive_cmds_need_lc=yes
9022
9023 if test "$enable_shared" = yes && test "$GCC" = yes; then
9024 case $archive_cmds in
9025 *'~'*)
9026 # FIXME: we may have to deal with multi-command sequences.
9027 ;;
9028 '$CC '*)
9029 # Test whether the compiler implicitly links with -lc since on some
9030 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9031 # to ld, don't add -lc before -lgcc.
9032 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9033 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9034 $RM conftest*
9035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9036
9037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9038 (eval $ac_compile) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } 2>conftest.err; then
9042 soname=conftest
9043 lib=conftest
9044 libobjs=conftest.$ac_objext
9045 deplibs=
9046 wl=$lt_prog_compiler_wl
9047 pic_flag=$lt_prog_compiler_pic
9048 compiler_flags=-v
9049 linker_flags=-v
9050 verstring=
9051 output_objdir=.
9052 libname=conftest
9053 lt_save_allow_undefined_flag=$allow_undefined_flag
9054 allow_undefined_flag=
9055 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9056 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }
9060 then
9061 archive_cmds_need_lc=no
9062 else
9063 archive_cmds_need_lc=yes
9064 fi
9065 allow_undefined_flag=$lt_save_allow_undefined_flag
9066 else
9067 cat conftest.err 1>&5
9068 fi
9069 $RM conftest*
9070 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9071 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9072 ;;
9073 esac
9074 fi
9075 ;;
9076 esac
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9235 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9236 withGCC=$GCC
9237 if test "$withGCC" = yes; then
9238 case $host_os in
9239 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9240 *) lt_awk_arg="/^libraries:/" ;;
9241 esac
9242 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9243 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9244 # if the path contains ";" then we assume it to be the separator
9245 # otherwise default to the standard path separator (i.e. ":") - it is
9246 # assumed that no part of a normal pathname contains ";" but that should
9247 # okay in the real world where ";" in dirpaths is itself problematic.
9248 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9249 else
9250 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9251 fi
9252 # Ok, now we have the path, separated by spaces, we can step through it
9253 # and add multilib dir if necessary.
9254 lt_tmp_lt_search_path_spec=
9255 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9256 for lt_sys_path in $lt_search_path_spec; do
9257 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9258 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9259 else
9260 test -d "$lt_sys_path" && \
9261 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9262 fi
9263 done
9264 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9265 BEGIN {RS=" "; FS="/|\n";} {
9266 lt_foo="";
9267 lt_count=0;
9268 for (lt_i = NF; lt_i > 0; lt_i--) {
9269 if ($lt_i != "" && $lt_i != ".") {
9270 if ($lt_i == "..") {
9271 lt_count++;
9272 } else {
9273 if (lt_count == 0) {
9274 lt_foo="/" $lt_i lt_foo;
9275 } else {
9276 lt_count--;
9277 }
9278 }
9279 }
9280 }
9281 if (lt_foo != "") { lt_freq[lt_foo]++; }
9282 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9283 }'`
9284 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9285 else
9286 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9287 fi
9288 library_names_spec=
9289 libname_spec='lib$name'
9290 soname_spec=
9291 shrext_cmds=".so"
9292 postinstall_cmds=
9293 postuninstall_cmds=
9294 finish_cmds=
9295 finish_eval=
9296 shlibpath_var=
9297 shlibpath_overrides_runpath=unknown
9298 version_type=none
9299 dynamic_linker="$host_os ld.so"
9300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9301 need_lib_prefix=unknown
9302 hardcode_into_libs=no
9303
9304 # when you set need_version to no, make sure it does not cause -set_version
9305 # flags to be left without arguments
9306 need_version=unknown
9307
9308 case $host_os in
9309 aix3*)
9310 version_type=linux
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9312 shlibpath_var=LIBPATH
9313
9314 # AIX 3 has no versioning support, so we append a major version to the name.
9315 soname_spec='${libname}${release}${shared_ext}$major'
9316 ;;
9317
9318 aix4* | aix5*)
9319 version_type=linux
9320 need_lib_prefix=no
9321 need_version=no
9322 hardcode_into_libs=yes
9323 if test "$host_cpu" = ia64; then
9324 # AIX 5 supports IA64
9325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9326 shlibpath_var=LD_LIBRARY_PATH
9327 else
9328 # With GCC up to 2.95.x, collect2 would create an import file
9329 # for dependence libraries. The import file would start with
9330 # the line `#! .'. This would cause the generated library to
9331 # depend on `.', always an invalid library. This was fixed in
9332 # development snapshots of GCC prior to 3.0.
9333 case $host_os in
9334 aix4 | aix4.[01] | aix4.[01].*)
9335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9336 echo ' yes '
9337 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9338 :
9339 else
9340 can_build_shared=no
9341 fi
9342 ;;
9343 esac
9344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9345 # soname into executable. Probably we can add versioning support to
9346 # collect2, so additional links can be useful in future.
9347 if test "$aix_use_runtimelinking" = yes; then
9348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9349 # instead of lib<name>.a to let people know that these are not
9350 # typical AIX shared libraries.
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 else
9353 # We preserve .a as extension for shared libraries through AIX4.2
9354 # and later when we are not doing run time linking.
9355 library_names_spec='${libname}${release}.a $libname.a'
9356 soname_spec='${libname}${release}${shared_ext}$major'
9357 fi
9358 shlibpath_var=LIBPATH
9359 fi
9360 ;;
9361
9362 amigaos*)
9363 if test "$host_cpu" = m68k; then
9364 library_names_spec='$libname.ixlibrary $libname.a'
9365 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9366 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'
9367 else
9368 dynamic_linker=no
9369 fi
9370 ;;
9371
9372 beos*)
9373 library_names_spec='${libname}${shared_ext}'
9374 dynamic_linker="$host_os ld.so"
9375 shlibpath_var=LIBRARY_PATH
9376 ;;
9377
9378 bsdi[45]*)
9379 version_type=linux
9380 need_version=no
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9386 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9387 # the default ld.so.conf also contains /usr/contrib/lib and
9388 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9389 # libtool to hard-code these into programs
9390 ;;
9391
9392 cygwin* | mingw* | pw32*)
9393 version_type=windows
9394 shrext_cmds=".dll"
9395 need_version=no
9396 need_lib_prefix=no
9397
9398 case $withGCC,$host_os in
9399 yes,cygwin* | yes,mingw* | yes,pw32*)
9400 library_names_spec='$libname.dll.a'
9401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9402 postinstall_cmds='base_file=`basename \${file}`~
9403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9404 dldir=$destdir/`dirname \$dlpath`~
9405 test -d \$dldir || mkdir -p \$dldir~
9406 $install_prog $dir/$dlname \$dldir/$dlname~
9407 chmod a+x \$dldir/$dlname~
9408 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9409 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9410 fi'
9411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9412 dlpath=$dir/\$dldll~
9413 $RM \$dlpath'
9414 shlibpath_overrides_runpath=yes
9415
9416 case $host_os in
9417 cygwin*)
9418 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9419 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9420 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9421 ;;
9422 mingw*)
9423 # MinGW DLLs use traditional 'lib' prefix
9424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9425 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9426 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9427 # It is most probably a Windows format PATH printed by
9428 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9429 # path with ; separators, and with drive letters. We can handle the
9430 # drive letters (cygwin fileutils understands them), so leave them,
9431 # especially as we might pass files found there to a mingw objdump,
9432 # which wouldn't understand a cygwinified path. Ahh.
9433 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9434 else
9435 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9436 fi
9437 ;;
9438 pw32*)
9439 # pw32 DLLs use 'pw' prefix rather than 'lib'
9440 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9441 ;;
9442 esac
9443 ;;
9444
9445 *)
9446 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9447 ;;
9448 esac
9449 dynamic_linker='Win32 ld.exe'
9450 # FIXME: first we should search . and the directory the executable is in
9451 shlibpath_var=PATH
9452 ;;
9453
9454 darwin* | rhapsody*)
9455 dynamic_linker="$host_os dyld"
9456 version_type=darwin
9457 need_lib_prefix=no
9458 need_version=no
9459 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9460 soname_spec='${libname}${release}${major}$shared_ext'
9461 shlibpath_overrides_runpath=yes
9462 shlibpath_var=DYLD_LIBRARY_PATH
9463 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9464
9465 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9466 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9467 ;;
9468
9469 dgux*)
9470 version_type=linux
9471 need_lib_prefix=no
9472 need_version=no
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 shlibpath_var=LD_LIBRARY_PATH
9476 ;;
9477
9478 freebsd1*)
9479 dynamic_linker=no
9480 ;;
9481
9482 freebsd* | dragonfly*)
9483 # DragonFly does not have aout. When/if they implement a new
9484 # versioning mechanism, adjust this.
9485 if test -x /usr/bin/objformat; then
9486 objformat=`/usr/bin/objformat`
9487 else
9488 case $host_os in
9489 freebsd[123]*) objformat=aout ;;
9490 *) objformat=elf ;;
9491 esac
9492 fi
9493 version_type=freebsd-$objformat
9494 case $version_type in
9495 freebsd-elf*)
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9497 need_version=no
9498 need_lib_prefix=no
9499 ;;
9500 freebsd-*)
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9502 need_version=yes
9503 ;;
9504 esac
9505 shlibpath_var=LD_LIBRARY_PATH
9506 case $host_os in
9507 freebsd2*)
9508 shlibpath_overrides_runpath=yes
9509 ;;
9510 freebsd3.[01]* | freebsdelf3.[01]*)
9511 shlibpath_overrides_runpath=yes
9512 hardcode_into_libs=yes
9513 ;;
9514 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9515 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9516 shlibpath_overrides_runpath=no
9517 hardcode_into_libs=yes
9518 ;;
9519 *) # from 4.6 on, and DragonFly
9520 shlibpath_overrides_runpath=yes
9521 hardcode_into_libs=yes
9522 ;;
9523 esac
9524 ;;
9525
9526 gnu*)
9527 version_type=linux
9528 need_lib_prefix=no
9529 need_version=no
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 shlibpath_var=LD_LIBRARY_PATH
9533 hardcode_into_libs=yes
9534 ;;
9535
9536 hpux9* | hpux10* | hpux11*)
9537 # Give a soname corresponding to the major version so that dld.sl refuses to
9538 # link against other versions.
9539 version_type=sunos
9540 need_lib_prefix=no
9541 need_version=no
9542 case $host_cpu in
9543 ia64*)
9544 shrext_cmds='.so'
9545 hardcode_into_libs=yes
9546 dynamic_linker="$host_os dld.so"
9547 shlibpath_var=LD_LIBRARY_PATH
9548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 if test "X$HPUX_IA64_MODE" = X32; then
9552 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9553 else
9554 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9555 fi
9556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9557 ;;
9558 hppa*64*)
9559 shrext_cmds='.sl'
9560 hardcode_into_libs=yes
9561 dynamic_linker="$host_os dld.sl"
9562 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565 soname_spec='${libname}${release}${shared_ext}$major'
9566 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9568 ;;
9569 *)
9570 shrext_cmds='.sl'
9571 dynamic_linker="$host_os dld.sl"
9572 shlibpath_var=SHLIB_PATH
9573 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9575 soname_spec='${libname}${release}${shared_ext}$major'
9576 ;;
9577 esac
9578 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9579 postinstall_cmds='chmod 555 $lib'
9580 ;;
9581
9582 interix[3-9]*)
9583 version_type=linux
9584 need_lib_prefix=no
9585 need_version=no
9586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9587 soname_spec='${libname}${release}${shared_ext}$major'
9588 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 shlibpath_overrides_runpath=no
9591 hardcode_into_libs=yes
9592 ;;
9593
9594 irix5* | irix6* | nonstopux*)
9595 case $host_os in
9596 nonstopux*) version_type=nonstopux ;;
9597 *)
9598 if test "$lt_cv_prog_gnu_ld" = yes; then
9599 version_type=linux
9600 else
9601 version_type=irix
9602 fi ;;
9603 esac
9604 need_lib_prefix=no
9605 need_version=no
9606 soname_spec='${libname}${release}${shared_ext}$major'
9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9608 case $host_os in
9609 irix5* | nonstopux*)
9610 libsuff= shlibsuff=
9611 ;;
9612 *)
9613 case $LD in # libtool.m4 will add one of these switches to LD
9614 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9615 libsuff= shlibsuff= libmagic=32-bit;;
9616 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9617 libsuff=32 shlibsuff=N32 libmagic=N32;;
9618 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9619 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9620 *) libsuff= shlibsuff= libmagic=never-match;;
9621 esac
9622 ;;
9623 esac
9624 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9625 shlibpath_overrides_runpath=no
9626 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9627 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9628 hardcode_into_libs=yes
9629 ;;
9630
9631 # No shared lib support for Linux oldld, aout, or coff.
9632 linux*oldld* | linux*aout* | linux*coff*)
9633 dynamic_linker=no
9634 ;;
9635
9636 # This must be Linux ELF.
9637 linux* | k*bsd*-gnu)
9638 version_type=linux
9639 need_lib_prefix=no
9640 need_version=no
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 shlibpath_overrides_runpath=no
9646 # Some binutils ld are patched to set DT_RUNPATH
9647 save_LDFLAGS=$LDFLAGS
9648 save_libdir=$libdir
9649 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9650 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9651 if test x$gcc_no_link = xyes; then
9652 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9654 { (exit 1); exit 1; }; }
9655 fi
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662
9663 int
9664 main ()
9665 {
9666
9667 ;
9668 return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag"
9681 || test ! -s conftest.err'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9694 shlibpath_overrides_runpath=yes
9695 fi
9696
9697 else
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701 fi
9702 rm -f conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 LDFLAGS=$save_LDFLAGS
9705 libdir=$save_libdir
9706
9707 # This implies no fast_install, which is unacceptable.
9708 # Some rework will be needed to allow for fast_install
9709 # before this can be enabled.
9710 hardcode_into_libs=yes
9711
9712 # Append ld.so.conf contents to the search path
9713 if test -f /etc/ld.so.conf; then
9714 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9715 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9716 fi
9717
9718 # We used to test for /lib/ld.so.1 and disable shared libraries on
9719 # powerpc, because MkLinux only supported shared libraries with the
9720 # GNU dynamic linker. Since this was broken with cross compilers,
9721 # most powerpc-linux boxes support dynamic linking these days and
9722 # people can always --disable-shared, the test was removed, and we
9723 # assume the GNU/Linux dynamic linker is in use.
9724 dynamic_linker='GNU/Linux ld.so'
9725 ;;
9726
9727 netbsd*)
9728 version_type=sunos
9729 need_lib_prefix=no
9730 need_version=no
9731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9734 dynamic_linker='NetBSD (a.out) ld.so'
9735 else
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9737 soname_spec='${libname}${release}${shared_ext}$major'
9738 dynamic_linker='NetBSD ld.elf_so'
9739 fi
9740 shlibpath_var=LD_LIBRARY_PATH
9741 shlibpath_overrides_runpath=yes
9742 hardcode_into_libs=yes
9743 ;;
9744
9745 newsos6)
9746 version_type=linux
9747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 shlibpath_overrides_runpath=yes
9750 ;;
9751
9752 *nto* | *qnx*)
9753 version_type=qnx
9754 need_lib_prefix=no
9755 need_version=no
9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9757 soname_spec='${libname}${release}${shared_ext}$major'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 shlibpath_overrides_runpath=no
9760 hardcode_into_libs=yes
9761 dynamic_linker='ldqnx.so'
9762 ;;
9763
9764 openbsd*)
9765 version_type=sunos
9766 sys_lib_dlsearch_path_spec="/usr/lib"
9767 need_lib_prefix=no
9768 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9769 case $host_os in
9770 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9771 *) need_version=no ;;
9772 esac
9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9775 shlibpath_var=LD_LIBRARY_PATH
9776 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9777 case $host_os in
9778 openbsd2.[89] | openbsd2.[89].*)
9779 shlibpath_overrides_runpath=no
9780 ;;
9781 *)
9782 shlibpath_overrides_runpath=yes
9783 ;;
9784 esac
9785 else
9786 shlibpath_overrides_runpath=yes
9787 fi
9788 ;;
9789
9790 os2*)
9791 libname_spec='$name'
9792 shrext_cmds=".dll"
9793 need_lib_prefix=no
9794 library_names_spec='$libname${shared_ext} $libname.a'
9795 dynamic_linker='OS/2 ld.exe'
9796 shlibpath_var=LIBPATH
9797 ;;
9798
9799 osf3* | osf4* | osf5*)
9800 version_type=osf
9801 need_lib_prefix=no
9802 need_version=no
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9807 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9808 ;;
9809
9810 rdos*)
9811 dynamic_linker=no
9812 ;;
9813
9814 solaris*)
9815 version_type=linux
9816 need_lib_prefix=no
9817 need_version=no
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 soname_spec='${libname}${release}${shared_ext}$major'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 shlibpath_overrides_runpath=yes
9822 hardcode_into_libs=yes
9823 # ldd complains unless libraries are executable
9824 postinstall_cmds='chmod +x $lib'
9825 ;;
9826
9827 sunos4*)
9828 version_type=sunos
9829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9831 shlibpath_var=LD_LIBRARY_PATH
9832 shlibpath_overrides_runpath=yes
9833 if test "$with_gnu_ld" = yes; then
9834 need_lib_prefix=no
9835 fi
9836 need_version=yes
9837 ;;
9838
9839 sysv4 | sysv4.3*)
9840 version_type=linux
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842 soname_spec='${libname}${release}${shared_ext}$major'
9843 shlibpath_var=LD_LIBRARY_PATH
9844 case $host_vendor in
9845 sni)
9846 shlibpath_overrides_runpath=no
9847 need_lib_prefix=no
9848 runpath_var=LD_RUN_PATH
9849 ;;
9850 siemens)
9851 need_lib_prefix=no
9852 ;;
9853 motorola)
9854 need_lib_prefix=no
9855 need_version=no
9856 shlibpath_overrides_runpath=no
9857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9858 ;;
9859 esac
9860 ;;
9861
9862 sysv4*MP*)
9863 if test -d /usr/nec ;then
9864 version_type=linux
9865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9866 soname_spec='$libname${shared_ext}.$major'
9867 shlibpath_var=LD_LIBRARY_PATH
9868 fi
9869 ;;
9870
9871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9872 version_type=freebsd-elf
9873 need_lib_prefix=no
9874 need_version=no
9875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9876 soname_spec='${libname}${release}${shared_ext}$major'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 shlibpath_overrides_runpath=yes
9879 hardcode_into_libs=yes
9880 if test "$with_gnu_ld" = yes; then
9881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9882 else
9883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9884 case $host_os in
9885 sco3.2v5*)
9886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9887 ;;
9888 esac
9889 fi
9890 sys_lib_dlsearch_path_spec='/usr/lib'
9891 ;;
9892
9893 tpf*)
9894 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9895 version_type=linux
9896 need_lib_prefix=no
9897 need_version=no
9898 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 shlibpath_overrides_runpath=no
9901 hardcode_into_libs=yes
9902 ;;
9903
9904 uts4*)
9905 version_type=linux
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 ;;
9910
9911 *)
9912 dynamic_linker=no
9913 ;;
9914 esac
9915 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9916 echo "${ECHO_T}$dynamic_linker" >&6
9917 test "$dynamic_linker" = no && can_build_shared=no
9918
9919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9920 if test "$GCC" = yes; then
9921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9922 fi
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10011 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10012 hardcode_action=
10013 if test -n "$hardcode_libdir_flag_spec" ||
10014 test -n "$runpath_var" ||
10015 test "X$hardcode_automatic" = "Xyes" ; then
10016
10017 # We can hardcode non-existent directories.
10018 if test "$hardcode_direct" != no &&
10019 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10020 # have to relink, otherwise we might link with an installed library
10021 # when we should be linking with a yet-to-be-installed one
10022 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10023 test "$hardcode_minus_L" != no; then
10024 # Linking always hardcodes the temporary library directory.
10025 hardcode_action=relink
10026 else
10027 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10028 hardcode_action=immediate
10029 fi
10030 else
10031 # We cannot hardcode anything, or else we can only hardcode existing
10032 # directories.
10033 hardcode_action=unsupported
10034 fi
10035 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10036 echo "${ECHO_T}$hardcode_action" >&6
10037
10038 if test "$hardcode_action" = relink ||
10039 test "$inherit_rpath" = yes; then
10040 # Fast installation is not supported
10041 enable_fast_install=no
10042 elif test "$shlibpath_overrides_runpath" = yes ||
10043 test "$enable_shared" = no; then
10044 # Fast installation is not necessary
10045 enable_fast_install=needless
10046 fi
10047
10048
10049
10050
10051
10052
10053 if test "x$enable_dlopen" != xyes; then
10054 enable_dlopen=unknown
10055 enable_dlopen_self=unknown
10056 enable_dlopen_self_static=unknown
10057 else
10058 lt_cv_dlopen=no
10059 lt_cv_dlopen_libs=
10060
10061 case $host_os in
10062 beos*)
10063 lt_cv_dlopen="load_add_on"
10064 lt_cv_dlopen_libs=
10065 lt_cv_dlopen_self=yes
10066 ;;
10067
10068 mingw* | pw32*)
10069 lt_cv_dlopen="LoadLibrary"
10070 lt_cv_dlopen_libs=
10071 ;;
10072
10073 cygwin*)
10074 lt_cv_dlopen="dlopen"
10075 lt_cv_dlopen_libs=
10076 ;;
10077
10078 darwin*)
10079 # if libdl is installed we need to link against it
10080 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10081 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10082 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085 ac_check_lib_save_LIBS=$LIBS
10086 LIBS="-ldl $LIBS"
10087 if test x$gcc_no_link = xyes; then
10088 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10089 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10090 { (exit 1); exit 1; }; }
10091 fi
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098
10099 /* Override any gcc2 internal prototype to avoid an error. */
10100 #ifdef __cplusplus
10101 extern "C"
10102 #endif
10103 /* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10105 char dlopen ();
10106 int
10107 main ()
10108 {
10109 dlopen ();
10110 ;
10111 return 0;
10112 }
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116 (eval $ac_link) 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -z "$ac_c_werror_flag"
10124 || test ! -s conftest.err'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_lib_dl_dlopen=yes
10137 else
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141 ac_cv_lib_dl_dlopen=no
10142 fi
10143 rm -f conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 LIBS=$ac_check_lib_save_LIBS
10146 fi
10147 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10148 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10149 if test $ac_cv_lib_dl_dlopen = yes; then
10150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10151 else
10152
10153 lt_cv_dlopen="dyld"
10154 lt_cv_dlopen_libs=
10155 lt_cv_dlopen_self=yes
10156
10157 fi
10158
10159 ;;
10160
10161 *)
10162 echo "$as_me:$LINENO: checking for shl_load" >&5
10163 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10164 if test "${ac_cv_func_shl_load+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167 if test x$gcc_no_link = xyes; then
10168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10170 { (exit 1); exit 1; }; }
10171 fi
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10180 #define shl_load innocuous_shl_load
10181
10182 /* System header to define __stub macros and hopefully few prototypes,
10183 which can conflict with char shl_load (); below.
10184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10185 <limits.h> exists even on freestanding compilers. */
10186
10187 #ifdef __STDC__
10188 # include <limits.h>
10189 #else
10190 # include <assert.h>
10191 #endif
10192
10193 #undef shl_load
10194
10195 /* Override any gcc2 internal prototype to avoid an error. */
10196 #ifdef __cplusplus
10197 extern "C"
10198 {
10199 #endif
10200 /* We use char because int might match the return type of a gcc2
10201 builtin and then its argument prototype would still apply. */
10202 char shl_load ();
10203 /* The GNU C library defines this for functions which it implements
10204 to always fail with ENOSYS. Some functions are actually named
10205 something starting with __ and the normal name is an alias. */
10206 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10207 choke me
10208 #else
10209 char (*f) () = shl_load;
10210 #endif
10211 #ifdef __cplusplus
10212 }
10213 #endif
10214
10215 int
10216 main ()
10217 {
10218 return f != shl_load;
10219 ;
10220 return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10225 (eval $ac_link) 2>conftest.er1
10226 ac_status=$?
10227 grep -v '^ *+' conftest.er1 >conftest.err
10228 rm -f conftest.er1
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } &&
10232 { ac_try='test -z "$ac_c_werror_flag"
10233 || test ! -s conftest.err'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10236 ac_status=$?
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; } &&
10239 { ac_try='test -s conftest$ac_exeext'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_func_shl_load=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ac_cv_func_shl_load=no
10251 fi
10252 rm -f conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
10254 fi
10255 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10256 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10257 if test $ac_cv_func_shl_load = yes; then
10258 lt_cv_dlopen="shl_load"
10259 else
10260 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10261 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10262 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265 ac_check_lib_save_LIBS=$LIBS
10266 LIBS="-ldld $LIBS"
10267 if test x$gcc_no_link = xyes; then
10268 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10269 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10270 { (exit 1); exit 1; }; }
10271 fi
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278
10279 /* Override any gcc2 internal prototype to avoid an error. */
10280 #ifdef __cplusplus
10281 extern "C"
10282 #endif
10283 /* We use char because int might match the return type of a gcc2
10284 builtin and then its argument prototype would still apply. */
10285 char shl_load ();
10286 int
10287 main ()
10288 {
10289 shl_load ();
10290 ;
10291 return 0;
10292 }
10293 _ACEOF
10294 rm -f conftest.$ac_objext conftest$ac_exeext
10295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10296 (eval $ac_link) 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -z "$ac_c_werror_flag"
10304 || test ! -s conftest.err'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; } &&
10310 { ac_try='test -s conftest$ac_exeext'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 ac_cv_lib_dld_shl_load=yes
10317 else
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10320
10321 ac_cv_lib_dld_shl_load=no
10322 fi
10323 rm -f conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
10325 LIBS=$ac_check_lib_save_LIBS
10326 fi
10327 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10328 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10329 if test $ac_cv_lib_dld_shl_load = yes; then
10330 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10331 else
10332 echo "$as_me:$LINENO: checking for dlopen" >&5
10333 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10334 if test "${ac_cv_func_dlopen+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337 if test x$gcc_no_link = xyes; then
10338 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10340 { (exit 1); exit 1; }; }
10341 fi
10342 cat >conftest.$ac_ext <<_ACEOF
10343 /* confdefs.h. */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10350 #define dlopen innocuous_dlopen
10351
10352 /* System header to define __stub macros and hopefully few prototypes,
10353 which can conflict with char dlopen (); below.
10354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10355 <limits.h> exists even on freestanding compilers. */
10356
10357 #ifdef __STDC__
10358 # include <limits.h>
10359 #else
10360 # include <assert.h>
10361 #endif
10362
10363 #undef dlopen
10364
10365 /* Override any gcc2 internal prototype to avoid an error. */
10366 #ifdef __cplusplus
10367 extern "C"
10368 {
10369 #endif
10370 /* We use char because int might match the return type of a gcc2
10371 builtin and then its argument prototype would still apply. */
10372 char dlopen ();
10373 /* The GNU C library defines this for functions which it implements
10374 to always fail with ENOSYS. Some functions are actually named
10375 something starting with __ and the normal name is an alias. */
10376 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10377 choke me
10378 #else
10379 char (*f) () = dlopen;
10380 #endif
10381 #ifdef __cplusplus
10382 }
10383 #endif
10384
10385 int
10386 main ()
10387 {
10388 return f != dlopen;
10389 ;
10390 return 0;
10391 }
10392 _ACEOF
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10395 (eval $ac_link) 2>conftest.er1
10396 ac_status=$?
10397 grep -v '^ *+' conftest.er1 >conftest.err
10398 rm -f conftest.er1
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } &&
10402 { ac_try='test -z "$ac_c_werror_flag"
10403 || test ! -s conftest.err'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; } &&
10409 { ac_try='test -s conftest$ac_exeext'
10410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 ac_cv_func_dlopen=yes
10416 else
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420 ac_cv_func_dlopen=no
10421 fi
10422 rm -f conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
10424 fi
10425 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10426 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10427 if test $ac_cv_func_dlopen = yes; then
10428 lt_cv_dlopen="dlopen"
10429 else
10430 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10431 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10432 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435 ac_check_lib_save_LIBS=$LIBS
10436 LIBS="-ldl $LIBS"
10437 if test x$gcc_no_link = xyes; then
10438 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10440 { (exit 1); exit 1; }; }
10441 fi
10442 cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h. */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10448
10449 /* Override any gcc2 internal prototype to avoid an error. */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 /* We use char because int might match the return type of a gcc2
10454 builtin and then its argument prototype would still apply. */
10455 char dlopen ();
10456 int
10457 main ()
10458 {
10459 dlopen ();
10460 ;
10461 return 0;
10462 }
10463 _ACEOF
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -z "$ac_c_werror_flag"
10474 || test ! -s conftest.err'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest$ac_exeext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 ac_cv_lib_dl_dlopen=yes
10487 else
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491 ac_cv_lib_dl_dlopen=no
10492 fi
10493 rm -f conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10496 fi
10497 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10498 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10499 if test $ac_cv_lib_dl_dlopen = yes; then
10500 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10501 else
10502 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10503 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10504 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507 ac_check_lib_save_LIBS=$LIBS
10508 LIBS="-lsvld $LIBS"
10509 if test x$gcc_no_link = xyes; then
10510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10512 { (exit 1); exit 1; }; }
10513 fi
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h. */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520
10521 /* Override any gcc2 internal prototype to avoid an error. */
10522 #ifdef __cplusplus
10523 extern "C"
10524 #endif
10525 /* We use char because int might match the return type of a gcc2
10526 builtin and then its argument prototype would still apply. */
10527 char dlopen ();
10528 int
10529 main ()
10530 {
10531 dlopen ();
10532 ;
10533 return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10538 (eval $ac_link) 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -z "$ac_c_werror_flag"
10546 || test ! -s conftest.err'
10547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10549 ac_status=$?
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; } &&
10552 { ac_try='test -s conftest$ac_exeext'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; }; then
10558 ac_cv_lib_svld_dlopen=yes
10559 else
10560 echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10562
10563 ac_cv_lib_svld_dlopen=no
10564 fi
10565 rm -f conftest.err conftest.$ac_objext \
10566 conftest$ac_exeext conftest.$ac_ext
10567 LIBS=$ac_check_lib_save_LIBS
10568 fi
10569 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10570 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10571 if test $ac_cv_lib_svld_dlopen = yes; then
10572 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10573 else
10574 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10575 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10576 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579 ac_check_lib_save_LIBS=$LIBS
10580 LIBS="-ldld $LIBS"
10581 if test x$gcc_no_link = xyes; then
10582 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10583 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10584 { (exit 1); exit 1; }; }
10585 fi
10586 cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h. */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592
10593 /* Override any gcc2 internal prototype to avoid an error. */
10594 #ifdef __cplusplus
10595 extern "C"
10596 #endif
10597 /* We use char because int might match the return type of a gcc2
10598 builtin and then its argument prototype would still apply. */
10599 char dld_link ();
10600 int
10601 main ()
10602 {
10603 dld_link ();
10604 ;
10605 return 0;
10606 }
10607 _ACEOF
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610 (eval $ac_link) 2>conftest.er1
10611 ac_status=$?
10612 grep -v '^ *+' conftest.er1 >conftest.err
10613 rm -f conftest.er1
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -z "$ac_c_werror_flag"
10618 || test ! -s conftest.err'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; } &&
10624 { ac_try='test -s conftest$ac_exeext'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10630 ac_cv_lib_dld_dld_link=yes
10631 else
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10634
10635 ac_cv_lib_dld_dld_link=no
10636 fi
10637 rm -f conftest.err conftest.$ac_objext \
10638 conftest$ac_exeext conftest.$ac_ext
10639 LIBS=$ac_check_lib_save_LIBS
10640 fi
10641 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10642 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10643 if test $ac_cv_lib_dld_dld_link = yes; then
10644 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10645 fi
10646
10647
10648 fi
10649
10650
10651 fi
10652
10653
10654 fi
10655
10656
10657 fi
10658
10659
10660 fi
10661
10662 ;;
10663 esac
10664
10665 if test "x$lt_cv_dlopen" != xno; then
10666 enable_dlopen=yes
10667 else
10668 enable_dlopen=no
10669 fi
10670
10671 case $lt_cv_dlopen in
10672 dlopen)
10673 save_CPPFLAGS="$CPPFLAGS"
10674 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10675
10676 save_LDFLAGS="$LDFLAGS"
10677 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10678
10679 save_LIBS="$LIBS"
10680 LIBS="$lt_cv_dlopen_libs $LIBS"
10681
10682 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10683 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10684 if test "${lt_cv_dlopen_self+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687 if test "$cross_compiling" = yes; then :
10688 lt_cv_dlopen_self=cross
10689 else
10690 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10691 lt_status=$lt_dlunknown
10692 cat > conftest.$ac_ext <<_LT_EOF
10693 #line 10693 "configure"
10694 #include "confdefs.h"
10695
10696 #if HAVE_DLFCN_H
10697 #include <dlfcn.h>
10698 #endif
10699
10700 #include <stdio.h>
10701
10702 #ifdef RTLD_GLOBAL
10703 # define LT_DLGLOBAL RTLD_GLOBAL
10704 #else
10705 # ifdef DL_GLOBAL
10706 # define LT_DLGLOBAL DL_GLOBAL
10707 # else
10708 # define LT_DLGLOBAL 0
10709 # endif
10710 #endif
10711
10712 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10713 find out it does not work in some platform. */
10714 #ifndef LT_DLLAZY_OR_NOW
10715 # ifdef RTLD_LAZY
10716 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10717 # else
10718 # ifdef DL_LAZY
10719 # define LT_DLLAZY_OR_NOW DL_LAZY
10720 # else
10721 # ifdef RTLD_NOW
10722 # define LT_DLLAZY_OR_NOW RTLD_NOW
10723 # else
10724 # ifdef DL_NOW
10725 # define LT_DLLAZY_OR_NOW DL_NOW
10726 # else
10727 # define LT_DLLAZY_OR_NOW 0
10728 # endif
10729 # endif
10730 # endif
10731 # endif
10732 #endif
10733
10734 #ifdef __cplusplus
10735 extern "C" void exit (int);
10736 #endif
10737
10738 void fnord() { int i=42;}
10739 int main ()
10740 {
10741 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10742 int status = $lt_dlunknown;
10743
10744 if (self)
10745 {
10746 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10747 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10748 /* dlclose (self); */
10749 }
10750 else
10751 puts (dlerror ());
10752
10753 exit (status);
10754 }
10755 _LT_EOF
10756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10757 (eval $ac_link) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10761 (./conftest; exit; ) >&5 2>/dev/null
10762 lt_status=$?
10763 case x$lt_status in
10764 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10765 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10766 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10767 esac
10768 else :
10769 # compilation failed
10770 lt_cv_dlopen_self=no
10771 fi
10772 fi
10773 rm -fr conftest*
10774
10775
10776 fi
10777 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10778 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10779
10780 if test "x$lt_cv_dlopen_self" = xyes; then
10781 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10782 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10783 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10784 if test "${lt_cv_dlopen_self_static+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 else
10787 if test "$cross_compiling" = yes; then :
10788 lt_cv_dlopen_self_static=cross
10789 else
10790 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10791 lt_status=$lt_dlunknown
10792 cat > conftest.$ac_ext <<_LT_EOF
10793 #line 10793 "configure"
10794 #include "confdefs.h"
10795
10796 #if HAVE_DLFCN_H
10797 #include <dlfcn.h>
10798 #endif
10799
10800 #include <stdio.h>
10801
10802 #ifdef RTLD_GLOBAL
10803 # define LT_DLGLOBAL RTLD_GLOBAL
10804 #else
10805 # ifdef DL_GLOBAL
10806 # define LT_DLGLOBAL DL_GLOBAL
10807 # else
10808 # define LT_DLGLOBAL 0
10809 # endif
10810 #endif
10811
10812 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10813 find out it does not work in some platform. */
10814 #ifndef LT_DLLAZY_OR_NOW
10815 # ifdef RTLD_LAZY
10816 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10817 # else
10818 # ifdef DL_LAZY
10819 # define LT_DLLAZY_OR_NOW DL_LAZY
10820 # else
10821 # ifdef RTLD_NOW
10822 # define LT_DLLAZY_OR_NOW RTLD_NOW
10823 # else
10824 # ifdef DL_NOW
10825 # define LT_DLLAZY_OR_NOW DL_NOW
10826 # else
10827 # define LT_DLLAZY_OR_NOW 0
10828 # endif
10829 # endif
10830 # endif
10831 # endif
10832 #endif
10833
10834 #ifdef __cplusplus
10835 extern "C" void exit (int);
10836 #endif
10837
10838 void fnord() { int i=42;}
10839 int main ()
10840 {
10841 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10842 int status = $lt_dlunknown;
10843
10844 if (self)
10845 {
10846 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10847 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10848 /* dlclose (self); */
10849 }
10850 else
10851 puts (dlerror ());
10852
10853 exit (status);
10854 }
10855 _LT_EOF
10856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857 (eval $ac_link) 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10861 (./conftest; exit; ) >&5 2>/dev/null
10862 lt_status=$?
10863 case x$lt_status in
10864 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10865 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10866 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10867 esac
10868 else :
10869 # compilation failed
10870 lt_cv_dlopen_self_static=no
10871 fi
10872 fi
10873 rm -fr conftest*
10874
10875
10876 fi
10877 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10878 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10879 fi
10880
10881 CPPFLAGS="$save_CPPFLAGS"
10882 LDFLAGS="$save_LDFLAGS"
10883 LIBS="$save_LIBS"
10884 ;;
10885 esac
10886
10887 case $lt_cv_dlopen_self in
10888 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10889 *) enable_dlopen_self=unknown ;;
10890 esac
10891
10892 case $lt_cv_dlopen_self_static in
10893 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10894 *) enable_dlopen_self_static=unknown ;;
10895 esac
10896 fi
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914 striplib=
10915 old_striplib=
10916 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10917 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10918 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10919 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10920 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10921 echo "$as_me:$LINENO: result: yes" >&5
10922 echo "${ECHO_T}yes" >&6
10923 else
10924 # FIXME - insert some real tests, host_os isn't really good enough
10925 case $host_os in
10926 darwin*)
10927 if test -n "$STRIP" ; then
10928 striplib="$STRIP -x"
10929 old_striplib="$STRIP -S"
10930 echo "$as_me:$LINENO: result: yes" >&5
10931 echo "${ECHO_T}yes" >&6
10932 else
10933 echo "$as_me:$LINENO: result: no" >&5
10934 echo "${ECHO_T}no" >&6
10935 fi
10936 ;;
10937 *)
10938 echo "$as_me:$LINENO: result: no" >&5
10939 echo "${ECHO_T}no" >&6
10940 ;;
10941 esac
10942 fi
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955 # Report which library types will actually be built
10956 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10957 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10958 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10959 echo "${ECHO_T}$can_build_shared" >&6
10960
10961 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10962 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10963 test "$can_build_shared" = "no" && enable_shared=no
10964
10965 # On AIX, shared libraries and static libraries use the same namespace, and
10966 # are all built from PIC.
10967 case $host_os in
10968 aix3*)
10969 test "$enable_shared" = yes && enable_static=no
10970 if test -n "$RANLIB"; then
10971 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10972 postinstall_cmds='$RANLIB $lib'
10973 fi
10974 ;;
10975
10976 aix4* | aix5*)
10977 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10978 test "$enable_shared" = yes && enable_static=no
10979 fi
10980 ;;
10981 esac
10982 echo "$as_me:$LINENO: result: $enable_shared" >&5
10983 echo "${ECHO_T}$enable_shared" >&6
10984
10985 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10986 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10987 # Make sure either enable_shared or enable_static is yes.
10988 test "$enable_shared" = yes || enable_static=yes
10989 echo "$as_me:$LINENO: result: $enable_static" >&5
10990 echo "${ECHO_T}$enable_static" >&6
10991
10992
10993
10994
10995 fi
10996 ac_ext=c
10997 ac_cpp='$CPP $CPPFLAGS'
10998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11001
11002 CC="$lt_save_CC"
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016 ac_config_commands="$ac_config_commands libtool"
11017
11018
11019
11020
11021 # Only expand once:
11022
11023
11024 ac_ext=c
11025 ac_cpp='$CPP $CPPFLAGS'
11026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11029 if test -n "$ac_tool_prefix"; then
11030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11032 echo "$as_me:$LINENO: checking for $ac_word" >&5
11033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11034 if test "${ac_cv_prog_CC+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 if test -n "$CC"; then
11038 ac_cv_prog_CC="$CC" # Let the user override the test.
11039 else
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11042 do
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 break 2
11050 fi
11051 done
11052 done
11053
11054 fi
11055 fi
11056 CC=$ac_cv_prog_CC
11057 if test -n "$CC"; then
11058 echo "$as_me:$LINENO: result: $CC" >&5
11059 echo "${ECHO_T}$CC" >&6
11060 else
11061 echo "$as_me:$LINENO: result: no" >&5
11062 echo "${ECHO_T}no" >&6
11063 fi
11064
11065 fi
11066 if test -z "$ac_cv_prog_CC"; then
11067 ac_ct_CC=$CC
11068 # Extract the first word of "gcc", so it can be a program name with args.
11069 set dummy gcc; ac_word=$2
11070 echo "$as_me:$LINENO: checking for $ac_word" >&5
11071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 else
11075 if test -n "$ac_ct_CC"; then
11076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11077 else
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH
11080 do
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11085 ac_cv_prog_ac_ct_CC="gcc"
11086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 break 2
11088 fi
11089 done
11090 done
11091
11092 fi
11093 fi
11094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11095 if test -n "$ac_ct_CC"; then
11096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11097 echo "${ECHO_T}$ac_ct_CC" >&6
11098 else
11099 echo "$as_me:$LINENO: result: no" >&5
11100 echo "${ECHO_T}no" >&6
11101 fi
11102
11103 CC=$ac_ct_CC
11104 else
11105 CC="$ac_cv_prog_CC"
11106 fi
11107
11108 if test -z "$CC"; then
11109 if test -n "$ac_tool_prefix"; then
11110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11111 set dummy ${ac_tool_prefix}cc; ac_word=$2
11112 echo "$as_me:$LINENO: checking for $ac_word" >&5
11113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11114 if test "${ac_cv_prog_CC+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 else
11117 if test -n "$CC"; then
11118 ac_cv_prog_CC="$CC" # Let the user override the test.
11119 else
11120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11121 for as_dir in $PATH
11122 do
11123 IFS=$as_save_IFS
11124 test -z "$as_dir" && as_dir=.
11125 for ac_exec_ext in '' $ac_executable_extensions; do
11126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11127 ac_cv_prog_CC="${ac_tool_prefix}cc"
11128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11129 break 2
11130 fi
11131 done
11132 done
11133
11134 fi
11135 fi
11136 CC=$ac_cv_prog_CC
11137 if test -n "$CC"; then
11138 echo "$as_me:$LINENO: result: $CC" >&5
11139 echo "${ECHO_T}$CC" >&6
11140 else
11141 echo "$as_me:$LINENO: result: no" >&5
11142 echo "${ECHO_T}no" >&6
11143 fi
11144
11145 fi
11146 if test -z "$ac_cv_prog_CC"; then
11147 ac_ct_CC=$CC
11148 # Extract the first word of "cc", so it can be a program name with args.
11149 set dummy cc; ac_word=$2
11150 echo "$as_me:$LINENO: checking for $ac_word" >&5
11151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155 if test -n "$ac_ct_CC"; then
11156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11157 else
11158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11160 do
11161 IFS=$as_save_IFS
11162 test -z "$as_dir" && as_dir=.
11163 for ac_exec_ext in '' $ac_executable_extensions; do
11164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11165 ac_cv_prog_ac_ct_CC="cc"
11166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11167 break 2
11168 fi
11169 done
11170 done
11171
11172 fi
11173 fi
11174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11175 if test -n "$ac_ct_CC"; then
11176 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11177 echo "${ECHO_T}$ac_ct_CC" >&6
11178 else
11179 echo "$as_me:$LINENO: result: no" >&5
11180 echo "${ECHO_T}no" >&6
11181 fi
11182
11183 CC=$ac_ct_CC
11184 else
11185 CC="$ac_cv_prog_CC"
11186 fi
11187
11188 fi
11189 if test -z "$CC"; then
11190 # Extract the first word of "cc", so it can be a program name with args.
11191 set dummy cc; ac_word=$2
11192 echo "$as_me:$LINENO: checking for $ac_word" >&5
11193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11194 if test "${ac_cv_prog_CC+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 if test -n "$CC"; then
11198 ac_cv_prog_CC="$CC" # Let the user override the test.
11199 else
11200 ac_prog_rejected=no
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11203 do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11208 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11209 ac_prog_rejected=yes
11210 continue
11211 fi
11212 ac_cv_prog_CC="cc"
11213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11214 break 2
11215 fi
11216 done
11217 done
11218
11219 if test $ac_prog_rejected = yes; then
11220 # We found a bogon in the path, so make sure we never use it.
11221 set dummy $ac_cv_prog_CC
11222 shift
11223 if test $# != 0; then
11224 # We chose a different compiler from the bogus one.
11225 # However, it has the same basename, so the bogon will be chosen
11226 # first if we set CC to just the basename; use the full file name.
11227 shift
11228 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11229 fi
11230 fi
11231 fi
11232 fi
11233 CC=$ac_cv_prog_CC
11234 if test -n "$CC"; then
11235 echo "$as_me:$LINENO: result: $CC" >&5
11236 echo "${ECHO_T}$CC" >&6
11237 else
11238 echo "$as_me:$LINENO: result: no" >&5
11239 echo "${ECHO_T}no" >&6
11240 fi
11241
11242 fi
11243 if test -z "$CC"; then
11244 if test -n "$ac_tool_prefix"; then
11245 for ac_prog in cl
11246 do
11247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11249 echo "$as_me:$LINENO: checking for $ac_word" >&5
11250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11251 if test "${ac_cv_prog_CC+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11253 else
11254 if test -n "$CC"; then
11255 ac_cv_prog_CC="$CC" # Let the user override the test.
11256 else
11257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11258 for as_dir in $PATH
11259 do
11260 IFS=$as_save_IFS
11261 test -z "$as_dir" && as_dir=.
11262 for ac_exec_ext in '' $ac_executable_extensions; do
11263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11264 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11266 break 2
11267 fi
11268 done
11269 done
11270
11271 fi
11272 fi
11273 CC=$ac_cv_prog_CC
11274 if test -n "$CC"; then
11275 echo "$as_me:$LINENO: result: $CC" >&5
11276 echo "${ECHO_T}$CC" >&6
11277 else
11278 echo "$as_me:$LINENO: result: no" >&5
11279 echo "${ECHO_T}no" >&6
11280 fi
11281
11282 test -n "$CC" && break
11283 done
11284 fi
11285 if test -z "$CC"; then
11286 ac_ct_CC=$CC
11287 for ac_prog in cl
11288 do
11289 # Extract the first word of "$ac_prog", so it can be a program name with args.
11290 set dummy $ac_prog; ac_word=$2
11291 echo "$as_me:$LINENO: checking for $ac_word" >&5
11292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11293 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 else
11296 if test -n "$ac_ct_CC"; then
11297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11298 else
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11301 do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306 ac_cv_prog_ac_ct_CC="$ac_prog"
11307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 break 2
11309 fi
11310 done
11311 done
11312
11313 fi
11314 fi
11315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11316 if test -n "$ac_ct_CC"; then
11317 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11318 echo "${ECHO_T}$ac_ct_CC" >&6
11319 else
11320 echo "$as_me:$LINENO: result: no" >&5
11321 echo "${ECHO_T}no" >&6
11322 fi
11323
11324 test -n "$ac_ct_CC" && break
11325 done
11326
11327 CC=$ac_ct_CC
11328 fi
11329
11330 fi
11331
11332
11333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11334 See \`config.log' for more details." >&5
11335 echo "$as_me: error: no acceptable C compiler found in \$PATH
11336 See \`config.log' for more details." >&2;}
11337 { (exit 1); exit 1; }; }
11338
11339 # Provide some information about the compiler.
11340 echo "$as_me:$LINENO:" \
11341 "checking for C compiler version" >&5
11342 ac_compiler=`set X $ac_compile; echo $2`
11343 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11344 (eval $ac_compiler --version </dev/null >&5) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }
11348 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11349 (eval $ac_compiler -v </dev/null >&5) 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }
11353 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11354 (eval $ac_compiler -V </dev/null >&5) 2>&5
11355 ac_status=$?
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }
11358
11359 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364 cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h. */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370
11371 int
11372 main ()
11373 {
11374 #ifndef __GNUC__
11375 choke me
11376 #endif
11377
11378 ;
11379 return 0;
11380 }
11381 _ACEOF
11382 rm -f conftest.$ac_objext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11384 (eval $ac_compile) 2>conftest.er1
11385 ac_status=$?
11386 grep -v '^ *+' conftest.er1 >conftest.err
11387 rm -f conftest.er1
11388 cat conftest.err >&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } &&
11391 { ac_try='test -z "$ac_c_werror_flag"
11392 || test ! -s conftest.err'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; } &&
11398 { ac_try='test -s conftest.$ac_objext'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_compiler_gnu=yes
11405 else
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 ac_compiler_gnu=no
11410 fi
11411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11413
11414 fi
11415 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11416 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11417 GCC=`test $ac_compiler_gnu = yes && echo yes`
11418 ac_test_CFLAGS=${CFLAGS+set}
11419 ac_save_CFLAGS=$CFLAGS
11420 CFLAGS="-g"
11421 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11422 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11423 if test "${ac_cv_prog_cc_g+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426 cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h. */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11432
11433 int
11434 main ()
11435 {
11436
11437 ;
11438 return 0;
11439 }
11440 _ACEOF
11441 rm -f conftest.$ac_objext
11442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11443 (eval $ac_compile) 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } &&
11450 { ac_try='test -z "$ac_c_werror_flag"
11451 || test ! -s conftest.err'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; } &&
11457 { ac_try='test -s conftest.$ac_objext'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 ac_cv_prog_cc_g=yes
11464 else
11465 echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11467
11468 ac_cv_prog_cc_g=no
11469 fi
11470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11471 fi
11472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11473 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11474 if test "$ac_test_CFLAGS" = set; then
11475 CFLAGS=$ac_save_CFLAGS
11476 elif test $ac_cv_prog_cc_g = yes; then
11477 if test "$GCC" = yes; then
11478 CFLAGS="-g -O2"
11479 else
11480 CFLAGS="-g"
11481 fi
11482 else
11483 if test "$GCC" = yes; then
11484 CFLAGS="-O2"
11485 else
11486 CFLAGS=
11487 fi
11488 fi
11489 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11490 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11491 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494 ac_cv_prog_cc_stdc=no
11495 ac_save_CC=$CC
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 #include <stdarg.h>
11503 #include <stdio.h>
11504 #include <sys/types.h>
11505 #include <sys/stat.h>
11506 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11507 struct buf { int x; };
11508 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11509 static char *e (p, i)
11510 char **p;
11511 int i;
11512 {
11513 return p[i];
11514 }
11515 static char *f (char * (*g) (char **, int), char **p, ...)
11516 {
11517 char *s;
11518 va_list v;
11519 va_start (v,p);
11520 s = g (p, va_arg (v,int));
11521 va_end (v);
11522 return s;
11523 }
11524
11525 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11526 function prototypes and stuff, but not '\xHH' hex character constants.
11527 These don't provoke an error unfortunately, instead are silently treated
11528 as 'x'. The following induces an error, until -std1 is added to get
11529 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11530 array size at least. It's necessary to write '\x00'==0 to get something
11531 that's true only with -std1. */
11532 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11533
11534 int test (int i, double x);
11535 struct s1 {int (*f) (int a);};
11536 struct s2 {int (*f) (double a);};
11537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11538 int argc;
11539 char **argv;
11540 int
11541 main ()
11542 {
11543 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11544 ;
11545 return 0;
11546 }
11547 _ACEOF
11548 # Don't try gcc -ansi; that turns off useful extensions and
11549 # breaks some systems' header files.
11550 # AIX -qlanglvl=ansi
11551 # Ultrix and OSF/1 -std1
11552 # HP-UX 10.20 and later -Ae
11553 # HP-UX older versions -Aa -D_HPUX_SOURCE
11554 # SVR4 -Xc -D__EXTENSIONS__
11555 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11556 do
11557 CC="$ac_save_CC $ac_arg"
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag"
11568 || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_cv_prog_cc_stdc=$ac_arg
11581 break
11582 else
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11585
11586 fi
11587 rm -f conftest.err conftest.$ac_objext
11588 done
11589 rm -f conftest.$ac_ext conftest.$ac_objext
11590 CC=$ac_save_CC
11591
11592 fi
11593
11594 case "x$ac_cv_prog_cc_stdc" in
11595 x|xno)
11596 echo "$as_me:$LINENO: result: none needed" >&5
11597 echo "${ECHO_T}none needed" >&6 ;;
11598 *)
11599 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11600 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11601 CC="$CC $ac_cv_prog_cc_stdc" ;;
11602 esac
11603
11604 # Some people use a C++ compiler to compile C. Since we use `exit',
11605 # in C++ we need to declare it. In case someone uses the same compiler
11606 # for both compiling C and C++ we need to have the C++ compiler decide
11607 # the declaration of exit, since it's the most demanding environment.
11608 cat >conftest.$ac_ext <<_ACEOF
11609 #ifndef __cplusplus
11610 choke me
11611 #endif
11612 _ACEOF
11613 rm -f conftest.$ac_objext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615 (eval $ac_compile) 2>conftest.er1
11616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
11622 { ac_try='test -z "$ac_c_werror_flag"
11623 || test ! -s conftest.err'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; } &&
11629 { ac_try='test -s conftest.$ac_objext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 for ac_declaration in \
11636 '' \
11637 'extern "C" void std::exit (int) throw (); using std::exit;' \
11638 'extern "C" void std::exit (int); using std::exit;' \
11639 'extern "C" void exit (int) throw ();' \
11640 'extern "C" void exit (int);' \
11641 'void exit (int);'
11642 do
11643 cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h. */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 $ac_declaration
11650 #include <stdlib.h>
11651 int
11652 main ()
11653 {
11654 exit (42);
11655 ;
11656 return 0;
11657 }
11658 _ACEOF
11659 rm -f conftest.$ac_objext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11661 (eval $ac_compile) 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag"
11669 || test ! -s conftest.err'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 :
11682 else
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11685
11686 continue
11687 fi
11688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11689 cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h. */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 $ac_declaration
11696 int
11697 main ()
11698 {
11699 exit (42);
11700 ;
11701 return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706 (eval $ac_compile) 2>conftest.er1
11707 ac_status=$?
11708 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -z "$ac_c_werror_flag"
11714 || test ! -s conftest.err'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; } &&
11720 { ac_try='test -s conftest.$ac_objext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 break
11727 else
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11730
11731 fi
11732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11733 done
11734 rm -f conftest*
11735 if test -n "$ac_declaration"; then
11736 echo '#ifdef __cplusplus' >>confdefs.h
11737 echo $ac_declaration >>confdefs.h
11738 echo '#endif' >>confdefs.h
11739 fi
11740
11741 else
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11744
11745 fi
11746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11747 ac_ext=c
11748 ac_cpp='$CPP $CPPFLAGS'
11749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11752
11753 depcc="$CC" am_compiler_list=
11754
11755 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11756 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
11757 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11761 # We make a subdir and do the tests there. Otherwise we can end up
11762 # making bogus files that we don't know about and never remove. For
11763 # instance it was reported that on HP-UX the gcc test will end up
11764 # making a dummy file named `D' -- because `-MD' means `put the output
11765 # in D'.
11766 mkdir conftest.dir
11767 # Copy depcomp to subdir because otherwise we won't find it if we're
11768 # using a relative directory.
11769 cp "$am_depcomp" conftest.dir
11770 cd conftest.dir
11771 # We will build objects and dependencies in a subdirectory because
11772 # it helps to detect inapplicable dependency modes. For instance
11773 # both Tru64's cc and ICC support -MD to output dependencies as a
11774 # side effect of compilation, but ICC will put the dependencies in
11775 # the current directory while Tru64 will put them in the object
11776 # directory.
11777 mkdir sub
11778
11779 am_cv_CC_dependencies_compiler_type=none
11780 if test "$am_compiler_list" = ""; then
11781 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11782 fi
11783 for depmode in $am_compiler_list; do
11784 # Setup a source with many dependencies, because some compilers
11785 # like to wrap large dependency lists on column 80 (with \), and
11786 # we should not choose a depcomp mode which is confused by this.
11787 #
11788 # We need to recreate these files for each test, as the compiler may
11789 # overwrite some of them when testing with obscure command lines.
11790 # This happens at least with the AIX C compiler.
11791 : > sub/conftest.c
11792 for i in 1 2 3 4 5 6; do
11793 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11794 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11795 # Solaris 8's {/usr,}/bin/sh.
11796 touch sub/conftst$i.h
11797 done
11798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11799
11800 case $depmode in
11801 nosideeffect)
11802 # after this tag, mechanisms are not by side-effect, so they'll
11803 # only be used when explicitly requested
11804 if test "x$enable_dependency_tracking" = xyes; then
11805 continue
11806 else
11807 break
11808 fi
11809 ;;
11810 none) break ;;
11811 esac
11812 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11813 # mode. It turns out that the SunPro C++ compiler does not properly
11814 # handle `-M -o', and we need to detect this.
11815 if depmode=$depmode \
11816 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11817 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11818 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11819 >/dev/null 2>conftest.err &&
11820 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11821 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11822 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11823 # icc doesn't choke on unknown options, it will just issue warnings
11824 # or remarks (even with -Werror). So we grep stderr for any message
11825 # that says an option was ignored or not supported.
11826 # When given -MP, icc 7.0 and 7.1 complain thusly:
11827 # icc: Command line warning: ignoring option '-M'; no argument required
11828 # The diagnosis changed in icc 8.0:
11829 # icc: Command line remark: option '-MP' not supported
11830 if (grep 'ignoring option' conftest.err ||
11831 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11832 am_cv_CC_dependencies_compiler_type=$depmode
11833 break
11834 fi
11835 fi
11836 done
11837
11838 cd ..
11839 rm -rf conftest.dir
11840 else
11841 am_cv_CC_dependencies_compiler_type=none
11842 fi
11843
11844 fi
11845 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11846 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
11847 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11848
11849
11850
11851 if
11852 test "x$enable_dependency_tracking" != xno \
11853 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11854 am__fastdepCC_TRUE=
11855 am__fastdepCC_FALSE='#'
11856 else
11857 am__fastdepCC_TRUE='#'
11858 am__fastdepCC_FALSE=
11859 fi
11860
11861
11862 ac_ext=c
11863 ac_cpp='$CPP $CPPFLAGS'
11864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11867 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11868 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11869 # On Suns, sometimes $CPP names a directory.
11870 if test -n "$CPP" && test -d "$CPP"; then
11871 CPP=
11872 fi
11873 if test -z "$CPP"; then
11874 if test "${ac_cv_prog_CPP+set}" = set; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877 # Double quotes because CPP needs to be expanded
11878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11879 do
11880 ac_preproc_ok=false
11881 for ac_c_preproc_warn_flag in '' yes
11882 do
11883 # Use a header file that comes with gcc, so configuring glibc
11884 # with a fresh cross-compiler works.
11885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 # <limits.h> exists even on freestanding compilers.
11887 # On the NeXT, cc -E runs the code through the compiler's parser,
11888 # not just through cpp. "Syntax error" is here to catch this case.
11889 cat >conftest.$ac_ext <<_ACEOF
11890 /* confdefs.h. */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895 #ifdef __STDC__
11896 # include <limits.h>
11897 #else
11898 # include <assert.h>
11899 #endif
11900 Syntax error
11901 _ACEOF
11902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } >/dev/null; then
11910 if test -s conftest.err; then
11911 ac_cpp_err=$ac_c_preproc_warn_flag
11912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11913 else
11914 ac_cpp_err=
11915 fi
11916 else
11917 ac_cpp_err=yes
11918 fi
11919 if test -z "$ac_cpp_err"; then
11920 :
11921 else
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11924
11925 # Broken: fails on valid input.
11926 continue
11927 fi
11928 rm -f conftest.err conftest.$ac_ext
11929
11930 # OK, works on sane cases. Now check whether non-existent headers
11931 # can be detected and how.
11932 cat >conftest.$ac_ext <<_ACEOF
11933 /* confdefs.h. */
11934 _ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11938 #include <ac_nonexistent.h>
11939 _ACEOF
11940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11942 ac_status=$?
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } >/dev/null; then
11948 if test -s conftest.err; then
11949 ac_cpp_err=$ac_c_preproc_warn_flag
11950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11951 else
11952 ac_cpp_err=
11953 fi
11954 else
11955 ac_cpp_err=yes
11956 fi
11957 if test -z "$ac_cpp_err"; then
11958 # Broken: success on invalid input.
11959 continue
11960 else
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964 # Passes both tests.
11965 ac_preproc_ok=:
11966 break
11967 fi
11968 rm -f conftest.err conftest.$ac_ext
11969
11970 done
11971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11972 rm -f conftest.err conftest.$ac_ext
11973 if $ac_preproc_ok; then
11974 break
11975 fi
11976
11977 done
11978 ac_cv_prog_CPP=$CPP
11979
11980 fi
11981 CPP=$ac_cv_prog_CPP
11982 else
11983 ac_cv_prog_CPP=$CPP
11984 fi
11985 echo "$as_me:$LINENO: result: $CPP" >&5
11986 echo "${ECHO_T}$CPP" >&6
11987 ac_preproc_ok=false
11988 for ac_c_preproc_warn_flag in '' yes
11989 do
11990 # Use a header file that comes with gcc, so configuring glibc
11991 # with a fresh cross-compiler works.
11992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993 # <limits.h> exists even on freestanding compilers.
11994 # On the NeXT, cc -E runs the code through the compiler's parser,
11995 # not just through cpp. "Syntax error" is here to catch this case.
11996 cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h. */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12002 #ifdef __STDC__
12003 # include <limits.h>
12004 #else
12005 # include <assert.h>
12006 #endif
12007 Syntax error
12008 _ACEOF
12009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } >/dev/null; then
12017 if test -s conftest.err; then
12018 ac_cpp_err=$ac_c_preproc_warn_flag
12019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12020 else
12021 ac_cpp_err=
12022 fi
12023 else
12024 ac_cpp_err=yes
12025 fi
12026 if test -z "$ac_cpp_err"; then
12027 :
12028 else
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 # Broken: fails on valid input.
12033 continue
12034 fi
12035 rm -f conftest.err conftest.$ac_ext
12036
12037 # OK, works on sane cases. Now check whether non-existent headers
12038 # can be detected and how.
12039 cat >conftest.$ac_ext <<_ACEOF
12040 /* confdefs.h. */
12041 _ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045 #include <ac_nonexistent.h>
12046 _ACEOF
12047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12049 ac_status=$?
12050 grep -v '^ *+' conftest.er1 >conftest.err
12051 rm -f conftest.er1
12052 cat conftest.err >&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } >/dev/null; then
12055 if test -s conftest.err; then
12056 ac_cpp_err=$ac_c_preproc_warn_flag
12057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12058 else
12059 ac_cpp_err=
12060 fi
12061 else
12062 ac_cpp_err=yes
12063 fi
12064 if test -z "$ac_cpp_err"; then
12065 # Broken: success on invalid input.
12066 continue
12067 else
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 # Passes both tests.
12072 ac_preproc_ok=:
12073 break
12074 fi
12075 rm -f conftest.err conftest.$ac_ext
12076
12077 done
12078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12079 rm -f conftest.err conftest.$ac_ext
12080 if $ac_preproc_ok; then
12081 :
12082 else
12083 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12084 See \`config.log' for more details." >&5
12085 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12086 See \`config.log' for more details." >&2;}
12087 { (exit 1); exit 1; }; }
12088 fi
12089
12090 ac_ext=c
12091 ac_cpp='$CPP $CPPFLAGS'
12092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12095
12096 ac_ext=cc
12097 ac_cpp='$CXXCPP $CPPFLAGS'
12098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12101 if test -n "$ac_tool_prefix"; then
12102 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12103 do
12104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12106 echo "$as_me:$LINENO: checking for $ac_word" >&5
12107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12108 if test "${ac_cv_prog_CXX+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111 if test -n "$CXX"; then
12112 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12113 else
12114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115 for as_dir in $PATH
12116 do
12117 IFS=$as_save_IFS
12118 test -z "$as_dir" && as_dir=.
12119 for ac_exec_ext in '' $ac_executable_extensions; do
12120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12121 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12123 break 2
12124 fi
12125 done
12126 done
12127
12128 fi
12129 fi
12130 CXX=$ac_cv_prog_CXX
12131 if test -n "$CXX"; then
12132 echo "$as_me:$LINENO: result: $CXX" >&5
12133 echo "${ECHO_T}$CXX" >&6
12134 else
12135 echo "$as_me:$LINENO: result: no" >&5
12136 echo "${ECHO_T}no" >&6
12137 fi
12138
12139 test -n "$CXX" && break
12140 done
12141 fi
12142 if test -z "$CXX"; then
12143 ac_ct_CXX=$CXX
12144 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12145 do
12146 # Extract the first word of "$ac_prog", so it can be a program name with args.
12147 set dummy $ac_prog; ac_word=$2
12148 echo "$as_me:$LINENO: checking for $ac_word" >&5
12149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12150 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153 if test -n "$ac_ct_CXX"; then
12154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12155 else
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in $PATH
12158 do
12159 IFS=$as_save_IFS
12160 test -z "$as_dir" && as_dir=.
12161 for ac_exec_ext in '' $ac_executable_extensions; do
12162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12163 ac_cv_prog_ac_ct_CXX="$ac_prog"
12164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12165 break 2
12166 fi
12167 done
12168 done
12169
12170 fi
12171 fi
12172 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12173 if test -n "$ac_ct_CXX"; then
12174 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12175 echo "${ECHO_T}$ac_ct_CXX" >&6
12176 else
12177 echo "$as_me:$LINENO: result: no" >&5
12178 echo "${ECHO_T}no" >&6
12179 fi
12180
12181 test -n "$ac_ct_CXX" && break
12182 done
12183 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12184
12185 CXX=$ac_ct_CXX
12186 fi
12187
12188
12189 # Provide some information about the compiler.
12190 echo "$as_me:$LINENO:" \
12191 "checking for C++ compiler version" >&5
12192 ac_compiler=`set X $ac_compile; echo $2`
12193 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12194 (eval $ac_compiler --version </dev/null >&5) 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }
12198 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12199 (eval $ac_compiler -v </dev/null >&5) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }
12203 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12204 (eval $ac_compiler -V </dev/null >&5) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }
12208
12209 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12210 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12211 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214 cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h. */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220
12221 int
12222 main ()
12223 {
12224 #ifndef __GNUC__
12225 choke me
12226 #endif
12227
12228 ;
12229 return 0;
12230 }
12231 _ACEOF
12232 rm -f conftest.$ac_objext
12233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12234 (eval $ac_compile) 2>conftest.er1
12235 ac_status=$?
12236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
12241 { ac_try='test -z "$ac_cxx_werror_flag"
12242 || test ! -s conftest.err'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; } &&
12248 { ac_try='test -s conftest.$ac_objext'
12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; }; then
12254 ac_compiler_gnu=yes
12255 else
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12258
12259 ac_compiler_gnu=no
12260 fi
12261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12262 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12263
12264 fi
12265 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12266 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12267 GXX=`test $ac_compiler_gnu = yes && echo yes`
12268 ac_test_CXXFLAGS=${CXXFLAGS+set}
12269 ac_save_CXXFLAGS=$CXXFLAGS
12270 CXXFLAGS="-g"
12271 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12272 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12273 if test "${ac_cv_prog_cxx_g+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 else
12276 cat >conftest.$ac_ext <<_ACEOF
12277 /* confdefs.h. */
12278 _ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h. */
12282
12283 int
12284 main ()
12285 {
12286
12287 ;
12288 return 0;
12289 }
12290 _ACEOF
12291 rm -f conftest.$ac_objext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293 (eval $ac_compile) 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -z "$ac_cxx_werror_flag"
12301 || test ! -s conftest.err'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try='test -s conftest.$ac_objext'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12313 ac_cv_prog_cxx_g=yes
12314 else
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12317
12318 ac_cv_prog_cxx_g=no
12319 fi
12320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12321 fi
12322 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12323 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12324 if test "$ac_test_CXXFLAGS" = set; then
12325 CXXFLAGS=$ac_save_CXXFLAGS
12326 elif test $ac_cv_prog_cxx_g = yes; then
12327 if test "$GXX" = yes; then
12328 CXXFLAGS="-g -O2"
12329 else
12330 CXXFLAGS="-g"
12331 fi
12332 else
12333 if test "$GXX" = yes; then
12334 CXXFLAGS="-O2"
12335 else
12336 CXXFLAGS=
12337 fi
12338 fi
12339 for ac_declaration in \
12340 '' \
12341 'extern "C" void std::exit (int) throw (); using std::exit;' \
12342 'extern "C" void std::exit (int); using std::exit;' \
12343 'extern "C" void exit (int) throw ();' \
12344 'extern "C" void exit (int);' \
12345 'void exit (int);'
12346 do
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h. */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12353 $ac_declaration
12354 #include <stdlib.h>
12355 int
12356 main ()
12357 {
12358 exit (42);
12359 ;
12360 return 0;
12361 }
12362 _ACEOF
12363 rm -f conftest.$ac_objext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12365 (eval $ac_compile) 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_cxx_werror_flag"
12373 || test ! -s conftest.err'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest.$ac_objext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 :
12386 else
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 continue
12391 fi
12392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 $ac_declaration
12400 int
12401 main ()
12402 {
12403 exit (42);
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 rm -f conftest.$ac_objext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12410 (eval $ac_compile) 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_cxx_werror_flag"
12418 || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest.$ac_objext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 break
12431 else
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12434
12435 fi
12436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12437 done
12438 rm -f conftest*
12439 if test -n "$ac_declaration"; then
12440 echo '#ifdef __cplusplus' >>confdefs.h
12441 echo $ac_declaration >>confdefs.h
12442 echo '#endif' >>confdefs.h
12443 fi
12444
12445 ac_ext=c
12446 ac_cpp='$CPP $CPPFLAGS'
12447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12450
12451 depcc="$CXX" am_compiler_list=
12452
12453 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12454 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12455 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12459 # We make a subdir and do the tests there. Otherwise we can end up
12460 # making bogus files that we don't know about and never remove. For
12461 # instance it was reported that on HP-UX the gcc test will end up
12462 # making a dummy file named `D' -- because `-MD' means `put the output
12463 # in D'.
12464 mkdir conftest.dir
12465 # Copy depcomp to subdir because otherwise we won't find it if we're
12466 # using a relative directory.
12467 cp "$am_depcomp" conftest.dir
12468 cd conftest.dir
12469 # We will build objects and dependencies in a subdirectory because
12470 # it helps to detect inapplicable dependency modes. For instance
12471 # both Tru64's cc and ICC support -MD to output dependencies as a
12472 # side effect of compilation, but ICC will put the dependencies in
12473 # the current directory while Tru64 will put them in the object
12474 # directory.
12475 mkdir sub
12476
12477 am_cv_CXX_dependencies_compiler_type=none
12478 if test "$am_compiler_list" = ""; then
12479 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12480 fi
12481 for depmode in $am_compiler_list; do
12482 # Setup a source with many dependencies, because some compilers
12483 # like to wrap large dependency lists on column 80 (with \), and
12484 # we should not choose a depcomp mode which is confused by this.
12485 #
12486 # We need to recreate these files for each test, as the compiler may
12487 # overwrite some of them when testing with obscure command lines.
12488 # This happens at least with the AIX C compiler.
12489 : > sub/conftest.c
12490 for i in 1 2 3 4 5 6; do
12491 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12492 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12493 # Solaris 8's {/usr,}/bin/sh.
12494 touch sub/conftst$i.h
12495 done
12496 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12497
12498 case $depmode in
12499 nosideeffect)
12500 # after this tag, mechanisms are not by side-effect, so they'll
12501 # only be used when explicitly requested
12502 if test "x$enable_dependency_tracking" = xyes; then
12503 continue
12504 else
12505 break
12506 fi
12507 ;;
12508 none) break ;;
12509 esac
12510 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12511 # mode. It turns out that the SunPro C++ compiler does not properly
12512 # handle `-M -o', and we need to detect this.
12513 if depmode=$depmode \
12514 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12516 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12517 >/dev/null 2>conftest.err &&
12518 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12519 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12520 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12521 # icc doesn't choke on unknown options, it will just issue warnings
12522 # or remarks (even with -Werror). So we grep stderr for any message
12523 # that says an option was ignored or not supported.
12524 # When given -MP, icc 7.0 and 7.1 complain thusly:
12525 # icc: Command line warning: ignoring option '-M'; no argument required
12526 # The diagnosis changed in icc 8.0:
12527 # icc: Command line remark: option '-MP' not supported
12528 if (grep 'ignoring option' conftest.err ||
12529 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12530 am_cv_CXX_dependencies_compiler_type=$depmode
12531 break
12532 fi
12533 fi
12534 done
12535
12536 cd ..
12537 rm -rf conftest.dir
12538 else
12539 am_cv_CXX_dependencies_compiler_type=none
12540 fi
12541
12542 fi
12543 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12544 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
12545 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12546
12547
12548
12549 if
12550 test "x$enable_dependency_tracking" != xno \
12551 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12552 am__fastdepCXX_TRUE=
12553 am__fastdepCXX_FALSE='#'
12554 else
12555 am__fastdepCXX_TRUE='#'
12556 am__fastdepCXX_FALSE=
12557 fi
12558
12559
12560
12561 ac_ext=cc
12562 ac_cpp='$CXXCPP $CPPFLAGS'
12563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12566 if test -n "$ac_tool_prefix"; then
12567 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12568 do
12569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12571 echo "$as_me:$LINENO: checking for $ac_word" >&5
12572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12573 if test "${ac_cv_prog_CXX+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 else
12576 if test -n "$CXX"; then
12577 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12578 else
12579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12580 for as_dir in $PATH
12581 do
12582 IFS=$as_save_IFS
12583 test -z "$as_dir" && as_dir=.
12584 for ac_exec_ext in '' $ac_executable_extensions; do
12585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12586 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12588 break 2
12589 fi
12590 done
12591 done
12592
12593 fi
12594 fi
12595 CXX=$ac_cv_prog_CXX
12596 if test -n "$CXX"; then
12597 echo "$as_me:$LINENO: result: $CXX" >&5
12598 echo "${ECHO_T}$CXX" >&6
12599 else
12600 echo "$as_me:$LINENO: result: no" >&5
12601 echo "${ECHO_T}no" >&6
12602 fi
12603
12604 test -n "$CXX" && break
12605 done
12606 fi
12607 if test -z "$CXX"; then
12608 ac_ct_CXX=$CXX
12609 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12610 do
12611 # Extract the first word of "$ac_prog", so it can be a program name with args.
12612 set dummy $ac_prog; ac_word=$2
12613 echo "$as_me:$LINENO: checking for $ac_word" >&5
12614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12615 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618 if test -n "$ac_ct_CXX"; then
12619 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12620 else
12621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622 for as_dir in $PATH
12623 do
12624 IFS=$as_save_IFS
12625 test -z "$as_dir" && as_dir=.
12626 for ac_exec_ext in '' $ac_executable_extensions; do
12627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12628 ac_cv_prog_ac_ct_CXX="$ac_prog"
12629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12630 break 2
12631 fi
12632 done
12633 done
12634
12635 fi
12636 fi
12637 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12638 if test -n "$ac_ct_CXX"; then
12639 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12640 echo "${ECHO_T}$ac_ct_CXX" >&6
12641 else
12642 echo "$as_me:$LINENO: result: no" >&5
12643 echo "${ECHO_T}no" >&6
12644 fi
12645
12646 test -n "$ac_ct_CXX" && break
12647 done
12648 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12649
12650 CXX=$ac_ct_CXX
12651 fi
12652
12653
12654 # Provide some information about the compiler.
12655 echo "$as_me:$LINENO:" \
12656 "checking for C++ compiler version" >&5
12657 ac_compiler=`set X $ac_compile; echo $2`
12658 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12659 (eval $ac_compiler --version </dev/null >&5) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }
12663 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12664 (eval $ac_compiler -v </dev/null >&5) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }
12668 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12669 (eval $ac_compiler -V </dev/null >&5) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }
12673
12674 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12675 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12676 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12677 echo $ECHO_N "(cached) $ECHO_C" >&6
12678 else
12679 cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h. */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12685
12686 int
12687 main ()
12688 {
12689 #ifndef __GNUC__
12690 choke me
12691 #endif
12692
12693 ;
12694 return 0;
12695 }
12696 _ACEOF
12697 rm -f conftest.$ac_objext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12699 (eval $ac_compile) 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_cxx_werror_flag"
12707 || test ! -s conftest.err'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; } &&
12713 { ac_try='test -s conftest.$ac_objext'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_compiler_gnu=yes
12720 else
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12723
12724 ac_compiler_gnu=no
12725 fi
12726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12727 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12728
12729 fi
12730 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12731 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12732 GXX=`test $ac_compiler_gnu = yes && echo yes`
12733 ac_test_CXXFLAGS=${CXXFLAGS+set}
12734 ac_save_CXXFLAGS=$CXXFLAGS
12735 CXXFLAGS="-g"
12736 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12737 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12738 if test "${ac_cv_prog_cxx_g+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 else
12741 cat >conftest.$ac_ext <<_ACEOF
12742 /* confdefs.h. */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12747
12748 int
12749 main ()
12750 {
12751
12752 ;
12753 return 0;
12754 }
12755 _ACEOF
12756 rm -f conftest.$ac_objext
12757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12758 (eval $ac_compile) 2>conftest.er1
12759 ac_status=$?
12760 grep -v '^ *+' conftest.er1 >conftest.err
12761 rm -f conftest.er1
12762 cat conftest.err >&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try='test -z "$ac_cxx_werror_flag"
12766 || test ! -s conftest.err'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try='test -s conftest.$ac_objext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 ac_cv_prog_cxx_g=yes
12779 else
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12782
12783 ac_cv_prog_cxx_g=no
12784 fi
12785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12786 fi
12787 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12788 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12789 if test "$ac_test_CXXFLAGS" = set; then
12790 CXXFLAGS=$ac_save_CXXFLAGS
12791 elif test $ac_cv_prog_cxx_g = yes; then
12792 if test "$GXX" = yes; then
12793 CXXFLAGS="-g -O2"
12794 else
12795 CXXFLAGS="-g"
12796 fi
12797 else
12798 if test "$GXX" = yes; then
12799 CXXFLAGS="-O2"
12800 else
12801 CXXFLAGS=
12802 fi
12803 fi
12804 for ac_declaration in \
12805 '' \
12806 'extern "C" void std::exit (int) throw (); using std::exit;' \
12807 'extern "C" void std::exit (int); using std::exit;' \
12808 'extern "C" void exit (int) throw ();' \
12809 'extern "C" void exit (int);' \
12810 'void exit (int);'
12811 do
12812 cat >conftest.$ac_ext <<_ACEOF
12813 /* confdefs.h. */
12814 _ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h. */
12818 $ac_declaration
12819 #include <stdlib.h>
12820 int
12821 main ()
12822 {
12823 exit (42);
12824 ;
12825 return 0;
12826 }
12827 _ACEOF
12828 rm -f conftest.$ac_objext
12829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12830 (eval $ac_compile) 2>conftest.er1
12831 ac_status=$?
12832 grep -v '^ *+' conftest.er1 >conftest.err
12833 rm -f conftest.er1
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -z "$ac_cxx_werror_flag"
12838 || test ! -s conftest.err'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest.$ac_objext'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
12850 :
12851 else
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12854
12855 continue
12856 fi
12857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12858 cat >conftest.$ac_ext <<_ACEOF
12859 /* confdefs.h. */
12860 _ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h. */
12864 $ac_declaration
12865 int
12866 main ()
12867 {
12868 exit (42);
12869 ;
12870 return 0;
12871 }
12872 _ACEOF
12873 rm -f conftest.$ac_objext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12875 (eval $ac_compile) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_cxx_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest.$ac_objext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 break
12896 else
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12899
12900 fi
12901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12902 done
12903 rm -f conftest*
12904 if test -n "$ac_declaration"; then
12905 echo '#ifdef __cplusplus' >>confdefs.h
12906 echo $ac_declaration >>confdefs.h
12907 echo '#endif' >>confdefs.h
12908 fi
12909
12910 ac_ext=c
12911 ac_cpp='$CPP $CPPFLAGS'
12912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12915
12916 depcc="$CXX" am_compiler_list=
12917
12918 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12919 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12920 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12924 # We make a subdir and do the tests there. Otherwise we can end up
12925 # making bogus files that we don't know about and never remove. For
12926 # instance it was reported that on HP-UX the gcc test will end up
12927 # making a dummy file named `D' -- because `-MD' means `put the output
12928 # in D'.
12929 mkdir conftest.dir
12930 # Copy depcomp to subdir because otherwise we won't find it if we're
12931 # using a relative directory.
12932 cp "$am_depcomp" conftest.dir
12933 cd conftest.dir
12934 # We will build objects and dependencies in a subdirectory because
12935 # it helps to detect inapplicable dependency modes. For instance
12936 # both Tru64's cc and ICC support -MD to output dependencies as a
12937 # side effect of compilation, but ICC will put the dependencies in
12938 # the current directory while Tru64 will put them in the object
12939 # directory.
12940 mkdir sub
12941
12942 am_cv_CXX_dependencies_compiler_type=none
12943 if test "$am_compiler_list" = ""; then
12944 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12945 fi
12946 for depmode in $am_compiler_list; do
12947 # Setup a source with many dependencies, because some compilers
12948 # like to wrap large dependency lists on column 80 (with \), and
12949 # we should not choose a depcomp mode which is confused by this.
12950 #
12951 # We need to recreate these files for each test, as the compiler may
12952 # overwrite some of them when testing with obscure command lines.
12953 # This happens at least with the AIX C compiler.
12954 : > sub/conftest.c
12955 for i in 1 2 3 4 5 6; do
12956 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12957 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12958 # Solaris 8's {/usr,}/bin/sh.
12959 touch sub/conftst$i.h
12960 done
12961 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12962
12963 case $depmode in
12964 nosideeffect)
12965 # after this tag, mechanisms are not by side-effect, so they'll
12966 # only be used when explicitly requested
12967 if test "x$enable_dependency_tracking" = xyes; then
12968 continue
12969 else
12970 break
12971 fi
12972 ;;
12973 none) break ;;
12974 esac
12975 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12976 # mode. It turns out that the SunPro C++ compiler does not properly
12977 # handle `-M -o', and we need to detect this.
12978 if depmode=$depmode \
12979 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12980 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12981 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12982 >/dev/null 2>conftest.err &&
12983 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12984 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12985 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12986 # icc doesn't choke on unknown options, it will just issue warnings
12987 # or remarks (even with -Werror). So we grep stderr for any message
12988 # that says an option was ignored or not supported.
12989 # When given -MP, icc 7.0 and 7.1 complain thusly:
12990 # icc: Command line warning: ignoring option '-M'; no argument required
12991 # The diagnosis changed in icc 8.0:
12992 # icc: Command line remark: option '-MP' not supported
12993 if (grep 'ignoring option' conftest.err ||
12994 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12995 am_cv_CXX_dependencies_compiler_type=$depmode
12996 break
12997 fi
12998 fi
12999 done
13000
13001 cd ..
13002 rm -rf conftest.dir
13003 else
13004 am_cv_CXX_dependencies_compiler_type=none
13005 fi
13006
13007 fi
13008 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13009 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
13010 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13011
13012
13013
13014 if
13015 test "x$enable_dependency_tracking" != xno \
13016 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13017 am__fastdepCXX_TRUE=
13018 am__fastdepCXX_FALSE='#'
13019 else
13020 am__fastdepCXX_TRUE='#'
13021 am__fastdepCXX_FALSE=
13022 fi
13023
13024
13025 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13026 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13027 (test "X$CXX" != "Xg++"))) ; then
13028 ac_ext=cc
13029 ac_cpp='$CXXCPP $CPPFLAGS'
13030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13033 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13034 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
13035 if test -z "$CXXCPP"; then
13036 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 else
13039 # Double quotes because CXXCPP needs to be expanded
13040 for CXXCPP in "$CXX -E" "/lib/cpp"
13041 do
13042 ac_preproc_ok=false
13043 for ac_cxx_preproc_warn_flag in '' yes
13044 do
13045 # Use a header file that comes with gcc, so configuring glibc
13046 # with a fresh cross-compiler works.
13047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13048 # <limits.h> exists even on freestanding compilers.
13049 # On the NeXT, cc -E runs the code through the compiler's parser,
13050 # not just through cpp. "Syntax error" is here to catch this case.
13051 cat >conftest.$ac_ext <<_ACEOF
13052 /* confdefs.h. */
13053 _ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h. */
13057 #ifdef __STDC__
13058 # include <limits.h>
13059 #else
13060 # include <assert.h>
13061 #endif
13062 Syntax error
13063 _ACEOF
13064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13066 ac_status=$?
13067 grep -v '^ *+' conftest.er1 >conftest.err
13068 rm -f conftest.er1
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } >/dev/null; then
13072 if test -s conftest.err; then
13073 ac_cpp_err=$ac_cxx_preproc_warn_flag
13074 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13075 else
13076 ac_cpp_err=
13077 fi
13078 else
13079 ac_cpp_err=yes
13080 fi
13081 if test -z "$ac_cpp_err"; then
13082 :
13083 else
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13086
13087 # Broken: fails on valid input.
13088 continue
13089 fi
13090 rm -f conftest.err conftest.$ac_ext
13091
13092 # OK, works on sane cases. Now check whether non-existent headers
13093 # can be detected and how.
13094 cat >conftest.$ac_ext <<_ACEOF
13095 /* confdefs.h. */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 #include <ac_nonexistent.h>
13101 _ACEOF
13102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13104 ac_status=$?
13105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } >/dev/null; then
13110 if test -s conftest.err; then
13111 ac_cpp_err=$ac_cxx_preproc_warn_flag
13112 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13113 else
13114 ac_cpp_err=
13115 fi
13116 else
13117 ac_cpp_err=yes
13118 fi
13119 if test -z "$ac_cpp_err"; then
13120 # Broken: success on invalid input.
13121 continue
13122 else
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 # Passes both tests.
13127 ac_preproc_ok=:
13128 break
13129 fi
13130 rm -f conftest.err conftest.$ac_ext
13131
13132 done
13133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13134 rm -f conftest.err conftest.$ac_ext
13135 if $ac_preproc_ok; then
13136 break
13137 fi
13138
13139 done
13140 ac_cv_prog_CXXCPP=$CXXCPP
13141
13142 fi
13143 CXXCPP=$ac_cv_prog_CXXCPP
13144 else
13145 ac_cv_prog_CXXCPP=$CXXCPP
13146 fi
13147 echo "$as_me:$LINENO: result: $CXXCPP" >&5
13148 echo "${ECHO_T}$CXXCPP" >&6
13149 ac_preproc_ok=false
13150 for ac_cxx_preproc_warn_flag in '' yes
13151 do
13152 # Use a header file that comes with gcc, so configuring glibc
13153 # with a fresh cross-compiler works.
13154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13155 # <limits.h> exists even on freestanding compilers.
13156 # On the NeXT, cc -E runs the code through the compiler's parser,
13157 # not just through cpp. "Syntax error" is here to catch this case.
13158 cat >conftest.$ac_ext <<_ACEOF
13159 /* confdefs.h. */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13164 #ifdef __STDC__
13165 # include <limits.h>
13166 #else
13167 # include <assert.h>
13168 #endif
13169 Syntax error
13170 _ACEOF
13171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } >/dev/null; then
13179 if test -s conftest.err; then
13180 ac_cpp_err=$ac_cxx_preproc_warn_flag
13181 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13182 else
13183 ac_cpp_err=
13184 fi
13185 else
13186 ac_cpp_err=yes
13187 fi
13188 if test -z "$ac_cpp_err"; then
13189 :
13190 else
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194 # Broken: fails on valid input.
13195 continue
13196 fi
13197 rm -f conftest.err conftest.$ac_ext
13198
13199 # OK, works on sane cases. Now check whether non-existent headers
13200 # can be detected and how.
13201 cat >conftest.$ac_ext <<_ACEOF
13202 /* confdefs.h. */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207 #include <ac_nonexistent.h>
13208 _ACEOF
13209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13211 ac_status=$?
13212 grep -v '^ *+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } >/dev/null; then
13217 if test -s conftest.err; then
13218 ac_cpp_err=$ac_cxx_preproc_warn_flag
13219 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13220 else
13221 ac_cpp_err=
13222 fi
13223 else
13224 ac_cpp_err=yes
13225 fi
13226 if test -z "$ac_cpp_err"; then
13227 # Broken: success on invalid input.
13228 continue
13229 else
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13232
13233 # Passes both tests.
13234 ac_preproc_ok=:
13235 break
13236 fi
13237 rm -f conftest.err conftest.$ac_ext
13238
13239 done
13240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13241 rm -f conftest.err conftest.$ac_ext
13242 if $ac_preproc_ok; then
13243 :
13244 else
13245 _lt_caught_CXX_error=yes
13246 fi
13247
13248 ac_ext=c
13249 ac_cpp='$CPP $CPPFLAGS'
13250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13253
13254 else
13255 _lt_caught_CXX_error=yes
13256 fi
13257
13258
13259
13260
13261 ac_ext=cc
13262 ac_cpp='$CXXCPP $CPPFLAGS'
13263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13266
13267 archive_cmds_need_lc_CXX=no
13268 allow_undefined_flag_CXX=
13269 always_export_symbols_CXX=no
13270 archive_expsym_cmds_CXX=
13271 compiler_needs_object_CXX=no
13272 export_dynamic_flag_spec_CXX=
13273 hardcode_direct_CXX=no
13274 hardcode_direct_absolute_CXX=no
13275 hardcode_libdir_flag_spec_CXX=
13276 hardcode_libdir_flag_spec_ld_CXX=
13277 hardcode_libdir_separator_CXX=
13278 hardcode_minus_L_CXX=no
13279 hardcode_shlibpath_var_CXX=unsupported
13280 hardcode_automatic_CXX=no
13281 inherit_rpath_CXX=no
13282 module_cmds_CXX=
13283 module_expsym_cmds_CXX=
13284 link_all_deplibs_CXX=unknown
13285 old_archive_cmds_CXX=$old_archive_cmds
13286 no_undefined_flag_CXX=
13287 whole_archive_flag_spec_CXX=
13288 enable_shared_with_static_runtimes_CXX=no
13289
13290 # Source file extension for C++ test sources.
13291 ac_ext=cpp
13292
13293 # Object file extension for compiled C++ test sources.
13294 objext=o
13295 objext_CXX=$objext
13296
13297 # No sense in running all these tests if we already determined that
13298 # the CXX compiler isn't working. Some variables (like enable_shared)
13299 # are currently assumed to apply to all compilers on this platform,
13300 # and will be corrupted by setting them based on a non-working compiler.
13301 if test "$_lt_caught_CXX_error" != yes; then
13302 # Code to be used in simple compile tests
13303 lt_simple_compile_test_code="int some_variable = 0;"
13304
13305 # Code to be used in simple link tests
13306 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13307
13308 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13309
13310
13311
13312
13313
13314
13315 # If no C compiler was specified, use CC.
13316 LTCC=${LTCC-"$CC"}
13317
13318 # If no C compiler flags were specified, use CFLAGS.
13319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13320
13321 # Allow CC to be a program name with arguments.
13322 compiler=$CC
13323
13324
13325 # save warnings/boilerplate of simple test code
13326 ac_outfile=conftest.$ac_objext
13327 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13328 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13329 _lt_compiler_boilerplate=`cat conftest.err`
13330 $RM conftest*
13331
13332 ac_outfile=conftest.$ac_objext
13333 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13334 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13335 _lt_linker_boilerplate=`cat conftest.err`
13336 $RM conftest*
13337
13338
13339 # Allow CC to be a program name with arguments.
13340 lt_save_CC=$CC
13341 lt_save_LD=$LD
13342 lt_save_GCC=$GCC
13343 GCC=$GXX
13344 lt_save_with_gnu_ld=$with_gnu_ld
13345 lt_save_path_LD=$lt_cv_path_LD
13346 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13347 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13348 else
13349 $as_unset lt_cv_prog_gnu_ld
13350 fi
13351 if test -n "${lt_cv_path_LDCXX+set}"; then
13352 lt_cv_path_LD=$lt_cv_path_LDCXX
13353 else
13354 $as_unset lt_cv_path_LD
13355 fi
13356 test -z "${LDCXX+set}" || LD=$LDCXX
13357 CC=${CXX-"c++"}
13358 compiler=$CC
13359 compiler_CXX=$CC
13360 for cc_temp in $compiler""; do
13361 case $cc_temp in
13362 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13363 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13364 \-*) ;;
13365 *) break;;
13366 esac
13367 done
13368 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13369
13370
13371 if test -n "$compiler"; then
13372 # We don't want -fno-exception when compiling C++ code, so set the
13373 # no_builtin_flag separately
13374 if test "$GXX" = yes; then
13375 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13376 else
13377 lt_prog_compiler_no_builtin_flag_CXX=
13378 fi
13379
13380 if test "$GXX" = yes; then
13381 # Set up default GNU C++ configuration
13382
13383
13384
13385 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13386 if test "${with_gnu_ld+set}" = set; then
13387 withval="$with_gnu_ld"
13388 test "$withval" = no || with_gnu_ld=yes
13389 else
13390 with_gnu_ld=no
13391 fi;
13392 ac_prog=ld
13393 if test "$GCC" = yes; then
13394 # Check if gcc -print-prog-name=ld gives a path.
13395 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13396 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13397 case $host in
13398 *-*-mingw*)
13399 # gcc leaves a trailing carriage return which upsets mingw
13400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13401 *)
13402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13403 esac
13404 case $ac_prog in
13405 # Accept absolute paths.
13406 [\\/]* | ?:[\\/]*)
13407 re_direlt='/[^/][^/]*/\.\./'
13408 # Canonicalize the pathname of ld
13409 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13410 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13411 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13412 done
13413 test -z "$LD" && LD="$ac_prog"
13414 ;;
13415 "")
13416 # If it fails, then pretend we aren't using GCC.
13417 ac_prog=ld
13418 ;;
13419 *)
13420 # If it is relative, then search for the first ld in PATH.
13421 with_gnu_ld=unknown
13422 ;;
13423 esac
13424 elif test "$with_gnu_ld" = yes; then
13425 echo "$as_me:$LINENO: checking for GNU ld" >&5
13426 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13427 else
13428 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13429 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13430 fi
13431 if test "${lt_cv_path_LD+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434 if test -z "$LD"; then
13435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13436 for ac_dir in $PATH; do
13437 IFS="$lt_save_ifs"
13438 test -z "$ac_dir" && ac_dir=.
13439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13440 lt_cv_path_LD="$ac_dir/$ac_prog"
13441 # Check to see if the program is GNU ld. I'd rather use --version,
13442 # but apparently some variants of GNU ld only accept -v.
13443 # Break only if it was the GNU/non-GNU ld that we prefer.
13444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13445 *GNU* | *'with BFD'*)
13446 test "$with_gnu_ld" != no && break
13447 ;;
13448 *)
13449 test "$with_gnu_ld" != yes && break
13450 ;;
13451 esac
13452 fi
13453 done
13454 IFS="$lt_save_ifs"
13455 else
13456 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13457 fi
13458 fi
13459
13460 LD="$lt_cv_path_LD"
13461 if test -n "$LD"; then
13462 echo "$as_me:$LINENO: result: $LD" >&5
13463 echo "${ECHO_T}$LD" >&6
13464 else
13465 echo "$as_me:$LINENO: result: no" >&5
13466 echo "${ECHO_T}no" >&6
13467 fi
13468 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13469 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13470 { (exit 1); exit 1; }; }
13471 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13472 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13473 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13477 case `$LD -v 2>&1 </dev/null` in
13478 *GNU* | *'with BFD'*)
13479 lt_cv_prog_gnu_ld=yes
13480 ;;
13481 *)
13482 lt_cv_prog_gnu_ld=no
13483 ;;
13484 esac
13485 fi
13486 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13487 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13488 with_gnu_ld=$lt_cv_prog_gnu_ld
13489
13490
13491
13492
13493
13494
13495
13496 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13497 # archiving commands below assume that GNU ld is being used.
13498 if test "$with_gnu_ld" = yes; then
13499 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13500 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'
13501
13502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13503 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13504
13505 # If archive_cmds runs LD, not CC, wlarc should be empty
13506 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13507 # investigate it a little bit more. (MM)
13508 wlarc='${wl}'
13509
13510 # ancient GNU ld didn't support --whole-archive et. al.
13511 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13512 $GREP 'no-whole-archive' > /dev/null; then
13513 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13514 else
13515 whole_archive_flag_spec_CXX=
13516 fi
13517 else
13518 with_gnu_ld=no
13519 wlarc=
13520
13521 # A generic and very simple default shared library creation
13522 # command for GNU C++ for the case where it uses the native
13523 # linker, instead of GNU ld. If possible, this setting should
13524 # overridden to take advantage of the native linker features on
13525 # the platform it is being used on.
13526 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13527 fi
13528
13529 # Commands to make compiler produce verbose output that lists
13530 # what "hidden" libraries, object files and flags are used when
13531 # linking a shared library.
13532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13533
13534 else
13535 GXX=no
13536 with_gnu_ld=no
13537 wlarc=
13538 fi
13539
13540 # PORTME: fill in a description of your system's C++ link characteristics
13541 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13542 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13543 ld_shlibs_CXX=yes
13544 case $host_os in
13545 aix3*)
13546 # FIXME: insert proper C++ library support
13547 ld_shlibs_CXX=no
13548 ;;
13549 aix4* | aix5*)
13550 if test "$host_cpu" = ia64; then
13551 # On IA64, the linker does run time linking by default, so we don't
13552 # have to do anything special.
13553 aix_use_runtimelinking=no
13554 exp_sym_flag='-Bexport'
13555 no_entry_flag=""
13556 else
13557 aix_use_runtimelinking=no
13558
13559 # Test if we are trying to use run time linking or normal
13560 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13561 # need to do runtime linking.
13562 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13563 for ld_flag in $LDFLAGS; do
13564 case $ld_flag in
13565 *-brtl*)
13566 aix_use_runtimelinking=yes
13567 break
13568 ;;
13569 esac
13570 done
13571 ;;
13572 esac
13573
13574 exp_sym_flag='-bexport'
13575 no_entry_flag='-bnoentry'
13576 fi
13577
13578 # When large executables or shared objects are built, AIX ld can
13579 # have problems creating the table of contents. If linking a library
13580 # or program results in "error TOC overflow" add -mminimal-toc to
13581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13583
13584 archive_cmds_CXX=''
13585 hardcode_direct_CXX=yes
13586 hardcode_direct_absolute_CXX=yes
13587 hardcode_libdir_separator_CXX=':'
13588 link_all_deplibs_CXX=yes
13589 file_list_spec_CXX='${wl}-f,'
13590
13591 if test "$GXX" = yes; then
13592 case $host_os in aix4.[012]|aix4.[012].*)
13593 # We only want to do this on AIX 4.2 and lower, the check
13594 # below for broken collect2 doesn't work under 4.3+
13595 collect2name=`${CC} -print-prog-name=collect2`
13596 if test -f "$collect2name" &&
13597 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13598 then
13599 # We have reworked collect2
13600 :
13601 else
13602 # We have old collect2
13603 hardcode_direct_CXX=unsupported
13604 # It fails to find uninstalled libraries when the uninstalled
13605 # path is not listed in the libpath. Setting hardcode_minus_L
13606 # to unsupported forces relinking
13607 hardcode_minus_L_CXX=yes
13608 hardcode_libdir_flag_spec_CXX='-L$libdir'
13609 hardcode_libdir_separator_CXX=
13610 fi
13611 esac
13612 shared_flag='-shared'
13613 if test "$aix_use_runtimelinking" = yes; then
13614 shared_flag="$shared_flag "'${wl}-G'
13615 fi
13616 else
13617 # not using gcc
13618 if test "$host_cpu" = ia64; then
13619 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13620 # chokes on -Wl,-G. The following line is correct:
13621 shared_flag='-G'
13622 else
13623 if test "$aix_use_runtimelinking" = yes; then
13624 shared_flag='${wl}-G'
13625 else
13626 shared_flag='${wl}-bM:SRE'
13627 fi
13628 fi
13629 fi
13630
13631 # It seems that -bexpall does not export symbols beginning with
13632 # underscore (_), so it is better to generate a list of symbols to
13633 # export.
13634 always_export_symbols_CXX=yes
13635 if test "$aix_use_runtimelinking" = yes; then
13636 # Warning - without using the other runtime loading flags (-brtl),
13637 # -berok will link without error, but may produce a broken library.
13638 allow_undefined_flag_CXX='-berok'
13639 # Determine the default libpath from the value encoded in an empty
13640 # executable.
13641 if test x$gcc_no_link = xyes; then
13642 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13643 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13644 { (exit 1); exit 1; }; }
13645 fi
13646 cat >conftest.$ac_ext <<_ACEOF
13647 /* confdefs.h. */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652
13653 int
13654 main ()
13655 {
13656
13657 ;
13658 return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13663 (eval $ac_link) 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -z "$ac_cxx_werror_flag"
13671 || test ! -s conftest.err'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest$ac_exeext'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683
13684 lt_aix_libpath_sed='
13685 /Import File Strings/,/^$/ {
13686 /^0/ {
13687 s/^0 *\(.*\)$/\1/
13688 p
13689 }
13690 }'
13691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13692 # Check for a 64-bit object if we didn't find anything.
13693 if test -z "$aix_libpath"; then
13694 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13695 fi
13696 else
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13699
13700 fi
13701 rm -f conftest.err conftest.$ac_objext \
13702 conftest$ac_exeext conftest.$ac_ext
13703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13704
13705 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13706
13707 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13708 else
13709 if test "$host_cpu" = ia64; then
13710 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13711 allow_undefined_flag_CXX="-z nodefs"
13712 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13713 else
13714 # Determine the default libpath from the value encoded in an
13715 # empty executable.
13716 if test x$gcc_no_link = xyes; then
13717 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13718 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13719 { (exit 1); exit 1; }; }
13720 fi
13721 cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h. */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727
13728 int
13729 main ()
13730 {
13731
13732 ;
13733 return 0;
13734 }
13735 _ACEOF
13736 rm -f conftest.$ac_objext conftest$ac_exeext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13738 (eval $ac_link) 2>conftest.er1
13739 ac_status=$?
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } &&
13745 { ac_try='test -z "$ac_cxx_werror_flag"
13746 || test ! -s conftest.err'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest$ac_exeext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758
13759 lt_aix_libpath_sed='
13760 /Import File Strings/,/^$/ {
13761 /^0/ {
13762 s/^0 *\(.*\)$/\1/
13763 p
13764 }
13765 }'
13766 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13767 # Check for a 64-bit object if we didn't find anything.
13768 if test -z "$aix_libpath"; then
13769 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13770 fi
13771 else
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13774
13775 fi
13776 rm -f conftest.err conftest.$ac_objext \
13777 conftest$ac_exeext conftest.$ac_ext
13778 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13779
13780 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13781 # Warning - without using the other run time loading flags,
13782 # -berok will link without error, but may produce a broken library.
13783 no_undefined_flag_CXX=' ${wl}-bernotok'
13784 allow_undefined_flag_CXX=' ${wl}-berok'
13785 # Exported symbols can be pulled into shared objects from archives
13786 whole_archive_flag_spec_CXX='$convenience'
13787 archive_cmds_need_lc_CXX=yes
13788 # This is similar to how AIX traditionally builds its shared
13789 # libraries.
13790 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13791 fi
13792 fi
13793 ;;
13794
13795 beos*)
13796 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13797 allow_undefined_flag_CXX=unsupported
13798 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13799 # support --undefined. This deserves some investigation. FIXME
13800 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13801 else
13802 ld_shlibs_CXX=no
13803 fi
13804 ;;
13805
13806 chorus*)
13807 case $cc_basename in
13808 *)
13809 # FIXME: insert proper C++ library support
13810 ld_shlibs_CXX=no
13811 ;;
13812 esac
13813 ;;
13814
13815 cygwin* | mingw* | pw32*)
13816 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13817 # as there is no search path for DLLs.
13818 hardcode_libdir_flag_spec_CXX='-L$libdir'
13819 allow_undefined_flag_CXX=unsupported
13820 always_export_symbols_CXX=no
13821 enable_shared_with_static_runtimes_CXX=yes
13822
13823 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13824 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13825 # If the export-symbols file already is a .def file (1st line
13826 # is EXPORTS), use it as is; otherwise, prepend...
13827 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13828 cp $export_symbols $output_objdir/$soname.def;
13829 else
13830 echo EXPORTS > $output_objdir/$soname.def;
13831 cat $export_symbols >> $output_objdir/$soname.def;
13832 fi~
13833 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13834 else
13835 ld_shlibs_CXX=no
13836 fi
13837 ;;
13838 darwin* | rhapsody*)
13839 case $host_os in
13840 rhapsody* | darwin1.[012])
13841 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13842 ;;
13843 *) # Darwin 1.3 on
13844 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
13845 10.[012])
13846 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13847 ;;
13848 10.*)
13849 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13850 ;;
13851 esac
13852 ;;
13853 esac
13854 archive_cmds_need_lc_CXX=no
13855 hardcode_direct_CXX=no
13856 hardcode_automatic_CXX=yes
13857 hardcode_shlibpath_var_CXX=unsupported
13858 whole_archive_flag_spec_CXX=''
13859 link_all_deplibs_CXX=yes
13860
13861 if test "$GXX" = yes ; then
13862 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865 lt_cv_apple_cc_single_mod=no
13866 if test -z "${LT_MULTI_MODULE}"; then
13867 # By default we will add the -single_module flag. You can override
13868 # by either setting the environment variable LT_MULTI_MODULE
13869 # non-empty at configure time, or by adding -multi-module to the
13870 # link flags.
13871 echo "int foo(void){return 1;}" > conftest.c
13872 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13873 -dynamiclib ${wl}-single_module conftest.c
13874 if test -f libconftest.dylib; then
13875 lt_cv_apple_cc_single_mod=yes
13876 rm libconftest.dylib
13877 fi
13878 rm conftest.$ac_ext
13879 fi
13880 fi
13881
13882 output_verbose_link_cmd=echo
13883 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
13884 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13885 archive_expsym_cmds_CXX='sed "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}'
13886 else
13887 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'
13888 archive_expsym_cmds_CXX='sed "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}'
13889 fi
13890 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13891 module_expsym_cmds_CXX='sed "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}'
13892 else
13893 case $cc_basename in
13894 xlc*)
13895 output_verbose_link_cmd=echo
13896 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'
13897 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13898 # Don't fix this by using the ld -exported_symbols_list flag,
13899 # it doesn't exist in older darwin lds
13900 archive_expsym_cmds_CXX='sed "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}'
13901 module_expsym_cmds_CXX='sed "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}'
13902 ;;
13903 *)
13904 ld_shlibs_CXX=no
13905 ;;
13906 esac
13907 fi
13908 ;;
13909
13910 dgux*)
13911 case $cc_basename in
13912 ec++*)
13913 # FIXME: insert proper C++ library support
13914 ld_shlibs_CXX=no
13915 ;;
13916 ghcx*)
13917 # Green Hills C++ Compiler
13918 # FIXME: insert proper C++ library support
13919 ld_shlibs_CXX=no
13920 ;;
13921 *)
13922 # FIXME: insert proper C++ library support
13923 ld_shlibs_CXX=no
13924 ;;
13925 esac
13926 ;;
13927
13928 freebsd[12]*)
13929 # C++ shared libraries reported to be fairly broken before
13930 # switch to ELF
13931 ld_shlibs_CXX=no
13932 ;;
13933
13934 freebsd-elf*)
13935 archive_cmds_need_lc_CXX=no
13936 ;;
13937
13938 freebsd* | dragonfly*)
13939 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13940 # conventions
13941 ld_shlibs_CXX=yes
13942 ;;
13943
13944 gnu*)
13945 ;;
13946
13947 hpux9*)
13948 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13949 hardcode_libdir_separator_CXX=:
13950 export_dynamic_flag_spec_CXX='${wl}-E'
13951 hardcode_direct_CXX=yes
13952 hardcode_minus_L_CXX=yes # Not in the search PATH,
13953 # but as the default
13954 # location of the library.
13955
13956 case $cc_basename in
13957 CC*)
13958 # FIXME: insert proper C++ library support
13959 ld_shlibs_CXX=no
13960 ;;
13961 aCC*)
13962 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'
13963 # Commands to make compiler produce verbose output that lists
13964 # what "hidden" libraries, object files and flags are used when
13965 # linking a shared library.
13966 #
13967 # There doesn't appear to be a way to prevent this compiler from
13968 # explicitly linking system object files so we need to strip them
13969 # from the output so that they don't get included in the library
13970 # dependencies.
13971 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13972 ;;
13973 *)
13974 if test "$GXX" = yes; then
13975 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'
13976 else
13977 # FIXME: insert proper C++ library support
13978 ld_shlibs_CXX=no
13979 fi
13980 ;;
13981 esac
13982 ;;
13983
13984 hpux10*|hpux11*)
13985 if test $with_gnu_ld = no; then
13986 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13987 hardcode_libdir_separator_CXX=:
13988
13989 case $host_cpu in
13990 hppa*64*|ia64*)
13991 ;;
13992 *)
13993 export_dynamic_flag_spec_CXX='${wl}-E'
13994 ;;
13995 esac
13996 fi
13997 case $host_cpu in
13998 hppa*64*|ia64*)
13999 hardcode_direct_CXX=no
14000 hardcode_shlibpath_var_CXX=no
14001 ;;
14002 *)
14003 hardcode_direct_CXX=yes
14004 hardcode_direct_absolute_CXX=yes
14005 hardcode_minus_L_CXX=yes # Not in the search PATH,
14006 # but as the default
14007 # location of the library.
14008 ;;
14009 esac
14010
14011 case $cc_basename in
14012 CC*)
14013 # FIXME: insert proper C++ library support
14014 ld_shlibs_CXX=no
14015 ;;
14016 aCC*)
14017 case $host_cpu in
14018 hppa*64*)
14019 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14020 ;;
14021 ia64*)
14022 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14023 ;;
14024 *)
14025 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14026 ;;
14027 esac
14028 # Commands to make compiler produce verbose output that lists
14029 # what "hidden" libraries, object files and flags are used when
14030 # linking a shared library.
14031 #
14032 # There doesn't appear to be a way to prevent this compiler from
14033 # explicitly linking system object files so we need to strip them
14034 # from the output so that they don't get included in the library
14035 # dependencies.
14036 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 "X$list" | $Xsed'
14037 ;;
14038 *)
14039 if test "$GXX" = yes; then
14040 if test $with_gnu_ld = no; then
14041 case $host_cpu in
14042 hppa*64*)
14043 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14044 ;;
14045 ia64*)
14046 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14047 ;;
14048 *)
14049 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'
14050 ;;
14051 esac
14052 fi
14053 else
14054 # FIXME: insert proper C++ library support
14055 ld_shlibs_CXX=no
14056 fi
14057 ;;
14058 esac
14059 ;;
14060
14061 interix[3-9]*)
14062 hardcode_direct_CXX=no
14063 hardcode_shlibpath_var_CXX=no
14064 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14065 export_dynamic_flag_spec_CXX='${wl}-E'
14066 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14067 # Instead, shared libraries are loaded at an image base (0x10000000 by
14068 # default) and relocated if they conflict, which is a slow very memory
14069 # consuming and fragmenting process. To avoid this, we pick a random,
14070 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14071 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14072 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14073 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14074 ;;
14075 irix5* | irix6*)
14076 case $cc_basename in
14077 CC*)
14078 # SGI C++
14079 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14080
14081 # Archives containing C++ object files must be created using
14082 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14083 # necessary to make sure instantiated templates are included
14084 # in the archive.
14085 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14086 ;;
14087 *)
14088 if test "$GXX" = yes; then
14089 if test "$with_gnu_ld" = no; then
14090 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14091 else
14092 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14093 fi
14094 fi
14095 link_all_deplibs_CXX=yes
14096 ;;
14097 esac
14098 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14099 hardcode_libdir_separator_CXX=:
14100 inherit_rpath_CXX=yes
14101 ;;
14102
14103 linux* | k*bsd*-gnu)
14104 case $cc_basename in
14105 KCC*)
14106 # Kuck and Associates, Inc. (KAI) C++ Compiler
14107
14108 # KCC will only create a shared library if the output file
14109 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14110 # to its proper name (with version) after linking.
14111 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'
14112 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'
14113 # Commands to make compiler produce verbose output that lists
14114 # what "hidden" libraries, object files and flags are used when
14115 # linking a shared library.
14116 #
14117 # There doesn't appear to be a way to prevent this compiler from
14118 # explicitly linking system object files so we need to strip them
14119 # from the output so that they don't get included in the library
14120 # dependencies.
14121 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 "X$list" | $Xsed'
14122
14123 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14124 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14125
14126 # Archives containing C++ object files must be created using
14127 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14128 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14129 ;;
14130 icpc* | ecpc* )
14131 # Intel C++
14132 with_gnu_ld=yes
14133 # version 8.0 and above of icpc choke on multiply defined symbols
14134 # if we add $predep_objects and $postdep_objects, however 7.1 and
14135 # earlier do not add the objects themselves.
14136 case `$CC -V 2>&1` in
14137 *"Version 7."*)
14138 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14139 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'
14140 ;;
14141 *) # Version 8.0 or newer
14142 tmp_idyn=
14143 case $host_cpu in
14144 ia64*) tmp_idyn=' -i_dynamic';;
14145 esac
14146 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14147 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'
14148 ;;
14149 esac
14150 archive_cmds_need_lc_CXX=no
14151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14152 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14153 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14154 ;;
14155 pgCC*)
14156 # Portland Group C++ compiler
14157 case `$CC -V` in
14158 *pgCC\ [1-5]*)
14159 prelink_cmds_CXX='tpldir=Template.dir~
14160 rm -rf $tpldir~
14161 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14162 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14163 old_archive_cmds_CXX='tpldir=Template.dir~
14164 rm -rf $tpldir~
14165 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14166 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14167 $RANLIB $oldlib'
14168 archive_cmds_CXX='tpldir=Template.dir~
14169 rm -rf $tpldir~
14170 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14171 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14172 archive_expsym_cmds_CXX='tpldir=Template.dir~
14173 rm -rf $tpldir~
14174 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14175 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14176 ;;
14177 *) # Version 6 will use weak symbols
14178 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14179 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'
14180 ;;
14181 esac
14182
14183 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14184 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14185 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'
14186 ;;
14187 cxx*)
14188 # Compaq C++
14189 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14190 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'
14191
14192 runpath_var=LD_RUN_PATH
14193 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14194 hardcode_libdir_separator_CXX=:
14195
14196 # Commands to make compiler produce verbose output that lists
14197 # what "hidden" libraries, object files and flags are used when
14198 # linking a shared library.
14199 #
14200 # There doesn't appear to be a way to prevent this compiler from
14201 # explicitly linking system object files so we need to strip them
14202 # from the output so that they don't get included in the library
14203 # dependencies.
14204 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
14205 ;;
14206 *)
14207 case `$CC -V 2>&1 | sed 5q` in
14208 *Sun\ C*)
14209 # Sun C++ 5.9
14210 no_undefined_flag_CXX=' -zdefs'
14211 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14212 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14213 hardcode_libdir_flag_spec_CXX='-R$libdir'
14214 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14215 compiler_needs_object_CXX=yes
14216
14217 # Not sure whether something based on
14218 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14219 # would be better.
14220 output_verbose_link_cmd='echo'
14221
14222 # Archives containing C++ object files must be created using
14223 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14224 # necessary to make sure instantiated templates are included
14225 # in the archive.
14226 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14227 ;;
14228 esac
14229 ;;
14230 esac
14231 ;;
14232
14233 lynxos*)
14234 # FIXME: insert proper C++ library support
14235 ld_shlibs_CXX=no
14236 ;;
14237
14238 m88k*)
14239 # FIXME: insert proper C++ library support
14240 ld_shlibs_CXX=no
14241 ;;
14242
14243 mvs*)
14244 case $cc_basename in
14245 cxx*)
14246 # FIXME: insert proper C++ library support
14247 ld_shlibs_CXX=no
14248 ;;
14249 *)
14250 # FIXME: insert proper C++ library support
14251 ld_shlibs_CXX=no
14252 ;;
14253 esac
14254 ;;
14255
14256 netbsd*)
14257 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14258 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14259 wlarc=
14260 hardcode_libdir_flag_spec_CXX='-R$libdir'
14261 hardcode_direct_CXX=yes
14262 hardcode_shlibpath_var_CXX=no
14263 fi
14264 # Workaround some broken pre-1.5 toolchains
14265 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14266 ;;
14267
14268 *nto* | *qnx*)
14269 ld_shlibs_CXX=yes
14270 ;;
14271
14272 openbsd2*)
14273 # C++ shared libraries are fairly broken
14274 ld_shlibs_CXX=no
14275 ;;
14276
14277 openbsd*)
14278 hardcode_direct_CXX=yes
14279 hardcode_shlibpath_var_CXX=no
14280 hardcode_direct_absolute_CXX=yes
14281 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14282 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14283 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14284 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14285 export_dynamic_flag_spec_CXX='${wl}-E'
14286 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14287 fi
14288 output_verbose_link_cmd=echo
14289 ;;
14290
14291 osf3* | osf4* | osf5*)
14292 case $cc_basename in
14293 KCC*)
14294 # Kuck and Associates, Inc. (KAI) C++ Compiler
14295
14296 # KCC will only create a shared library if the output file
14297 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14298 # to its proper name (with version) after linking.
14299 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'
14300
14301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14302 hardcode_libdir_separator_CXX=:
14303
14304 # Archives containing C++ object files must be created using
14305 # the KAI C++ compiler.
14306 case $host in
14307 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14308 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14309 esac
14310 ;;
14311 RCC*)
14312 # Rational C++ 2.4.1
14313 # FIXME: insert proper C++ library support
14314 ld_shlibs_CXX=no
14315 ;;
14316 cxx*)
14317 case $host in
14318 osf3*)
14319 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14320 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14321 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14322 ;;
14323 *)
14324 allow_undefined_flag_CXX=' -expect_unresolved \*'
14325 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14326 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14327 echo "-hidden">> $lib.exp~
14328 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14329 $RM $lib.exp'
14330 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14331 ;;
14332 esac
14333
14334 hardcode_libdir_separator_CXX=:
14335
14336 # Commands to make compiler produce verbose output that lists
14337 # what "hidden" libraries, object files and flags are used when
14338 # linking a shared library.
14339 #
14340 # There doesn't appear to be a way to prevent this compiler from
14341 # explicitly linking system object files so we need to strip them
14342 # from the output so that they don't get included in the library
14343 # dependencies.
14344 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
14345 ;;
14346 *)
14347 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14348 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14349 case $host in
14350 osf3*)
14351 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14352 ;;
14353 *)
14354 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14355 ;;
14356 esac
14357
14358 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14359 hardcode_libdir_separator_CXX=:
14360
14361 # Commands to make compiler produce verbose output that lists
14362 # what "hidden" libraries, object files and flags are used when
14363 # linking a shared library.
14364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14365
14366 else
14367 # FIXME: insert proper C++ library support
14368 ld_shlibs_CXX=no
14369 fi
14370 ;;
14371 esac
14372 ;;
14373
14374 psos*)
14375 # FIXME: insert proper C++ library support
14376 ld_shlibs_CXX=no
14377 ;;
14378
14379 sunos4*)
14380 case $cc_basename in
14381 CC*)
14382 # Sun C++ 4.x
14383 # FIXME: insert proper C++ library support
14384 ld_shlibs_CXX=no
14385 ;;
14386 lcc*)
14387 # Lucid
14388 # FIXME: insert proper C++ library support
14389 ld_shlibs_CXX=no
14390 ;;
14391 *)
14392 # FIXME: insert proper C++ library support
14393 ld_shlibs_CXX=no
14394 ;;
14395 esac
14396 ;;
14397
14398 solaris*)
14399 case $cc_basename in
14400 CC*)
14401 # Sun C++ 4.2, 5.x and Centerline C++
14402 archive_cmds_need_lc_CXX=yes
14403 no_undefined_flag_CXX=' -zdefs'
14404 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14405 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14406 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14407
14408 hardcode_libdir_flag_spec_CXX='-R$libdir'
14409 hardcode_shlibpath_var_CXX=no
14410 case $host_os in
14411 solaris2.[0-5] | solaris2.[0-5].*) ;;
14412 *)
14413 # The compiler driver will combine and reorder linker options,
14414 # but understands `-z linker_flag'.
14415 # Supported since Solaris 2.6 (maybe 2.5.1?)
14416 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14417 ;;
14418 esac
14419 link_all_deplibs_CXX=yes
14420
14421 output_verbose_link_cmd='echo'
14422
14423 # Archives containing C++ object files must be created using
14424 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14425 # necessary to make sure instantiated templates are included
14426 # in the archive.
14427 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14428 ;;
14429 gcx*)
14430 # Green Hills C++ Compiler
14431 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14432
14433 # The C++ compiler must be used to create the archive.
14434 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14435 ;;
14436 *)
14437 # GNU C++ compiler with Solaris linker
14438 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14439 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14440 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14441 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14442 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14443 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14444
14445 # Commands to make compiler produce verbose output that lists
14446 # what "hidden" libraries, object files and flags are used when
14447 # linking a shared library.
14448 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14449 else
14450 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14451 # platform.
14452 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14453 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14454 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14455
14456 # Commands to make compiler produce verbose output that lists
14457 # what "hidden" libraries, object files and flags are used when
14458 # linking a shared library.
14459 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14460 fi
14461
14462 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14463 case $host_os in
14464 solaris2.[0-5] | solaris2.[0-5].*) ;;
14465 *)
14466 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14467 ;;
14468 esac
14469 fi
14470 ;;
14471 esac
14472 ;;
14473
14474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14475 no_undefined_flag_CXX='${wl}-z,text'
14476 archive_cmds_need_lc_CXX=no
14477 hardcode_shlibpath_var_CXX=no
14478 runpath_var='LD_RUN_PATH'
14479
14480 case $cc_basename in
14481 CC*)
14482 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14483 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14484 ;;
14485 *)
14486 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14487 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14488 ;;
14489 esac
14490 ;;
14491
14492 sysv5* | sco3.2v5* | sco5v6*)
14493 # Note: We can NOT use -z defs as we might desire, because we do not
14494 # link with -lc, and that would cause any symbols used from libc to
14495 # always be unresolved, which means just about no library would
14496 # ever link correctly. If we're not using GNU ld we use -z text
14497 # though, which does catch some bad symbols but isn't as heavy-handed
14498 # as -z defs.
14499 no_undefined_flag_CXX='${wl}-z,text'
14500 allow_undefined_flag_CXX='${wl}-z,nodefs'
14501 archive_cmds_need_lc_CXX=no
14502 hardcode_shlibpath_var_CXX=no
14503 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14504 hardcode_libdir_separator_CXX=':'
14505 link_all_deplibs_CXX=yes
14506 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14507 runpath_var='LD_RUN_PATH'
14508
14509 case $cc_basename in
14510 CC*)
14511 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14512 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14513 ;;
14514 *)
14515 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14516 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14517 ;;
14518 esac
14519 ;;
14520
14521 tandem*)
14522 case $cc_basename in
14523 NCC*)
14524 # NonStop-UX NCC 3.20
14525 # FIXME: insert proper C++ library support
14526 ld_shlibs_CXX=no
14527 ;;
14528 *)
14529 # FIXME: insert proper C++ library support
14530 ld_shlibs_CXX=no
14531 ;;
14532 esac
14533 ;;
14534
14535 vxworks*)
14536 # FIXME: insert proper C++ library support
14537 ld_shlibs_CXX=no
14538 ;;
14539
14540 *)
14541 # FIXME: insert proper C++ library support
14542 ld_shlibs_CXX=no
14543 ;;
14544 esac
14545
14546 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14547 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14548 test "$ld_shlibs_CXX" = no && can_build_shared=no
14549
14550 GCC_CXX="$GXX"
14551 LD_CXX="$LD"
14552
14553 ## CAVEAT EMPTOR:
14554 ## There is no encapsulation within the following macros, do not change
14555 ## the running order or otherwise move them around unless you know exactly
14556 ## what you are doing...
14557 # Dependencies to place before and after the object being linked:
14558 predep_objects_CXX=
14559 postdep_objects_CXX=
14560 predeps_CXX=
14561 postdeps_CXX=
14562 compiler_lib_search_path_CXX=
14563
14564 cat > conftest.$ac_ext <<_LT_EOF
14565 class Foo
14566 {
14567 public:
14568 Foo (void) { a = 0; }
14569 private:
14570 int a;
14571 };
14572 _LT_EOF
14573
14574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14575 (eval $ac_compile) 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; then
14579 # Parse the compiler output and extract the necessary
14580 # objects, libraries and library flags.
14581
14582 # Sentinel used to keep track of whether or not we are before
14583 # the conftest object file.
14584 pre_test_object_deps_done=no
14585
14586 # The `*' in the case matches for architectures that use `case' in
14587 # $output_verbose_cmd can trigger glob expansion during the loop
14588 # eval without this substitution.
14589 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14590
14591 for p in `eval $output_verbose_link_cmd`; do
14592 case $p in
14593
14594 -L* | -R* | -l*)
14595 # Some compilers place space between "-{L,R}" and the path.
14596 # Remove the space.
14597 if test $p = "-L" ||
14598 test $p = "-R"; then
14599 prev=$p
14600 continue
14601 else
14602 prev=
14603 fi
14604
14605 if test "$pre_test_object_deps_done" = no; then
14606 case $p in
14607 -L* | -R*)
14608 # Internal compiler library paths should come after those
14609 # provided the user. The postdeps already come after the
14610 # user supplied libs so there is no need to process them.
14611 if test -z "$compiler_lib_search_path_CXX"; then
14612 compiler_lib_search_path_CXX="${prev}${p}"
14613 else
14614 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14615 fi
14616 ;;
14617 # The "-l" case would never come before the object being
14618 # linked, so don't bother handling this case.
14619 esac
14620 else
14621 if test -z "$postdeps_CXX"; then
14622 postdeps_CXX="${prev}${p}"
14623 else
14624 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14625 fi
14626 fi
14627 ;;
14628
14629 *.$objext)
14630 # This assumes that the test object file only shows up
14631 # once in the compiler output.
14632 if test "$p" = "conftest.$objext"; then
14633 pre_test_object_deps_done=yes
14634 continue
14635 fi
14636
14637 if test "$pre_test_object_deps_done" = no; then
14638 if test -z "$predep_objects_CXX"; then
14639 predep_objects_CXX="$p"
14640 else
14641 predep_objects_CXX="$predep_objects_CXX $p"
14642 fi
14643 else
14644 if test -z "$postdep_objects_CXX"; then
14645 postdep_objects_CXX="$p"
14646 else
14647 postdep_objects_CXX="$postdep_objects_CXX $p"
14648 fi
14649 fi
14650 ;;
14651
14652 *) ;; # Ignore the rest.
14653
14654 esac
14655 done
14656
14657 # Clean up.
14658 rm -f a.out a.exe
14659 else
14660 echo "libtool.m4: error: problem compiling CXX test program"
14661 fi
14662
14663 $RM -f confest.$objext
14664
14665 # PORTME: override above test on systems where it is broken
14666 case $host_os in
14667 interix[3-9]*)
14668 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14669 # hack all around it, let's just trust "g++" to DTRT.
14670 predep_objects_CXX=
14671 postdep_objects_CXX=
14672 postdeps_CXX=
14673 ;;
14674
14675 linux*)
14676 case `$CC -V 2>&1 | sed 5q` in
14677 *Sun\ C*)
14678 # Sun C++ 5.9
14679
14680 # The more standards-conforming stlport4 library is
14681 # incompatible with the Cstd library. Avoid specifying
14682 # it if it's in CXXFLAGS. Ignore libCrun as
14683 # -library=stlport4 depends on it.
14684 case " $CXX $CXXFLAGS " in
14685 *" -library=stlport4 "*)
14686 solaris_use_stlport4=yes
14687 ;;
14688 esac
14689
14690 if test "$solaris_use_stlport4" != yes; then
14691 postdeps_CXX='-library=Cstd -library=Crun'
14692 fi
14693 ;;
14694 esac
14695 ;;
14696
14697 solaris*)
14698 case $cc_basename in
14699 CC*)
14700 # The more standards-conforming stlport4 library is
14701 # incompatible with the Cstd library. Avoid specifying
14702 # it if it's in CXXFLAGS. Ignore libCrun as
14703 # -library=stlport4 depends on it.
14704 case " $CXX $CXXFLAGS " in
14705 *" -library=stlport4 "*)
14706 solaris_use_stlport4=yes
14707 ;;
14708 esac
14709
14710 # Adding this requires a known-good setup of shared libraries for
14711 # Sun compiler versions before 5.6, else PIC objects from an old
14712 # archive will be linked into the output, leading to subtle bugs.
14713 if test "$solaris_use_stlport4" != yes; then
14714 postdeps_CXX='-library=Cstd -library=Crun'
14715 fi
14716 ;;
14717 esac
14718 ;;
14719 esac
14720
14721
14722 case " $postdeps_CXX " in
14723 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14724 esac
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751 lt_prog_compiler_wl_CXX=
14752 lt_prog_compiler_pic_CXX=
14753 lt_prog_compiler_static_CXX=
14754
14755 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14756 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14757
14758 # C++ specific cases for pic, static, wl, etc.
14759 if test "$GXX" = yes; then
14760 lt_prog_compiler_wl_CXX='-Wl,'
14761 lt_prog_compiler_static_CXX='-static'
14762
14763 case $host_os in
14764 aix*)
14765 # All AIX code is PIC.
14766 if test "$host_cpu" = ia64; then
14767 # AIX 5 now supports IA64 processor
14768 lt_prog_compiler_static_CXX='-Bstatic'
14769 fi
14770 ;;
14771 amigaos*)
14772 if test "$host_cpu" = m68k; then
14773 # FIXME: we need at least 68020 code to build shared libraries, but
14774 # adding the `-m68020' flag to GCC prevents building anything better,
14775 # like `-m68040'.
14776 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14777 fi
14778 ;;
14779 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14780 # PIC is the default for these OSes.
14781 ;;
14782 mingw* | cygwin* | os2* | pw32*)
14783 # This hack is so that the source file can tell whether it is being
14784 # built for inclusion in a dll (and should export symbols for example).
14785 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14786 # (--disable-auto-import) libraries
14787 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14788 ;;
14789 darwin* | rhapsody*)
14790 # PIC is the default on this platform
14791 # Common symbols not allowed in MH_DYLIB files
14792 lt_prog_compiler_pic_CXX='-fno-common'
14793 ;;
14794 *djgpp*)
14795 # DJGPP does not support shared libraries at all
14796 lt_prog_compiler_pic_CXX=
14797 ;;
14798 interix[3-9]*)
14799 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14800 # Instead, we relocate shared libraries at runtime.
14801 ;;
14802 sysv4*MP*)
14803 if test -d /usr/nec; then
14804 lt_prog_compiler_pic_CXX=-Kconform_pic
14805 fi
14806 ;;
14807 hpux*)
14808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14809 # not for PA HP-UX.
14810 case $host_cpu in
14811 hppa*64*|ia64*)
14812 ;;
14813 *)
14814 lt_prog_compiler_pic_CXX='-fPIC'
14815 ;;
14816 esac
14817 ;;
14818 *qnx* | *nto*)
14819 # QNX uses GNU C++, but need to define -shared option too, otherwise
14820 # it will coredump.
14821 lt_prog_compiler_pic_CXX='-fPIC -shared'
14822 ;;
14823 *)
14824 lt_prog_compiler_pic_CXX='-fPIC'
14825 ;;
14826 esac
14827 else
14828 case $host_os in
14829 aix4* | aix5*)
14830 # All AIX code is PIC.
14831 if test "$host_cpu" = ia64; then
14832 # AIX 5 now supports IA64 processor
14833 lt_prog_compiler_static_CXX='-Bstatic'
14834 else
14835 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14836 fi
14837 ;;
14838 chorus*)
14839 case $cc_basename in
14840 cxch68*)
14841 # Green Hills C++ Compiler
14842 # _LT_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"
14843 ;;
14844 esac
14845 ;;
14846 darwin*)
14847 # PIC is the default on this platform
14848 # Common symbols not allowed in MH_DYLIB files
14849 case $cc_basename in
14850 xlc*)
14851 lt_prog_compiler_pic_CXX='-qnocommon'
14852 lt_prog_compiler_wl_CXX='-Wl,'
14853 ;;
14854 esac
14855 ;;
14856 dgux*)
14857 case $cc_basename in
14858 ec++*)
14859 lt_prog_compiler_pic_CXX='-KPIC'
14860 ;;
14861 ghcx*)
14862 # Green Hills C++ Compiler
14863 lt_prog_compiler_pic_CXX='-pic'
14864 ;;
14865 *)
14866 ;;
14867 esac
14868 ;;
14869 freebsd* | dragonfly*)
14870 # FreeBSD uses GNU C++
14871 ;;
14872 hpux9* | hpux10* | hpux11*)
14873 case $cc_basename in
14874 CC*)
14875 lt_prog_compiler_wl_CXX='-Wl,'
14876 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14877 if test "$host_cpu" != ia64; then
14878 lt_prog_compiler_pic_CXX='+Z'
14879 fi
14880 ;;
14881 aCC*)
14882 lt_prog_compiler_wl_CXX='-Wl,'
14883 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14884 case $host_cpu in
14885 hppa*64*|ia64*)
14886 # +Z the default
14887 ;;
14888 *)
14889 lt_prog_compiler_pic_CXX='+Z'
14890 ;;
14891 esac
14892 ;;
14893 *)
14894 ;;
14895 esac
14896 ;;
14897 interix*)
14898 # This is c89, which is MS Visual C++ (no shared libs)
14899 # Anyone wants to do a port?
14900 ;;
14901 irix5* | irix6* | nonstopux*)
14902 case $cc_basename in
14903 CC*)
14904 lt_prog_compiler_wl_CXX='-Wl,'
14905 lt_prog_compiler_static_CXX='-non_shared'
14906 # CC pic flag -KPIC is the default.
14907 ;;
14908 *)
14909 ;;
14910 esac
14911 ;;
14912 linux* | k*bsd*-gnu)
14913 case $cc_basename in
14914 KCC*)
14915 # KAI C++ Compiler
14916 lt_prog_compiler_wl_CXX='--backend -Wl,'
14917 lt_prog_compiler_pic_CXX='-fPIC'
14918 ;;
14919 icpc* | ecpc* )
14920 # Intel C++
14921 lt_prog_compiler_wl_CXX='-Wl,'
14922 lt_prog_compiler_pic_CXX='-KPIC'
14923 lt_prog_compiler_static_CXX='-static'
14924 ;;
14925 pgCC*)
14926 # Portland Group C++ compiler
14927 lt_prog_compiler_wl_CXX='-Wl,'
14928 lt_prog_compiler_pic_CXX='-fpic'
14929 lt_prog_compiler_static_CXX='-Bstatic'
14930 ;;
14931 cxx*)
14932 # Compaq C++
14933 # Make sure the PIC flag is empty. It appears that all Alpha
14934 # Linux and Compaq Tru64 Unix objects are PIC.
14935 lt_prog_compiler_pic_CXX=
14936 lt_prog_compiler_static_CXX='-non_shared'
14937 ;;
14938 *)
14939 case `$CC -V 2>&1 | sed 5q` in
14940 *Sun\ C*)
14941 # Sun C++ 5.9
14942 lt_prog_compiler_pic_CXX='-KPIC'
14943 lt_prog_compiler_static_CXX='-Bstatic'
14944 lt_prog_compiler_wl_CXX='-Qoption ld '
14945 ;;
14946 esac
14947 ;;
14948 esac
14949 ;;
14950 lynxos*)
14951 ;;
14952 m88k*)
14953 ;;
14954 mvs*)
14955 case $cc_basename in
14956 cxx*)
14957 lt_prog_compiler_pic_CXX='-W c,exportall'
14958 ;;
14959 *)
14960 ;;
14961 esac
14962 ;;
14963 netbsd*)
14964 ;;
14965 *qnx* | *nto*)
14966 # QNX uses GNU C++, but need to define -shared option too, otherwise
14967 # it will coredump.
14968 lt_prog_compiler_pic_CXX='-fPIC -shared'
14969 ;;
14970 osf3* | osf4* | osf5*)
14971 case $cc_basename in
14972 KCC*)
14973 lt_prog_compiler_wl_CXX='--backend -Wl,'
14974 ;;
14975 RCC*)
14976 # Rational C++ 2.4.1
14977 lt_prog_compiler_pic_CXX='-pic'
14978 ;;
14979 cxx*)
14980 # Digital/Compaq C++
14981 lt_prog_compiler_wl_CXX='-Wl,'
14982 # Make sure the PIC flag is empty. It appears that all Alpha
14983 # Linux and Compaq Tru64 Unix objects are PIC.
14984 lt_prog_compiler_pic_CXX=
14985 lt_prog_compiler_static_CXX='-non_shared'
14986 ;;
14987 *)
14988 ;;
14989 esac
14990 ;;
14991 psos*)
14992 ;;
14993 solaris*)
14994 case $cc_basename in
14995 CC*)
14996 # Sun C++ 4.2, 5.x and Centerline C++
14997 lt_prog_compiler_pic_CXX='-KPIC'
14998 lt_prog_compiler_static_CXX='-Bstatic'
14999 lt_prog_compiler_wl_CXX='-Qoption ld '
15000 ;;
15001 gcx*)
15002 # Green Hills C++ Compiler
15003 lt_prog_compiler_pic_CXX='-PIC'
15004 ;;
15005 *)
15006 ;;
15007 esac
15008 ;;
15009 sunos4*)
15010 case $cc_basename in
15011 CC*)
15012 # Sun C++ 4.x
15013 lt_prog_compiler_pic_CXX='-pic'
15014 lt_prog_compiler_static_CXX='-Bstatic'
15015 ;;
15016 lcc*)
15017 # Lucid
15018 lt_prog_compiler_pic_CXX='-pic'
15019 ;;
15020 *)
15021 ;;
15022 esac
15023 ;;
15024 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15025 case $cc_basename in
15026 CC*)
15027 lt_prog_compiler_wl_CXX='-Wl,'
15028 lt_prog_compiler_pic_CXX='-KPIC'
15029 lt_prog_compiler_static_CXX='-Bstatic'
15030 ;;
15031 esac
15032 ;;
15033 tandem*)
15034 case $cc_basename in
15035 NCC*)
15036 # NonStop-UX NCC 3.20
15037 lt_prog_compiler_pic_CXX='-KPIC'
15038 ;;
15039 *)
15040 ;;
15041 esac
15042 ;;
15043 vxworks*)
15044 ;;
15045 *)
15046 lt_prog_compiler_can_build_shared_CXX=no
15047 ;;
15048 esac
15049 fi
15050
15051 case $host_os in
15052 # For platforms which do not support PIC, -DPIC is meaningless:
15053 *djgpp*)
15054 lt_prog_compiler_pic_CXX=
15055 ;;
15056 *)
15057 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15058 ;;
15059 esac
15060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15061 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
15062
15063
15064
15065 #
15066 # Check to make sure the PIC flag actually works.
15067 #
15068 if test -n "$lt_prog_compiler_pic_CXX"; then
15069 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15070 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
15071 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074 lt_prog_compiler_pic_works_CXX=no
15075 ac_outfile=conftest.$ac_objext
15076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15077 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15078 # Insert the option either (1) after the last *FLAGS variable, or
15079 # (2) before a word containing "conftest.", or (3) at the end.
15080 # Note that $ac_compile itself does not contain backslashes and begins
15081 # with a dollar sign (not a hyphen), so the echo should work correctly.
15082 # The option is referenced via a variable to avoid confusing sed.
15083 lt_compile=`echo "$ac_compile" | $SED \
15084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15086 -e 's:$: $lt_compiler_flag:'`
15087 (eval echo "\"\$as_me:15087: $lt_compile\"" >&5)
15088 (eval "$lt_compile" 2>conftest.err)
15089 ac_status=$?
15090 cat conftest.err >&5
15091 echo "$as_me:15091: \$? = $ac_status" >&5
15092 if (exit $ac_status) && test -s "$ac_outfile"; then
15093 # The compiler can only warn and ignore the option if not recognized
15094 # So say no if there are warnings other than the usual output.
15095 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15097 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15098 lt_prog_compiler_pic_works_CXX=yes
15099 fi
15100 fi
15101 $RM conftest*
15102
15103 fi
15104 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
15105 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
15106
15107 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
15108 case $lt_prog_compiler_pic_CXX in
15109 "" | " "*) ;;
15110 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15111 esac
15112 else
15113 lt_prog_compiler_pic_CXX=
15114 lt_prog_compiler_can_build_shared_CXX=no
15115 fi
15116
15117 fi
15118
15119
15120
15121 #
15122 # Check to make sure the static flag actually works.
15123 #
15124 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15125 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15126 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15127 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130 lt_prog_compiler_static_works_CXX=no
15131 save_LDFLAGS="$LDFLAGS"
15132 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15133 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15135 # The linker can only warn and ignore the option if not recognized
15136 # So say no if there are warnings
15137 if test -s conftest.err; then
15138 # Append any errors to the config.log.
15139 cat conftest.err 1>&5
15140 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15142 if diff conftest.exp conftest.er2 >/dev/null; then
15143 lt_prog_compiler_static_works_CXX=yes
15144 fi
15145 else
15146 lt_prog_compiler_static_works_CXX=yes
15147 fi
15148 fi
15149 $RM conftest*
15150 LDFLAGS="$save_LDFLAGS"
15151
15152 fi
15153 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
15154 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
15155
15156 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
15157 :
15158 else
15159 lt_prog_compiler_static_CXX=
15160 fi
15161
15162
15163
15164
15165 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15166 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15167 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 else
15170 lt_cv_prog_compiler_c_o_CXX=no
15171 $RM -r conftest 2>/dev/null
15172 mkdir conftest
15173 cd conftest
15174 mkdir out
15175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15176
15177 lt_compiler_flag="-o out/conftest2.$ac_objext"
15178 # Insert the option either (1) after the last *FLAGS variable, or
15179 # (2) before a word containing "conftest.", or (3) at the end.
15180 # Note that $ac_compile itself does not contain backslashes and begins
15181 # with a dollar sign (not a hyphen), so the echo should work correctly.
15182 lt_compile=`echo "$ac_compile" | $SED \
15183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15185 -e 's:$: $lt_compiler_flag:'`
15186 (eval echo "\"\$as_me:15186: $lt_compile\"" >&5)
15187 (eval "$lt_compile" 2>out/conftest.err)
15188 ac_status=$?
15189 cat out/conftest.err >&5
15190 echo "$as_me:15190: \$? = $ac_status" >&5
15191 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15192 then
15193 # The compiler can only warn and ignore the option if not recognized
15194 # So say no if there are warnings
15195 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15196 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15197 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15198 lt_cv_prog_compiler_c_o_CXX=yes
15199 fi
15200 fi
15201 chmod u+w . 2>&5
15202 $RM conftest*
15203 # SGI C++ compiler will create directory out/ii_files/ for
15204 # template instantiation
15205 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15206 $RM out/* && rmdir out
15207 cd ..
15208 $RM -r conftest
15209 $RM conftest*
15210
15211 fi
15212 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15213 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15214
15215
15216
15217 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15218 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15219 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222 lt_cv_prog_compiler_c_o_CXX=no
15223 $RM -r conftest 2>/dev/null
15224 mkdir conftest
15225 cd conftest
15226 mkdir out
15227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15228
15229 lt_compiler_flag="-o out/conftest2.$ac_objext"
15230 # Insert the option either (1) after the last *FLAGS variable, or
15231 # (2) before a word containing "conftest.", or (3) at the end.
15232 # Note that $ac_compile itself does not contain backslashes and begins
15233 # with a dollar sign (not a hyphen), so the echo should work correctly.
15234 lt_compile=`echo "$ac_compile" | $SED \
15235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15237 -e 's:$: $lt_compiler_flag:'`
15238 (eval echo "\"\$as_me:15238: $lt_compile\"" >&5)
15239 (eval "$lt_compile" 2>out/conftest.err)
15240 ac_status=$?
15241 cat out/conftest.err >&5
15242 echo "$as_me:15242: \$? = $ac_status" >&5
15243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15244 then
15245 # The compiler can only warn and ignore the option if not recognized
15246 # So say no if there are warnings
15247 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15250 lt_cv_prog_compiler_c_o_CXX=yes
15251 fi
15252 fi
15253 chmod u+w . 2>&5
15254 $RM conftest*
15255 # SGI C++ compiler will create directory out/ii_files/ for
15256 # template instantiation
15257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15258 $RM out/* && rmdir out
15259 cd ..
15260 $RM -r conftest
15261 $RM conftest*
15262
15263 fi
15264 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15265 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15266
15267
15268
15269
15270 hard_links="nottested"
15271 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15272 # do not overwrite the value of need_locks provided by the user
15273 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15274 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15275 hard_links=yes
15276 $RM conftest*
15277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15278 touch conftest.a
15279 ln conftest.a conftest.b 2>&5 || hard_links=no
15280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15281 echo "$as_me:$LINENO: result: $hard_links" >&5
15282 echo "${ECHO_T}$hard_links" >&6
15283 if test "$hard_links" = no; then
15284 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15285 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15286 need_locks=warn
15287 fi
15288 else
15289 need_locks=no
15290 fi
15291
15292
15293
15294 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15295 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15296
15297 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15298 case $host_os in
15299 aix4* | aix5*)
15300 # If we're using GNU nm, then we don't want the "-C" option.
15301 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15302 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15303 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'
15304 else
15305 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'
15306 fi
15307 ;;
15308 pw32*)
15309 export_symbols_cmds_CXX="$ltdll_cmds"
15310 ;;
15311 cygwin* | mingw*)
15312 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'
15313 ;;
15314 *)
15315 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15316 ;;
15317 esac
15318
15319 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15320 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15321 test "$ld_shlibs_CXX" = no && can_build_shared=no
15322
15323 with_gnu_ld_CXX=$with_gnu_ld
15324
15325
15326
15327
15328
15329
15330 #
15331 # Do we need to explicitly link libc?
15332 #
15333 case "x$archive_cmds_need_lc_CXX" in
15334 x|xyes)
15335 # Assume -lc should be added
15336 archive_cmds_need_lc_CXX=yes
15337
15338 if test "$enable_shared" = yes && test "$GCC" = yes; then
15339 case $archive_cmds_CXX in
15340 *'~'*)
15341 # FIXME: we may have to deal with multi-command sequences.
15342 ;;
15343 '$CC '*)
15344 # Test whether the compiler implicitly links with -lc since on some
15345 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15346 # to ld, don't add -lc before -lgcc.
15347 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15348 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15349 $RM conftest*
15350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15351
15352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15353 (eval $ac_compile) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } 2>conftest.err; then
15357 soname=conftest
15358 lib=conftest
15359 libobjs=conftest.$ac_objext
15360 deplibs=
15361 wl=$lt_prog_compiler_wl_CXX
15362 pic_flag=$lt_prog_compiler_pic_CXX
15363 compiler_flags=-v
15364 linker_flags=-v
15365 verstring=
15366 output_objdir=.
15367 libname=conftest
15368 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15369 allow_undefined_flag_CXX=
15370 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15371 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }
15375 then
15376 archive_cmds_need_lc_CXX=no
15377 else
15378 archive_cmds_need_lc_CXX=yes
15379 fi
15380 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15381 else
15382 cat conftest.err 1>&5
15383 fi
15384 $RM conftest*
15385 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15386 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15387 ;;
15388 esac
15389 fi
15390 ;;
15391 esac
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15457 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15458 withGCC=$GXX
15459 library_names_spec=
15460 libname_spec='lib$name'
15461 soname_spec=
15462 shrext_cmds=".so"
15463 postinstall_cmds=
15464 postuninstall_cmds=
15465 finish_cmds=
15466 finish_eval=
15467 shlibpath_var=
15468 shlibpath_overrides_runpath=unknown
15469 version_type=none
15470 dynamic_linker="$host_os ld.so"
15471 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15472 need_lib_prefix=unknown
15473 hardcode_into_libs=no
15474
15475 # when you set need_version to no, make sure it does not cause -set_version
15476 # flags to be left without arguments
15477 need_version=unknown
15478
15479 case $host_os in
15480 aix3*)
15481 version_type=linux
15482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15483 shlibpath_var=LIBPATH
15484
15485 # AIX 3 has no versioning support, so we append a major version to the name.
15486 soname_spec='${libname}${release}${shared_ext}$major'
15487 ;;
15488
15489 aix4* | aix5*)
15490 version_type=linux
15491 need_lib_prefix=no
15492 need_version=no
15493 hardcode_into_libs=yes
15494 if test "$host_cpu" = ia64; then
15495 # AIX 5 supports IA64
15496 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 else
15499 # With GCC up to 2.95.x, collect2 would create an import file
15500 # for dependence libraries. The import file would start with
15501 # the line `#! .'. This would cause the generated library to
15502 # depend on `.', always an invalid library. This was fixed in
15503 # development snapshots of GCC prior to 3.0.
15504 case $host_os in
15505 aix4 | aix4.[01] | aix4.[01].*)
15506 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15507 echo ' yes '
15508 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15509 :
15510 else
15511 can_build_shared=no
15512 fi
15513 ;;
15514 esac
15515 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15516 # soname into executable. Probably we can add versioning support to
15517 # collect2, so additional links can be useful in future.
15518 if test "$aix_use_runtimelinking" = yes; then
15519 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15520 # instead of lib<name>.a to let people know that these are not
15521 # typical AIX shared libraries.
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523 else
15524 # We preserve .a as extension for shared libraries through AIX4.2
15525 # and later when we are not doing run time linking.
15526 library_names_spec='${libname}${release}.a $libname.a'
15527 soname_spec='${libname}${release}${shared_ext}$major'
15528 fi
15529 shlibpath_var=LIBPATH
15530 fi
15531 ;;
15532
15533 amigaos*)
15534 if test "$host_cpu" = m68k; then
15535 library_names_spec='$libname.ixlibrary $libname.a'
15536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15537 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'
15538 else
15539 dynamic_linker=no
15540 fi
15541 ;;
15542
15543 beos*)
15544 library_names_spec='${libname}${shared_ext}'
15545 dynamic_linker="$host_os ld.so"
15546 shlibpath_var=LIBRARY_PATH
15547 ;;
15548
15549 bsdi[45]*)
15550 version_type=linux
15551 need_version=no
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553 soname_spec='${libname}${release}${shared_ext}$major'
15554 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15555 shlibpath_var=LD_LIBRARY_PATH
15556 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15557 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15558 # the default ld.so.conf also contains /usr/contrib/lib and
15559 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15560 # libtool to hard-code these into programs
15561 ;;
15562
15563 cygwin* | mingw* | pw32*)
15564 version_type=windows
15565 shrext_cmds=".dll"
15566 need_version=no
15567 need_lib_prefix=no
15568
15569 case $withGCC,$host_os in
15570 yes,cygwin* | yes,mingw* | yes,pw32*)
15571 library_names_spec='$libname.dll.a'
15572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15573 postinstall_cmds='base_file=`basename \${file}`~
15574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15575 dldir=$destdir/`dirname \$dlpath`~
15576 test -d \$dldir || mkdir -p \$dldir~
15577 $install_prog $dir/$dlname \$dldir/$dlname~
15578 chmod a+x \$dldir/$dlname~
15579 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15580 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15581 fi'
15582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15583 dlpath=$dir/\$dldll~
15584 $RM \$dlpath'
15585 shlibpath_overrides_runpath=yes
15586
15587 case $host_os in
15588 cygwin*)
15589 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15590 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15591 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15592 ;;
15593 mingw*)
15594 # MinGW DLLs use traditional 'lib' prefix
15595 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15596 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15597 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15598 # It is most probably a Windows format PATH printed by
15599 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15600 # path with ; separators, and with drive letters. We can handle the
15601 # drive letters (cygwin fileutils understands them), so leave them,
15602 # especially as we might pass files found there to a mingw objdump,
15603 # which wouldn't understand a cygwinified path. Ahh.
15604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15605 else
15606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15607 fi
15608 ;;
15609 pw32*)
15610 # pw32 DLLs use 'pw' prefix rather than 'lib'
15611 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15612 ;;
15613 esac
15614 ;;
15615
15616 *)
15617 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15618 ;;
15619 esac
15620 dynamic_linker='Win32 ld.exe'
15621 # FIXME: first we should search . and the directory the executable is in
15622 shlibpath_var=PATH
15623 ;;
15624
15625 darwin* | rhapsody*)
15626 dynamic_linker="$host_os dyld"
15627 version_type=darwin
15628 need_lib_prefix=no
15629 need_version=no
15630 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15631 soname_spec='${libname}${release}${major}$shared_ext'
15632 shlibpath_overrides_runpath=yes
15633 shlibpath_var=DYLD_LIBRARY_PATH
15634 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15635
15636 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15637 ;;
15638
15639 dgux*)
15640 version_type=linux
15641 need_lib_prefix=no
15642 need_version=no
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 shlibpath_var=LD_LIBRARY_PATH
15646 ;;
15647
15648 freebsd1*)
15649 dynamic_linker=no
15650 ;;
15651
15652 freebsd* | dragonfly*)
15653 # DragonFly does not have aout. When/if they implement a new
15654 # versioning mechanism, adjust this.
15655 if test -x /usr/bin/objformat; then
15656 objformat=`/usr/bin/objformat`
15657 else
15658 case $host_os in
15659 freebsd[123]*) objformat=aout ;;
15660 *) objformat=elf ;;
15661 esac
15662 fi
15663 version_type=freebsd-$objformat
15664 case $version_type in
15665 freebsd-elf*)
15666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15667 need_version=no
15668 need_lib_prefix=no
15669 ;;
15670 freebsd-*)
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15672 need_version=yes
15673 ;;
15674 esac
15675 shlibpath_var=LD_LIBRARY_PATH
15676 case $host_os in
15677 freebsd2*)
15678 shlibpath_overrides_runpath=yes
15679 ;;
15680 freebsd3.[01]* | freebsdelf3.[01]*)
15681 shlibpath_overrides_runpath=yes
15682 hardcode_into_libs=yes
15683 ;;
15684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15686 shlibpath_overrides_runpath=no
15687 hardcode_into_libs=yes
15688 ;;
15689 *) # from 4.6 on, and DragonFly
15690 shlibpath_overrides_runpath=yes
15691 hardcode_into_libs=yes
15692 ;;
15693 esac
15694 ;;
15695
15696 gnu*)
15697 version_type=linux
15698 need_lib_prefix=no
15699 need_version=no
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 hardcode_into_libs=yes
15704 ;;
15705
15706 hpux9* | hpux10* | hpux11*)
15707 # Give a soname corresponding to the major version so that dld.sl refuses to
15708 # link against other versions.
15709 version_type=sunos
15710 need_lib_prefix=no
15711 need_version=no
15712 case $host_cpu in
15713 ia64*)
15714 shrext_cmds='.so'
15715 hardcode_into_libs=yes
15716 dynamic_linker="$host_os dld.so"
15717 shlibpath_var=LD_LIBRARY_PATH
15718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 if test "X$HPUX_IA64_MODE" = X32; then
15722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15723 else
15724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15725 fi
15726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15727 ;;
15728 hppa*64*)
15729 shrext_cmds='.sl'
15730 hardcode_into_libs=yes
15731 dynamic_linker="$host_os dld.sl"
15732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15735 soname_spec='${libname}${release}${shared_ext}$major'
15736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15738 ;;
15739 *)
15740 shrext_cmds='.sl'
15741 dynamic_linker="$host_os dld.sl"
15742 shlibpath_var=SHLIB_PATH
15743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 ;;
15747 esac
15748 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15749 postinstall_cmds='chmod 555 $lib'
15750 ;;
15751
15752 interix[3-9]*)
15753 version_type=linux
15754 need_lib_prefix=no
15755 need_version=no
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 shlibpath_overrides_runpath=no
15761 hardcode_into_libs=yes
15762 ;;
15763
15764 irix5* | irix6* | nonstopux*)
15765 case $host_os in
15766 nonstopux*) version_type=nonstopux ;;
15767 *)
15768 if test "$lt_cv_prog_gnu_ld" = yes; then
15769 version_type=linux
15770 else
15771 version_type=irix
15772 fi ;;
15773 esac
15774 need_lib_prefix=no
15775 need_version=no
15776 soname_spec='${libname}${release}${shared_ext}$major'
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15778 case $host_os in
15779 irix5* | nonstopux*)
15780 libsuff= shlibsuff=
15781 ;;
15782 *)
15783 case $LD in # libtool.m4 will add one of these switches to LD
15784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15785 libsuff= shlibsuff= libmagic=32-bit;;
15786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15787 libsuff=32 shlibsuff=N32 libmagic=N32;;
15788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15789 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15790 *) libsuff= shlibsuff= libmagic=never-match;;
15791 esac
15792 ;;
15793 esac
15794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15795 shlibpath_overrides_runpath=no
15796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15798 hardcode_into_libs=yes
15799 ;;
15800
15801 # No shared lib support for Linux oldld, aout, or coff.
15802 linux*oldld* | linux*aout* | linux*coff*)
15803 dynamic_linker=no
15804 ;;
15805
15806 # This must be Linux ELF.
15807 linux* | k*bsd*-gnu)
15808 version_type=linux
15809 need_lib_prefix=no
15810 need_version=no
15811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812 soname_spec='${libname}${release}${shared_ext}$major'
15813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15814 shlibpath_var=LD_LIBRARY_PATH
15815 shlibpath_overrides_runpath=no
15816 # Some binutils ld are patched to set DT_RUNPATH
15817 save_LDFLAGS=$LDFLAGS
15818 save_libdir=$libdir
15819 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15820 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15821 if test x$gcc_no_link = xyes; then
15822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15824 { (exit 1); exit 1; }; }
15825 fi
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h. */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832
15833 int
15834 main ()
15835 {
15836
15837 ;
15838 return 0;
15839 }
15840 _ACEOF
15841 rm -f conftest.$ac_objext conftest$ac_exeext
15842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15843 (eval $ac_link) 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
15850 { ac_try='test -z "$ac_cxx_werror_flag"
15851 || test ! -s conftest.err'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; } &&
15857 { ac_try='test -s conftest$ac_exeext'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
15863 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
15864 shlibpath_overrides_runpath=yes
15865 fi
15866
15867 else
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15870
15871 fi
15872 rm -f conftest.err conftest.$ac_objext \
15873 conftest$ac_exeext conftest.$ac_ext
15874 LDFLAGS=$save_LDFLAGS
15875 libdir=$save_libdir
15876
15877 # This implies no fast_install, which is unacceptable.
15878 # Some rework will be needed to allow for fast_install
15879 # before this can be enabled.
15880 hardcode_into_libs=yes
15881
15882 # Append ld.so.conf contents to the search path
15883 if test -f /etc/ld.so.conf; then
15884 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15885 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15886 fi
15887
15888 # We used to test for /lib/ld.so.1 and disable shared libraries on
15889 # powerpc, because MkLinux only supported shared libraries with the
15890 # GNU dynamic linker. Since this was broken with cross compilers,
15891 # most powerpc-linux boxes support dynamic linking these days and
15892 # people can always --disable-shared, the test was removed, and we
15893 # assume the GNU/Linux dynamic linker is in use.
15894 dynamic_linker='GNU/Linux ld.so'
15895 ;;
15896
15897 netbsd*)
15898 version_type=sunos
15899 need_lib_prefix=no
15900 need_version=no
15901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15904 dynamic_linker='NetBSD (a.out) ld.so'
15905 else
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15907 soname_spec='${libname}${release}${shared_ext}$major'
15908 dynamic_linker='NetBSD ld.elf_so'
15909 fi
15910 shlibpath_var=LD_LIBRARY_PATH
15911 shlibpath_overrides_runpath=yes
15912 hardcode_into_libs=yes
15913 ;;
15914
15915 newsos6)
15916 version_type=linux
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15918 shlibpath_var=LD_LIBRARY_PATH
15919 shlibpath_overrides_runpath=yes
15920 ;;
15921
15922 *nto* | *qnx*)
15923 version_type=qnx
15924 need_lib_prefix=no
15925 need_version=no
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 shlibpath_var=LD_LIBRARY_PATH
15929 shlibpath_overrides_runpath=no
15930 hardcode_into_libs=yes
15931 dynamic_linker='ldqnx.so'
15932 ;;
15933
15934 openbsd*)
15935 version_type=sunos
15936 sys_lib_dlsearch_path_spec="/usr/lib"
15937 need_lib_prefix=no
15938 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15939 case $host_os in
15940 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15941 *) need_version=no ;;
15942 esac
15943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15945 shlibpath_var=LD_LIBRARY_PATH
15946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15947 case $host_os in
15948 openbsd2.[89] | openbsd2.[89].*)
15949 shlibpath_overrides_runpath=no
15950 ;;
15951 *)
15952 shlibpath_overrides_runpath=yes
15953 ;;
15954 esac
15955 else
15956 shlibpath_overrides_runpath=yes
15957 fi
15958 ;;
15959
15960 os2*)
15961 libname_spec='$name'
15962 shrext_cmds=".dll"
15963 need_lib_prefix=no
15964 library_names_spec='$libname${shared_ext} $libname.a'
15965 dynamic_linker='OS/2 ld.exe'
15966 shlibpath_var=LIBPATH
15967 ;;
15968
15969 osf3* | osf4* | osf5*)
15970 version_type=osf
15971 need_lib_prefix=no
15972 need_version=no
15973 soname_spec='${libname}${release}${shared_ext}$major'
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975 shlibpath_var=LD_LIBRARY_PATH
15976 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15977 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15978 ;;
15979
15980 rdos*)
15981 dynamic_linker=no
15982 ;;
15983
15984 solaris*)
15985 version_type=linux
15986 need_lib_prefix=no
15987 need_version=no
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15989 soname_spec='${libname}${release}${shared_ext}$major'
15990 shlibpath_var=LD_LIBRARY_PATH
15991 shlibpath_overrides_runpath=yes
15992 hardcode_into_libs=yes
15993 # ldd complains unless libraries are executable
15994 postinstall_cmds='chmod +x $lib'
15995 ;;
15996
15997 sunos4*)
15998 version_type=sunos
15999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16001 shlibpath_var=LD_LIBRARY_PATH
16002 shlibpath_overrides_runpath=yes
16003 if test "$with_gnu_ld" = yes; then
16004 need_lib_prefix=no
16005 fi
16006 need_version=yes
16007 ;;
16008
16009 sysv4 | sysv4.3*)
16010 version_type=linux
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012 soname_spec='${libname}${release}${shared_ext}$major'
16013 shlibpath_var=LD_LIBRARY_PATH
16014 case $host_vendor in
16015 sni)
16016 shlibpath_overrides_runpath=no
16017 need_lib_prefix=no
16018 runpath_var=LD_RUN_PATH
16019 ;;
16020 siemens)
16021 need_lib_prefix=no
16022 ;;
16023 motorola)
16024 need_lib_prefix=no
16025 need_version=no
16026 shlibpath_overrides_runpath=no
16027 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16028 ;;
16029 esac
16030 ;;
16031
16032 sysv4*MP*)
16033 if test -d /usr/nec ;then
16034 version_type=linux
16035 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16036 soname_spec='$libname${shared_ext}.$major'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 fi
16039 ;;
16040
16041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16042 version_type=freebsd-elf
16043 need_lib_prefix=no
16044 need_version=no
16045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16046 soname_spec='${libname}${release}${shared_ext}$major'
16047 shlibpath_var=LD_LIBRARY_PATH
16048 shlibpath_overrides_runpath=yes
16049 hardcode_into_libs=yes
16050 if test "$with_gnu_ld" = yes; then
16051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16052 else
16053 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16054 case $host_os in
16055 sco3.2v5*)
16056 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16057 ;;
16058 esac
16059 fi
16060 sys_lib_dlsearch_path_spec='/usr/lib'
16061 ;;
16062
16063 tpf*)
16064 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16065 version_type=linux
16066 need_lib_prefix=no
16067 need_version=no
16068 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16069 shlibpath_var=LD_LIBRARY_PATH
16070 shlibpath_overrides_runpath=no
16071 hardcode_into_libs=yes
16072 ;;
16073
16074 uts4*)
16075 version_type=linux
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 ;;
16080
16081 *)
16082 dynamic_linker=no
16083 ;;
16084 esac
16085 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16086 echo "${ECHO_T}$dynamic_linker" >&6
16087 test "$dynamic_linker" = no && can_build_shared=no
16088
16089 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16090 if test "$GCC" = yes; then
16091 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16092 fi
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16130 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16131 hardcode_action_CXX=
16132 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16133 test -n "$runpath_var_CXX" ||
16134 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16135
16136 # We can hardcode non-existent directories.
16137 if test "$hardcode_direct_CXX" != no &&
16138 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16139 # have to relink, otherwise we might link with an installed library
16140 # when we should be linking with a yet-to-be-installed one
16141 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16142 test "$hardcode_minus_L_CXX" != no; then
16143 # Linking always hardcodes the temporary library directory.
16144 hardcode_action_CXX=relink
16145 else
16146 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16147 hardcode_action_CXX=immediate
16148 fi
16149 else
16150 # We cannot hardcode anything, or else we can only hardcode existing
16151 # directories.
16152 hardcode_action_CXX=unsupported
16153 fi
16154 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16155 echo "${ECHO_T}$hardcode_action_CXX" >&6
16156
16157 if test "$hardcode_action_CXX" = relink ||
16158 test "$inherit_rpath_CXX" = yes; then
16159 # Fast installation is not supported
16160 enable_fast_install=no
16161 elif test "$shlibpath_overrides_runpath" = yes ||
16162 test "$enable_shared" = no; then
16163 # Fast installation is not necessary
16164 enable_fast_install=needless
16165 fi
16166
16167
16168
16169
16170
16171
16172
16173 fi # test -n "$compiler"
16174
16175 CC=$lt_save_CC
16176 LDCXX=$LD
16177 LD=$lt_save_LD
16178 GCC=$lt_save_GCC
16179 with_gnu_ld=$lt_save_with_gnu_ld
16180 lt_cv_path_LDCXX=$lt_cv_path_LD
16181 lt_cv_path_LD=$lt_save_path_LD
16182 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16183 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16184 fi # test "$_lt_caught_CXX_error" != yes
16185
16186 ac_ext=c
16187 ac_cpp='$CPP $CPPFLAGS'
16188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16191
16192
16193
16194 # Handle -Werror default case.
16195 if test "$ENABLE_WERROR" = default; then
16196 case "$host_os" in
16197 *linux*)
16198 if test "$GCC" = yes; then
16199 ENABLE_WERROR=yes
16200 fi
16201 ;;
16202 esac
16203 fi
16204
16205 if test "x${COMPILE_COLLECTIONS}" = xyes; then
16206 # Extract the first word of "perl", so it can be a program name with args.
16207 set dummy perl; ac_word=$2
16208 echo "$as_me:$LINENO: checking for $ac_word" >&5
16209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16210 if test "${ac_cv_path_PERL+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 else
16213 case $PERL in
16214 [\\/]* | ?:[\\/]*)
16215 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16216 ;;
16217 *)
16218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16219 for as_dir in $PATH
16220 do
16221 IFS=$as_save_IFS
16222 test -z "$as_dir" && as_dir=.
16223 for ac_exec_ext in '' $ac_executable_extensions; do
16224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16225 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16227 break 2
16228 fi
16229 done
16230 done
16231
16232 ;;
16233 esac
16234 fi
16235 PERL=$ac_cv_path_PERL
16236
16237 if test -n "$PERL"; then
16238 echo "$as_me:$LINENO: result: $PERL" >&5
16239 echo "${ECHO_T}$PERL" >&6
16240 else
16241 echo "$as_me:$LINENO: result: no" >&5
16242 echo "${ECHO_T}no" >&6
16243 fi
16244
16245
16246
16247 ac_config_files="$ac_config_files lib/mkcollections.pl"
16248
16249 ac_config_commands="$ac_config_commands mkcollections.pl"
16250
16251 fi
16252
16253 if test "x${COMPILE_JNI}" = xyes; then
16254
16255
16256
16257 echo "$as_me:$LINENO: checking __attribute__((,,))" >&5
16258 echo $ECHO_N "checking __attribute__((,,))... $ECHO_C" >&6
16259 if test "${cv_c_gcc_attribute_supported+set}" = set; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262
16263 cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h. */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16269
16270 int
16271 main ()
16272 {
16273 extern int testfunction(int x) __attribute__((,,))
16274 ;
16275 return 0;
16276 }
16277 _ACEOF
16278 rm -f conftest.$ac_objext
16279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16280 (eval $ac_compile) 2>conftest.er1
16281 ac_status=$?
16282 grep -v '^ *+' conftest.er1 >conftest.err
16283 rm -f conftest.er1
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } &&
16287 { ac_try='test -z "$ac_c_werror_flag"
16288 || test ! -s conftest.err'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; } &&
16294 { ac_try='test -s conftest.$ac_objext'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 cv_c_gcc_attribute_supported=yes
16301 else
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305 cv_c_gcc_attribute_supported=no
16306 fi
16307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16308
16309 fi
16310
16311 if test "x$cv_c_gcc_attribute_supported" = xyes; then
16312 true
16313 echo "$as_me:$LINENO: result: yes" >&5
16314 echo "${ECHO_T}yes" >&6
16315
16316 cat >>confdefs.h <<\_ACEOF
16317 #define HAVE_GNUC25_ATTRIB
16318 _ACEOF
16319
16320
16321 else
16322 true
16323 echo "$as_me:$LINENO: result: no" >&5
16324 echo "${ECHO_T}no" >&6
16325
16326 fi
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337 echo "$as_me:$LINENO: checking __attribute__((unused))" >&5
16338 echo $ECHO_N "checking __attribute__((unused))... $ECHO_C" >&6
16339 if test "${cv_c_gcc_attribute_unused+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16341 else
16342
16343 cat >conftest.$ac_ext <<_ACEOF
16344 /* confdefs.h. */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16349
16350 int
16351 main ()
16352 {
16353 extern int testfunction(int x) __attribute__((unused))
16354 ;
16355 return 0;
16356 }
16357 _ACEOF
16358 rm -f conftest.$ac_objext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16360 (eval $ac_compile) 2>conftest.er1
16361 ac_status=$?
16362 grep -v '^ *+' conftest.er1 >conftest.err
16363 rm -f conftest.er1
16364 cat conftest.err >&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } &&
16367 { ac_try='test -z "$ac_c_werror_flag"
16368 || test ! -s conftest.err'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } &&
16374 { ac_try='test -s conftest.$ac_objext'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16380 cv_c_gcc_attribute_unused=yes
16381 else
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16384
16385 cv_c_gcc_attribute_unused=no
16386 fi
16387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16388
16389 fi
16390
16391 if test "x$cv_c_gcc_attribute_unused" = xyes; then
16392 true
16393 echo "$as_me:$LINENO: result: yes" >&5
16394 echo "${ECHO_T}yes" >&6
16395
16396 cat >>confdefs.h <<\_ACEOF
16397 #define HAVE_GNUC25_UNUSED
16398 _ACEOF
16399
16400
16401 else
16402 true
16403 echo "$as_me:$LINENO: result: no" >&5
16404 echo "${ECHO_T}no" >&6
16405
16406 fi
16407
16408
16409
16410
16411
16412
16413 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16414 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16415 if test "${ac_cv_header_stdc+set}" = set; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 else
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h. */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 #include <stdlib.h>
16425 #include <stdarg.h>
16426 #include <string.h>
16427 #include <float.h>
16428
16429 int
16430 main ()
16431 {
16432
16433 ;
16434 return 0;
16435 }
16436 _ACEOF
16437 rm -f conftest.$ac_objext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16439 (eval $ac_compile) 2>conftest.er1
16440 ac_status=$?
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
16446 { ac_try='test -z "$ac_c_werror_flag"
16447 || test ! -s conftest.err'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; } &&
16453 { ac_try='test -s conftest.$ac_objext'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16459 ac_cv_header_stdc=yes
16460 else
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16463
16464 ac_cv_header_stdc=no
16465 fi
16466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16467
16468 if test $ac_cv_header_stdc = yes; then
16469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16470 cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h. */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16476 #include <string.h>
16477
16478 _ACEOF
16479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16480 $EGREP "memchr" >/dev/null 2>&1; then
16481 :
16482 else
16483 ac_cv_header_stdc=no
16484 fi
16485 rm -f conftest*
16486
16487 fi
16488
16489 if test $ac_cv_header_stdc = yes; then
16490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16491 cat >conftest.$ac_ext <<_ACEOF
16492 /* confdefs.h. */
16493 _ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h. */
16497 #include <stdlib.h>
16498
16499 _ACEOF
16500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16501 $EGREP "free" >/dev/null 2>&1; then
16502 :
16503 else
16504 ac_cv_header_stdc=no
16505 fi
16506 rm -f conftest*
16507
16508 fi
16509
16510 if test $ac_cv_header_stdc = yes; then
16511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16512 if test "$cross_compiling" = yes; then
16513 :
16514 else
16515 cat >conftest.$ac_ext <<_ACEOF
16516 /* confdefs.h. */
16517 _ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16521 #include <ctype.h>
16522 #if ((' ' & 0x0FF) == 0x020)
16523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16525 #else
16526 # define ISLOWER(c) \
16527 (('a' <= (c) && (c) <= 'i') \
16528 || ('j' <= (c) && (c) <= 'r') \
16529 || ('s' <= (c) && (c) <= 'z'))
16530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16531 #endif
16532
16533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16534 int
16535 main ()
16536 {
16537 int i;
16538 for (i = 0; i < 256; i++)
16539 if (XOR (islower (i), ISLOWER (i))
16540 || toupper (i) != TOUPPER (i))
16541 exit(2);
16542 exit (0);
16543 }
16544 _ACEOF
16545 rm -f conftest$ac_exeext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547 (eval $ac_link) 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16553 ac_status=$?
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; }; then
16556 :
16557 else
16558 echo "$as_me: program exited with status $ac_status" >&5
16559 echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562 ( exit $ac_status )
16563 ac_cv_header_stdc=no
16564 fi
16565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16566 fi
16567 fi
16568 fi
16569 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16570 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16571 if test $ac_cv_header_stdc = yes; then
16572
16573 cat >>confdefs.h <<\_ACEOF
16574 #define STDC_HEADERS 1
16575 _ACEOF
16576
16577 fi
16578
16579
16580 echo "$as_me:$LINENO: checking size of void *" >&5
16581 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16582 if test "${ac_cv_sizeof_void_p+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
16586 cat >conftest.$ac_ext <<_ACEOF
16587 /* confdefs.h. */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16592 #include "confdefs.h"
16593 #include <sys/types.h>
16594
16595
16596 int
16597 main ()
16598 {
16599 switch (0) case 0: case (sizeof (void *) == $ac_size):;
16600 ;
16601 return 0;
16602 }
16603 _ACEOF
16604 rm -f conftest.$ac_objext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16606 (eval $ac_compile) 2>conftest.er1
16607 ac_status=$?
16608 grep -v '^ *+' conftest.er1 >conftest.err
16609 rm -f conftest.er1
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } &&
16613 { ac_try='test -z "$ac_c_werror_flag"
16614 || test ! -s conftest.err'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } &&
16620 { ac_try='test -s conftest.$ac_objext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_sizeof_void_p=$ac_size
16627 else
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 fi
16632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16633 if test x$ac_cv_sizeof_void_p != x ; then break; fi
16634 done
16635
16636 fi
16637
16638 if test x$ac_cv_sizeof_void_p = x ; then
16639 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
16640 echo "$as_me: error: cannot determine a size for void *" >&2;}
16641 { (exit 1); exit 1; }; }
16642 fi
16643 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16644 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16645
16646 cat >>confdefs.h <<_ACEOF
16647 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16648 _ACEOF
16649
16650
16651
16652 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16653 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16654 if test "${ac_cv_c_bigendian+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 else
16657 ac_cv_c_bigendian=unknown
16658 # See if sys/param.h defines the BYTE_ORDER macro.
16659 cat >conftest.$ac_ext <<_ACEOF
16660 /* confdefs.h. */
16661 _ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16665 #include <sys/types.h>
16666 #include <sys/param.h>
16667 int
16668 main ()
16669 {
16670
16671 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16672 bogus endian macros
16673 #endif
16674 ;
16675 return 0;
16676 }
16677 _ACEOF
16678 rm -f conftest.$ac_objext
16679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16680 (eval $ac_compile) 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } &&
16687 { ac_try='test -z "$ac_c_werror_flag"
16688 || test ! -s conftest.err'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } &&
16694 { ac_try='test -s conftest.$ac_objext'
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16697 ac_status=$?
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16700 # It does; now see whether it defined to BIG_ENDIAN or not.
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 #include <sys/types.h>
16708 #include <sys/param.h>
16709 int
16710 main ()
16711 {
16712
16713 #if BYTE_ORDER != BIG_ENDIAN
16714 not big endian
16715 #endif
16716 ;
16717 return 0;
16718 }
16719 _ACEOF
16720 rm -f conftest.$ac_objext
16721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16722 (eval $ac_compile) 2>conftest.er1
16723 ac_status=$?
16724 grep -v '^ *+' conftest.er1 >conftest.err
16725 rm -f conftest.er1
16726 cat conftest.err >&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } &&
16729 { ac_try='test -z "$ac_c_werror_flag"
16730 || test ! -s conftest.err'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } &&
16736 { ac_try='test -s conftest.$ac_objext'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_cv_c_bigendian=yes
16743 else
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16746
16747 ac_cv_c_bigendian=no
16748 fi
16749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16750 else
16751 echo "$as_me: failed program was:" >&5
16752 sed 's/^/| /' conftest.$ac_ext >&5
16753
16754 fi
16755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16756 if test $ac_cv_c_bigendian = unknown; then
16757 if test "$cross_compiling" = yes; then
16758 echo $ac_n "cross-compiling... " 2>&6
16759 else
16760 cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h. */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 main () {
16767 /* Are we little or big endian? From Harbison&Steele. */
16768 union
16769 {
16770 long l;
16771 char c[sizeof (long)];
16772 } u;
16773 u.l = 1;
16774 exit (u.c[sizeof (long) - 1] == 1);
16775 }
16776 _ACEOF
16777 rm -f conftest$ac_exeext
16778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16779 (eval $ac_link) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; }; then
16788 ac_cv_c_bigendian=no
16789 else
16790 echo "$as_me: program exited with status $ac_status" >&5
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16793
16794 ( exit $ac_status )
16795 ac_cv_c_bigendian=yes
16796 fi
16797 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16798 fi
16799 fi
16800 fi
16801 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16802 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16803 if test $ac_cv_c_bigendian = unknown; then
16804 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
16805 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
16806
16807 cat >conftest.c <<EOF
16808 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16809 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16810 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16811 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16812 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16813 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16814 int main() { _ascii (); _ebcdic (); return 0; }
16815 EOF
16816 if test -f conftest.c ; then
16817 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
16818 if test `grep -l BIGenDianSyS conftest.o` ; then
16819 echo $ac_n ' big endian probe OK, ' 1>&6
16820 ac_cv_c_bigendian=yes
16821 fi
16822 if test `grep -l LiTTleEnDian conftest.o` ; then
16823 echo $ac_n ' little endian probe OK, ' 1>&6
16824 if test $ac_cv_c_bigendian = yes ; then
16825 ac_cv_c_bigendian=unknown;
16826 else
16827 ac_cv_c_bigendian=no
16828 fi
16829 fi
16830 echo $ac_n 'guessing bigendian ... ' >&6
16831 fi
16832 fi
16833 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16834 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16835 fi
16836 if test $ac_cv_c_bigendian = yes; then
16837
16838 cat >>confdefs.h <<\_ACEOF
16839 #define WORDS_BIGENDIAN 1
16840 _ACEOF
16841
16842
16843 cat >>confdefs.h <<\_ACEOF
16844 #define HOST_WORDS_BIG_ENDIAN 1
16845 _ACEOF
16846
16847 BYTEORDER=4321
16848 else
16849 BYTEORDER=1234
16850 fi
16851
16852 cat >>confdefs.h <<_ACEOF
16853 #define BYTEORDER $BYTEORDER
16854 _ACEOF
16855
16856 if test $ac_cv_c_bigendian = unknown; then
16857 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
16858 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
16859 { (exit 1); exit 1; }; }
16860 fi
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
16883 asm/ioctls.h \
16884 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
16885 sys/time.h \
16886 sys/select.h \
16887 crt_externs.h \
16888 fcntl.h \
16889 sys/mman.h \
16890 magic.h \
16891 sys/event.h sys/epoll.h \
16892 ifaddrs.h
16893 do
16894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16896 echo "$as_me:$LINENO: checking for $ac_header" >&5
16897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 fi
16901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16903 else
16904 # Is the header compilable?
16905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16907 cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h. */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16913 $ac_includes_default
16914 #include <$ac_header>
16915 _ACEOF
16916 rm -f conftest.$ac_objext
16917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16918 (eval $ac_compile) 2>conftest.er1
16919 ac_status=$?
16920 grep -v '^ *+' conftest.er1 >conftest.err
16921 rm -f conftest.er1
16922 cat conftest.err >&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } &&
16925 { ac_try='test -z "$ac_c_werror_flag"
16926 || test ! -s conftest.err'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; } &&
16932 { ac_try='test -s conftest.$ac_objext'
16933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16934 (eval $ac_try) 2>&5
16935 ac_status=$?
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; }; then
16938 ac_header_compiler=yes
16939 else
16940 echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.$ac_ext >&5
16942
16943 ac_header_compiler=no
16944 fi
16945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16947 echo "${ECHO_T}$ac_header_compiler" >&6
16948
16949 # Is the header present?
16950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16952 cat >conftest.$ac_ext <<_ACEOF
16953 /* confdefs.h. */
16954 _ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16958 #include <$ac_header>
16959 _ACEOF
16960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16962 ac_status=$?
16963 grep -v '^ *+' conftest.er1 >conftest.err
16964 rm -f conftest.er1
16965 cat conftest.err >&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } >/dev/null; then
16968 if test -s conftest.err; then
16969 ac_cpp_err=$ac_c_preproc_warn_flag
16970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16971 else
16972 ac_cpp_err=
16973 fi
16974 else
16975 ac_cpp_err=yes
16976 fi
16977 if test -z "$ac_cpp_err"; then
16978 ac_header_preproc=yes
16979 else
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16982
16983 ac_header_preproc=no
16984 fi
16985 rm -f conftest.err conftest.$ac_ext
16986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16987 echo "${ECHO_T}$ac_header_preproc" >&6
16988
16989 # So? What about this header?
16990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16991 yes:no: )
16992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16996 ac_header_preproc=yes
16997 ;;
16998 no:yes:* )
16999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17011 (
17012 cat <<\_ASBOX
17013 ## -------------------------------- ##
17014 ## Report this to classpath@gnu.org ##
17015 ## -------------------------------- ##
17016 _ASBOX
17017 ) |
17018 sed "s/^/$as_me: WARNING: /" >&2
17019 ;;
17020 esac
17021 echo "$as_me:$LINENO: checking for $ac_header" >&5
17022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026 eval "$as_ac_Header=\$ac_header_preproc"
17027 fi
17028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17030
17031 fi
17032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17033 cat >>confdefs.h <<_ACEOF
17034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17035 _ACEOF
17036
17037 fi
17038
17039 done
17040
17041
17042 cat >conftest.$ac_ext <<_ACEOF
17043 /* confdefs.h. */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17048 #include <stdint.h>
17049
17050 _ACEOF
17051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17052 $EGREP "uint32_t" >/dev/null 2>&1; then
17053
17054 cat >>confdefs.h <<\_ACEOF
17055 #define HAVE_INT32_DEFINED 1
17056 _ACEOF
17057
17058 fi
17059 rm -f conftest*
17060
17061 cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h. */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17067 #include <inttypes.h>
17068
17069 _ACEOF
17070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17071 $EGREP "uint32_t" >/dev/null 2>&1; then
17072
17073 cat >>confdefs.h <<\_ACEOF
17074 #define HAVE_INT32_DEFINED 1
17075 _ACEOF
17076
17077 fi
17078 rm -f conftest*
17079
17080 cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h. */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17086 #include <sys/types.h>
17087
17088 _ACEOF
17089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17090 $EGREP "u_int32_t" >/dev/null 2>&1; then
17091
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_BSD_INT32_DEFINED 1
17094 _ACEOF
17095
17096 fi
17097 rm -f conftest*
17098
17099 cat >conftest.$ac_ext <<_ACEOF
17100 /* confdefs.h. */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17105 #include <sys/config.h>
17106
17107 _ACEOF
17108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17109 $EGREP "u_int32_t" >/dev/null 2>&1; then
17110
17111 cat >>confdefs.h <<\_ACEOF
17112 #define HAVE_BSD_INT32_DEFINED 1
17113 _ACEOF
17114
17115 fi
17116 rm -f conftest*
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173 for ac_func in ftruncate fsync select \
17174 gethostname socket strerror fork pipe execve open close \
17175 lseek fstat read readv write writev htonl memset htons connect \
17176 getsockname getpeername bind listen accept \
17177 recvfrom send sendto setsockopt getsockopt time mktime \
17178 gethostbyname_r localtime_r \
17179 strerror_r \
17180 fcntl \
17181 mmap munmap mincore msync madvise getpagesize sysconf \
17182 lstat readlink \
17183 inet_aton inet_addr inet_pton \
17184 getifaddrs kqueue kevent epoll_create \
17185 readdir_r
17186 do
17187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17188 echo "$as_me:$LINENO: checking for $ac_func" >&5
17189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17190 if eval "test \"\${$as_ac_var+set}\" = set"; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17192 else
17193 if test x$gcc_no_link = xyes; then
17194 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17195 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17196 { (exit 1); exit 1; }; }
17197 fi
17198 cat >conftest.$ac_ext <<_ACEOF
17199 /* confdefs.h. */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17206 #define $ac_func innocuous_$ac_func
17207
17208 /* System header to define __stub macros and hopefully few prototypes,
17209 which can conflict with char $ac_func (); below.
17210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17211 <limits.h> exists even on freestanding compilers. */
17212
17213 #ifdef __STDC__
17214 # include <limits.h>
17215 #else
17216 # include <assert.h>
17217 #endif
17218
17219 #undef $ac_func
17220
17221 /* Override any gcc2 internal prototype to avoid an error. */
17222 #ifdef __cplusplus
17223 extern "C"
17224 {
17225 #endif
17226 /* We use char because int might match the return type of a gcc2
17227 builtin and then its argument prototype would still apply. */
17228 char $ac_func ();
17229 /* The GNU C library defines this for functions which it implements
17230 to always fail with ENOSYS. Some functions are actually named
17231 something starting with __ and the normal name is an alias. */
17232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17233 choke me
17234 #else
17235 char (*f) () = $ac_func;
17236 #endif
17237 #ifdef __cplusplus
17238 }
17239 #endif
17240
17241 int
17242 main ()
17243 {
17244 return f != $ac_func;
17245 ;
17246 return 0;
17247 }
17248 _ACEOF
17249 rm -f conftest.$ac_objext conftest$ac_exeext
17250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17251 (eval $ac_link) 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -z "$ac_c_werror_flag"
17259 || test ! -s conftest.err'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest$ac_exeext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 eval "$as_ac_var=yes"
17272 else
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276 eval "$as_ac_var=no"
17277 fi
17278 rm -f conftest.err conftest.$ac_objext \
17279 conftest$ac_exeext conftest.$ac_ext
17280 fi
17281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17283 if test `eval echo '${'$as_ac_var'}'` = yes; then
17284 cat >>confdefs.h <<_ACEOF
17285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17286 _ACEOF
17287
17288 fi
17289 done
17290
17291
17292 LIBMAGIC=
17293 echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
17294 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
17295 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 else
17298 ac_check_lib_save_LIBS=$LIBS
17299 LIBS="-lmagic $LIBS"
17300 if test x$gcc_no_link = xyes; then
17301 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17302 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17303 { (exit 1); exit 1; }; }
17304 fi
17305 cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h. */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311
17312 /* Override any gcc2 internal prototype to avoid an error. */
17313 #ifdef __cplusplus
17314 extern "C"
17315 #endif
17316 /* We use char because int might match the return type of a gcc2
17317 builtin and then its argument prototype would still apply. */
17318 char magic_open ();
17319 int
17320 main ()
17321 {
17322 magic_open ();
17323 ;
17324 return 0;
17325 }
17326 _ACEOF
17327 rm -f conftest.$ac_objext conftest$ac_exeext
17328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17329 (eval $ac_link) 2>conftest.er1
17330 ac_status=$?
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
17336 { ac_try='test -z "$ac_c_werror_flag"
17337 || test ! -s conftest.err'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; } &&
17343 { ac_try='test -s conftest$ac_exeext'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; }; then
17349 ac_cv_lib_magic_magic_open=yes
17350 else
17351 echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17353
17354 ac_cv_lib_magic_magic_open=no
17355 fi
17356 rm -f conftest.err conftest.$ac_objext \
17357 conftest$ac_exeext conftest.$ac_ext
17358 LIBS=$ac_check_lib_save_LIBS
17359 fi
17360 echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
17361 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
17362 if test $ac_cv_lib_magic_magic_open = yes; then
17363 LIBMAGIC=-lmagic
17364 fi
17365
17366
17367
17368 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
17369 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 #include <netinet/in.h>
17377 int
17378 main ()
17379 {
17380 struct sockaddr_in6 addr6;
17381 ;
17382 return 0;
17383 }
17384 _ACEOF
17385 rm -f conftest.$ac_objext
17386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17387 (eval $ac_compile) 2>conftest.er1
17388 ac_status=$?
17389 grep -v '^ *+' conftest.er1 >conftest.err
17390 rm -f conftest.er1
17391 cat conftest.err >&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } &&
17394 { ac_try='test -z "$ac_c_werror_flag"
17395 || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest.$ac_objext'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407
17408 cat >>confdefs.h <<\_ACEOF
17409 #define HAVE_INET6 1
17410 _ACEOF
17411
17412 echo "$as_me:$LINENO: result: yes" >&5
17413 echo "${ECHO_T}yes" >&6
17414 else
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17417
17418 echo "$as_me:$LINENO: result: no" >&5
17419 echo "${ECHO_T}no" >&6
17420 fi
17421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17422
17423 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17424 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17425 if test "${ac_cv_header_time+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428 cat >conftest.$ac_ext <<_ACEOF
17429 /* confdefs.h. */
17430 _ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17434 #include <sys/types.h>
17435 #include <sys/time.h>
17436 #include <time.h>
17437
17438 int
17439 main ()
17440 {
17441 if ((struct tm *) 0)
17442 return 0;
17443 ;
17444 return 0;
17445 }
17446 _ACEOF
17447 rm -f conftest.$ac_objext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17449 (eval $ac_compile) 2>conftest.er1
17450 ac_status=$?
17451 grep -v '^ *+' conftest.er1 >conftest.err
17452 rm -f conftest.er1
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
17456 { ac_try='test -z "$ac_c_werror_flag"
17457 || test ! -s conftest.err'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; } &&
17463 { ac_try='test -s conftest.$ac_objext'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 ac_cv_header_time=yes
17470 else
17471 echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474 ac_cv_header_time=no
17475 fi
17476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17477 fi
17478 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17479 echo "${ECHO_T}$ac_cv_header_time" >&6
17480 if test $ac_cv_header_time = yes; then
17481
17482 cat >>confdefs.h <<\_ACEOF
17483 #define TIME_WITH_SYS_TIME 1
17484 _ACEOF
17485
17486 fi
17487
17488 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17489 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
17490 if test "${ac_cv_struct_tm+set}" = set; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 else
17493 cat >conftest.$ac_ext <<_ACEOF
17494 /* confdefs.h. */
17495 _ACEOF
17496 cat confdefs.h >>conftest.$ac_ext
17497 cat >>conftest.$ac_ext <<_ACEOF
17498 /* end confdefs.h. */
17499 #include <sys/types.h>
17500 #include <time.h>
17501
17502 int
17503 main ()
17504 {
17505 struct tm *tp; tp->tm_sec;
17506 ;
17507 return 0;
17508 }
17509 _ACEOF
17510 rm -f conftest.$ac_objext
17511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17512 (eval $ac_compile) 2>conftest.er1
17513 ac_status=$?
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } &&
17519 { ac_try='test -z "$ac_c_werror_flag"
17520 || test ! -s conftest.err'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17523 ac_status=$?
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; } &&
17526 { ac_try='test -s conftest.$ac_objext'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 ac_cv_struct_tm=time.h
17533 else
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17536
17537 ac_cv_struct_tm=sys/time.h
17538 fi
17539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17540 fi
17541 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17542 echo "${ECHO_T}$ac_cv_struct_tm" >&6
17543 if test $ac_cv_struct_tm = sys/time.h; then
17544
17545 cat >>confdefs.h <<\_ACEOF
17546 #define TM_IN_SYS_TIME 1
17547 _ACEOF
17548
17549 fi
17550
17551 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17552 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17553 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17555 else
17556 cat >conftest.$ac_ext <<_ACEOF
17557 /* confdefs.h. */
17558 _ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17562 #include <sys/types.h>
17563 #include <$ac_cv_struct_tm>
17564
17565
17566 int
17567 main ()
17568 {
17569 static struct tm ac_aggr;
17570 if (ac_aggr.tm_zone)
17571 return 0;
17572 ;
17573 return 0;
17574 }
17575 _ACEOF
17576 rm -f conftest.$ac_objext
17577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17578 (eval $ac_compile) 2>conftest.er1
17579 ac_status=$?
17580 grep -v '^ *+' conftest.er1 >conftest.err
17581 rm -f conftest.er1
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try='test -z "$ac_c_werror_flag"
17586 || test ! -s conftest.err'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try='test -s conftest.$ac_objext'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 ac_cv_member_struct_tm_tm_zone=yes
17599 else
17600 echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17602
17603 cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h. */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17609 #include <sys/types.h>
17610 #include <$ac_cv_struct_tm>
17611
17612
17613 int
17614 main ()
17615 {
17616 static struct tm ac_aggr;
17617 if (sizeof ac_aggr.tm_zone)
17618 return 0;
17619 ;
17620 return 0;
17621 }
17622 _ACEOF
17623 rm -f conftest.$ac_objext
17624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17625 (eval $ac_compile) 2>conftest.er1
17626 ac_status=$?
17627 grep -v '^ *+' conftest.er1 >conftest.err
17628 rm -f conftest.er1
17629 cat conftest.err >&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } &&
17632 { ac_try='test -z "$ac_c_werror_flag"
17633 || test ! -s conftest.err'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; } &&
17639 { ac_try='test -s conftest.$ac_objext'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 ac_cv_member_struct_tm_tm_zone=yes
17646 else
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17649
17650 ac_cv_member_struct_tm_tm_zone=no
17651 fi
17652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17653 fi
17654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17655 fi
17656 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17657 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17658 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17659
17660 cat >>confdefs.h <<_ACEOF
17661 #define HAVE_STRUCT_TM_TM_ZONE 1
17662 _ACEOF
17663
17664
17665 fi
17666
17667 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17668
17669 cat >>confdefs.h <<\_ACEOF
17670 #define HAVE_TM_ZONE 1
17671 _ACEOF
17672
17673 else
17674 echo "$as_me:$LINENO: checking for tzname" >&5
17675 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17676 if test "${ac_cv_var_tzname+set}" = set; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 else
17679 if test x$gcc_no_link = xyes; then
17680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17682 { (exit 1); exit 1; }; }
17683 fi
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h. */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 #include <time.h>
17691 #ifndef tzname /* For SGI. */
17692 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17693 #endif
17694
17695 int
17696 main ()
17697 {
17698 atoi(*tzname);
17699 ;
17700 return 0;
17701 }
17702 _ACEOF
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17705 (eval $ac_link) 2>conftest.er1
17706 ac_status=$?
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag"
17713 || test ! -s conftest.err'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_var_tzname=yes
17726 else
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730 ac_cv_var_tzname=no
17731 fi
17732 rm -f conftest.err conftest.$ac_objext \
17733 conftest$ac_exeext conftest.$ac_ext
17734 fi
17735 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17736 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17737 if test $ac_cv_var_tzname = yes; then
17738
17739 cat >>confdefs.h <<\_ACEOF
17740 #define HAVE_TZNAME 1
17741 _ACEOF
17742
17743 fi
17744 fi
17745
17746
17747 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
17748 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
17749 cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h. */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17755 #include <time.h>
17756 int
17757 main ()
17758 {
17759 struct tm tim; tim.tm_gmtoff = 0;
17760 ;
17761 return 0;
17762 }
17763 _ACEOF
17764 rm -f conftest.$ac_objext
17765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17766 (eval $ac_compile) 2>conftest.er1
17767 ac_status=$?
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -z "$ac_c_werror_flag"
17774 || test ! -s conftest.err'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest.$ac_objext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786
17787 cat >>confdefs.h <<\_ACEOF
17788 #define STRUCT_TM_HAS_GMTOFF 1
17789 _ACEOF
17790
17791 echo "$as_me:$LINENO: result: yes" >&5
17792 echo "${ECHO_T}yes" >&6
17793 else
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17796
17797 echo "$as_me:$LINENO: result: no" >&5
17798 echo "${ECHO_T}no" >&6
17799 echo "$as_me:$LINENO: checking for global timezone variable" >&5
17800 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
17801 cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h. */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 #include <time.h>
17808 int
17809 main ()
17810 {
17811 void i(){long z2 = 2*timezone;}
17812 ;
17813 return 0;
17814 }
17815 _ACEOF
17816 rm -f conftest.$ac_objext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818 (eval $ac_compile) 2>conftest.er1
17819 ac_status=$?
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838
17839 cat >>confdefs.h <<\_ACEOF
17840 #define HAVE_TIMEZONE 1
17841 _ACEOF
17842
17843 echo "$as_me:$LINENO: result: yes" >&5
17844 echo "${ECHO_T}yes" >&6
17845 else
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17848
17849 echo "$as_me:$LINENO: result: no" >&5
17850 echo "${ECHO_T}no" >&6
17851 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
17852 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
17853 cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h. */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17859 #include <time.h>
17860 int
17861 main ()
17862 {
17863 long z2 = _timezone;
17864 ;
17865 return 0;
17866 }
17867 _ACEOF
17868 rm -f conftest.$ac_objext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17870 (eval $ac_compile) 2>conftest.er1
17871 ac_status=$?
17872 grep -v '^ *+' conftest.er1 >conftest.err
17873 rm -f conftest.er1
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_c_werror_flag"
17878 || test ! -s conftest.err'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; } &&
17884 { ac_try='test -s conftest.$ac_objext'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17890
17891 cat >>confdefs.h <<\_ACEOF
17892 #define HAVE_UNDERSCORE_TIMEZONE 1
17893 _ACEOF
17894
17895 echo "$as_me:$LINENO: result: yes" >&5
17896 echo "${ECHO_T}yes" >&6
17897 else
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17900
17901 echo "$as_me:$LINENO: result: no" >&5
17902 echo "${ECHO_T}no" >&6
17903 fi
17904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17905 fi
17906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17907 fi
17908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17909
17910 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17911 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17912 if test "${ac_cv_c_const+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 else
17915 cat >conftest.$ac_ext <<_ACEOF
17916 /* confdefs.h. */
17917 _ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h. */
17921
17922 int
17923 main ()
17924 {
17925 /* FIXME: Include the comments suggested by Paul. */
17926 #ifndef __cplusplus
17927 /* Ultrix mips cc rejects this. */
17928 typedef int charset[2];
17929 const charset x;
17930 /* SunOS 4.1.1 cc rejects this. */
17931 char const *const *ccp;
17932 char **p;
17933 /* NEC SVR4.0.2 mips cc rejects this. */
17934 struct point {int x, y;};
17935 static struct point const zero = {0,0};
17936 /* AIX XL C 1.02.0.0 rejects this.
17937 It does not let you subtract one const X* pointer from another in
17938 an arm of an if-expression whose if-part is not a constant
17939 expression */
17940 const char *g = "string";
17941 ccp = &g + (g ? g-g : 0);
17942 /* HPUX 7.0 cc rejects these. */
17943 ++ccp;
17944 p = (char**) ccp;
17945 ccp = (char const *const *) p;
17946 { /* SCO 3.2v4 cc rejects this. */
17947 char *t;
17948 char const *s = 0 ? (char *) 0 : (char const *) 0;
17949
17950 *t++ = 0;
17951 }
17952 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17953 int x[] = {25, 17};
17954 const int *foo = &x[0];
17955 ++foo;
17956 }
17957 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17958 typedef const int *iptr;
17959 iptr p = 0;
17960 ++p;
17961 }
17962 { /* AIX XL C 1.02.0.0 rejects this saying
17963 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17964 struct s { int j; const int *ap[3]; };
17965 struct s *b; b->j = 5;
17966 }
17967 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17968 const int foo = 10;
17969 }
17970 #endif
17971
17972 ;
17973 return 0;
17974 }
17975 _ACEOF
17976 rm -f conftest.$ac_objext
17977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17978 (eval $ac_compile) 2>conftest.er1
17979 ac_status=$?
17980 grep -v '^ *+' conftest.er1 >conftest.err
17981 rm -f conftest.er1
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -z "$ac_c_werror_flag"
17986 || test ! -s conftest.err'
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; } &&
17992 { ac_try='test -s conftest.$ac_objext'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 ac_cv_c_const=yes
17999 else
18000 echo "$as_me: failed program was:" >&5
18001 sed 's/^/| /' conftest.$ac_ext >&5
18002
18003 ac_cv_c_const=no
18004 fi
18005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18006 fi
18007 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18008 echo "${ECHO_T}$ac_cv_c_const" >&6
18009 if test $ac_cv_c_const = no; then
18010
18011 cat >>confdefs.h <<\_ACEOF
18012 #define const
18013 _ACEOF
18014
18015 fi
18016
18017 echo "$as_me:$LINENO: checking for __attribute__" >&5
18018 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
18019 if test "${ac_cv_c_attribute+set}" = set; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18021 else
18022
18023 cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h. */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18029 void foo(void) __attribute__ ((__noreturn__));
18030
18031 _ACEOF
18032 rm -f conftest.$ac_objext
18033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18034 (eval $ac_compile) 2>conftest.er1
18035 ac_status=$?
18036 grep -v '^ *+' conftest.er1 >conftest.err
18037 rm -f conftest.er1
18038 cat conftest.err >&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
18041 { ac_try='test -z "$ac_c_werror_flag"
18042 || test ! -s conftest.err'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; } &&
18048 { ac_try='test -s conftest.$ac_objext'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
18054 ac_cv_c_attribute=yes
18055 else
18056 echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18058
18059 ac_cv_c_attribute=no
18060
18061 fi
18062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18063
18064 fi
18065 echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
18066 echo "${ECHO_T}$ac_cv_c_attribute" >&6
18067
18068
18069 case $ac_cv_c_attribute in
18070 yes) ;;
18071 no)
18072 cat >>confdefs.h <<_ACEOF
18073 #define __attribute__(x) /* nothing */
18074 _ACEOF
18075 ;;
18076 esac
18077
18078
18079
18080 if test "X$prefix" = "XNONE"; then
18081 acl_final_prefix="$ac_default_prefix"
18082 else
18083 acl_final_prefix="$prefix"
18084 fi
18085 if test "X$exec_prefix" = "XNONE"; then
18086 acl_final_exec_prefix='${prefix}'
18087 else
18088 acl_final_exec_prefix="$exec_prefix"
18089 fi
18090 acl_save_prefix="$prefix"
18091 prefix="$acl_final_prefix"
18092 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18093 prefix="$acl_save_prefix"
18094
18095
18096 # Check whether --with-gnu-ld or --without-gnu-ld was given.
18097 if test "${with_gnu_ld+set}" = set; then
18098 withval="$with_gnu_ld"
18099 test "$withval" = no || with_gnu_ld=yes
18100 else
18101 with_gnu_ld=no
18102 fi;
18103 # Prepare PATH_SEPARATOR.
18104 # The user is always right.
18105 if test "${PATH_SEPARATOR+set}" != set; then
18106 echo "#! /bin/sh" >conf$$.sh
18107 echo "exit 0" >>conf$$.sh
18108 chmod +x conf$$.sh
18109 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18110 PATH_SEPARATOR=';'
18111 else
18112 PATH_SEPARATOR=:
18113 fi
18114 rm -f conf$$.sh
18115 fi
18116 ac_prog=ld
18117 if test "$GCC" = yes; then
18118 # Check if gcc -print-prog-name=ld gives a path.
18119 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
18120 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
18121 case $host in
18122 *-*-mingw*)
18123 # gcc leaves a trailing carriage return which upsets mingw
18124 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18125 *)
18126 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18127 esac
18128 case $ac_prog in
18129 # Accept absolute paths.
18130 [\\/]* | [A-Za-z]:[\\/]*)
18131 re_direlt='/[^/][^/]*/\.\./'
18132 # Canonicalize the path of ld
18133 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
18134 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18135 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18136 done
18137 test -z "$LD" && LD="$ac_prog"
18138 ;;
18139 "")
18140 # If it fails, then pretend we aren't using GCC.
18141 ac_prog=ld
18142 ;;
18143 *)
18144 # If it is relative, then search for the first ld in PATH.
18145 with_gnu_ld=unknown
18146 ;;
18147 esac
18148 elif test "$with_gnu_ld" = yes; then
18149 echo "$as_me:$LINENO: checking for GNU ld" >&5
18150 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
18151 else
18152 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18153 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
18154 fi
18155 if test "${acl_cv_path_LD+set}" = set; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18157 else
18158 if test -z "$LD"; then
18159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
18160 for ac_dir in $PATH; do
18161 test -z "$ac_dir" && ac_dir=.
18162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18163 acl_cv_path_LD="$ac_dir/$ac_prog"
18164 # Check to see if the program is GNU ld. I'd rather use --version,
18165 # but apparently some GNU ld's only accept -v.
18166 # Break only if it was the GNU/non-GNU ld that we prefer.
18167 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
18168 test "$with_gnu_ld" != no && break
18169 else
18170 test "$with_gnu_ld" != yes && break
18171 fi
18172 fi
18173 done
18174 IFS="$ac_save_ifs"
18175 else
18176 acl_cv_path_LD="$LD" # Let the user override the test with a path.
18177 fi
18178 fi
18179
18180 LD="$acl_cv_path_LD"
18181 if test -n "$LD"; then
18182 echo "$as_me:$LINENO: result: $LD" >&5
18183 echo "${ECHO_T}$LD" >&6
18184 else
18185 echo "$as_me:$LINENO: result: no" >&5
18186 echo "${ECHO_T}no" >&6
18187 fi
18188 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18189 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18190 { (exit 1); exit 1; }; }
18191 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18192 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
18193 if test "${acl_cv_prog_gnu_ld+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18195 else
18196 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18197 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
18198 acl_cv_prog_gnu_ld=yes
18199 else
18200 acl_cv_prog_gnu_ld=no
18201 fi
18202 fi
18203 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
18204 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
18205 with_gnu_ld=$acl_cv_prog_gnu_ld
18206
18207
18208
18209 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
18210 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
18211 if test "${acl_cv_rpath+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214
18215 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18216 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18217 . ./conftest.sh
18218 rm -f ./conftest.sh
18219 acl_cv_rpath=done
18220
18221 fi
18222 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
18223 echo "${ECHO_T}$acl_cv_rpath" >&6
18224 wl="$acl_cv_wl"
18225 libext="$acl_cv_libext"
18226 shlibext="$acl_cv_shlibext"
18227 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18228 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18229 hardcode_direct="$acl_cv_hardcode_direct"
18230 hardcode_minus_L="$acl_cv_hardcode_minus_L"
18231 # Check whether --enable-rpath or --disable-rpath was given.
18232 if test "${enable_rpath+set}" = set; then
18233 enableval="$enable_rpath"
18234 :
18235 else
18236 enable_rpath=yes
18237 fi;
18238
18239
18240
18241
18242
18243
18244
18245 use_additional=yes
18246
18247 acl_save_prefix="$prefix"
18248 prefix="$acl_final_prefix"
18249 acl_save_exec_prefix="$exec_prefix"
18250 exec_prefix="$acl_final_exec_prefix"
18251
18252 eval additional_includedir=\"$includedir\"
18253 eval additional_libdir=\"$libdir\"
18254
18255 exec_prefix="$acl_save_exec_prefix"
18256 prefix="$acl_save_prefix"
18257
18258
18259 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
18260 if test "${with_libiconv_prefix+set}" = set; then
18261 withval="$with_libiconv_prefix"
18262
18263 if test "X$withval" = "Xno"; then
18264 use_additional=no
18265 else
18266 if test "X$withval" = "X"; then
18267
18268 acl_save_prefix="$prefix"
18269 prefix="$acl_final_prefix"
18270 acl_save_exec_prefix="$exec_prefix"
18271 exec_prefix="$acl_final_exec_prefix"
18272
18273 eval additional_includedir=\"$includedir\"
18274 eval additional_libdir=\"$libdir\"
18275
18276 exec_prefix="$acl_save_exec_prefix"
18277 prefix="$acl_save_prefix"
18278
18279 else
18280 additional_includedir="$withval/include"
18281 additional_libdir="$withval/lib"
18282 fi
18283 fi
18284
18285 fi;
18286 LIBICONV=
18287 LTLIBICONV=
18288 INCICONV=
18289 rpathdirs=
18290 ltrpathdirs=
18291 names_already_handled=
18292 names_next_round='iconv '
18293 while test -n "$names_next_round"; do
18294 names_this_round="$names_next_round"
18295 names_next_round=
18296 for name in $names_this_round; do
18297 already_handled=
18298 for n in $names_already_handled; do
18299 if test "$n" = "$name"; then
18300 already_handled=yes
18301 break
18302 fi
18303 done
18304 if test -z "$already_handled"; then
18305 names_already_handled="$names_already_handled $name"
18306 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18307 eval value=\"\$HAVE_LIB$uppername\"
18308 if test -n "$value"; then
18309 if test "$value" = yes; then
18310 eval value=\"\$LIB$uppername\"
18311 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18312 eval value=\"\$LTLIB$uppername\"
18313 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18314 else
18315 :
18316 fi
18317 else
18318 found_dir=
18319 found_la=
18320 found_so=
18321 found_a=
18322 if test $use_additional = yes; then
18323 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18324 found_dir="$additional_libdir"
18325 found_so="$additional_libdir/lib$name.$shlibext"
18326 if test -f "$additional_libdir/lib$name.la"; then
18327 found_la="$additional_libdir/lib$name.la"
18328 fi
18329 else
18330 if test -f "$additional_libdir/lib$name.$libext"; then
18331 found_dir="$additional_libdir"
18332 found_a="$additional_libdir/lib$name.$libext"
18333 if test -f "$additional_libdir/lib$name.la"; then
18334 found_la="$additional_libdir/lib$name.la"
18335 fi
18336 fi
18337 fi
18338 fi
18339 if test "X$found_dir" = "X"; then
18340 for x in $LDFLAGS $LTLIBICONV; do
18341
18342 acl_save_prefix="$prefix"
18343 prefix="$acl_final_prefix"
18344 acl_save_exec_prefix="$exec_prefix"
18345 exec_prefix="$acl_final_exec_prefix"
18346 eval x=\"$x\"
18347 exec_prefix="$acl_save_exec_prefix"
18348 prefix="$acl_save_prefix"
18349
18350 case "$x" in
18351 -L*)
18352 dir=`echo "X$x" | sed -e 's/^X-L//'`
18353 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18354 found_dir="$dir"
18355 found_so="$dir/lib$name.$shlibext"
18356 if test -f "$dir/lib$name.la"; then
18357 found_la="$dir/lib$name.la"
18358 fi
18359 else
18360 if test -f "$dir/lib$name.$libext"; then
18361 found_dir="$dir"
18362 found_a="$dir/lib$name.$libext"
18363 if test -f "$dir/lib$name.la"; then
18364 found_la="$dir/lib$name.la"
18365 fi
18366 fi
18367 fi
18368 ;;
18369 esac
18370 if test "X$found_dir" != "X"; then
18371 break
18372 fi
18373 done
18374 fi
18375 if test "X$found_dir" != "X"; then
18376 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18377 if test "X$found_so" != "X"; then
18378 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18379 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18380 else
18381 haveit=
18382 for x in $ltrpathdirs; do
18383 if test "X$x" = "X$found_dir"; then
18384 haveit=yes
18385 break
18386 fi
18387 done
18388 if test -z "$haveit"; then
18389 ltrpathdirs="$ltrpathdirs $found_dir"
18390 fi
18391 if test "$hardcode_direct" = yes; then
18392 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18393 else
18394 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18395 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18396 haveit=
18397 for x in $rpathdirs; do
18398 if test "X$x" = "X$found_dir"; then
18399 haveit=yes
18400 break
18401 fi
18402 done
18403 if test -z "$haveit"; then
18404 rpathdirs="$rpathdirs $found_dir"
18405 fi
18406 else
18407 haveit=
18408 for x in $LDFLAGS $LIBICONV; do
18409
18410 acl_save_prefix="$prefix"
18411 prefix="$acl_final_prefix"
18412 acl_save_exec_prefix="$exec_prefix"
18413 exec_prefix="$acl_final_exec_prefix"
18414 eval x=\"$x\"
18415 exec_prefix="$acl_save_exec_prefix"
18416 prefix="$acl_save_prefix"
18417
18418 if test "X$x" = "X-L$found_dir"; then
18419 haveit=yes
18420 break
18421 fi
18422 done
18423 if test -z "$haveit"; then
18424 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18425 fi
18426 if test "$hardcode_minus_L" != no; then
18427 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18428 else
18429 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18430 fi
18431 fi
18432 fi
18433 fi
18434 else
18435 if test "X$found_a" != "X"; then
18436 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18437 else
18438 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18439 fi
18440 fi
18441 additional_includedir=
18442 case "$found_dir" in
18443 */lib | */lib/)
18444 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18445 additional_includedir="$basedir/include"
18446 ;;
18447 esac
18448 if test "X$additional_includedir" != "X"; then
18449 if test "X$additional_includedir" != "X/usr/include"; then
18450 haveit=
18451 if test "X$additional_includedir" = "X/usr/local/include"; then
18452 if test -n "$GCC"; then
18453 case $host_os in
18454 linux*) haveit=yes;;
18455 esac
18456 fi
18457 fi
18458 if test -z "$haveit"; then
18459 for x in $CPPFLAGS $INCICONV; do
18460
18461 acl_save_prefix="$prefix"
18462 prefix="$acl_final_prefix"
18463 acl_save_exec_prefix="$exec_prefix"
18464 exec_prefix="$acl_final_exec_prefix"
18465 eval x=\"$x\"
18466 exec_prefix="$acl_save_exec_prefix"
18467 prefix="$acl_save_prefix"
18468
18469 if test "X$x" = "X-I$additional_includedir"; then
18470 haveit=yes
18471 break
18472 fi
18473 done
18474 if test -z "$haveit"; then
18475 if test -d "$additional_includedir"; then
18476 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18477 fi
18478 fi
18479 fi
18480 fi
18481 fi
18482 if test -n "$found_la"; then
18483 save_libdir="$libdir"
18484 case "$found_la" in
18485 */* | *\\*) . "$found_la" ;;
18486 *) . "./$found_la" ;;
18487 esac
18488 libdir="$save_libdir"
18489 for dep in $dependency_libs; do
18490 case "$dep" in
18491 -L*)
18492 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18493 if test "X$additional_libdir" != "X/usr/lib"; then
18494 haveit=
18495 if test "X$additional_libdir" = "X/usr/local/lib"; then
18496 if test -n "$GCC"; then
18497 case $host_os in
18498 linux*) haveit=yes;;
18499 esac
18500 fi
18501 fi
18502 if test -z "$haveit"; then
18503 haveit=
18504 for x in $LDFLAGS $LIBICONV; do
18505
18506 acl_save_prefix="$prefix"
18507 prefix="$acl_final_prefix"
18508 acl_save_exec_prefix="$exec_prefix"
18509 exec_prefix="$acl_final_exec_prefix"
18510 eval x=\"$x\"
18511 exec_prefix="$acl_save_exec_prefix"
18512 prefix="$acl_save_prefix"
18513
18514 if test "X$x" = "X-L$additional_libdir"; then
18515 haveit=yes
18516 break
18517 fi
18518 done
18519 if test -z "$haveit"; then
18520 if test -d "$additional_libdir"; then
18521 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18522 fi
18523 fi
18524 haveit=
18525 for x in $LDFLAGS $LTLIBICONV; do
18526
18527 acl_save_prefix="$prefix"
18528 prefix="$acl_final_prefix"
18529 acl_save_exec_prefix="$exec_prefix"
18530 exec_prefix="$acl_final_exec_prefix"
18531 eval x=\"$x\"
18532 exec_prefix="$acl_save_exec_prefix"
18533 prefix="$acl_save_prefix"
18534
18535 if test "X$x" = "X-L$additional_libdir"; then
18536 haveit=yes
18537 break
18538 fi
18539 done
18540 if test -z "$haveit"; then
18541 if test -d "$additional_libdir"; then
18542 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18543 fi
18544 fi
18545 fi
18546 fi
18547 ;;
18548 -R*)
18549 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18550 if test "$enable_rpath" != no; then
18551 haveit=
18552 for x in $rpathdirs; do
18553 if test "X$x" = "X$dir"; then
18554 haveit=yes
18555 break
18556 fi
18557 done
18558 if test -z "$haveit"; then
18559 rpathdirs="$rpathdirs $dir"
18560 fi
18561 haveit=
18562 for x in $ltrpathdirs; do
18563 if test "X$x" = "X$dir"; then
18564 haveit=yes
18565 break
18566 fi
18567 done
18568 if test -z "$haveit"; then
18569 ltrpathdirs="$ltrpathdirs $dir"
18570 fi
18571 fi
18572 ;;
18573 -l*)
18574 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18575 ;;
18576 *.la)
18577 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18578 ;;
18579 *)
18580 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18581 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18582 ;;
18583 esac
18584 done
18585 fi
18586 else
18587 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18588 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18589 fi
18590 fi
18591 fi
18592 done
18593 done
18594 if test "X$rpathdirs" != "X"; then
18595 if test -n "$hardcode_libdir_separator"; then
18596 alldirs=
18597 for found_dir in $rpathdirs; do
18598 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18599 done
18600 acl_save_libdir="$libdir"
18601 libdir="$alldirs"
18602 eval flag=\"$hardcode_libdir_flag_spec\"
18603 libdir="$acl_save_libdir"
18604 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18605 else
18606 for found_dir in $rpathdirs; do
18607 acl_save_libdir="$libdir"
18608 libdir="$found_dir"
18609 eval flag=\"$hardcode_libdir_flag_spec\"
18610 libdir="$acl_save_libdir"
18611 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18612 done
18613 fi
18614 fi
18615 if test "X$ltrpathdirs" != "X"; then
18616 for found_dir in $ltrpathdirs; do
18617 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18618 done
18619 fi
18620
18621
18622
18623
18624
18625
18626
18627 am_save_CPPFLAGS="$CPPFLAGS"
18628
18629 for element in $INCICONV; do
18630 haveit=
18631 for x in $CPPFLAGS; do
18632
18633 acl_save_prefix="$prefix"
18634 prefix="$acl_final_prefix"
18635 acl_save_exec_prefix="$exec_prefix"
18636 exec_prefix="$acl_final_exec_prefix"
18637 eval x=\"$x\"
18638 exec_prefix="$acl_save_exec_prefix"
18639 prefix="$acl_save_prefix"
18640
18641 if test "X$x" = "X$element"; then
18642 haveit=yes
18643 break
18644 fi
18645 done
18646 if test -z "$haveit"; then
18647 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18648 fi
18649 done
18650
18651
18652 echo "$as_me:$LINENO: checking for iconv" >&5
18653 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
18654 if test "${am_cv_func_iconv+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657
18658 am_cv_func_iconv="no, consider installing GNU libiconv"
18659 am_cv_lib_iconv=no
18660 if test x$gcc_no_link = xyes; then
18661 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18662 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18663 { (exit 1); exit 1; }; }
18664 fi
18665 cat >conftest.$ac_ext <<_ACEOF
18666 /* confdefs.h. */
18667 _ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18671 #include <stdlib.h>
18672 #include <iconv.h>
18673 int
18674 main ()
18675 {
18676 iconv_t cd = iconv_open("","");
18677 iconv(cd,NULL,NULL,NULL,NULL);
18678 iconv_close(cd);
18679 ;
18680 return 0;
18681 }
18682 _ACEOF
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18685 (eval $ac_link) 2>conftest.er1
18686 ac_status=$?
18687 grep -v '^ *+' conftest.er1 >conftest.err
18688 rm -f conftest.er1
18689 cat conftest.err >&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } &&
18692 { ac_try='test -z "$ac_c_werror_flag"
18693 || test ! -s conftest.err'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; } &&
18699 { ac_try='test -s conftest$ac_exeext'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 am_cv_func_iconv=yes
18706 else
18707 echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18709
18710 fi
18711 rm -f conftest.err conftest.$ac_objext \
18712 conftest$ac_exeext conftest.$ac_ext
18713 if test "$am_cv_func_iconv" != yes; then
18714 am_save_LIBS="$LIBS"
18715 LIBS="$LIBS $LIBICONV"
18716 if test x$gcc_no_link = xyes; then
18717 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18718 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18719 { (exit 1); exit 1; }; }
18720 fi
18721 cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h. */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 #include <stdlib.h>
18728 #include <iconv.h>
18729 int
18730 main ()
18731 {
18732 iconv_t cd = iconv_open("","");
18733 iconv(cd,NULL,NULL,NULL,NULL);
18734 iconv_close(cd);
18735 ;
18736 return 0;
18737 }
18738 _ACEOF
18739 rm -f conftest.$ac_objext conftest$ac_exeext
18740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18741 (eval $ac_link) 2>conftest.er1
18742 ac_status=$?
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } &&
18748 { ac_try='test -z "$ac_c_werror_flag"
18749 || test ! -s conftest.err'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; } &&
18755 { ac_try='test -s conftest$ac_exeext'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 am_cv_lib_iconv=yes
18762 am_cv_func_iconv=yes
18763 else
18764 echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18766
18767 fi
18768 rm -f conftest.err conftest.$ac_objext \
18769 conftest$ac_exeext conftest.$ac_ext
18770 LIBS="$am_save_LIBS"
18771 fi
18772
18773 fi
18774 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
18775 echo "${ECHO_T}$am_cv_func_iconv" >&6
18776 if test "$am_cv_func_iconv" = yes; then
18777
18778 cat >>confdefs.h <<\_ACEOF
18779 #define HAVE_ICONV 1
18780 _ACEOF
18781
18782 fi
18783 if test "$am_cv_lib_iconv" = yes; then
18784 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
18785 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
18786 echo "$as_me:$LINENO: result: $LIBICONV" >&5
18787 echo "${ECHO_T}$LIBICONV" >&6
18788 else
18789 CPPFLAGS="$am_save_CPPFLAGS"
18790 LIBICONV=
18791 LTLIBICONV=
18792 fi
18793
18794
18795
18796 if test "$am_cv_func_iconv" = yes; then
18797 echo "$as_me:$LINENO: checking for iconv declaration" >&5
18798 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
18799 if test "${am_cv_proto_iconv+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802
18803 cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h. */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18809
18810 #include <stdlib.h>
18811 #include <iconv.h>
18812 extern
18813 #ifdef __cplusplus
18814 "C"
18815 #endif
18816 #if defined(__STDC__) || defined(__cplusplus)
18817 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18818 #else
18819 size_t iconv();
18820 #endif
18821
18822 int
18823 main ()
18824 {
18825
18826 ;
18827 return 0;
18828 }
18829 _ACEOF
18830 rm -f conftest.$ac_objext
18831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18832 (eval $ac_compile) 2>conftest.er1
18833 ac_status=$?
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } &&
18839 { ac_try='test -z "$ac_c_werror_flag"
18840 || test ! -s conftest.err'
18841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 (eval $ac_try) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest.$ac_objext'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; }; then
18852 am_cv_proto_iconv_arg1=""
18853 else
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18856
18857 am_cv_proto_iconv_arg1="const"
18858 fi
18859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18860 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
18861 fi
18862
18863 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18864 echo "$as_me:$LINENO: result: ${ac_t:-
18865 }$am_cv_proto_iconv" >&5
18866 echo "${ECHO_T}${ac_t:-
18867 }$am_cv_proto_iconv" >&6
18868
18869 cat >>confdefs.h <<_ACEOF
18870 #define ICONV_CONST $am_cv_proto_iconv_arg1
18871 _ACEOF
18872
18873 fi
18874
18875
18876 if test "x${GCC}" = xyes; then
18877
18878 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
18879
18880
18881 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
18882
18883
18884 ERROR_CFLAGS=
18885 if test "x${ENABLE_WERROR}" = xyes; then
18886 ERROR_CFLAGS='-Werror'
18887 fi
18888
18889 fi
18890
18891 if test "x${COMPILE_XMLJ}" = xyes; then
18892
18893 succeeded=no
18894
18895 if test -z "$PKG_CONFIG"; then
18896 # Extract the first word of "pkg-config", so it can be a program name with args.
18897 set dummy pkg-config; ac_word=$2
18898 echo "$as_me:$LINENO: checking for $ac_word" >&5
18899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18900 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903 case $PKG_CONFIG in
18904 [\\/]* | ?:[\\/]*)
18905 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18906 ;;
18907 *)
18908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18909 for as_dir in $PATH
18910 do
18911 IFS=$as_save_IFS
18912 test -z "$as_dir" && as_dir=.
18913 for ac_exec_ext in '' $ac_executable_extensions; do
18914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18915 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18917 break 2
18918 fi
18919 done
18920 done
18921
18922 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18923 ;;
18924 esac
18925 fi
18926 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18927
18928 if test -n "$PKG_CONFIG"; then
18929 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18930 echo "${ECHO_T}$PKG_CONFIG" >&6
18931 else
18932 echo "$as_me:$LINENO: result: no" >&5
18933 echo "${ECHO_T}no" >&6
18934 fi
18935
18936 fi
18937
18938 if test "$PKG_CONFIG" = "no" ; then
18939 echo "*** The pkg-config script could not be found. Make sure it is"
18940 echo "*** in your path, or set the PKG_CONFIG environment variable"
18941 echo "*** to the full path to pkg-config."
18942 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18943 else
18944 PKG_CONFIG_MIN_VERSION=0.9.0
18945 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18946 echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
18947 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
18948
18949 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
18950 echo "$as_me:$LINENO: result: yes" >&5
18951 echo "${ECHO_T}yes" >&6
18952 succeeded=yes
18953
18954 echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
18955 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
18956 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
18957 echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
18958 echo "${ECHO_T}$XML_CFLAGS" >&6
18959
18960 echo "$as_me:$LINENO: checking XML_LIBS" >&5
18961 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
18962 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
18963 echo "$as_me:$LINENO: result: $XML_LIBS" >&5
18964 echo "${ECHO_T}$XML_LIBS" >&6
18965 else
18966 XML_CFLAGS=""
18967 XML_LIBS=""
18968 ## If we have a custom action on failure, don't print errors, but
18969 ## do set a variable so people can do so.
18970 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
18971 echo $XML_PKG_ERRORS
18972 fi
18973
18974
18975
18976 else
18977 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18978 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18979 fi
18980 fi
18981
18982 if test $succeeded = yes; then
18983 :
18984 else
18985 { { echo "$as_me:$LINENO: error: Library requirements (libxml-2.0 >= 2.6.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
18986 echo "$as_me: error: Library requirements (libxml-2.0 >= 2.6.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
18987 { (exit 1); exit 1; }; }
18988 fi
18989
18990
18991 succeeded=no
18992
18993 if test -z "$PKG_CONFIG"; then
18994 # Extract the first word of "pkg-config", so it can be a program name with args.
18995 set dummy pkg-config; ac_word=$2
18996 echo "$as_me:$LINENO: checking for $ac_word" >&5
18997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 else
19001 case $PKG_CONFIG in
19002 [\\/]* | ?:[\\/]*)
19003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19004 ;;
19005 *)
19006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19007 for as_dir in $PATH
19008 do
19009 IFS=$as_save_IFS
19010 test -z "$as_dir" && as_dir=.
19011 for ac_exec_ext in '' $ac_executable_extensions; do
19012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19015 break 2
19016 fi
19017 done
19018 done
19019
19020 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19021 ;;
19022 esac
19023 fi
19024 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19025
19026 if test -n "$PKG_CONFIG"; then
19027 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19028 echo "${ECHO_T}$PKG_CONFIG" >&6
19029 else
19030 echo "$as_me:$LINENO: result: no" >&5
19031 echo "${ECHO_T}no" >&6
19032 fi
19033
19034 fi
19035
19036 if test "$PKG_CONFIG" = "no" ; then
19037 echo "*** The pkg-config script could not be found. Make sure it is"
19038 echo "*** in your path, or set the PKG_CONFIG environment variable"
19039 echo "*** to the full path to pkg-config."
19040 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19041 else
19042 PKG_CONFIG_MIN_VERSION=0.9.0
19043 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19044 echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
19045 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
19046
19047 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
19048 echo "$as_me:$LINENO: result: yes" >&5
19049 echo "${ECHO_T}yes" >&6
19050 succeeded=yes
19051
19052 echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
19053 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
19054 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
19055 echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
19056 echo "${ECHO_T}$XSLT_CFLAGS" >&6
19057
19058 echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
19059 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
19060 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
19061 echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
19062 echo "${ECHO_T}$XSLT_LIBS" >&6
19063 else
19064 XSLT_CFLAGS=""
19065 XSLT_LIBS=""
19066 ## If we have a custom action on failure, don't print errors, but
19067 ## do set a variable so people can do so.
19068 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
19069 echo $XSLT_PKG_ERRORS
19070 fi
19071
19072
19073
19074 else
19075 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19076 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19077 fi
19078 fi
19079
19080 if test $succeeded = yes; then
19081 :
19082 else
19083 { { echo "$as_me:$LINENO: error: Library requirements (libxslt >= 1.1.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19084 echo "$as_me: error: Library requirements (libxslt >= 1.1.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19085 { (exit 1); exit 1; }; }
19086 fi
19087
19088
19089
19090
19091
19092 fi
19093
19094 if test "x${COMPILE_GTK_PEER}" = xyes; then
19095 echo "$as_me:$LINENO: checking for X" >&5
19096 echo $ECHO_N "checking for X... $ECHO_C" >&6
19097
19098
19099 # Check whether --with-x or --without-x was given.
19100 if test "${with_x+set}" = set; then
19101 withval="$with_x"
19102
19103 fi;
19104 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19105 if test "x$with_x" = xno; then
19106 # The user explicitly disabled X.
19107 have_x=disabled
19108 else
19109 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19110 # Both variables are already set.
19111 have_x=yes
19112 else
19113 if test "${ac_cv_have_x+set}" = set; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 else
19116 # One or both of the vars are not set, and there is no cached value.
19117 ac_x_includes=no ac_x_libraries=no
19118 rm -fr conftest.dir
19119 if mkdir conftest.dir; then
19120 cd conftest.dir
19121 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19122 cat >Imakefile <<'_ACEOF'
19123 acfindx:
19124 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19125 _ACEOF
19126 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19127 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19128 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19129 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19130 for ac_extension in a so sl; do
19131 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19132 test -f $ac_im_libdir/libX11.$ac_extension; then
19133 ac_im_usrlibdir=$ac_im_libdir; break
19134 fi
19135 done
19136 # Screen out bogus values from the imake configuration. They are
19137 # bogus both because they are the default anyway, and because
19138 # using them would break gcc on systems where it needs fixed includes.
19139 case $ac_im_incroot in
19140 /usr/include) ;;
19141 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19142 esac
19143 case $ac_im_usrlibdir in
19144 /usr/lib | /lib) ;;
19145 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19146 esac
19147 fi
19148 cd ..
19149 rm -fr conftest.dir
19150 fi
19151
19152 # Standard set of common directories for X headers.
19153 # Check X11 before X11Rn because it is often a symlink to the current release.
19154 ac_x_header_dirs='
19155 /usr/X11/include
19156 /usr/X11R6/include
19157 /usr/X11R5/include
19158 /usr/X11R4/include
19159
19160 /usr/include/X11
19161 /usr/include/X11R6
19162 /usr/include/X11R5
19163 /usr/include/X11R4
19164
19165 /usr/local/X11/include
19166 /usr/local/X11R6/include
19167 /usr/local/X11R5/include
19168 /usr/local/X11R4/include
19169
19170 /usr/local/include/X11
19171 /usr/local/include/X11R6
19172 /usr/local/include/X11R5
19173 /usr/local/include/X11R4
19174
19175 /usr/X386/include
19176 /usr/x386/include
19177 /usr/XFree86/include/X11
19178
19179 /usr/include
19180 /usr/local/include
19181 /usr/unsupported/include
19182 /usr/athena/include
19183 /usr/local/x11r5/include
19184 /usr/lpp/Xamples/include
19185
19186 /usr/openwin/include
19187 /usr/openwin/share/include'
19188
19189 if test "$ac_x_includes" = no; then
19190 # Guess where to find include files, by looking for Xlib.h.
19191 # First, try using that file with no special directory specified.
19192 cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h. */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19198 #include <X11/Xlib.h>
19199 _ACEOF
19200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } >/dev/null; then
19208 if test -s conftest.err; then
19209 ac_cpp_err=$ac_c_preproc_warn_flag
19210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19211 else
19212 ac_cpp_err=
19213 fi
19214 else
19215 ac_cpp_err=yes
19216 fi
19217 if test -z "$ac_cpp_err"; then
19218 # We can compile using X headers with no special include directory.
19219 ac_x_includes=
19220 else
19221 echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19223
19224 for ac_dir in $ac_x_header_dirs; do
19225 if test -r "$ac_dir/X11/Xlib.h"; then
19226 ac_x_includes=$ac_dir
19227 break
19228 fi
19229 done
19230 fi
19231 rm -f conftest.err conftest.$ac_ext
19232 fi # $ac_x_includes = no
19233
19234 if test "$ac_x_libraries" = no; then
19235 # Check for the libraries.
19236 # See if we find them without any special options.
19237 # Don't add to $LIBS permanently.
19238 ac_save_LIBS=$LIBS
19239 LIBS="-lX11 $LIBS"
19240 if test x$gcc_no_link = xyes; then
19241 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19242 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19243 { (exit 1); exit 1; }; }
19244 fi
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 #include <X11/Xlib.h>
19252 int
19253 main ()
19254 {
19255 XrmInitialize ()
19256 ;
19257 return 0;
19258 }
19259 _ACEOF
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19262 (eval $ac_link) 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
19269 { ac_try='test -z "$ac_c_werror_flag"
19270 || test ! -s conftest.err'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try='test -s conftest$ac_exeext'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; }; then
19282 LIBS=$ac_save_LIBS
19283 # We can link X programs with no special library path.
19284 ac_x_libraries=
19285 else
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19288
19289 LIBS=$ac_save_LIBS
19290 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19291 do
19292 # Don't even attempt the hair of trying to link an X program!
19293 for ac_extension in a so sl; do
19294 if test -r $ac_dir/libXt.$ac_extension; then
19295 ac_x_libraries=$ac_dir
19296 break 2
19297 fi
19298 done
19299 done
19300 fi
19301 rm -f conftest.err conftest.$ac_objext \
19302 conftest$ac_exeext conftest.$ac_ext
19303 fi # $ac_x_libraries = no
19304
19305 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19306 # Didn't find X anywhere. Cache the known absence of X.
19307 ac_cv_have_x="have_x=no"
19308 else
19309 # Record where we found X for the cache.
19310 ac_cv_have_x="have_x=yes \
19311 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19312 fi
19313 fi
19314
19315 fi
19316 eval "$ac_cv_have_x"
19317 fi # $with_x != no
19318
19319 if test "$have_x" != yes; then
19320 echo "$as_me:$LINENO: result: $have_x" >&5
19321 echo "${ECHO_T}$have_x" >&6
19322 no_x=yes
19323 else
19324 # If each of the values was on the command line, it overrides each guess.
19325 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19326 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19327 # Update the cache value to reflect the command line values.
19328 ac_cv_have_x="have_x=yes \
19329 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19330 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19331 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19332 fi
19333
19334 if test "$no_x" = yes; then
19335 # Not all programs may use this symbol, but it does not hurt to define it.
19336
19337 cat >>confdefs.h <<\_ACEOF
19338 #define X_DISPLAY_MISSING 1
19339 _ACEOF
19340
19341 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19342 else
19343 if test -n "$x_includes"; then
19344 X_CFLAGS="$X_CFLAGS -I$x_includes"
19345 fi
19346
19347 # It would also be nice to do this for all -L options, not just this one.
19348 if test -n "$x_libraries"; then
19349 X_LIBS="$X_LIBS -L$x_libraries"
19350 # For Solaris; some versions of Sun CC require a space after -R and
19351 # others require no space. Words are not sufficient . . . .
19352 case `(uname -sr) 2>/dev/null` in
19353 "SunOS 5"*)
19354 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19355 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19356 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19357 if test x$gcc_no_link = xyes; then
19358 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19359 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19360 { (exit 1); exit 1; }; }
19361 fi
19362 cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h. */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368
19369 int
19370 main ()
19371 {
19372
19373 ;
19374 return 0;
19375 }
19376 _ACEOF
19377 rm -f conftest.$ac_objext conftest$ac_exeext
19378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19379 (eval $ac_link) 2>conftest.er1
19380 ac_status=$?
19381 grep -v '^ *+' conftest.er1 >conftest.err
19382 rm -f conftest.er1
19383 cat conftest.err >&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } &&
19386 { ac_try='test -z "$ac_c_werror_flag"
19387 || test ! -s conftest.err'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; } &&
19393 { ac_try='test -s conftest$ac_exeext'
19394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395 (eval $ac_try) 2>&5
19396 ac_status=$?
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; }; then
19399 ac_R_nospace=yes
19400 else
19401 echo "$as_me: failed program was:" >&5
19402 sed 's/^/| /' conftest.$ac_ext >&5
19403
19404 ac_R_nospace=no
19405 fi
19406 rm -f conftest.err conftest.$ac_objext \
19407 conftest$ac_exeext conftest.$ac_ext
19408 if test $ac_R_nospace = yes; then
19409 echo "$as_me:$LINENO: result: no" >&5
19410 echo "${ECHO_T}no" >&6
19411 X_LIBS="$X_LIBS -R$x_libraries"
19412 else
19413 LIBS="$ac_xsave_LIBS -R $x_libraries"
19414 if test x$gcc_no_link = xyes; then
19415 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19416 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19417 { (exit 1); exit 1; }; }
19418 fi
19419 cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h. */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h. */
19425
19426 int
19427 main ()
19428 {
19429
19430 ;
19431 return 0;
19432 }
19433 _ACEOF
19434 rm -f conftest.$ac_objext conftest$ac_exeext
19435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19436 (eval $ac_link) 2>conftest.er1
19437 ac_status=$?
19438 grep -v '^ *+' conftest.er1 >conftest.err
19439 rm -f conftest.er1
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } &&
19443 { ac_try='test -z "$ac_c_werror_flag"
19444 || test ! -s conftest.err'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; } &&
19450 { ac_try='test -s conftest$ac_exeext'
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; }; then
19456 ac_R_space=yes
19457 else
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19460
19461 ac_R_space=no
19462 fi
19463 rm -f conftest.err conftest.$ac_objext \
19464 conftest$ac_exeext conftest.$ac_ext
19465 if test $ac_R_space = yes; then
19466 echo "$as_me:$LINENO: result: yes" >&5
19467 echo "${ECHO_T}yes" >&6
19468 X_LIBS="$X_LIBS -R $x_libraries"
19469 else
19470 echo "$as_me:$LINENO: result: neither works" >&5
19471 echo "${ECHO_T}neither works" >&6
19472 fi
19473 fi
19474 LIBS=$ac_xsave_LIBS
19475 esac
19476 fi
19477
19478 # Check for system-dependent libraries X programs must link with.
19479 # Do this before checking for the system-independent R6 libraries
19480 # (-lICE), since we may need -lsocket or whatever for X linking.
19481
19482 if test "$ISC" = yes; then
19483 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19484 else
19485 # Martyn Johnson says this is needed for Ultrix, if the X
19486 # libraries were built with DECnet support. And Karl Berry says
19487 # the Alpha needs dnet_stub (dnet does not exist).
19488 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19489 if test x$gcc_no_link = xyes; then
19490 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19492 { (exit 1); exit 1; }; }
19493 fi
19494 cat >conftest.$ac_ext <<_ACEOF
19495 /* confdefs.h. */
19496 _ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19500
19501 /* Override any gcc2 internal prototype to avoid an error. */
19502 #ifdef __cplusplus
19503 extern "C"
19504 #endif
19505 /* We use char because int might match the return type of a gcc2
19506 builtin and then its argument prototype would still apply. */
19507 char XOpenDisplay ();
19508 int
19509 main ()
19510 {
19511 XOpenDisplay ();
19512 ;
19513 return 0;
19514 }
19515 _ACEOF
19516 rm -f conftest.$ac_objext conftest$ac_exeext
19517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19518 (eval $ac_link) 2>conftest.er1
19519 ac_status=$?
19520 grep -v '^ *+' conftest.er1 >conftest.err
19521 rm -f conftest.er1
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -z "$ac_c_werror_flag"
19526 || test ! -s conftest.err'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; } &&
19532 { ac_try='test -s conftest$ac_exeext'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 :
19539 else
19540 echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19542
19543 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19544 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19545 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548 ac_check_lib_save_LIBS=$LIBS
19549 LIBS="-ldnet $LIBS"
19550 if test x$gcc_no_link = xyes; then
19551 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19552 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19553 { (exit 1); exit 1; }; }
19554 fi
19555 cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h. */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19561
19562 /* Override any gcc2 internal prototype to avoid an error. */
19563 #ifdef __cplusplus
19564 extern "C"
19565 #endif
19566 /* We use char because int might match the return type of a gcc2
19567 builtin and then its argument prototype would still apply. */
19568 char dnet_ntoa ();
19569 int
19570 main ()
19571 {
19572 dnet_ntoa ();
19573 ;
19574 return 0;
19575 }
19576 _ACEOF
19577 rm -f conftest.$ac_objext conftest$ac_exeext
19578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19579 (eval $ac_link) 2>conftest.er1
19580 ac_status=$?
19581 grep -v '^ *+' conftest.er1 >conftest.err
19582 rm -f conftest.er1
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -z "$ac_c_werror_flag"
19587 || test ! -s conftest.err'
19588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589 (eval $ac_try) 2>&5
19590 ac_status=$?
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; } &&
19593 { ac_try='test -s conftest$ac_exeext'
19594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595 (eval $ac_try) 2>&5
19596 ac_status=$?
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; }; then
19599 ac_cv_lib_dnet_dnet_ntoa=yes
19600 else
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19603
19604 ac_cv_lib_dnet_dnet_ntoa=no
19605 fi
19606 rm -f conftest.err conftest.$ac_objext \
19607 conftest$ac_exeext conftest.$ac_ext
19608 LIBS=$ac_check_lib_save_LIBS
19609 fi
19610 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19611 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19612 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19613 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19614 fi
19615
19616 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19617 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19618 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19619 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622 ac_check_lib_save_LIBS=$LIBS
19623 LIBS="-ldnet_stub $LIBS"
19624 if test x$gcc_no_link = xyes; then
19625 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19626 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19627 { (exit 1); exit 1; }; }
19628 fi
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635
19636 /* Override any gcc2 internal prototype to avoid an error. */
19637 #ifdef __cplusplus
19638 extern "C"
19639 #endif
19640 /* We use char because int might match the return type of a gcc2
19641 builtin and then its argument prototype would still apply. */
19642 char dnet_ntoa ();
19643 int
19644 main ()
19645 {
19646 dnet_ntoa ();
19647 ;
19648 return 0;
19649 }
19650 _ACEOF
19651 rm -f conftest.$ac_objext conftest$ac_exeext
19652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19653 (eval $ac_link) 2>conftest.er1
19654 ac_status=$?
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
19660 { ac_try='test -z "$ac_c_werror_flag"
19661 || test ! -s conftest.err'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; } &&
19667 { ac_try='test -s conftest$ac_exeext'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19673 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19674 else
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19677
19678 ac_cv_lib_dnet_stub_dnet_ntoa=no
19679 fi
19680 rm -f conftest.err conftest.$ac_objext \
19681 conftest$ac_exeext conftest.$ac_ext
19682 LIBS=$ac_check_lib_save_LIBS
19683 fi
19684 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19685 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19686 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19687 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19688 fi
19689
19690 fi
19691 fi
19692 rm -f conftest.err conftest.$ac_objext \
19693 conftest$ac_exeext conftest.$ac_ext
19694 LIBS="$ac_xsave_LIBS"
19695
19696 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19697 # to get the SysV transport functions.
19698 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19699 # needs -lnsl.
19700 # The nsl library prevents programs from opening the X display
19701 # on Irix 5.2, according to T.E. Dickey.
19702 # The functions gethostbyname, getservbyname, and inet_addr are
19703 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19704 echo "$as_me:$LINENO: checking for gethostbyname" >&5
19705 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19706 if test "${ac_cv_func_gethostbyname+set}" = set; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19708 else
19709 if test x$gcc_no_link = xyes; then
19710 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19711 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19712 { (exit 1); exit 1; }; }
19713 fi
19714 cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h. */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19722 #define gethostbyname innocuous_gethostbyname
19723
19724 /* System header to define __stub macros and hopefully few prototypes,
19725 which can conflict with char gethostbyname (); below.
19726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19727 <limits.h> exists even on freestanding compilers. */
19728
19729 #ifdef __STDC__
19730 # include <limits.h>
19731 #else
19732 # include <assert.h>
19733 #endif
19734
19735 #undef gethostbyname
19736
19737 /* Override any gcc2 internal prototype to avoid an error. */
19738 #ifdef __cplusplus
19739 extern "C"
19740 {
19741 #endif
19742 /* We use char because int might match the return type of a gcc2
19743 builtin and then its argument prototype would still apply. */
19744 char gethostbyname ();
19745 /* The GNU C library defines this for functions which it implements
19746 to always fail with ENOSYS. Some functions are actually named
19747 something starting with __ and the normal name is an alias. */
19748 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19749 choke me
19750 #else
19751 char (*f) () = gethostbyname;
19752 #endif
19753 #ifdef __cplusplus
19754 }
19755 #endif
19756
19757 int
19758 main ()
19759 {
19760 return f != gethostbyname;
19761 ;
19762 return 0;
19763 }
19764 _ACEOF
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19767 (eval $ac_link) 2>conftest.er1
19768 ac_status=$?
19769 grep -v '^ *+' conftest.er1 >conftest.err
19770 rm -f conftest.er1
19771 cat conftest.err >&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } &&
19774 { ac_try='test -z "$ac_c_werror_flag"
19775 || test ! -s conftest.err'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; } &&
19781 { ac_try='test -s conftest$ac_exeext'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; }; then
19787 ac_cv_func_gethostbyname=yes
19788 else
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19791
19792 ac_cv_func_gethostbyname=no
19793 fi
19794 rm -f conftest.err conftest.$ac_objext \
19795 conftest$ac_exeext conftest.$ac_ext
19796 fi
19797 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19798 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19799
19800 if test $ac_cv_func_gethostbyname = no; then
19801 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19802 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19803 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19804 echo $ECHO_N "(cached) $ECHO_C" >&6
19805 else
19806 ac_check_lib_save_LIBS=$LIBS
19807 LIBS="-lnsl $LIBS"
19808 if test x$gcc_no_link = xyes; then
19809 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19811 { (exit 1); exit 1; }; }
19812 fi
19813 cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h. */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19819
19820 /* Override any gcc2 internal prototype to avoid an error. */
19821 #ifdef __cplusplus
19822 extern "C"
19823 #endif
19824 /* We use char because int might match the return type of a gcc2
19825 builtin and then its argument prototype would still apply. */
19826 char gethostbyname ();
19827 int
19828 main ()
19829 {
19830 gethostbyname ();
19831 ;
19832 return 0;
19833 }
19834 _ACEOF
19835 rm -f conftest.$ac_objext conftest$ac_exeext
19836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19837 (eval $ac_link) 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try='test -z "$ac_c_werror_flag"
19845 || test ! -s conftest.err'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest$ac_exeext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 ac_cv_lib_nsl_gethostbyname=yes
19858 else
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862 ac_cv_lib_nsl_gethostbyname=no
19863 fi
19864 rm -f conftest.err conftest.$ac_objext \
19865 conftest$ac_exeext conftest.$ac_ext
19866 LIBS=$ac_check_lib_save_LIBS
19867 fi
19868 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19869 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19870 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19871 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19872 fi
19873
19874 if test $ac_cv_lib_nsl_gethostbyname = no; then
19875 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19876 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19877 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 else
19880 ac_check_lib_save_LIBS=$LIBS
19881 LIBS="-lbsd $LIBS"
19882 if test x$gcc_no_link = xyes; then
19883 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19884 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19885 { (exit 1); exit 1; }; }
19886 fi
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h. */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893
19894 /* Override any gcc2 internal prototype to avoid an error. */
19895 #ifdef __cplusplus
19896 extern "C"
19897 #endif
19898 /* We use char because int might match the return type of a gcc2
19899 builtin and then its argument prototype would still apply. */
19900 char gethostbyname ();
19901 int
19902 main ()
19903 {
19904 gethostbyname ();
19905 ;
19906 return 0;
19907 }
19908 _ACEOF
19909 rm -f conftest.$ac_objext conftest$ac_exeext
19910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19911 (eval $ac_link) 2>conftest.er1
19912 ac_status=$?
19913 grep -v '^ *+' conftest.er1 >conftest.err
19914 rm -f conftest.er1
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } &&
19918 { ac_try='test -z "$ac_c_werror_flag"
19919 || test ! -s conftest.err'
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; } &&
19925 { ac_try='test -s conftest$ac_exeext'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
19931 ac_cv_lib_bsd_gethostbyname=yes
19932 else
19933 echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19935
19936 ac_cv_lib_bsd_gethostbyname=no
19937 fi
19938 rm -f conftest.err conftest.$ac_objext \
19939 conftest$ac_exeext conftest.$ac_ext
19940 LIBS=$ac_check_lib_save_LIBS
19941 fi
19942 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19943 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19944 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19945 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19946 fi
19947
19948 fi
19949 fi
19950
19951 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19952 # socket/setsockopt and other routines are undefined under SCO ODT
19953 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19954 # on later versions), says Simon Leinen: it contains gethostby*
19955 # variants that don't use the name server (or something). -lsocket
19956 # must be given before -lnsl if both are needed. We assume that
19957 # if connect needs -lnsl, so does gethostbyname.
19958 echo "$as_me:$LINENO: checking for connect" >&5
19959 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19960 if test "${ac_cv_func_connect+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963 if test x$gcc_no_link = xyes; then
19964 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19965 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19966 { (exit 1); exit 1; }; }
19967 fi
19968 cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h. */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19976 #define connect innocuous_connect
19977
19978 /* System header to define __stub macros and hopefully few prototypes,
19979 which can conflict with char connect (); below.
19980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19981 <limits.h> exists even on freestanding compilers. */
19982
19983 #ifdef __STDC__
19984 # include <limits.h>
19985 #else
19986 # include <assert.h>
19987 #endif
19988
19989 #undef connect
19990
19991 /* Override any gcc2 internal prototype to avoid an error. */
19992 #ifdef __cplusplus
19993 extern "C"
19994 {
19995 #endif
19996 /* We use char because int might match the return type of a gcc2
19997 builtin and then its argument prototype would still apply. */
19998 char connect ();
19999 /* The GNU C library defines this for functions which it implements
20000 to always fail with ENOSYS. Some functions are actually named
20001 something starting with __ and the normal name is an alias. */
20002 #if defined (__stub_connect) || defined (__stub___connect)
20003 choke me
20004 #else
20005 char (*f) () = connect;
20006 #endif
20007 #ifdef __cplusplus
20008 }
20009 #endif
20010
20011 int
20012 main ()
20013 {
20014 return f != connect;
20015 ;
20016 return 0;
20017 }
20018 _ACEOF
20019 rm -f conftest.$ac_objext conftest$ac_exeext
20020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20021 (eval $ac_link) 2>conftest.er1
20022 ac_status=$?
20023 grep -v '^ *+' conftest.er1 >conftest.err
20024 rm -f conftest.er1
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } &&
20028 { ac_try='test -z "$ac_c_werror_flag"
20029 || test ! -s conftest.err'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } &&
20035 { ac_try='test -s conftest$ac_exeext'
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
20041 ac_cv_func_connect=yes
20042 else
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20045
20046 ac_cv_func_connect=no
20047 fi
20048 rm -f conftest.err conftest.$ac_objext \
20049 conftest$ac_exeext conftest.$ac_ext
20050 fi
20051 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20052 echo "${ECHO_T}$ac_cv_func_connect" >&6
20053
20054 if test $ac_cv_func_connect = no; then
20055 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20056 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20057 if test "${ac_cv_lib_socket_connect+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060 ac_check_lib_save_LIBS=$LIBS
20061 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20062 if test x$gcc_no_link = xyes; then
20063 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20064 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20065 { (exit 1); exit 1; }; }
20066 fi
20067 cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h. */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073
20074 /* Override any gcc2 internal prototype to avoid an error. */
20075 #ifdef __cplusplus
20076 extern "C"
20077 #endif
20078 /* We use char because int might match the return type of a gcc2
20079 builtin and then its argument prototype would still apply. */
20080 char connect ();
20081 int
20082 main ()
20083 {
20084 connect ();
20085 ;
20086 return 0;
20087 }
20088 _ACEOF
20089 rm -f conftest.$ac_objext conftest$ac_exeext
20090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20091 (eval $ac_link) 2>conftest.er1
20092 ac_status=$?
20093 grep -v '^ *+' conftest.er1 >conftest.err
20094 rm -f conftest.er1
20095 cat conftest.err >&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } &&
20098 { ac_try='test -z "$ac_c_werror_flag"
20099 || test ! -s conftest.err'
20100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; } &&
20105 { ac_try='test -s conftest$ac_exeext'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 ac_cv_lib_socket_connect=yes
20112 else
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116 ac_cv_lib_socket_connect=no
20117 fi
20118 rm -f conftest.err conftest.$ac_objext \
20119 conftest$ac_exeext conftest.$ac_ext
20120 LIBS=$ac_check_lib_save_LIBS
20121 fi
20122 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20123 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20124 if test $ac_cv_lib_socket_connect = yes; then
20125 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20126 fi
20127
20128 fi
20129
20130 # Guillermo Gomez says -lposix is necessary on A/UX.
20131 echo "$as_me:$LINENO: checking for remove" >&5
20132 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20133 if test "${ac_cv_func_remove+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20135 else
20136 if test x$gcc_no_link = xyes; then
20137 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20138 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20139 { (exit 1); exit 1; }; }
20140 fi
20141 cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h. */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20149 #define remove innocuous_remove
20150
20151 /* System header to define __stub macros and hopefully few prototypes,
20152 which can conflict with char remove (); below.
20153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20154 <limits.h> exists even on freestanding compilers. */
20155
20156 #ifdef __STDC__
20157 # include <limits.h>
20158 #else
20159 # include <assert.h>
20160 #endif
20161
20162 #undef remove
20163
20164 /* Override any gcc2 internal prototype to avoid an error. */
20165 #ifdef __cplusplus
20166 extern "C"
20167 {
20168 #endif
20169 /* We use char because int might match the return type of a gcc2
20170 builtin and then its argument prototype would still apply. */
20171 char remove ();
20172 /* The GNU C library defines this for functions which it implements
20173 to always fail with ENOSYS. Some functions are actually named
20174 something starting with __ and the normal name is an alias. */
20175 #if defined (__stub_remove) || defined (__stub___remove)
20176 choke me
20177 #else
20178 char (*f) () = remove;
20179 #endif
20180 #ifdef __cplusplus
20181 }
20182 #endif
20183
20184 int
20185 main ()
20186 {
20187 return f != remove;
20188 ;
20189 return 0;
20190 }
20191 _ACEOF
20192 rm -f conftest.$ac_objext conftest$ac_exeext
20193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20194 (eval $ac_link) 2>conftest.er1
20195 ac_status=$?
20196 grep -v '^ *+' conftest.er1 >conftest.err
20197 rm -f conftest.er1
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -z "$ac_c_werror_flag"
20202 || test ! -s conftest.err'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; } &&
20208 { ac_try='test -s conftest$ac_exeext'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20214 ac_cv_func_remove=yes
20215 else
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219 ac_cv_func_remove=no
20220 fi
20221 rm -f conftest.err conftest.$ac_objext \
20222 conftest$ac_exeext conftest.$ac_ext
20223 fi
20224 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20225 echo "${ECHO_T}$ac_cv_func_remove" >&6
20226
20227 if test $ac_cv_func_remove = no; then
20228 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20229 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20230 if test "${ac_cv_lib_posix_remove+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20232 else
20233 ac_check_lib_save_LIBS=$LIBS
20234 LIBS="-lposix $LIBS"
20235 if test x$gcc_no_link = xyes; then
20236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20238 { (exit 1); exit 1; }; }
20239 fi
20240 cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h. */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20246
20247 /* Override any gcc2 internal prototype to avoid an error. */
20248 #ifdef __cplusplus
20249 extern "C"
20250 #endif
20251 /* We use char because int might match the return type of a gcc2
20252 builtin and then its argument prototype would still apply. */
20253 char remove ();
20254 int
20255 main ()
20256 {
20257 remove ();
20258 ;
20259 return 0;
20260 }
20261 _ACEOF
20262 rm -f conftest.$ac_objext conftest$ac_exeext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20264 (eval $ac_link) 2>conftest.er1
20265 ac_status=$?
20266 grep -v '^ *+' conftest.er1 >conftest.err
20267 rm -f conftest.er1
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -z "$ac_c_werror_flag"
20272 || test ! -s conftest.err'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20275 ac_status=$?
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; } &&
20278 { ac_try='test -s conftest$ac_exeext'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20281 ac_status=$?
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
20284 ac_cv_lib_posix_remove=yes
20285 else
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20288
20289 ac_cv_lib_posix_remove=no
20290 fi
20291 rm -f conftest.err conftest.$ac_objext \
20292 conftest$ac_exeext conftest.$ac_ext
20293 LIBS=$ac_check_lib_save_LIBS
20294 fi
20295 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20296 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20297 if test $ac_cv_lib_posix_remove = yes; then
20298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20299 fi
20300
20301 fi
20302
20303 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20304 echo "$as_me:$LINENO: checking for shmat" >&5
20305 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20306 if test "${ac_cv_func_shmat+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 else
20309 if test x$gcc_no_link = xyes; then
20310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20312 { (exit 1); exit 1; }; }
20313 fi
20314 cat >conftest.$ac_ext <<_ACEOF
20315 /* confdefs.h. */
20316 _ACEOF
20317 cat confdefs.h >>conftest.$ac_ext
20318 cat >>conftest.$ac_ext <<_ACEOF
20319 /* end confdefs.h. */
20320 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20322 #define shmat innocuous_shmat
20323
20324 /* System header to define __stub macros and hopefully few prototypes,
20325 which can conflict with char shmat (); below.
20326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20327 <limits.h> exists even on freestanding compilers. */
20328
20329 #ifdef __STDC__
20330 # include <limits.h>
20331 #else
20332 # include <assert.h>
20333 #endif
20334
20335 #undef shmat
20336
20337 /* Override any gcc2 internal prototype to avoid an error. */
20338 #ifdef __cplusplus
20339 extern "C"
20340 {
20341 #endif
20342 /* We use char because int might match the return type of a gcc2
20343 builtin and then its argument prototype would still apply. */
20344 char shmat ();
20345 /* The GNU C library defines this for functions which it implements
20346 to always fail with ENOSYS. Some functions are actually named
20347 something starting with __ and the normal name is an alias. */
20348 #if defined (__stub_shmat) || defined (__stub___shmat)
20349 choke me
20350 #else
20351 char (*f) () = shmat;
20352 #endif
20353 #ifdef __cplusplus
20354 }
20355 #endif
20356
20357 int
20358 main ()
20359 {
20360 return f != shmat;
20361 ;
20362 return 0;
20363 }
20364 _ACEOF
20365 rm -f conftest.$ac_objext conftest$ac_exeext
20366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20367 (eval $ac_link) 2>conftest.er1
20368 ac_status=$?
20369 grep -v '^ *+' conftest.er1 >conftest.err
20370 rm -f conftest.er1
20371 cat conftest.err >&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } &&
20374 { ac_try='test -z "$ac_c_werror_flag"
20375 || test ! -s conftest.err'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; } &&
20381 { ac_try='test -s conftest$ac_exeext'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; }; then
20387 ac_cv_func_shmat=yes
20388 else
20389 echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.$ac_ext >&5
20391
20392 ac_cv_func_shmat=no
20393 fi
20394 rm -f conftest.err conftest.$ac_objext \
20395 conftest$ac_exeext conftest.$ac_ext
20396 fi
20397 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20398 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20399
20400 if test $ac_cv_func_shmat = no; then
20401 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20402 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20403 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406 ac_check_lib_save_LIBS=$LIBS
20407 LIBS="-lipc $LIBS"
20408 if test x$gcc_no_link = xyes; then
20409 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20410 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20411 { (exit 1); exit 1; }; }
20412 fi
20413 cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h. */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20419
20420 /* Override any gcc2 internal prototype to avoid an error. */
20421 #ifdef __cplusplus
20422 extern "C"
20423 #endif
20424 /* We use char because int might match the return type of a gcc2
20425 builtin and then its argument prototype would still apply. */
20426 char shmat ();
20427 int
20428 main ()
20429 {
20430 shmat ();
20431 ;
20432 return 0;
20433 }
20434 _ACEOF
20435 rm -f conftest.$ac_objext conftest$ac_exeext
20436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20437 (eval $ac_link) 2>conftest.er1
20438 ac_status=$?
20439 grep -v '^ *+' conftest.er1 >conftest.err
20440 rm -f conftest.er1
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } &&
20444 { ac_try='test -z "$ac_c_werror_flag"
20445 || test ! -s conftest.err'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } &&
20451 { ac_try='test -s conftest$ac_exeext'
20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; }; then
20457 ac_cv_lib_ipc_shmat=yes
20458 else
20459 echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20461
20462 ac_cv_lib_ipc_shmat=no
20463 fi
20464 rm -f conftest.err conftest.$ac_objext \
20465 conftest$ac_exeext conftest.$ac_ext
20466 LIBS=$ac_check_lib_save_LIBS
20467 fi
20468 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20469 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20470 if test $ac_cv_lib_ipc_shmat = yes; then
20471 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20472 fi
20473
20474 fi
20475 fi
20476
20477 # Check for libraries that X11R6 Xt/Xaw programs need.
20478 ac_save_LDFLAGS=$LDFLAGS
20479 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20480 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20481 # check for ICE first), but we must link in the order -lSM -lICE or
20482 # we get undefined symbols. So assume we have SM if we have ICE.
20483 # These have to be linked with before -lX11, unlike the other
20484 # libraries we check for below, so use a different variable.
20485 # John Interrante, Karl Berry
20486 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20487 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20488 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491 ac_check_lib_save_LIBS=$LIBS
20492 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20493 if test x$gcc_no_link = xyes; then
20494 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20495 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20496 { (exit 1); exit 1; }; }
20497 fi
20498 cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h. */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20504
20505 /* Override any gcc2 internal prototype to avoid an error. */
20506 #ifdef __cplusplus
20507 extern "C"
20508 #endif
20509 /* We use char because int might match the return type of a gcc2
20510 builtin and then its argument prototype would still apply. */
20511 char IceConnectionNumber ();
20512 int
20513 main ()
20514 {
20515 IceConnectionNumber ();
20516 ;
20517 return 0;
20518 }
20519 _ACEOF
20520 rm -f conftest.$ac_objext conftest$ac_exeext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20522 (eval $ac_link) 2>conftest.er1
20523 ac_status=$?
20524 grep -v '^ *+' conftest.er1 >conftest.err
20525 rm -f conftest.er1
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } &&
20529 { ac_try='test -z "$ac_c_werror_flag"
20530 || test ! -s conftest.err'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20533 ac_status=$?
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; } &&
20536 { ac_try='test -s conftest$ac_exeext'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; }; then
20542 ac_cv_lib_ICE_IceConnectionNumber=yes
20543 else
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547 ac_cv_lib_ICE_IceConnectionNumber=no
20548 fi
20549 rm -f conftest.err conftest.$ac_objext \
20550 conftest$ac_exeext conftest.$ac_ext
20551 LIBS=$ac_check_lib_save_LIBS
20552 fi
20553 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20554 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20555 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20556 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20557 fi
20558
20559 LDFLAGS=$ac_save_LDFLAGS
20560
20561 fi
20562
20563 if test "$no_x" = yes; then
20564 { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
20565 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
20566 { (exit 1); exit 1; }; }
20567 fi
20568 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
20569 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
20570 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 else
20573 ac_check_lib_save_LIBS=$LIBS
20574 LIBS="-lXtst ${X_LIBS} $LIBS"
20575 if test x$gcc_no_link = xyes; then
20576 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20578 { (exit 1); exit 1; }; }
20579 fi
20580 cat >conftest.$ac_ext <<_ACEOF
20581 /* confdefs.h. */
20582 _ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20586
20587 /* Override any gcc2 internal prototype to avoid an error. */
20588 #ifdef __cplusplus
20589 extern "C"
20590 #endif
20591 /* We use char because int might match the return type of a gcc2
20592 builtin and then its argument prototype would still apply. */
20593 char XTestQueryExtension ();
20594 int
20595 main ()
20596 {
20597 XTestQueryExtension ();
20598 ;
20599 return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20604 (eval $ac_link) 2>conftest.er1
20605 ac_status=$?
20606 grep -v '^ *+' conftest.er1 >conftest.err
20607 rm -f conftest.er1
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
20611 { ac_try='test -z "$ac_c_werror_flag"
20612 || test ! -s conftest.err'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest$ac_exeext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20621 ac_status=$?
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ac_cv_lib_Xtst_XTestQueryExtension=yes
20625 else
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ac_cv_lib_Xtst_XTestQueryExtension=no
20630 fi
20631 rm -f conftest.err conftest.$ac_objext \
20632 conftest$ac_exeext conftest.$ac_ext
20633 LIBS=$ac_check_lib_save_LIBS
20634 fi
20635 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
20636 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
20637 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
20638 XTEST_LIBS="$XTEST_LIBS -lX11 -lXtst"
20639 else
20640 { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
20641 echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
20642 { (exit 1); exit 1; }; }
20643 fi
20644
20645
20646
20647 succeeded=no
20648
20649 if test -z "$PKG_CONFIG"; then
20650 # Extract the first word of "pkg-config", so it can be a program name with args.
20651 set dummy pkg-config; ac_word=$2
20652 echo "$as_me:$LINENO: checking for $ac_word" >&5
20653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20654 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20655 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 else
20657 case $PKG_CONFIG in
20658 [\\/]* | ?:[\\/]*)
20659 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20660 ;;
20661 *)
20662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20663 for as_dir in $PATH
20664 do
20665 IFS=$as_save_IFS
20666 test -z "$as_dir" && as_dir=.
20667 for ac_exec_ext in '' $ac_executable_extensions; do
20668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20669 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20671 break 2
20672 fi
20673 done
20674 done
20675
20676 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20677 ;;
20678 esac
20679 fi
20680 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20681
20682 if test -n "$PKG_CONFIG"; then
20683 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20684 echo "${ECHO_T}$PKG_CONFIG" >&6
20685 else
20686 echo "$as_me:$LINENO: result: no" >&5
20687 echo "${ECHO_T}no" >&6
20688 fi
20689
20690 fi
20691
20692 if test "$PKG_CONFIG" = "no" ; then
20693 echo "*** The pkg-config script could not be found. Make sure it is"
20694 echo "*** in your path, or set the PKG_CONFIG environment variable"
20695 echo "*** to the full path to pkg-config."
20696 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20697 else
20698 PKG_CONFIG_MIN_VERSION=0.9.0
20699 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20700 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
20701 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
20702
20703 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
20704 echo "$as_me:$LINENO: result: yes" >&5
20705 echo "${ECHO_T}yes" >&6
20706 succeeded=yes
20707
20708 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
20709 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
20710 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
20711 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
20712 echo "${ECHO_T}$GTK_CFLAGS" >&6
20713
20714 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
20715 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
20716 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
20717 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
20718 echo "${ECHO_T}$GTK_LIBS" >&6
20719 else
20720 GTK_CFLAGS=""
20721 GTK_LIBS=""
20722 ## If we have a custom action on failure, don't print errors, but
20723 ## do set a variable so people can do so.
20724 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
20725 echo $GTK_PKG_ERRORS
20726 fi
20727
20728
20729
20730 else
20731 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20732 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20733 fi
20734 fi
20735
20736 if test $succeeded = yes; then
20737 :
20738 else
20739 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20740 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20741 { (exit 1); exit 1; }; }
20742 fi
20743
20744
20745 succeeded=no
20746
20747 if test -z "$PKG_CONFIG"; then
20748 # Extract the first word of "pkg-config", so it can be a program name with args.
20749 set dummy pkg-config; ac_word=$2
20750 echo "$as_me:$LINENO: checking for $ac_word" >&5
20751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20752 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755 case $PKG_CONFIG in
20756 [\\/]* | ?:[\\/]*)
20757 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20758 ;;
20759 *)
20760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20761 for as_dir in $PATH
20762 do
20763 IFS=$as_save_IFS
20764 test -z "$as_dir" && as_dir=.
20765 for ac_exec_ext in '' $ac_executable_extensions; do
20766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20767 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20769 break 2
20770 fi
20771 done
20772 done
20773
20774 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20775 ;;
20776 esac
20777 fi
20778 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20779
20780 if test -n "$PKG_CONFIG"; then
20781 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20782 echo "${ECHO_T}$PKG_CONFIG" >&6
20783 else
20784 echo "$as_me:$LINENO: result: no" >&5
20785 echo "${ECHO_T}no" >&6
20786 fi
20787
20788 fi
20789
20790 if test "$PKG_CONFIG" = "no" ; then
20791 echo "*** The pkg-config script could not be found. Make sure it is"
20792 echo "*** in your path, or set the PKG_CONFIG environment variable"
20793 echo "*** to the full path to pkg-config."
20794 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20795 else
20796 PKG_CONFIG_MIN_VERSION=0.9.0
20797 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20798 echo "$as_me:$LINENO: checking for freetype2" >&5
20799 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
20800
20801 if $PKG_CONFIG --exists "freetype2" ; then
20802 echo "$as_me:$LINENO: result: yes" >&5
20803 echo "${ECHO_T}yes" >&6
20804 succeeded=yes
20805
20806 echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
20807 echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6
20808 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
20809 echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
20810 echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6
20811
20812 echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
20813 echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6
20814 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
20815 echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
20816 echo "${ECHO_T}$FREETYPE2_LIBS" >&6
20817 else
20818 FREETYPE2_CFLAGS=""
20819 FREETYPE2_LIBS=""
20820 ## If we have a custom action on failure, don't print errors, but
20821 ## do set a variable so people can do so.
20822 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
20823 echo $FREETYPE2_PKG_ERRORS
20824 fi
20825
20826
20827
20828 else
20829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20831 fi
20832 fi
20833
20834 if test $succeeded = yes; then
20835 :
20836 else
20837 { { echo "$as_me:$LINENO: error: Library requirements (freetype2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20838 echo "$as_me: error: Library requirements (freetype2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20839 { (exit 1); exit 1; }; }
20840 fi
20841
20842
20843 succeeded=no
20844
20845 if test -z "$PKG_CONFIG"; then
20846 # Extract the first word of "pkg-config", so it can be a program name with args.
20847 set dummy pkg-config; ac_word=$2
20848 echo "$as_me:$LINENO: checking for $ac_word" >&5
20849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20850 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 else
20853 case $PKG_CONFIG in
20854 [\\/]* | ?:[\\/]*)
20855 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20856 ;;
20857 *)
20858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20859 for as_dir in $PATH
20860 do
20861 IFS=$as_save_IFS
20862 test -z "$as_dir" && as_dir=.
20863 for ac_exec_ext in '' $ac_executable_extensions; do
20864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20865 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20867 break 2
20868 fi
20869 done
20870 done
20871
20872 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20873 ;;
20874 esac
20875 fi
20876 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20877
20878 if test -n "$PKG_CONFIG"; then
20879 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20880 echo "${ECHO_T}$PKG_CONFIG" >&6
20881 else
20882 echo "$as_me:$LINENO: result: no" >&5
20883 echo "${ECHO_T}no" >&6
20884 fi
20885
20886 fi
20887
20888 if test "$PKG_CONFIG" = "no" ; then
20889 echo "*** The pkg-config script could not be found. Make sure it is"
20890 echo "*** in your path, or set the PKG_CONFIG environment variable"
20891 echo "*** to the full path to pkg-config."
20892 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20893 else
20894 PKG_CONFIG_MIN_VERSION=0.9.0
20895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20896 echo "$as_me:$LINENO: checking for pangoft2" >&5
20897 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
20898
20899 if $PKG_CONFIG --exists "pangoft2" ; then
20900 echo "$as_me:$LINENO: result: yes" >&5
20901 echo "${ECHO_T}yes" >&6
20902 succeeded=yes
20903
20904 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20905 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
20906 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
20907 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20908 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
20909
20910 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20911 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
20912 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
20913 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20914 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
20915 else
20916 PANGOFT2_CFLAGS=""
20917 PANGOFT2_LIBS=""
20918 ## If we have a custom action on failure, don't print errors, but
20919 ## do set a variable so people can do so.
20920 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
20921 echo $PANGOFT2_PKG_ERRORS
20922 fi
20923
20924
20925
20926 else
20927 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20928 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20929 fi
20930 fi
20931
20932 if test $succeeded = yes; then
20933 :
20934 else
20935 { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20936 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20937 { (exit 1); exit 1; }; }
20938 fi
20939
20940 echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
20941 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
20942 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 else
20945 ac_check_lib_save_LIBS=$LIBS
20946 LIBS="-lXrender ${X_LIBS} $LIBS"
20947 if test x$gcc_no_link = xyes; then
20948 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20949 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20950 { (exit 1); exit 1; }; }
20951 fi
20952 cat >conftest.$ac_ext <<_ACEOF
20953 /* confdefs.h. */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20958
20959 /* Override any gcc2 internal prototype to avoid an error. */
20960 #ifdef __cplusplus
20961 extern "C"
20962 #endif
20963 /* We use char because int might match the return type of a gcc2
20964 builtin and then its argument prototype would still apply. */
20965 char XRenderQueryExtension ();
20966 int
20967 main ()
20968 {
20969 XRenderQueryExtension ();
20970 ;
20971 return 0;
20972 }
20973 _ACEOF
20974 rm -f conftest.$ac_objext conftest$ac_exeext
20975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20976 (eval $ac_link) 2>conftest.er1
20977 ac_status=$?
20978 grep -v '^ *+' conftest.er1 >conftest.err
20979 rm -f conftest.er1
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } &&
20983 { ac_try='test -z "$ac_c_werror_flag"
20984 || test ! -s conftest.err'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; } &&
20990 { ac_try='test -s conftest$ac_exeext'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
20996 ac_cv_lib_Xrender_XRenderQueryExtension=yes
20997 else
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21000
21001 ac_cv_lib_Xrender_XRenderQueryExtension=no
21002 fi
21003 rm -f conftest.err conftest.$ac_objext \
21004 conftest$ac_exeext conftest.$ac_ext
21005 LIBS=$ac_check_lib_save_LIBS
21006 fi
21007 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
21008 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
21009 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
21010
21011 cat >>confdefs.h <<\_ACEOF
21012 #define HAVE_XRENDER 1
21013 _ACEOF
21014 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
21015 else
21016 true
21017 fi
21018
21019
21020 echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
21021 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6
21022 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
21023 echo $ECHO_N "(cached) $ECHO_C" >&6
21024 else
21025 ac_check_lib_save_LIBS=$LIBS
21026 LIBS="-lXrandr ${X_LIBS} $LIBS"
21027 if test x$gcc_no_link = xyes; then
21028 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21029 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21030 { (exit 1); exit 1; }; }
21031 fi
21032 cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h. */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21038
21039 /* Override any gcc2 internal prototype to avoid an error. */
21040 #ifdef __cplusplus
21041 extern "C"
21042 #endif
21043 /* We use char because int might match the return type of a gcc2
21044 builtin and then its argument prototype would still apply. */
21045 char XRRQueryExtension ();
21046 int
21047 main ()
21048 {
21049 XRRQueryExtension ();
21050 ;
21051 return 0;
21052 }
21053 _ACEOF
21054 rm -f conftest.$ac_objext conftest$ac_exeext
21055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21056 (eval $ac_link) 2>conftest.er1
21057 ac_status=$?
21058 grep -v '^ *+' conftest.er1 >conftest.err
21059 rm -f conftest.er1
21060 cat conftest.err >&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } &&
21063 { ac_try='test -z "$ac_c_werror_flag"
21064 || test ! -s conftest.err'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; } &&
21070 { ac_try='test -s conftest$ac_exeext'
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21073 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; }; then
21076 ac_cv_lib_Xrandr_XRRQueryExtension=yes
21077 else
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21080
21081 ac_cv_lib_Xrandr_XRRQueryExtension=no
21082 fi
21083 rm -f conftest.err conftest.$ac_objext \
21084 conftest$ac_exeext conftest.$ac_ext
21085 LIBS=$ac_check_lib_save_LIBS
21086 fi
21087 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
21088 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6
21089 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
21090
21091 cat >>confdefs.h <<\_ACEOF
21092 #define HAVE_XRANDR 1
21093 _ACEOF
21094 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
21095 else
21096 true
21097 fi
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107 fi
21108
21109 if test "x${COMPILE_GCONF_PEER}" = xyes; then
21110
21111 succeeded=no
21112
21113 if test -z "$PKG_CONFIG"; then
21114 # Extract the first word of "pkg-config", so it can be a program name with args.
21115 set dummy pkg-config; ac_word=$2
21116 echo "$as_me:$LINENO: checking for $ac_word" >&5
21117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21119 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 else
21121 case $PKG_CONFIG in
21122 [\\/]* | ?:[\\/]*)
21123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21124 ;;
21125 *)
21126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21127 for as_dir in $PATH
21128 do
21129 IFS=$as_save_IFS
21130 test -z "$as_dir" && as_dir=.
21131 for ac_exec_ext in '' $ac_executable_extensions; do
21132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21135 break 2
21136 fi
21137 done
21138 done
21139
21140 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21141 ;;
21142 esac
21143 fi
21144 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21145
21146 if test -n "$PKG_CONFIG"; then
21147 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21148 echo "${ECHO_T}$PKG_CONFIG" >&6
21149 else
21150 echo "$as_me:$LINENO: result: no" >&5
21151 echo "${ECHO_T}no" >&6
21152 fi
21153
21154 fi
21155
21156 if test "$PKG_CONFIG" = "no" ; then
21157 echo "*** The pkg-config script could not be found. Make sure it is"
21158 echo "*** in your path, or set the PKG_CONFIG environment variable"
21159 echo "*** to the full path to pkg-config."
21160 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21161 else
21162 PKG_CONFIG_MIN_VERSION=0.9.0
21163 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21164 echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.11.2" >&5
21165 echo $ECHO_N "checking for gconf-2.0 >= 2.11.2... $ECHO_C" >&6
21166
21167 if $PKG_CONFIG --exists "gconf-2.0 >= 2.11.2" ; then
21168 echo "$as_me:$LINENO: result: yes" >&5
21169 echo "${ECHO_T}yes" >&6
21170 succeeded=yes
21171
21172 echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
21173 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
21174 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.11.2"`
21175 echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
21176 echo "${ECHO_T}$GCONF_CFLAGS" >&6
21177
21178 echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
21179 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
21180 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.11.2"`
21181 echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
21182 echo "${ECHO_T}$GCONF_LIBS" >&6
21183 else
21184 GCONF_CFLAGS=""
21185 GCONF_LIBS=""
21186 ## If we have a custom action on failure, don't print errors, but
21187 ## do set a variable so people can do so.
21188 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.11.2"`
21189 echo $GCONF_PKG_ERRORS
21190 fi
21191
21192
21193
21194 else
21195 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21196 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21197 fi
21198 fi
21199
21200 if test $succeeded = yes; then
21201 :
21202 else
21203 { { echo "$as_me:$LINENO: error: Library requirements (gconf-2.0 >= 2.11.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
21204 echo "$as_me: error: Library requirements (gconf-2.0 >= 2.11.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
21205 { (exit 1); exit 1; }; }
21206 fi
21207
21208
21209
21210
21211 succeeded=no
21212
21213 if test -z "$PKG_CONFIG"; then
21214 # Extract the first word of "pkg-config", so it can be a program name with args.
21215 set dummy pkg-config; ac_word=$2
21216 echo "$as_me:$LINENO: checking for $ac_word" >&5
21217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21218 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 else
21221 case $PKG_CONFIG in
21222 [\\/]* | ?:[\\/]*)
21223 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21224 ;;
21225 *)
21226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21227 for as_dir in $PATH
21228 do
21229 IFS=$as_save_IFS
21230 test -z "$as_dir" && as_dir=.
21231 for ac_exec_ext in '' $ac_executable_extensions; do
21232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21233 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21235 break 2
21236 fi
21237 done
21238 done
21239
21240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21241 ;;
21242 esac
21243 fi
21244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21245
21246 if test -n "$PKG_CONFIG"; then
21247 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21248 echo "${ECHO_T}$PKG_CONFIG" >&6
21249 else
21250 echo "$as_me:$LINENO: result: no" >&5
21251 echo "${ECHO_T}no" >&6
21252 fi
21253
21254 fi
21255
21256 if test "$PKG_CONFIG" = "no" ; then
21257 echo "*** The pkg-config script could not be found. Make sure it is"
21258 echo "*** in your path, or set the PKG_CONFIG environment variable"
21259 echo "*** to the full path to pkg-config."
21260 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21261 else
21262 PKG_CONFIG_MIN_VERSION=0.9.0
21263 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21264 echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
21265 echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6
21266
21267 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
21268 echo "$as_me:$LINENO: result: yes" >&5
21269 echo "${ECHO_T}yes" >&6
21270 succeeded=yes
21271
21272 echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
21273 echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
21274 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
21275 echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
21276 echo "${ECHO_T}$GDK_CFLAGS" >&6
21277
21278 echo "$as_me:$LINENO: checking GDK_LIBS" >&5
21279 echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
21280 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
21281 echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
21282 echo "${ECHO_T}$GDK_LIBS" >&6
21283 else
21284 GDK_CFLAGS=""
21285 GDK_LIBS=""
21286 ## If we have a custom action on failure, don't print errors, but
21287 ## do set a variable so people can do so.
21288 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
21289 echo $GDK_PKG_ERRORS
21290 fi
21291
21292
21293
21294 else
21295 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21296 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21297 fi
21298 fi
21299
21300 if test $succeeded = yes; then
21301 :
21302 else
21303 { { echo "$as_me:$LINENO: error: Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
21304 echo "$as_me: error: Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
21305 { (exit 1); exit 1; }; }
21306 fi
21307
21308
21309
21310 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
21311 if test "$USE_GCONF_PREFS_PEER" = ""; then
21312 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
21313 fi
21314 fi
21315
21316 if test "x${COMPILE_QT_PEER}" = xyes; then
21317
21318 succeeded=no
21319
21320 if test -z "$PKG_CONFIG"; then
21321 # Extract the first word of "pkg-config", so it can be a program name with args.
21322 set dummy pkg-config; ac_word=$2
21323 echo "$as_me:$LINENO: checking for $ac_word" >&5
21324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21325 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328 case $PKG_CONFIG in
21329 [\\/]* | ?:[\\/]*)
21330 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21331 ;;
21332 *)
21333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21334 for as_dir in $PATH
21335 do
21336 IFS=$as_save_IFS
21337 test -z "$as_dir" && as_dir=.
21338 for ac_exec_ext in '' $ac_executable_extensions; do
21339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21340 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21342 break 2
21343 fi
21344 done
21345 done
21346
21347 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21348 ;;
21349 esac
21350 fi
21351 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21352
21353 if test -n "$PKG_CONFIG"; then
21354 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21355 echo "${ECHO_T}$PKG_CONFIG" >&6
21356 else
21357 echo "$as_me:$LINENO: result: no" >&5
21358 echo "${ECHO_T}no" >&6
21359 fi
21360
21361 fi
21362
21363 if test "$PKG_CONFIG" = "no" ; then
21364 echo "*** The pkg-config script could not be found. Make sure it is"
21365 echo "*** in your path, or set the PKG_CONFIG environment variable"
21366 echo "*** to the full path to pkg-config."
21367 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21368 else
21369 PKG_CONFIG_MIN_VERSION=0.9.0
21370 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21371 echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
21372 echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6
21373
21374 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
21375 echo "$as_me:$LINENO: result: yes" >&5
21376 echo "${ECHO_T}yes" >&6
21377 succeeded=yes
21378
21379 echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
21380 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
21381 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
21382 echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
21383 echo "${ECHO_T}$QT_CFLAGS" >&6
21384
21385 echo "$as_me:$LINENO: checking QT_LIBS" >&5
21386 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
21387 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
21388 echo "$as_me:$LINENO: result: $QT_LIBS" >&5
21389 echo "${ECHO_T}$QT_LIBS" >&6
21390 else
21391 QT_CFLAGS=""
21392 QT_LIBS=""
21393 ## If we have a custom action on failure, don't print errors, but
21394 ## do set a variable so people can do so.
21395 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
21396
21397 fi
21398
21399
21400
21401 else
21402 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21403 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21404 fi
21405 fi
21406
21407 if test $succeeded = yes; then
21408 HAVE_QT4="yes"
21409 else
21410 HAVE_QT4="no"
21411 fi
21412
21413 if test "x$HAVE_QT4" = "xyes"; then
21414 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
21415 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
21416 as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
21417 echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
21418 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
21419 if eval "test \"\${$as_ac_File+set}\" = set"; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21421 else
21422 test "$cross_compiling" = yes &&
21423 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21424 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21425 { (exit 1); exit 1; }; }
21426 if test -r "$QT_INCLUDE_DIR/QWidget"; then
21427 eval "$as_ac_File=yes"
21428 else
21429 eval "$as_ac_File=no"
21430 fi
21431 fi
21432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
21433 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
21434 if test `eval echo '${'$as_ac_File'}'` = yes; then
21435 { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
21436 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
21437 else
21438 as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
21439 echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
21440 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
21441 if eval "test \"\${$as_ac_File+set}\" = set"; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21443 else
21444 test "$cross_compiling" = yes &&
21445 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21446 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21447 { (exit 1); exit 1; }; }
21448 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
21449 eval "$as_ac_File=yes"
21450 else
21451 eval "$as_ac_File=no"
21452 fi
21453 fi
21454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
21455 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
21456 if test `eval echo '${'$as_ac_File'}'` = yes; then
21457 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
21458 else
21459 { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
21460 echo "$as_me: WARNING: QWidget not found" >&2;}
21461 fi
21462
21463 fi
21464
21465 # Extract the first word of "moc", so it can be a program name with args.
21466 set dummy moc; ac_word=$2
21467 echo "$as_me:$LINENO: checking for $ac_word" >&5
21468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21469 if test "${ac_cv_prog_MOC+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21472 if test -n "$MOC"; then
21473 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21474 else
21475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21476 for as_dir in $PATH
21477 do
21478 IFS=$as_save_IFS
21479 test -z "$as_dir" && as_dir=.
21480 for ac_exec_ext in '' $ac_executable_extensions; do
21481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21482 ac_cv_prog_MOC="moc"
21483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21484 break 2
21485 fi
21486 done
21487 done
21488
21489 fi
21490 fi
21491 MOC=$ac_cv_prog_MOC
21492 if test -n "$MOC"; then
21493 echo "$as_me:$LINENO: result: $MOC" >&5
21494 echo "${ECHO_T}$MOC" >&6
21495 else
21496 echo "$as_me:$LINENO: result: no" >&5
21497 echo "${ECHO_T}no" >&6
21498 fi
21499
21500 # Extract the first word of "moc-qt4", so it can be a program name with args.
21501 set dummy moc-qt4; ac_word=$2
21502 echo "$as_me:$LINENO: checking for $ac_word" >&5
21503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21504 if test "${ac_cv_prog_MOC+set}" = set; then
21505 echo $ECHO_N "(cached) $ECHO_C" >&6
21506 else
21507 if test -n "$MOC"; then
21508 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21509 else
21510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21511 for as_dir in $PATH
21512 do
21513 IFS=$as_save_IFS
21514 test -z "$as_dir" && as_dir=.
21515 for ac_exec_ext in '' $ac_executable_extensions; do
21516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21517 ac_cv_prog_MOC="moc-qt4"
21518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21519 break 2
21520 fi
21521 done
21522 done
21523
21524 fi
21525 fi
21526 MOC=$ac_cv_prog_MOC
21527 if test -n "$MOC"; then
21528 echo "$as_me:$LINENO: result: $MOC" >&5
21529 echo "${ECHO_T}$MOC" >&6
21530 else
21531 echo "$as_me:$LINENO: result: no" >&5
21532 echo "${ECHO_T}no" >&6
21533 fi
21534
21535 fi
21536 if test "x$HAVE_QT4" = "xno"; then
21537 { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
21538 echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
21539 case "$host_os" in
21540 darwin*)
21541
21542 # Check whether --with-qt4dir or --without-qt4dir was given.
21543 if test "${with_qt4dir+set}" = set; then
21544 withval="$with_qt4dir"
21545 QT4DIR=$withval
21546
21547 fi;
21548 if test x"$QT4DIR" = x ; then
21549 { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
21550 echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
21551 { (exit 1); exit 1; }; }
21552 fi
21553 echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
21554 echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
21555 # Extract the first word of "moc", so it can be a program name with args.
21556 set dummy moc; ac_word=$2
21557 echo "$as_me:$LINENO: checking for $ac_word" >&5
21558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21559 if test "${ac_cv_prog_MOC+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561 else
21562 if test -n "$MOC"; then
21563 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21564 else
21565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21566 for as_dir in $QT4DIR/bin
21567 do
21568 IFS=$as_save_IFS
21569 test -z "$as_dir" && as_dir=.
21570 for ac_exec_ext in '' $ac_executable_extensions; do
21571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21572 ac_cv_prog_MOC="$QT4DIR/bin/moc"
21573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21574 break 2
21575 fi
21576 done
21577 done
21578
21579 fi
21580 fi
21581 MOC=$ac_cv_prog_MOC
21582 if test -n "$MOC"; then
21583 echo "$as_me:$LINENO: result: $MOC" >&5
21584 echo "${ECHO_T}$MOC" >&6
21585 else
21586 echo "$as_me:$LINENO: result: no" >&5
21587 echo "${ECHO_T}no" >&6
21588 fi
21589
21590 if test x"$MOC" = x; then
21591 { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
21592 echo "$as_me: error: *** This is not the right Qt installation" >&2;}
21593 { (exit 1); exit 1; }; }
21594 fi
21595 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
21596 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
21597 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
21598 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
21599 ;;
21600 *)
21601 { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
21602 of your installed Qt4 installation." >&5
21603 echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
21604 of your installed Qt4 installation." >&2;}
21605 { (exit 1); exit 1; }; }
21606 ;;
21607 esac
21608 fi
21609 { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
21610 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
21611
21612
21613 fi
21614 echo "$as_me:$LINENO: checking for MSG_NOSIGNAL" >&5
21615 echo $ECHO_N "checking for MSG_NOSIGNAL... $ECHO_C" >&6
21616 cat >conftest.$ac_ext <<_ACEOF
21617 /* confdefs.h. */
21618 _ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h. */
21622 #include <sys/socket.h>
21623 int
21624 main ()
21625 {
21626 int f = MSG_NOSIGNAL;
21627 ;
21628 return 0;
21629 }
21630 _ACEOF
21631 rm -f conftest.$ac_objext
21632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21633 (eval $ac_compile) 2>conftest.er1
21634 ac_status=$?
21635 grep -v '^ *+' conftest.er1 >conftest.err
21636 rm -f conftest.er1
21637 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } &&
21640 { ac_try='test -z "$ac_c_werror_flag"
21641 || test ! -s conftest.err'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21644 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; } &&
21647 { ac_try='test -s conftest.$ac_objext'
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; }; then
21653 echo "$as_me:$LINENO: result: yes" >&5
21654 echo "${ECHO_T}yes" >&6
21655
21656 cat >>confdefs.h <<\_ACEOF
21657 #define HAVE_MSG_NOSIGNAL 1
21658 _ACEOF
21659
21660 else
21661 echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21663
21664 echo "$as_me:$LINENO: result: no" >&5
21665 echo "${ECHO_T}no" >&6
21666
21667 fi
21668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21669 echo "$as_me:$LINENO: checking for SO_NOSIGPIPE " >&5
21670 echo $ECHO_N "checking for SO_NOSIGPIPE ... $ECHO_C" >&6
21671 cat >conftest.$ac_ext <<_ACEOF
21672 /* confdefs.h. */
21673 _ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h. */
21677 #include <sys/socket.h>
21678 int
21679 main ()
21680 {
21681 int f = SO_NOSIGPIPE;
21682 ;
21683 return 0;
21684 }
21685 _ACEOF
21686 rm -f conftest.$ac_objext
21687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21688 (eval $ac_compile) 2>conftest.er1
21689 ac_status=$?
21690 grep -v '^ *+' conftest.er1 >conftest.err
21691 rm -f conftest.er1
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } &&
21695 { ac_try='test -z "$ac_c_werror_flag"
21696 || test ! -s conftest.err'
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21699 ac_status=$?
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; } &&
21702 { ac_try='test -s conftest.$ac_objext'
21703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704 (eval $ac_try) 2>&5
21705 ac_status=$?
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); }; }; then
21708 echo "$as_me:$LINENO: result: yes" >&5
21709 echo "${ECHO_T}yes" >&6
21710
21711 cat >>confdefs.h <<\_ACEOF
21712 #define HAVE_SO_NOSIGPIPE 1
21713 _ACEOF
21714
21715 else
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21718
21719 echo "$as_me:$LINENO: result: no" >&5
21720 echo "${ECHO_T}no" >&6
21721
21722 fi
21723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21724
21725 if test "x${COMPILE_PLUGIN}" = xyes; then
21726
21727 succeeded=no
21728
21729 if test -z "$PKG_CONFIG"; then
21730 # Extract the first word of "pkg-config", so it can be a program name with args.
21731 set dummy pkg-config; ac_word=$2
21732 echo "$as_me:$LINENO: checking for $ac_word" >&5
21733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21734 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21735 echo $ECHO_N "(cached) $ECHO_C" >&6
21736 else
21737 case $PKG_CONFIG in
21738 [\\/]* | ?:[\\/]*)
21739 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21740 ;;
21741 *)
21742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21743 for as_dir in $PATH
21744 do
21745 IFS=$as_save_IFS
21746 test -z "$as_dir" && as_dir=.
21747 for ac_exec_ext in '' $ac_executable_extensions; do
21748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21749 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21751 break 2
21752 fi
21753 done
21754 done
21755
21756 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21757 ;;
21758 esac
21759 fi
21760 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21761
21762 if test -n "$PKG_CONFIG"; then
21763 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21764 echo "${ECHO_T}$PKG_CONFIG" >&6
21765 else
21766 echo "$as_me:$LINENO: result: no" >&5
21767 echo "${ECHO_T}no" >&6
21768 fi
21769
21770 fi
21771
21772 if test "$PKG_CONFIG" = "no" ; then
21773 echo "*** The pkg-config script could not be found. Make sure it is"
21774 echo "*** in your path, or set the PKG_CONFIG environment variable"
21775 echo "*** to the full path to pkg-config."
21776 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21777 else
21778 PKG_CONFIG_MIN_VERSION=0.9.0
21779 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21780 echo "$as_me:$LINENO: checking for mozilla-plugin" >&5
21781 echo $ECHO_N "checking for mozilla-plugin... $ECHO_C" >&6
21782
21783 if $PKG_CONFIG --exists "mozilla-plugin" ; then
21784 echo "$as_me:$LINENO: result: yes" >&5
21785 echo "${ECHO_T}yes" >&6
21786 succeeded=yes
21787
21788 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
21789 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
21790 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
21791 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
21792 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
21793
21794 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
21795 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
21796 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
21797 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
21798 echo "${ECHO_T}$MOZILLA_LIBS" >&6
21799 else
21800 MOZILLA_CFLAGS=""
21801 MOZILLA_LIBS=""
21802 ## If we have a custom action on failure, don't print errors, but
21803 ## do set a variable so people can do so.
21804 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
21805
21806 fi
21807
21808
21809
21810 else
21811 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21812 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21813 fi
21814 fi
21815
21816 if test $succeeded = yes; then
21817 MOZILLA_FOUND=yes
21818 else
21819 MOZILLA_FOUND=no
21820 fi
21821
21822 if test "x${MOZILLA_FOUND}" = xno; then
21823
21824 succeeded=no
21825
21826 if test -z "$PKG_CONFIG"; then
21827 # Extract the first word of "pkg-config", so it can be a program name with args.
21828 set dummy pkg-config; ac_word=$2
21829 echo "$as_me:$LINENO: checking for $ac_word" >&5
21830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21831 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21832 echo $ECHO_N "(cached) $ECHO_C" >&6
21833 else
21834 case $PKG_CONFIG in
21835 [\\/]* | ?:[\\/]*)
21836 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21837 ;;
21838 *)
21839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21840 for as_dir in $PATH
21841 do
21842 IFS=$as_save_IFS
21843 test -z "$as_dir" && as_dir=.
21844 for ac_exec_ext in '' $ac_executable_extensions; do
21845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21846 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21848 break 2
21849 fi
21850 done
21851 done
21852
21853 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21854 ;;
21855 esac
21856 fi
21857 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21858
21859 if test -n "$PKG_CONFIG"; then
21860 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21861 echo "${ECHO_T}$PKG_CONFIG" >&6
21862 else
21863 echo "$as_me:$LINENO: result: no" >&5
21864 echo "${ECHO_T}no" >&6
21865 fi
21866
21867 fi
21868
21869 if test "$PKG_CONFIG" = "no" ; then
21870 echo "*** The pkg-config script could not be found. Make sure it is"
21871 echo "*** in your path, or set the PKG_CONFIG environment variable"
21872 echo "*** to the full path to pkg-config."
21873 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21874 else
21875 PKG_CONFIG_MIN_VERSION=0.9.0
21876 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21877 echo "$as_me:$LINENO: checking for firefox-plugin firefox-xpcom" >&5
21878 echo $ECHO_N "checking for firefox-plugin firefox-xpcom... $ECHO_C" >&6
21879
21880 if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
21881 echo "$as_me:$LINENO: result: yes" >&5
21882 echo "${ECHO_T}yes" >&6
21883 succeeded=yes
21884
21885 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
21886 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
21887 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
21888 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
21889 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
21890
21891 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
21892 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
21893 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
21894 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
21895 echo "${ECHO_T}$MOZILLA_LIBS" >&6
21896 else
21897 MOZILLA_CFLAGS=""
21898 MOZILLA_LIBS=""
21899 ## If we have a custom action on failure, don't print errors, but
21900 ## do set a variable so people can do so.
21901 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
21902
21903 fi
21904
21905
21906
21907 else
21908 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21909 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21910 fi
21911 fi
21912
21913 if test $succeeded = yes; then
21914 MOZILLA_FOUND=yes
21915 else
21916 MOZILLA_FOUND=no
21917 fi
21918
21919 fi
21920 if test "x${MOZILLA_FOUND}" = xno; then
21921
21922 succeeded=no
21923
21924 if test -z "$PKG_CONFIG"; then
21925 # Extract the first word of "pkg-config", so it can be a program name with args.
21926 set dummy pkg-config; ac_word=$2
21927 echo "$as_me:$LINENO: checking for $ac_word" >&5
21928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21929 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21931 else
21932 case $PKG_CONFIG in
21933 [\\/]* | ?:[\\/]*)
21934 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21935 ;;
21936 *)
21937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21938 for as_dir in $PATH
21939 do
21940 IFS=$as_save_IFS
21941 test -z "$as_dir" && as_dir=.
21942 for ac_exec_ext in '' $ac_executable_extensions; do
21943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21944 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21946 break 2
21947 fi
21948 done
21949 done
21950
21951 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21952 ;;
21953 esac
21954 fi
21955 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21956
21957 if test -n "$PKG_CONFIG"; then
21958 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21959 echo "${ECHO_T}$PKG_CONFIG" >&6
21960 else
21961 echo "$as_me:$LINENO: result: no" >&5
21962 echo "${ECHO_T}no" >&6
21963 fi
21964
21965 fi
21966
21967 if test "$PKG_CONFIG" = "no" ; then
21968 echo "*** The pkg-config script could not be found. Make sure it is"
21969 echo "*** in your path, or set the PKG_CONFIG environment variable"
21970 echo "*** to the full path to pkg-config."
21971 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21972 else
21973 PKG_CONFIG_MIN_VERSION=0.9.0
21974 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21975 echo "$as_me:$LINENO: checking for xulrunner-plugin xulrunner-xpcom" >&5
21976 echo $ECHO_N "checking for xulrunner-plugin xulrunner-xpcom... $ECHO_C" >&6
21977
21978 if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
21979 echo "$as_me:$LINENO: result: yes" >&5
21980 echo "${ECHO_T}yes" >&6
21981 succeeded=yes
21982
21983 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
21984 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
21985 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
21986 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
21987 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
21988
21989 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
21990 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
21991 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
21992 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
21993 echo "${ECHO_T}$MOZILLA_LIBS" >&6
21994 else
21995 MOZILLA_CFLAGS=""
21996 MOZILLA_LIBS=""
21997 ## If we have a custom action on failure, don't print errors, but
21998 ## do set a variable so people can do so.
21999 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
22000
22001 fi
22002
22003
22004
22005 else
22006 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22007 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22008 fi
22009 fi
22010
22011 if test $succeeded = yes; then
22012 MOZILLA_FOUND=yes
22013 else
22014 MOZILLA_FOUND=no
22015 fi
22016
22017 fi
22018 if test "x${MOZILLA_FOUND}" = xno; then
22019
22020 succeeded=no
22021
22022 if test -z "$PKG_CONFIG"; then
22023 # Extract the first word of "pkg-config", so it can be a program name with args.
22024 set dummy pkg-config; ac_word=$2
22025 echo "$as_me:$LINENO: checking for $ac_word" >&5
22026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22028 echo $ECHO_N "(cached) $ECHO_C" >&6
22029 else
22030 case $PKG_CONFIG in
22031 [\\/]* | ?:[\\/]*)
22032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22033 ;;
22034 *)
22035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22036 for as_dir in $PATH
22037 do
22038 IFS=$as_save_IFS
22039 test -z "$as_dir" && as_dir=.
22040 for ac_exec_ext in '' $ac_executable_extensions; do
22041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22044 break 2
22045 fi
22046 done
22047 done
22048
22049 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22050 ;;
22051 esac
22052 fi
22053 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22054
22055 if test -n "$PKG_CONFIG"; then
22056 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22057 echo "${ECHO_T}$PKG_CONFIG" >&6
22058 else
22059 echo "$as_me:$LINENO: result: no" >&5
22060 echo "${ECHO_T}no" >&6
22061 fi
22062
22063 fi
22064
22065 if test "$PKG_CONFIG" = "no" ; then
22066 echo "*** The pkg-config script could not be found. Make sure it is"
22067 echo "*** in your path, or set the PKG_CONFIG environment variable"
22068 echo "*** to the full path to pkg-config."
22069 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22070 else
22071 PKG_CONFIG_MIN_VERSION=0.9.0
22072 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22073 echo "$as_me:$LINENO: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
22074 echo $ECHO_N "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... $ECHO_C" >&6
22075
22076 if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
22077 echo "$as_me:$LINENO: result: yes" >&5
22078 echo "${ECHO_T}yes" >&6
22079 succeeded=yes
22080
22081 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
22082 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
22083 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
22084 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
22085 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
22086
22087 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
22088 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
22089 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
22090 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
22091 echo "${ECHO_T}$MOZILLA_LIBS" >&6
22092 else
22093 MOZILLA_CFLAGS=""
22094 MOZILLA_LIBS=""
22095 ## If we have a custom action on failure, don't print errors, but
22096 ## do set a variable so people can do so.
22097 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
22098
22099 fi
22100
22101
22102
22103 else
22104 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22105 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22106 fi
22107 fi
22108
22109 if test $succeeded = yes; then
22110 MOZILLA_FOUND=yes
22111 else
22112 MOZILLA_FOUND=no
22113 fi
22114
22115 fi
22116 if test "x${MOZILLA_FOUND}" = xno; then
22117
22118 succeeded=no
22119
22120 if test -z "$PKG_CONFIG"; then
22121 # Extract the first word of "pkg-config", so it can be a program name with args.
22122 set dummy pkg-config; ac_word=$2
22123 echo "$as_me:$LINENO: checking for $ac_word" >&5
22124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22125 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22127 else
22128 case $PKG_CONFIG in
22129 [\\/]* | ?:[\\/]*)
22130 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22131 ;;
22132 *)
22133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22134 for as_dir in $PATH
22135 do
22136 IFS=$as_save_IFS
22137 test -z "$as_dir" && as_dir=.
22138 for ac_exec_ext in '' $ac_executable_extensions; do
22139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22140 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22142 break 2
22143 fi
22144 done
22145 done
22146
22147 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22148 ;;
22149 esac
22150 fi
22151 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22152
22153 if test -n "$PKG_CONFIG"; then
22154 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22155 echo "${ECHO_T}$PKG_CONFIG" >&6
22156 else
22157 echo "$as_me:$LINENO: result: no" >&5
22158 echo "${ECHO_T}no" >&6
22159 fi
22160
22161 fi
22162
22163 if test "$PKG_CONFIG" = "no" ; then
22164 echo "*** The pkg-config script could not be found. Make sure it is"
22165 echo "*** in your path, or set the PKG_CONFIG environment variable"
22166 echo "*** to the full path to pkg-config."
22167 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22168 else
22169 PKG_CONFIG_MIN_VERSION=0.9.0
22170 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22171 echo "$as_me:$LINENO: checking for seamonkey-plugin seamonkey-xpcom" >&5
22172 echo $ECHO_N "checking for seamonkey-plugin seamonkey-xpcom... $ECHO_C" >&6
22173
22174 if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
22175 echo "$as_me:$LINENO: result: yes" >&5
22176 echo "${ECHO_T}yes" >&6
22177 succeeded=yes
22178
22179 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
22180 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
22181 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
22182 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
22183 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
22184
22185 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
22186 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
22187 MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
22188 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
22189 echo "${ECHO_T}$MOZILLA_LIBS" >&6
22190 else
22191 MOZILLA_CFLAGS=""
22192 MOZILLA_LIBS=""
22193 ## If we have a custom action on failure, don't print errors, but
22194 ## do set a variable so people can do so.
22195 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
22196
22197 fi
22198
22199
22200
22201 else
22202 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22203 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22204 fi
22205 fi
22206
22207 if test $succeeded = yes; then
22208 MOZILLA_FOUND=yes
22209 else
22210 MOZILLA_FOUND=no
22211 fi
22212
22213 fi
22214
22215 succeeded=no
22216
22217 if test -z "$PKG_CONFIG"; then
22218 # Extract the first word of "pkg-config", so it can be a program name with args.
22219 set dummy pkg-config; ac_word=$2
22220 echo "$as_me:$LINENO: checking for $ac_word" >&5
22221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22222 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22224 else
22225 case $PKG_CONFIG in
22226 [\\/]* | ?:[\\/]*)
22227 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22228 ;;
22229 *)
22230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22231 for as_dir in $PATH
22232 do
22233 IFS=$as_save_IFS
22234 test -z "$as_dir" && as_dir=.
22235 for ac_exec_ext in '' $ac_executable_extensions; do
22236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22237 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22239 break 2
22240 fi
22241 done
22242 done
22243
22244 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22245 ;;
22246 esac
22247 fi
22248 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22249
22250 if test -n "$PKG_CONFIG"; then
22251 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22252 echo "${ECHO_T}$PKG_CONFIG" >&6
22253 else
22254 echo "$as_me:$LINENO: result: no" >&5
22255 echo "${ECHO_T}no" >&6
22256 fi
22257
22258 fi
22259
22260 if test "$PKG_CONFIG" = "no" ; then
22261 echo "*** The pkg-config script could not be found. Make sure it is"
22262 echo "*** in your path, or set the PKG_CONFIG environment variable"
22263 echo "*** to the full path to pkg-config."
22264 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22265 else
22266 PKG_CONFIG_MIN_VERSION=0.9.0
22267 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22268 echo "$as_me:$LINENO: checking for glib-2.0" >&5
22269 echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
22270
22271 if $PKG_CONFIG --exists "glib-2.0" ; then
22272 echo "$as_me:$LINENO: result: yes" >&5
22273 echo "${ECHO_T}yes" >&6
22274 succeeded=yes
22275
22276 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
22277 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
22278 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
22279 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
22280 echo "${ECHO_T}$GLIB_CFLAGS" >&6
22281
22282 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
22283 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
22284 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
22285 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
22286 echo "${ECHO_T}$GLIB_LIBS" >&6
22287 else
22288 GLIB_CFLAGS=""
22289 GLIB_LIBS=""
22290 ## If we have a custom action on failure, don't print errors, but
22291 ## do set a variable so people can do so.
22292 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
22293 echo $GLIB_PKG_ERRORS
22294 fi
22295
22296
22297
22298 else
22299 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22300 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22301 fi
22302 fi
22303
22304 if test $succeeded = yes; then
22305 :
22306 else
22307 { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
22308 echo "$as_me: error: Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
22309 { (exit 1); exit 1; }; }
22310 fi
22311
22312
22313
22314
22315
22316
22317
22318 PLUGIN_DIR=$HOME/.mozilla/plugins/
22319
22320 fi
22321 fi
22322
22323
22324
22325 # Check whether --with-javah or --without-javah was given.
22326 if test "${with_javah+set}" = set; then
22327 withval="$with_javah"
22328
22329 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
22330
22331 if test "x${withval}" != x; then
22332 if test -f "${withval}"; then
22333 USER_JAVAH="${withval}"
22334 else
22335 # Extract the first word of ""${withval}"", so it can be a program name with args.
22336 set dummy "${withval}"; ac_word=$2
22337 echo "$as_me:$LINENO: checking for $ac_word" >&5
22338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22339 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
22340 echo $ECHO_N "(cached) $ECHO_C" >&6
22341 else
22342 case $USER_JAVAH in
22343 [\\/]* | ?:[\\/]*)
22344 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22345 ;;
22346 *)
22347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22348 for as_dir in $PATH
22349 do
22350 IFS=$as_save_IFS
22351 test -z "$as_dir" && as_dir=.
22352 for ac_exec_ext in '' $ac_executable_extensions; do
22353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22354 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22356 break 2
22357 fi
22358 done
22359 done
22360
22361 ;;
22362 esac
22363 fi
22364 USER_JAVAH=$ac_cv_path_USER_JAVAH
22365
22366 if test -n "$USER_JAVAH"; then
22367 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
22368 echo "${ECHO_T}$USER_JAVAH" >&6
22369 else
22370 echo "$as_me:$LINENO: result: no" >&5
22371 echo "${ECHO_T}no" >&6
22372 fi
22373
22374 fi
22375 else
22376 for javah_name in gcjh javah; do
22377 # Extract the first word of ""$javah_name"", so it can be a program name with args.
22378 set dummy "$javah_name"; ac_word=$2
22379 echo "$as_me:$LINENO: checking for $ac_word" >&5
22380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22381 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22383 else
22384 case $USER_JAVAH in
22385 [\\/]* | ?:[\\/]*)
22386 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22387 ;;
22388 *)
22389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22390 for as_dir in $PATH
22391 do
22392 IFS=$as_save_IFS
22393 test -z "$as_dir" && as_dir=.
22394 for ac_exec_ext in '' $ac_executable_extensions; do
22395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22396 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22398 break 2
22399 fi
22400 done
22401 done
22402
22403 ;;
22404 esac
22405 fi
22406 USER_JAVAH=$ac_cv_path_USER_JAVAH
22407
22408 if test -n "$USER_JAVAH"; then
22409 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
22410 echo "${ECHO_T}$USER_JAVAH" >&6
22411 else
22412 echo "$as_me:$LINENO: result: no" >&5
22413 echo "${ECHO_T}no" >&6
22414 fi
22415
22416 if test "x${USER_JAVAH}" != x; then
22417 break
22418 fi
22419 done
22420 fi
22421
22422 # if test "x${USER_JAVAH}" = x; then
22423 # echo "configure: cannot find javah" 1>&2
22424 # exit 1
22425 # fi
22426
22427 else
22428
22429 if test "x" != x; then
22430 if test -f ""; then
22431 USER_JAVAH=""
22432 else
22433 # Extract the first word of """", so it can be a program name with args.
22434 set dummy ""; ac_word=$2
22435 echo "$as_me:$LINENO: checking for $ac_word" >&5
22436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22437 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
22439 else
22440 case $USER_JAVAH in
22441 [\\/]* | ?:[\\/]*)
22442 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22443 ;;
22444 *)
22445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22446 for as_dir in $PATH
22447 do
22448 IFS=$as_save_IFS
22449 test -z "$as_dir" && as_dir=.
22450 for ac_exec_ext in '' $ac_executable_extensions; do
22451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22452 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22454 break 2
22455 fi
22456 done
22457 done
22458
22459 ;;
22460 esac
22461 fi
22462 USER_JAVAH=$ac_cv_path_USER_JAVAH
22463
22464 if test -n "$USER_JAVAH"; then
22465 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
22466 echo "${ECHO_T}$USER_JAVAH" >&6
22467 else
22468 echo "$as_me:$LINENO: result: no" >&5
22469 echo "${ECHO_T}no" >&6
22470 fi
22471
22472 fi
22473 else
22474 for javah_name in gcjh javah; do
22475 # Extract the first word of ""$javah_name"", so it can be a program name with args.
22476 set dummy "$javah_name"; ac_word=$2
22477 echo "$as_me:$LINENO: checking for $ac_word" >&5
22478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22479 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
22480 echo $ECHO_N "(cached) $ECHO_C" >&6
22481 else
22482 case $USER_JAVAH in
22483 [\\/]* | ?:[\\/]*)
22484 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22485 ;;
22486 *)
22487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22488 for as_dir in $PATH
22489 do
22490 IFS=$as_save_IFS
22491 test -z "$as_dir" && as_dir=.
22492 for ac_exec_ext in '' $ac_executable_extensions; do
22493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22494 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22496 break 2
22497 fi
22498 done
22499 done
22500
22501 ;;
22502 esac
22503 fi
22504 USER_JAVAH=$ac_cv_path_USER_JAVAH
22505
22506 if test -n "$USER_JAVAH"; then
22507 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
22508 echo "${ECHO_T}$USER_JAVAH" >&6
22509 else
22510 echo "$as_me:$LINENO: result: no" >&5
22511 echo "${ECHO_T}no" >&6
22512 fi
22513
22514 if test "x${USER_JAVAH}" != x; then
22515 break
22516 fi
22517 done
22518 fi
22519
22520 # if test "x${USER_JAVAH}" = x; then
22521 # echo "configure: cannot find javah" 1>&2
22522 # exit 1
22523 # fi
22524
22525 fi
22526
22527 else
22528
22529
22530 if test "x" != x; then
22531 if test -f ""; then
22532 USER_JAVAH=""
22533 else
22534 # Extract the first word of """", so it can be a program name with args.
22535 set dummy ""; ac_word=$2
22536 echo "$as_me:$LINENO: checking for $ac_word" >&5
22537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22538 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22540 else
22541 case $USER_JAVAH in
22542 [\\/]* | ?:[\\/]*)
22543 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22544 ;;
22545 *)
22546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22547 for as_dir in $PATH
22548 do
22549 IFS=$as_save_IFS
22550 test -z "$as_dir" && as_dir=.
22551 for ac_exec_ext in '' $ac_executable_extensions; do
22552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22553 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22555 break 2
22556 fi
22557 done
22558 done
22559
22560 ;;
22561 esac
22562 fi
22563 USER_JAVAH=$ac_cv_path_USER_JAVAH
22564
22565 if test -n "$USER_JAVAH"; then
22566 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
22567 echo "${ECHO_T}$USER_JAVAH" >&6
22568 else
22569 echo "$as_me:$LINENO: result: no" >&5
22570 echo "${ECHO_T}no" >&6
22571 fi
22572
22573 fi
22574 else
22575 for javah_name in gcjh javah; do
22576 # Extract the first word of ""$javah_name"", so it can be a program name with args.
22577 set dummy "$javah_name"; ac_word=$2
22578 echo "$as_me:$LINENO: checking for $ac_word" >&5
22579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22580 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
22581 echo $ECHO_N "(cached) $ECHO_C" >&6
22582 else
22583 case $USER_JAVAH in
22584 [\\/]* | ?:[\\/]*)
22585 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22586 ;;
22587 *)
22588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22589 for as_dir in $PATH
22590 do
22591 IFS=$as_save_IFS
22592 test -z "$as_dir" && as_dir=.
22593 for ac_exec_ext in '' $ac_executable_extensions; do
22594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22595 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22597 break 2
22598 fi
22599 done
22600 done
22601
22602 ;;
22603 esac
22604 fi
22605 USER_JAVAH=$ac_cv_path_USER_JAVAH
22606
22607 if test -n "$USER_JAVAH"; then
22608 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
22609 echo "${ECHO_T}$USER_JAVAH" >&6
22610 else
22611 echo "$as_me:$LINENO: result: no" >&5
22612 echo "${ECHO_T}no" >&6
22613 fi
22614
22615 if test "x${USER_JAVAH}" != x; then
22616 break
22617 fi
22618 done
22619 fi
22620
22621 # if test "x${USER_JAVAH}" = x; then
22622 # echo "configure: cannot find javah" 1>&2
22623 # exit 1
22624 # fi
22625
22626
22627 fi;
22628
22629
22630 if test "x${USER_JAVAH}" != x; then
22631 USER_SPECIFIED_JAVAH_TRUE=
22632 USER_SPECIFIED_JAVAH_FALSE='#'
22633 else
22634 USER_SPECIFIED_JAVAH_TRUE='#'
22635 USER_SPECIFIED_JAVAH_FALSE=
22636 fi
22637
22638
22639
22640
22641 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
22642
22643
22644 if test "x${COMPILE_JNI}" = xyes; then
22645 echo "$as_me:$LINENO: checking jni_md.h support" >&5
22646 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
22647 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
22648 echo "$as_me:$LINENO: result: yes" >&5
22649 echo "${ECHO_T}yes" >&6
22650 else
22651 target_cpu=x86
22652 target_os=linux-gnu
22653 { echo "$as_me:$LINENO: WARNING: no" >&5
22654 echo "$as_me: WARNING: no" >&2;}
22655 fi
22656 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
22657 ac_dests="include/jni_md.h"
22658 while test -n "$ac_sources"; do
22659 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22660 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22661 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22662 done
22663 ac_config_links="$ac_config_links $ac_config_links_1"
22664
22665 fi
22666
22667
22668 user_specified_javac=
22669
22670
22671
22672 # Check whether --with-gcj or --without-gcj was given.
22673 if test "${with_gcj+set}" = set; then
22674 withval="$with_gcj"
22675
22676 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
22677
22678 if test "x${withval}" != x; then
22679 if test -f "${withval}"; then
22680 GCJ="${withval}"
22681 else
22682 # Extract the first word of ""${withval}"", so it can be a program name with args.
22683 set dummy "${withval}"; ac_word=$2
22684 echo "$as_me:$LINENO: checking for $ac_word" >&5
22685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22686 if test "${ac_cv_path_GCJ+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22688 else
22689 case $GCJ in
22690 [\\/]* | ?:[\\/]*)
22691 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
22692 ;;
22693 *)
22694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22695 for as_dir in $PATH
22696 do
22697 IFS=$as_save_IFS
22698 test -z "$as_dir" && as_dir=.
22699 for ac_exec_ext in '' $ac_executable_extensions; do
22700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22701 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
22702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22703 break 2
22704 fi
22705 done
22706 done
22707
22708 ;;
22709 esac
22710 fi
22711 GCJ=$ac_cv_path_GCJ
22712
22713 if test -n "$GCJ"; then
22714 echo "$as_me:$LINENO: result: $GCJ" >&5
22715 echo "${ECHO_T}$GCJ" >&6
22716 else
22717 echo "$as_me:$LINENO: result: no" >&5
22718 echo "${ECHO_T}no" >&6
22719 fi
22720
22721 fi
22722 else
22723 # Extract the first word of ""gcj"", so it can be a program name with args.
22724 set dummy "gcj"; ac_word=$2
22725 echo "$as_me:$LINENO: checking for $ac_word" >&5
22726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22727 if test "${ac_cv_path_GCJ+set}" = set; then
22728 echo $ECHO_N "(cached) $ECHO_C" >&6
22729 else
22730 case $GCJ in
22731 [\\/]* | ?:[\\/]*)
22732 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
22733 ;;
22734 *)
22735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22736 for as_dir in $PATH
22737 do
22738 IFS=$as_save_IFS
22739 test -z "$as_dir" && as_dir=.
22740 for ac_exec_ext in '' $ac_executable_extensions; do
22741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22742 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
22743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22744 break 2
22745 fi
22746 done
22747 done
22748
22749 ;;
22750 esac
22751 fi
22752 GCJ=$ac_cv_path_GCJ
22753
22754 if test -n "$GCJ"; then
22755 echo "$as_me:$LINENO: result: $GCJ" >&5
22756 echo "${ECHO_T}$GCJ" >&6
22757 else
22758 echo "$as_me:$LINENO: result: no" >&5
22759 echo "${ECHO_T}no" >&6
22760 fi
22761
22762 fi
22763 if test "x$GCJ" != x; then
22764 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
22765 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
22766 ac_ext=c
22767 ac_cpp='$CPP $CPPFLAGS'
22768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22771
22772 cat >conftest.$ac_ext <<_ACEOF
22773 #if __GNUC__ <= 3
22774 #error GCJ 4.0.0 or higher is required
22775 #endif
22776
22777 _ACEOF
22778 $GCJ -E conftest.c > /dev/null
22779 gcj_4_result=$?
22780 if test "x$gcj_4_result" = "x0"; then
22781 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
22782 echo "${ECHO_T}4.0 or higher found" >&6
22783 else
22784 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
22785 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
22786 fi
22787 ac_ext=c
22788 ac_cpp='$CPP $CPPFLAGS'
22789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22792
22793 fi
22794
22795 else
22796 if test "x${withval}" != xno; then
22797
22798 if test "x" != x; then
22799 if test -f ""; then
22800 GCJ=""
22801 else
22802 # Extract the first word of """", so it can be a program name with args.
22803 set dummy ""; ac_word=$2
22804 echo "$as_me:$LINENO: checking for $ac_word" >&5
22805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22806 if test "${ac_cv_path_GCJ+set}" = set; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22808 else
22809 case $GCJ in
22810 [\\/]* | ?:[\\/]*)
22811 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
22812 ;;
22813 *)
22814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22815 for as_dir in $PATH
22816 do
22817 IFS=$as_save_IFS
22818 test -z "$as_dir" && as_dir=.
22819 for ac_exec_ext in '' $ac_executable_extensions; do
22820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22821 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
22822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22823 break 2
22824 fi
22825 done
22826 done
22827
22828 ;;
22829 esac
22830 fi
22831 GCJ=$ac_cv_path_GCJ
22832
22833 if test -n "$GCJ"; then
22834 echo "$as_me:$LINENO: result: $GCJ" >&5
22835 echo "${ECHO_T}$GCJ" >&6
22836 else
22837 echo "$as_me:$LINENO: result: no" >&5
22838 echo "${ECHO_T}no" >&6
22839 fi
22840
22841 fi
22842 else
22843 # Extract the first word of ""gcj"", so it can be a program name with args.
22844 set dummy "gcj"; ac_word=$2
22845 echo "$as_me:$LINENO: checking for $ac_word" >&5
22846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22847 if test "${ac_cv_path_GCJ+set}" = set; then
22848 echo $ECHO_N "(cached) $ECHO_C" >&6
22849 else
22850 case $GCJ in
22851 [\\/]* | ?:[\\/]*)
22852 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
22853 ;;
22854 *)
22855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22856 for as_dir in $PATH
22857 do
22858 IFS=$as_save_IFS
22859 test -z "$as_dir" && as_dir=.
22860 for ac_exec_ext in '' $ac_executable_extensions; do
22861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22862 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
22863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22864 break 2
22865 fi
22866 done
22867 done
22868
22869 ;;
22870 esac
22871 fi
22872 GCJ=$ac_cv_path_GCJ
22873
22874 if test -n "$GCJ"; then
22875 echo "$as_me:$LINENO: result: $GCJ" >&5
22876 echo "${ECHO_T}$GCJ" >&6
22877 else
22878 echo "$as_me:$LINENO: result: no" >&5
22879 echo "${ECHO_T}no" >&6
22880 fi
22881
22882 fi
22883 if test "x$GCJ" != x; then
22884 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
22885 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
22886 ac_ext=c
22887 ac_cpp='$CPP $CPPFLAGS'
22888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22891
22892 cat >conftest.$ac_ext <<_ACEOF
22893 #if __GNUC__ <= 3
22894 #error GCJ 4.0.0 or higher is required
22895 #endif
22896
22897 _ACEOF
22898 $GCJ -E conftest.c > /dev/null
22899 gcj_4_result=$?
22900 if test "x$gcj_4_result" = "x0"; then
22901 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
22902 echo "${ECHO_T}4.0 or higher found" >&6
22903 else
22904 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
22905 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
22906 fi
22907 ac_ext=c
22908 ac_cpp='$CPP $CPPFLAGS'
22909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22912
22913 fi
22914
22915 fi
22916 fi
22917 user_specified_javac=gcj
22918
22919 else
22920
22921
22922 if test "x" != x; then
22923 if test -f ""; then
22924 GCJ=""
22925 else
22926 # Extract the first word of """", so it can be a program name with args.
22927 set dummy ""; ac_word=$2
22928 echo "$as_me:$LINENO: checking for $ac_word" >&5
22929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22930 if test "${ac_cv_path_GCJ+set}" = set; then
22931 echo $ECHO_N "(cached) $ECHO_C" >&6
22932 else
22933 case $GCJ in
22934 [\\/]* | ?:[\\/]*)
22935 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
22936 ;;
22937 *)
22938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22939 for as_dir in $PATH
22940 do
22941 IFS=$as_save_IFS
22942 test -z "$as_dir" && as_dir=.
22943 for ac_exec_ext in '' $ac_executable_extensions; do
22944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22945 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
22946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22947 break 2
22948 fi
22949 done
22950 done
22951
22952 ;;
22953 esac
22954 fi
22955 GCJ=$ac_cv_path_GCJ
22956
22957 if test -n "$GCJ"; then
22958 echo "$as_me:$LINENO: result: $GCJ" >&5
22959 echo "${ECHO_T}$GCJ" >&6
22960 else
22961 echo "$as_me:$LINENO: result: no" >&5
22962 echo "${ECHO_T}no" >&6
22963 fi
22964
22965 fi
22966 else
22967 # Extract the first word of ""gcj"", so it can be a program name with args.
22968 set dummy "gcj"; ac_word=$2
22969 echo "$as_me:$LINENO: checking for $ac_word" >&5
22970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22971 if test "${ac_cv_path_GCJ+set}" = set; then
22972 echo $ECHO_N "(cached) $ECHO_C" >&6
22973 else
22974 case $GCJ in
22975 [\\/]* | ?:[\\/]*)
22976 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
22977 ;;
22978 *)
22979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22980 for as_dir in $PATH
22981 do
22982 IFS=$as_save_IFS
22983 test -z "$as_dir" && as_dir=.
22984 for ac_exec_ext in '' $ac_executable_extensions; do
22985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22986 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
22987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22988 break 2
22989 fi
22990 done
22991 done
22992
22993 ;;
22994 esac
22995 fi
22996 GCJ=$ac_cv_path_GCJ
22997
22998 if test -n "$GCJ"; then
22999 echo "$as_me:$LINENO: result: $GCJ" >&5
23000 echo "${ECHO_T}$GCJ" >&6
23001 else
23002 echo "$as_me:$LINENO: result: no" >&5
23003 echo "${ECHO_T}no" >&6
23004 fi
23005
23006 fi
23007 if test "x$GCJ" != x; then
23008 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
23009 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
23010 ac_ext=c
23011 ac_cpp='$CPP $CPPFLAGS'
23012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23015
23016 cat >conftest.$ac_ext <<_ACEOF
23017 #if __GNUC__ <= 3
23018 #error GCJ 4.0.0 or higher is required
23019 #endif
23020
23021 _ACEOF
23022 $GCJ -E conftest.c > /dev/null
23023 gcj_4_result=$?
23024 if test "x$gcj_4_result" = "x0"; then
23025 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
23026 echo "${ECHO_T}4.0 or higher found" >&6
23027 else
23028 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
23029 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
23030 fi
23031 ac_ext=c
23032 ac_cpp='$CPP $CPPFLAGS'
23033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23036
23037 fi
23038
23039
23040 fi;
23041
23042
23043
23044
23045 # Check whether --with-jikes or --without-jikes was given.
23046 if test "${with_jikes+set}" = set; then
23047 withval="$with_jikes"
23048
23049 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
23050
23051 if test "x${withval}" != x; then
23052 if test -f "${withval}"; then
23053 JIKES="${withval}"
23054 else
23055 # Extract the first word of ""${withval}"", so it can be a program name with args.
23056 set dummy "${withval}"; ac_word=$2
23057 echo "$as_me:$LINENO: checking for $ac_word" >&5
23058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23059 if test "${ac_cv_path_JIKES+set}" = set; then
23060 echo $ECHO_N "(cached) $ECHO_C" >&6
23061 else
23062 case $JIKES in
23063 [\\/]* | ?:[\\/]*)
23064 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
23065 ;;
23066 *)
23067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23068 for as_dir in $PATH
23069 do
23070 IFS=$as_save_IFS
23071 test -z "$as_dir" && as_dir=.
23072 for ac_exec_ext in '' $ac_executable_extensions; do
23073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23074 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
23075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23076 break 2
23077 fi
23078 done
23079 done
23080
23081 ;;
23082 esac
23083 fi
23084 JIKES=$ac_cv_path_JIKES
23085
23086 if test -n "$JIKES"; then
23087 echo "$as_me:$LINENO: result: $JIKES" >&5
23088 echo "${ECHO_T}$JIKES" >&6
23089 else
23090 echo "$as_me:$LINENO: result: no" >&5
23091 echo "${ECHO_T}no" >&6
23092 fi
23093
23094 fi
23095 else
23096 # Extract the first word of ""jikes"", so it can be a program name with args.
23097 set dummy "jikes"; ac_word=$2
23098 echo "$as_me:$LINENO: checking for $ac_word" >&5
23099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23100 if test "${ac_cv_path_JIKES+set}" = set; then
23101 echo $ECHO_N "(cached) $ECHO_C" >&6
23102 else
23103 case $JIKES in
23104 [\\/]* | ?:[\\/]*)
23105 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
23106 ;;
23107 *)
23108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23109 for as_dir in $PATH
23110 do
23111 IFS=$as_save_IFS
23112 test -z "$as_dir" && as_dir=.
23113 for ac_exec_ext in '' $ac_executable_extensions; do
23114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23115 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
23116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23117 break 2
23118 fi
23119 done
23120 done
23121
23122 ;;
23123 esac
23124 fi
23125 JIKES=$ac_cv_path_JIKES
23126
23127 if test -n "$JIKES"; then
23128 echo "$as_me:$LINENO: result: $JIKES" >&5
23129 echo "${ECHO_T}$JIKES" >&6
23130 else
23131 echo "$as_me:$LINENO: result: no" >&5
23132 echo "${ECHO_T}no" >&6
23133 fi
23134
23135 fi
23136 if test "x$JIKES" != "x"; then
23137 echo "$as_me:$LINENO: checking jikes version" >&5
23138 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
23139 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
23140 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
23141 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
23142 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
23143 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
23144 JIKES=""
23145 fi
23146 fi
23147 if test "x$JIKES" != "x"; then
23148 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
23149 echo "${ECHO_T}$JIKES_VERSION" >&6
23150 else
23151 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
23152 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
23153 fi
23154
23155 JIKESENCODING=
23156 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
23157 JIKESENCODING='-encoding UTF-8'
23158 fi
23159
23160
23161 JIKESWARNINGS="+Pno-switchcheck"
23162 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
23163 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
23164 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
23165 fi
23166 fi
23167
23168
23169 fi
23170
23171 else
23172 if test "x${withval}" != xno; then
23173
23174 if test "x" != x; then
23175 if test -f ""; then
23176 JIKES=""
23177 else
23178 # Extract the first word of """", so it can be a program name with args.
23179 set dummy ""; ac_word=$2
23180 echo "$as_me:$LINENO: checking for $ac_word" >&5
23181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23182 if test "${ac_cv_path_JIKES+set}" = set; then
23183 echo $ECHO_N "(cached) $ECHO_C" >&6
23184 else
23185 case $JIKES in
23186 [\\/]* | ?:[\\/]*)
23187 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
23188 ;;
23189 *)
23190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23191 for as_dir in $PATH
23192 do
23193 IFS=$as_save_IFS
23194 test -z "$as_dir" && as_dir=.
23195 for ac_exec_ext in '' $ac_executable_extensions; do
23196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23197 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
23198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23199 break 2
23200 fi
23201 done
23202 done
23203
23204 ;;
23205 esac
23206 fi
23207 JIKES=$ac_cv_path_JIKES
23208
23209 if test -n "$JIKES"; then
23210 echo "$as_me:$LINENO: result: $JIKES" >&5
23211 echo "${ECHO_T}$JIKES" >&6
23212 else
23213 echo "$as_me:$LINENO: result: no" >&5
23214 echo "${ECHO_T}no" >&6
23215 fi
23216
23217 fi
23218 else
23219 # Extract the first word of ""jikes"", so it can be a program name with args.
23220 set dummy "jikes"; ac_word=$2
23221 echo "$as_me:$LINENO: checking for $ac_word" >&5
23222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23223 if test "${ac_cv_path_JIKES+set}" = set; then
23224 echo $ECHO_N "(cached) $ECHO_C" >&6
23225 else
23226 case $JIKES in
23227 [\\/]* | ?:[\\/]*)
23228 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
23229 ;;
23230 *)
23231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23232 for as_dir in $PATH
23233 do
23234 IFS=$as_save_IFS
23235 test -z "$as_dir" && as_dir=.
23236 for ac_exec_ext in '' $ac_executable_extensions; do
23237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23238 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
23239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23240 break 2
23241 fi
23242 done
23243 done
23244
23245 ;;
23246 esac
23247 fi
23248 JIKES=$ac_cv_path_JIKES
23249
23250 if test -n "$JIKES"; then
23251 echo "$as_me:$LINENO: result: $JIKES" >&5
23252 echo "${ECHO_T}$JIKES" >&6
23253 else
23254 echo "$as_me:$LINENO: result: no" >&5
23255 echo "${ECHO_T}no" >&6
23256 fi
23257
23258 fi
23259 if test "x$JIKES" != "x"; then
23260 echo "$as_me:$LINENO: checking jikes version" >&5
23261 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
23262 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
23263 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
23264 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
23265 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
23266 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
23267 JIKES=""
23268 fi
23269 fi
23270 if test "x$JIKES" != "x"; then
23271 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
23272 echo "${ECHO_T}$JIKES_VERSION" >&6
23273 else
23274 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
23275 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
23276 fi
23277
23278 JIKESENCODING=
23279 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
23280 JIKESENCODING='-encoding UTF-8'
23281 fi
23282
23283
23284 JIKESWARNINGS="+Pno-switchcheck"
23285 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
23286 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
23287 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
23288 fi
23289 fi
23290
23291
23292 fi
23293
23294 fi
23295 fi
23296 user_specified_javac=jikes
23297
23298 else
23299
23300
23301 if test "x" != x; then
23302 if test -f ""; then
23303 JIKES=""
23304 else
23305 # Extract the first word of """", so it can be a program name with args.
23306 set dummy ""; ac_word=$2
23307 echo "$as_me:$LINENO: checking for $ac_word" >&5
23308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23309 if test "${ac_cv_path_JIKES+set}" = set; then
23310 echo $ECHO_N "(cached) $ECHO_C" >&6
23311 else
23312 case $JIKES in
23313 [\\/]* | ?:[\\/]*)
23314 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
23315 ;;
23316 *)
23317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23318 for as_dir in $PATH
23319 do
23320 IFS=$as_save_IFS
23321 test -z "$as_dir" && as_dir=.
23322 for ac_exec_ext in '' $ac_executable_extensions; do
23323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23324 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
23325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23326 break 2
23327 fi
23328 done
23329 done
23330
23331 ;;
23332 esac
23333 fi
23334 JIKES=$ac_cv_path_JIKES
23335
23336 if test -n "$JIKES"; then
23337 echo "$as_me:$LINENO: result: $JIKES" >&5
23338 echo "${ECHO_T}$JIKES" >&6
23339 else
23340 echo "$as_me:$LINENO: result: no" >&5
23341 echo "${ECHO_T}no" >&6
23342 fi
23343
23344 fi
23345 else
23346 # Extract the first word of ""jikes"", so it can be a program name with args.
23347 set dummy "jikes"; ac_word=$2
23348 echo "$as_me:$LINENO: checking for $ac_word" >&5
23349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23350 if test "${ac_cv_path_JIKES+set}" = set; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23352 else
23353 case $JIKES in
23354 [\\/]* | ?:[\\/]*)
23355 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
23356 ;;
23357 *)
23358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23359 for as_dir in $PATH
23360 do
23361 IFS=$as_save_IFS
23362 test -z "$as_dir" && as_dir=.
23363 for ac_exec_ext in '' $ac_executable_extensions; do
23364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23365 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
23366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23367 break 2
23368 fi
23369 done
23370 done
23371
23372 ;;
23373 esac
23374 fi
23375 JIKES=$ac_cv_path_JIKES
23376
23377 if test -n "$JIKES"; then
23378 echo "$as_me:$LINENO: result: $JIKES" >&5
23379 echo "${ECHO_T}$JIKES" >&6
23380 else
23381 echo "$as_me:$LINENO: result: no" >&5
23382 echo "${ECHO_T}no" >&6
23383 fi
23384
23385 fi
23386 if test "x$JIKES" != "x"; then
23387 echo "$as_me:$LINENO: checking jikes version" >&5
23388 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
23389 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
23390 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
23391 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
23392 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
23393 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
23394 JIKES=""
23395 fi
23396 fi
23397 if test "x$JIKES" != "x"; then
23398 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
23399 echo "${ECHO_T}$JIKES_VERSION" >&6
23400 else
23401 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
23402 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
23403 fi
23404
23405 JIKESENCODING=
23406 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
23407 JIKESENCODING='-encoding UTF-8'
23408 fi
23409
23410
23411 JIKESWARNINGS="+Pno-switchcheck"
23412 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
23413 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
23414 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
23415 fi
23416 fi
23417
23418
23419 fi
23420
23421
23422 fi;
23423
23424
23425
23426
23427 # Check whether --with-kjc or --without-kjc was given.
23428 if test "${with_kjc+set}" = set; then
23429 withval="$with_kjc"
23430
23431 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
23432
23433 if test "x${withval}" != x; then
23434 if test -f "${withval}"; then
23435 KJC="${withval}"
23436 else
23437 # Extract the first word of ""${withval}"", so it can be a program name with args.
23438 set dummy "${withval}"; ac_word=$2
23439 echo "$as_me:$LINENO: checking for $ac_word" >&5
23440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23441 if test "${ac_cv_path_KJC+set}" = set; then
23442 echo $ECHO_N "(cached) $ECHO_C" >&6
23443 else
23444 case $KJC in
23445 [\\/]* | ?:[\\/]*)
23446 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
23447 ;;
23448 *)
23449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23450 for as_dir in $PATH
23451 do
23452 IFS=$as_save_IFS
23453 test -z "$as_dir" && as_dir=.
23454 for ac_exec_ext in '' $ac_executable_extensions; do
23455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23456 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
23457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23458 break 2
23459 fi
23460 done
23461 done
23462
23463 ;;
23464 esac
23465 fi
23466 KJC=$ac_cv_path_KJC
23467
23468 if test -n "$KJC"; then
23469 echo "$as_me:$LINENO: result: $KJC" >&5
23470 echo "${ECHO_T}$KJC" >&6
23471 else
23472 echo "$as_me:$LINENO: result: no" >&5
23473 echo "${ECHO_T}no" >&6
23474 fi
23475
23476 fi
23477 else
23478 # Extract the first word of ""kJC"", so it can be a program name with args.
23479 set dummy "kJC"; ac_word=$2
23480 echo "$as_me:$LINENO: checking for $ac_word" >&5
23481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23482 if test "${ac_cv_path_KJC+set}" = set; then
23483 echo $ECHO_N "(cached) $ECHO_C" >&6
23484 else
23485 case $KJC in
23486 [\\/]* | ?:[\\/]*)
23487 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
23488 ;;
23489 *)
23490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23491 for as_dir in $PATH
23492 do
23493 IFS=$as_save_IFS
23494 test -z "$as_dir" && as_dir=.
23495 for ac_exec_ext in '' $ac_executable_extensions; do
23496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23497 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
23498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23499 break 2
23500 fi
23501 done
23502 done
23503
23504 ;;
23505 esac
23506 fi
23507 KJC=$ac_cv_path_KJC
23508
23509 if test -n "$KJC"; then
23510 echo "$as_me:$LINENO: result: $KJC" >&5
23511 echo "${ECHO_T}$KJC" >&6
23512 else
23513 echo "$as_me:$LINENO: result: no" >&5
23514 echo "${ECHO_T}no" >&6
23515 fi
23516
23517 fi
23518
23519 else
23520 if test "x${withval}" != xno; then
23521
23522 if test "x" != x; then
23523 if test -f ""; then
23524 KJC=""
23525 else
23526 # Extract the first word of """", so it can be a program name with args.
23527 set dummy ""; ac_word=$2
23528 echo "$as_me:$LINENO: checking for $ac_word" >&5
23529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23530 if test "${ac_cv_path_KJC+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23532 else
23533 case $KJC in
23534 [\\/]* | ?:[\\/]*)
23535 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
23536 ;;
23537 *)
23538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23539 for as_dir in $PATH
23540 do
23541 IFS=$as_save_IFS
23542 test -z "$as_dir" && as_dir=.
23543 for ac_exec_ext in '' $ac_executable_extensions; do
23544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23545 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
23546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23547 break 2
23548 fi
23549 done
23550 done
23551
23552 ;;
23553 esac
23554 fi
23555 KJC=$ac_cv_path_KJC
23556
23557 if test -n "$KJC"; then
23558 echo "$as_me:$LINENO: result: $KJC" >&5
23559 echo "${ECHO_T}$KJC" >&6
23560 else
23561 echo "$as_me:$LINENO: result: no" >&5
23562 echo "${ECHO_T}no" >&6
23563 fi
23564
23565 fi
23566 else
23567 # Extract the first word of ""kJC"", so it can be a program name with args.
23568 set dummy "kJC"; ac_word=$2
23569 echo "$as_me:$LINENO: checking for $ac_word" >&5
23570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23571 if test "${ac_cv_path_KJC+set}" = set; then
23572 echo $ECHO_N "(cached) $ECHO_C" >&6
23573 else
23574 case $KJC in
23575 [\\/]* | ?:[\\/]*)
23576 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
23577 ;;
23578 *)
23579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23580 for as_dir in $PATH
23581 do
23582 IFS=$as_save_IFS
23583 test -z "$as_dir" && as_dir=.
23584 for ac_exec_ext in '' $ac_executable_extensions; do
23585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23586 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
23587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23588 break 2
23589 fi
23590 done
23591 done
23592
23593 ;;
23594 esac
23595 fi
23596 KJC=$ac_cv_path_KJC
23597
23598 if test -n "$KJC"; then
23599 echo "$as_me:$LINENO: result: $KJC" >&5
23600 echo "${ECHO_T}$KJC" >&6
23601 else
23602 echo "$as_me:$LINENO: result: no" >&5
23603 echo "${ECHO_T}no" >&6
23604 fi
23605
23606 fi
23607
23608 fi
23609 fi
23610 user_specified_javac=kjc
23611
23612 else
23613
23614
23615 if test "x" != x; then
23616 if test -f ""; then
23617 KJC=""
23618 else
23619 # Extract the first word of """", so it can be a program name with args.
23620 set dummy ""; ac_word=$2
23621 echo "$as_me:$LINENO: checking for $ac_word" >&5
23622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23623 if test "${ac_cv_path_KJC+set}" = set; then
23624 echo $ECHO_N "(cached) $ECHO_C" >&6
23625 else
23626 case $KJC in
23627 [\\/]* | ?:[\\/]*)
23628 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
23629 ;;
23630 *)
23631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23632 for as_dir in $PATH
23633 do
23634 IFS=$as_save_IFS
23635 test -z "$as_dir" && as_dir=.
23636 for ac_exec_ext in '' $ac_executable_extensions; do
23637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23638 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
23639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23640 break 2
23641 fi
23642 done
23643 done
23644
23645 ;;
23646 esac
23647 fi
23648 KJC=$ac_cv_path_KJC
23649
23650 if test -n "$KJC"; then
23651 echo "$as_me:$LINENO: result: $KJC" >&5
23652 echo "${ECHO_T}$KJC" >&6
23653 else
23654 echo "$as_me:$LINENO: result: no" >&5
23655 echo "${ECHO_T}no" >&6
23656 fi
23657
23658 fi
23659 else
23660 # Extract the first word of ""kJC"", so it can be a program name with args.
23661 set dummy "kJC"; ac_word=$2
23662 echo "$as_me:$LINENO: checking for $ac_word" >&5
23663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23664 if test "${ac_cv_path_KJC+set}" = set; then
23665 echo $ECHO_N "(cached) $ECHO_C" >&6
23666 else
23667 case $KJC in
23668 [\\/]* | ?:[\\/]*)
23669 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
23670 ;;
23671 *)
23672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23673 for as_dir in $PATH
23674 do
23675 IFS=$as_save_IFS
23676 test -z "$as_dir" && as_dir=.
23677 for ac_exec_ext in '' $ac_executable_extensions; do
23678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23679 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
23680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23681 break 2
23682 fi
23683 done
23684 done
23685
23686 ;;
23687 esac
23688 fi
23689 KJC=$ac_cv_path_KJC
23690
23691 if test -n "$KJC"; then
23692 echo "$as_me:$LINENO: result: $KJC" >&5
23693 echo "${ECHO_T}$KJC" >&6
23694 else
23695 echo "$as_me:$LINENO: result: no" >&5
23696 echo "${ECHO_T}no" >&6
23697 fi
23698
23699 fi
23700
23701
23702 fi;
23703
23704
23705
23706
23707 # Check whether --with-gcjx or --without-gcjx was given.
23708 if test "${with_gcjx+set}" = set; then
23709 withval="$with_gcjx"
23710
23711 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
23712
23713 if test "x${withval}" != x; then
23714 if test -f "${withval}"; then
23715 GCJX="${withval}"
23716 else
23717 # Extract the first word of ""${withval}"", so it can be a program name with args.
23718 set dummy "${withval}"; ac_word=$2
23719 echo "$as_me:$LINENO: checking for $ac_word" >&5
23720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23721 if test "${ac_cv_path_GCJX+set}" = set; then
23722 echo $ECHO_N "(cached) $ECHO_C" >&6
23723 else
23724 case $GCJX in
23725 [\\/]* | ?:[\\/]*)
23726 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
23727 ;;
23728 *)
23729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23730 for as_dir in $PATH
23731 do
23732 IFS=$as_save_IFS
23733 test -z "$as_dir" && as_dir=.
23734 for ac_exec_ext in '' $ac_executable_extensions; do
23735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23736 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
23737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23738 break 2
23739 fi
23740 done
23741 done
23742
23743 ;;
23744 esac
23745 fi
23746 GCJX=$ac_cv_path_GCJX
23747
23748 if test -n "$GCJX"; then
23749 echo "$as_me:$LINENO: result: $GCJX" >&5
23750 echo "${ECHO_T}$GCJX" >&6
23751 else
23752 echo "$as_me:$LINENO: result: no" >&5
23753 echo "${ECHO_T}no" >&6
23754 fi
23755
23756 fi
23757 else
23758 # Extract the first word of ""gcjx"", so it can be a program name with args.
23759 set dummy "gcjx"; ac_word=$2
23760 echo "$as_me:$LINENO: checking for $ac_word" >&5
23761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23762 if test "${ac_cv_path_GCJX+set}" = set; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23764 else
23765 case $GCJX in
23766 [\\/]* | ?:[\\/]*)
23767 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
23768 ;;
23769 *)
23770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23771 for as_dir in $PATH
23772 do
23773 IFS=$as_save_IFS
23774 test -z "$as_dir" && as_dir=.
23775 for ac_exec_ext in '' $ac_executable_extensions; do
23776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23777 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
23778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23779 break 2
23780 fi
23781 done
23782 done
23783
23784 ;;
23785 esac
23786 fi
23787 GCJX=$ac_cv_path_GCJX
23788
23789 if test -n "$GCJX"; then
23790 echo "$as_me:$LINENO: result: $GCJX" >&5
23791 echo "${ECHO_T}$GCJX" >&6
23792 else
23793 echo "$as_me:$LINENO: result: no" >&5
23794 echo "${ECHO_T}no" >&6
23795 fi
23796
23797 fi
23798
23799 else
23800 if test "x${withval}" != xno; then
23801
23802 if test "x" != x; then
23803 if test -f ""; then
23804 GCJX=""
23805 else
23806 # Extract the first word of """", so it can be a program name with args.
23807 set dummy ""; ac_word=$2
23808 echo "$as_me:$LINENO: checking for $ac_word" >&5
23809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23810 if test "${ac_cv_path_GCJX+set}" = set; then
23811 echo $ECHO_N "(cached) $ECHO_C" >&6
23812 else
23813 case $GCJX in
23814 [\\/]* | ?:[\\/]*)
23815 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
23816 ;;
23817 *)
23818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23819 for as_dir in $PATH
23820 do
23821 IFS=$as_save_IFS
23822 test -z "$as_dir" && as_dir=.
23823 for ac_exec_ext in '' $ac_executable_extensions; do
23824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23825 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
23826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23827 break 2
23828 fi
23829 done
23830 done
23831
23832 ;;
23833 esac
23834 fi
23835 GCJX=$ac_cv_path_GCJX
23836
23837 if test -n "$GCJX"; then
23838 echo "$as_me:$LINENO: result: $GCJX" >&5
23839 echo "${ECHO_T}$GCJX" >&6
23840 else
23841 echo "$as_me:$LINENO: result: no" >&5
23842 echo "${ECHO_T}no" >&6
23843 fi
23844
23845 fi
23846 else
23847 # Extract the first word of ""gcjx"", so it can be a program name with args.
23848 set dummy "gcjx"; ac_word=$2
23849 echo "$as_me:$LINENO: checking for $ac_word" >&5
23850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23851 if test "${ac_cv_path_GCJX+set}" = set; then
23852 echo $ECHO_N "(cached) $ECHO_C" >&6
23853 else
23854 case $GCJX in
23855 [\\/]* | ?:[\\/]*)
23856 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
23857 ;;
23858 *)
23859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23860 for as_dir in $PATH
23861 do
23862 IFS=$as_save_IFS
23863 test -z "$as_dir" && as_dir=.
23864 for ac_exec_ext in '' $ac_executable_extensions; do
23865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23866 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
23867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23868 break 2
23869 fi
23870 done
23871 done
23872
23873 ;;
23874 esac
23875 fi
23876 GCJX=$ac_cv_path_GCJX
23877
23878 if test -n "$GCJX"; then
23879 echo "$as_me:$LINENO: result: $GCJX" >&5
23880 echo "${ECHO_T}$GCJX" >&6
23881 else
23882 echo "$as_me:$LINENO: result: no" >&5
23883 echo "${ECHO_T}no" >&6
23884 fi
23885
23886 fi
23887
23888 fi
23889 fi
23890 user_specified_javac=gcjx
23891
23892 else
23893
23894
23895 if test "x" != x; then
23896 if test -f ""; then
23897 GCJX=""
23898 else
23899 # Extract the first word of """", so it can be a program name with args.
23900 set dummy ""; ac_word=$2
23901 echo "$as_me:$LINENO: checking for $ac_word" >&5
23902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23903 if test "${ac_cv_path_GCJX+set}" = set; then
23904 echo $ECHO_N "(cached) $ECHO_C" >&6
23905 else
23906 case $GCJX in
23907 [\\/]* | ?:[\\/]*)
23908 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
23909 ;;
23910 *)
23911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23912 for as_dir in $PATH
23913 do
23914 IFS=$as_save_IFS
23915 test -z "$as_dir" && as_dir=.
23916 for ac_exec_ext in '' $ac_executable_extensions; do
23917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23918 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
23919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23920 break 2
23921 fi
23922 done
23923 done
23924
23925 ;;
23926 esac
23927 fi
23928 GCJX=$ac_cv_path_GCJX
23929
23930 if test -n "$GCJX"; then
23931 echo "$as_me:$LINENO: result: $GCJX" >&5
23932 echo "${ECHO_T}$GCJX" >&6
23933 else
23934 echo "$as_me:$LINENO: result: no" >&5
23935 echo "${ECHO_T}no" >&6
23936 fi
23937
23938 fi
23939 else
23940 # Extract the first word of ""gcjx"", so it can be a program name with args.
23941 set dummy "gcjx"; ac_word=$2
23942 echo "$as_me:$LINENO: checking for $ac_word" >&5
23943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23944 if test "${ac_cv_path_GCJX+set}" = set; then
23945 echo $ECHO_N "(cached) $ECHO_C" >&6
23946 else
23947 case $GCJX in
23948 [\\/]* | ?:[\\/]*)
23949 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
23950 ;;
23951 *)
23952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23953 for as_dir in $PATH
23954 do
23955 IFS=$as_save_IFS
23956 test -z "$as_dir" && as_dir=.
23957 for ac_exec_ext in '' $ac_executable_extensions; do
23958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23959 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
23960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23961 break 2
23962 fi
23963 done
23964 done
23965
23966 ;;
23967 esac
23968 fi
23969 GCJX=$ac_cv_path_GCJX
23970
23971 if test -n "$GCJX"; then
23972 echo "$as_me:$LINENO: result: $GCJX" >&5
23973 echo "${ECHO_T}$GCJX" >&6
23974 else
23975 echo "$as_me:$LINENO: result: no" >&5
23976 echo "${ECHO_T}no" >&6
23977 fi
23978
23979 fi
23980
23981
23982 fi;
23983
23984
23985
23986
23987 # Check whether --with-ecj or --without-ecj was given.
23988 if test "${with_ecj+set}" = set; then
23989 withval="$with_ecj"
23990
23991 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
23992
23993 if test "x${withval}" != x; then
23994 if test -f "${withval}"; then
23995 ECJ="${withval}"
23996 else
23997 # Extract the first word of ""${withval}"", so it can be a program name with args.
23998 set dummy "${withval}"; ac_word=$2
23999 echo "$as_me:$LINENO: checking for $ac_word" >&5
24000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24001 if test "${ac_cv_path_ECJ+set}" = set; then
24002 echo $ECHO_N "(cached) $ECHO_C" >&6
24003 else
24004 case $ECJ in
24005 [\\/]* | ?:[\\/]*)
24006 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
24007 ;;
24008 *)
24009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24010 for as_dir in $PATH
24011 do
24012 IFS=$as_save_IFS
24013 test -z "$as_dir" && as_dir=.
24014 for ac_exec_ext in '' $ac_executable_extensions; do
24015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24016 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
24017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24018 break 2
24019 fi
24020 done
24021 done
24022
24023 ;;
24024 esac
24025 fi
24026 ECJ=$ac_cv_path_ECJ
24027
24028 if test -n "$ECJ"; then
24029 echo "$as_me:$LINENO: result: $ECJ" >&5
24030 echo "${ECHO_T}$ECJ" >&6
24031 else
24032 echo "$as_me:$LINENO: result: no" >&5
24033 echo "${ECHO_T}no" >&6
24034 fi
24035
24036 fi
24037 else
24038 # Extract the first word of ""ecj"", so it can be a program name with args.
24039 set dummy "ecj"; ac_word=$2
24040 echo "$as_me:$LINENO: checking for $ac_word" >&5
24041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24042 if test "${ac_cv_path_ECJ+set}" = set; then
24043 echo $ECHO_N "(cached) $ECHO_C" >&6
24044 else
24045 case $ECJ in
24046 [\\/]* | ?:[\\/]*)
24047 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
24048 ;;
24049 *)
24050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24051 for as_dir in $PATH
24052 do
24053 IFS=$as_save_IFS
24054 test -z "$as_dir" && as_dir=.
24055 for ac_exec_ext in '' $ac_executable_extensions; do
24056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24057 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
24058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24059 break 2
24060 fi
24061 done
24062 done
24063
24064 ;;
24065 esac
24066 fi
24067 ECJ=$ac_cv_path_ECJ
24068
24069 if test -n "$ECJ"; then
24070 echo "$as_me:$LINENO: result: $ECJ" >&5
24071 echo "${ECHO_T}$ECJ" >&6
24072 else
24073 echo "$as_me:$LINENO: result: no" >&5
24074 echo "${ECHO_T}no" >&6
24075 fi
24076
24077 fi
24078
24079 else
24080 if test "x${withval}" != xno; then
24081
24082 if test "x" != x; then
24083 if test -f ""; then
24084 ECJ=""
24085 else
24086 # Extract the first word of """", so it can be a program name with args.
24087 set dummy ""; ac_word=$2
24088 echo "$as_me:$LINENO: checking for $ac_word" >&5
24089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24090 if test "${ac_cv_path_ECJ+set}" = set; then
24091 echo $ECHO_N "(cached) $ECHO_C" >&6
24092 else
24093 case $ECJ in
24094 [\\/]* | ?:[\\/]*)
24095 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
24096 ;;
24097 *)
24098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24099 for as_dir in $PATH
24100 do
24101 IFS=$as_save_IFS
24102 test -z "$as_dir" && as_dir=.
24103 for ac_exec_ext in '' $ac_executable_extensions; do
24104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24105 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
24106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24107 break 2
24108 fi
24109 done
24110 done
24111
24112 ;;
24113 esac
24114 fi
24115 ECJ=$ac_cv_path_ECJ
24116
24117 if test -n "$ECJ"; then
24118 echo "$as_me:$LINENO: result: $ECJ" >&5
24119 echo "${ECHO_T}$ECJ" >&6
24120 else
24121 echo "$as_me:$LINENO: result: no" >&5
24122 echo "${ECHO_T}no" >&6
24123 fi
24124
24125 fi
24126 else
24127 # Extract the first word of ""ecj"", so it can be a program name with args.
24128 set dummy "ecj"; ac_word=$2
24129 echo "$as_me:$LINENO: checking for $ac_word" >&5
24130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24131 if test "${ac_cv_path_ECJ+set}" = set; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24133 else
24134 case $ECJ in
24135 [\\/]* | ?:[\\/]*)
24136 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
24137 ;;
24138 *)
24139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24140 for as_dir in $PATH
24141 do
24142 IFS=$as_save_IFS
24143 test -z "$as_dir" && as_dir=.
24144 for ac_exec_ext in '' $ac_executable_extensions; do
24145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24146 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
24147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24148 break 2
24149 fi
24150 done
24151 done
24152
24153 ;;
24154 esac
24155 fi
24156 ECJ=$ac_cv_path_ECJ
24157
24158 if test -n "$ECJ"; then
24159 echo "$as_me:$LINENO: result: $ECJ" >&5
24160 echo "${ECHO_T}$ECJ" >&6
24161 else
24162 echo "$as_me:$LINENO: result: no" >&5
24163 echo "${ECHO_T}no" >&6
24164 fi
24165
24166 fi
24167
24168 fi
24169 fi
24170 user_specified_javac=ecj
24171
24172 else
24173
24174
24175 if test "x" != x; then
24176 if test -f ""; then
24177 ECJ=""
24178 else
24179 # Extract the first word of """", so it can be a program name with args.
24180 set dummy ""; ac_word=$2
24181 echo "$as_me:$LINENO: checking for $ac_word" >&5
24182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24183 if test "${ac_cv_path_ECJ+set}" = set; then
24184 echo $ECHO_N "(cached) $ECHO_C" >&6
24185 else
24186 case $ECJ in
24187 [\\/]* | ?:[\\/]*)
24188 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
24189 ;;
24190 *)
24191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24192 for as_dir in $PATH
24193 do
24194 IFS=$as_save_IFS
24195 test -z "$as_dir" && as_dir=.
24196 for ac_exec_ext in '' $ac_executable_extensions; do
24197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24198 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
24199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24200 break 2
24201 fi
24202 done
24203 done
24204
24205 ;;
24206 esac
24207 fi
24208 ECJ=$ac_cv_path_ECJ
24209
24210 if test -n "$ECJ"; then
24211 echo "$as_me:$LINENO: result: $ECJ" >&5
24212 echo "${ECHO_T}$ECJ" >&6
24213 else
24214 echo "$as_me:$LINENO: result: no" >&5
24215 echo "${ECHO_T}no" >&6
24216 fi
24217
24218 fi
24219 else
24220 # Extract the first word of ""ecj"", so it can be a program name with args.
24221 set dummy "ecj"; ac_word=$2
24222 echo "$as_me:$LINENO: checking for $ac_word" >&5
24223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24224 if test "${ac_cv_path_ECJ+set}" = set; then
24225 echo $ECHO_N "(cached) $ECHO_C" >&6
24226 else
24227 case $ECJ in
24228 [\\/]* | ?:[\\/]*)
24229 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
24230 ;;
24231 *)
24232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24233 for as_dir in $PATH
24234 do
24235 IFS=$as_save_IFS
24236 test -z "$as_dir" && as_dir=.
24237 for ac_exec_ext in '' $ac_executable_extensions; do
24238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24239 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
24240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24241 break 2
24242 fi
24243 done
24244 done
24245
24246 ;;
24247 esac
24248 fi
24249 ECJ=$ac_cv_path_ECJ
24250
24251 if test -n "$ECJ"; then
24252 echo "$as_me:$LINENO: result: $ECJ" >&5
24253 echo "${ECHO_T}$ECJ" >&6
24254 else
24255 echo "$as_me:$LINENO: result: no" >&5
24256 echo "${ECHO_T}no" >&6
24257 fi
24258
24259 fi
24260
24261
24262 fi;
24263
24264
24265
24266 if test "x${user_specified_javac}" = x; then
24267
24268
24269 if test "x${GCJ}" != x; then
24270 FOUND_GCJ_TRUE=
24271 FOUND_GCJ_FALSE='#'
24272 else
24273 FOUND_GCJ_TRUE='#'
24274 FOUND_GCJ_FALSE=
24275 fi
24276
24277
24278
24279 if test "x${JIKES}" != x; then
24280 FOUND_JIKES_TRUE=
24281 FOUND_JIKES_FALSE='#'
24282 else
24283 FOUND_JIKES_TRUE='#'
24284 FOUND_JIKES_FALSE=
24285 fi
24286
24287
24288
24289 if test "x${ECJ}" != x; then
24290 FOUND_ECJ_TRUE=
24291 FOUND_ECJ_FALSE='#'
24292 else
24293 FOUND_ECJ_TRUE='#'
24294 FOUND_ECJ_FALSE=
24295 fi
24296
24297 else
24298
24299
24300 if test "x${user_specified_javac}" = xgcj; then
24301 FOUND_GCJ_TRUE=
24302 FOUND_GCJ_FALSE='#'
24303 else
24304 FOUND_GCJ_TRUE='#'
24305 FOUND_GCJ_FALSE=
24306 fi
24307
24308
24309
24310 if test "x${user_specified_javac}" = xjikes; then
24311 FOUND_JIKES_TRUE=
24312 FOUND_JIKES_FALSE='#'
24313 else
24314 FOUND_JIKES_TRUE='#'
24315 FOUND_JIKES_FALSE=
24316 fi
24317
24318
24319
24320 if test "x${user_specified_javac}" = xecj; then
24321 FOUND_ECJ_TRUE=
24322 FOUND_ECJ_FALSE='#'
24323 else
24324 FOUND_ECJ_TRUE='#'
24325 FOUND_ECJ_FALSE=
24326 fi
24327
24328 fi
24329
24330
24331 if test "x${user_specified_javac}" = xkjc; then
24332 FOUND_KJC_TRUE=
24333 FOUND_KJC_FALSE='#'
24334 else
24335 FOUND_KJC_TRUE='#'
24336 FOUND_KJC_FALSE=
24337 fi
24338
24339
24340
24341 if test "x${user_specified_javac}" = xgcjx; then
24342 FOUND_GCJX_TRUE=
24343 FOUND_GCJX_FALSE='#'
24344 else
24345 FOUND_GCJX_TRUE='#'
24346 FOUND_GCJX_FALSE=
24347 fi
24348
24349
24350 if test "x${GCJ}" = x && test "x${JIKES}" = x && test "x${user_specified_javac}" != xkjc && test "x${user_specified_javac}" != xgcjx && test "x${user_specified_javac}" != xecj; then
24351 { { echo "$as_me:$LINENO: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&5
24352 echo "$as_me: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&2;}
24353 { (exit 1); exit 1; }; }
24354 fi
24355
24356
24357
24358
24359 # Check whether --with-classpath or --without-classpath was given.
24360 if test "${with_classpath+set}" = set; then
24361 withval="$with_classpath"
24362
24363 if test "x${withval}" = xyes; then
24364 # set user classpath to CLASSPATH from env
24365 echo "$as_me:$LINENO: checking for classlib" >&5
24366 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
24367 USER_CLASSLIB=${CLASSPATH}
24368
24369 echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
24370 echo "${ECHO_T}${USER_CLASSLIB}" >&6
24371 conditional_with_classlib=true
24372 elif test "x${withval}" != x && test "x${withval}" != xno; then
24373 # set user classpath to specified value
24374 echo "$as_me:$LINENO: checking for classlib" >&5
24375 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
24376 USER_CLASSLIB=${withval}
24377
24378 echo "$as_me:$LINENO: result: ${withval}" >&5
24379 echo "${ECHO_T}${withval}" >&6
24380 conditional_with_classlib=true
24381 fi
24382
24383 else
24384 conditional_with_classlib=false
24385 fi;
24386
24387
24388 if test "x${conditional_with_classlib}" = xtrue; then
24389 USER_SPECIFIED_CLASSLIB_TRUE=
24390 USER_SPECIFIED_CLASSLIB_FALSE='#'
24391 else
24392 USER_SPECIFIED_CLASSLIB_TRUE='#'
24393 USER_SPECIFIED_CLASSLIB_FALSE=
24394 fi
24395
24396
24397
24398 # Check whether --with-vm-classes or --without-vm-classes was given.
24399 if test "${with_vm_classes+set}" = set; then
24400 withval="$with_vm_classes"
24401 vm_classes="$with_vm_classes"
24402 else
24403 vm_classes='${top_srcdir}/vm/reference'
24404 fi;
24405
24406
24407
24408 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24409 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24410 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24411 if test "${enable_maintainer_mode+set}" = set; then
24412 enableval="$enable_maintainer_mode"
24413 USE_MAINTAINER_MODE=$enableval
24414 else
24415 USE_MAINTAINER_MODE=no
24416 fi;
24417 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
24418 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
24419
24420
24421 if test $USE_MAINTAINER_MODE = yes; then
24422 MAINTAINER_MODE_TRUE=
24423 MAINTAINER_MODE_FALSE='#'
24424 else
24425 MAINTAINER_MODE_TRUE='#'
24426 MAINTAINER_MODE_FALSE=
24427 fi
24428
24429 MAINT=$MAINTAINER_MODE_TRUE
24430
24431
24432
24433 # Check whether --enable-debug or --disable-debug was given.
24434 if test "${enable_debug+set}" = set; then
24435 enableval="$enable_debug"
24436 case "${enableval}" in
24437 yes)
24438 LIBDEBUG="true"
24439
24440 cat >>confdefs.h <<\_ACEOF
24441 #define DEBUG 1
24442 _ACEOF
24443
24444 ;;
24445 no) LIBDEBUG="false" ;;
24446 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
24447 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
24448 { (exit 1); exit 1; }; } ;;
24449 esac
24450 else
24451 LIBDEBUG="false"
24452 fi;
24453
24454
24455 # Check whether --enable-load-library or --disable-load-library was given.
24456 if test "${enable_load_library+set}" = set; then
24457 enableval="$enable_load_library"
24458 case "${enableval}" in
24459 yes) INIT_LOAD_LIBRARY="true" ;;
24460 no) INIT_LOAD_LIBRARY="false" ;;
24461 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
24462 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
24463 { (exit 1); exit 1; }; } ;;
24464 esac
24465 else
24466 INIT_LOAD_LIBRARY="true"
24467 fi;
24468
24469
24470
24471
24472 # Check whether --with-ecj-jar or --without-ecj-jar was given.
24473 if test "${with_ecj_jar+set}" = set; then
24474 withval="$with_ecj_jar"
24475 ECJ_JAR=$withval
24476 else
24477 if test -f $multi_basedir/ecj.jar; then
24478 ECJ_JAR='$(jardir)/ecj.jar'
24479 fi
24480 fi;
24481
24482
24483 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
24484 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
24485 enableval="$enable_java_lang_system_explicit_initialization"
24486 case "${enableval}" in
24487 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
24488 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
24489 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
24490 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
24491 { (exit 1); exit 1; }; } ;;
24492 esac
24493 else
24494 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
24495 fi;
24496
24497
24498
24499 REMOVE=""
24500
24501
24502 # Extract the first word of "mkdir", so it can be a program name with args.
24503 set dummy mkdir; ac_word=$2
24504 echo "$as_me:$LINENO: checking for $ac_word" >&5
24505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24506 if test "${ac_cv_path_MKDIR+set}" = set; then
24507 echo $ECHO_N "(cached) $ECHO_C" >&6
24508 else
24509 case $MKDIR in
24510 [\\/]* | ?:[\\/]*)
24511 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
24512 ;;
24513 *)
24514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24515 for as_dir in $PATH
24516 do
24517 IFS=$as_save_IFS
24518 test -z "$as_dir" && as_dir=.
24519 for ac_exec_ext in '' $ac_executable_extensions; do
24520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24521 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
24522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24523 break 2
24524 fi
24525 done
24526 done
24527
24528 ;;
24529 esac
24530 fi
24531 MKDIR=$ac_cv_path_MKDIR
24532
24533 if test -n "$MKDIR"; then
24534 echo "$as_me:$LINENO: result: $MKDIR" >&5
24535 echo "${ECHO_T}$MKDIR" >&6
24536 else
24537 echo "$as_me:$LINENO: result: no" >&5
24538 echo "${ECHO_T}no" >&6
24539 fi
24540
24541 # Extract the first word of "cp", so it can be a program name with args.
24542 set dummy cp; ac_word=$2
24543 echo "$as_me:$LINENO: checking for $ac_word" >&5
24544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24545 if test "${ac_cv_path_CP+set}" = set; then
24546 echo $ECHO_N "(cached) $ECHO_C" >&6
24547 else
24548 case $CP in
24549 [\\/]* | ?:[\\/]*)
24550 ac_cv_path_CP="$CP" # Let the user override the test with a path.
24551 ;;
24552 *)
24553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24554 for as_dir in $PATH
24555 do
24556 IFS=$as_save_IFS
24557 test -z "$as_dir" && as_dir=.
24558 for ac_exec_ext in '' $ac_executable_extensions; do
24559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24560 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
24561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24562 break 2
24563 fi
24564 done
24565 done
24566
24567 ;;
24568 esac
24569 fi
24570 CP=$ac_cv_path_CP
24571
24572 if test -n "$CP"; then
24573 echo "$as_me:$LINENO: result: $CP" >&5
24574 echo "${ECHO_T}$CP" >&6
24575 else
24576 echo "$as_me:$LINENO: result: no" >&5
24577 echo "${ECHO_T}no" >&6
24578 fi
24579
24580 # Extract the first word of "date", so it can be a program name with args.
24581 set dummy date; ac_word=$2
24582 echo "$as_me:$LINENO: checking for $ac_word" >&5
24583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24584 if test "${ac_cv_path_DATE+set}" = set; then
24585 echo $ECHO_N "(cached) $ECHO_C" >&6
24586 else
24587 case $DATE in
24588 [\\/]* | ?:[\\/]*)
24589 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
24590 ;;
24591 *)
24592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24593 for as_dir in $PATH
24594 do
24595 IFS=$as_save_IFS
24596 test -z "$as_dir" && as_dir=.
24597 for ac_exec_ext in '' $ac_executable_extensions; do
24598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24599 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
24600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24601 break 2
24602 fi
24603 done
24604 done
24605
24606 ;;
24607 esac
24608 fi
24609 DATE=$ac_cv_path_DATE
24610
24611 if test -n "$DATE"; then
24612 echo "$as_me:$LINENO: result: $DATE" >&5
24613 echo "${ECHO_T}$DATE" >&6
24614 else
24615 echo "$as_me:$LINENO: result: no" >&5
24616 echo "${ECHO_T}no" >&6
24617 fi
24618
24619
24620 # Extract the first word of "find", so it can be a program name with args.
24621 set dummy find; ac_word=$2
24622 echo "$as_me:$LINENO: checking for $ac_word" >&5
24623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24624 if test "${ac_cv_path_FIND+set}" = set; then
24625 echo $ECHO_N "(cached) $ECHO_C" >&6
24626 else
24627 case $FIND in
24628 [\\/]* | ?:[\\/]*)
24629 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
24630 ;;
24631 *)
24632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24633 for as_dir in $PATH
24634 do
24635 IFS=$as_save_IFS
24636 test -z "$as_dir" && as_dir=.
24637 for ac_exec_ext in '' $ac_executable_extensions; do
24638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24639 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
24640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24641 break 2
24642 fi
24643 done
24644 done
24645
24646 ;;
24647 esac
24648 fi
24649 FIND=$ac_cv_path_FIND
24650
24651 if test -n "$FIND"; then
24652 echo "$as_me:$LINENO: result: $FIND" >&5
24653 echo "${ECHO_T}$FIND" >&6
24654 else
24655 echo "$as_me:$LINENO: result: no" >&5
24656 echo "${ECHO_T}no" >&6
24657 fi
24658
24659
24660
24661 # Extract the first word of "zip", so it can be a program name with args.
24662 set dummy zip; ac_word=$2
24663 echo "$as_me:$LINENO: checking for $ac_word" >&5
24664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24665 if test "${ac_cv_path_ZIP+set}" = set; then
24666 echo $ECHO_N "(cached) $ECHO_C" >&6
24667 else
24668 case $ZIP in
24669 [\\/]* | ?:[\\/]*)
24670 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
24671 ;;
24672 *)
24673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24674 for as_dir in $PATH
24675 do
24676 IFS=$as_save_IFS
24677 test -z "$as_dir" && as_dir=.
24678 for ac_exec_ext in '' $ac_executable_extensions; do
24679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24680 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
24681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24682 break 2
24683 fi
24684 done
24685 done
24686
24687 ;;
24688 esac
24689 fi
24690 ZIP=$ac_cv_path_ZIP
24691
24692 if test -n "$ZIP"; then
24693 echo "$as_me:$LINENO: result: $ZIP" >&5
24694 echo "${ECHO_T}$ZIP" >&6
24695 else
24696 echo "$as_me:$LINENO: result: no" >&5
24697 echo "${ECHO_T}no" >&6
24698 fi
24699
24700
24701 # Check whether --with-fastjar or --without-fastjar was given.
24702 if test "${with_fastjar+set}" = set; then
24703 withval="$with_fastjar"
24704
24705 echo "$as_me:$LINENO: checking for user supplied fastjar" >&5
24706 echo $ECHO_N "checking for user supplied fastjar... $ECHO_C" >&6
24707 FASTJAR=${withval}
24708 echo "$as_me:$LINENO: result: ${FASTJAR}" >&5
24709 echo "${ECHO_T}${FASTJAR}" >&6
24710
24711 else
24712 # Extract the first word of "fastjar", so it can be a program name with args.
24713 set dummy fastjar; ac_word=$2
24714 echo "$as_me:$LINENO: checking for $ac_word" >&5
24715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24716 if test "${ac_cv_path_FASTJAR+set}" = set; then
24717 echo $ECHO_N "(cached) $ECHO_C" >&6
24718 else
24719 case $FASTJAR in
24720 [\\/]* | ?:[\\/]*)
24721 ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
24722 ;;
24723 *)
24724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24725 for as_dir in $PATH
24726 do
24727 IFS=$as_save_IFS
24728 test -z "$as_dir" && as_dir=.
24729 for ac_exec_ext in '' $ac_executable_extensions; do
24730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24731 ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
24732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24733 break 2
24734 fi
24735 done
24736 done
24737
24738 ;;
24739 esac
24740 fi
24741 FASTJAR=$ac_cv_path_FASTJAR
24742
24743 if test -n "$FASTJAR"; then
24744 echo "$as_me:$LINENO: result: $FASTJAR" >&5
24745 echo "${ECHO_T}$FASTJAR" >&6
24746 else
24747 echo "$as_me:$LINENO: result: no" >&5
24748 echo "${ECHO_T}no" >&6
24749 fi
24750
24751 fi;
24752 if test x"${FASTJAR}" != x; then
24753 ZIP=""
24754 fi
24755
24756
24757 # Check whether --with-glibj or --without-glibj was given.
24758 if test "${with_glibj+set}" = set; then
24759 withval="$with_glibj"
24760
24761 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
24762 install_class_files=no
24763 build_class_files=yes
24764 use_zip=yes
24765 elif test "x${withval}" = xboth; then
24766 install_class_files=yes
24767 build_class_files=yes
24768 use_zip=yes
24769 elif test "x${withval}" = xflat; then
24770 install_class_files=yes
24771 build_class_files=yes
24772 use_zip=no
24773 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
24774 install_class_files=no
24775 build_class_files=no
24776 use_zip=no
24777 elif test "x${withval}" = xbuild; then
24778 install_class_files=no
24779 build_class_files=yes
24780 use_zip=no
24781 else
24782 { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
24783 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
24784 { (exit 1); exit 1; }; }
24785 fi
24786
24787 else
24788
24789 install_class_files=no
24790 use_zip=yes
24791
24792 fi;
24793
24794
24795 if test "x${use_zip}" = xyes; then
24796 INSTALL_GLIBJ_ZIP_TRUE=
24797 INSTALL_GLIBJ_ZIP_FALSE='#'
24798 else
24799 INSTALL_GLIBJ_ZIP_TRUE='#'
24800 INSTALL_GLIBJ_ZIP_FALSE=
24801 fi
24802
24803
24804
24805 if test "x${install_class_files}" = xyes; then
24806 INSTALL_CLASS_FILES_TRUE=
24807 INSTALL_CLASS_FILES_FALSE='#'
24808 else
24809 INSTALL_CLASS_FILES_TRUE='#'
24810 INSTALL_CLASS_FILES_FALSE=
24811 fi
24812
24813
24814
24815 if test "x${build_class_files}" = xyes; then
24816 BUILD_CLASS_FILES_TRUE=
24817 BUILD_CLASS_FILES_FALSE='#'
24818 else
24819 BUILD_CLASS_FILES_TRUE='#'
24820 BUILD_CLASS_FILES_FALSE=
24821 fi
24822
24823
24824 # Check whether --enable-examples or --disable-examples was given.
24825 if test "${enable_examples+set}" = set; then
24826 enableval="$enable_examples"
24827 case "${enableval}" in
24828 yes) EXAMPLESDIR="examples" ;;
24829 no) EXAMPLESDIR="" ;;
24830 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
24831 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
24832 { (exit 1); exit 1; }; } ;;
24833 esac
24834 else
24835 EXAMPLESDIR="examples"
24836 fi;
24837 if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
24838 EXAMPLESDIR=""
24839 fi
24840
24841
24842
24843
24844
24845 # Check whether --with-gjdoc or --without-gjdoc was given.
24846 if test "${with_gjdoc+set}" = set; then
24847 withval="$with_gjdoc"
24848 if test "x${withval}" = xno; then
24849 WITH_GJDOC=no;
24850 elif test "x${withval}" = xyes -o "x{withval}" = x; then
24851 WITH_GJDOC=yes;
24852 # Extract the first word of "gjdoc", so it can be a program name with args.
24853 set dummy gjdoc; ac_word=$2
24854 echo "$as_me:$LINENO: checking for $ac_word" >&5
24855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24856 if test "${ac_cv_path_GJDOC+set}" = set; then
24857 echo $ECHO_N "(cached) $ECHO_C" >&6
24858 else
24859 case $GJDOC in
24860 [\\/]* | ?:[\\/]*)
24861 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
24862 ;;
24863 *)
24864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24865 for as_dir in $PATH
24866 do
24867 IFS=$as_save_IFS
24868 test -z "$as_dir" && as_dir=.
24869 for ac_exec_ext in '' $ac_executable_extensions; do
24870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24871 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
24872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24873 break 2
24874 fi
24875 done
24876 done
24877
24878 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
24879 ;;
24880 esac
24881 fi
24882 GJDOC=$ac_cv_path_GJDOC
24883
24884 if test -n "$GJDOC"; then
24885 echo "$as_me:$LINENO: result: $GJDOC" >&5
24886 echo "${ECHO_T}$GJDOC" >&6
24887 else
24888 echo "$as_me:$LINENO: result: no" >&5
24889 echo "${ECHO_T}no" >&6
24890 fi
24891
24892 if test "x${GJDOC}" = xno; then
24893 { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
24894 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
24895 { (exit 1); exit 1; }; };
24896 fi
24897 else
24898 WITH_GJDOC=yes
24899 GJDOC="${withval}"
24900 as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
24901 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
24902 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
24903 if eval "test \"\${$as_ac_File+set}\" = set"; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24905 else
24906 test "$cross_compiling" = yes &&
24907 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24908 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24909 { (exit 1); exit 1; }; }
24910 if test -r "${GJDOC}"; then
24911 eval "$as_ac_File=yes"
24912 else
24913 eval "$as_ac_File=no"
24914 fi
24915 fi
24916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
24917 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
24918 if test `eval echo '${'$as_ac_File'}'` = yes; then
24919 :
24920 else
24921 { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
24922 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
24923 { (exit 1); exit 1; }; }
24924 fi
24925
24926 fi
24927 else
24928 WITH_GJDOC=no
24929 fi;
24930
24931
24932
24933 if test "x${WITH_GJDOC}" = xyes; then
24934 CREATE_API_DOCS_TRUE=
24935 CREATE_API_DOCS_FALSE='#'
24936 else
24937 CREATE_API_DOCS_TRUE='#'
24938 CREATE_API_DOCS_FALSE=
24939 fi
24940
24941
24942
24943
24944
24945 # Check whether --with-jay or --without-jay was given.
24946 if test "${with_jay+set}" = set; then
24947 withval="$with_jay"
24948
24949 if test -d "${withval}"; then
24950 JAY_DIR_PATH="${withval}"
24951 # Extract the first word of "jay", so it can be a program name with args.
24952 set dummy jay; ac_word=$2
24953 echo "$as_me:$LINENO: checking for $ac_word" >&5
24954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24955 if test "${ac_cv_path_JAY+set}" = set; then
24956 echo $ECHO_N "(cached) $ECHO_C" >&6
24957 else
24958 case $JAY in
24959 [\\/]* | ?:[\\/]*)
24960 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
24961 ;;
24962 *)
24963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24964 for as_dir in ${JAY_DIR_PATH}
24965 do
24966 IFS=$as_save_IFS
24967 test -z "$as_dir" && as_dir=.
24968 for ac_exec_ext in '' $ac_executable_extensions; do
24969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24970 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
24971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24972 break 2
24973 fi
24974 done
24975 done
24976
24977 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
24978 ;;
24979 esac
24980 fi
24981 JAY=$ac_cv_path_JAY
24982
24983 if test -n "$JAY"; then
24984 echo "$as_me:$LINENO: result: $JAY" >&5
24985 echo "${ECHO_T}$JAY" >&6
24986 else
24987 echo "$as_me:$LINENO: result: no" >&5
24988 echo "${ECHO_T}no" >&6
24989 fi
24990
24991 if test "x${JAY}" = xno; then
24992 { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
24993 echo "$as_me: error: \"jay executable not found\"" >&2;}
24994 { (exit 1); exit 1; }; };
24995 fi
24996 else
24997 JAY_DIR_PATH=`dirname "${withval}"`
24998 JAY="${withval}"
24999
25000 fi
25001 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
25002 as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
25003 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
25004 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
25005 if eval "test \"\${$as_ac_File+set}\" = set"; then
25006 echo $ECHO_N "(cached) $ECHO_C" >&6
25007 else
25008 test "$cross_compiling" = yes &&
25009 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25010 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25011 { (exit 1); exit 1; }; }
25012 if test -r "${JAY_SKELETON}"; then
25013 eval "$as_ac_File=yes"
25014 else
25015 eval "$as_ac_File=no"
25016 fi
25017 fi
25018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
25019 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
25020 if test `eval echo '${'$as_ac_File'}'` = yes; then
25021 :
25022 else
25023 { { echo "$as_me:$LINENO: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&5
25024 echo "$as_me: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&2;}
25025 { (exit 1); exit 1; }; }
25026 fi
25027
25028 JAY_FOUND=yes
25029
25030 else
25031
25032 JAY_FOUND=no
25033
25034 fi;
25035
25036
25037 if test "x${JAY_FOUND}" = xyes; then
25038 REGEN_PARSERS_TRUE=
25039 REGEN_PARSERS_FALSE='#'
25040 else
25041 REGEN_PARSERS_TRUE='#'
25042 REGEN_PARSERS_FALSE=
25043 fi
25044
25045
25046
25047 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
25048 if test "${enable_portable_native_sync+set}" = set; then
25049 enableval="$enable_portable_native_sync"
25050 case "${enableval}" in
25051 yes)
25052
25053 cat >>confdefs.h <<\_ACEOF
25054 #define PORTABLE_NATIVE_SYNC 1
25055 _ACEOF
25056
25057 ;;
25058 no) ;;
25059 *)
25060 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
25061 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
25062 { (exit 1); exit 1; }; }
25063 ;;
25064 esac
25065 fi;
25066
25067 # ------ AX CREATE STDINT H -------------------------------------
25068 echo "$as_me:$LINENO: checking for stdint types" >&5
25069 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
25070 ac_stdint_h=`echo include/config-int.h`
25071 # try to shortcircuit - if the default include path of the compiler
25072 # can find a "stdint.h" header then we assume that all compilers can.
25073 if test "${ac_cv_header_stdint_t+set}" = set; then
25074 echo $ECHO_N "(cached) $ECHO_C" >&6
25075 else
25076
25077 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
25078 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
25079 old_CFLAGS="$CFLAGS" ; CFLAGS=""
25080 cat >conftest.$ac_ext <<_ACEOF
25081 /* confdefs.h. */
25082 _ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h. */
25086 #include <stdint.h>
25087 int
25088 main ()
25089 {
25090 int_least32_t v = 0;
25091 ;
25092 return 0;
25093 }
25094 _ACEOF
25095 rm -f conftest.$ac_objext
25096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25097 (eval $ac_compile) 2>conftest.er1
25098 ac_status=$?
25099 grep -v '^ *+' conftest.er1 >conftest.err
25100 rm -f conftest.er1
25101 cat conftest.err >&5
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } &&
25104 { ac_try='test -z "$ac_c_werror_flag"
25105 || test ! -s conftest.err'
25106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107 (eval $ac_try) 2>&5
25108 ac_status=$?
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); }; } &&
25111 { ac_try='test -s conftest.$ac_objext'
25112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113 (eval $ac_try) 2>&5
25114 ac_status=$?
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); }; }; then
25117 ac_cv_stdint_result="(assuming C99 compatible system)"
25118 ac_cv_header_stdint_t="stdint.h";
25119 else
25120 echo "$as_me: failed program was:" >&5
25121 sed 's/^/| /' conftest.$ac_ext >&5
25122
25123 ac_cv_header_stdint_t=""
25124 fi
25125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25126 CXXFLAGS="$old_CXXFLAGS"
25127 CPPFLAGS="$old_CPPFLAGS"
25128 CFLAGS="$old_CFLAGS"
25129 fi
25130
25131
25132 v="... $ac_cv_header_stdint_h"
25133 if test "$ac_stdint_h" = "stdint.h" ; then
25134 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
25135 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
25136 elif test "$ac_stdint_h" = "inttypes.h" ; then
25137 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
25138 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
25139 elif test "_$ac_cv_header_stdint_t" = "_" ; then
25140 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
25141 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
25142 else
25143 ac_cv_header_stdint="$ac_cv_header_stdint_t"
25144 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
25145 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
25146 fi
25147
25148 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
25149
25150
25151 inttype_headers=`echo | sed -e 's/,/ /g'`
25152
25153 ac_cv_stdint_result="(no helpful system typedefs seen)"
25154
25155 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
25156 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
25157 if test "${ac_cv_header_stdint_x+set}" = set; then
25158 echo $ECHO_N "(cached) $ECHO_C" >&6
25159 else
25160
25161 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
25162 echo "$as_me:$LINENO: result: (..)" >&5
25163 echo "${ECHO_T}(..)" >&6
25164 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
25165 unset ac_cv_type_uintptr_t
25166 unset ac_cv_type_uint64_t
25167 echo "$as_me:$LINENO: checking for uintptr_t" >&5
25168 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
25169 if test "${ac_cv_type_uintptr_t+set}" = set; then
25170 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 else
25172 cat >conftest.$ac_ext <<_ACEOF
25173 /* confdefs.h. */
25174 _ACEOF
25175 cat confdefs.h >>conftest.$ac_ext
25176 cat >>conftest.$ac_ext <<_ACEOF
25177 /* end confdefs.h. */
25178 #include <$i>
25179
25180 int
25181 main ()
25182 {
25183 if ((uintptr_t *) 0)
25184 return 0;
25185 if (sizeof (uintptr_t))
25186 return 0;
25187 ;
25188 return 0;
25189 }
25190 _ACEOF
25191 rm -f conftest.$ac_objext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25193 (eval $ac_compile) 2>conftest.er1
25194 ac_status=$?
25195 grep -v '^ *+' conftest.er1 >conftest.err
25196 rm -f conftest.er1
25197 cat conftest.err >&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } &&
25200 { ac_try='test -z "$ac_c_werror_flag"
25201 || test ! -s conftest.err'
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25204 ac_status=$?
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; } &&
25207 { ac_try='test -s conftest.$ac_objext'
25208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25210 ac_status=$?
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; }; then
25213 ac_cv_type_uintptr_t=yes
25214 else
25215 echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25217
25218 ac_cv_type_uintptr_t=no
25219 fi
25220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25221 fi
25222 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
25223 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
25224 if test $ac_cv_type_uintptr_t = yes; then
25225 ac_cv_header_stdint_x=$i
25226 else
25227 continue
25228 fi
25229
25230 echo "$as_me:$LINENO: checking for uint64_t" >&5
25231 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
25232 if test "${ac_cv_type_uint64_t+set}" = set; then
25233 echo $ECHO_N "(cached) $ECHO_C" >&6
25234 else
25235 cat >conftest.$ac_ext <<_ACEOF
25236 /* confdefs.h. */
25237 _ACEOF
25238 cat confdefs.h >>conftest.$ac_ext
25239 cat >>conftest.$ac_ext <<_ACEOF
25240 /* end confdefs.h. */
25241 #include<$i>
25242
25243 int
25244 main ()
25245 {
25246 if ((uint64_t *) 0)
25247 return 0;
25248 if (sizeof (uint64_t))
25249 return 0;
25250 ;
25251 return 0;
25252 }
25253 _ACEOF
25254 rm -f conftest.$ac_objext
25255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25256 (eval $ac_compile) 2>conftest.er1
25257 ac_status=$?
25258 grep -v '^ *+' conftest.er1 >conftest.err
25259 rm -f conftest.er1
25260 cat conftest.err >&5
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); } &&
25263 { ac_try='test -z "$ac_c_werror_flag"
25264 || test ! -s conftest.err'
25265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25266 (eval $ac_try) 2>&5
25267 ac_status=$?
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); }; } &&
25270 { ac_try='test -s conftest.$ac_objext'
25271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25272 (eval $ac_try) 2>&5
25273 ac_status=$?
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }; }; then
25276 ac_cv_type_uint64_t=yes
25277 else
25278 echo "$as_me: failed program was:" >&5
25279 sed 's/^/| /' conftest.$ac_ext >&5
25280
25281 ac_cv_type_uint64_t=no
25282 fi
25283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25284 fi
25285 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
25286 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
25287 if test $ac_cv_type_uint64_t = yes; then
25288 and64="/uint64_t"
25289 else
25290 and64=""
25291 fi
25292
25293 stdint.h inttypes.h sys/inttypes.h $inttype_headers
25294 break
25295 done
25296 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
25297 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
25298
25299 fi
25300 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
25301 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
25302
25303
25304 if test "_$ac_cv_header_stdint_x" = "_" ; then
25305
25306 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
25307 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
25308 if test "${ac_cv_header_stdint_o+set}" = set; then
25309 echo $ECHO_N "(cached) $ECHO_C" >&6
25310 else
25311
25312 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
25313 echo "$as_me:$LINENO: result: (..)" >&5
25314 echo "${ECHO_T}(..)" >&6
25315 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
25316 unset ac_cv_type_uint32_t
25317 unset ac_cv_type_uint64_t
25318 echo "$as_me:$LINENO: checking for uint32_t" >&5
25319 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
25320 if test "${ac_cv_type_uint32_t+set}" = set; then
25321 echo $ECHO_N "(cached) $ECHO_C" >&6
25322 else
25323 cat >conftest.$ac_ext <<_ACEOF
25324 /* confdefs.h. */
25325 _ACEOF
25326 cat confdefs.h >>conftest.$ac_ext
25327 cat >>conftest.$ac_ext <<_ACEOF
25328 /* end confdefs.h. */
25329 #include <$i>
25330
25331 int
25332 main ()
25333 {
25334 if ((uint32_t *) 0)
25335 return 0;
25336 if (sizeof (uint32_t))
25337 return 0;
25338 ;
25339 return 0;
25340 }
25341 _ACEOF
25342 rm -f conftest.$ac_objext
25343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25344 (eval $ac_compile) 2>conftest.er1
25345 ac_status=$?
25346 grep -v '^ *+' conftest.er1 >conftest.err
25347 rm -f conftest.er1
25348 cat conftest.err >&5
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); } &&
25351 { ac_try='test -z "$ac_c_werror_flag"
25352 || test ! -s conftest.err'
25353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354 (eval $ac_try) 2>&5
25355 ac_status=$?
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); }; } &&
25358 { ac_try='test -s conftest.$ac_objext'
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25361 ac_status=$?
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; }; then
25364 ac_cv_type_uint32_t=yes
25365 else
25366 echo "$as_me: failed program was:" >&5
25367 sed 's/^/| /' conftest.$ac_ext >&5
25368
25369 ac_cv_type_uint32_t=no
25370 fi
25371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25372 fi
25373 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
25374 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
25375 if test $ac_cv_type_uint32_t = yes; then
25376 ac_cv_header_stdint_o=$i
25377 else
25378 continue
25379 fi
25380
25381 echo "$as_me:$LINENO: checking for uint64_t" >&5
25382 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
25383 if test "${ac_cv_type_uint64_t+set}" = set; then
25384 echo $ECHO_N "(cached) $ECHO_C" >&6
25385 else
25386 cat >conftest.$ac_ext <<_ACEOF
25387 /* confdefs.h. */
25388 _ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25392 #include<$i>
25393
25394 int
25395 main ()
25396 {
25397 if ((uint64_t *) 0)
25398 return 0;
25399 if (sizeof (uint64_t))
25400 return 0;
25401 ;
25402 return 0;
25403 }
25404 _ACEOF
25405 rm -f conftest.$ac_objext
25406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25407 (eval $ac_compile) 2>conftest.er1
25408 ac_status=$?
25409 grep -v '^ *+' conftest.er1 >conftest.err
25410 rm -f conftest.er1
25411 cat conftest.err >&5
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); } &&
25414 { ac_try='test -z "$ac_c_werror_flag"
25415 || test ! -s conftest.err'
25416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25417 (eval $ac_try) 2>&5
25418 ac_status=$?
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); }; } &&
25421 { ac_try='test -s conftest.$ac_objext'
25422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423 (eval $ac_try) 2>&5
25424 ac_status=$?
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); }; }; then
25427 ac_cv_type_uint64_t=yes
25428 else
25429 echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25431
25432 ac_cv_type_uint64_t=no
25433 fi
25434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25435 fi
25436 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
25437 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
25438 if test $ac_cv_type_uint64_t = yes; then
25439 and64="/uint64_t"
25440 else
25441 and64=""
25442 fi
25443
25444 inttypes.h sys/inttypes.h stdint.h $inttype_headers
25445 break
25446 break;
25447 done
25448 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
25449 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
25450
25451 fi
25452 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
25453 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
25454
25455 fi
25456
25457 if test "_$ac_cv_header_stdint_x" = "_" ; then
25458 if test "_$ac_cv_header_stdint_o" = "_" ; then
25459
25460 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
25461 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
25462 if test "${ac_cv_header_stdint_u+set}" = set; then
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25464 else
25465
25466 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
25467 echo "$as_me:$LINENO: result: (..)" >&5
25468 echo "${ECHO_T}(..)" >&6
25469 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
25470 unset ac_cv_type_u_int32_t
25471 unset ac_cv_type_u_int64_t
25472 echo "$as_me:$LINENO: checking for u_int32_t" >&5
25473 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
25474 if test "${ac_cv_type_u_int32_t+set}" = set; then
25475 echo $ECHO_N "(cached) $ECHO_C" >&6
25476 else
25477 cat >conftest.$ac_ext <<_ACEOF
25478 /* confdefs.h. */
25479 _ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h. */
25483 #include <$i>
25484
25485 int
25486 main ()
25487 {
25488 if ((u_int32_t *) 0)
25489 return 0;
25490 if (sizeof (u_int32_t))
25491 return 0;
25492 ;
25493 return 0;
25494 }
25495 _ACEOF
25496 rm -f conftest.$ac_objext
25497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25498 (eval $ac_compile) 2>conftest.er1
25499 ac_status=$?
25500 grep -v '^ *+' conftest.er1 >conftest.err
25501 rm -f conftest.er1
25502 cat conftest.err >&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); } &&
25505 { ac_try='test -z "$ac_c_werror_flag"
25506 || test ! -s conftest.err'
25507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; } &&
25512 { ac_try='test -s conftest.$ac_objext'
25513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25514 (eval $ac_try) 2>&5
25515 ac_status=$?
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; }; then
25518 ac_cv_type_u_int32_t=yes
25519 else
25520 echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25522
25523 ac_cv_type_u_int32_t=no
25524 fi
25525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25526 fi
25527 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
25528 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
25529 if test $ac_cv_type_u_int32_t = yes; then
25530 ac_cv_header_stdint_u=$i
25531 else
25532 continue
25533 fi
25534
25535 echo "$as_me:$LINENO: checking for u_int64_t" >&5
25536 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
25537 if test "${ac_cv_type_u_int64_t+set}" = set; then
25538 echo $ECHO_N "(cached) $ECHO_C" >&6
25539 else
25540 cat >conftest.$ac_ext <<_ACEOF
25541 /* confdefs.h. */
25542 _ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h. */
25546 #include<$i>
25547
25548 int
25549 main ()
25550 {
25551 if ((u_int64_t *) 0)
25552 return 0;
25553 if (sizeof (u_int64_t))
25554 return 0;
25555 ;
25556 return 0;
25557 }
25558 _ACEOF
25559 rm -f conftest.$ac_objext
25560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25561 (eval $ac_compile) 2>conftest.er1
25562 ac_status=$?
25563 grep -v '^ *+' conftest.er1 >conftest.err
25564 rm -f conftest.er1
25565 cat conftest.err >&5
25566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567 (exit $ac_status); } &&
25568 { ac_try='test -z "$ac_c_werror_flag"
25569 || test ! -s conftest.err'
25570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25571 (eval $ac_try) 2>&5
25572 ac_status=$?
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); }; } &&
25575 { ac_try='test -s conftest.$ac_objext'
25576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25577 (eval $ac_try) 2>&5
25578 ac_status=$?
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); }; }; then
25581 ac_cv_type_u_int64_t=yes
25582 else
25583 echo "$as_me: failed program was:" >&5
25584 sed 's/^/| /' conftest.$ac_ext >&5
25585
25586 ac_cv_type_u_int64_t=no
25587 fi
25588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25589 fi
25590 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
25591 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
25592 if test $ac_cv_type_u_int64_t = yes; then
25593 and64="/u_int64_t"
25594 else
25595 and64=""
25596 fi
25597
25598 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
25599 break
25600 break;
25601 done
25602 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
25603 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
25604
25605 fi
25606 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
25607 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
25608
25609 fi fi
25610
25611 if test "_$ac_cv_header_stdint_x" = "_" ; then
25612 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
25613 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
25614 echo "$as_me:$LINENO: result: (..)" >&5
25615 echo "${ECHO_T}(..)" >&6
25616
25617 echo "$as_me:$LINENO: checking for char" >&5
25618 echo $ECHO_N "checking for char... $ECHO_C" >&6
25619 if test "${ac_cv_type_char+set}" = set; then
25620 echo $ECHO_N "(cached) $ECHO_C" >&6
25621 else
25622 cat >conftest.$ac_ext <<_ACEOF
25623 /* confdefs.h. */
25624 _ACEOF
25625 cat confdefs.h >>conftest.$ac_ext
25626 cat >>conftest.$ac_ext <<_ACEOF
25627 /* end confdefs.h. */
25628 $ac_includes_default
25629 int
25630 main ()
25631 {
25632 if ((char *) 0)
25633 return 0;
25634 if (sizeof (char))
25635 return 0;
25636 ;
25637 return 0;
25638 }
25639 _ACEOF
25640 rm -f conftest.$ac_objext
25641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25642 (eval $ac_compile) 2>conftest.er1
25643 ac_status=$?
25644 grep -v '^ *+' conftest.er1 >conftest.err
25645 rm -f conftest.er1
25646 cat conftest.err >&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } &&
25649 { ac_try='test -z "$ac_c_werror_flag"
25650 || test ! -s conftest.err'
25651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25652 (eval $ac_try) 2>&5
25653 ac_status=$?
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); }; } &&
25656 { ac_try='test -s conftest.$ac_objext'
25657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25658 (eval $ac_try) 2>&5
25659 ac_status=$?
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); }; }; then
25662 ac_cv_type_char=yes
25663 else
25664 echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25666
25667 ac_cv_type_char=no
25668 fi
25669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25670 fi
25671 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25672 echo "${ECHO_T}$ac_cv_type_char" >&6
25673
25674 echo "$as_me:$LINENO: checking size of char" >&5
25675 echo $ECHO_N "checking size of char... $ECHO_C" >&6
25676 if test "${ac_cv_sizeof_char+set}" = set; then
25677 echo $ECHO_N "(cached) $ECHO_C" >&6
25678 else
25679 if test "$ac_cv_type_char" = yes; then
25680 # The cast to unsigned long works around a bug in the HP C Compiler
25681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25683 # This bug is HP SR number 8606223364.
25684 if test "$cross_compiling" = yes; then
25685 # Depending upon the size, compute the lo and hi bounds.
25686 cat >conftest.$ac_ext <<_ACEOF
25687 /* confdefs.h. */
25688 _ACEOF
25689 cat confdefs.h >>conftest.$ac_ext
25690 cat >>conftest.$ac_ext <<_ACEOF
25691 /* end confdefs.h. */
25692 $ac_includes_default
25693 int
25694 main ()
25695 {
25696 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
25697 test_array [0] = 0
25698
25699 ;
25700 return 0;
25701 }
25702 _ACEOF
25703 rm -f conftest.$ac_objext
25704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25705 (eval $ac_compile) 2>conftest.er1
25706 ac_status=$?
25707 grep -v '^ *+' conftest.er1 >conftest.err
25708 rm -f conftest.er1
25709 cat conftest.err >&5
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); } &&
25712 { ac_try='test -z "$ac_c_werror_flag"
25713 || test ! -s conftest.err'
25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715 (eval $ac_try) 2>&5
25716 ac_status=$?
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); }; } &&
25719 { ac_try='test -s conftest.$ac_objext'
25720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721 (eval $ac_try) 2>&5
25722 ac_status=$?
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); }; }; then
25725 ac_lo=0 ac_mid=0
25726 while :; do
25727 cat >conftest.$ac_ext <<_ACEOF
25728 /* confdefs.h. */
25729 _ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h. */
25733 $ac_includes_default
25734 int
25735 main ()
25736 {
25737 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
25738 test_array [0] = 0
25739
25740 ;
25741 return 0;
25742 }
25743 _ACEOF
25744 rm -f conftest.$ac_objext
25745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25746 (eval $ac_compile) 2>conftest.er1
25747 ac_status=$?
25748 grep -v '^ *+' conftest.er1 >conftest.err
25749 rm -f conftest.er1
25750 cat conftest.err >&5
25751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); } &&
25753 { ac_try='test -z "$ac_c_werror_flag"
25754 || test ! -s conftest.err'
25755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25756 (eval $ac_try) 2>&5
25757 ac_status=$?
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); }; } &&
25760 { ac_try='test -s conftest.$ac_objext'
25761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762 (eval $ac_try) 2>&5
25763 ac_status=$?
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); }; }; then
25766 ac_hi=$ac_mid; break
25767 else
25768 echo "$as_me: failed program was:" >&5
25769 sed 's/^/| /' conftest.$ac_ext >&5
25770
25771 ac_lo=`expr $ac_mid + 1`
25772 if test $ac_lo -le $ac_mid; then
25773 ac_lo= ac_hi=
25774 break
25775 fi
25776 ac_mid=`expr 2 '*' $ac_mid + 1`
25777 fi
25778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25779 done
25780 else
25781 echo "$as_me: failed program was:" >&5
25782 sed 's/^/| /' conftest.$ac_ext >&5
25783
25784 cat >conftest.$ac_ext <<_ACEOF
25785 /* confdefs.h. */
25786 _ACEOF
25787 cat confdefs.h >>conftest.$ac_ext
25788 cat >>conftest.$ac_ext <<_ACEOF
25789 /* end confdefs.h. */
25790 $ac_includes_default
25791 int
25792 main ()
25793 {
25794 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
25795 test_array [0] = 0
25796
25797 ;
25798 return 0;
25799 }
25800 _ACEOF
25801 rm -f conftest.$ac_objext
25802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25803 (eval $ac_compile) 2>conftest.er1
25804 ac_status=$?
25805 grep -v '^ *+' conftest.er1 >conftest.err
25806 rm -f conftest.er1
25807 cat conftest.err >&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } &&
25810 { ac_try='test -z "$ac_c_werror_flag"
25811 || test ! -s conftest.err'
25812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813 (eval $ac_try) 2>&5
25814 ac_status=$?
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); }; } &&
25817 { ac_try='test -s conftest.$ac_objext'
25818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819 (eval $ac_try) 2>&5
25820 ac_status=$?
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); }; }; then
25823 ac_hi=-1 ac_mid=-1
25824 while :; do
25825 cat >conftest.$ac_ext <<_ACEOF
25826 /* confdefs.h. */
25827 _ACEOF
25828 cat confdefs.h >>conftest.$ac_ext
25829 cat >>conftest.$ac_ext <<_ACEOF
25830 /* end confdefs.h. */
25831 $ac_includes_default
25832 int
25833 main ()
25834 {
25835 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
25836 test_array [0] = 0
25837
25838 ;
25839 return 0;
25840 }
25841 _ACEOF
25842 rm -f conftest.$ac_objext
25843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25844 (eval $ac_compile) 2>conftest.er1
25845 ac_status=$?
25846 grep -v '^ *+' conftest.er1 >conftest.err
25847 rm -f conftest.er1
25848 cat conftest.err >&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); } &&
25851 { ac_try='test -z "$ac_c_werror_flag"
25852 || test ! -s conftest.err'
25853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854 (eval $ac_try) 2>&5
25855 ac_status=$?
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; } &&
25858 { ac_try='test -s conftest.$ac_objext'
25859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25860 (eval $ac_try) 2>&5
25861 ac_status=$?
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); }; }; then
25864 ac_lo=$ac_mid; break
25865 else
25866 echo "$as_me: failed program was:" >&5
25867 sed 's/^/| /' conftest.$ac_ext >&5
25868
25869 ac_hi=`expr '(' $ac_mid ')' - 1`
25870 if test $ac_mid -le $ac_hi; then
25871 ac_lo= ac_hi=
25872 break
25873 fi
25874 ac_mid=`expr 2 '*' $ac_mid`
25875 fi
25876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25877 done
25878 else
25879 echo "$as_me: failed program was:" >&5
25880 sed 's/^/| /' conftest.$ac_ext >&5
25881
25882 ac_lo= ac_hi=
25883 fi
25884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25885 fi
25886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25887 # Binary search between lo and hi bounds.
25888 while test "x$ac_lo" != "x$ac_hi"; do
25889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25890 cat >conftest.$ac_ext <<_ACEOF
25891 /* confdefs.h. */
25892 _ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h. */
25896 $ac_includes_default
25897 int
25898 main ()
25899 {
25900 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
25901 test_array [0] = 0
25902
25903 ;
25904 return 0;
25905 }
25906 _ACEOF
25907 rm -f conftest.$ac_objext
25908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25909 (eval $ac_compile) 2>conftest.er1
25910 ac_status=$?
25911 grep -v '^ *+' conftest.er1 >conftest.err
25912 rm -f conftest.er1
25913 cat conftest.err >&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); } &&
25916 { ac_try='test -z "$ac_c_werror_flag"
25917 || test ! -s conftest.err'
25918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919 (eval $ac_try) 2>&5
25920 ac_status=$?
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); }; } &&
25923 { ac_try='test -s conftest.$ac_objext'
25924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25925 (eval $ac_try) 2>&5
25926 ac_status=$?
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); }; }; then
25929 ac_hi=$ac_mid
25930 else
25931 echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25933
25934 ac_lo=`expr '(' $ac_mid ')' + 1`
25935 fi
25936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25937 done
25938 case $ac_lo in
25939 ?*) ac_cv_sizeof_char=$ac_lo;;
25940 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
25941 See \`config.log' for more details." >&5
25942 echo "$as_me: error: cannot compute sizeof (char), 77
25943 See \`config.log' for more details." >&2;}
25944 { (exit 1); exit 1; }; } ;;
25945 esac
25946 else
25947 if test "$cross_compiling" = yes; then
25948 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25949 See \`config.log' for more details." >&5
25950 echo "$as_me: error: cannot run test program while cross compiling
25951 See \`config.log' for more details." >&2;}
25952 { (exit 1); exit 1; }; }
25953 else
25954 cat >conftest.$ac_ext <<_ACEOF
25955 /* confdefs.h. */
25956 _ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 $ac_includes_default
25961 long longval () { return (long) (sizeof (char)); }
25962 unsigned long ulongval () { return (long) (sizeof (char)); }
25963 #include <stdio.h>
25964 #include <stdlib.h>
25965 int
25966 main ()
25967 {
25968
25969 FILE *f = fopen ("conftest.val", "w");
25970 if (! f)
25971 exit (1);
25972 if (((long) (sizeof (char))) < 0)
25973 {
25974 long i = longval ();
25975 if (i != ((long) (sizeof (char))))
25976 exit (1);
25977 fprintf (f, "%ld\n", i);
25978 }
25979 else
25980 {
25981 unsigned long i = ulongval ();
25982 if (i != ((long) (sizeof (char))))
25983 exit (1);
25984 fprintf (f, "%lu\n", i);
25985 }
25986 exit (ferror (f) || fclose (f) != 0);
25987
25988 ;
25989 return 0;
25990 }
25991 _ACEOF
25992 rm -f conftest$ac_exeext
25993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25994 (eval $ac_link) 2>&5
25995 ac_status=$?
25996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25999 (eval $ac_try) 2>&5
26000 ac_status=$?
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); }; }; then
26003 ac_cv_sizeof_char=`cat conftest.val`
26004 else
26005 echo "$as_me: program exited with status $ac_status" >&5
26006 echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26008
26009 ( exit $ac_status )
26010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
26011 See \`config.log' for more details." >&5
26012 echo "$as_me: error: cannot compute sizeof (char), 77
26013 See \`config.log' for more details." >&2;}
26014 { (exit 1); exit 1; }; }
26015 fi
26016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26017 fi
26018 fi
26019 rm -f conftest.val
26020 else
26021 ac_cv_sizeof_char=0
26022 fi
26023 fi
26024 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26025 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
26026 cat >>confdefs.h <<_ACEOF
26027 #define SIZEOF_CHAR $ac_cv_sizeof_char
26028 _ACEOF
26029
26030
26031 echo "$as_me:$LINENO: checking for short" >&5
26032 echo $ECHO_N "checking for short... $ECHO_C" >&6
26033 if test "${ac_cv_type_short+set}" = set; then
26034 echo $ECHO_N "(cached) $ECHO_C" >&6
26035 else
26036 cat >conftest.$ac_ext <<_ACEOF
26037 /* confdefs.h. */
26038 _ACEOF
26039 cat confdefs.h >>conftest.$ac_ext
26040 cat >>conftest.$ac_ext <<_ACEOF
26041 /* end confdefs.h. */
26042 $ac_includes_default
26043 int
26044 main ()
26045 {
26046 if ((short *) 0)
26047 return 0;
26048 if (sizeof (short))
26049 return 0;
26050 ;
26051 return 0;
26052 }
26053 _ACEOF
26054 rm -f conftest.$ac_objext
26055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26056 (eval $ac_compile) 2>conftest.er1
26057 ac_status=$?
26058 grep -v '^ *+' conftest.er1 >conftest.err
26059 rm -f conftest.er1
26060 cat conftest.err >&5
26061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062 (exit $ac_status); } &&
26063 { ac_try='test -z "$ac_c_werror_flag"
26064 || test ! -s conftest.err'
26065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26066 (eval $ac_try) 2>&5
26067 ac_status=$?
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); }; } &&
26070 { ac_try='test -s conftest.$ac_objext'
26071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26072 (eval $ac_try) 2>&5
26073 ac_status=$?
26074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075 (exit $ac_status); }; }; then
26076 ac_cv_type_short=yes
26077 else
26078 echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26080
26081 ac_cv_type_short=no
26082 fi
26083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26084 fi
26085 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26086 echo "${ECHO_T}$ac_cv_type_short" >&6
26087
26088 echo "$as_me:$LINENO: checking size of short" >&5
26089 echo $ECHO_N "checking size of short... $ECHO_C" >&6
26090 if test "${ac_cv_sizeof_short+set}" = set; then
26091 echo $ECHO_N "(cached) $ECHO_C" >&6
26092 else
26093 if test "$ac_cv_type_short" = yes; then
26094 # The cast to unsigned long works around a bug in the HP C Compiler
26095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26097 # This bug is HP SR number 8606223364.
26098 if test "$cross_compiling" = yes; then
26099 # Depending upon the size, compute the lo and hi bounds.
26100 cat >conftest.$ac_ext <<_ACEOF
26101 /* confdefs.h. */
26102 _ACEOF
26103 cat confdefs.h >>conftest.$ac_ext
26104 cat >>conftest.$ac_ext <<_ACEOF
26105 /* end confdefs.h. */
26106 $ac_includes_default
26107 int
26108 main ()
26109 {
26110 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
26111 test_array [0] = 0
26112
26113 ;
26114 return 0;
26115 }
26116 _ACEOF
26117 rm -f conftest.$ac_objext
26118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26119 (eval $ac_compile) 2>conftest.er1
26120 ac_status=$?
26121 grep -v '^ *+' conftest.er1 >conftest.err
26122 rm -f conftest.er1
26123 cat conftest.err >&5
26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125 (exit $ac_status); } &&
26126 { ac_try='test -z "$ac_c_werror_flag"
26127 || test ! -s conftest.err'
26128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26129 (eval $ac_try) 2>&5
26130 ac_status=$?
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); }; } &&
26133 { ac_try='test -s conftest.$ac_objext'
26134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26135 (eval $ac_try) 2>&5
26136 ac_status=$?
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); }; }; then
26139 ac_lo=0 ac_mid=0
26140 while :; do
26141 cat >conftest.$ac_ext <<_ACEOF
26142 /* confdefs.h. */
26143 _ACEOF
26144 cat confdefs.h >>conftest.$ac_ext
26145 cat >>conftest.$ac_ext <<_ACEOF
26146 /* end confdefs.h. */
26147 $ac_includes_default
26148 int
26149 main ()
26150 {
26151 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26152 test_array [0] = 0
26153
26154 ;
26155 return 0;
26156 }
26157 _ACEOF
26158 rm -f conftest.$ac_objext
26159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26160 (eval $ac_compile) 2>conftest.er1
26161 ac_status=$?
26162 grep -v '^ *+' conftest.er1 >conftest.err
26163 rm -f conftest.er1
26164 cat conftest.err >&5
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } &&
26167 { ac_try='test -z "$ac_c_werror_flag"
26168 || test ! -s conftest.err'
26169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170 (eval $ac_try) 2>&5
26171 ac_status=$?
26172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); }; } &&
26174 { ac_try='test -s conftest.$ac_objext'
26175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176 (eval $ac_try) 2>&5
26177 ac_status=$?
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); }; }; then
26180 ac_hi=$ac_mid; break
26181 else
26182 echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26184
26185 ac_lo=`expr $ac_mid + 1`
26186 if test $ac_lo -le $ac_mid; then
26187 ac_lo= ac_hi=
26188 break
26189 fi
26190 ac_mid=`expr 2 '*' $ac_mid + 1`
26191 fi
26192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26193 done
26194 else
26195 echo "$as_me: failed program was:" >&5
26196 sed 's/^/| /' conftest.$ac_ext >&5
26197
26198 cat >conftest.$ac_ext <<_ACEOF
26199 /* confdefs.h. */
26200 _ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h. */
26204 $ac_includes_default
26205 int
26206 main ()
26207 {
26208 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
26209 test_array [0] = 0
26210
26211 ;
26212 return 0;
26213 }
26214 _ACEOF
26215 rm -f conftest.$ac_objext
26216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26217 (eval $ac_compile) 2>conftest.er1
26218 ac_status=$?
26219 grep -v '^ *+' conftest.er1 >conftest.err
26220 rm -f conftest.er1
26221 cat conftest.err >&5
26222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223 (exit $ac_status); } &&
26224 { ac_try='test -z "$ac_c_werror_flag"
26225 || test ! -s conftest.err'
26226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26227 (eval $ac_try) 2>&5
26228 ac_status=$?
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); }; } &&
26231 { ac_try='test -s conftest.$ac_objext'
26232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26233 (eval $ac_try) 2>&5
26234 ac_status=$?
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); }; }; then
26237 ac_hi=-1 ac_mid=-1
26238 while :; do
26239 cat >conftest.$ac_ext <<_ACEOF
26240 /* confdefs.h. */
26241 _ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h. */
26245 $ac_includes_default
26246 int
26247 main ()
26248 {
26249 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
26250 test_array [0] = 0
26251
26252 ;
26253 return 0;
26254 }
26255 _ACEOF
26256 rm -f conftest.$ac_objext
26257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26258 (eval $ac_compile) 2>conftest.er1
26259 ac_status=$?
26260 grep -v '^ *+' conftest.er1 >conftest.err
26261 rm -f conftest.er1
26262 cat conftest.err >&5
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); } &&
26265 { ac_try='test -z "$ac_c_werror_flag"
26266 || test ! -s conftest.err'
26267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26268 (eval $ac_try) 2>&5
26269 ac_status=$?
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); }; } &&
26272 { ac_try='test -s conftest.$ac_objext'
26273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26274 (eval $ac_try) 2>&5
26275 ac_status=$?
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); }; }; then
26278 ac_lo=$ac_mid; break
26279 else
26280 echo "$as_me: failed program was:" >&5
26281 sed 's/^/| /' conftest.$ac_ext >&5
26282
26283 ac_hi=`expr '(' $ac_mid ')' - 1`
26284 if test $ac_mid -le $ac_hi; then
26285 ac_lo= ac_hi=
26286 break
26287 fi
26288 ac_mid=`expr 2 '*' $ac_mid`
26289 fi
26290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26291 done
26292 else
26293 echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26295
26296 ac_lo= ac_hi=
26297 fi
26298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26299 fi
26300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26301 # Binary search between lo and hi bounds.
26302 while test "x$ac_lo" != "x$ac_hi"; do
26303 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26304 cat >conftest.$ac_ext <<_ACEOF
26305 /* confdefs.h. */
26306 _ACEOF
26307 cat confdefs.h >>conftest.$ac_ext
26308 cat >>conftest.$ac_ext <<_ACEOF
26309 /* end confdefs.h. */
26310 $ac_includes_default
26311 int
26312 main ()
26313 {
26314 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26315 test_array [0] = 0
26316
26317 ;
26318 return 0;
26319 }
26320 _ACEOF
26321 rm -f conftest.$ac_objext
26322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26323 (eval $ac_compile) 2>conftest.er1
26324 ac_status=$?
26325 grep -v '^ *+' conftest.er1 >conftest.err
26326 rm -f conftest.er1
26327 cat conftest.err >&5
26328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329 (exit $ac_status); } &&
26330 { ac_try='test -z "$ac_c_werror_flag"
26331 || test ! -s conftest.err'
26332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26333 (eval $ac_try) 2>&5
26334 ac_status=$?
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); }; } &&
26337 { ac_try='test -s conftest.$ac_objext'
26338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26339 (eval $ac_try) 2>&5
26340 ac_status=$?
26341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342 (exit $ac_status); }; }; then
26343 ac_hi=$ac_mid
26344 else
26345 echo "$as_me: failed program was:" >&5
26346 sed 's/^/| /' conftest.$ac_ext >&5
26347
26348 ac_lo=`expr '(' $ac_mid ')' + 1`
26349 fi
26350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26351 done
26352 case $ac_lo in
26353 ?*) ac_cv_sizeof_short=$ac_lo;;
26354 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26355 See \`config.log' for more details." >&5
26356 echo "$as_me: error: cannot compute sizeof (short), 77
26357 See \`config.log' for more details." >&2;}
26358 { (exit 1); exit 1; }; } ;;
26359 esac
26360 else
26361 if test "$cross_compiling" = yes; then
26362 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26363 See \`config.log' for more details." >&5
26364 echo "$as_me: error: cannot run test program while cross compiling
26365 See \`config.log' for more details." >&2;}
26366 { (exit 1); exit 1; }; }
26367 else
26368 cat >conftest.$ac_ext <<_ACEOF
26369 /* confdefs.h. */
26370 _ACEOF
26371 cat confdefs.h >>conftest.$ac_ext
26372 cat >>conftest.$ac_ext <<_ACEOF
26373 /* end confdefs.h. */
26374 $ac_includes_default
26375 long longval () { return (long) (sizeof (short)); }
26376 unsigned long ulongval () { return (long) (sizeof (short)); }
26377 #include <stdio.h>
26378 #include <stdlib.h>
26379 int
26380 main ()
26381 {
26382
26383 FILE *f = fopen ("conftest.val", "w");
26384 if (! f)
26385 exit (1);
26386 if (((long) (sizeof (short))) < 0)
26387 {
26388 long i = longval ();
26389 if (i != ((long) (sizeof (short))))
26390 exit (1);
26391 fprintf (f, "%ld\n", i);
26392 }
26393 else
26394 {
26395 unsigned long i = ulongval ();
26396 if (i != ((long) (sizeof (short))))
26397 exit (1);
26398 fprintf (f, "%lu\n", i);
26399 }
26400 exit (ferror (f) || fclose (f) != 0);
26401
26402 ;
26403 return 0;
26404 }
26405 _ACEOF
26406 rm -f conftest$ac_exeext
26407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26408 (eval $ac_link) 2>&5
26409 ac_status=$?
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26413 (eval $ac_try) 2>&5
26414 ac_status=$?
26415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416 (exit $ac_status); }; }; then
26417 ac_cv_sizeof_short=`cat conftest.val`
26418 else
26419 echo "$as_me: program exited with status $ac_status" >&5
26420 echo "$as_me: failed program was:" >&5
26421 sed 's/^/| /' conftest.$ac_ext >&5
26422
26423 ( exit $ac_status )
26424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26425 See \`config.log' for more details." >&5
26426 echo "$as_me: error: cannot compute sizeof (short), 77
26427 See \`config.log' for more details." >&2;}
26428 { (exit 1); exit 1; }; }
26429 fi
26430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26431 fi
26432 fi
26433 rm -f conftest.val
26434 else
26435 ac_cv_sizeof_short=0
26436 fi
26437 fi
26438 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26439 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
26440 cat >>confdefs.h <<_ACEOF
26441 #define SIZEOF_SHORT $ac_cv_sizeof_short
26442 _ACEOF
26443
26444
26445 echo "$as_me:$LINENO: checking for int" >&5
26446 echo $ECHO_N "checking for int... $ECHO_C" >&6
26447 if test "${ac_cv_type_int+set}" = set; then
26448 echo $ECHO_N "(cached) $ECHO_C" >&6
26449 else
26450 cat >conftest.$ac_ext <<_ACEOF
26451 /* confdefs.h. */
26452 _ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h. */
26456 $ac_includes_default
26457 int
26458 main ()
26459 {
26460 if ((int *) 0)
26461 return 0;
26462 if (sizeof (int))
26463 return 0;
26464 ;
26465 return 0;
26466 }
26467 _ACEOF
26468 rm -f conftest.$ac_objext
26469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26470 (eval $ac_compile) 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); } &&
26477 { ac_try='test -z "$ac_c_werror_flag"
26478 || test ! -s conftest.err'
26479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26480 (eval $ac_try) 2>&5
26481 ac_status=$?
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); }; } &&
26484 { ac_try='test -s conftest.$ac_objext'
26485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26486 (eval $ac_try) 2>&5
26487 ac_status=$?
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); }; }; then
26490 ac_cv_type_int=yes
26491 else
26492 echo "$as_me: failed program was:" >&5
26493 sed 's/^/| /' conftest.$ac_ext >&5
26494
26495 ac_cv_type_int=no
26496 fi
26497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26498 fi
26499 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26500 echo "${ECHO_T}$ac_cv_type_int" >&6
26501
26502 echo "$as_me:$LINENO: checking size of int" >&5
26503 echo $ECHO_N "checking size of int... $ECHO_C" >&6
26504 if test "${ac_cv_sizeof_int+set}" = set; then
26505 echo $ECHO_N "(cached) $ECHO_C" >&6
26506 else
26507 if test "$ac_cv_type_int" = yes; then
26508 # The cast to unsigned long works around a bug in the HP C Compiler
26509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26511 # This bug is HP SR number 8606223364.
26512 if test "$cross_compiling" = yes; then
26513 # Depending upon the size, compute the lo and hi bounds.
26514 cat >conftest.$ac_ext <<_ACEOF
26515 /* confdefs.h. */
26516 _ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h. */
26520 $ac_includes_default
26521 int
26522 main ()
26523 {
26524 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26525 test_array [0] = 0
26526
26527 ;
26528 return 0;
26529 }
26530 _ACEOF
26531 rm -f conftest.$ac_objext
26532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26533 (eval $ac_compile) 2>conftest.er1
26534 ac_status=$?
26535 grep -v '^ *+' conftest.er1 >conftest.err
26536 rm -f conftest.er1
26537 cat conftest.err >&5
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); } &&
26540 { ac_try='test -z "$ac_c_werror_flag"
26541 || test ! -s conftest.err'
26542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543 (eval $ac_try) 2>&5
26544 ac_status=$?
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); }; } &&
26547 { ac_try='test -s conftest.$ac_objext'
26548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549 (eval $ac_try) 2>&5
26550 ac_status=$?
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); }; }; then
26553 ac_lo=0 ac_mid=0
26554 while :; do
26555 cat >conftest.$ac_ext <<_ACEOF
26556 /* confdefs.h. */
26557 _ACEOF
26558 cat confdefs.h >>conftest.$ac_ext
26559 cat >>conftest.$ac_ext <<_ACEOF
26560 /* end confdefs.h. */
26561 $ac_includes_default
26562 int
26563 main ()
26564 {
26565 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26566 test_array [0] = 0
26567
26568 ;
26569 return 0;
26570 }
26571 _ACEOF
26572 rm -f conftest.$ac_objext
26573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26574 (eval $ac_compile) 2>conftest.er1
26575 ac_status=$?
26576 grep -v '^ *+' conftest.er1 >conftest.err
26577 rm -f conftest.er1
26578 cat conftest.err >&5
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); } &&
26581 { ac_try='test -z "$ac_c_werror_flag"
26582 || test ! -s conftest.err'
26583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26584 (eval $ac_try) 2>&5
26585 ac_status=$?
26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587 (exit $ac_status); }; } &&
26588 { ac_try='test -s conftest.$ac_objext'
26589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26590 (eval $ac_try) 2>&5
26591 ac_status=$?
26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); }; }; then
26594 ac_hi=$ac_mid; break
26595 else
26596 echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.$ac_ext >&5
26598
26599 ac_lo=`expr $ac_mid + 1`
26600 if test $ac_lo -le $ac_mid; then
26601 ac_lo= ac_hi=
26602 break
26603 fi
26604 ac_mid=`expr 2 '*' $ac_mid + 1`
26605 fi
26606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26607 done
26608 else
26609 echo "$as_me: failed program was:" >&5
26610 sed 's/^/| /' conftest.$ac_ext >&5
26611
26612 cat >conftest.$ac_ext <<_ACEOF
26613 /* confdefs.h. */
26614 _ACEOF
26615 cat confdefs.h >>conftest.$ac_ext
26616 cat >>conftest.$ac_ext <<_ACEOF
26617 /* end confdefs.h. */
26618 $ac_includes_default
26619 int
26620 main ()
26621 {
26622 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26623 test_array [0] = 0
26624
26625 ;
26626 return 0;
26627 }
26628 _ACEOF
26629 rm -f conftest.$ac_objext
26630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26631 (eval $ac_compile) 2>conftest.er1
26632 ac_status=$?
26633 grep -v '^ *+' conftest.er1 >conftest.err
26634 rm -f conftest.er1
26635 cat conftest.err >&5
26636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); } &&
26638 { ac_try='test -z "$ac_c_werror_flag"
26639 || test ! -s conftest.err'
26640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26641 (eval $ac_try) 2>&5
26642 ac_status=$?
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); }; } &&
26645 { ac_try='test -s conftest.$ac_objext'
26646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26647 (eval $ac_try) 2>&5
26648 ac_status=$?
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); }; }; then
26651 ac_hi=-1 ac_mid=-1
26652 while :; do
26653 cat >conftest.$ac_ext <<_ACEOF
26654 /* confdefs.h. */
26655 _ACEOF
26656 cat confdefs.h >>conftest.$ac_ext
26657 cat >>conftest.$ac_ext <<_ACEOF
26658 /* end confdefs.h. */
26659 $ac_includes_default
26660 int
26661 main ()
26662 {
26663 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26664 test_array [0] = 0
26665
26666 ;
26667 return 0;
26668 }
26669 _ACEOF
26670 rm -f conftest.$ac_objext
26671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26672 (eval $ac_compile) 2>conftest.er1
26673 ac_status=$?
26674 grep -v '^ *+' conftest.er1 >conftest.err
26675 rm -f conftest.er1
26676 cat conftest.err >&5
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); } &&
26679 { ac_try='test -z "$ac_c_werror_flag"
26680 || test ! -s conftest.err'
26681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26682 (eval $ac_try) 2>&5
26683 ac_status=$?
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); }; } &&
26686 { ac_try='test -s conftest.$ac_objext'
26687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26688 (eval $ac_try) 2>&5
26689 ac_status=$?
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); }; }; then
26692 ac_lo=$ac_mid; break
26693 else
26694 echo "$as_me: failed program was:" >&5
26695 sed 's/^/| /' conftest.$ac_ext >&5
26696
26697 ac_hi=`expr '(' $ac_mid ')' - 1`
26698 if test $ac_mid -le $ac_hi; then
26699 ac_lo= ac_hi=
26700 break
26701 fi
26702 ac_mid=`expr 2 '*' $ac_mid`
26703 fi
26704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26705 done
26706 else
26707 echo "$as_me: failed program was:" >&5
26708 sed 's/^/| /' conftest.$ac_ext >&5
26709
26710 ac_lo= ac_hi=
26711 fi
26712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26713 fi
26714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26715 # Binary search between lo and hi bounds.
26716 while test "x$ac_lo" != "x$ac_hi"; do
26717 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26718 cat >conftest.$ac_ext <<_ACEOF
26719 /* confdefs.h. */
26720 _ACEOF
26721 cat confdefs.h >>conftest.$ac_ext
26722 cat >>conftest.$ac_ext <<_ACEOF
26723 /* end confdefs.h. */
26724 $ac_includes_default
26725 int
26726 main ()
26727 {
26728 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26729 test_array [0] = 0
26730
26731 ;
26732 return 0;
26733 }
26734 _ACEOF
26735 rm -f conftest.$ac_objext
26736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26737 (eval $ac_compile) 2>conftest.er1
26738 ac_status=$?
26739 grep -v '^ *+' conftest.er1 >conftest.err
26740 rm -f conftest.er1
26741 cat conftest.err >&5
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); } &&
26744 { ac_try='test -z "$ac_c_werror_flag"
26745 || test ! -s conftest.err'
26746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747 (eval $ac_try) 2>&5
26748 ac_status=$?
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); }; } &&
26751 { ac_try='test -s conftest.$ac_objext'
26752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753 (eval $ac_try) 2>&5
26754 ac_status=$?
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); }; }; then
26757 ac_hi=$ac_mid
26758 else
26759 echo "$as_me: failed program was:" >&5
26760 sed 's/^/| /' conftest.$ac_ext >&5
26761
26762 ac_lo=`expr '(' $ac_mid ')' + 1`
26763 fi
26764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26765 done
26766 case $ac_lo in
26767 ?*) ac_cv_sizeof_int=$ac_lo;;
26768 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26769 See \`config.log' for more details." >&5
26770 echo "$as_me: error: cannot compute sizeof (int), 77
26771 See \`config.log' for more details." >&2;}
26772 { (exit 1); exit 1; }; } ;;
26773 esac
26774 else
26775 if test "$cross_compiling" = yes; then
26776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26777 See \`config.log' for more details." >&5
26778 echo "$as_me: error: cannot run test program while cross compiling
26779 See \`config.log' for more details." >&2;}
26780 { (exit 1); exit 1; }; }
26781 else
26782 cat >conftest.$ac_ext <<_ACEOF
26783 /* confdefs.h. */
26784 _ACEOF
26785 cat confdefs.h >>conftest.$ac_ext
26786 cat >>conftest.$ac_ext <<_ACEOF
26787 /* end confdefs.h. */
26788 $ac_includes_default
26789 long longval () { return (long) (sizeof (int)); }
26790 unsigned long ulongval () { return (long) (sizeof (int)); }
26791 #include <stdio.h>
26792 #include <stdlib.h>
26793 int
26794 main ()
26795 {
26796
26797 FILE *f = fopen ("conftest.val", "w");
26798 if (! f)
26799 exit (1);
26800 if (((long) (sizeof (int))) < 0)
26801 {
26802 long i = longval ();
26803 if (i != ((long) (sizeof (int))))
26804 exit (1);
26805 fprintf (f, "%ld\n", i);
26806 }
26807 else
26808 {
26809 unsigned long i = ulongval ();
26810 if (i != ((long) (sizeof (int))))
26811 exit (1);
26812 fprintf (f, "%lu\n", i);
26813 }
26814 exit (ferror (f) || fclose (f) != 0);
26815
26816 ;
26817 return 0;
26818 }
26819 _ACEOF
26820 rm -f conftest$ac_exeext
26821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26822 (eval $ac_link) 2>&5
26823 ac_status=$?
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827 (eval $ac_try) 2>&5
26828 ac_status=$?
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; }; then
26831 ac_cv_sizeof_int=`cat conftest.val`
26832 else
26833 echo "$as_me: program exited with status $ac_status" >&5
26834 echo "$as_me: failed program was:" >&5
26835 sed 's/^/| /' conftest.$ac_ext >&5
26836
26837 ( exit $ac_status )
26838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26839 See \`config.log' for more details." >&5
26840 echo "$as_me: error: cannot compute sizeof (int), 77
26841 See \`config.log' for more details." >&2;}
26842 { (exit 1); exit 1; }; }
26843 fi
26844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26845 fi
26846 fi
26847 rm -f conftest.val
26848 else
26849 ac_cv_sizeof_int=0
26850 fi
26851 fi
26852 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26853 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
26854 cat >>confdefs.h <<_ACEOF
26855 #define SIZEOF_INT $ac_cv_sizeof_int
26856 _ACEOF
26857
26858
26859 echo "$as_me:$LINENO: checking for long" >&5
26860 echo $ECHO_N "checking for long... $ECHO_C" >&6
26861 if test "${ac_cv_type_long+set}" = set; then
26862 echo $ECHO_N "(cached) $ECHO_C" >&6
26863 else
26864 cat >conftest.$ac_ext <<_ACEOF
26865 /* confdefs.h. */
26866 _ACEOF
26867 cat confdefs.h >>conftest.$ac_ext
26868 cat >>conftest.$ac_ext <<_ACEOF
26869 /* end confdefs.h. */
26870 $ac_includes_default
26871 int
26872 main ()
26873 {
26874 if ((long *) 0)
26875 return 0;
26876 if (sizeof (long))
26877 return 0;
26878 ;
26879 return 0;
26880 }
26881 _ACEOF
26882 rm -f conftest.$ac_objext
26883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26884 (eval $ac_compile) 2>conftest.er1
26885 ac_status=$?
26886 grep -v '^ *+' conftest.er1 >conftest.err
26887 rm -f conftest.er1
26888 cat conftest.err >&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); } &&
26891 { ac_try='test -z "$ac_c_werror_flag"
26892 || test ! -s conftest.err'
26893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26894 (eval $ac_try) 2>&5
26895 ac_status=$?
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); }; } &&
26898 { ac_try='test -s conftest.$ac_objext'
26899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900 (eval $ac_try) 2>&5
26901 ac_status=$?
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); }; }; then
26904 ac_cv_type_long=yes
26905 else
26906 echo "$as_me: failed program was:" >&5
26907 sed 's/^/| /' conftest.$ac_ext >&5
26908
26909 ac_cv_type_long=no
26910 fi
26911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26912 fi
26913 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26914 echo "${ECHO_T}$ac_cv_type_long" >&6
26915
26916 echo "$as_me:$LINENO: checking size of long" >&5
26917 echo $ECHO_N "checking size of long... $ECHO_C" >&6
26918 if test "${ac_cv_sizeof_long+set}" = set; then
26919 echo $ECHO_N "(cached) $ECHO_C" >&6
26920 else
26921 if test "$ac_cv_type_long" = yes; then
26922 # The cast to unsigned long works around a bug in the HP C Compiler
26923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26925 # This bug is HP SR number 8606223364.
26926 if test "$cross_compiling" = yes; then
26927 # Depending upon the size, compute the lo and hi bounds.
26928 cat >conftest.$ac_ext <<_ACEOF
26929 /* confdefs.h. */
26930 _ACEOF
26931 cat confdefs.h >>conftest.$ac_ext
26932 cat >>conftest.$ac_ext <<_ACEOF
26933 /* end confdefs.h. */
26934 $ac_includes_default
26935 int
26936 main ()
26937 {
26938 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
26939 test_array [0] = 0
26940
26941 ;
26942 return 0;
26943 }
26944 _ACEOF
26945 rm -f conftest.$ac_objext
26946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26947 (eval $ac_compile) 2>conftest.er1
26948 ac_status=$?
26949 grep -v '^ *+' conftest.er1 >conftest.err
26950 rm -f conftest.er1
26951 cat conftest.err >&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); } &&
26954 { ac_try='test -z "$ac_c_werror_flag"
26955 || test ! -s conftest.err'
26956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957 (eval $ac_try) 2>&5
26958 ac_status=$?
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; } &&
26961 { ac_try='test -s conftest.$ac_objext'
26962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26963 (eval $ac_try) 2>&5
26964 ac_status=$?
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; }; then
26967 ac_lo=0 ac_mid=0
26968 while :; do
26969 cat >conftest.$ac_ext <<_ACEOF
26970 /* confdefs.h. */
26971 _ACEOF
26972 cat confdefs.h >>conftest.$ac_ext
26973 cat >>conftest.$ac_ext <<_ACEOF
26974 /* end confdefs.h. */
26975 $ac_includes_default
26976 int
26977 main ()
26978 {
26979 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26980 test_array [0] = 0
26981
26982 ;
26983 return 0;
26984 }
26985 _ACEOF
26986 rm -f conftest.$ac_objext
26987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26988 (eval $ac_compile) 2>conftest.er1
26989 ac_status=$?
26990 grep -v '^ *+' conftest.er1 >conftest.err
26991 rm -f conftest.er1
26992 cat conftest.err >&5
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); } &&
26995 { ac_try='test -z "$ac_c_werror_flag"
26996 || test ! -s conftest.err'
26997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26998 (eval $ac_try) 2>&5
26999 ac_status=$?
27000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001 (exit $ac_status); }; } &&
27002 { ac_try='test -s conftest.$ac_objext'
27003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27004 (eval $ac_try) 2>&5
27005 ac_status=$?
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); }; }; then
27008 ac_hi=$ac_mid; break
27009 else
27010 echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27012
27013 ac_lo=`expr $ac_mid + 1`
27014 if test $ac_lo -le $ac_mid; then
27015 ac_lo= ac_hi=
27016 break
27017 fi
27018 ac_mid=`expr 2 '*' $ac_mid + 1`
27019 fi
27020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27021 done
27022 else
27023 echo "$as_me: failed program was:" >&5
27024 sed 's/^/| /' conftest.$ac_ext >&5
27025
27026 cat >conftest.$ac_ext <<_ACEOF
27027 /* confdefs.h. */
27028 _ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h. */
27032 $ac_includes_default
27033 int
27034 main ()
27035 {
27036 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
27037 test_array [0] = 0
27038
27039 ;
27040 return 0;
27041 }
27042 _ACEOF
27043 rm -f conftest.$ac_objext
27044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27045 (eval $ac_compile) 2>conftest.er1
27046 ac_status=$?
27047 grep -v '^ *+' conftest.er1 >conftest.err
27048 rm -f conftest.er1
27049 cat conftest.err >&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); } &&
27052 { ac_try='test -z "$ac_c_werror_flag"
27053 || test ! -s conftest.err'
27054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055 (eval $ac_try) 2>&5
27056 ac_status=$?
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); }; } &&
27059 { ac_try='test -s conftest.$ac_objext'
27060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27061 (eval $ac_try) 2>&5
27062 ac_status=$?
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); }; }; then
27065 ac_hi=-1 ac_mid=-1
27066 while :; do
27067 cat >conftest.$ac_ext <<_ACEOF
27068 /* confdefs.h. */
27069 _ACEOF
27070 cat confdefs.h >>conftest.$ac_ext
27071 cat >>conftest.$ac_ext <<_ACEOF
27072 /* end confdefs.h. */
27073 $ac_includes_default
27074 int
27075 main ()
27076 {
27077 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
27078 test_array [0] = 0
27079
27080 ;
27081 return 0;
27082 }
27083 _ACEOF
27084 rm -f conftest.$ac_objext
27085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27086 (eval $ac_compile) 2>conftest.er1
27087 ac_status=$?
27088 grep -v '^ *+' conftest.er1 >conftest.err
27089 rm -f conftest.er1
27090 cat conftest.err >&5
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); } &&
27093 { ac_try='test -z "$ac_c_werror_flag"
27094 || test ! -s conftest.err'
27095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27096 (eval $ac_try) 2>&5
27097 ac_status=$?
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); }; } &&
27100 { ac_try='test -s conftest.$ac_objext'
27101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102 (eval $ac_try) 2>&5
27103 ac_status=$?
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); }; }; then
27106 ac_lo=$ac_mid; break
27107 else
27108 echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27110
27111 ac_hi=`expr '(' $ac_mid ')' - 1`
27112 if test $ac_mid -le $ac_hi; then
27113 ac_lo= ac_hi=
27114 break
27115 fi
27116 ac_mid=`expr 2 '*' $ac_mid`
27117 fi
27118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27119 done
27120 else
27121 echo "$as_me: failed program was:" >&5
27122 sed 's/^/| /' conftest.$ac_ext >&5
27123
27124 ac_lo= ac_hi=
27125 fi
27126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27127 fi
27128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27129 # Binary search between lo and hi bounds.
27130 while test "x$ac_lo" != "x$ac_hi"; do
27131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27132 cat >conftest.$ac_ext <<_ACEOF
27133 /* confdefs.h. */
27134 _ACEOF
27135 cat confdefs.h >>conftest.$ac_ext
27136 cat >>conftest.$ac_ext <<_ACEOF
27137 /* end confdefs.h. */
27138 $ac_includes_default
27139 int
27140 main ()
27141 {
27142 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27143 test_array [0] = 0
27144
27145 ;
27146 return 0;
27147 }
27148 _ACEOF
27149 rm -f conftest.$ac_objext
27150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27151 (eval $ac_compile) 2>conftest.er1
27152 ac_status=$?
27153 grep -v '^ *+' conftest.er1 >conftest.err
27154 rm -f conftest.er1
27155 cat conftest.err >&5
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); } &&
27158 { ac_try='test -z "$ac_c_werror_flag"
27159 || test ! -s conftest.err'
27160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27161 (eval $ac_try) 2>&5
27162 ac_status=$?
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); }; } &&
27165 { ac_try='test -s conftest.$ac_objext'
27166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27167 (eval $ac_try) 2>&5
27168 ac_status=$?
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); }; }; then
27171 ac_hi=$ac_mid
27172 else
27173 echo "$as_me: failed program was:" >&5
27174 sed 's/^/| /' conftest.$ac_ext >&5
27175
27176 ac_lo=`expr '(' $ac_mid ')' + 1`
27177 fi
27178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27179 done
27180 case $ac_lo in
27181 ?*) ac_cv_sizeof_long=$ac_lo;;
27182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27183 See \`config.log' for more details." >&5
27184 echo "$as_me: error: cannot compute sizeof (long), 77
27185 See \`config.log' for more details." >&2;}
27186 { (exit 1); exit 1; }; } ;;
27187 esac
27188 else
27189 if test "$cross_compiling" = yes; then
27190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27191 See \`config.log' for more details." >&5
27192 echo "$as_me: error: cannot run test program while cross compiling
27193 See \`config.log' for more details." >&2;}
27194 { (exit 1); exit 1; }; }
27195 else
27196 cat >conftest.$ac_ext <<_ACEOF
27197 /* confdefs.h. */
27198 _ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h. */
27202 $ac_includes_default
27203 long longval () { return (long) (sizeof (long)); }
27204 unsigned long ulongval () { return (long) (sizeof (long)); }
27205 #include <stdio.h>
27206 #include <stdlib.h>
27207 int
27208 main ()
27209 {
27210
27211 FILE *f = fopen ("conftest.val", "w");
27212 if (! f)
27213 exit (1);
27214 if (((long) (sizeof (long))) < 0)
27215 {
27216 long i = longval ();
27217 if (i != ((long) (sizeof (long))))
27218 exit (1);
27219 fprintf (f, "%ld\n", i);
27220 }
27221 else
27222 {
27223 unsigned long i = ulongval ();
27224 if (i != ((long) (sizeof (long))))
27225 exit (1);
27226 fprintf (f, "%lu\n", i);
27227 }
27228 exit (ferror (f) || fclose (f) != 0);
27229
27230 ;
27231 return 0;
27232 }
27233 _ACEOF
27234 rm -f conftest$ac_exeext
27235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27236 (eval $ac_link) 2>&5
27237 ac_status=$?
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27241 (eval $ac_try) 2>&5
27242 ac_status=$?
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); }; }; then
27245 ac_cv_sizeof_long=`cat conftest.val`
27246 else
27247 echo "$as_me: program exited with status $ac_status" >&5
27248 echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27250
27251 ( exit $ac_status )
27252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27253 See \`config.log' for more details." >&5
27254 echo "$as_me: error: cannot compute sizeof (long), 77
27255 See \`config.log' for more details." >&2;}
27256 { (exit 1); exit 1; }; }
27257 fi
27258 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27259 fi
27260 fi
27261 rm -f conftest.val
27262 else
27263 ac_cv_sizeof_long=0
27264 fi
27265 fi
27266 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27267 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
27268 cat >>confdefs.h <<_ACEOF
27269 #define SIZEOF_LONG $ac_cv_sizeof_long
27270 _ACEOF
27271
27272
27273 echo "$as_me:$LINENO: checking for void*" >&5
27274 echo $ECHO_N "checking for void*... $ECHO_C" >&6
27275 if test "${ac_cv_type_voidp+set}" = set; then
27276 echo $ECHO_N "(cached) $ECHO_C" >&6
27277 else
27278 cat >conftest.$ac_ext <<_ACEOF
27279 /* confdefs.h. */
27280 _ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h. */
27284 $ac_includes_default
27285 int
27286 main ()
27287 {
27288 if ((void* *) 0)
27289 return 0;
27290 if (sizeof (void*))
27291 return 0;
27292 ;
27293 return 0;
27294 }
27295 _ACEOF
27296 rm -f conftest.$ac_objext
27297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27298 (eval $ac_compile) 2>conftest.er1
27299 ac_status=$?
27300 grep -v '^ *+' conftest.er1 >conftest.err
27301 rm -f conftest.er1
27302 cat conftest.err >&5
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); } &&
27305 { ac_try='test -z "$ac_c_werror_flag"
27306 || test ! -s conftest.err'
27307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308 (eval $ac_try) 2>&5
27309 ac_status=$?
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; } &&
27312 { ac_try='test -s conftest.$ac_objext'
27313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27314 (eval $ac_try) 2>&5
27315 ac_status=$?
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); }; }; then
27318 ac_cv_type_voidp=yes
27319 else
27320 echo "$as_me: failed program was:" >&5
27321 sed 's/^/| /' conftest.$ac_ext >&5
27322
27323 ac_cv_type_voidp=no
27324 fi
27325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27326 fi
27327 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
27328 echo "${ECHO_T}$ac_cv_type_voidp" >&6
27329
27330 echo "$as_me:$LINENO: checking size of void*" >&5
27331 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
27332 if test "${ac_cv_sizeof_voidp+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27334 else
27335 if test "$ac_cv_type_voidp" = yes; then
27336 # The cast to unsigned long works around a bug in the HP C Compiler
27337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27339 # This bug is HP SR number 8606223364.
27340 if test "$cross_compiling" = yes; then
27341 # Depending upon the size, compute the lo and hi bounds.
27342 cat >conftest.$ac_ext <<_ACEOF
27343 /* confdefs.h. */
27344 _ACEOF
27345 cat confdefs.h >>conftest.$ac_ext
27346 cat >>conftest.$ac_ext <<_ACEOF
27347 /* end confdefs.h. */
27348 $ac_includes_default
27349 int
27350 main ()
27351 {
27352 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
27353 test_array [0] = 0
27354
27355 ;
27356 return 0;
27357 }
27358 _ACEOF
27359 rm -f conftest.$ac_objext
27360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27361 (eval $ac_compile) 2>conftest.er1
27362 ac_status=$?
27363 grep -v '^ *+' conftest.er1 >conftest.err
27364 rm -f conftest.er1
27365 cat conftest.err >&5
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); } &&
27368 { ac_try='test -z "$ac_c_werror_flag"
27369 || test ! -s conftest.err'
27370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371 (eval $ac_try) 2>&5
27372 ac_status=$?
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; } &&
27375 { ac_try='test -s conftest.$ac_objext'
27376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377 (eval $ac_try) 2>&5
27378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; }; then
27381 ac_lo=0 ac_mid=0
27382 while :; do
27383 cat >conftest.$ac_ext <<_ACEOF
27384 /* confdefs.h. */
27385 _ACEOF
27386 cat confdefs.h >>conftest.$ac_ext
27387 cat >>conftest.$ac_ext <<_ACEOF
27388 /* end confdefs.h. */
27389 $ac_includes_default
27390 int
27391 main ()
27392 {
27393 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
27394 test_array [0] = 0
27395
27396 ;
27397 return 0;
27398 }
27399 _ACEOF
27400 rm -f conftest.$ac_objext
27401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27402 (eval $ac_compile) 2>conftest.er1
27403 ac_status=$?
27404 grep -v '^ *+' conftest.er1 >conftest.err
27405 rm -f conftest.er1
27406 cat conftest.err >&5
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); } &&
27409 { ac_try='test -z "$ac_c_werror_flag"
27410 || test ! -s conftest.err'
27411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27412 (eval $ac_try) 2>&5
27413 ac_status=$?
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); }; } &&
27416 { ac_try='test -s conftest.$ac_objext'
27417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27418 (eval $ac_try) 2>&5
27419 ac_status=$?
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); }; }; then
27422 ac_hi=$ac_mid; break
27423 else
27424 echo "$as_me: failed program was:" >&5
27425 sed 's/^/| /' conftest.$ac_ext >&5
27426
27427 ac_lo=`expr $ac_mid + 1`
27428 if test $ac_lo -le $ac_mid; then
27429 ac_lo= ac_hi=
27430 break
27431 fi
27432 ac_mid=`expr 2 '*' $ac_mid + 1`
27433 fi
27434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27435 done
27436 else
27437 echo "$as_me: failed program was:" >&5
27438 sed 's/^/| /' conftest.$ac_ext >&5
27439
27440 cat >conftest.$ac_ext <<_ACEOF
27441 /* confdefs.h. */
27442 _ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h. */
27446 $ac_includes_default
27447 int
27448 main ()
27449 {
27450 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
27451 test_array [0] = 0
27452
27453 ;
27454 return 0;
27455 }
27456 _ACEOF
27457 rm -f conftest.$ac_objext
27458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27459 (eval $ac_compile) 2>conftest.er1
27460 ac_status=$?
27461 grep -v '^ *+' conftest.er1 >conftest.err
27462 rm -f conftest.er1
27463 cat conftest.err >&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } &&
27466 { ac_try='test -z "$ac_c_werror_flag"
27467 || test ! -s conftest.err'
27468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469 (eval $ac_try) 2>&5
27470 ac_status=$?
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); }; } &&
27473 { ac_try='test -s conftest.$ac_objext'
27474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27475 (eval $ac_try) 2>&5
27476 ac_status=$?
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); }; }; then
27479 ac_hi=-1 ac_mid=-1
27480 while :; do
27481 cat >conftest.$ac_ext <<_ACEOF
27482 /* confdefs.h. */
27483 _ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h. */
27487 $ac_includes_default
27488 int
27489 main ()
27490 {
27491 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
27492 test_array [0] = 0
27493
27494 ;
27495 return 0;
27496 }
27497 _ACEOF
27498 rm -f conftest.$ac_objext
27499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27500 (eval $ac_compile) 2>conftest.er1
27501 ac_status=$?
27502 grep -v '^ *+' conftest.er1 >conftest.err
27503 rm -f conftest.er1
27504 cat conftest.err >&5
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); } &&
27507 { ac_try='test -z "$ac_c_werror_flag"
27508 || test ! -s conftest.err'
27509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27510 (eval $ac_try) 2>&5
27511 ac_status=$?
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); }; } &&
27514 { ac_try='test -s conftest.$ac_objext'
27515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27516 (eval $ac_try) 2>&5
27517 ac_status=$?
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; }; then
27520 ac_lo=$ac_mid; break
27521 else
27522 echo "$as_me: failed program was:" >&5
27523 sed 's/^/| /' conftest.$ac_ext >&5
27524
27525 ac_hi=`expr '(' $ac_mid ')' - 1`
27526 if test $ac_mid -le $ac_hi; then
27527 ac_lo= ac_hi=
27528 break
27529 fi
27530 ac_mid=`expr 2 '*' $ac_mid`
27531 fi
27532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27533 done
27534 else
27535 echo "$as_me: failed program was:" >&5
27536 sed 's/^/| /' conftest.$ac_ext >&5
27537
27538 ac_lo= ac_hi=
27539 fi
27540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27541 fi
27542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27543 # Binary search between lo and hi bounds.
27544 while test "x$ac_lo" != "x$ac_hi"; do
27545 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27546 cat >conftest.$ac_ext <<_ACEOF
27547 /* confdefs.h. */
27548 _ACEOF
27549 cat confdefs.h >>conftest.$ac_ext
27550 cat >>conftest.$ac_ext <<_ACEOF
27551 /* end confdefs.h. */
27552 $ac_includes_default
27553 int
27554 main ()
27555 {
27556 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
27557 test_array [0] = 0
27558
27559 ;
27560 return 0;
27561 }
27562 _ACEOF
27563 rm -f conftest.$ac_objext
27564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27565 (eval $ac_compile) 2>conftest.er1
27566 ac_status=$?
27567 grep -v '^ *+' conftest.er1 >conftest.err
27568 rm -f conftest.er1
27569 cat conftest.err >&5
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); } &&
27572 { ac_try='test -z "$ac_c_werror_flag"
27573 || test ! -s conftest.err'
27574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27575 (eval $ac_try) 2>&5
27576 ac_status=$?
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); }; } &&
27579 { ac_try='test -s conftest.$ac_objext'
27580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581 (eval $ac_try) 2>&5
27582 ac_status=$?
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; }; then
27585 ac_hi=$ac_mid
27586 else
27587 echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27589
27590 ac_lo=`expr '(' $ac_mid ')' + 1`
27591 fi
27592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27593 done
27594 case $ac_lo in
27595 ?*) ac_cv_sizeof_voidp=$ac_lo;;
27596 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
27597 See \`config.log' for more details." >&5
27598 echo "$as_me: error: cannot compute sizeof (void*), 77
27599 See \`config.log' for more details." >&2;}
27600 { (exit 1); exit 1; }; } ;;
27601 esac
27602 else
27603 if test "$cross_compiling" = yes; then
27604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27605 See \`config.log' for more details." >&5
27606 echo "$as_me: error: cannot run test program while cross compiling
27607 See \`config.log' for more details." >&2;}
27608 { (exit 1); exit 1; }; }
27609 else
27610 cat >conftest.$ac_ext <<_ACEOF
27611 /* confdefs.h. */
27612 _ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h. */
27616 $ac_includes_default
27617 long longval () { return (long) (sizeof (void*)); }
27618 unsigned long ulongval () { return (long) (sizeof (void*)); }
27619 #include <stdio.h>
27620 #include <stdlib.h>
27621 int
27622 main ()
27623 {
27624
27625 FILE *f = fopen ("conftest.val", "w");
27626 if (! f)
27627 exit (1);
27628 if (((long) (sizeof (void*))) < 0)
27629 {
27630 long i = longval ();
27631 if (i != ((long) (sizeof (void*))))
27632 exit (1);
27633 fprintf (f, "%ld\n", i);
27634 }
27635 else
27636 {
27637 unsigned long i = ulongval ();
27638 if (i != ((long) (sizeof (void*))))
27639 exit (1);
27640 fprintf (f, "%lu\n", i);
27641 }
27642 exit (ferror (f) || fclose (f) != 0);
27643
27644 ;
27645 return 0;
27646 }
27647 _ACEOF
27648 rm -f conftest$ac_exeext
27649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27650 (eval $ac_link) 2>&5
27651 ac_status=$?
27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27655 (eval $ac_try) 2>&5
27656 ac_status=$?
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); }; }; then
27659 ac_cv_sizeof_voidp=`cat conftest.val`
27660 else
27661 echo "$as_me: program exited with status $ac_status" >&5
27662 echo "$as_me: failed program was:" >&5
27663 sed 's/^/| /' conftest.$ac_ext >&5
27664
27665 ( exit $ac_status )
27666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
27667 See \`config.log' for more details." >&5
27668 echo "$as_me: error: cannot compute sizeof (void*), 77
27669 See \`config.log' for more details." >&2;}
27670 { (exit 1); exit 1; }; }
27671 fi
27672 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27673 fi
27674 fi
27675 rm -f conftest.val
27676 else
27677 ac_cv_sizeof_voidp=0
27678 fi
27679 fi
27680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
27681 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
27682 cat >>confdefs.h <<_ACEOF
27683 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
27684 _ACEOF
27685
27686
27687 ac_cv_char_data_model=""
27688 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
27689 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
27690 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
27691 ac_cv_long_data_model=""
27692 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
27693 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
27694 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
27695 echo "$as_me:$LINENO: checking data model" >&5
27696 echo $ECHO_N "checking data model... $ECHO_C" >&6
27697 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
27698 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
27699 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
27700 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
27701 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
27702 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
27703 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
27704 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
27705 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
27706 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
27707 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
27708 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
27709 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
27710 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
27711 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
27712 222/*|333/*|444/*|666/*|888/*) :
27713 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
27714 *) ac_cv_data_model="none" ; n="very unusual model" ;;
27715 esac
27716 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
27717 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
27718
27719 fi
27720
27721 if test "_$ac_cv_header_stdint_x" != "_" ; then
27722 ac_cv_header_stdint="$ac_cv_header_stdint_x"
27723 elif test "_$ac_cv_header_stdint_o" != "_" ; then
27724 ac_cv_header_stdint="$ac_cv_header_stdint_o"
27725 elif test "_$ac_cv_header_stdint_u" != "_" ; then
27726 ac_cv_header_stdint="$ac_cv_header_stdint_u"
27727 else
27728 ac_cv_header_stdint="stddef.h"
27729 fi
27730
27731 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
27732 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
27733 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
27734 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
27735 unset ac_cv_type_int_least32_t
27736 unset ac_cv_type_int_fast32_t
27737 echo "$as_me:$LINENO: checking for int_least32_t" >&5
27738 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
27739 if test "${ac_cv_type_int_least32_t+set}" = set; then
27740 echo $ECHO_N "(cached) $ECHO_C" >&6
27741 else
27742 cat >conftest.$ac_ext <<_ACEOF
27743 /* confdefs.h. */
27744 _ACEOF
27745 cat confdefs.h >>conftest.$ac_ext
27746 cat >>conftest.$ac_ext <<_ACEOF
27747 /* end confdefs.h. */
27748 #include <$ac_cv_header_stdint>
27749
27750 int
27751 main ()
27752 {
27753 if ((int_least32_t *) 0)
27754 return 0;
27755 if (sizeof (int_least32_t))
27756 return 0;
27757 ;
27758 return 0;
27759 }
27760 _ACEOF
27761 rm -f conftest.$ac_objext
27762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27763 (eval $ac_compile) 2>conftest.er1
27764 ac_status=$?
27765 grep -v '^ *+' conftest.er1 >conftest.err
27766 rm -f conftest.er1
27767 cat conftest.err >&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); } &&
27770 { ac_try='test -z "$ac_c_werror_flag"
27771 || test ! -s conftest.err'
27772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27773 (eval $ac_try) 2>&5
27774 ac_status=$?
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; } &&
27777 { ac_try='test -s conftest.$ac_objext'
27778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779 (eval $ac_try) 2>&5
27780 ac_status=$?
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; }; then
27783 ac_cv_type_int_least32_t=yes
27784 else
27785 echo "$as_me: failed program was:" >&5
27786 sed 's/^/| /' conftest.$ac_ext >&5
27787
27788 ac_cv_type_int_least32_t=no
27789 fi
27790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27791 fi
27792 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
27793 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
27794
27795 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
27796 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
27797 if test "${ac_cv_type_int_fast32_t+set}" = set; then
27798 echo $ECHO_N "(cached) $ECHO_C" >&6
27799 else
27800 cat >conftest.$ac_ext <<_ACEOF
27801 /* confdefs.h. */
27802 _ACEOF
27803 cat confdefs.h >>conftest.$ac_ext
27804 cat >>conftest.$ac_ext <<_ACEOF
27805 /* end confdefs.h. */
27806 #include<$ac_cv_header_stdint>
27807
27808 int
27809 main ()
27810 {
27811 if ((int_fast32_t *) 0)
27812 return 0;
27813 if (sizeof (int_fast32_t))
27814 return 0;
27815 ;
27816 return 0;
27817 }
27818 _ACEOF
27819 rm -f conftest.$ac_objext
27820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27821 (eval $ac_compile) 2>conftest.er1
27822 ac_status=$?
27823 grep -v '^ *+' conftest.er1 >conftest.err
27824 rm -f conftest.er1
27825 cat conftest.err >&5
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); } &&
27828 { ac_try='test -z "$ac_c_werror_flag"
27829 || test ! -s conftest.err'
27830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27831 (eval $ac_try) 2>&5
27832 ac_status=$?
27833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834 (exit $ac_status); }; } &&
27835 { ac_try='test -s conftest.$ac_objext'
27836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27837 (eval $ac_try) 2>&5
27838 ac_status=$?
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); }; }; then
27841 ac_cv_type_int_fast32_t=yes
27842 else
27843 echo "$as_me: failed program was:" >&5
27844 sed 's/^/| /' conftest.$ac_ext >&5
27845
27846 ac_cv_type_int_fast32_t=no
27847 fi
27848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27849 fi
27850 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
27851 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
27852
27853 echo "$as_me:$LINENO: checking for intmax_t" >&5
27854 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
27855 if test "${ac_cv_type_intmax_t+set}" = set; then
27856 echo $ECHO_N "(cached) $ECHO_C" >&6
27857 else
27858 cat >conftest.$ac_ext <<_ACEOF
27859 /* confdefs.h. */
27860 _ACEOF
27861 cat confdefs.h >>conftest.$ac_ext
27862 cat >>conftest.$ac_ext <<_ACEOF
27863 /* end confdefs.h. */
27864 #include <$ac_cv_header_stdint>
27865
27866 int
27867 main ()
27868 {
27869 if ((intmax_t *) 0)
27870 return 0;
27871 if (sizeof (intmax_t))
27872 return 0;
27873 ;
27874 return 0;
27875 }
27876 _ACEOF
27877 rm -f conftest.$ac_objext
27878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27879 (eval $ac_compile) 2>conftest.er1
27880 ac_status=$?
27881 grep -v '^ *+' conftest.er1 >conftest.err
27882 rm -f conftest.er1
27883 cat conftest.err >&5
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); } &&
27886 { ac_try='test -z "$ac_c_werror_flag"
27887 || test ! -s conftest.err'
27888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889 (eval $ac_try) 2>&5
27890 ac_status=$?
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; } &&
27893 { ac_try='test -s conftest.$ac_objext'
27894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27895 (eval $ac_try) 2>&5
27896 ac_status=$?
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
27899 ac_cv_type_intmax_t=yes
27900 else
27901 echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27903
27904 ac_cv_type_intmax_t=no
27905 fi
27906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27907 fi
27908 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
27909 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
27910
27911
27912 fi # shortcircut to system "stdint.h"
27913 # ------------------ PREPARE VARIABLES ------------------------------
27914 if test "$GCC" = "yes" ; then
27915 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
27916 else
27917 ac_cv_stdint_message="using $CC"
27918 fi
27919
27920 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
27921 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
27922
27923 # ----------------- DONE inttypes.h checks START header -------------
27924 ac_config_commands="$ac_config_commands $ac_stdint_h"
27925
27926
27927
27928
27929 # Check whether --with-glibj_zip or --without-glibj_zip was given.
27930 if test "${with_glibj_zip+set}" = set; then
27931 withval="$with_glibj_zip"
27932
27933 fi;
27934
27935 case "$with_glibj_zip" in
27936 "")
27937 use_glibj_zip=false
27938 ;;
27939 "no" )
27940 use_glibj_zip=false
27941 ;;
27942 "yes")
27943 { { echo "$as_me:$LINENO: error: Please suply an absolute path to a prebuilt glibj.zip" >&5
27944 echo "$as_me: error: Please suply an absolute path to a prebuilt glibj.zip" >&2;}
27945 { (exit 1); exit 1; }; }
27946 ;;
27947 *)
27948 use_glibj_zip=true
27949 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
27950 ;;
27951 esac;
27952
27953
27954
27955 if test x$use_glibj_zip = xtrue; then
27956 USE_PREBUILT_GLIBJ_ZIP_TRUE=
27957 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
27958 else
27959 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
27960 USE_PREBUILT_GLIBJ_ZIP_FALSE=
27961 fi
27962
27963
27964
27965
27966 # Check whether --with-escher or --without-escher was given.
27967 if test "${with_escher+set}" = set; then
27968 withval="$with_escher"
27969
27970 fi;
27971 case "$with_escher" in
27972 "")
27973 use_escher=false
27974 ;;
27975 "no")
27976 use_escher=false
27977 ;;
27978 "yes")
27979 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
27980 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
27981 { (exit 1); exit 1; }; }
27982 ;;
27983 *)
27984 use_escher=true
27985 PATH_TO_ESCHER=$with_escher
27986 ;;
27987 esac
27988
27989
27990
27991 if test x$use_escher = xtrue; then
27992 USE_ESCHER_TRUE=
27993 USE_ESCHER_FALSE='#'
27994 else
27995 USE_ESCHER_TRUE='#'
27996 USE_ESCHER_FALSE=
27997 fi
27998
27999
28000
28001 # Check whether --enable-local-sockets or --disable-local-sockets was given.
28002 if test "${enable_local_sockets+set}" = set; then
28003 enableval="$enable_local_sockets"
28004 case "${enableval}" in
28005 yes)
28006 ENABLE_LOCAL_SOCKETS=yes
28007 ;;
28008 *)
28009 ENABLE_LOCAL_SOCKETS=no
28010 ;;
28011 esac
28012 fi;
28013 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
28014 then
28015 if test "${ac_cv_header_sys_un_h+set}" = set; then
28016 echo "$as_me:$LINENO: checking for sys/un.h" >&5
28017 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
28018 if test "${ac_cv_header_sys_un_h+set}" = set; then
28019 echo $ECHO_N "(cached) $ECHO_C" >&6
28020 fi
28021 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
28022 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
28023 else
28024 # Is the header compilable?
28025 echo "$as_me:$LINENO: checking sys/un.h usability" >&5
28026 echo $ECHO_N "checking sys/un.h usability... $ECHO_C" >&6
28027 cat >conftest.$ac_ext <<_ACEOF
28028 /* confdefs.h. */
28029 _ACEOF
28030 cat confdefs.h >>conftest.$ac_ext
28031 cat >>conftest.$ac_ext <<_ACEOF
28032 /* end confdefs.h. */
28033 $ac_includes_default
28034 #include <sys/un.h>
28035 _ACEOF
28036 rm -f conftest.$ac_objext
28037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28038 (eval $ac_compile) 2>conftest.er1
28039 ac_status=$?
28040 grep -v '^ *+' conftest.er1 >conftest.err
28041 rm -f conftest.er1
28042 cat conftest.err >&5
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); } &&
28045 { ac_try='test -z "$ac_c_werror_flag"
28046 || test ! -s conftest.err'
28047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048 (eval $ac_try) 2>&5
28049 ac_status=$?
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; } &&
28052 { ac_try='test -s conftest.$ac_objext'
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28055 ac_status=$?
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; }; then
28058 ac_header_compiler=yes
28059 else
28060 echo "$as_me: failed program was:" >&5
28061 sed 's/^/| /' conftest.$ac_ext >&5
28062
28063 ac_header_compiler=no
28064 fi
28065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28067 echo "${ECHO_T}$ac_header_compiler" >&6
28068
28069 # Is the header present?
28070 echo "$as_me:$LINENO: checking sys/un.h presence" >&5
28071 echo $ECHO_N "checking sys/un.h presence... $ECHO_C" >&6
28072 cat >conftest.$ac_ext <<_ACEOF
28073 /* confdefs.h. */
28074 _ACEOF
28075 cat confdefs.h >>conftest.$ac_ext
28076 cat >>conftest.$ac_ext <<_ACEOF
28077 /* end confdefs.h. */
28078 #include <sys/un.h>
28079 _ACEOF
28080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28082 ac_status=$?
28083 grep -v '^ *+' conftest.er1 >conftest.err
28084 rm -f conftest.er1
28085 cat conftest.err >&5
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); } >/dev/null; then
28088 if test -s conftest.err; then
28089 ac_cpp_err=$ac_c_preproc_warn_flag
28090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28091 else
28092 ac_cpp_err=
28093 fi
28094 else
28095 ac_cpp_err=yes
28096 fi
28097 if test -z "$ac_cpp_err"; then
28098 ac_header_preproc=yes
28099 else
28100 echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28102
28103 ac_header_preproc=no
28104 fi
28105 rm -f conftest.err conftest.$ac_ext
28106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28107 echo "${ECHO_T}$ac_header_preproc" >&6
28108
28109 # So? What about this header?
28110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28111 yes:no: )
28112 { echo "$as_me:$LINENO: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&5
28113 echo "$as_me: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28114 { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the compiler's result" >&5
28115 echo "$as_me: WARNING: sys/un.h: proceeding with the compiler's result" >&2;}
28116 ac_header_preproc=yes
28117 ;;
28118 no:yes:* )
28119 { echo "$as_me:$LINENO: WARNING: sys/un.h: present but cannot be compiled" >&5
28120 echo "$as_me: WARNING: sys/un.h: present but cannot be compiled" >&2;}
28121 { echo "$as_me:$LINENO: WARNING: sys/un.h: check for missing prerequisite headers?" >&5
28122 echo "$as_me: WARNING: sys/un.h: check for missing prerequisite headers?" >&2;}
28123 { echo "$as_me:$LINENO: WARNING: sys/un.h: see the Autoconf documentation" >&5
28124 echo "$as_me: WARNING: sys/un.h: see the Autoconf documentation" >&2;}
28125 { echo "$as_me:$LINENO: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&5
28126 echo "$as_me: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&2;}
28127 { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the preprocessor's result" >&5
28128 echo "$as_me: WARNING: sys/un.h: proceeding with the preprocessor's result" >&2;}
28129 { echo "$as_me:$LINENO: WARNING: sys/un.h: in the future, the compiler will take precedence" >&5
28130 echo "$as_me: WARNING: sys/un.h: in the future, the compiler will take precedence" >&2;}
28131 (
28132 cat <<\_ASBOX
28133 ## -------------------------------- ##
28134 ## Report this to classpath@gnu.org ##
28135 ## -------------------------------- ##
28136 _ASBOX
28137 ) |
28138 sed "s/^/$as_me: WARNING: /" >&2
28139 ;;
28140 esac
28141 echo "$as_me:$LINENO: checking for sys/un.h" >&5
28142 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
28143 if test "${ac_cv_header_sys_un_h+set}" = set; then
28144 echo $ECHO_N "(cached) $ECHO_C" >&6
28145 else
28146 ac_cv_header_sys_un_h=$ac_header_preproc
28147 fi
28148 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
28149 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
28150
28151 fi
28152
28153
28154
28155
28156
28157
28158
28159
28160 for ac_func in read write bind listen accept shutdown
28161 do
28162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28163 echo "$as_me:$LINENO: checking for $ac_func" >&5
28164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28165 if eval "test \"\${$as_ac_var+set}\" = set"; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28167 else
28168 if test x$gcc_no_link = xyes; then
28169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28171 { (exit 1); exit 1; }; }
28172 fi
28173 cat >conftest.$ac_ext <<_ACEOF
28174 /* confdefs.h. */
28175 _ACEOF
28176 cat confdefs.h >>conftest.$ac_ext
28177 cat >>conftest.$ac_ext <<_ACEOF
28178 /* end confdefs.h. */
28179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28181 #define $ac_func innocuous_$ac_func
28182
28183 /* System header to define __stub macros and hopefully few prototypes,
28184 which can conflict with char $ac_func (); below.
28185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28186 <limits.h> exists even on freestanding compilers. */
28187
28188 #ifdef __STDC__
28189 # include <limits.h>
28190 #else
28191 # include <assert.h>
28192 #endif
28193
28194 #undef $ac_func
28195
28196 /* Override any gcc2 internal prototype to avoid an error. */
28197 #ifdef __cplusplus
28198 extern "C"
28199 {
28200 #endif
28201 /* We use char because int might match the return type of a gcc2
28202 builtin and then its argument prototype would still apply. */
28203 char $ac_func ();
28204 /* The GNU C library defines this for functions which it implements
28205 to always fail with ENOSYS. Some functions are actually named
28206 something starting with __ and the normal name is an alias. */
28207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28208 choke me
28209 #else
28210 char (*f) () = $ac_func;
28211 #endif
28212 #ifdef __cplusplus
28213 }
28214 #endif
28215
28216 int
28217 main ()
28218 {
28219 return f != $ac_func;
28220 ;
28221 return 0;
28222 }
28223 _ACEOF
28224 rm -f conftest.$ac_objext conftest$ac_exeext
28225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28226 (eval $ac_link) 2>conftest.er1
28227 ac_status=$?
28228 grep -v '^ *+' conftest.er1 >conftest.err
28229 rm -f conftest.er1
28230 cat conftest.err >&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); } &&
28233 { ac_try='test -z "$ac_c_werror_flag"
28234 || test ! -s conftest.err'
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; } &&
28240 { ac_try='test -s conftest$ac_exeext'
28241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28243 ac_status=$?
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
28246 eval "$as_ac_var=yes"
28247 else
28248 echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28250
28251 eval "$as_ac_var=no"
28252 fi
28253 rm -f conftest.err conftest.$ac_objext \
28254 conftest$ac_exeext conftest.$ac_ext
28255 fi
28256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28258 if test `eval echo '${'$as_ac_var'}'` = yes; then
28259 cat >>confdefs.h <<_ACEOF
28260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28261 _ACEOF
28262
28263 else
28264 { { echo "$as_me:$LINENO: error: networking support not available" >&5
28265 echo "$as_me: error: networking support not available" >&2;}
28266 { (exit 1); exit 1; }; }
28267 fi
28268 done
28269
28270
28271 cat >>confdefs.h <<\_ACEOF
28272 #define ENABLE_LOCAL_SOCKETS 1
28273 _ACEOF
28274
28275 fi
28276
28277
28278 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
28279 ENABLE_LOCAL_SOCKETS_TRUE=
28280 ENABLE_LOCAL_SOCKETS_FALSE='#'
28281 else
28282 ENABLE_LOCAL_SOCKETS_TRUE='#'
28283 ENABLE_LOCAL_SOCKETS_FALSE=
28284 fi
28285
28286
28287
28288
28289 ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile external/relaxngDatatype/Makefile external/jsr166/Makefile gnu/classpath/Configuration.java gnu/java/security/Configuration.java include/Makefile native/Makefile native/fdlibm/Makefile native/jawt/Makefile native/jni/Makefile native/jni/classpath/Makefile native/jni/java-io/Makefile native/jni/java-lang/Makefile native/jni/java-net/Makefile native/jni/java-nio/Makefile native/jni/java-util/Makefile native/jni/gtk-peer/Makefile native/jni/gconf-peer/Makefile native/jni/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/Makefile native/jni/native-lib/Makefile native/plugin/Makefile resource/Makefile resource/META-INF/services/java.util.prefs.PreferencesFactory scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh tools/Makefile examples/Makefile examples/Makefile.jawt examples/Makefile.java2d"
28290
28291
28292 if test "x${COMPILE_WRAPPERS}" = xno
28293 then
28294 ac_config_files="$ac_config_files tools/gappletviewer tools/gjarsigner tools/gkeytool tools/gjar tools/gnative2ascii tools/gserialver tools/grmiregistry tools/gtnameserv tools/gorbd tools/grmid tools/grmic tools/gjavah"
28295
28296 ac_config_commands="$ac_config_commands gappletviewer"
28297
28298 ac_config_commands="$ac_config_commands gjarsigner"
28299
28300 ac_config_commands="$ac_config_commands gkeytool"
28301
28302 ac_config_commands="$ac_config_commands gjar"
28303
28304 ac_config_commands="$ac_config_commands gnative2ascii"
28305
28306 ac_config_commands="$ac_config_commands gserialver"
28307
28308 ac_config_commands="$ac_config_commands grmiregistry"
28309
28310 ac_config_commands="$ac_config_commands gtnameserv"
28311
28312 ac_config_commands="$ac_config_commands gorbd"
28313
28314 ac_config_commands="$ac_config_commands grmid"
28315
28316 ac_config_commands="$ac_config_commands grmic"
28317
28318 ac_config_commands="$ac_config_commands gjavah"
28319
28320 fi
28321
28322 ac_config_commands="$ac_config_commands gen-classlist"
28323
28324 ac_config_commands="$ac_config_commands copy-vmresources"
28325
28326 cat >confcache <<\_ACEOF
28327 # This file is a shell script that caches the results of configure
28328 # tests run on this system so they can be shared between configure
28329 # scripts and configure runs, see configure's option --config-cache.
28330 # It is not useful on other systems. If it contains results you don't
28331 # want to keep, you may remove or edit it.
28332 #
28333 # config.status only pays attention to the cache file if you give it
28334 # the --recheck option to rerun configure.
28335 #
28336 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28337 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28338 # following values.
28339
28340 _ACEOF
28341
28342 # The following way of writing the cache mishandles newlines in values,
28343 # but we know of no workaround that is simple, portable, and efficient.
28344 # So, don't put newlines in cache variables' values.
28345 # Ultrix sh set writes to stderr and can't be redirected directly,
28346 # and sets the high bit in the cache file unless we assign to the vars.
28347 {
28348 (set) 2>&1 |
28349 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28350 *ac_space=\ *)
28351 # `set' does not quote correctly, so add quotes (double-quote
28352 # substitution turns \\\\ into \\, and sed turns \\ into \).
28353 sed -n \
28354 "s/'/'\\\\''/g;
28355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28356 ;;
28357 *)
28358 # `set' quotes correctly as required by POSIX, so do not add quotes.
28359 sed -n \
28360 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28361 ;;
28362 esac;
28363 } |
28364 sed '
28365 t clear
28366 : clear
28367 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28368 t end
28369 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28370 : end' >>confcache
28371 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28372 if test -w $cache_file; then
28373 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28374 cat confcache >$cache_file
28375 else
28376 echo "not updating unwritable cache $cache_file"
28377 fi
28378 fi
28379 rm -f confcache
28380
28381 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28382 # Let make expand exec_prefix.
28383 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28384
28385 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28386 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28387 # trailing colons and then remove the whole line if VPATH becomes empty
28388 # (actually we leave an empty line to preserve line numbers).
28389 if test "x$srcdir" = x.; then
28390 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28391 s/:*\$(srcdir):*/:/;
28392 s/:*\${srcdir}:*/:/;
28393 s/:*@srcdir@:*/:/;
28394 s/^\([^=]*=[ ]*\):*/\1/;
28395 s/:*$//;
28396 s/^[^=]*=[ ]*$//;
28397 }'
28398 fi
28399
28400 DEFS=-DHAVE_CONFIG_H
28401
28402 ac_libobjs=
28403 ac_ltlibobjs=
28404 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28405 # 1. Remove the extension, and $U if already installed.
28406 ac_i=`echo "$ac_i" |
28407 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28408 # 2. Add them.
28409 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28410 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28411 done
28412 LIBOBJS=$ac_libobjs
28413
28414 LTLIBOBJS=$ac_ltlibobjs
28415
28416
28417 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
28418 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28419 Usually this means the macro was only invoked conditionally." >&5
28420 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28421 Usually this means the macro was only invoked conditionally." >&2;}
28422 { (exit 1); exit 1; }; }
28423 fi
28424 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
28425 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
28426 Usually this means the macro was only invoked conditionally." >&5
28427 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
28428 Usually this means the macro was only invoked conditionally." >&2;}
28429 { (exit 1); exit 1; }; }
28430 fi
28431 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
28432 { { echo "$as_me:$LINENO: error: conditional \"CREATE_COLLECTIONS\" was never defined.
28433 Usually this means the macro was only invoked conditionally." >&5
28434 echo "$as_me: error: conditional \"CREATE_COLLECTIONS\" was never defined.
28435 Usually this means the macro was only invoked conditionally." >&2;}
28436 { (exit 1); exit 1; }; }
28437 fi
28438 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
28439 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
28440 Usually this means the macro was only invoked conditionally." >&5
28441 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
28442 Usually this means the macro was only invoked conditionally." >&2;}
28443 { (exit 1); exit 1; }; }
28444 fi
28445 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
28446 { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
28447 Usually this means the macro was only invoked conditionally." >&5
28448 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
28449 Usually this means the macro was only invoked conditionally." >&2;}
28450 { (exit 1); exit 1; }; }
28451 fi
28452 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
28453 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
28454 Usually this means the macro was only invoked conditionally." >&5
28455 echo "$as_me: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
28456 Usually this means the macro was only invoked conditionally." >&2;}
28457 { (exit 1); exit 1; }; }
28458 fi
28459 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
28460 { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
28461 Usually this means the macro was only invoked conditionally." >&5
28462 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
28463 Usually this means the macro was only invoked conditionally." >&2;}
28464 { (exit 1); exit 1; }; }
28465 fi
28466 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28467 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28468 Usually this means the macro was only invoked conditionally." >&5
28469 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28470 Usually this means the macro was only invoked conditionally." >&2;}
28471 { (exit 1); exit 1; }; }
28472 fi
28473 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28474 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28475 Usually this means the macro was only invoked conditionally." >&5
28476 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28477 Usually this means the macro was only invoked conditionally." >&2;}
28478 { (exit 1); exit 1; }; }
28479 fi
28480 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
28481 { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
28482 Usually this means the macro was only invoked conditionally." >&5
28483 echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
28484 Usually this means the macro was only invoked conditionally." >&2;}
28485 { (exit 1); exit 1; }; }
28486 fi
28487 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
28488 { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
28489 Usually this means the macro was only invoked conditionally." >&5
28490 echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
28491 Usually this means the macro was only invoked conditionally." >&2;}
28492 { (exit 1); exit 1; }; }
28493 fi
28494 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
28495 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
28496 Usually this means the macro was only invoked conditionally." >&5
28497 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
28498 Usually this means the macro was only invoked conditionally." >&2;}
28499 { (exit 1); exit 1; }; }
28500 fi
28501 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
28502 { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
28503 Usually this means the macro was only invoked conditionally." >&5
28504 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
28505 Usually this means the macro was only invoked conditionally." >&2;}
28506 { (exit 1); exit 1; }; }
28507 fi
28508 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
28509 { { echo "$as_me:$LINENO: error: conditional \"CREATE_PLUGIN\" was never defined.
28510 Usually this means the macro was only invoked conditionally." >&5
28511 echo "$as_me: error: conditional \"CREATE_PLUGIN\" was never defined.
28512 Usually this means the macro was only invoked conditionally." >&2;}
28513 { (exit 1); exit 1; }; }
28514 fi
28515 if test -z "${FOUND_CACAO_TRUE}" && test -z "${FOUND_CACAO_FALSE}"; then
28516 { { echo "$as_me:$LINENO: error: conditional \"FOUND_CACAO\" was never defined.
28517 Usually this means the macro was only invoked conditionally." >&5
28518 echo "$as_me: error: conditional \"FOUND_CACAO\" was never defined.
28519 Usually this means the macro was only invoked conditionally." >&2;}
28520 { (exit 1); exit 1; }; }
28521 fi
28522 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
28523 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
28524 Usually this means the macro was only invoked conditionally." >&5
28525 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
28526 Usually this means the macro was only invoked conditionally." >&2;}
28527 { (exit 1); exit 1; }; }
28528 fi
28529 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
28530 { { echo "$as_me:$LINENO: error: conditional \"CREATE_WRAPPERS\" was never defined.
28531 Usually this means the macro was only invoked conditionally." >&5
28532 echo "$as_me: error: conditional \"CREATE_WRAPPERS\" was never defined.
28533 Usually this means the macro was only invoked conditionally." >&2;}
28534 { (exit 1); exit 1; }; }
28535 fi
28536 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28537 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28538 Usually this means the macro was only invoked conditionally." >&5
28539 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28540 Usually this means the macro was only invoked conditionally." >&2;}
28541 { (exit 1); exit 1; }; }
28542 fi
28543 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28544 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28545 Usually this means the macro was only invoked conditionally." >&5
28546 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28547 Usually this means the macro was only invoked conditionally." >&2;}
28548 { (exit 1); exit 1; }; }
28549 fi
28550 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28551 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28552 Usually this means the macro was only invoked conditionally." >&5
28553 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28554 Usually this means the macro was only invoked conditionally." >&2;}
28555 { (exit 1); exit 1; }; }
28556 fi
28557 if test -z "${USER_SPECIFIED_JAVAH_TRUE}" && test -z "${USER_SPECIFIED_JAVAH_FALSE}"; then
28558 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
28559 Usually this means the macro was only invoked conditionally." >&5
28560 echo "$as_me: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
28561 Usually this means the macro was only invoked conditionally." >&2;}
28562 { (exit 1); exit 1; }; }
28563 fi
28564 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
28565 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
28566 Usually this means the macro was only invoked conditionally." >&5
28567 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
28568 Usually this means the macro was only invoked conditionally." >&2;}
28569 { (exit 1); exit 1; }; }
28570 fi
28571 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
28572 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
28573 Usually this means the macro was only invoked conditionally." >&5
28574 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
28575 Usually this means the macro was only invoked conditionally." >&2;}
28576 { (exit 1); exit 1; }; }
28577 fi
28578 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
28579 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
28580 Usually this means the macro was only invoked conditionally." >&5
28581 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
28582 Usually this means the macro was only invoked conditionally." >&2;}
28583 { (exit 1); exit 1; }; }
28584 fi
28585 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
28586 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
28587 Usually this means the macro was only invoked conditionally." >&5
28588 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
28589 Usually this means the macro was only invoked conditionally." >&2;}
28590 { (exit 1); exit 1; }; }
28591 fi
28592 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
28593 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
28594 Usually this means the macro was only invoked conditionally." >&5
28595 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
28596 Usually this means the macro was only invoked conditionally." >&2;}
28597 { (exit 1); exit 1; }; }
28598 fi
28599 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
28600 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
28601 Usually this means the macro was only invoked conditionally." >&5
28602 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
28603 Usually this means the macro was only invoked conditionally." >&2;}
28604 { (exit 1); exit 1; }; }
28605 fi
28606 if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
28607 { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
28608 Usually this means the macro was only invoked conditionally." >&5
28609 echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
28610 Usually this means the macro was only invoked conditionally." >&2;}
28611 { (exit 1); exit 1; }; }
28612 fi
28613 if test -z "${FOUND_GCJX_TRUE}" && test -z "${FOUND_GCJX_FALSE}"; then
28614 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJX\" was never defined.
28615 Usually this means the macro was only invoked conditionally." >&5
28616 echo "$as_me: error: conditional \"FOUND_GCJX\" was never defined.
28617 Usually this means the macro was only invoked conditionally." >&2;}
28618 { (exit 1); exit 1; }; }
28619 fi
28620 if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
28621 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
28622 Usually this means the macro was only invoked conditionally." >&5
28623 echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
28624 Usually this means the macro was only invoked conditionally." >&2;}
28625 { (exit 1); exit 1; }; }
28626 fi
28627 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28628 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28629 Usually this means the macro was only invoked conditionally." >&5
28630 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28631 Usually this means the macro was only invoked conditionally." >&2;}
28632 { (exit 1); exit 1; }; }
28633 fi
28634 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
28635 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
28636 Usually this means the macro was only invoked conditionally." >&5
28637 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
28638 Usually this means the macro was only invoked conditionally." >&2;}
28639 { (exit 1); exit 1; }; }
28640 fi
28641 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
28642 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
28643 Usually this means the macro was only invoked conditionally." >&5
28644 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
28645 Usually this means the macro was only invoked conditionally." >&2;}
28646 { (exit 1); exit 1; }; }
28647 fi
28648 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
28649 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
28650 Usually this means the macro was only invoked conditionally." >&5
28651 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
28652 Usually this means the macro was only invoked conditionally." >&2;}
28653 { (exit 1); exit 1; }; }
28654 fi
28655 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
28656 { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
28657 Usually this means the macro was only invoked conditionally." >&5
28658 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
28659 Usually this means the macro was only invoked conditionally." >&2;}
28660 { (exit 1); exit 1; }; }
28661 fi
28662 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
28663 { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
28664 Usually this means the macro was only invoked conditionally." >&5
28665 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
28666 Usually this means the macro was only invoked conditionally." >&2;}
28667 { (exit 1); exit 1; }; }
28668 fi
28669 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
28670 { { echo "$as_me:$LINENO: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
28671 Usually this means the macro was only invoked conditionally." >&5
28672 echo "$as_me: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
28673 Usually this means the macro was only invoked conditionally." >&2;}
28674 { (exit 1); exit 1; }; }
28675 fi
28676 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
28677 { { echo "$as_me:$LINENO: error: conditional \"USE_ESCHER\" was never defined.
28678 Usually this means the macro was only invoked conditionally." >&5
28679 echo "$as_me: error: conditional \"USE_ESCHER\" was never defined.
28680 Usually this means the macro was only invoked conditionally." >&2;}
28681 { (exit 1); exit 1; }; }
28682 fi
28683 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
28684 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
28685 Usually this means the macro was only invoked conditionally." >&5
28686 echo "$as_me: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
28687 Usually this means the macro was only invoked conditionally." >&2;}
28688 { (exit 1); exit 1; }; }
28689 fi
28690
28691 : ${CONFIG_STATUS=./config.status}
28692 ac_clean_files_save=$ac_clean_files
28693 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28694 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28695 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28696 cat >$CONFIG_STATUS <<_ACEOF
28697 #! $SHELL
28698 # Generated by $as_me.
28699 # Run this file to recreate the current configuration.
28700 # Compiler output produced by configure, useful for debugging
28701 # configure, is in config.log if it exists.
28702
28703 debug=false
28704 ac_cs_recheck=false
28705 ac_cs_silent=false
28706 SHELL=\${CONFIG_SHELL-$SHELL}
28707 _ACEOF
28708
28709 cat >>$CONFIG_STATUS <<\_ACEOF
28710 ## --------------------- ##
28711 ## M4sh Initialization. ##
28712 ## --------------------- ##
28713
28714 # Be Bourne compatible
28715 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28716 emulate sh
28717 NULLCMD=:
28718 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28719 # is contrary to our usage. Disable this feature.
28720 alias -g '${1+"$@"}'='"$@"'
28721 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28722 set -o posix
28723 fi
28724 DUALCASE=1; export DUALCASE # for MKS sh
28725
28726 # Support unset when possible.
28727 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28728 as_unset=unset
28729 else
28730 as_unset=false
28731 fi
28732
28733
28734 # Work around bugs in pre-3.0 UWIN ksh.
28735 $as_unset ENV MAIL MAILPATH
28736 PS1='$ '
28737 PS2='> '
28738 PS4='+ '
28739
28740 # NLS nuisances.
28741 for as_var in \
28742 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28743 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28744 LC_TELEPHONE LC_TIME
28745 do
28746 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28747 eval $as_var=C; export $as_var
28748 else
28749 $as_unset $as_var
28750 fi
28751 done
28752
28753 # Required to use basename.
28754 if expr a : '\(a\)' >/dev/null 2>&1; then
28755 as_expr=expr
28756 else
28757 as_expr=false
28758 fi
28759
28760 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28761 as_basename=basename
28762 else
28763 as_basename=false
28764 fi
28765
28766
28767 # Name of the executable.
28768 as_me=`$as_basename "$0" ||
28769 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28770 X"$0" : 'X\(//\)$' \| \
28771 X"$0" : 'X\(/\)$' \| \
28772 . : '\(.\)' 2>/dev/null ||
28773 echo X/"$0" |
28774 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28775 /^X\/\(\/\/\)$/{ s//\1/; q; }
28776 /^X\/\(\/\).*/{ s//\1/; q; }
28777 s/.*/./; q'`
28778
28779
28780 # PATH needs CR, and LINENO needs CR and PATH.
28781 # Avoid depending upon Character Ranges.
28782 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28783 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28784 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28785 as_cr_digits='0123456789'
28786 as_cr_alnum=$as_cr_Letters$as_cr_digits
28787
28788 # The user is always right.
28789 if test "${PATH_SEPARATOR+set}" != set; then
28790 echo "#! /bin/sh" >conf$$.sh
28791 echo "exit 0" >>conf$$.sh
28792 chmod +x conf$$.sh
28793 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28794 PATH_SEPARATOR=';'
28795 else
28796 PATH_SEPARATOR=:
28797 fi
28798 rm -f conf$$.sh
28799 fi
28800
28801
28802 as_lineno_1=$LINENO
28803 as_lineno_2=$LINENO
28804 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28805 test "x$as_lineno_1" != "x$as_lineno_2" &&
28806 test "x$as_lineno_3" = "x$as_lineno_2" || {
28807 # Find who we are. Look in the path if we contain no path at all
28808 # relative or not.
28809 case $0 in
28810 *[\\/]* ) as_myself=$0 ;;
28811 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28812 for as_dir in $PATH
28813 do
28814 IFS=$as_save_IFS
28815 test -z "$as_dir" && as_dir=.
28816 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28817 done
28818
28819 ;;
28820 esac
28821 # We did not find ourselves, most probably we were run as `sh COMMAND'
28822 # in which case we are not to be found in the path.
28823 if test "x$as_myself" = x; then
28824 as_myself=$0
28825 fi
28826 if test ! -f "$as_myself"; then
28827 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28828 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28829 { (exit 1); exit 1; }; }
28830 fi
28831 case $CONFIG_SHELL in
28832 '')
28833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28834 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28835 do
28836 IFS=$as_save_IFS
28837 test -z "$as_dir" && as_dir=.
28838 for as_base in sh bash ksh sh5; do
28839 case $as_dir in
28840 /*)
28841 if ("$as_dir/$as_base" -c '
28842 as_lineno_1=$LINENO
28843 as_lineno_2=$LINENO
28844 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28845 test "x$as_lineno_1" != "x$as_lineno_2" &&
28846 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28847 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28848 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28849 CONFIG_SHELL=$as_dir/$as_base
28850 export CONFIG_SHELL
28851 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28852 fi;;
28853 esac
28854 done
28855 done
28856 ;;
28857 esac
28858
28859 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28860 # uniformly replaced by the line number. The first 'sed' inserts a
28861 # line-number line before each line; the second 'sed' does the real
28862 # work. The second script uses 'N' to pair each line-number line
28863 # with the numbered line, and appends trailing '-' during
28864 # substitution so that $LINENO is not a special case at line end.
28865 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28866 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28867 sed '=' <$as_myself |
28868 sed '
28869 N
28870 s,$,-,
28871 : loop
28872 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28873 t loop
28874 s,-$,,
28875 s,^['$as_cr_digits']*\n,,
28876 ' >$as_me.lineno &&
28877 chmod +x $as_me.lineno ||
28878 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28879 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28880 { (exit 1); exit 1; }; }
28881
28882 # Don't try to exec as it changes $[0], causing all sort of problems
28883 # (the dirname of $[0] is not the place where we might find the
28884 # original and so on. Autoconf is especially sensible to this).
28885 . ./$as_me.lineno
28886 # Exit status is that of the last command.
28887 exit
28888 }
28889
28890
28891 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28892 *c*,-n*) ECHO_N= ECHO_C='
28893 ' ECHO_T=' ' ;;
28894 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28895 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28896 esac
28897
28898 if expr a : '\(a\)' >/dev/null 2>&1; then
28899 as_expr=expr
28900 else
28901 as_expr=false
28902 fi
28903
28904 rm -f conf$$ conf$$.exe conf$$.file
28905 echo >conf$$.file
28906 if ln -s conf$$.file conf$$ 2>/dev/null; then
28907 # We could just check for DJGPP; but this test a) works b) is more generic
28908 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28909 if test -f conf$$.exe; then
28910 # Don't use ln at all; we don't have any links
28911 as_ln_s='cp -p'
28912 else
28913 as_ln_s='ln -s'
28914 fi
28915 elif ln conf$$.file conf$$ 2>/dev/null; then
28916 as_ln_s=ln
28917 else
28918 as_ln_s='cp -p'
28919 fi
28920 rm -f conf$$ conf$$.exe conf$$.file
28921
28922 if mkdir -p . 2>/dev/null; then
28923 as_mkdir_p=:
28924 else
28925 test -d ./-p && rmdir ./-p
28926 as_mkdir_p=false
28927 fi
28928
28929 as_executable_p="test -f"
28930
28931 # Sed expression to map a string onto a valid CPP name.
28932 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28933
28934 # Sed expression to map a string onto a valid variable name.
28935 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28936
28937
28938 # IFS
28939 # We need space, tab and new line, in precisely that order.
28940 as_nl='
28941 '
28942 IFS=" $as_nl"
28943
28944 # CDPATH.
28945 $as_unset CDPATH
28946
28947 exec 6>&1
28948
28949 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28950 # report actual input values of CONFIG_FILES etc. instead of their
28951 # values after options handling. Logging --version etc. is OK.
28952 exec 5>>config.log
28953 {
28954 echo
28955 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28956 ## Running $as_me. ##
28957 _ASBOX
28958 } >&5
28959 cat >&5 <<_CSEOF
28960
28961 This file was extended by GNU Classpath $as_me 0.94-pre, which was
28962 generated by GNU Autoconf 2.59. Invocation command line was
28963
28964 CONFIG_FILES = $CONFIG_FILES
28965 CONFIG_HEADERS = $CONFIG_HEADERS
28966 CONFIG_LINKS = $CONFIG_LINKS
28967 CONFIG_COMMANDS = $CONFIG_COMMANDS
28968 $ $0 $@
28969
28970 _CSEOF
28971 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28972 echo >&5
28973 _ACEOF
28974
28975 # Files that config.status was made for.
28976 if test -n "$ac_config_files"; then
28977 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28978 fi
28979
28980 if test -n "$ac_config_headers"; then
28981 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28982 fi
28983
28984 if test -n "$ac_config_links"; then
28985 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28986 fi
28987
28988 if test -n "$ac_config_commands"; then
28989 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28990 fi
28991
28992 cat >>$CONFIG_STATUS <<\_ACEOF
28993
28994 ac_cs_usage="\
28995 \`$as_me' instantiates files from templates according to the
28996 current configuration.
28997
28998 Usage: $0 [OPTIONS] [FILE]...
28999
29000 -h, --help print this help, then exit
29001 -V, --version print version number, then exit
29002 -q, --quiet do not print progress messages
29003 -d, --debug don't remove temporary files
29004 --recheck update $as_me by reconfiguring in the same conditions
29005 --file=FILE[:TEMPLATE]
29006 instantiate the configuration file FILE
29007 --header=FILE[:TEMPLATE]
29008 instantiate the configuration header FILE
29009
29010 Configuration files:
29011 $config_files
29012
29013 Configuration headers:
29014 $config_headers
29015
29016 Configuration links:
29017 $config_links
29018
29019 Configuration commands:
29020 $config_commands
29021
29022 Report bugs to <bug-autoconf@gnu.org>."
29023 _ACEOF
29024
29025 cat >>$CONFIG_STATUS <<_ACEOF
29026 ac_cs_version="\\
29027 GNU Classpath config.status 0.94-pre
29028 configured by $0, generated by GNU Autoconf 2.59,
29029 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29030
29031 Copyright (C) 2003 Free Software Foundation, Inc.
29032 This config.status script is free software; the Free Software Foundation
29033 gives unlimited permission to copy, distribute and modify it."
29034 srcdir=$srcdir
29035 INSTALL="$INSTALL"
29036 _ACEOF
29037
29038 cat >>$CONFIG_STATUS <<\_ACEOF
29039 # If no file are specified by the user, then we need to provide default
29040 # value. By we need to know if files were specified by the user.
29041 ac_need_defaults=:
29042 while test $# != 0
29043 do
29044 case $1 in
29045 --*=*)
29046 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29047 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29048 ac_shift=:
29049 ;;
29050 -*)
29051 ac_option=$1
29052 ac_optarg=$2
29053 ac_shift=shift
29054 ;;
29055 *) # This is not an option, so the user has probably given explicit
29056 # arguments.
29057 ac_option=$1
29058 ac_need_defaults=false;;
29059 esac
29060
29061 case $ac_option in
29062 # Handling of the options.
29063 _ACEOF
29064 cat >>$CONFIG_STATUS <<\_ACEOF
29065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29066 ac_cs_recheck=: ;;
29067 --version | --vers* | -V )
29068 echo "$ac_cs_version"; exit 0 ;;
29069 --he | --h)
29070 # Conflict between --help and --header
29071 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29072 Try \`$0 --help' for more information." >&5
29073 echo "$as_me: error: ambiguous option: $1
29074 Try \`$0 --help' for more information." >&2;}
29075 { (exit 1); exit 1; }; };;
29076 --help | --hel | -h )
29077 echo "$ac_cs_usage"; exit 0 ;;
29078 --debug | --d* | -d )
29079 debug=: ;;
29080 --file | --fil | --fi | --f )
29081 $ac_shift
29082 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29083 ac_need_defaults=false;;
29084 --header | --heade | --head | --hea )
29085 $ac_shift
29086 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29087 ac_need_defaults=false;;
29088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29089 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29090 ac_cs_silent=: ;;
29091
29092 # This is an error.
29093 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29094 Try \`$0 --help' for more information." >&5
29095 echo "$as_me: error: unrecognized option: $1
29096 Try \`$0 --help' for more information." >&2;}
29097 { (exit 1); exit 1; }; } ;;
29098
29099 *) ac_config_targets="$ac_config_targets $1" ;;
29100
29101 esac
29102 shift
29103 done
29104
29105 ac_configure_extra_args=
29106
29107 if $ac_cs_silent; then
29108 exec 6>/dev/null
29109 ac_configure_extra_args="$ac_configure_extra_args --silent"
29110 fi
29111
29112 _ACEOF
29113 cat >>$CONFIG_STATUS <<_ACEOF
29114 if \$ac_cs_recheck; then
29115 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29116 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29117 fi
29118
29119 _ACEOF
29120
29121 cat >>$CONFIG_STATUS <<_ACEOF
29122 #
29123 # INIT-COMMANDS section.
29124 #
29125
29126
29127 srcdir="$srcdir"
29128 host="$host"
29129 target="$target"
29130 with_multisubdir="$with_multisubdir"
29131 with_multisrctop="$with_multisrctop"
29132 with_target_subdir="$with_target_subdir"
29133 ac_configure_args="${multilib_arg} ${ac_configure_args}"
29134 multi_basedir="$multi_basedir"
29135 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
29136 CC="$CC"
29137 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29138
29139
29140 # The HP-UX ksh and POSIX shell print the target directory to stdout
29141 # if CDPATH is set.
29142 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29143
29144 sed_quote_subst='$sed_quote_subst'
29145 double_quote_subst='$double_quote_subst'
29146 delay_variable_subst='$delay_variable_subst'
29147 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29148 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29149 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29150 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29151 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29152 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29153 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29154 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29155 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29156 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29157 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29158 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29159 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29160 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29161 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29162 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29163 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29164 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29165 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29166 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29167 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29168 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29169 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29170 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29171 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29172 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29173 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29174 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29175 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29176 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29177 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29178 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29179 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29180 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29181 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29182 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29183 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29184 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29185 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29186 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29187 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29188 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29189 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29190 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
29191 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29192 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29193 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29194 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29195 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29196 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29197 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29198 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29199 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29200 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29201 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29202 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29203 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29204 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29205 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29206 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29207 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29208 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29209 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29210 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29211 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29212 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29213 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29214 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29215 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29216 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29217 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29218 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29219 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29220 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29221 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29222 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29223 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29224 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29225 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29226 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29227 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29228 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29229 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29230 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29231 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29232 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29233 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29234 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29235 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29236 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29237 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29238 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29239 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29240 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29241 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29242 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29243 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29244 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29245 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29246 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29247 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29248 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29249 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29250 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29251 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29252 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29253 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29254 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29255 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29256 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29257 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29258 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29259 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29260 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29261 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29262 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29263 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29264 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29265 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29266 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29267 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29268 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29269 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29270 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29271 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29272 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29273 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29274 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29275 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29276 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29277 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29278 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29279 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29280 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29281 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29282 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29283 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29284 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29285 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29286 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29287 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29288 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29289 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29290 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29291 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29292 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29293 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29294 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29295 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29296 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29297 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29298 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29299 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29300 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29301 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29302 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29303 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29304 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29305 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29306 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29307 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29308 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29309
29310 LTCC='$LTCC'
29311 LTCFLAGS='$LTCFLAGS'
29312 compiler='$compiler_DEFAULT'
29313
29314 # Quote evaled strings.
29315 for var in SED \
29316 GREP \
29317 EGREP \
29318 FGREP \
29319 LD \
29320 NM \
29321 LN_S \
29322 lt_SP2NL \
29323 lt_NL2SP \
29324 reload_flag \
29325 deplibs_check_method \
29326 file_magic_cmd \
29327 AR \
29328 AR_FLAGS \
29329 STRIP \
29330 RANLIB \
29331 CC \
29332 CFLAGS \
29333 compiler \
29334 lt_cv_sys_global_symbol_pipe \
29335 lt_cv_sys_global_symbol_to_cdecl \
29336 lt_cv_sys_global_symbol_to_c_name_address \
29337 SHELL \
29338 ECHO \
29339 lt_prog_compiler_no_builtin_flag \
29340 lt_prog_compiler_wl \
29341 lt_prog_compiler_pic \
29342 lt_prog_compiler_static \
29343 lt_cv_prog_compiler_c_o \
29344 need_locks \
29345 shrext_cmds \
29346 export_dynamic_flag_spec \
29347 whole_archive_flag_spec \
29348 compiler_needs_object \
29349 with_gnu_ld \
29350 allow_undefined_flag \
29351 no_undefined_flag \
29352 hardcode_libdir_flag_spec \
29353 hardcode_libdir_flag_spec_ld \
29354 hardcode_libdir_separator \
29355 fix_srcfile_path \
29356 exclude_expsyms \
29357 include_expsyms \
29358 file_list_spec \
29359 variables_saved_for_relink \
29360 libname_spec \
29361 library_names_spec \
29362 soname_spec \
29363 finish_eval \
29364 old_striplib \
29365 striplib \
29366 predep_objects \
29367 postdep_objects \
29368 predeps \
29369 postdeps \
29370 compiler_lib_search_path \
29371 LD_CXX \
29372 compiler_CXX \
29373 lt_prog_compiler_no_builtin_flag_CXX \
29374 lt_prog_compiler_wl_CXX \
29375 lt_prog_compiler_pic_CXX \
29376 lt_prog_compiler_static_CXX \
29377 lt_cv_prog_compiler_c_o_CXX \
29378 export_dynamic_flag_spec_CXX \
29379 whole_archive_flag_spec_CXX \
29380 compiler_needs_object_CXX \
29381 with_gnu_ld_CXX \
29382 allow_undefined_flag_CXX \
29383 no_undefined_flag_CXX \
29384 hardcode_libdir_flag_spec_CXX \
29385 hardcode_libdir_flag_spec_ld_CXX \
29386 hardcode_libdir_separator_CXX \
29387 fix_srcfile_path_CXX \
29388 exclude_expsyms_CXX \
29389 include_expsyms_CXX \
29390 file_list_spec_CXX \
29391 predep_objects_CXX \
29392 postdep_objects_CXX \
29393 predeps_CXX \
29394 postdeps_CXX \
29395 compiler_lib_search_path_CXX; do
29396 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29397 *[\\\\\\\`\\"\\\$]*)
29398 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29399 ;;
29400 *)
29401 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29402 ;;
29403 esac
29404 done
29405
29406 # Double-quote double-evaled strings.
29407 for var in reload_cmds \
29408 old_postinstall_cmds \
29409 old_postuninstall_cmds \
29410 old_archive_cmds \
29411 extract_expsyms_cmds \
29412 old_archive_from_new_cmds \
29413 old_archive_from_expsyms_cmds \
29414 archive_cmds \
29415 archive_expsym_cmds \
29416 module_cmds \
29417 module_expsym_cmds \
29418 export_symbols_cmds \
29419 prelink_cmds \
29420 postinstall_cmds \
29421 postuninstall_cmds \
29422 finish_cmds \
29423 sys_lib_search_path_spec \
29424 sys_lib_dlsearch_path_spec \
29425 old_archive_cmds_CXX \
29426 old_archive_from_new_cmds_CXX \
29427 old_archive_from_expsyms_cmds_CXX \
29428 archive_cmds_CXX \
29429 archive_expsym_cmds_CXX \
29430 module_cmds_CXX \
29431 module_expsym_cmds_CXX \
29432 export_symbols_cmds_CXX \
29433 prelink_cmds_CXX; do
29434 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29435 *[\\\\\\\`\\"\\\$]*)
29436 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29437 ;;
29438 *)
29439 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29440 ;;
29441 esac
29442 done
29443
29444 # Fix-up fallback echo if it was mangled by the above quoting rules.
29445 case \$lt_ECHO in
29446 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29447 ;;
29448 esac
29449
29450 ac_aux_dir='$ac_aux_dir'
29451 xsi_shell='$xsi_shell'
29452 lt_shell_append='$lt_shell_append'
29453
29454 # See if we are running on zsh, and set the options which allow our
29455 # commands through without removal of \ escapes INIT.
29456 if test -n "\${ZSH_VERSION+set}" ; then
29457 setopt NO_GLOB_SUBST
29458 fi
29459
29460
29461 PACKAGE='$PACKAGE'
29462 VERSION='$VERSION'
29463 TIMESTAMP='$TIMESTAMP'
29464 RM='$RM'
29465 ofile='$ofile'
29466
29467
29468
29469
29470
29471 # variables for create stdint.h replacement
29472 PACKAGE="$PACKAGE"
29473 VERSION="$VERSION"
29474 ac_stdint_h="$ac_stdint_h"
29475 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
29476 ac_cv_stdint_message="$ac_cv_stdint_message"
29477 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
29478 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
29479 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
29480 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
29481 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
29482 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
29483 ac_cv_char_data_model="$ac_cv_char_data_model"
29484 ac_cv_long_data_model="$ac_cv_long_data_model"
29485 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
29486 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
29487 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
29488
29489
29490 _ACEOF
29491
29492
29493
29494 cat >>$CONFIG_STATUS <<\_ACEOF
29495 for ac_config_target in $ac_config_targets
29496 do
29497 case "$ac_config_target" in
29498 # Handling of arguments.
29499 "lib/mkcollections.pl" ) CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
29500 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29501 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29502 "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
29503 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
29504 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
29505 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
29506 "external/relaxngDatatype/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
29507 "external/jsr166/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
29508 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
29509 "gnu/java/security/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
29510 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29511 "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
29512 "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
29513 "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
29514 "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
29515 "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
29516 "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
29517 "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
29518 "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
29519 "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
29520 "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
29521 "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
29522 "native/jni/gconf-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
29523 "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
29524 "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
29525 "native/jni/midi-alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
29526 "native/jni/midi-dssi/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
29527 "native/jni/native-lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
29528 "native/plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
29529 "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
29530 "resource/META-INF/services/java.util.prefs.PreferencesFactory" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
29531 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
29532 "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
29533 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29534 "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
29535 "lib/copy-vmresources.sh" ) CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
29536 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29537 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
29538 "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
29539 "examples/Makefile.java2d" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
29540 "tools/gappletviewer" ) CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
29541 "tools/gjarsigner" ) CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
29542 "tools/gkeytool" ) CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
29543 "tools/gjar" ) CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
29544 "tools/gnative2ascii" ) CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
29545 "tools/gserialver" ) CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
29546 "tools/grmiregistry" ) CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
29547 "tools/gtnameserv" ) CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
29548 "tools/gorbd" ) CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
29549 "tools/grmid" ) CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
29550 "tools/grmic" ) CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
29551 "tools/gjavah" ) CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
29552 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
29553 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29554 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29555 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29556 "mkcollections.pl" ) CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
29557 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
29558 "gappletviewer" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
29559 "gjarsigner" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
29560 "gkeytool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
29561 "gjar" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
29562 "gnative2ascii" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
29563 "gserialver" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
29564 "grmiregistry" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
29565 "gtnameserv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
29566 "gorbd" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
29567 "grmid" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
29568 "grmic" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
29569 "gjavah" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
29570 "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
29571 "copy-vmresources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
29572 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29573 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29574 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29575 { (exit 1); exit 1; }; };;
29576 esac
29577 done
29578
29579 # If the user did not use the arguments to specify the items to instantiate,
29580 # then the envvar interface is used. Set only those that are not.
29581 # We use the long form for the default assignment because of an extremely
29582 # bizarre bug on SunOS 4.1.3.
29583 if $ac_need_defaults; then
29584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29586 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29587 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29588 fi
29589
29590 # Have a temporary directory for convenience. Make it in the build tree
29591 # simply because there is no reason to put it here, and in addition,
29592 # creating and moving files from /tmp can sometimes cause problems.
29593 # Create a temporary directory, and hook for its removal unless debugging.
29594 $debug ||
29595 {
29596 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29597 trap '{ (exit 1); exit 1; }' 1 2 13 15
29598 }
29599
29600 # Create a (secure) tmp directory for tmp files.
29601
29602 {
29603 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29604 test -n "$tmp" && test -d "$tmp"
29605 } ||
29606 {
29607 tmp=./confstat$$-$RANDOM
29608 (umask 077 && mkdir $tmp)
29609 } ||
29610 {
29611 echo "$me: cannot create a temporary directory in ." >&2
29612 { (exit 1); exit 1; }
29613 }
29614
29615 _ACEOF
29616
29617 cat >>$CONFIG_STATUS <<_ACEOF
29618
29619 #
29620 # CONFIG_FILES section.
29621 #
29622
29623 # No need to generate the scripts if there are no CONFIG_FILES.
29624 # This happens for instance when ./config.status config.h
29625 if test -n "\$CONFIG_FILES"; then
29626 # Protect against being on the right side of a sed subst in config.status.
29627 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29628 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29629 s,@SHELL@,$SHELL,;t t
29630 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29631 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29632 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29633 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29634 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29635 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29636 s,@exec_prefix@,$exec_prefix,;t t
29637 s,@prefix@,$prefix,;t t
29638 s,@program_transform_name@,$program_transform_name,;t t
29639 s,@bindir@,$bindir,;t t
29640 s,@sbindir@,$sbindir,;t t
29641 s,@libexecdir@,$libexecdir,;t t
29642 s,@datadir@,$datadir,;t t
29643 s,@sysconfdir@,$sysconfdir,;t t
29644 s,@sharedstatedir@,$sharedstatedir,;t t
29645 s,@localstatedir@,$localstatedir,;t t
29646 s,@libdir@,$libdir,;t t
29647 s,@includedir@,$includedir,;t t
29648 s,@oldincludedir@,$oldincludedir,;t t
29649 s,@infodir@,$infodir,;t t
29650 s,@mandir@,$mandir,;t t
29651 s,@build_alias@,$build_alias,;t t
29652 s,@host_alias@,$host_alias,;t t
29653 s,@target_alias@,$target_alias,;t t
29654 s,@DEFS@,$DEFS,;t t
29655 s,@ECHO_C@,$ECHO_C,;t t
29656 s,@ECHO_N@,$ECHO_N,;t t
29657 s,@ECHO_T@,$ECHO_T,;t t
29658 s,@LIBS@,$LIBS,;t t
29659 s,@build@,$build,;t t
29660 s,@build_cpu@,$build_cpu,;t t
29661 s,@build_vendor@,$build_vendor,;t t
29662 s,@build_os@,$build_os,;t t
29663 s,@host@,$host,;t t
29664 s,@host_cpu@,$host_cpu,;t t
29665 s,@host_vendor@,$host_vendor,;t t
29666 s,@host_os@,$host_os,;t t
29667 s,@target@,$target,;t t
29668 s,@target_cpu@,$target_cpu,;t t
29669 s,@target_vendor@,$target_vendor,;t t
29670 s,@target_os@,$target_os,;t t
29671 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29672 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29673 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
29674 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
29675 s,@multi_basedir@,$multi_basedir,;t t
29676 s,@LIBVERSION@,$LIBVERSION,;t t
29677 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
29678 s,@CLASSPATH_CONVENIENCE@,$CLASSPATH_CONVENIENCE,;t t
29679 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29680 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29681 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29682 s,@CYGPATH_W@,$CYGPATH_W,;t t
29683 s,@PACKAGE@,$PACKAGE,;t t
29684 s,@VERSION@,$VERSION,;t t
29685 s,@ACLOCAL@,$ACLOCAL,;t t
29686 s,@AUTOCONF@,$AUTOCONF,;t t
29687 s,@AUTOMAKE@,$AUTOMAKE,;t t
29688 s,@AUTOHEADER@,$AUTOHEADER,;t t
29689 s,@MAKEINFO@,$MAKEINFO,;t t
29690 s,@install_sh@,$install_sh,;t t
29691 s,@STRIP@,$STRIP,;t t
29692 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29693 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29694 s,@mkdir_p@,$mkdir_p,;t t
29695 s,@AWK@,$AWK,;t t
29696 s,@SET_MAKE@,$SET_MAKE,;t t
29697 s,@am__leading_dot@,$am__leading_dot,;t t
29698 s,@AMTAR@,$AMTAR,;t t
29699 s,@am__tar@,$am__tar,;t t
29700 s,@am__untar@,$am__untar,;t t
29701 s,@CREATE_COLLECTIONS_TRUE@,$CREATE_COLLECTIONS_TRUE,;t t
29702 s,@CREATE_COLLECTIONS_FALSE@,$CREATE_COLLECTIONS_FALSE,;t t
29703 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
29704 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
29705 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
29706 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
29707 s,@CREATE_GCONF_PEER_LIBRARIES_TRUE@,$CREATE_GCONF_PEER_LIBRARIES_TRUE,;t t
29708 s,@CREATE_GCONF_PEER_LIBRARIES_FALSE@,$CREATE_GCONF_PEER_LIBRARIES_FALSE,;t t
29709 s,@default_toolkit@,$default_toolkit,;t t
29710 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
29711 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
29712 s,@CC@,$CC,;t t
29713 s,@CFLAGS@,$CFLAGS,;t t
29714 s,@LDFLAGS@,$LDFLAGS,;t t
29715 s,@CPPFLAGS@,$CPPFLAGS,;t t
29716 s,@ac_ct_CC@,$ac_ct_CC,;t t
29717 s,@EXEEXT@,$EXEEXT,;t t
29718 s,@OBJEXT@,$OBJEXT,;t t
29719 s,@DEPDIR@,$DEPDIR,;t t
29720 s,@am__include@,$am__include,;t t
29721 s,@am__quote@,$am__quote,;t t
29722 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29723 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29724 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29725 s,@CCDEPMODE@,$CCDEPMODE,;t t
29726 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29727 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29728 s,@CPP@,$CPP,;t t
29729 s,@EGREP@,$EGREP,;t t
29730 s,@CREATE_ALSA_LIBRARIES_TRUE@,$CREATE_ALSA_LIBRARIES_TRUE,;t t
29731 s,@CREATE_ALSA_LIBRARIES_FALSE@,$CREATE_ALSA_LIBRARIES_FALSE,;t t
29732 s,@CREATE_DSSI_LIBRARIES_TRUE@,$CREATE_DSSI_LIBRARIES_TRUE,;t t
29733 s,@CREATE_DSSI_LIBRARIES_FALSE@,$CREATE_DSSI_LIBRARIES_FALSE,;t t
29734 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
29735 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
29736 s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
29737 s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
29738 s,@CREATE_PLUGIN_TRUE@,$CREATE_PLUGIN_TRUE,;t t
29739 s,@CREATE_PLUGIN_FALSE@,$CREATE_PLUGIN_FALSE,;t t
29740 s,@toolexeclibdir@,$toolexeclibdir,;t t
29741 s,@nativeexeclibdir@,$nativeexeclibdir,;t t
29742 s,@glibjdir@,$glibjdir,;t t
29743 s,@VM_BINARY@,$VM_BINARY,;t t
29744 s,@FOUND_CACAO_TRUE@,$FOUND_CACAO_TRUE,;t t
29745 s,@FOUND_CACAO_FALSE@,$FOUND_CACAO_FALSE,;t t
29746 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
29747 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
29748 s,@CREATE_WRAPPERS_TRUE@,$CREATE_WRAPPERS_TRUE,;t t
29749 s,@CREATE_WRAPPERS_FALSE@,$CREATE_WRAPPERS_FALSE,;t t
29750 s,@LN_S@,$LN_S,;t t
29751 s,@LIBTOOL@,$LIBTOOL,;t t
29752 s,@SED@,$SED,;t t
29753 s,@FGREP@,$FGREP,;t t
29754 s,@GREP@,$GREP,;t t
29755 s,@LD@,$LD,;t t
29756 s,@DUMPBIN@,$DUMPBIN,;t t
29757 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29758 s,@NM@,$NM,;t t
29759 s,@AR@,$AR,;t t
29760 s,@ac_ct_AR@,$ac_ct_AR,;t t
29761 s,@RANLIB@,$RANLIB,;t t
29762 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29763 s,@lt_ECHO@,$lt_ECHO,;t t
29764 s,@CXX@,$CXX,;t t
29765 s,@CXXFLAGS@,$CXXFLAGS,;t t
29766 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29767 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29768 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29769 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29770 s,@CXXCPP@,$CXXCPP,;t t
29771 s,@PERL@,$PERL,;t t
29772 s,@COLLECTIONS_PREFIX@,$COLLECTIONS_PREFIX,;t t
29773 s,@LIBMAGIC@,$LIBMAGIC,;t t
29774 s,@LIBICONV@,$LIBICONV,;t t
29775 s,@LTLIBICONV@,$LTLIBICONV,;t t
29776 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
29777 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
29778 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
29779 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29780 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
29781 s,@XML_LIBS@,$XML_LIBS,;t t
29782 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
29783 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
29784 s,@X_CFLAGS@,$X_CFLAGS,;t t
29785 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29786 s,@X_LIBS@,$X_LIBS,;t t
29787 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29788 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29789 s,@GTK_LIBS@,$GTK_LIBS,;t t
29790 s,@FREETYPE2_CFLAGS@,$FREETYPE2_CFLAGS,;t t
29791 s,@FREETYPE2_LIBS@,$FREETYPE2_LIBS,;t t
29792 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
29793 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
29794 s,@XTEST_LIBS@,$XTEST_LIBS,;t t
29795 s,@GCONF_CFLAGS@,$GCONF_CFLAGS,;t t
29796 s,@GCONF_LIBS@,$GCONF_LIBS,;t t
29797 s,@GDK_CFLAGS@,$GDK_CFLAGS,;t t
29798 s,@GDK_LIBS@,$GDK_LIBS,;t t
29799 s,@QT_CFLAGS@,$QT_CFLAGS,;t t
29800 s,@QT_LIBS@,$QT_LIBS,;t t
29801 s,@MOC@,$MOC,;t t
29802 s,@MOZILLA_CFLAGS@,$MOZILLA_CFLAGS,;t t
29803 s,@MOZILLA_LIBS@,$MOZILLA_LIBS,;t t
29804 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29805 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29806 s,@PLUGIN_DIR@,$PLUGIN_DIR,;t t
29807 s,@USER_JAVAH@,$USER_JAVAH,;t t
29808 s,@USER_SPECIFIED_JAVAH_TRUE@,$USER_SPECIFIED_JAVAH_TRUE,;t t
29809 s,@USER_SPECIFIED_JAVAH_FALSE@,$USER_SPECIFIED_JAVAH_FALSE,;t t
29810 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
29811 s,@GCJ@,$GCJ,;t t
29812 s,@JIKES@,$JIKES,;t t
29813 s,@JIKESENCODING@,$JIKESENCODING,;t t
29814 s,@JIKESWARNINGS@,$JIKESWARNINGS,;t t
29815 s,@KJC@,$KJC,;t t
29816 s,@GCJX@,$GCJX,;t t
29817 s,@ECJ@,$ECJ,;t t
29818 s,@FOUND_GCJ_TRUE@,$FOUND_GCJ_TRUE,;t t
29819 s,@FOUND_GCJ_FALSE@,$FOUND_GCJ_FALSE,;t t
29820 s,@FOUND_JIKES_TRUE@,$FOUND_JIKES_TRUE,;t t
29821 s,@FOUND_JIKES_FALSE@,$FOUND_JIKES_FALSE,;t t
29822 s,@FOUND_ECJ_TRUE@,$FOUND_ECJ_TRUE,;t t
29823 s,@FOUND_ECJ_FALSE@,$FOUND_ECJ_FALSE,;t t
29824 s,@FOUND_KJC_TRUE@,$FOUND_KJC_TRUE,;t t
29825 s,@FOUND_KJC_FALSE@,$FOUND_KJC_FALSE,;t t
29826 s,@FOUND_GCJX_TRUE@,$FOUND_GCJX_TRUE,;t t
29827 s,@FOUND_GCJX_FALSE@,$FOUND_GCJX_FALSE,;t t
29828 s,@USER_CLASSLIB@,$USER_CLASSLIB,;t t
29829 s,@USER_SPECIFIED_CLASSLIB_TRUE@,$USER_SPECIFIED_CLASSLIB_TRUE,;t t
29830 s,@USER_SPECIFIED_CLASSLIB_FALSE@,$USER_SPECIFIED_CLASSLIB_FALSE,;t t
29831 s,@vm_classes@,$vm_classes,;t t
29832 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29833 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29834 s,@MAINT@,$MAINT,;t t
29835 s,@LIBDEBUG@,$LIBDEBUG,;t t
29836 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
29837 s,@ECJ_JAR@,$ECJ_JAR,;t t
29838 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
29839 s,@REMOVE@,$REMOVE,;t t
29840 s,@MKDIR@,$MKDIR,;t t
29841 s,@CP@,$CP,;t t
29842 s,@DATE@,$DATE,;t t
29843 s,@FIND@,$FIND,;t t
29844 s,@ZIP@,$ZIP,;t t
29845 s,@FASTJAR@,$FASTJAR,;t t
29846 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
29847 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
29848 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
29849 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
29850 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
29851 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
29852 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
29853 s,@GJDOC@,$GJDOC,;t t
29854 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
29855 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
29856 s,@JAY@,$JAY,;t t
29857 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
29858 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
29859 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
29860 s,@USE_PREBUILT_GLIBJ_ZIP_TRUE@,$USE_PREBUILT_GLIBJ_ZIP_TRUE,;t t
29861 s,@USE_PREBUILT_GLIBJ_ZIP_FALSE@,$USE_PREBUILT_GLIBJ_ZIP_FALSE,;t t
29862 s,@PATH_TO_GLIBJ_ZIP@,$PATH_TO_GLIBJ_ZIP,;t t
29863 s,@USE_ESCHER_TRUE@,$USE_ESCHER_TRUE,;t t
29864 s,@USE_ESCHER_FALSE@,$USE_ESCHER_FALSE,;t t
29865 s,@PATH_TO_ESCHER@,$PATH_TO_ESCHER,;t t
29866 s,@ENABLE_LOCAL_SOCKETS_TRUE@,$ENABLE_LOCAL_SOCKETS_TRUE,;t t
29867 s,@ENABLE_LOCAL_SOCKETS_FALSE@,$ENABLE_LOCAL_SOCKETS_FALSE,;t t
29868 s,@DEFAULT_PREFS_PEER@,$DEFAULT_PREFS_PEER,;t t
29869 s,@LIBOBJS@,$LIBOBJS,;t t
29870 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29871 CEOF
29872
29873 _ACEOF
29874
29875 cat >>$CONFIG_STATUS <<\_ACEOF
29876 # Split the substitutions into bite-sized pieces for seds with
29877 # small command number limits, like on Digital OSF/1 and HP-UX.
29878 ac_max_sed_lines=48
29879 ac_sed_frag=1 # Number of current file.
29880 ac_beg=1 # First line for current file.
29881 ac_end=$ac_max_sed_lines # Line after last line for current file.
29882 ac_more_lines=:
29883 ac_sed_cmds=
29884 while $ac_more_lines; do
29885 if test $ac_beg -gt 1; then
29886 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29887 else
29888 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29889 fi
29890 if test ! -s $tmp/subs.frag; then
29891 ac_more_lines=false
29892 else
29893 # The purpose of the label and of the branching condition is to
29894 # speed up the sed processing (if there are no `@' at all, there
29895 # is no need to browse any of the substitutions).
29896 # These are the two extra sed commands mentioned above.
29897 (echo ':t
29898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29899 if test -z "$ac_sed_cmds"; then
29900 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29901 else
29902 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29903 fi
29904 ac_sed_frag=`expr $ac_sed_frag + 1`
29905 ac_beg=$ac_end
29906 ac_end=`expr $ac_end + $ac_max_sed_lines`
29907 fi
29908 done
29909 if test -z "$ac_sed_cmds"; then
29910 ac_sed_cmds=cat
29911 fi
29912 fi # test -n "$CONFIG_FILES"
29913
29914 _ACEOF
29915 cat >>$CONFIG_STATUS <<\_ACEOF
29916 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29918 case $ac_file in
29919 - | *:- | *:-:* ) # input from stdin
29920 cat >$tmp/stdin
29921 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29923 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29925 * ) ac_file_in=$ac_file.in ;;
29926 esac
29927
29928 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29929 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29930 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29931 X"$ac_file" : 'X\(//\)[^/]' \| \
29932 X"$ac_file" : 'X\(//\)$' \| \
29933 X"$ac_file" : 'X\(/\)' \| \
29934 . : '\(.\)' 2>/dev/null ||
29935 echo X"$ac_file" |
29936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29938 /^X\(\/\/\)$/{ s//\1/; q; }
29939 /^X\(\/\).*/{ s//\1/; q; }
29940 s/.*/./; q'`
29941 { if $as_mkdir_p; then
29942 mkdir -p "$ac_dir"
29943 else
29944 as_dir="$ac_dir"
29945 as_dirs=
29946 while test ! -d "$as_dir"; do
29947 as_dirs="$as_dir $as_dirs"
29948 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29950 X"$as_dir" : 'X\(//\)[^/]' \| \
29951 X"$as_dir" : 'X\(//\)$' \| \
29952 X"$as_dir" : 'X\(/\)' \| \
29953 . : '\(.\)' 2>/dev/null ||
29954 echo X"$as_dir" |
29955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29957 /^X\(\/\/\)$/{ s//\1/; q; }
29958 /^X\(\/\).*/{ s//\1/; q; }
29959 s/.*/./; q'`
29960 done
29961 test ! -n "$as_dirs" || mkdir $as_dirs
29962 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29963 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29964 { (exit 1); exit 1; }; }; }
29965
29966 ac_builddir=.
29967
29968 if test "$ac_dir" != .; then
29969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29970 # A "../" for each directory in $ac_dir_suffix.
29971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29972 else
29973 ac_dir_suffix= ac_top_builddir=
29974 fi
29975
29976 case $srcdir in
29977 .) # No --srcdir option. We are building in place.
29978 ac_srcdir=.
29979 if test -z "$ac_top_builddir"; then
29980 ac_top_srcdir=.
29981 else
29982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29983 fi ;;
29984 [\\/]* | ?:[\\/]* ) # Absolute path.
29985 ac_srcdir=$srcdir$ac_dir_suffix;
29986 ac_top_srcdir=$srcdir ;;
29987 *) # Relative path.
29988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29990 esac
29991
29992 # Do not use `cd foo && pwd` to compute absolute paths, because
29993 # the directories may not exist.
29994 case `pwd` in
29995 .) ac_abs_builddir="$ac_dir";;
29996 *)
29997 case "$ac_dir" in
29998 .) ac_abs_builddir=`pwd`;;
29999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30001 esac;;
30002 esac
30003 case $ac_abs_builddir in
30004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30005 *)
30006 case ${ac_top_builddir}. in
30007 .) ac_abs_top_builddir=$ac_abs_builddir;;
30008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30010 esac;;
30011 esac
30012 case $ac_abs_builddir in
30013 .) ac_abs_srcdir=$ac_srcdir;;
30014 *)
30015 case $ac_srcdir in
30016 .) ac_abs_srcdir=$ac_abs_builddir;;
30017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30019 esac;;
30020 esac
30021 case $ac_abs_builddir in
30022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30023 *)
30024 case $ac_top_srcdir in
30025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30028 esac;;
30029 esac
30030
30031
30032 case $INSTALL in
30033 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30034 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30035 esac
30036
30037 if test x"$ac_file" != x-; then
30038 { echo "$as_me:$LINENO: creating $ac_file" >&5
30039 echo "$as_me: creating $ac_file" >&6;}
30040 rm -f "$ac_file"
30041 fi
30042 # Let's still pretend it is `configure' which instantiates (i.e., don't
30043 # use $as_me), people would be surprised to read:
30044 # /* config.h. Generated by config.status. */
30045 if test x"$ac_file" = x-; then
30046 configure_input=
30047 else
30048 configure_input="$ac_file. "
30049 fi
30050 configure_input=$configure_input"Generated from `echo $ac_file_in |
30051 sed 's,.*/,,'` by configure."
30052
30053 # First look for the input files in the build tree, otherwise in the
30054 # src tree.
30055 ac_file_inputs=`IFS=:
30056 for f in $ac_file_in; do
30057 case $f in
30058 -) echo $tmp/stdin ;;
30059 [\\/$]*)
30060 # Absolute (can't be DOS-style, as IFS=:)
30061 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30062 echo "$as_me: error: cannot find input file: $f" >&2;}
30063 { (exit 1); exit 1; }; }
30064 echo "$f";;
30065 *) # Relative
30066 if test -f "$f"; then
30067 # Build tree
30068 echo "$f"
30069 elif test -f "$srcdir/$f"; then
30070 # Source tree
30071 echo "$srcdir/$f"
30072 else
30073 # /dev/null tree
30074 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30075 echo "$as_me: error: cannot find input file: $f" >&2;}
30076 { (exit 1); exit 1; }; }
30077 fi;;
30078 esac
30079 done` || { (exit 1); exit 1; }
30080 _ACEOF
30081 cat >>$CONFIG_STATUS <<_ACEOF
30082 sed "$ac_vpsub
30083 $extrasub
30084 _ACEOF
30085 cat >>$CONFIG_STATUS <<\_ACEOF
30086 :t
30087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30088 s,@configure_input@,$configure_input,;t t
30089 s,@srcdir@,$ac_srcdir,;t t
30090 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30091 s,@top_srcdir@,$ac_top_srcdir,;t t
30092 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30093 s,@builddir@,$ac_builddir,;t t
30094 s,@abs_builddir@,$ac_abs_builddir,;t t
30095 s,@top_builddir@,$ac_top_builddir,;t t
30096 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30097 s,@INSTALL@,$ac_INSTALL,;t t
30098 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30099 rm -f $tmp/stdin
30100 if test x"$ac_file" != x-; then
30101 mv $tmp/out $ac_file
30102 else
30103 cat $tmp/out
30104 rm -f $tmp/out
30105 fi
30106
30107 done
30108 _ACEOF
30109 cat >>$CONFIG_STATUS <<\_ACEOF
30110
30111 #
30112 # CONFIG_HEADER section.
30113 #
30114
30115 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30116 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30117 #
30118 # ac_d sets the value in "#define NAME VALUE" lines.
30119 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30120 ac_dB='[ ].*$,\1#\2'
30121 ac_dC=' '
30122 ac_dD=',;t'
30123 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30124 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30125 ac_uB='$,\1#\2define\3'
30126 ac_uC=' '
30127 ac_uD=',;t'
30128
30129 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30131 case $ac_file in
30132 - | *:- | *:-:* ) # input from stdin
30133 cat >$tmp/stdin
30134 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30135 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30136 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30138 * ) ac_file_in=$ac_file.in ;;
30139 esac
30140
30141 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30142 echo "$as_me: creating $ac_file" >&6;}
30143
30144 # First look for the input files in the build tree, otherwise in the
30145 # src tree.
30146 ac_file_inputs=`IFS=:
30147 for f in $ac_file_in; do
30148 case $f in
30149 -) echo $tmp/stdin ;;
30150 [\\/$]*)
30151 # Absolute (can't be DOS-style, as IFS=:)
30152 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30153 echo "$as_me: error: cannot find input file: $f" >&2;}
30154 { (exit 1); exit 1; }; }
30155 # Do quote $f, to prevent DOS paths from being IFS'd.
30156 echo "$f";;
30157 *) # Relative
30158 if test -f "$f"; then
30159 # Build tree
30160 echo "$f"
30161 elif test -f "$srcdir/$f"; then
30162 # Source tree
30163 echo "$srcdir/$f"
30164 else
30165 # /dev/null tree
30166 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30167 echo "$as_me: error: cannot find input file: $f" >&2;}
30168 { (exit 1); exit 1; }; }
30169 fi;;
30170 esac
30171 done` || { (exit 1); exit 1; }
30172 # Remove the trailing spaces.
30173 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30174
30175 _ACEOF
30176
30177 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30178 # `conftest.undefs', that substitutes the proper values into
30179 # config.h.in to produce config.h. The first handles `#define'
30180 # templates, and the second `#undef' templates.
30181 # And first: Protect against being on the right side of a sed subst in
30182 # config.status. Protect against being in an unquoted here document
30183 # in config.status.
30184 rm -f conftest.defines conftest.undefs
30185 # Using a here document instead of a string reduces the quoting nightmare.
30186 # Putting comments in sed scripts is not portable.
30187 #
30188 # `end' is used to avoid that the second main sed command (meant for
30189 # 0-ary CPP macros) applies to n-ary macro definitions.
30190 # See the Autoconf documentation for `clear'.
30191 cat >confdef2sed.sed <<\_ACEOF
30192 s/[\\&,]/\\&/g
30193 s,[\\$`],\\&,g
30194 t clear
30195 : clear
30196 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30197 t end
30198 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30199 : end
30200 _ACEOF
30201 # If some macros were called several times there might be several times
30202 # the same #defines, which is useless. Nevertheless, we may not want to
30203 # sort them, since we want the *last* AC-DEFINE to be honored.
30204 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30205 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30206 rm -f confdef2sed.sed
30207
30208 # This sed command replaces #undef with comments. This is necessary, for
30209 # example, in the case of _POSIX_SOURCE, which is predefined and required
30210 # on some systems where configure will not decide to define it.
30211 cat >>conftest.undefs <<\_ACEOF
30212 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30213 _ACEOF
30214
30215 # Break up conftest.defines because some shells have a limit on the size
30216 # of here documents, and old seds have small limits too (100 cmds).
30217 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30218 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30219 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30220 echo ' :' >>$CONFIG_STATUS
30221 rm -f conftest.tail
30222 while grep . conftest.defines >/dev/null
30223 do
30224 # Write a limited-size here document to $tmp/defines.sed.
30225 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30226 # Speed up: don't consider the non `#define' lines.
30227 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30228 # Work around the forget-to-reset-the-flag bug.
30229 echo 't clr' >>$CONFIG_STATUS
30230 echo ': clr' >>$CONFIG_STATUS
30231 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30232 echo 'CEOF
30233 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30234 rm -f $tmp/in
30235 mv $tmp/out $tmp/in
30236 ' >>$CONFIG_STATUS
30237 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30238 rm -f conftest.defines
30239 mv conftest.tail conftest.defines
30240 done
30241 rm -f conftest.defines
30242 echo ' fi # grep' >>$CONFIG_STATUS
30243 echo >>$CONFIG_STATUS
30244
30245 # Break up conftest.undefs because some shells have a limit on the size
30246 # of here documents, and old seds have small limits too (100 cmds).
30247 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30248 rm -f conftest.tail
30249 while grep . conftest.undefs >/dev/null
30250 do
30251 # Write a limited-size here document to $tmp/undefs.sed.
30252 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30253 # Speed up: don't consider the non `#undef'
30254 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30255 # Work around the forget-to-reset-the-flag bug.
30256 echo 't clr' >>$CONFIG_STATUS
30257 echo ': clr' >>$CONFIG_STATUS
30258 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30259 echo 'CEOF
30260 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30261 rm -f $tmp/in
30262 mv $tmp/out $tmp/in
30263 ' >>$CONFIG_STATUS
30264 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30265 rm -f conftest.undefs
30266 mv conftest.tail conftest.undefs
30267 done
30268 rm -f conftest.undefs
30269
30270 cat >>$CONFIG_STATUS <<\_ACEOF
30271 # Let's still pretend it is `configure' which instantiates (i.e., don't
30272 # use $as_me), people would be surprised to read:
30273 # /* config.h. Generated by config.status. */
30274 if test x"$ac_file" = x-; then
30275 echo "/* Generated by configure. */" >$tmp/config.h
30276 else
30277 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30278 fi
30279 cat $tmp/in >>$tmp/config.h
30280 rm -f $tmp/in
30281 if test x"$ac_file" != x-; then
30282 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30283 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30284 echo "$as_me: $ac_file is unchanged" >&6;}
30285 else
30286 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30288 X"$ac_file" : 'X\(//\)[^/]' \| \
30289 X"$ac_file" : 'X\(//\)$' \| \
30290 X"$ac_file" : 'X\(/\)' \| \
30291 . : '\(.\)' 2>/dev/null ||
30292 echo X"$ac_file" |
30293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30295 /^X\(\/\/\)$/{ s//\1/; q; }
30296 /^X\(\/\).*/{ s//\1/; q; }
30297 s/.*/./; q'`
30298 { if $as_mkdir_p; then
30299 mkdir -p "$ac_dir"
30300 else
30301 as_dir="$ac_dir"
30302 as_dirs=
30303 while test ! -d "$as_dir"; do
30304 as_dirs="$as_dir $as_dirs"
30305 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30307 X"$as_dir" : 'X\(//\)[^/]' \| \
30308 X"$as_dir" : 'X\(//\)$' \| \
30309 X"$as_dir" : 'X\(/\)' \| \
30310 . : '\(.\)' 2>/dev/null ||
30311 echo X"$as_dir" |
30312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30314 /^X\(\/\/\)$/{ s//\1/; q; }
30315 /^X\(\/\).*/{ s//\1/; q; }
30316 s/.*/./; q'`
30317 done
30318 test ! -n "$as_dirs" || mkdir $as_dirs
30319 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30320 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30321 { (exit 1); exit 1; }; }; }
30322
30323 rm -f $ac_file
30324 mv $tmp/config.h $ac_file
30325 fi
30326 else
30327 cat $tmp/config.h
30328 rm -f $tmp/config.h
30329 fi
30330 # Compute $ac_file's index in $config_headers.
30331 _am_stamp_count=1
30332 for _am_header in $config_headers :; do
30333 case $_am_header in
30334 $ac_file | $ac_file:* )
30335 break ;;
30336 * )
30337 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30338 esac
30339 done
30340 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30341 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30342 X$ac_file : 'X\(//\)[^/]' \| \
30343 X$ac_file : 'X\(//\)$' \| \
30344 X$ac_file : 'X\(/\)' \| \
30345 . : '\(.\)' 2>/dev/null ||
30346 echo X$ac_file |
30347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30349 /^X\(\/\/\)$/{ s//\1/; q; }
30350 /^X\(\/\).*/{ s//\1/; q; }
30351 s/.*/./; q'`/stamp-h$_am_stamp_count
30352 done
30353 _ACEOF
30354 cat >>$CONFIG_STATUS <<\_ACEOF
30355
30356 #
30357 # CONFIG_LINKS section.
30358 #
30359
30360 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30361 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30362 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30363
30364 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30365 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30366
30367 if test ! -r $srcdir/$ac_source; then
30368 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30369 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30370 { (exit 1); exit 1; }; }
30371 fi
30372 rm -f $ac_dest
30373
30374 # Make relative symlinks.
30375 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30376 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30377 X"$ac_dest" : 'X\(//\)[^/]' \| \
30378 X"$ac_dest" : 'X\(//\)$' \| \
30379 X"$ac_dest" : 'X\(/\)' \| \
30380 . : '\(.\)' 2>/dev/null ||
30381 echo X"$ac_dest" |
30382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30384 /^X\(\/\/\)$/{ s//\1/; q; }
30385 /^X\(\/\).*/{ s//\1/; q; }
30386 s/.*/./; q'`
30387 { if $as_mkdir_p; then
30388 mkdir -p "$ac_dest_dir"
30389 else
30390 as_dir="$ac_dest_dir"
30391 as_dirs=
30392 while test ! -d "$as_dir"; do
30393 as_dirs="$as_dir $as_dirs"
30394 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30396 X"$as_dir" : 'X\(//\)[^/]' \| \
30397 X"$as_dir" : 'X\(//\)$' \| \
30398 X"$as_dir" : 'X\(/\)' \| \
30399 . : '\(.\)' 2>/dev/null ||
30400 echo X"$as_dir" |
30401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30403 /^X\(\/\/\)$/{ s//\1/; q; }
30404 /^X\(\/\).*/{ s//\1/; q; }
30405 s/.*/./; q'`
30406 done
30407 test ! -n "$as_dirs" || mkdir $as_dirs
30408 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30409 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30410 { (exit 1); exit 1; }; }; }
30411
30412 ac_builddir=.
30413
30414 if test "$ac_dest_dir" != .; then
30415 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30416 # A "../" for each directory in $ac_dir_suffix.
30417 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30418 else
30419 ac_dir_suffix= ac_top_builddir=
30420 fi
30421
30422 case $srcdir in
30423 .) # No --srcdir option. We are building in place.
30424 ac_srcdir=.
30425 if test -z "$ac_top_builddir"; then
30426 ac_top_srcdir=.
30427 else
30428 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30429 fi ;;
30430 [\\/]* | ?:[\\/]* ) # Absolute path.
30431 ac_srcdir=$srcdir$ac_dir_suffix;
30432 ac_top_srcdir=$srcdir ;;
30433 *) # Relative path.
30434 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30435 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30436 esac
30437
30438 # Do not use `cd foo && pwd` to compute absolute paths, because
30439 # the directories may not exist.
30440 case `pwd` in
30441 .) ac_abs_builddir="$ac_dest_dir";;
30442 *)
30443 case "$ac_dest_dir" in
30444 .) ac_abs_builddir=`pwd`;;
30445 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30446 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30447 esac;;
30448 esac
30449 case $ac_abs_builddir in
30450 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30451 *)
30452 case ${ac_top_builddir}. in
30453 .) ac_abs_top_builddir=$ac_abs_builddir;;
30454 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30455 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30456 esac;;
30457 esac
30458 case $ac_abs_builddir in
30459 .) ac_abs_srcdir=$ac_srcdir;;
30460 *)
30461 case $ac_srcdir in
30462 .) ac_abs_srcdir=$ac_abs_builddir;;
30463 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30464 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30465 esac;;
30466 esac
30467 case $ac_abs_builddir in
30468 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30469 *)
30470 case $ac_top_srcdir in
30471 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30472 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30473 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30474 esac;;
30475 esac
30476
30477
30478 case $srcdir in
30479 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30480 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30481 esac
30482
30483 # Try a symlink, then a hard link, then a copy.
30484 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30485 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30486 cp -p $srcdir/$ac_source $ac_dest ||
30487 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30488 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30489 { (exit 1); exit 1; }; }
30490 done
30491 _ACEOF
30492 cat >>$CONFIG_STATUS <<\_ACEOF
30493
30494 #
30495 # CONFIG_COMMANDS section.
30496 #
30497 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30498 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30499 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30500 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30501 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30502 X"$ac_dest" : 'X\(//\)[^/]' \| \
30503 X"$ac_dest" : 'X\(//\)$' \| \
30504 X"$ac_dest" : 'X\(/\)' \| \
30505 . : '\(.\)' 2>/dev/null ||
30506 echo X"$ac_dest" |
30507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30509 /^X\(\/\/\)$/{ s//\1/; q; }
30510 /^X\(\/\).*/{ s//\1/; q; }
30511 s/.*/./; q'`
30512 { if $as_mkdir_p; then
30513 mkdir -p "$ac_dir"
30514 else
30515 as_dir="$ac_dir"
30516 as_dirs=
30517 while test ! -d "$as_dir"; do
30518 as_dirs="$as_dir $as_dirs"
30519 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30521 X"$as_dir" : 'X\(//\)[^/]' \| \
30522 X"$as_dir" : 'X\(//\)$' \| \
30523 X"$as_dir" : 'X\(/\)' \| \
30524 . : '\(.\)' 2>/dev/null ||
30525 echo X"$as_dir" |
30526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30528 /^X\(\/\/\)$/{ s//\1/; q; }
30529 /^X\(\/\).*/{ s//\1/; q; }
30530 s/.*/./; q'`
30531 done
30532 test ! -n "$as_dirs" || mkdir $as_dirs
30533 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30534 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30535 { (exit 1); exit 1; }; }; }
30536
30537 ac_builddir=.
30538
30539 if test "$ac_dir" != .; then
30540 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30541 # A "../" for each directory in $ac_dir_suffix.
30542 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30543 else
30544 ac_dir_suffix= ac_top_builddir=
30545 fi
30546
30547 case $srcdir in
30548 .) # No --srcdir option. We are building in place.
30549 ac_srcdir=.
30550 if test -z "$ac_top_builddir"; then
30551 ac_top_srcdir=.
30552 else
30553 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30554 fi ;;
30555 [\\/]* | ?:[\\/]* ) # Absolute path.
30556 ac_srcdir=$srcdir$ac_dir_suffix;
30557 ac_top_srcdir=$srcdir ;;
30558 *) # Relative path.
30559 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30560 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30561 esac
30562
30563 # Do not use `cd foo && pwd` to compute absolute paths, because
30564 # the directories may not exist.
30565 case `pwd` in
30566 .) ac_abs_builddir="$ac_dir";;
30567 *)
30568 case "$ac_dir" in
30569 .) ac_abs_builddir=`pwd`;;
30570 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30571 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30572 esac;;
30573 esac
30574 case $ac_abs_builddir in
30575 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30576 *)
30577 case ${ac_top_builddir}. in
30578 .) ac_abs_top_builddir=$ac_abs_builddir;;
30579 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30580 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30581 esac;;
30582 esac
30583 case $ac_abs_builddir in
30584 .) ac_abs_srcdir=$ac_srcdir;;
30585 *)
30586 case $ac_srcdir in
30587 .) ac_abs_srcdir=$ac_abs_builddir;;
30588 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30589 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30590 esac;;
30591 esac
30592 case $ac_abs_builddir in
30593 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30594 *)
30595 case $ac_top_srcdir in
30596 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30597 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30598 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30599 esac;;
30600 esac
30601
30602
30603 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30604 echo "$as_me: executing $ac_dest commands" >&6;}
30605 case $ac_dest in
30606 default-1 )
30607 # Only add multilib support code if we just rebuilt the top-level
30608 # Makefile.
30609 case " $CONFIG_FILES " in
30610 *" Makefile "*)
30611 ac_file=Makefile . ${multi_basedir}/config-ml.in
30612 ;;
30613 esac ;;
30614 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30615 # Strip MF so we end up with the name of the file.
30616 mf=`echo "$mf" | sed -e 's/:.*$//'`
30617 # Check whether this is an Automake generated Makefile or not.
30618 # We used to match only the files named `Makefile.in', but
30619 # some people rename them; so instead we look at the file content.
30620 # Grep'ing the first line is not enough: some people post-process
30621 # each Makefile.in and add a new line on top of each file to say so.
30622 # So let's grep whole file.
30623 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30624 dirpart=`(dirname "$mf") 2>/dev/null ||
30625 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30626 X"$mf" : 'X\(//\)[^/]' \| \
30627 X"$mf" : 'X\(//\)$' \| \
30628 X"$mf" : 'X\(/\)' \| \
30629 . : '\(.\)' 2>/dev/null ||
30630 echo X"$mf" |
30631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30633 /^X\(\/\/\)$/{ s//\1/; q; }
30634 /^X\(\/\).*/{ s//\1/; q; }
30635 s/.*/./; q'`
30636 else
30637 continue
30638 fi
30639 # Extract the definition of DEPDIR, am__include, and am__quote
30640 # from the Makefile without running `make'.
30641 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30642 test -z "$DEPDIR" && continue
30643 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30644 test -z "am__include" && continue
30645 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30646 # When using ansi2knr, U may be empty or an underscore; expand it
30647 U=`sed -n 's/^U = //p' < "$mf"`
30648 # Find all dependency output files, they are included files with
30649 # $(DEPDIR) in their names. We invoke sed twice because it is the
30650 # simplest approach to changing $(DEPDIR) to its actual value in the
30651 # expansion.
30652 for file in `sed -n "
30653 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30654 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30655 # Make sure the directory exists.
30656 test -f "$dirpart/$file" && continue
30657 fdir=`(dirname "$file") 2>/dev/null ||
30658 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30659 X"$file" : 'X\(//\)[^/]' \| \
30660 X"$file" : 'X\(//\)$' \| \
30661 X"$file" : 'X\(/\)' \| \
30662 . : '\(.\)' 2>/dev/null ||
30663 echo X"$file" |
30664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30666 /^X\(\/\/\)$/{ s//\1/; q; }
30667 /^X\(\/\).*/{ s//\1/; q; }
30668 s/.*/./; q'`
30669 { if $as_mkdir_p; then
30670 mkdir -p $dirpart/$fdir
30671 else
30672 as_dir=$dirpart/$fdir
30673 as_dirs=
30674 while test ! -d "$as_dir"; do
30675 as_dirs="$as_dir $as_dirs"
30676 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30678 X"$as_dir" : 'X\(//\)[^/]' \| \
30679 X"$as_dir" : 'X\(//\)$' \| \
30680 X"$as_dir" : 'X\(/\)' \| \
30681 . : '\(.\)' 2>/dev/null ||
30682 echo X"$as_dir" |
30683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30685 /^X\(\/\/\)$/{ s//\1/; q; }
30686 /^X\(\/\).*/{ s//\1/; q; }
30687 s/.*/./; q'`
30688 done
30689 test ! -n "$as_dirs" || mkdir $as_dirs
30690 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30691 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30692 { (exit 1); exit 1; }; }; }
30693
30694 # echo "creating $dirpart/$file"
30695 echo '# dummy' > "$dirpart/$file"
30696 done
30697 done
30698 ;;
30699 libtool )
30700
30701 # See if we are running on zsh, and set the options which allow our
30702 # commands through without removal of \ escapes.
30703 if test -n "${ZSH_VERSION+set}" ; then
30704 setopt NO_GLOB_SUBST
30705 fi
30706
30707 cfgfile="${ofile}T"
30708 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30709 $RM "$cfgfile"
30710
30711 cat <<_LT_EOF >> "$cfgfile"
30712 #! $SHELL
30713
30714 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30715 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
30716 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30717 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30718 #
30719 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30720 # 2006, 2007 Free Software Foundation, Inc.
30721 #
30722 # This file is part of GNU Libtool:
30723 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
30724 #
30725 # This program is free software; you can redistribute it and/or modify
30726 # it under the terms of the GNU General Public License as published by
30727 # the Free Software Foundation; either version 2 of the License, or
30728 # (at your option) any later version.
30729 #
30730 # This program is distributed in the hope that it will be useful, but
30731 # WITHOUT ANY WARRANTY; without even the implied warranty of
30732 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30733 # General Public License for more details.
30734 #
30735 # You should have received a copy of the GNU General Public License
30736 # along with this program; if not, a copy can be downloaded from
30737 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
30738 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30739 # MA 02110-1301, USA.
30740 #
30741 # As a special exception to the GNU General Public License, if you
30742 # distribute this file as part of a program that contains a
30743 # configuration script generated by Autoconf, you may include it under
30744 # the same distribution terms that you use for the rest of that program.
30745
30746
30747 # The names of the tagged configurations supported by this script.
30748 available_tags="CXX "
30749
30750 # ### BEGIN LIBTOOL CONFIG
30751
30752 # Whether or not to build static libraries.
30753 build_old_libs=$enable_static
30754
30755 # Which release of libtool.m4 was used?
30756 macro_version=$macro_version
30757 macro_revision=$macro_revision
30758
30759 # Whether or not to build shared libraries.
30760 build_libtool_libs=$enable_shared
30761
30762 # What type of objects to build.
30763 pic_mode=$pic_mode
30764
30765 # Whether or not to optimize for fast installation.
30766 fast_install=$enable_fast_install
30767
30768 # The host system.
30769 host_alias=$host_alias
30770 host=$host
30771 host_os=$host_os
30772
30773 # The build system.
30774 build_alias=$build_alias
30775 build=$build
30776 build_os=$build_os
30777
30778 # A sed program that does not truncate output.
30779 SED=$lt_SED
30780
30781 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30782 Xsed="\$SED -e 1s/^X//"
30783
30784 # A grep program that handles long lines.
30785 GREP=$lt_GREP
30786
30787 # An ERE matcher.
30788 EGREP=$lt_EGREP
30789
30790 # A literal string matcher.
30791 FGREP=$lt_FGREP
30792
30793 # A BSD- or MS-compatible name lister.
30794 NM=$lt_NM
30795
30796 # Whether we need soft or hard links.
30797 LN_S=$lt_LN_S
30798
30799 # What is the maximum length of a command?
30800 max_cmd_len=$max_cmd_len
30801
30802 # Object file suffix (normally "o").
30803 objext=$ac_objext
30804
30805 # Executable file suffix (normally "").
30806 exeext=$exeext
30807
30808 # whether the shell understands "unset".
30809 lt_unset=$lt_unset
30810
30811 # turn spaces into newlines.
30812 SP2NL=$lt_lt_SP2NL
30813
30814 # turn newlines into spaces.
30815 NL2SP=$lt_lt_NL2SP
30816
30817 # How to create reloadable object files.
30818 reload_flag=$lt_reload_flag
30819 reload_cmds=$lt_reload_cmds
30820
30821 # Method to check whether dependent libraries are shared objects.
30822 deplibs_check_method=$lt_deplibs_check_method
30823
30824 # Command to use when deplibs_check_method == "file_magic".
30825 file_magic_cmd=$lt_file_magic_cmd
30826
30827 # The archiver.
30828 AR=$lt_AR
30829 AR_FLAGS=$lt_AR_FLAGS
30830
30831 # A symbol stripping program.
30832 STRIP=$lt_STRIP
30833
30834 # Commands used to install an old-style archive.
30835 RANLIB=$lt_RANLIB
30836 old_postinstall_cmds=$lt_old_postinstall_cmds
30837 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30838
30839 # A C compiler.
30840 LTCC=$lt_CC
30841
30842 # LTCC compiler flags.
30843 LTCFLAGS=$lt_CFLAGS
30844
30845 # Take the output of nm and produce a listing of raw symbols and C names.
30846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30847
30848 # Transform the output of nm in a proper C declaration.
30849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30850
30851 # Transform the output of nm in a C name address pair.
30852 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30853
30854 # The name of the directory that contains temporary libtool files.
30855 objdir=$objdir
30856
30857 # Shell to use when invoking shell scripts.
30858 SHELL=$lt_SHELL
30859
30860 # An echo program that does not interpret backslashes.
30861 ECHO=$lt_ECHO
30862
30863 # Used to examine libraries when file_magic_cmd begins with "file".
30864 MAGIC_CMD=$MAGIC_CMD
30865
30866 # Must we lock files when doing compilation?
30867 need_locks=$lt_need_locks
30868
30869 # Old archive suffix (normally "a").
30870 libext=$libext
30871
30872 # Shared library suffix (normally ".so").
30873 shrext_cmds=$lt_shrext_cmds
30874
30875 # The commands to extract the exported symbol list from a shared archive.
30876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30877
30878 # Variables whose values should be saved in libtool wrapper scripts and
30879 # restored at link time.
30880 variables_saved_for_relink=$lt_variables_saved_for_relink
30881
30882 # Do we need the "lib" prefix for modules?
30883 need_lib_prefix=$need_lib_prefix
30884
30885 # Do we need a version for libraries?
30886 need_version=$need_version
30887
30888 # Library versioning type.
30889 version_type=$version_type
30890
30891 # Shared library runtime path variable.
30892 runpath_var=$runpath_var
30893
30894 # Shared library path variable.
30895 shlibpath_var=$shlibpath_var
30896
30897 # Is shlibpath searched before the hard-coded library search path?
30898 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30899
30900 # Format of library name prefix.
30901 libname_spec=$lt_libname_spec
30902
30903 # List of archive names. First name is the real one, the rest are links.
30904 # The last name is the one that the linker finds with -lNAME
30905 library_names_spec=$lt_library_names_spec
30906
30907 # The coded name of the library, if different from the real name.
30908 soname_spec=$lt_soname_spec
30909
30910 # Command to use after installation of a shared archive.
30911 postinstall_cmds=$lt_postinstall_cmds
30912
30913 # Command to use after uninstallation of a shared archive.
30914 postuninstall_cmds=$lt_postuninstall_cmds
30915
30916 # Commands used to finish a libtool library installation in a directory.
30917 finish_cmds=$lt_finish_cmds
30918
30919 # As "finish_cmds", except a single script fragment to be evaled but
30920 # not shown.
30921 finish_eval=$lt_finish_eval
30922
30923 # Whether we should hardcode library paths into libraries.
30924 hardcode_into_libs=$hardcode_into_libs
30925
30926 # Compile-time system search path for libraries.
30927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30928
30929 # Run-time system search path for libraries.
30930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30931
30932 # Whether dlopen is supported.
30933 dlopen_support=$enable_dlopen
30934
30935 # Whether dlopen of programs is supported.
30936 dlopen_self=$enable_dlopen_self
30937
30938 # Whether dlopen of statically linked programs is supported.
30939 dlopen_self_static=$enable_dlopen_self_static
30940
30941 # Commands to strip libraries.
30942 old_striplib=$lt_old_striplib
30943 striplib=$lt_striplib
30944
30945
30946 # The linker used to build libraries.
30947 LD=$lt_LD
30948
30949 # Commands used to build an old-style archive.
30950 old_archive_cmds=$lt_old_archive_cmds
30951
30952 # A language specific compiler.
30953 CC=$lt_compiler
30954
30955 # Is the compiler the GNU compiler?
30956 with_gcc=$GCC
30957
30958 # Compiler flag to turn off builtin functions.
30959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30960
30961 # How to pass a linker flag through the compiler.
30962 wl=$lt_lt_prog_compiler_wl
30963
30964 # Additional compiler flags for building library objects.
30965 pic_flag=$lt_lt_prog_compiler_pic
30966
30967 # Compiler flag to prevent dynamic linking.
30968 link_static_flag=$lt_lt_prog_compiler_static
30969
30970 # Does compiler simultaneously support -c and -o options?
30971 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30972
30973 # Whether or not to add -lc for building shared libraries.
30974 build_libtool_need_lc=$archive_cmds_need_lc
30975
30976 # Whether or not to disallow shared libs when runtime libs are static.
30977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30978
30979 # Compiler flag to allow reflexive dlopens.
30980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30981
30982 # Compiler flag to generate shared objects directly from archives.
30983 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30984
30985 # Whether the compiler copes with passing no objects directly.
30986 compiler_needs_object=$lt_compiler_needs_object
30987
30988 # Create an old-style archive from a shared archive.
30989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30990
30991 # Create a temporary old-style archive to link instead of a shared archive.
30992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30993
30994 # Commands used to build a shared archive.
30995 archive_cmds=$lt_archive_cmds
30996 archive_expsym_cmds=$lt_archive_expsym_cmds
30997
30998 # Commands used to build a loadable module if different from building
30999 # a shared archive.
31000 module_cmds=$lt_module_cmds
31001 module_expsym_cmds=$lt_module_expsym_cmds
31002
31003 # Whether we are building with GNU ld or not.
31004 with_gnu_ld=$lt_with_gnu_ld
31005
31006 # Flag that allows shared libraries with undefined symbols to be built.
31007 allow_undefined_flag=$lt_allow_undefined_flag
31008
31009 # Flag that enforces no undefined symbols.
31010 no_undefined_flag=$lt_no_undefined_flag
31011
31012 # Flag to hardcode \$libdir into a binary during linking.
31013 # This must work even if \$libdir does not exist
31014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31015
31016 # If ld is used when linking, flag to hardcode \$libdir into a binary
31017 # during linking. This must work even if \$libdir does not exist.
31018 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31019
31020 # Whether we need a single "-rpath" flag with a separated argument.
31021 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31022
31023 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31024 # DIR into the resulting binary.
31025 hardcode_direct=$hardcode_direct
31026
31027 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31028 # DIR into the resulting binary and the resulting library dependency is
31029 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31030 # library is relocated.
31031 hardcode_direct_absolute=$hardcode_direct_absolute
31032
31033 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31034 # into the resulting binary.
31035 hardcode_minus_L=$hardcode_minus_L
31036
31037 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31038 # into the resulting binary.
31039 hardcode_shlibpath_var=$hardcode_shlibpath_var
31040
31041 # Set to "yes" if building a shared library automatically hardcodes DIR
31042 # into the library and all subsequent libraries and executables linked
31043 # against it.
31044 hardcode_automatic=$hardcode_automatic
31045
31046 # Set to yes if linker adds runtime paths of dependent libraries
31047 # to runtime path list.
31048 inherit_rpath=$inherit_rpath
31049
31050 # Whether libtool must link a program against all its dependency libraries.
31051 link_all_deplibs=$link_all_deplibs
31052
31053 # Fix the shell variable \$srcfile for the compiler.
31054 fix_srcfile_path=$lt_fix_srcfile_path
31055
31056 # Set to "yes" if exported symbols are required.
31057 always_export_symbols=$always_export_symbols
31058
31059 # The commands to list exported symbols.
31060 export_symbols_cmds=$lt_export_symbols_cmds
31061
31062 # Symbols that should not be listed in the preloaded symbols.
31063 exclude_expsyms=$lt_exclude_expsyms
31064
31065 # Symbols that must always be exported.
31066 include_expsyms=$lt_include_expsyms
31067
31068 # Commands necessary for linking programs (against libraries) with templates.
31069 prelink_cmds=$lt_prelink_cmds
31070
31071 # Specify filename containing input files.
31072 file_list_spec=$lt_file_list_spec
31073
31074 # How to hardcode a shared library path into an executable.
31075 hardcode_action=$hardcode_action
31076
31077 # Dependencies to place before and after the objects being linked to
31078 # create a shared library.
31079 predep_objects=$lt_predep_objects
31080 postdep_objects=$lt_postdep_objects
31081 predeps=$lt_predeps
31082 postdeps=$lt_postdeps
31083
31084 # The library search path used internally by the compiler when linking
31085 # a shared library.
31086 compiler_lib_search_path=$lt_compiler_lib_search_path
31087
31088 # ### END LIBTOOL CONFIG
31089
31090 _LT_EOF
31091
31092 case $host_os in
31093 aix3*)
31094 cat <<\_LT_EOF >> "$cfgfile"
31095 # AIX sometimes has problems with the GCC collect2 program. For some
31096 # reason, if we set the COLLECT_NAMES environment variable, the problems
31097 # vanish in a puff of smoke.
31098 if test "X${COLLECT_NAMES+set}" != Xset; then
31099 COLLECT_NAMES=
31100 export COLLECT_NAMES
31101 fi
31102 _LT_EOF
31103 ;;
31104 esac
31105
31106
31107 ltmain="$ac_aux_dir/ltmain.sh"
31108
31109
31110 # We use sed instead of cat because bash on DJGPP gets confused if
31111 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31112 # text mode, it properly converts lines to CR/LF. This bash problem
31113 # is reportedly fixed, but why not run on old versions too?
31114 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31115 || (rm -f "$cfgfile"; exit 1)
31116
31117 case $xsi_shell in
31118 yes)
31119 cat << \_LT_EOF >> "$cfgfile"
31120 # func_dirname file append nondir_replacement
31121 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31122 # otherwise set result to NONDIR_REPLACEMENT.
31123 func_dirname ()
31124 {
31125 case ${1} in
31126 */*) func_dirname_result="${1%/*}${2}" ;;
31127 * ) func_dirname_result="${3}" ;;
31128 esac
31129 }
31130
31131 # func_basename file
31132 func_basename ()
31133 {
31134 func_basename_result="${1##*/}"
31135 }
31136
31137 # func_stripname prefix suffix name
31138 # strip PREFIX and SUFFIX off of NAME.
31139 # PREFIX and SUFFIX must not contain globbing or regex special
31140 # characters, hashes, percent signs, but SUFFIX may contain a leading
31141 # dot (in which case that matches only a dot).
31142 func_stripname ()
31143 {
31144 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31145 # positional parameters, so assign one to ordinary parameter first.
31146 func_stripname_result=${3}
31147 func_stripname_result=${func_stripname_result#"${1}"}
31148 func_stripname_result=${func_stripname_result%"${2}"}
31149 }
31150
31151 # func_opt_split
31152 func_opt_split ()
31153 {
31154 func_opt_split_opt=${1%%=*}
31155 func_opt_split_arg=${1#*=}
31156 }
31157
31158 # func_lo2o object
31159 func_lo2o ()
31160 {
31161 case ${1} in
31162 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31163 *) func_lo2o_result=${1} ;;
31164 esac
31165 }
31166 _LT_EOF
31167 ;;
31168 *) # Bourne compatible functions.
31169 cat << \_LT_EOF >> "$cfgfile"
31170 # func_dirname file append nondir_replacement
31171 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31172 # otherwise set result to NONDIR_REPLACEMENT.
31173 func_dirname ()
31174 {
31175 # Extract subdirectory from the argument.
31176 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31177 if test "X$func_dirname_result" = "X${1}"; then
31178 func_dirname_result="${3}"
31179 else
31180 func_dirname_result="$func_dirname_result${2}"
31181 fi
31182 }
31183
31184 # func_basename file
31185 func_basename ()
31186 {
31187 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31188 }
31189
31190 # func_stripname prefix suffix name
31191 # strip PREFIX and SUFFIX off of NAME.
31192 # PREFIX and SUFFIX must not contain globbing or regex special
31193 # characters, hashes, percent signs, but SUFFIX may contain a leading
31194 # dot (in which case that matches only a dot).
31195 # func_strip_suffix prefix name
31196 func_stripname ()
31197 {
31198 case ${2} in
31199 .*) func_stripname_result=`$ECHO "X${3}" \
31200 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31201 *) func_stripname_result=`$ECHO "X${3}" \
31202 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31203 esac
31204 }
31205
31206 # sed scripts:
31207 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31208 my_sed_long_arg='1s/^-[^=]*=//'
31209
31210 # func_opt_split
31211 func_opt_split ()
31212 {
31213 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31214 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31215 }
31216
31217 # func_lo2o object
31218 func_lo2o ()
31219 {
31220 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31221 }
31222 _LT_EOF
31223 esac
31224
31225 case $lt_shell_append in
31226 yes)
31227 cat << \_LT_EOF >> "$cfgfile"
31228
31229 # func_append var value
31230 # Append VALUE to the end of shell variable VAR.
31231 func_append ()
31232 {
31233 eval "$1+=\$2"
31234 }
31235 _LT_EOF
31236 ;;
31237 *)
31238 cat << \_LT_EOF >> "$cfgfile"
31239
31240 # func_append var value
31241 # Append VALUE to the end of shell variable VAR.
31242 func_append ()
31243 {
31244 eval "$1=\$$1\$2"
31245 }
31246 _LT_EOF
31247 ;;
31248 esac
31249
31250
31251 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31252 || (rm -f "$cfgfile"; exit 1)
31253
31254 mv -f "$cfgfile" "$ofile" ||
31255 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31256 chmod +x "$ofile"
31257
31258
31259 cat <<_LT_EOF >> "$ofile"
31260
31261 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31262
31263 # The linker used to build libraries.
31264 LD=$lt_LD_CXX
31265
31266 # Commands used to build an old-style archive.
31267 old_archive_cmds=$lt_old_archive_cmds_CXX
31268
31269 # A language specific compiler.
31270 CC=$lt_compiler_CXX
31271
31272 # Is the compiler the GNU compiler?
31273 with_gcc=$GCC_CXX
31274
31275 # Compiler flag to turn off builtin functions.
31276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31277
31278 # How to pass a linker flag through the compiler.
31279 wl=$lt_lt_prog_compiler_wl_CXX
31280
31281 # Additional compiler flags for building library objects.
31282 pic_flag=$lt_lt_prog_compiler_pic_CXX
31283
31284 # Compiler flag to prevent dynamic linking.
31285 link_static_flag=$lt_lt_prog_compiler_static_CXX
31286
31287 # Does compiler simultaneously support -c and -o options?
31288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31289
31290 # Whether or not to add -lc for building shared libraries.
31291 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31292
31293 # Whether or not to disallow shared libs when runtime libs are static.
31294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31295
31296 # Compiler flag to allow reflexive dlopens.
31297 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31298
31299 # Compiler flag to generate shared objects directly from archives.
31300 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31301
31302 # Whether the compiler copes with passing no objects directly.
31303 compiler_needs_object=$lt_compiler_needs_object_CXX
31304
31305 # Create an old-style archive from a shared archive.
31306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31307
31308 # Create a temporary old-style archive to link instead of a shared archive.
31309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31310
31311 # Commands used to build a shared archive.
31312 archive_cmds=$lt_archive_cmds_CXX
31313 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31314
31315 # Commands used to build a loadable module if different from building
31316 # a shared archive.
31317 module_cmds=$lt_module_cmds_CXX
31318 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31319
31320 # Whether we are building with GNU ld or not.
31321 with_gnu_ld=$lt_with_gnu_ld_CXX
31322
31323 # Flag that allows shared libraries with undefined symbols to be built.
31324 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31325
31326 # Flag that enforces no undefined symbols.
31327 no_undefined_flag=$lt_no_undefined_flag_CXX
31328
31329 # Flag to hardcode \$libdir into a binary during linking.
31330 # This must work even if \$libdir does not exist
31331 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31332
31333 # If ld is used when linking, flag to hardcode \$libdir into a binary
31334 # during linking. This must work even if \$libdir does not exist.
31335 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31336
31337 # Whether we need a single "-rpath" flag with a separated argument.
31338 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31339
31340 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31341 # DIR into the resulting binary.
31342 hardcode_direct=$hardcode_direct_CXX
31343
31344 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31345 # DIR into the resulting binary and the resulting library dependency is
31346 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31347 # library is relocated.
31348 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31349
31350 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31351 # into the resulting binary.
31352 hardcode_minus_L=$hardcode_minus_L_CXX
31353
31354 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31355 # into the resulting binary.
31356 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31357
31358 # Set to "yes" if building a shared library automatically hardcodes DIR
31359 # into the library and all subsequent libraries and executables linked
31360 # against it.
31361 hardcode_automatic=$hardcode_automatic_CXX
31362
31363 # Set to yes if linker adds runtime paths of dependent libraries
31364 # to runtime path list.
31365 inherit_rpath=$inherit_rpath_CXX
31366
31367 # Whether libtool must link a program against all its dependency libraries.
31368 link_all_deplibs=$link_all_deplibs_CXX
31369
31370 # Fix the shell variable \$srcfile for the compiler.
31371 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31372
31373 # Set to "yes" if exported symbols are required.
31374 always_export_symbols=$always_export_symbols_CXX
31375
31376 # The commands to list exported symbols.
31377 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31378
31379 # Symbols that should not be listed in the preloaded symbols.
31380 exclude_expsyms=$lt_exclude_expsyms_CXX
31381
31382 # Symbols that must always be exported.
31383 include_expsyms=$lt_include_expsyms_CXX
31384
31385 # Commands necessary for linking programs (against libraries) with templates.
31386 prelink_cmds=$lt_prelink_cmds_CXX
31387
31388 # Specify filename containing input files.
31389 file_list_spec=$lt_file_list_spec_CXX
31390
31391 # How to hardcode a shared library path into an executable.
31392 hardcode_action=$hardcode_action_CXX
31393
31394 # Dependencies to place before and after the objects being linked to
31395 # create a shared library.
31396 predep_objects=$lt_predep_objects_CXX
31397 postdep_objects=$lt_postdep_objects_CXX
31398 predeps=$lt_predeps_CXX
31399 postdeps=$lt_postdeps_CXX
31400
31401 # The library search path used internally by the compiler when linking
31402 # a shared library.
31403 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31404
31405 # ### END LIBTOOL TAG CONFIG: CXX
31406 _LT_EOF
31407
31408 ;;
31409 mkcollections.pl ) chmod 755 lib/mkcollections.pl ;;
31410 $ac_stdint_h )
31411 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
31412 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
31413 ac_stdint=$tmp/_stdint.h
31414
31415 echo "#ifndef" $_ac_stdint_h >$ac_stdint
31416 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
31417 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
31418 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
31419 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
31420 if test "_$ac_cv_header_stdint_t" != "_" ; then
31421 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
31422 echo "#include <stdint.h>" >>$ac_stdint
31423 echo "#endif" >>$ac_stdint
31424 echo "#endif" >>$ac_stdint
31425 else
31426
31427 cat >>$ac_stdint <<STDINT_EOF
31428
31429 /* ................... shortcircuit part ........................... */
31430
31431 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
31432 #include <stdint.h>
31433 #else
31434 #include <stddef.h>
31435
31436 /* .................... configured part ............................ */
31437
31438 STDINT_EOF
31439
31440 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
31441 if test "_$ac_cv_header_stdint_x" != "_" ; then
31442 ac_header="$ac_cv_header_stdint_x"
31443 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
31444 else
31445 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
31446 fi
31447
31448 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
31449 if test "_$ac_cv_header_stdint_o" != "_" ; then
31450 ac_header="$ac_cv_header_stdint_o"
31451 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
31452 else
31453 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
31454 fi
31455
31456 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
31457 if test "_$ac_cv_header_stdint_u" != "_" ; then
31458 ac_header="$ac_cv_header_stdint_u"
31459 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
31460 else
31461 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
31462 fi
31463
31464 echo "" >>$ac_stdint
31465
31466 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
31467 echo "#include <$ac_header>" >>$ac_stdint
31468 echo "" >>$ac_stdint
31469 fi fi
31470
31471 echo "/* which 64bit typedef has been found */" >>$ac_stdint
31472 if test "$ac_cv_type_uint64_t" = "yes" ; then
31473 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
31474 else
31475 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
31476 fi
31477 if test "$ac_cv_type_u_int64_t" = "yes" ; then
31478 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
31479 else
31480 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
31481 fi
31482 echo "" >>$ac_stdint
31483
31484 echo "/* which type model has been detected */" >>$ac_stdint
31485 if test "_$ac_cv_char_data_model" != "_" ; then
31486 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
31487 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
31488 else
31489 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
31490 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
31491 fi
31492 echo "" >>$ac_stdint
31493
31494 echo "/* whether int_least types were detected */" >>$ac_stdint
31495 if test "$ac_cv_type_int_least32_t" = "yes"; then
31496 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
31497 else
31498 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
31499 fi
31500 echo "/* whether int_fast types were detected */" >>$ac_stdint
31501 if test "$ac_cv_type_int_fast32_t" = "yes"; then
31502 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
31503 else
31504 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
31505 fi
31506 echo "/* whether intmax_t type was detected */" >>$ac_stdint
31507 if test "$ac_cv_type_intmax_t" = "yes"; then
31508 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
31509 else
31510 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
31511 fi
31512 echo "" >>$ac_stdint
31513
31514 cat >>$ac_stdint <<STDINT_EOF
31515 /* .................... detections part ............................ */
31516
31517 /* whether we need to define bitspecific types from compiler base types */
31518 #ifndef _STDINT_HEADER_INTPTR
31519 #ifndef _STDINT_HEADER_UINT32
31520 #ifndef _STDINT_HEADER_U_INT32
31521 #define _STDINT_NEED_INT_MODEL_T
31522 #else
31523 #define _STDINT_HAVE_U_INT_TYPES
31524 #endif
31525 #endif
31526 #endif
31527
31528 #ifdef _STDINT_HAVE_U_INT_TYPES
31529 #undef _STDINT_NEED_INT_MODEL_T
31530 #endif
31531
31532 #ifdef _STDINT_CHAR_MODEL
31533 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
31534 #ifndef _STDINT_BYTE_MODEL
31535 #define _STDINT_BYTE_MODEL 12
31536 #endif
31537 #endif
31538 #endif
31539
31540 #ifndef _STDINT_HAVE_INT_LEAST32_T
31541 #define _STDINT_NEED_INT_LEAST_T
31542 #endif
31543
31544 #ifndef _STDINT_HAVE_INT_FAST32_T
31545 #define _STDINT_NEED_INT_FAST_T
31546 #endif
31547
31548 #ifndef _STDINT_HEADER_INTPTR
31549 #define _STDINT_NEED_INTPTR_T
31550 #ifndef _STDINT_HAVE_INTMAX_T
31551 #define _STDINT_NEED_INTMAX_T
31552 #endif
31553 #endif
31554
31555
31556 /* .................... definition part ............................ */
31557
31558 /* some system headers have good uint64_t */
31559 #ifndef _HAVE_UINT64_T
31560 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
31561 #define _HAVE_UINT64_T
31562 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
31563 #define _HAVE_UINT64_T
31564 typedef u_int64_t uint64_t;
31565 #endif
31566 #endif
31567
31568 #ifndef _HAVE_UINT64_T
31569 /* .. here are some common heuristics using compiler runtime specifics */
31570 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
31571 #define _HAVE_UINT64_T
31572 #define _HAVE_LONGLONG_UINT64_T
31573 typedef long long int64_t;
31574 typedef unsigned long long uint64_t;
31575
31576 #elif !defined __STRICT_ANSI__
31577 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
31578 #define _HAVE_UINT64_T
31579 typedef __int64 int64_t;
31580 typedef unsigned __int64 uint64_t;
31581
31582 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
31583 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
31584 #if !defined _NO_LONGLONG
31585 #define _HAVE_UINT64_T
31586 #define _HAVE_LONGLONG_UINT64_T
31587 typedef long long int64_t;
31588 typedef unsigned long long uint64_t;
31589 #endif
31590
31591 #elif defined __alpha || (defined __mips && defined _ABIN32)
31592 #if !defined _NO_LONGLONG
31593 typedef long int64_t;
31594 typedef unsigned long uint64_t;
31595 #endif
31596 /* compiler/cpu type to define int64_t */
31597 #endif
31598 #endif
31599 #endif
31600
31601 #if defined _STDINT_HAVE_U_INT_TYPES
31602 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
31603 typedef u_int8_t uint8_t;
31604 typedef u_int16_t uint16_t;
31605 typedef u_int32_t uint32_t;
31606
31607 /* glibc compatibility */
31608 #ifndef __int8_t_defined
31609 #define __int8_t_defined
31610 #endif
31611 #endif
31612
31613 #ifdef _STDINT_NEED_INT_MODEL_T
31614 /* we must guess all the basic types. Apart from byte-adressable system, */
31615 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
31616 /* (btw, those nibble-addressable systems are way off, or so we assume) */
31617
31618
31619 #if defined _STDINT_BYTE_MODEL
31620 #if _STDINT_LONG_MODEL+0 == 242
31621 /* 2:4:2 = IP16 = a normal 16-bit system */
31622 typedef unsigned char uint8_t;
31623 typedef unsigned short uint16_t;
31624 typedef unsigned long uint32_t;
31625 #ifndef __int8_t_defined
31626 #define __int8_t_defined
31627 typedef char int8_t;
31628 typedef short int16_t;
31629 typedef long int32_t;
31630 #endif
31631 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
31632 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
31633 /* 4:4:4 = ILP32 = a normal 32-bit system */
31634 typedef unsigned char uint8_t;
31635 typedef unsigned short uint16_t;
31636 typedef unsigned int uint32_t;
31637 #ifndef __int8_t_defined
31638 #define __int8_t_defined
31639 typedef char int8_t;
31640 typedef short int16_t;
31641 typedef int int32_t;
31642 #endif
31643 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
31644 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
31645 /* 4:8:8 = LP64 = a normal 64-bit system */
31646 typedef unsigned char uint8_t;
31647 typedef unsigned short uint16_t;
31648 typedef unsigned int uint32_t;
31649 #ifndef __int8_t_defined
31650 #define __int8_t_defined
31651 typedef char int8_t;
31652 typedef short int16_t;
31653 typedef int int32_t;
31654 #endif
31655 /* this system has a "long" of 64bit */
31656 #ifndef _HAVE_UINT64_T
31657 #define _HAVE_UINT64_T
31658 typedef unsigned long uint64_t;
31659 typedef long int64_t;
31660 #endif
31661 #elif _STDINT_LONG_MODEL+0 == 448
31662 /* LLP64 a 64-bit system derived from a 32-bit system */
31663 typedef unsigned char uint8_t;
31664 typedef unsigned short uint16_t;
31665 typedef unsigned int uint32_t;
31666 #ifndef __int8_t_defined
31667 #define __int8_t_defined
31668 typedef char int8_t;
31669 typedef short int16_t;
31670 typedef int int32_t;
31671 #endif
31672 /* assuming the system has a "long long" */
31673 #ifndef _HAVE_UINT64_T
31674 #define _HAVE_UINT64_T
31675 #define _HAVE_LONGLONG_UINT64_T
31676 typedef unsigned long long uint64_t;
31677 typedef long long int64_t;
31678 #endif
31679 #else
31680 #define _STDINT_NO_INT32_T
31681 #endif
31682 #else
31683 #define _STDINT_NO_INT8_T
31684 #define _STDINT_NO_INT32_T
31685 #endif
31686 #endif
31687
31688 /*
31689 * quote from SunOS-5.8 sys/inttypes.h:
31690 * Use at your own risk. As of February 1996, the committee is squarely
31691 * behind the fixed sized types; the "least" and "fast" types are still being
31692 * discussed. The probability that the "fast" types may be removed before
31693 * the standard is finalized is high enough that they are not currently
31694 * implemented.
31695 */
31696
31697 #if defined _STDINT_NEED_INT_LEAST_T
31698 typedef int8_t int_least8_t;
31699 typedef int16_t int_least16_t;
31700 typedef int32_t int_least32_t;
31701 #ifdef _HAVE_UINT64_T
31702 typedef int64_t int_least64_t;
31703 #endif
31704
31705 typedef uint8_t uint_least8_t;
31706 typedef uint16_t uint_least16_t;
31707 typedef uint32_t uint_least32_t;
31708 #ifdef _HAVE_UINT64_T
31709 typedef uint64_t uint_least64_t;
31710 #endif
31711 /* least types */
31712 #endif
31713
31714 #if defined _STDINT_NEED_INT_FAST_T
31715 typedef int8_t int_fast8_t;
31716 typedef int int_fast16_t;
31717 typedef int32_t int_fast32_t;
31718 #ifdef _HAVE_UINT64_T
31719 typedef int64_t int_fast64_t;
31720 #endif
31721
31722 typedef uint8_t uint_fast8_t;
31723 typedef unsigned uint_fast16_t;
31724 typedef uint32_t uint_fast32_t;
31725 #ifdef _HAVE_UINT64_T
31726 typedef uint64_t uint_fast64_t;
31727 #endif
31728 /* fast types */
31729 #endif
31730
31731 #ifdef _STDINT_NEED_INTMAX_T
31732 #ifdef _HAVE_UINT64_T
31733 typedef int64_t intmax_t;
31734 typedef uint64_t uintmax_t;
31735 #else
31736 typedef long intmax_t;
31737 typedef unsigned long uintmax_t;
31738 #endif
31739 #endif
31740
31741 #ifdef _STDINT_NEED_INTPTR_T
31742 #ifndef __intptr_t_defined
31743 #define __intptr_t_defined
31744 /* we encourage using "long" to store pointer values, never use "int" ! */
31745 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
31746 typedef unsigned int uintptr_t;
31747 typedef int intptr_t;
31748 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
31749 typedef unsigned long uintptr_t;
31750 typedef long intptr_t;
31751 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
31752 typedef uint64_t uintptr_t;
31753 typedef int64_t intptr_t;
31754 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
31755 typedef unsigned long uintptr_t;
31756 typedef long intptr_t;
31757 #endif
31758 #endif
31759 #endif
31760
31761 /* The ISO C99 standard specifies that in C++ implementations these
31762 should only be defined if explicitly requested. */
31763 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
31764 #ifndef UINT32_C
31765
31766 /* Signed. */
31767 # define INT8_C(c) c
31768 # define INT16_C(c) c
31769 # define INT32_C(c) c
31770 # ifdef _HAVE_LONGLONG_UINT64_T
31771 # define INT64_C(c) c ## L
31772 # else
31773 # define INT64_C(c) c ## LL
31774 # endif
31775
31776 /* Unsigned. */
31777 # define UINT8_C(c) c ## U
31778 # define UINT16_C(c) c ## U
31779 # define UINT32_C(c) c ## U
31780 # ifdef _HAVE_LONGLONG_UINT64_T
31781 # define UINT64_C(c) c ## UL
31782 # else
31783 # define UINT64_C(c) c ## ULL
31784 # endif
31785
31786 /* Maximal type. */
31787 # ifdef _HAVE_LONGLONG_UINT64_T
31788 # define INTMAX_C(c) c ## L
31789 # define UINTMAX_C(c) c ## UL
31790 # else
31791 # define INTMAX_C(c) c ## LL
31792 # define UINTMAX_C(c) c ## ULL
31793 # endif
31794
31795 /* literalnumbers */
31796 #endif
31797 #endif
31798
31799 /* These limits are merily those of a two complement byte-oriented system */
31800
31801 /* Minimum of signed integral types. */
31802 #ifndef INT8_MIN
31803 # define INT8_MIN (-128)
31804 #endif
31805 #ifndef INT16_MIN
31806 # define INT16_MIN (-32767-1)
31807 #endif
31808 #ifndef INT32_MIN
31809 # define INT32_MIN (-2147483647-1)
31810 #endif
31811 #ifndef INT64_MIN
31812 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
31813 #endif
31814
31815 /* Maximum of signed integral types. */
31816 #ifndef INT8_MAX
31817 # define INT8_MAX (127)
31818 #endif
31819 #ifndef INT16_MAX
31820 # define INT16_MAX (32767)
31821 #endif
31822 #ifndef INT32_MAX
31823 # define INT32_MAX (2147483647)
31824 #endif
31825 #ifndef INT64_MAX
31826 # define INT64_MAX (__INT64_C(9223372036854775807))
31827 #endif
31828
31829 /* Maximum of unsigned integral types. */
31830 #ifndef UINT8_MAX
31831 # define UINT8_MAX (255)
31832 #endif
31833 #ifndef UINT16_MAX
31834 # define UINT16_MAX (65535)
31835 #endif
31836 #ifndef UINT32_MAX
31837 # define UINT32_MAX (4294967295U)
31838 #endif
31839 #ifndef UINT64_MAX
31840 # define UINT64_MAX (__UINT64_C(18446744073709551615))
31841 #endif
31842
31843 /* Minimum of signed integral types having a minimum size. */
31844 # define INT_LEAST8_MIN INT8_MIN
31845 # define INT_LEAST16_MIN INT16_MIN
31846 # define INT_LEAST32_MIN INT32_MIN
31847 # define INT_LEAST64_MIN INT64_MIN
31848 /* Maximum of signed integral types having a minimum size. */
31849 # define INT_LEAST8_MAX INT8_MAX
31850 # define INT_LEAST16_MAX INT16_MAX
31851 # define INT_LEAST32_MAX INT32_MAX
31852 # define INT_LEAST64_MAX INT64_MAX
31853
31854 /* Maximum of unsigned integral types having a minimum size. */
31855 # define UINT_LEAST8_MAX UINT8_MAX
31856 # define UINT_LEAST16_MAX UINT16_MAX
31857 # define UINT_LEAST32_MAX UINT32_MAX
31858 # define UINT_LEAST64_MAX UINT64_MAX
31859
31860 /* shortcircuit*/
31861 #endif
31862 /* once */
31863 #endif
31864 #endif
31865 STDINT_EOF
31866 fi
31867 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
31868 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
31869 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
31870 else
31871 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
31872 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31873 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
31874 X"$ac_stdint_h" : 'X\(//\)$' \| \
31875 X"$ac_stdint_h" : 'X\(/\)' \| \
31876 . : '\(.\)' 2>/dev/null ||
31877 echo X"$ac_stdint_h" |
31878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31880 /^X\(\/\/\)$/{ s//\1/; q; }
31881 /^X\(\/\).*/{ s//\1/; q; }
31882 s/.*/./; q'`
31883 { if $as_mkdir_p; then
31884 mkdir -p "$ac_dir"
31885 else
31886 as_dir="$ac_dir"
31887 as_dirs=
31888 while test ! -d "$as_dir"; do
31889 as_dirs="$as_dir $as_dirs"
31890 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31892 X"$as_dir" : 'X\(//\)[^/]' \| \
31893 X"$as_dir" : 'X\(//\)$' \| \
31894 X"$as_dir" : 'X\(/\)' \| \
31895 . : '\(.\)' 2>/dev/null ||
31896 echo X"$as_dir" |
31897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31898 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31899 /^X\(\/\/\)$/{ s//\1/; q; }
31900 /^X\(\/\).*/{ s//\1/; q; }
31901 s/.*/./; q'`
31902 done
31903 test ! -n "$as_dirs" || mkdir $as_dirs
31904 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31905 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31906 { (exit 1); exit 1; }; }; }
31907
31908 rm -f $ac_stdint_h
31909 mv $ac_stdint $ac_stdint_h
31910 fi
31911 ;;
31912 gappletviewer ) chmod 755 tools/gappletviewer ;;
31913 gjarsigner ) chmod 755 tools/gjarsigner ;;
31914 gkeytool ) chmod 755 tools/gkeytool ;;
31915 gjar ) chmod 755 tools/gjar ;;
31916 gnative2ascii ) chmod 755 tools/gnative2ascii ;;
31917 gserialver ) chmod 755 tools/gserialver ;;
31918 grmiregistry ) chmod 755 tools/grmiregistry ;;
31919 gtnameserv ) chmod 755 tools/gtnameserv ;;
31920 gorbd ) chmod 755 tools/gorbd ;;
31921 grmid ) chmod 755 tools/grmid ;;
31922 grmic ) chmod 755 tools/grmic ;;
31923 gjavah ) chmod 755 tools/gjavah ;;
31924 gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
31925 copy-vmresources ) chmod 755 lib/copy-vmresources.sh ;;
31926 esac
31927 done
31928 _ACEOF
31929
31930 cat >>$CONFIG_STATUS <<\_ACEOF
31931
31932 { (exit 0); exit 0; }
31933 _ACEOF
31934 chmod +x $CONFIG_STATUS
31935 ac_clean_files=$ac_clean_files_save
31936
31937
31938 # configure is writing to config.log, and then calls config.status.
31939 # config.status does its own redirection, appending to config.log.
31940 # Unfortunately, on DOS this fails, as config.log is still kept open
31941 # by configure, so config.status won't be able to write to it; its
31942 # output is simply discarded. So we exec the FD to /dev/null,
31943 # effectively closing config.log, so it can be properly (re)opened and
31944 # appended to by config.status. When coming back to configure, we
31945 # need to make the FD available again.
31946 if test "$no_create" != yes; then
31947 ac_cs_success=:
31948 ac_config_status_args=
31949 test "$silent" = yes &&
31950 ac_config_status_args="$ac_config_status_args --quiet"
31951 exec 5>/dev/null
31952 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31953 exec 5>>config.log
31954 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31955 # would make configure fail if this is the last instruction.
31956 $ac_cs_success || { (exit 1); exit 1; }
31957 fi
31958
31959
31960 # Create standard.omit based on decisions we just made.
31961 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
31962 if test x$use_escher != xtrue; then
31963 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
31964 fi