PageRenderTime 57ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 1ms

/libjava/classpath/configure

https://bitbucket.org/danchr/llvm-gcc
Shell | 17275 lines | 16805 code | 223 blank | 247 comment | 191 complexity | 3d7ef8f95deb66ce2b29606746063d8a MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, LGPL-2.0, BSD-3-Clause, CC-BY-SA-3.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for GNU Classpath 0.92.
  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. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Name of the host.
  217. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  218. # so uname gets run too.
  219. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  220. exec 6>&1
  221. #
  222. # Initializations.
  223. #
  224. ac_default_prefix=/usr/local
  225. ac_config_libobj_dir=.
  226. cross_compiling=no
  227. subdirs=
  228. MFLAGS=
  229. MAKEFLAGS=
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. # Maximum number of lines to put in a shell here document.
  232. # This variable seems obsolete. It should probably be removed, and
  233. # only ac_max_sed_lines should be used.
  234. : ${ac_max_here_lines=38}
  235. # Identity of this package.
  236. PACKAGE_NAME='GNU Classpath'
  237. PACKAGE_TARNAME='classpath'
  238. PACKAGE_VERSION='0.92'
  239. PACKAGE_STRING='GNU Classpath 0.92'
  240. PACKAGE_BUGREPORT='classpath@gnu.org'
  241. ac_unique_file="java/lang/System.java"
  242. ac_default_prefix=/usr/local/classpath
  243. # Factoring default headers for most tests.
  244. ac_includes_default="\
  245. #include <stdio.h>
  246. #if HAVE_SYS_TYPES_H
  247. # include <sys/types.h>
  248. #endif
  249. #if HAVE_SYS_STAT_H
  250. # include <sys/stat.h>
  251. #endif
  252. #if STDC_HEADERS
  253. # include <stdlib.h>
  254. # include <stddef.h>
  255. #else
  256. # if HAVE_STDLIB_H
  257. # include <stdlib.h>
  258. # endif
  259. #endif
  260. #if HAVE_STRING_H
  261. # if !STDC_HEADERS && HAVE_MEMORY_H
  262. # include <memory.h>
  263. # endif
  264. # include <string.h>
  265. #endif
  266. #if HAVE_STRINGS_H
  267. # include <strings.h>
  268. #endif
  269. #if HAVE_INTTYPES_H
  270. # include <inttypes.h>
  271. #else
  272. # if HAVE_STDINT_H
  273. # include <stdint.h>
  274. # endif
  275. #endif
  276. #if HAVE_UNISTD_H
  277. # include <unistd.h>
  278. #endif"
  279. 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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB LIBTOOL 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 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'
  280. ac_subst_files=''
  281. # Initialize some variables set by options.
  282. ac_init_help=
  283. ac_init_version=false
  284. # The variables have the same names as the options, with
  285. # dashes changed to underlines.
  286. cache_file=/dev/null
  287. exec_prefix=NONE
  288. no_create=
  289. no_recursion=
  290. prefix=NONE
  291. program_prefix=NONE
  292. program_suffix=NONE
  293. program_transform_name=s,x,x,
  294. silent=
  295. site=
  296. srcdir=
  297. verbose=
  298. x_includes=NONE
  299. x_libraries=NONE
  300. # Installation directory options.
  301. # These are left unexpanded so users can "make install exec_prefix=/foo"
  302. # and all the variables that are supposed to be based on exec_prefix
  303. # by default will actually change.
  304. # Use braces instead of parens because sh, perl, etc. also accept them.
  305. bindir='${exec_prefix}/bin'
  306. sbindir='${exec_prefix}/sbin'
  307. libexecdir='${exec_prefix}/libexec'
  308. datadir='${prefix}/share'
  309. sysconfdir='${prefix}/etc'
  310. sharedstatedir='${prefix}/com'
  311. localstatedir='${prefix}/var'
  312. libdir='${exec_prefix}/lib'
  313. includedir='${prefix}/include'
  314. oldincludedir='/usr/include'
  315. infodir='${prefix}/info'
  316. mandir='${prefix}/man'
  317. ac_prev=
  318. for ac_option
  319. do
  320. # If the previous option needs an argument, assign it.
  321. if test -n "$ac_prev"; then
  322. eval "$ac_prev=\$ac_option"
  323. ac_prev=
  324. continue
  325. fi
  326. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  327. # Accept the important Cygnus configure options, so we can diagnose typos.
  328. case $ac_option in
  329. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  330. ac_prev=bindir ;;
  331. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  332. bindir=$ac_optarg ;;
  333. -build | --build | --buil | --bui | --bu)
  334. ac_prev=build_alias ;;
  335. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  336. build_alias=$ac_optarg ;;
  337. -cache-file | --cache-file | --cache-fil | --cache-fi \
  338. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  339. ac_prev=cache_file ;;
  340. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  341. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  342. cache_file=$ac_optarg ;;
  343. --config-cache | -C)
  344. cache_file=config.cache ;;
  345. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  346. ac_prev=datadir ;;
  347. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  348. | --da=*)
  349. datadir=$ac_optarg ;;
  350. -disable-* | --disable-*)
  351. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  352. # Reject names that are not valid shell variable names.
  353. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  354. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  355. { (exit 1); exit 1; }; }
  356. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  357. eval "enable_$ac_feature=no" ;;
  358. -enable-* | --enable-*)
  359. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  360. # Reject names that are not valid shell variable names.
  361. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  362. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  363. { (exit 1); exit 1; }; }
  364. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  365. case $ac_option in
  366. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  367. *) ac_optarg=yes ;;
  368. esac
  369. eval "enable_$ac_feature='$ac_optarg'" ;;
  370. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  371. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  372. | --exec | --exe | --ex)
  373. ac_prev=exec_prefix ;;
  374. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  375. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  376. | --exec=* | --exe=* | --ex=*)
  377. exec_prefix=$ac_optarg ;;
  378. -gas | --gas | --ga | --g)
  379. # Obsolete; use --with-gas.
  380. with_gas=yes ;;
  381. -help | --help | --hel | --he | -h)
  382. ac_init_help=long ;;
  383. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  384. ac_init_help=recursive ;;
  385. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  386. ac_init_help=short ;;
  387. -host | --host | --hos | --ho)
  388. ac_prev=host_alias ;;
  389. -host=* | --host=* | --hos=* | --ho=*)
  390. host_alias=$ac_optarg ;;
  391. -includedir | --includedir | --includedi | --included | --include \
  392. | --includ | --inclu | --incl | --inc)
  393. ac_prev=includedir ;;
  394. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  395. | --includ=* | --inclu=* | --incl=* | --inc=*)
  396. includedir=$ac_optarg ;;
  397. -infodir | --infodir | --infodi | --infod | --info | --inf)
  398. ac_prev=infodir ;;
  399. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  400. infodir=$ac_optarg ;;
  401. -libdir | --libdir | --libdi | --libd)
  402. ac_prev=libdir ;;
  403. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  404. libdir=$ac_optarg ;;
  405. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  406. | --libexe | --libex | --libe)
  407. ac_prev=libexecdir ;;
  408. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  409. | --libexe=* | --libex=* | --libe=*)
  410. libexecdir=$ac_optarg ;;
  411. -localstatedir | --localstatedir | --localstatedi | --localstated \
  412. | --localstate | --localstat | --localsta | --localst \
  413. | --locals | --local | --loca | --loc | --lo)
  414. ac_prev=localstatedir ;;
  415. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  416. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  417. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  418. localstatedir=$ac_optarg ;;
  419. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  420. ac_prev=mandir ;;
  421. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  422. mandir=$ac_optarg ;;
  423. -nfp | --nfp | --nf)
  424. # Obsolete; use --without-fp.
  425. with_fp=no ;;
  426. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  427. | --no-cr | --no-c | -n)
  428. no_create=yes ;;
  429. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  430. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  431. no_recursion=yes ;;
  432. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  433. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  434. | --oldin | --oldi | --old | --ol | --o)
  435. ac_prev=oldincludedir ;;
  436. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  437. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  438. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  439. oldincludedir=$ac_optarg ;;
  440. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  441. ac_prev=prefix ;;
  442. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  443. prefix=$ac_optarg ;;
  444. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  445. | --program-pre | --program-pr | --program-p)
  446. ac_prev=program_prefix ;;
  447. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  448. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  449. program_prefix=$ac_optarg ;;
  450. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  451. | --program-suf | --program-su | --program-s)
  452. ac_prev=program_suffix ;;
  453. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  454. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  455. program_suffix=$ac_optarg ;;
  456. -program-transform-name | --program-transform-name \
  457. | --program-transform-nam | --program-transform-na \
  458. | --program-transform-n | --program-transform- \
  459. | --program-transform | --program-transfor \
  460. | --program-transfo | --program-transf \
  461. | --program-trans | --program-tran \
  462. | --progr-tra | --program-tr | --program-t)
  463. ac_prev=program_transform_name ;;
  464. -program-transform-name=* | --program-transform-name=* \
  465. | --program-transform-nam=* | --program-transform-na=* \
  466. | --program-transform-n=* | --program-transform-=* \
  467. | --program-transform=* | --program-transfor=* \
  468. | --program-transfo=* | --program-transf=* \
  469. | --program-trans=* | --program-tran=* \
  470. | --progr-tra=* | --program-tr=* | --program-t=*)
  471. program_transform_name=$ac_optarg ;;
  472. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  473. | -silent | --silent | --silen | --sile | --sil)
  474. silent=yes ;;
  475. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  476. ac_prev=sbindir ;;
  477. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  478. | --sbi=* | --sb=*)
  479. sbindir=$ac_optarg ;;
  480. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  481. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  482. | --sharedst | --shareds | --shared | --share | --shar \
  483. | --sha | --sh)
  484. ac_prev=sharedstatedir ;;
  485. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  486. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  487. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  488. | --sha=* | --sh=*)
  489. sharedstatedir=$ac_optarg ;;
  490. -site | --site | --sit)
  491. ac_prev=site ;;
  492. -site=* | --site=* | --sit=*)
  493. site=$ac_optarg ;;
  494. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  495. ac_prev=srcdir ;;
  496. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  497. srcdir=$ac_optarg ;;
  498. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  499. | --syscon | --sysco | --sysc | --sys | --sy)
  500. ac_prev=sysconfdir ;;
  501. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  502. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  503. sysconfdir=$ac_optarg ;;
  504. -target | --target | --targe | --targ | --tar | --ta | --t)
  505. ac_prev=target_alias ;;
  506. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  507. target_alias=$ac_optarg ;;
  508. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  509. verbose=yes ;;
  510. -version | --version | --versio | --versi | --vers | -V)
  511. ac_init_version=: ;;
  512. -with-* | --with-*)
  513. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  514. # Reject names that are not valid shell variable names.
  515. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  516. { echo "$as_me: error: invalid package name: $ac_package" >&2
  517. { (exit 1); exit 1; }; }
  518. ac_package=`echo $ac_package| sed 's/-/_/g'`
  519. case $ac_option in
  520. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  521. *) ac_optarg=yes ;;
  522. esac
  523. eval "with_$ac_package='$ac_optarg'" ;;
  524. -without-* | --without-*)
  525. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  526. # Reject names that are not valid shell variable names.
  527. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  528. { echo "$as_me: error: invalid package name: $ac_package" >&2
  529. { (exit 1); exit 1; }; }
  530. ac_package=`echo $ac_package | sed 's/-/_/g'`
  531. eval "with_$ac_package=no" ;;
  532. --x)
  533. # Obsolete; use --with-x.
  534. with_x=yes ;;
  535. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  536. | --x-incl | --x-inc | --x-in | --x-i)
  537. ac_prev=x_includes ;;
  538. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  539. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  540. x_includes=$ac_optarg ;;
  541. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  542. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  543. ac_prev=x_libraries ;;
  544. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  545. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  546. x_libraries=$ac_optarg ;;
  547. -*) { echo "$as_me: error: unrecognized option: $ac_option
  548. Try \`$0 --help' for more information." >&2
  549. { (exit 1); exit 1; }; }
  550. ;;
  551. *=*)
  552. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  553. # Reject names that are not valid shell variable names.
  554. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  555. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  556. { (exit 1); exit 1; }; }
  557. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  558. eval "$ac_envvar='$ac_optarg'"
  559. export $ac_envvar ;;
  560. *)
  561. # FIXME: should be removed in autoconf 3.0.
  562. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  563. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  564. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  565. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  566. ;;
  567. esac
  568. done
  569. if test -n "$ac_prev"; then
  570. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  571. { echo "$as_me: error: missing argument to $ac_option" >&2
  572. { (exit 1); exit 1; }; }
  573. fi
  574. # Be sure to have absolute paths.
  575. for ac_var in exec_prefix prefix
  576. do
  577. eval ac_val=$`echo $ac_var`
  578. case $ac_val in
  579. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  580. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  581. { (exit 1); exit 1; }; };;
  582. esac
  583. done
  584. # Be sure to have absolute paths.
  585. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  586. localstatedir libdir includedir oldincludedir infodir mandir
  587. do
  588. eval ac_val=$`echo $ac_var`
  589. case $ac_val in
  590. [\\/$]* | ?:[\\/]* ) ;;
  591. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  592. { (exit 1); exit 1; }; };;
  593. esac
  594. done
  595. # There might be people who depend on the old broken behavior: `$host'
  596. # used to hold the argument of --host etc.
  597. # FIXME: To remove some day.
  598. build=$build_alias
  599. host=$host_alias
  600. target=$target_alias
  601. # FIXME: To remove some day.
  602. if test "x$host_alias" != x; then
  603. if test "x$build_alias" = x; then
  604. cross_compiling=maybe
  605. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  606. If a cross compiler is detected then cross compile mode will be used." >&2
  607. elif test "x$build_alias" != "x$host_alias"; then
  608. cross_compiling=yes
  609. fi
  610. fi
  611. ac_tool_prefix=
  612. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  613. test "$silent" = yes && exec 6>/dev/null
  614. # Find the source files, if location was not specified.
  615. if test -z "$srcdir"; then
  616. ac_srcdir_defaulted=yes
  617. # Try the directory containing this script, then its parent.
  618. ac_confdir=`(dirname "$0") 2>/dev/null ||
  619. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  620. X"$0" : 'X\(//\)[^/]' \| \
  621. X"$0" : 'X\(//\)$' \| \
  622. X"$0" : 'X\(/\)' \| \
  623. . : '\(.\)' 2>/dev/null ||
  624. echo X"$0" |
  625. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  626. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  627. /^X\(\/\/\)$/{ s//\1/; q; }
  628. /^X\(\/\).*/{ s//\1/; q; }
  629. s/.*/./; q'`
  630. srcdir=$ac_confdir
  631. if test ! -r $srcdir/$ac_unique_file; then
  632. srcdir=..
  633. fi
  634. else
  635. ac_srcdir_defaulted=no
  636. fi
  637. if test ! -r $srcdir/$ac_unique_file; then
  638. if test "$ac_srcdir_defaulted" = yes; then
  639. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  640. { (exit 1); exit 1; }; }
  641. else
  642. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  643. { (exit 1); exit 1; }; }
  644. fi
  645. fi
  646. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  647. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  648. { (exit 1); exit 1; }; }
  649. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  650. ac_env_build_alias_set=${build_alias+set}
  651. ac_env_build_alias_value=$build_alias
  652. ac_cv_env_build_alias_set=${build_alias+set}
  653. ac_cv_env_build_alias_value=$build_alias
  654. ac_env_host_alias_set=${host_alias+set}
  655. ac_env_host_alias_value=$host_alias
  656. ac_cv_env_host_alias_set=${host_alias+set}
  657. ac_cv_env_host_alias_value=$host_alias
  658. ac_env_target_alias_set=${target_alias+set}
  659. ac_env_target_alias_value=$target_alias
  660. ac_cv_env_target_alias_set=${target_alias+set}
  661. ac_cv_env_target_alias_value=$target_alias
  662. ac_env_CC_set=${CC+set}
  663. ac_env_CC_value=$CC
  664. ac_cv_env_CC_set=${CC+set}
  665. ac_cv_env_CC_value=$CC
  666. ac_env_CFLAGS_set=${CFLAGS+set}
  667. ac_env_CFLAGS_value=$CFLAGS
  668. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  669. ac_cv_env_CFLAGS_value=$CFLAGS
  670. ac_env_LDFLAGS_set=${LDFLAGS+set}
  671. ac_env_LDFLAGS_value=$LDFLAGS
  672. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  673. ac_cv_env_LDFLAGS_value=$LDFLAGS
  674. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  675. ac_env_CPPFLAGS_value=$CPPFLAGS
  676. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  677. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  678. ac_env_CPP_set=${CPP+set}
  679. ac_env_CPP_value=$CPP
  680. ac_cv_env_CPP_set=${CPP+set}
  681. ac_cv_env_CPP_value=$CPP
  682. ac_env_CXX_set=${CXX+set}
  683. ac_env_CXX_value=$CXX
  684. ac_cv_env_CXX_set=${CXX+set}
  685. ac_cv_env_CXX_value=$CXX
  686. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  687. ac_env_CXXFLAGS_value=$CXXFLAGS
  688. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  689. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  690. ac_env_CXXCPP_set=${CXXCPP+set}
  691. ac_env_CXXCPP_value=$CXXCPP
  692. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  693. ac_cv_env_CXXCPP_value=$CXXCPP
  694. #
  695. # Report the --help message.
  696. #
  697. if test "$ac_init_help" = "long"; then
  698. # Omit some internal or obsolete options to make the list less imposing.
  699. # This message is too long to be a string in the A/UX 3.1 sh.
  700. cat <<_ACEOF
  701. \`configure' configures GNU Classpath 0.92 to adapt to many kinds of systems.
  702. Usage: $0 [OPTION]... [VAR=VALUE]...
  703. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  704. VAR=VALUE. See below for descriptions of some of the useful variables.
  705. Defaults for the options are specified in brackets.
  706. Configuration:
  707. -h, --help display this help and exit
  708. --help=short display options specific to this package
  709. --help=recursive display the short help of all the included packages
  710. -V, --version display version information and exit
  711. -q, --quiet, --silent do not print \`checking...' messages
  712. --cache-file=FILE cache test results in FILE [disabled]
  713. -C, --config-cache alias for \`--cache-file=config.cache'
  714. -n, --no-create do not create output files
  715. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  716. _ACEOF
  717. cat <<_ACEOF
  718. Installation directories:
  719. --prefix=PREFIX install architecture-independent files in PREFIX
  720. [$ac_default_prefix]
  721. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  722. [PREFIX]
  723. By default, \`make install' will install all the files in
  724. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  725. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  726. for instance \`--prefix=\$HOME'.
  727. For better control, use the options below.
  728. Fine tuning of the installation directories:
  729. --bindir=DIR user executables [EPREFIX/bin]
  730. --sbindir=DIR system admin executables [EPREFIX/sbin]
  731. --libexecdir=DIR program executables [EPREFIX/libexec]
  732. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  733. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  734. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  735. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  736. --libdir=DIR object code libraries [EPREFIX/lib]
  737. --includedir=DIR C header files [PREFIX/include]
  738. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  739. --infodir=DIR info documentation [PREFIX/info]
  740. --mandir=DIR man documentation [PREFIX/man]
  741. _ACEOF
  742. cat <<\_ACEOF
  743. Program names:
  744. --program-prefix=PREFIX prepend PREFIX to installed program names
  745. --program-suffix=SUFFIX append SUFFIX to installed program names
  746. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  747. X features:
  748. --x-includes=DIR X include files are in DIR
  749. --x-libraries=DIR X library files are in DIR
  750. System types:
  751. --build=BUILD configure for building on BUILD [guessed]
  752. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  753. --target=TARGET configure for building compilers for TARGET [HOST]
  754. _ACEOF
  755. fi
  756. if test -n "$ac_init_help"; then
  757. case $ac_init_help in
  758. short | recursive ) echo "Configuration of GNU Classpath 0.92:";;
  759. esac
  760. cat <<\_ACEOF
  761. Optional Features:
  762. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  763. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  764. --enable-multilib build many library versions (default)
  765. --enable-collections create collections.jar default=no
  766. --enable-jni compile JNI source default=yes
  767. --enable-core-jni compile JNI sources for core default=yes
  768. --enable-default-preferences-peer
  769. fully qualified class name of default Preferences
  770. API Backend
  771. --disable-gconf-peer compile GConf native peers (disabled by
  772. --disable-jni) default=yes
  773. --enable-Werror whether to compile C code with -Werror which turns
  774. any compiler warning into a compilation failure
  775. default=no
  776. --enable-default-toolkit
  777. fully qualified class name of default AWT toolkit
  778. --enable-xmlj compile native libxml/xslt library default=no
  779. --disable-alsa compile ALSA providers (enable by --enable-alsa)
  780. default=yes
  781. --disable-dependency-tracking speeds up one-time build
  782. --enable-dependency-tracking do not reject slow dependency extractors
  783. --disable-dssi compile DSSI providers (enable by --enable-dssi)
  784. default=yes
  785. --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
  786. default=yes
  787. --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
  788. default=no
  789. --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
  790. default=yes
  791. --enable-regen-headers automatically regenerate JNI headers default=no
  792. --enable-tool-wrappers create tool wrapper binaries default=no
  793. --enable-static=PKGS build static libraries default=no
  794. --enable-shared=PKGS build shared libraries default=yes
  795. --enable-fast-install=PKGS optimize for fast installation default=yes
  796. --disable-libtool-lock avoid locking (might break parallel builds)
  797. --disable-rpath do not hardcode runtime library paths
  798. --enable-maintainer-mode enable make rules and dependencies not useful
  799. (and sometimes confusing) to the casual installer
  800. --enable-debug enable runtime debugging code
  801. --enable-load-library enable to use JNI native methods default=yes
  802. --enable-java-lang-system-explicit-initialization
  803. will the VM explicitly invoke java.lang.System's
  804. static initialization methods default=no
  805. --enable-examples enable build of the examples default=yes
  806. --enable-portable-native-sync
  807. synchronize VM threads portably
  808. --enable-local-sockets enables local (AF_LOCAL) socket API default: no
  809. Optional Packages:
  810. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  811. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  812. --with-native-libdir sets the installation directory for native libraries
  813. default='${libdir}/${PACKAGE}'
  814. --with-glibj-dir sets the installation directory for glibj.zip
  815. default='${libdir}/${PACKAGE}'
  816. --with-vm sets the VM binary name
  817. default='${prefix}/bin/jamvm'
  818. --with-gnu-ld assume the C compiler uses GNU ld default=no
  819. --with-pic try to use only PIC/non-PIC objects default=use both
  820. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  821. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  822. --with-x use the X Window System
  823. --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
  824. systems use pkg-config.
  825. --with-javah specify path or name of a javah-like program
  826. --with-gcj bytecode compilation with gcj
  827. --with-jikes bytecode compilation with jikes
  828. --with-kjc bytecode compilation with kjc
  829. --with-gcjx bytecode compilation with gcjx
  830. --with-ecj bytecode compilation with ecj
  831. --with-classpath specify path to a classes.zip like file
  832. --with-vm-classes specify path to VM override source files
  833. --with-fastjar=PATH define to use a fastjar style tool
  834. --with-glibj define what to install (zip|flat|both|none|build)
  835. [default=zip]
  836. --with-gjdoc generate documentation using gjdoc (default is NO)
  837. --with-jay Regenerate the parsers with jay must be given the
  838. path to the jay executable
  839. --with-glibj-zip=ABS.PATH
  840. use prebuilt glibj.zip class library
  841. --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
  842. Some influential environment variables:
  843. CC C compiler command
  844. CFLAGS C compiler flags
  845. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  846. nonstandard directory <lib dir>
  847. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  848. headers in a nonstandard directory <include dir>
  849. CPP C preprocessor
  850. CXX C++ compiler command
  851. CXXFLAGS C++ compiler flags
  852. CXXCPP C++ preprocessor
  853. Use these variables to override the choices made by `configure' or to help
  854. it to find libraries and programs with nonstandard names/locations.
  855. Report bugs to <classpath@gnu.org>.
  856. _ACEOF
  857. fi
  858. if test "$ac_init_help" = "recursive"; then
  859. # If there are subdirs, report their specific --help.
  860. ac_popdir=`pwd`
  861. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  862. test -d $ac_dir || continue
  863. ac_builddir=.
  864. if test "$ac_dir" != .; then
  865. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  866. # A "../" for each directory in $ac_dir_suffix.
  867. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  868. else
  869. ac_dir_suffix= ac_top_builddir=
  870. fi
  871. case $srcdir in
  872. .) # No --srcdir option. We are building in place.
  873. ac_srcdir=.
  874. if test -z "$ac_top_builddir"; then
  875. ac_top_srcdir=.
  876. else
  877. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  878. fi ;;
  879. [\\/]* | ?:[\\/]* ) # Absolute path.
  880. ac_srcdir=$srcdir$ac_dir_suffix;
  881. ac_top_srcdir=$srcdir ;;
  882. *) # Relative path.
  883. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  884. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  885. esac
  886. # Do not use `cd foo && pwd` to compute absolute paths, because
  887. # the directories may not exist.
  888. case `pwd` in
  889. .) ac_abs_builddir="$ac_dir";;
  890. *)
  891. case "$ac_dir" in
  892. .) ac_abs_builddir=`pwd`;;
  893. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  894. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  895. esac;;
  896. esac
  897. case $ac_abs_builddir in
  898. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  899. *)
  900. case ${ac_top_builddir}. in
  901. .) ac_abs_top_builddir=$ac_abs_builddir;;
  902. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  903. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  904. esac;;
  905. esac
  906. case $ac_abs_builddir in
  907. .) ac_abs_srcdir=$ac_srcdir;;
  908. *)
  909. case $ac_srcdir in
  910. .) ac_abs_srcdir=$ac_abs_builddir;;
  911. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  912. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  913. esac;;
  914. esac
  915. case $ac_abs_builddir in
  916. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  917. *)
  918. case $ac_top_srcdir in
  919. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  920. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  921. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  922. esac;;
  923. esac
  924. cd $ac_dir
  925. # Check for guested configure; otherwise get Cygnus style configure.
  926. if test -f $ac_srcdir/configure.gnu; then
  927. echo
  928. $SHELL $ac_srcdir/configure.gnu --help=recursive
  929. elif test -f $ac_srcdir/configure; then
  930. echo
  931. $SHELL $ac_srcdir/configure --help=recursive
  932. elif test -f $ac_srcdir/configure.ac ||
  933. test -f $ac_srcdir/configure.in; then
  934. echo
  935. $ac_configure --help
  936. else
  937. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  938. fi
  939. cd $ac_popdir
  940. done
  941. fi
  942. test -n "$ac_init_help" && exit 0
  943. if $ac_init_version; then
  944. cat <<\_ACEOF
  945. GNU Classpath configure 0.92
  946. generated by GNU Autoconf 2.59
  947. Copyright (C) 2003 Free Software Foundation, Inc.
  948. This configure script is free software; the Free Software Foundation
  949. gives unlimited permission to copy, distribute and modify it.
  950. _ACEOF
  951. exit 0
  952. fi
  953. exec 5>config.log
  954. cat >&5 <<_ACEOF
  955. This file contains any messages produced by compilers while
  956. running configure, to aid debugging if configure makes a mistake.
  957. It was created by GNU Classpath $as_me 0.92, which was
  958. generated by GNU Autoconf 2.59. Invocation command line was
  959. $ $0 $@
  960. _ACEOF
  961. {
  962. cat <<_ASUNAME
  963. ## --------- ##
  964. ## Platform. ##
  965. ## --------- ##
  966. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  967. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  968. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  969. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  970. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  971. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  972. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  973. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  974. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  975. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  976. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  977. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  978. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  979. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  980. _ASUNAME
  981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  982. for as_dir in $PATH
  983. do
  984. IFS=$as_save_IFS
  985. test -z "$as_dir" && as_dir=.
  986. echo "PATH: $as_dir"
  987. done
  988. } >&5
  989. cat >&5 <<_ACEOF
  990. ## ----------- ##
  991. ## Core tests. ##
  992. ## ----------- ##
  993. _ACEOF
  994. # Keep a trace of the command line.
  995. # Strip out --no-create and --no-recursion so they do not pile up.
  996. # Strip out --silent because we don't want to record it for future runs.
  997. # Also quote any args containing shell meta-characters.
  998. # Make two passes to allow for proper duplicate-argument suppression.
  999. ac_configure_args=
  1000. ac_configure_args0=
  1001. ac_configure_args1=
  1002. ac_sep=
  1003. ac_must_keep_next=false
  1004. for ac_pass in 1 2
  1005. do
  1006. for ac_arg
  1007. do
  1008. case $ac_arg in
  1009. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1010. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1011. | -silent | --silent | --silen | --sile | --sil)
  1012. continue ;;
  1013. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1014. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1015. esac
  1016. case $ac_pass in
  1017. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1018. 2)
  1019. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1020. if test $ac_must_keep_next = true; then
  1021. ac_must_keep_next=false # Got value, back to normal.
  1022. else
  1023. case $ac_arg in
  1024. *=* | --config-cache | -C | -disable-* | --disable-* \
  1025. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1026. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1027. | -with-* | --with-* | -without-* | --without-* | --x)
  1028. case "$ac_configure_args0 " in
  1029. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1030. esac
  1031. ;;
  1032. -* ) ac_must_keep_next=true ;;
  1033. esac
  1034. fi
  1035. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1036. # Get rid of the leading space.
  1037. ac_sep=" "
  1038. ;;
  1039. esac
  1040. done
  1041. done
  1042. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1043. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1044. # When interrupted or exit'd, cleanup temporary files, and complete
  1045. # config.log. We remove comments because anyway the quotes in there
  1046. # would cause problems or look ugly.
  1047. # WARNING: Be sure not to use single quotes in there, as some shells,
  1048. # such as our DU 5.0 friend, will then `close' the trap.
  1049. trap 'exit_status=$?
  1050. # Save into config.log some information that might help in debugging.
  1051. {
  1052. echo
  1053. cat <<\_ASBOX
  1054. ## ---------------- ##
  1055. ## Cache variables. ##
  1056. ## ---------------- ##
  1057. _ASBOX
  1058. echo
  1059. # The following way of writing the cache mishandles newlines in values,
  1060. {
  1061. (set) 2>&1 |
  1062. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1063. *ac_space=\ *)
  1064. sed -n \
  1065. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1066. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1067. ;;
  1068. *)
  1069. sed -n \
  1070. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1071. ;;
  1072. esac;
  1073. }
  1074. echo
  1075. cat <<\_ASBOX
  1076. ## ----------------- ##
  1077. ## Output variables. ##
  1078. ## ----------------- ##
  1079. _ASBOX
  1080. echo
  1081. for ac_var in $ac_subst_vars
  1082. do
  1083. eval ac_val=$`echo $ac_var`
  1084. echo "$ac_var='"'"'$ac_val'"'"'"
  1085. done | sort
  1086. echo
  1087. if test -n "$ac_subst_files"; then
  1088. cat <<\_ASBOX
  1089. ## ------------- ##
  1090. ## Output files. ##
  1091. ## ------------- ##
  1092. _ASBOX
  1093. echo
  1094. for ac_var in $ac_subst_files
  1095. do
  1096. eval ac_val=$`echo $ac_var`
  1097. echo "$ac_var='"'"'$ac_val'"'"'"
  1098. done | sort
  1099. echo
  1100. fi
  1101. if test -s confdefs.h; then
  1102. cat <<\_ASBOX
  1103. ## ----------- ##
  1104. ## confdefs.h. ##
  1105. ## ----------- ##
  1106. _ASBOX
  1107. echo
  1108. sed "/^$/d" confdefs.h | sort
  1109. echo
  1110. fi
  1111. test "$ac_signal" != 0 &&
  1112. echo "$as_me: caught signal $ac_signal"
  1113. echo "$as_me: exit $exit_status"
  1114. } >&5
  1115. rm -f core *.core &&
  1116. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1117. exit $exit_status
  1118. ' 0
  1119. for ac_signal in 1 2 13 15; do
  1120. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1121. done
  1122. ac_signal=0
  1123. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1124. rm -rf conftest* confdefs.h
  1125. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1126. echo >confdefs.h
  1127. # Predefined preprocessor variables.
  1128. cat >>confdefs.h <<_ACEOF
  1129. #define PACKAGE_NAME "$PACKAGE_NAME"
  1130. _ACEOF
  1131. cat >>confdefs.h <<_ACEOF
  1132. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1133. _ACEOF
  1134. cat >>confdefs.h <<_ACEOF
  1135. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1136. _ACEOF
  1137. cat >>confdefs.h <<_ACEOF
  1138. #define PACKAGE_STRING "$PACKAGE_STRING"
  1139. _ACEOF
  1140. cat >>confdefs.h <<_ACEOF
  1141. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1142. _ACEOF
  1143. # Let the site file select an alternate cache file if it wants to.
  1144. # Prefer explicitly selected file to automatically selected ones.
  1145. if test -z "$CONFIG_SITE"; then
  1146. if test "x$prefix" != xNONE; then
  1147. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1148. else
  1149. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1150. fi
  1151. fi
  1152. for ac_site_file in $CONFIG_SITE; do
  1153. if test -r "$ac_site_file"; then
  1154. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1155. echo "$as_me: loading site script $ac_site_file" >&6;}
  1156. sed 's/^/| /' "$ac_site_file" >&5
  1157. . "$ac_site_file"
  1158. fi
  1159. done
  1160. if test -r "$cache_file"; then
  1161. # Some versions of bash will fail to source /dev/null (special
  1162. # files actually), so we avoid doing that.
  1163. if test -f "$cache_file"; then
  1164. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1165. echo "$as_me: loading cache $cache_file" >&6;}
  1166. case $cache_file in
  1167. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1168. *) . ./$cache_file;;
  1169. esac
  1170. fi
  1171. else
  1172. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1173. echo "$as_me: creating cache $cache_file" >&6;}
  1174. >$cache_file
  1175. fi
  1176. # Check that the precious variables saved in the cache have kept the same
  1177. # value.
  1178. ac_cache_corrupted=false
  1179. for ac_var in `(set) 2>&1 |
  1180. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1181. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1182. eval ac_new_set=\$ac_env_${ac_var}_set
  1183. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1184. eval ac_new_val="\$ac_env_${ac_var}_value"
  1185. case $ac_old_set,$ac_new_set in
  1186. set,)
  1187. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1188. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1189. ac_cache_corrupted=: ;;
  1190. ,set)
  1191. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1192. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1193. ac_cache_corrupted=: ;;
  1194. ,);;
  1195. *)
  1196. if test "x$ac_old_val" != "x$ac_new_val"; then
  1197. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1198. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1199. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1200. echo "$as_me: former value: $ac_old_val" >&2;}
  1201. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1202. echo "$as_me: current value: $ac_new_val" >&2;}
  1203. ac_cache_corrupted=:
  1204. fi;;
  1205. esac
  1206. # Pass precious variables to config.status.
  1207. if test "$ac_new_set" = set; then
  1208. case $ac_new_val in
  1209. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1210. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1211. *) ac_arg=$ac_var=$ac_new_val ;;
  1212. esac
  1213. case " $ac_configure_args " in
  1214. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1215. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1216. esac
  1217. fi
  1218. done
  1219. if $ac_cache_corrupted; then
  1220. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1221. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1222. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1223. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1224. { (exit 1); exit 1; }; }
  1225. fi
  1226. ac_ext=c
  1227. ac_cpp='$CPP $CPPFLAGS'
  1228. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1229. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1230. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1231. ac_aux_dir=
  1232. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1233. if test -f $ac_dir/install-sh; then
  1234. ac_aux_dir=$ac_dir
  1235. ac_install_sh="$ac_aux_dir/install-sh -c"
  1236. break
  1237. elif test -f $ac_dir/install.sh; then
  1238. ac_aux_dir=$ac_dir
  1239. ac_install_sh="$ac_aux_dir/install.sh -c"
  1240. break
  1241. elif test -f $ac_dir/shtool; then
  1242. ac_aux_dir=$ac_dir
  1243. ac_install_sh="$ac_aux_dir/shtool install -c"
  1244. break
  1245. fi
  1246. done
  1247. if test -z "$ac_aux_dir"; then
  1248. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1249. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1250. { (exit 1); exit 1; }; }
  1251. fi
  1252. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1253. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1254. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1255. # Make sure we can run config.sub.
  1256. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1257. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1258. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1259. { (exit 1); exit 1; }; }
  1260. echo "$as_me:$LINENO: checking build system type" >&5
  1261. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1262. if test "${ac_cv_build+set}" = set; then
  1263. echo $ECHO_N "(cached) $ECHO_C" >&6
  1264. else
  1265. ac_cv_build_alias=$build_alias
  1266. test -z "$ac_cv_build_alias" &&
  1267. ac_cv_build_alias=`$ac_config_guess`
  1268. test -z "$ac_cv_build_alias" &&
  1269. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1270. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1271. { (exit 1); exit 1; }; }
  1272. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1273. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1274. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1275. { (exit 1); exit 1; }; }
  1276. fi
  1277. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1278. echo "${ECHO_T}$ac_cv_build" >&6
  1279. build=$ac_cv_build
  1280. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1281. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1282. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1283. echo "$as_me:$LINENO: checking host system type" >&5
  1284. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1285. if test "${ac_cv_host+set}" = set; then
  1286. echo $ECHO_N "(cached) $ECHO_C" >&6
  1287. else
  1288. ac_cv_host_alias=$host_alias
  1289. test -z "$ac_cv_host_alias" &&
  1290. ac_cv_host_alias=$ac_cv_build_alias
  1291. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1292. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1293. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1294. { (exit 1); exit 1; }; }
  1295. fi
  1296. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1297. echo "${ECHO_T}$ac_cv_host" >&6
  1298. host=$ac_cv_host
  1299. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1300. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1301. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1302. echo "$as_me:$LINENO: checking target system type" >&5
  1303. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1304. if test "${ac_cv_target+set}" = set; then
  1305. echo $ECHO_N "(cached) $ECHO_C" >&6
  1306. else
  1307. ac_cv_target_alias=$target_alias
  1308. test "x$ac_cv_target_alias" = "x" &&
  1309. ac_cv_target_alias=$ac_cv_host_alias
  1310. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1311. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1312. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1313. { (exit 1); exit 1; }; }
  1314. fi
  1315. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1316. echo "${ECHO_T}$ac_cv_target" >&6
  1317. target=$ac_cv_target
  1318. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1319. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1320. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1321. # The aliases save the names the user supplied, while $host etc.
  1322. # will get canonicalized.
  1323. test -n "$target_alias" &&
  1324. test "$program_prefix$program_suffix$program_transform_name" = \
  1325. NONENONEs,x,x, &&
  1326. program_prefix=${target_alias}-
  1327. # Find the rest of the source tree framework.
  1328. # Default to --enable-multilib
  1329. # Check whether --enable-multilib or --disable-multilib was given.
  1330. if test "${enable_multilib+set}" = set; then
  1331. enableval="$enable_multilib"
  1332. case "$enableval" in
  1333. yes) multilib=yes ;;
  1334. no) multilib=no ;;
  1335. *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
  1336. echo "$as_me: error: bad value $enableval for multilib option" >&2;}
  1337. { (exit 1); exit 1; }; } ;;
  1338. esac
  1339. else
  1340. multilib=yes
  1341. fi;
  1342. # We may get other options which we leave undocumented:
  1343. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  1344. # See config-ml.in if you want the gory details.
  1345. if test "$srcdir" = "."; then
  1346. if test "$with_target_subdir" != "."; then
  1347. multi_basedir="$srcdir/$with_multisrctop../../.."
  1348. else
  1349. multi_basedir="$srcdir/$with_multisrctop../.."
  1350. fi
  1351. else
  1352. multi_basedir="$srcdir/../.."
  1353. fi
  1354. # Even if the default multilib is not a cross compilation,
  1355. # it may be that some of the other multilibs are.
  1356. if test $cross_compiling = no && test $multilib = yes \
  1357. && test "x${with_multisubdir}" != x ; then
  1358. cross_compiling=maybe
  1359. fi
  1360. ac_config_commands="$ac_config_commands default-1"
  1361. if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
  1362. LIBVERSION="0:0:0"
  1363. case "$host_os" in
  1364. darwin*)
  1365. cp_module=""
  1366. ;;
  1367. *)
  1368. cp_module="-module"
  1369. ;;
  1370. esac
  1371. CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
  1372. CLASSPATH_CONVENIENCE="-no-undefined"
  1373. am__api_version="1.9"
  1374. # Find a good install program. We prefer a C program (faster),
  1375. # so one script is as good as another. But avoid the broken or
  1376. # incompatible versions:
  1377. # SysV /etc/install, /usr/sbin/install
  1378. # SunOS /usr/etc/install
  1379. # IRIX /sbin/install
  1380. # AIX /bin/install
  1381. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1382. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1383. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1384. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1385. # OS/2's system install, which has a completely different semantic
  1386. # ./install, which can be erroneously created by make from ./install.sh.
  1387. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1388. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1389. if test -z "$INSTALL"; then
  1390. if test "${ac_cv_path_install+set}" = set; then
  1391. echo $ECHO_N "(cached) $ECHO_C" >&6
  1392. else
  1393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1394. for as_dir in $PATH
  1395. do
  1396. IFS=$as_save_IFS
  1397. test -z "$as_dir" && as_dir=.
  1398. # Account for people who put trailing slashes in PATH elements.
  1399. case $as_dir/ in
  1400. ./ | .// | /cC/* | \
  1401. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1402. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1403. /usr/ucb/* ) ;;
  1404. *)
  1405. # OSF1 and SCO ODT 3.0 have their own names for install.
  1406. # Don't use installbsd from OSF since it installs stuff as root
  1407. # by default.
  1408. for ac_prog in ginstall scoinst install; do
  1409. for ac_exec_ext in '' $ac_executable_extensions; do
  1410. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1411. if test $ac_prog = install &&
  1412. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1413. # AIX install. It has an incompatible calling convention.
  1414. :
  1415. elif test $ac_prog = install &&
  1416. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1417. # program-specific install script used by HP pwplus--don't use.
  1418. :
  1419. else
  1420. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1421. break 3
  1422. fi
  1423. fi
  1424. done
  1425. done
  1426. ;;
  1427. esac
  1428. done
  1429. fi
  1430. if test "${ac_cv_path_install+set}" = set; then
  1431. INSTALL=$ac_cv_path_install
  1432. else
  1433. # As a last resort, use the slow shell script. We don't cache a
  1434. # path for INSTALL within a source directory, because that will
  1435. # break other packages using the cache if that directory is
  1436. # removed, or if the path is relative.
  1437. INSTALL=$ac_install_sh
  1438. fi
  1439. fi
  1440. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1441. echo "${ECHO_T}$INSTALL" >&6
  1442. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1443. # It thinks the first close brace ends the variable substitution.
  1444. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1445. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1446. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1447. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1448. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1449. # Just in case
  1450. sleep 1
  1451. echo timestamp > conftest.file
  1452. # Do `set' in a subshell so we don't clobber the current shell's
  1453. # arguments. Must try -L first in case configure is actually a
  1454. # symlink; some systems play weird games with the mod time of symlinks
  1455. # (eg FreeBSD returns the mod time of the symlink's containing
  1456. # directory).
  1457. if (
  1458. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1459. if test "$*" = "X"; then
  1460. # -L didn't work.
  1461. set X `ls -t $srcdir/configure conftest.file`
  1462. fi
  1463. rm -f conftest.file
  1464. if test "$*" != "X $srcdir/configure conftest.file" \
  1465. && test "$*" != "X conftest.file $srcdir/configure"; then
  1466. # If neither matched, then we have a broken ls. This can happen
  1467. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1468. # broken ls alias from the environment. This has actually
  1469. # happened. Such a system could not be considered "sane".
  1470. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1471. alias in your environment" >&5
  1472. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1473. alias in your environment" >&2;}
  1474. { (exit 1); exit 1; }; }
  1475. fi
  1476. test "$2" = conftest.file
  1477. )
  1478. then
  1479. # Ok.
  1480. :
  1481. else
  1482. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1483. Check your system clock" >&5
  1484. echo "$as_me: error: newly created file is older than distributed files!
  1485. Check your system clock" >&2;}
  1486. { (exit 1); exit 1; }; }
  1487. fi
  1488. echo "$as_me:$LINENO: result: yes" >&5
  1489. echo "${ECHO_T}yes" >&6
  1490. test "$program_prefix" != NONE &&
  1491. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1492. # Use a double $ so make ignores it.
  1493. test "$program_suffix" != NONE &&
  1494. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1495. # Double any \ or $. echo might interpret backslashes.
  1496. # By default was `s,x,x', remove it if useless.
  1497. cat <<\_ACEOF >conftest.sed
  1498. s/[\\$]/&&/g;s/;s,x,x,$//
  1499. _ACEOF
  1500. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1501. rm conftest.sed
  1502. # expand $ac_aux_dir to an absolute path
  1503. am_aux_dir=`cd $ac_aux_dir && pwd`
  1504. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1505. # Use eval to expand $SHELL
  1506. if eval "$MISSING --run true"; then
  1507. am_missing_run="$MISSING --run "
  1508. else
  1509. am_missing_run=
  1510. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1511. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1512. fi
  1513. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1514. # We used to keeping the `.' as first argument, in order to
  1515. # allow $(mkdir_p) to be used without argument. As in
  1516. # $(mkdir_p) $(somedir)
  1517. # where $(somedir) is conditionally defined. However this is wrong
  1518. # for two reasons:
  1519. # 1. if the package is installed by a user who cannot write `.'
  1520. # make install will fail,
  1521. # 2. the above comment should most certainly read
  1522. # $(mkdir_p) $(DESTDIR)$(somedir)
  1523. # so it does not work when $(somedir) is undefined and
  1524. # $(DESTDIR) is not.
  1525. # To support the latter case, we have to write
  1526. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1527. # so the `.' trick is pointless.
  1528. mkdir_p='mkdir -p --'
  1529. else
  1530. # On NextStep and OpenStep, the `mkdir' command does not
  1531. # recognize any option. It will interpret all options as
  1532. # directories to create, and then abort because `.' already
  1533. # exists.
  1534. for d in ./-p ./--version;
  1535. do
  1536. test -d $d && rmdir $d
  1537. done
  1538. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1539. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1540. mkdir_p='$(mkinstalldirs)'
  1541. else
  1542. mkdir_p='$(install_sh) -d'
  1543. fi
  1544. fi
  1545. for ac_prog in gawk mawk nawk awk
  1546. do
  1547. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1548. set dummy $ac_prog; ac_word=$2
  1549. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1550. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1551. if test "${ac_cv_prog_AWK+set}" = set; then
  1552. echo $ECHO_N "(cached) $ECHO_C" >&6
  1553. else
  1554. if test -n "$AWK"; then
  1555. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1556. else
  1557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1558. for as_dir in $PATH
  1559. do
  1560. IFS=$as_save_IFS
  1561. test -z "$as_dir" && as_dir=.
  1562. for ac_exec_ext in '' $ac_executable_extensions; do
  1563. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1564. ac_cv_prog_AWK="$ac_prog"
  1565. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1566. break 2
  1567. fi
  1568. done
  1569. done
  1570. fi
  1571. fi
  1572. AWK=$ac_cv_prog_AWK
  1573. if test -n "$AWK"; then
  1574. echo "$as_me:$LINENO: result: $AWK" >&5
  1575. echo "${ECHO_T}$AWK" >&6
  1576. else
  1577. echo "$as_me:$LINENO: result: no" >&5
  1578. echo "${ECHO_T}no" >&6
  1579. fi
  1580. test -n "$AWK" && break
  1581. done
  1582. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1583. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1584. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1585. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1586. echo $ECHO_N "(cached) $ECHO_C" >&6
  1587. else
  1588. cat >conftest.make <<\_ACEOF
  1589. all:
  1590. @echo 'ac_maketemp="$(MAKE)"'
  1591. _ACEOF
  1592. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1593. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1594. if test -n "$ac_maketemp"; then
  1595. eval ac_cv_prog_make_${ac_make}_set=yes
  1596. else
  1597. eval ac_cv_prog_make_${ac_make}_set=no
  1598. fi
  1599. rm -f conftest.make
  1600. fi
  1601. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1602. echo "$as_me:$LINENO: result: yes" >&5
  1603. echo "${ECHO_T}yes" >&6
  1604. SET_MAKE=
  1605. else
  1606. echo "$as_me:$LINENO: result: no" >&5
  1607. echo "${ECHO_T}no" >&6
  1608. SET_MAKE="MAKE=${MAKE-make}"
  1609. fi
  1610. rm -rf .tst 2>/dev/null
  1611. mkdir .tst 2>/dev/null
  1612. if test -d .tst; then
  1613. am__leading_dot=.
  1614. else
  1615. am__leading_dot=_
  1616. fi
  1617. rmdir .tst 2>/dev/null
  1618. # test to see if srcdir already configured
  1619. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1620. test -f $srcdir/config.status; then
  1621. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1622. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1623. { (exit 1); exit 1; }; }
  1624. fi
  1625. # test whether we have cygpath
  1626. if test -z "$CYGPATH_W"; then
  1627. if (cygpath --version) >/dev/null 2>/dev/null; then
  1628. CYGPATH_W='cygpath -w'
  1629. else
  1630. CYGPATH_W=echo
  1631. fi
  1632. fi
  1633. # Define the identity of the package.
  1634. PACKAGE='classpath'
  1635. VERSION='0.92'
  1636. cat >>confdefs.h <<_ACEOF
  1637. #define PACKAGE "$PACKAGE"
  1638. _ACEOF
  1639. cat >>confdefs.h <<_ACEOF
  1640. #define VERSION "$VERSION"
  1641. _ACEOF
  1642. # Some tools Automake needs.
  1643. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1644. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1645. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1646. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1647. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1648. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1649. # Installed binaries are usually stripped using `strip' when the user
  1650. # run `make install-strip'. However `strip' might not be the right
  1651. # tool to use in cross-compilation environments, therefore Automake
  1652. # will honor the `STRIP' environment variable to overrule this program.
  1653. if test "$cross_compiling" != no; then
  1654. if test -n "$ac_tool_prefix"; then
  1655. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1656. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1657. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1658. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1659. if test "${ac_cv_prog_STRIP+set}" = set; then
  1660. echo $ECHO_N "(cached) $ECHO_C" >&6
  1661. else
  1662. if test -n "$STRIP"; then
  1663. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1664. else
  1665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1666. for as_dir in $PATH
  1667. do
  1668. IFS=$as_save_IFS
  1669. test -z "$as_dir" && as_dir=.
  1670. for ac_exec_ext in '' $ac_executable_extensions; do
  1671. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1672. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1673. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1674. break 2
  1675. fi
  1676. done
  1677. done
  1678. fi
  1679. fi
  1680. STRIP=$ac_cv_prog_STRIP
  1681. if test -n "$STRIP"; then
  1682. echo "$as_me:$LINENO: result: $STRIP" >&5
  1683. echo "${ECHO_T}$STRIP" >&6
  1684. else
  1685. echo "$as_me:$LINENO: result: no" >&5
  1686. echo "${ECHO_T}no" >&6
  1687. fi
  1688. fi
  1689. if test -z "$ac_cv_prog_STRIP"; then
  1690. ac_ct_STRIP=$STRIP
  1691. # Extract the first word of "strip", so it can be a program name with args.
  1692. set dummy strip; ac_word=$2
  1693. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1694. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1695. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1696. echo $ECHO_N "(cached) $ECHO_C" >&6
  1697. else
  1698. if test -n "$ac_ct_STRIP"; then
  1699. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1700. else
  1701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1702. for as_dir in $PATH
  1703. do
  1704. IFS=$as_save_IFS
  1705. test -z "$as_dir" && as_dir=.
  1706. for ac_exec_ext in '' $ac_executable_extensions; do
  1707. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1708. ac_cv_prog_ac_ct_STRIP="strip"
  1709. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1710. break 2
  1711. fi
  1712. done
  1713. done
  1714. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1715. fi
  1716. fi
  1717. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1718. if test -n "$ac_ct_STRIP"; then
  1719. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1720. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1721. else
  1722. echo "$as_me:$LINENO: result: no" >&5
  1723. echo "${ECHO_T}no" >&6
  1724. fi
  1725. STRIP=$ac_ct_STRIP
  1726. else
  1727. STRIP="$ac_cv_prog_STRIP"
  1728. fi
  1729. fi
  1730. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1731. # We need awk for the "check" target. The system "awk" is bad on
  1732. # some platforms.
  1733. # Always define AMTAR for backward compatibility.
  1734. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1735. echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
  1736. echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
  1737. # Loop over all known methods to create a tar archive until one works.
  1738. _am_tools='gnutar plaintar pax cpio none'
  1739. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  1740. # Do not fold the above two line into one, because Tru64 sh and
  1741. # Solaris sh will not grok spaces in the rhs of `-'.
  1742. for _am_tool in $_am_tools
  1743. do
  1744. case $_am_tool in
  1745. gnutar)
  1746. for _am_tar in tar gnutar gtar;
  1747. do
  1748. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  1749. ($_am_tar --version) >&5 2>&5
  1750. ac_status=$?
  1751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1752. (exit $ac_status); } && break
  1753. done
  1754. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  1755. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  1756. am__untar="$_am_tar -xf -"
  1757. ;;
  1758. plaintar)
  1759. # Must skip GNU tar: if it does not support --format= it doesn't create
  1760. # ustar tarball either.
  1761. (tar --version) >/dev/null 2>&1 && continue
  1762. am__tar='tar chf - "$$tardir"'
  1763. am__tar_='tar chf - "$tardir"'
  1764. am__untar='tar xf -'
  1765. ;;
  1766. pax)
  1767. am__tar='pax -L -x ustar -w "$$tardir"'
  1768. am__tar_='pax -L -x ustar -w "$tardir"'
  1769. am__untar='pax -r'
  1770. ;;
  1771. cpio)
  1772. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  1773. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  1774. am__untar='cpio -i -H ustar -d'
  1775. ;;
  1776. none)
  1777. am__tar=false
  1778. am__tar_=false
  1779. am__untar=false
  1780. ;;
  1781. esac
  1782. # If the value was cached, stop now. We just wanted to have am__tar
  1783. # and am__untar set.
  1784. test -n "${am_cv_prog_tar_ustar}" && break
  1785. # tar/untar a dummy directory, and stop if the command works
  1786. rm -rf conftest.dir
  1787. mkdir conftest.dir
  1788. echo GrepMe > conftest.dir/file
  1789. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  1790. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  1791. ac_status=$?
  1792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1793. (exit $ac_status); }
  1794. rm -rf conftest.dir
  1795. if test -s conftest.tar; then
  1796. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  1797. ($am__untar <conftest.tar) >&5 2>&5
  1798. ac_status=$?
  1799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1800. (exit $ac_status); }
  1801. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1802. fi
  1803. done
  1804. rm -rf conftest.dir
  1805. if test "${am_cv_prog_tar_ustar+set}" = set; then
  1806. echo $ECHO_N "(cached) $ECHO_C" >&6
  1807. else
  1808. am_cv_prog_tar_ustar=$_am_tool
  1809. fi
  1810. echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
  1811. echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
  1812. ac_config_headers="$ac_config_headers include/config.h"
  1813. # Check whether --enable-collections or --disable-collections was given.
  1814. if test "${enable_collections+set}" = set; then
  1815. enableval="$enable_collections"
  1816. case x"${enableval}" in
  1817. xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
  1818. xno) COMPILE_COLLECTIONS=no ;;
  1819. x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
  1820. *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
  1821. esac
  1822. else
  1823. COMPILE_COLLECTIONS=no
  1824. fi;
  1825. if test "x${COMPILE_COLLECTIONS}" = xyes; then
  1826. CREATE_COLLECTIONS_TRUE=
  1827. CREATE_COLLECTIONS_FALSE='#'
  1828. else
  1829. CREATE_COLLECTIONS_TRUE='#'
  1830. CREATE_COLLECTIONS_FALSE=
  1831. fi
  1832. # Check whether --enable-jni or --disable-jni was given.
  1833. if test "${enable_jni+set}" = set; then
  1834. enableval="$enable_jni"
  1835. case "${enableval}" in
  1836. yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
  1837. no) COMPILE_JNI=no ;;
  1838. *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
  1839. esac
  1840. else
  1841. COMPILE_JNI=yes
  1842. fi;
  1843. if test "x${COMPILE_JNI}" = xyes; then
  1844. CREATE_JNI_LIBRARIES_TRUE=
  1845. CREATE_JNI_LIBRARIES_FALSE='#'
  1846. else
  1847. CREATE_JNI_LIBRARIES_TRUE='#'
  1848. CREATE_JNI_LIBRARIES_FALSE=
  1849. fi
  1850. # Check whether --enable-core-jni or --disable-core-jni was given.
  1851. if test "${enable_core_jni+set}" = set; then
  1852. enableval="$enable_core_jni"
  1853. case "${enableval}" in
  1854. yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
  1855. no) COMPILE_CORE_JNI=no ;;
  1856. *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
  1857. esac
  1858. else
  1859. COMPILE_CORE_JNI=yes
  1860. fi;
  1861. if test "x${COMPILE_CORE_JNI}" = xyes; then
  1862. CREATE_CORE_JNI_LIBRARIES_TRUE=
  1863. CREATE_CORE_JNI_LIBRARIES_FALSE='#'
  1864. else
  1865. CREATE_CORE_JNI_LIBRARIES_TRUE='#'
  1866. CREATE_CORE_JNI_LIBRARIES_FALSE=
  1867. fi
  1868. # Check whether --enable-default-preferences-peer or --disable-default-preferences-peer was given.
  1869. if test "${enable_default_preferences_peer+set}" = set; then
  1870. enableval="$enable_default_preferences_peer"
  1871. fi;
  1872. DEFAULT_PREFS_PEER=$enable_default_preferences_peer
  1873. if test "$DEFAULT_PREFS_PEER" = ""; then
  1874. DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory
  1875. fi
  1876. # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
  1877. if test "${enable_gconf_peer+set}" = set; then
  1878. enableval="$enable_gconf_peer"
  1879. case "${enableval}" in
  1880. yes) COMPILE_GCONF_PEER=yes ;;
  1881. no) COMPILE_GCONF_PEER=no ;;
  1882. *) COMPILE_GCONF_PEER=yes ;;
  1883. esac
  1884. else
  1885. COMPILE_GCONF_PEER=yes
  1886. fi;
  1887. if test "x${COMPILE_GCONF_PEER}" = xyes; then
  1888. CREATE_GCONF_PEER_LIBRARIES_TRUE=
  1889. CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
  1890. else
  1891. CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
  1892. CREATE_GCONF_PEER_LIBRARIES_FALSE=
  1893. fi
  1894. # Check whether --enable-gconf-peers or --disable-gconf-peers was given.
  1895. if test "${enable_gconf_peers+set}" = set; then
  1896. enableval="$enable_gconf_peers"
  1897. { { echo "$as_me:$LINENO: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&5
  1898. echo "$as_me: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&2;}
  1899. { (exit 1); exit 1; }; }
  1900. fi;
  1901. # Check whether --enable-Werror or --disable-Werror was given.
  1902. if test "${enable_Werror+set}" = set; then
  1903. enableval="$enable_Werror"
  1904. case "${enableval}" in
  1905. yes) ENABLE_WERROR=yes ;;
  1906. no) ENABLE_WERROR=no ;;
  1907. *) ENABLE_WERROR=no ;;
  1908. esac
  1909. else
  1910. ENABLE_WERROR=no
  1911. fi;
  1912. # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
  1913. if test "${enable_default_toolkit+set}" = set; then
  1914. enableval="$enable_default_toolkit"
  1915. fi;
  1916. default_toolkit=$enable_default_toolkit
  1917. if test "$default_toolkit" = ""; then
  1918. default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
  1919. fi
  1920. # Check whether --enable-xmlj or --disable-xmlj was given.
  1921. if test "${enable_xmlj+set}" = set; then
  1922. enableval="$enable_xmlj"
  1923. case "${enableval}" in
  1924. yes) COMPILE_XMLJ=yes ;;
  1925. no) COMPILE_XMLJ=no ;;
  1926. *) COMPILE_XMLJ=no ;;
  1927. esac
  1928. else
  1929. COMPILE_XMLJ=no
  1930. fi;
  1931. if test "x${COMPILE_XMLJ}" = xyes; then
  1932. CREATE_XMLJ_LIBRARY_TRUE=
  1933. CREATE_XMLJ_LIBRARY_FALSE='#'
  1934. else
  1935. CREATE_XMLJ_LIBRARY_TRUE='#'
  1936. CREATE_XMLJ_LIBRARY_FALSE=
  1937. fi
  1938. DEPDIR="${am__leading_dot}deps"
  1939. ac_config_commands="$ac_config_commands depfiles"
  1940. am_make=${MAKE-make}
  1941. cat > confinc << 'END'
  1942. am__doit:
  1943. @echo done
  1944. .PHONY: am__doit
  1945. END
  1946. # If we don't find an include directive, just comment out the code.
  1947. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  1948. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  1949. am__include="#"
  1950. am__quote=
  1951. _am_result=none
  1952. # First try GNU make style include.
  1953. echo "include confinc" > confmf
  1954. # We grep out `Entering directory' and `Leaving directory'
  1955. # messages which can occur if `w' ends up in MAKEFLAGS.
  1956. # In particular we don't look at `^make:' because GNU make might
  1957. # be invoked under some other name (usually "gmake"), in which
  1958. # case it prints its new name instead of `make'.
  1959. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  1960. am__include=include
  1961. am__quote=
  1962. _am_result=GNU
  1963. fi
  1964. # Now try BSD make style include.
  1965. if test "$am__include" = "#"; then
  1966. echo '.include "confinc"' > confmf
  1967. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  1968. am__include=.include
  1969. am__quote="\""
  1970. _am_result=BSD
  1971. fi
  1972. fi
  1973. echo "$as_me:$LINENO: result: $_am_result" >&5
  1974. echo "${ECHO_T}$_am_result" >&6
  1975. rm -f confinc confmf
  1976. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  1977. if test "${enable_dependency_tracking+set}" = set; then
  1978. enableval="$enable_dependency_tracking"
  1979. fi;
  1980. if test "x$enable_dependency_tracking" != xno; then
  1981. am_depcomp="$ac_aux_dir/depcomp"
  1982. AMDEPBACKSLASH='\'
  1983. fi
  1984. if test "x$enable_dependency_tracking" != xno; then
  1985. AMDEP_TRUE=
  1986. AMDEP_FALSE='#'
  1987. else
  1988. AMDEP_TRUE='#'
  1989. AMDEP_FALSE=
  1990. fi
  1991. ac_ext=c
  1992. ac_cpp='$CPP $CPPFLAGS'
  1993. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1994. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1995. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1996. if test -n "$ac_tool_prefix"; then
  1997. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1998. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1999. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2000. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2001. if test "${ac_cv_prog_CC+set}" = set; then
  2002. echo $ECHO_N "(cached) $ECHO_C" >&6
  2003. else
  2004. if test -n "$CC"; then
  2005. ac_cv_prog_CC="$CC" # Let the user override the test.
  2006. else
  2007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2008. for as_dir in $PATH
  2009. do
  2010. IFS=$as_save_IFS
  2011. test -z "$as_dir" && as_dir=.
  2012. for ac_exec_ext in '' $ac_executable_extensions; do
  2013. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2014. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2015. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2016. break 2
  2017. fi
  2018. done
  2019. done
  2020. fi
  2021. fi
  2022. CC=$ac_cv_prog_CC
  2023. if test -n "$CC"; then
  2024. echo "$as_me:$LINENO: result: $CC" >&5
  2025. echo "${ECHO_T}$CC" >&6
  2026. else
  2027. echo "$as_me:$LINENO: result: no" >&5
  2028. echo "${ECHO_T}no" >&6
  2029. fi
  2030. fi
  2031. if test -z "$ac_cv_prog_CC"; then
  2032. ac_ct_CC=$CC
  2033. # Extract the first word of "gcc", so it can be a program name with args.
  2034. set dummy gcc; ac_word=$2
  2035. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2036. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2037. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2038. echo $ECHO_N "(cached) $ECHO_C" >&6
  2039. else
  2040. if test -n "$ac_ct_CC"; then
  2041. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2042. else
  2043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2044. for as_dir in $PATH
  2045. do
  2046. IFS=$as_save_IFS
  2047. test -z "$as_dir" && as_dir=.
  2048. for ac_exec_ext in '' $ac_executable_extensions; do
  2049. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2050. ac_cv_prog_ac_ct_CC="gcc"
  2051. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2052. break 2
  2053. fi
  2054. done
  2055. done
  2056. fi
  2057. fi
  2058. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2059. if test -n "$ac_ct_CC"; then
  2060. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2061. echo "${ECHO_T}$ac_ct_CC" >&6
  2062. else
  2063. echo "$as_me:$LINENO: result: no" >&5
  2064. echo "${ECHO_T}no" >&6
  2065. fi
  2066. CC=$ac_ct_CC
  2067. else
  2068. CC="$ac_cv_prog_CC"
  2069. fi
  2070. if test -z "$CC"; then
  2071. if test -n "$ac_tool_prefix"; then
  2072. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2073. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2074. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2075. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2076. if test "${ac_cv_prog_CC+set}" = set; then
  2077. echo $ECHO_N "(cached) $ECHO_C" >&6
  2078. else
  2079. if test -n "$CC"; then
  2080. ac_cv_prog_CC="$CC" # Let the user override the test.
  2081. else
  2082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2083. for as_dir in $PATH
  2084. do
  2085. IFS=$as_save_IFS
  2086. test -z "$as_dir" && as_dir=.
  2087. for ac_exec_ext in '' $ac_executable_extensions; do
  2088. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2089. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2090. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2091. break 2
  2092. fi
  2093. done
  2094. done
  2095. fi
  2096. fi
  2097. CC=$ac_cv_prog_CC
  2098. if test -n "$CC"; then
  2099. echo "$as_me:$LINENO: result: $CC" >&5
  2100. echo "${ECHO_T}$CC" >&6
  2101. else
  2102. echo "$as_me:$LINENO: result: no" >&5
  2103. echo "${ECHO_T}no" >&6
  2104. fi
  2105. fi
  2106. if test -z "$ac_cv_prog_CC"; then
  2107. ac_ct_CC=$CC
  2108. # Extract the first word of "cc", so it can be a program name with args.
  2109. set dummy cc; ac_word=$2
  2110. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2111. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2112. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2113. echo $ECHO_N "(cached) $ECHO_C" >&6
  2114. else
  2115. if test -n "$ac_ct_CC"; then
  2116. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2117. else
  2118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2119. for as_dir in $PATH
  2120. do
  2121. IFS=$as_save_IFS
  2122. test -z "$as_dir" && as_dir=.
  2123. for ac_exec_ext in '' $ac_executable_extensions; do
  2124. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2125. ac_cv_prog_ac_ct_CC="cc"
  2126. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2127. break 2
  2128. fi
  2129. done
  2130. done
  2131. fi
  2132. fi
  2133. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2134. if test -n "$ac_ct_CC"; then
  2135. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2136. echo "${ECHO_T}$ac_ct_CC" >&6
  2137. else
  2138. echo "$as_me:$LINENO: result: no" >&5
  2139. echo "${ECHO_T}no" >&6
  2140. fi
  2141. CC=$ac_ct_CC
  2142. else
  2143. CC="$ac_cv_prog_CC"
  2144. fi
  2145. fi
  2146. if test -z "$CC"; then
  2147. # Extract the first word of "cc", so it can be a program name with args.
  2148. set dummy cc; ac_word=$2
  2149. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2150. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2151. if test "${ac_cv_prog_CC+set}" = set; then
  2152. echo $ECHO_N "(cached) $ECHO_C" >&6
  2153. else
  2154. if test -n "$CC"; then
  2155. ac_cv_prog_CC="$CC" # Let the user override the test.
  2156. else
  2157. ac_prog_rejected=no
  2158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2159. for as_dir in $PATH
  2160. do
  2161. IFS=$as_save_IFS
  2162. test -z "$as_dir" && as_dir=.
  2163. for ac_exec_ext in '' $ac_executable_extensions; do
  2164. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2165. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2166. ac_prog_rejected=yes
  2167. continue
  2168. fi
  2169. ac_cv_prog_CC="cc"
  2170. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2171. break 2
  2172. fi
  2173. done
  2174. done
  2175. if test $ac_prog_rejected = yes; then
  2176. # We found a bogon in the path, so make sure we never use it.
  2177. set dummy $ac_cv_prog_CC
  2178. shift
  2179. if test $# != 0; then
  2180. # We chose a different compiler from the bogus one.
  2181. # However, it has the same basename, so the bogon will be chosen
  2182. # first if we set CC to just the basename; use the full file name.
  2183. shift
  2184. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2185. fi
  2186. fi
  2187. fi
  2188. fi
  2189. CC=$ac_cv_prog_CC
  2190. if test -n "$CC"; then
  2191. echo "$as_me:$LINENO: result: $CC" >&5
  2192. echo "${ECHO_T}$CC" >&6
  2193. else
  2194. echo "$as_me:$LINENO: result: no" >&5
  2195. echo "${ECHO_T}no" >&6
  2196. fi
  2197. fi
  2198. if test -z "$CC"; then
  2199. if test -n "$ac_tool_prefix"; then
  2200. for ac_prog in cl
  2201. do
  2202. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2203. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2204. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2205. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2206. if test "${ac_cv_prog_CC+set}" = set; then
  2207. echo $ECHO_N "(cached) $ECHO_C" >&6
  2208. else
  2209. if test -n "$CC"; then
  2210. ac_cv_prog_CC="$CC" # Let the user override the test.
  2211. else
  2212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2213. for as_dir in $PATH
  2214. do
  2215. IFS=$as_save_IFS
  2216. test -z "$as_dir" && as_dir=.
  2217. for ac_exec_ext in '' $ac_executable_extensions; do
  2218. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2219. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2220. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2221. break 2
  2222. fi
  2223. done
  2224. done
  2225. fi
  2226. fi
  2227. CC=$ac_cv_prog_CC
  2228. if test -n "$CC"; then
  2229. echo "$as_me:$LINENO: result: $CC" >&5
  2230. echo "${ECHO_T}$CC" >&6
  2231. else
  2232. echo "$as_me:$LINENO: result: no" >&5
  2233. echo "${ECHO_T}no" >&6
  2234. fi
  2235. test -n "$CC" && break
  2236. done
  2237. fi
  2238. if test -z "$CC"; then
  2239. ac_ct_CC=$CC
  2240. for ac_prog in cl
  2241. do
  2242. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2243. set dummy $ac_prog; ac_word=$2
  2244. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2246. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2247. echo $ECHO_N "(cached) $ECHO_C" >&6
  2248. else
  2249. if test -n "$ac_ct_CC"; then
  2250. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2251. else
  2252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2253. for as_dir in $PATH
  2254. do
  2255. IFS=$as_save_IFS
  2256. test -z "$as_dir" && as_dir=.
  2257. for ac_exec_ext in '' $ac_executable_extensions; do
  2258. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2259. ac_cv_prog_ac_ct_CC="$ac_prog"
  2260. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2261. break 2
  2262. fi
  2263. done
  2264. done
  2265. fi
  2266. fi
  2267. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2268. if test -n "$ac_ct_CC"; then
  2269. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2270. echo "${ECHO_T}$ac_ct_CC" >&6
  2271. else
  2272. echo "$as_me:$LINENO: result: no" >&5
  2273. echo "${ECHO_T}no" >&6
  2274. fi
  2275. test -n "$ac_ct_CC" && break
  2276. done
  2277. CC=$ac_ct_CC
  2278. fi
  2279. fi
  2280. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2281. See \`config.log' for more details." >&5
  2282. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2283. See \`config.log' for more details." >&2;}
  2284. { (exit 1); exit 1; }; }
  2285. # Provide some information about the compiler.
  2286. echo "$as_me:$LINENO:" \
  2287. "checking for C compiler version" >&5
  2288. ac_compiler=`set X $ac_compile; echo $2`
  2289. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2290. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2291. ac_status=$?
  2292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2293. (exit $ac_status); }
  2294. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2295. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2296. ac_status=$?
  2297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2298. (exit $ac_status); }
  2299. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2300. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2301. ac_status=$?
  2302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2303. (exit $ac_status); }
  2304. cat >conftest.$ac_ext <<_ACEOF
  2305. /* confdefs.h. */
  2306. _ACEOF
  2307. cat confdefs.h >>conftest.$ac_ext
  2308. cat >>conftest.$ac_ext <<_ACEOF
  2309. /* end confdefs.h. */
  2310. int
  2311. main ()
  2312. {
  2313. ;
  2314. return 0;
  2315. }
  2316. _ACEOF
  2317. ac_clean_files_save=$ac_clean_files
  2318. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2319. # Try to create an executable without -o first, disregard a.out.
  2320. # It will help us diagnose broken compilers, and finding out an intuition
  2321. # of exeext.
  2322. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2323. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2324. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2325. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2326. (eval $ac_link_default) 2>&5
  2327. ac_status=$?
  2328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2329. (exit $ac_status); }; then
  2330. # Find the output, starting from the most likely. This scheme is
  2331. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2332. # resort.
  2333. # Be careful to initialize this variable, since it used to be cached.
  2334. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2335. ac_cv_exeext=
  2336. # b.out is created by i960 compilers.
  2337. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2338. do
  2339. test -f "$ac_file" || continue
  2340. case $ac_file in
  2341. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2342. ;;
  2343. conftest.$ac_ext )
  2344. # This is the source file.
  2345. ;;
  2346. [ab].out )
  2347. # We found the default executable, but exeext='' is most
  2348. # certainly right.
  2349. break;;
  2350. *.* )
  2351. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2352. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2353. # but it would be cool to find out if it's true. Does anybody
  2354. # maintain Libtool? --akim.
  2355. export ac_cv_exeext
  2356. break;;
  2357. * )
  2358. break;;
  2359. esac
  2360. done
  2361. else
  2362. echo "$as_me: failed program was:" >&5
  2363. sed 's/^/| /' conftest.$ac_ext >&5
  2364. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2365. See \`config.log' for more details." >&5
  2366. echo "$as_me: error: C compiler cannot create executables
  2367. See \`config.log' for more details." >&2;}
  2368. { (exit 77); exit 77; }; }
  2369. fi
  2370. ac_exeext=$ac_cv_exeext
  2371. echo "$as_me:$LINENO: result: $ac_file" >&5
  2372. echo "${ECHO_T}$ac_file" >&6
  2373. # Check the compiler produces executables we can run. If not, either
  2374. # the compiler is broken, or we cross compile.
  2375. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2376. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2377. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2378. # If not cross compiling, check that we can run a simple program.
  2379. if test "$cross_compiling" != yes; then
  2380. if { ac_try='./$ac_file'
  2381. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2382. (eval $ac_try) 2>&5
  2383. ac_status=$?
  2384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2385. (exit $ac_status); }; }; then
  2386. cross_compiling=no
  2387. else
  2388. if test "$cross_compiling" = maybe; then
  2389. cross_compiling=yes
  2390. else
  2391. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2392. If you meant to cross compile, use \`--host'.
  2393. See \`config.log' for more details." >&5
  2394. echo "$as_me: error: cannot run C compiled programs.
  2395. If you meant to cross compile, use \`--host'.
  2396. See \`config.log' for more details." >&2;}
  2397. { (exit 1); exit 1; }; }
  2398. fi
  2399. fi
  2400. fi
  2401. echo "$as_me:$LINENO: result: yes" >&5
  2402. echo "${ECHO_T}yes" >&6
  2403. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2404. ac_clean_files=$ac_clean_files_save
  2405. # Check the compiler produces executables we can run. If not, either
  2406. # the compiler is broken, or we cross compile.
  2407. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2408. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2409. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2410. echo "${ECHO_T}$cross_compiling" >&6
  2411. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2412. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2413. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2414. (eval $ac_link) 2>&5
  2415. ac_status=$?
  2416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2417. (exit $ac_status); }; then
  2418. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2419. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2420. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2421. # `rm'.
  2422. for ac_file in conftest.exe conftest conftest.*; do
  2423. test -f "$ac_file" || continue
  2424. case $ac_file in
  2425. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2426. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2427. export ac_cv_exeext
  2428. break;;
  2429. * ) break;;
  2430. esac
  2431. done
  2432. else
  2433. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2434. See \`config.log' for more details." >&5
  2435. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2436. See \`config.log' for more details." >&2;}
  2437. { (exit 1); exit 1; }; }
  2438. fi
  2439. rm -f conftest$ac_cv_exeext
  2440. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2441. echo "${ECHO_T}$ac_cv_exeext" >&6
  2442. rm -f conftest.$ac_ext
  2443. EXEEXT=$ac_cv_exeext
  2444. ac_exeext=$EXEEXT
  2445. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2446. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2447. if test "${ac_cv_objext+set}" = set; then
  2448. echo $ECHO_N "(cached) $ECHO_C" >&6
  2449. else
  2450. cat >conftest.$ac_ext <<_ACEOF
  2451. /* confdefs.h. */
  2452. _ACEOF
  2453. cat confdefs.h >>conftest.$ac_ext
  2454. cat >>conftest.$ac_ext <<_ACEOF
  2455. /* end confdefs.h. */
  2456. int
  2457. main ()
  2458. {
  2459. ;
  2460. return 0;
  2461. }
  2462. _ACEOF
  2463. rm -f conftest.o conftest.obj
  2464. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2465. (eval $ac_compile) 2>&5
  2466. ac_status=$?
  2467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2468. (exit $ac_status); }; then
  2469. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2470. case $ac_file in
  2471. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2472. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2473. break;;
  2474. esac
  2475. done
  2476. else
  2477. echo "$as_me: failed program was:" >&5
  2478. sed 's/^/| /' conftest.$ac_ext >&5
  2479. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2480. See \`config.log' for more details." >&5
  2481. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2482. See \`config.log' for more details." >&2;}
  2483. { (exit 1); exit 1; }; }
  2484. fi
  2485. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2486. fi
  2487. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2488. echo "${ECHO_T}$ac_cv_objext" >&6
  2489. OBJEXT=$ac_cv_objext
  2490. ac_objext=$OBJEXT
  2491. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2492. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2493. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2494. echo $ECHO_N "(cached) $ECHO_C" >&6
  2495. else
  2496. cat >conftest.$ac_ext <<_ACEOF
  2497. /* confdefs.h. */
  2498. _ACEOF
  2499. cat confdefs.h >>conftest.$ac_ext
  2500. cat >>conftest.$ac_ext <<_ACEOF
  2501. /* end confdefs.h. */
  2502. int
  2503. main ()
  2504. {
  2505. #ifndef __GNUC__
  2506. choke me
  2507. #endif
  2508. ;
  2509. return 0;
  2510. }
  2511. _ACEOF
  2512. rm -f conftest.$ac_objext
  2513. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2514. (eval $ac_compile) 2>conftest.er1
  2515. ac_status=$?
  2516. grep -v '^ *+' conftest.er1 >conftest.err
  2517. rm -f conftest.er1
  2518. cat conftest.err >&5
  2519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2520. (exit $ac_status); } &&
  2521. { ac_try='test -z "$ac_c_werror_flag"
  2522. || test ! -s conftest.err'
  2523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2524. (eval $ac_try) 2>&5
  2525. ac_status=$?
  2526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2527. (exit $ac_status); }; } &&
  2528. { ac_try='test -s conftest.$ac_objext'
  2529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2530. (eval $ac_try) 2>&5
  2531. ac_status=$?
  2532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2533. (exit $ac_status); }; }; then
  2534. ac_compiler_gnu=yes
  2535. else
  2536. echo "$as_me: failed program was:" >&5
  2537. sed 's/^/| /' conftest.$ac_ext >&5
  2538. ac_compiler_gnu=no
  2539. fi
  2540. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2541. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2542. fi
  2543. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2544. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2545. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2546. ac_test_CFLAGS=${CFLAGS+set}
  2547. ac_save_CFLAGS=$CFLAGS
  2548. CFLAGS="-g"
  2549. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2550. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2551. if test "${ac_cv_prog_cc_g+set}" = set; then
  2552. echo $ECHO_N "(cached) $ECHO_C" >&6
  2553. else
  2554. cat >conftest.$ac_ext <<_ACEOF
  2555. /* confdefs.h. */
  2556. _ACEOF
  2557. cat confdefs.h >>conftest.$ac_ext
  2558. cat >>conftest.$ac_ext <<_ACEOF
  2559. /* end confdefs.h. */
  2560. int
  2561. main ()
  2562. {
  2563. ;
  2564. return 0;
  2565. }
  2566. _ACEOF
  2567. rm -f conftest.$ac_objext
  2568. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2569. (eval $ac_compile) 2>conftest.er1
  2570. ac_status=$?
  2571. grep -v '^ *+' conftest.er1 >conftest.err
  2572. rm -f conftest.er1
  2573. cat conftest.err >&5
  2574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2575. (exit $ac_status); } &&
  2576. { ac_try='test -z "$ac_c_werror_flag"
  2577. || test ! -s conftest.err'
  2578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2579. (eval $ac_try) 2>&5
  2580. ac_status=$?
  2581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2582. (exit $ac_status); }; } &&
  2583. { ac_try='test -s conftest.$ac_objext'
  2584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2585. (eval $ac_try) 2>&5
  2586. ac_status=$?
  2587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2588. (exit $ac_status); }; }; then
  2589. ac_cv_prog_cc_g=yes
  2590. else
  2591. echo "$as_me: failed program was:" >&5
  2592. sed 's/^/| /' conftest.$ac_ext >&5
  2593. ac_cv_prog_cc_g=no
  2594. fi
  2595. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2596. fi
  2597. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2598. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2599. if test "$ac_test_CFLAGS" = set; then
  2600. CFLAGS=$ac_save_CFLAGS
  2601. elif test $ac_cv_prog_cc_g = yes; then
  2602. if test "$GCC" = yes; then
  2603. CFLAGS="-g -O2"
  2604. else
  2605. CFLAGS="-g"
  2606. fi
  2607. else
  2608. if test "$GCC" = yes; then
  2609. CFLAGS="-O2"
  2610. else
  2611. CFLAGS=
  2612. fi
  2613. fi
  2614. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2615. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2616. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2617. echo $ECHO_N "(cached) $ECHO_C" >&6
  2618. else
  2619. ac_cv_prog_cc_stdc=no
  2620. ac_save_CC=$CC
  2621. cat >conftest.$ac_ext <<_ACEOF
  2622. /* confdefs.h. */
  2623. _ACEOF
  2624. cat confdefs.h >>conftest.$ac_ext
  2625. cat >>conftest.$ac_ext <<_ACEOF
  2626. /* end confdefs.h. */
  2627. #include <stdarg.h>
  2628. #include <stdio.h>
  2629. #include <sys/types.h>
  2630. #include <sys/stat.h>
  2631. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2632. struct buf { int x; };
  2633. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2634. static char *e (p, i)
  2635. char **p;
  2636. int i;
  2637. {
  2638. return p[i];
  2639. }
  2640. static char *f (char * (*g) (char **, int), char **p, ...)
  2641. {
  2642. char *s;
  2643. va_list v;
  2644. va_start (v,p);
  2645. s = g (p, va_arg (v,int));
  2646. va_end (v);
  2647. return s;
  2648. }
  2649. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2650. function prototypes and stuff, but not '\xHH' hex character constants.
  2651. These don't provoke an error unfortunately, instead are silently treated
  2652. as 'x'. The following induces an error, until -std1 is added to get
  2653. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2654. array size at least. It's necessary to write '\x00'==0 to get something
  2655. that's true only with -std1. */
  2656. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2657. int test (int i, double x);
  2658. struct s1 {int (*f) (int a);};
  2659. struct s2 {int (*f) (double a);};
  2660. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2661. int argc;
  2662. char **argv;
  2663. int
  2664. main ()
  2665. {
  2666. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2667. ;
  2668. return 0;
  2669. }
  2670. _ACEOF
  2671. # Don't try gcc -ansi; that turns off useful extensions and
  2672. # breaks some systems' header files.
  2673. # AIX -qlanglvl=ansi
  2674. # Ultrix and OSF/1 -std1
  2675. # HP-UX 10.20 and later -Ae
  2676. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2677. # SVR4 -Xc -D__EXTENSIONS__
  2678. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2679. do
  2680. CC="$ac_save_CC $ac_arg"
  2681. rm -f conftest.$ac_objext
  2682. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2683. (eval $ac_compile) 2>conftest.er1
  2684. ac_status=$?
  2685. grep -v '^ *+' conftest.er1 >conftest.err
  2686. rm -f conftest.er1
  2687. cat conftest.err >&5
  2688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2689. (exit $ac_status); } &&
  2690. { ac_try='test -z "$ac_c_werror_flag"
  2691. || test ! -s conftest.err'
  2692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2693. (eval $ac_try) 2>&5
  2694. ac_status=$?
  2695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2696. (exit $ac_status); }; } &&
  2697. { ac_try='test -s conftest.$ac_objext'
  2698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2699. (eval $ac_try) 2>&5
  2700. ac_status=$?
  2701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2702. (exit $ac_status); }; }; then
  2703. ac_cv_prog_cc_stdc=$ac_arg
  2704. break
  2705. else
  2706. echo "$as_me: failed program was:" >&5
  2707. sed 's/^/| /' conftest.$ac_ext >&5
  2708. fi
  2709. rm -f conftest.err conftest.$ac_objext
  2710. done
  2711. rm -f conftest.$ac_ext conftest.$ac_objext
  2712. CC=$ac_save_CC
  2713. fi
  2714. case "x$ac_cv_prog_cc_stdc" in
  2715. x|xno)
  2716. echo "$as_me:$LINENO: result: none needed" >&5
  2717. echo "${ECHO_T}none needed" >&6 ;;
  2718. *)
  2719. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2720. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2721. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2722. esac
  2723. # Some people use a C++ compiler to compile C. Since we use `exit',
  2724. # in C++ we need to declare it. In case someone uses the same compiler
  2725. # for both compiling C and C++ we need to have the C++ compiler decide
  2726. # the declaration of exit, since it's the most demanding environment.
  2727. cat >conftest.$ac_ext <<_ACEOF
  2728. #ifndef __cplusplus
  2729. choke me
  2730. #endif
  2731. _ACEOF
  2732. rm -f conftest.$ac_objext
  2733. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2734. (eval $ac_compile) 2>conftest.er1
  2735. ac_status=$?
  2736. grep -v '^ *+' conftest.er1 >conftest.err
  2737. rm -f conftest.er1
  2738. cat conftest.err >&5
  2739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2740. (exit $ac_status); } &&
  2741. { ac_try='test -z "$ac_c_werror_flag"
  2742. || test ! -s conftest.err'
  2743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2744. (eval $ac_try) 2>&5
  2745. ac_status=$?
  2746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2747. (exit $ac_status); }; } &&
  2748. { ac_try='test -s conftest.$ac_objext'
  2749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2750. (eval $ac_try) 2>&5
  2751. ac_status=$?
  2752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2753. (exit $ac_status); }; }; then
  2754. for ac_declaration in \
  2755. '' \
  2756. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2757. 'extern "C" void std::exit (int); using std::exit;' \
  2758. 'extern "C" void exit (int) throw ();' \
  2759. 'extern "C" void exit (int);' \
  2760. 'void exit (int);'
  2761. do
  2762. cat >conftest.$ac_ext <<_ACEOF
  2763. /* confdefs.h. */
  2764. _ACEOF
  2765. cat confdefs.h >>conftest.$ac_ext
  2766. cat >>conftest.$ac_ext <<_ACEOF
  2767. /* end confdefs.h. */
  2768. $ac_declaration
  2769. #include <stdlib.h>
  2770. int
  2771. main ()
  2772. {
  2773. exit (42);
  2774. ;
  2775. return 0;
  2776. }
  2777. _ACEOF
  2778. rm -f conftest.$ac_objext
  2779. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2780. (eval $ac_compile) 2>conftest.er1
  2781. ac_status=$?
  2782. grep -v '^ *+' conftest.er1 >conftest.err
  2783. rm -f conftest.er1
  2784. cat conftest.err >&5
  2785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2786. (exit $ac_status); } &&
  2787. { ac_try='test -z "$ac_c_werror_flag"
  2788. || test ! -s conftest.err'
  2789. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2790. (eval $ac_try) 2>&5
  2791. ac_status=$?
  2792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2793. (exit $ac_status); }; } &&
  2794. { ac_try='test -s conftest.$ac_objext'
  2795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2796. (eval $ac_try) 2>&5
  2797. ac_status=$?
  2798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2799. (exit $ac_status); }; }; then
  2800. :
  2801. else
  2802. echo "$as_me: failed program was:" >&5
  2803. sed 's/^/| /' conftest.$ac_ext >&5
  2804. continue
  2805. fi
  2806. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2807. cat >conftest.$ac_ext <<_ACEOF
  2808. /* confdefs.h. */
  2809. _ACEOF
  2810. cat confdefs.h >>conftest.$ac_ext
  2811. cat >>conftest.$ac_ext <<_ACEOF
  2812. /* end confdefs.h. */
  2813. $ac_declaration
  2814. int
  2815. main ()
  2816. {
  2817. exit (42);
  2818. ;
  2819. return 0;
  2820. }
  2821. _ACEOF
  2822. rm -f conftest.$ac_objext
  2823. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2824. (eval $ac_compile) 2>conftest.er1
  2825. ac_status=$?
  2826. grep -v '^ *+' conftest.er1 >conftest.err
  2827. rm -f conftest.er1
  2828. cat conftest.err >&5
  2829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2830. (exit $ac_status); } &&
  2831. { ac_try='test -z "$ac_c_werror_flag"
  2832. || test ! -s conftest.err'
  2833. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2834. (eval $ac_try) 2>&5
  2835. ac_status=$?
  2836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2837. (exit $ac_status); }; } &&
  2838. { ac_try='test -s conftest.$ac_objext'
  2839. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2840. (eval $ac_try) 2>&5
  2841. ac_status=$?
  2842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2843. (exit $ac_status); }; }; then
  2844. break
  2845. else
  2846. echo "$as_me: failed program was:" >&5
  2847. sed 's/^/| /' conftest.$ac_ext >&5
  2848. fi
  2849. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2850. done
  2851. rm -f conftest*
  2852. if test -n "$ac_declaration"; then
  2853. echo '#ifdef __cplusplus' >>confdefs.h
  2854. echo $ac_declaration >>confdefs.h
  2855. echo '#endif' >>confdefs.h
  2856. fi
  2857. else
  2858. echo "$as_me: failed program was:" >&5
  2859. sed 's/^/| /' conftest.$ac_ext >&5
  2860. fi
  2861. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2862. ac_ext=c
  2863. ac_cpp='$CPP $CPPFLAGS'
  2864. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2865. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2866. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2867. depcc="$CC" am_compiler_list=
  2868. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2869. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2870. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2871. echo $ECHO_N "(cached) $ECHO_C" >&6
  2872. else
  2873. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2874. # We make a subdir and do the tests there. Otherwise we can end up
  2875. # making bogus files that we don't know about and never remove. For
  2876. # instance it was reported that on HP-UX the gcc test will end up
  2877. # making a dummy file named `D' -- because `-MD' means `put the output
  2878. # in D'.
  2879. mkdir conftest.dir
  2880. # Copy depcomp to subdir because otherwise we won't find it if we're
  2881. # using a relative directory.
  2882. cp "$am_depcomp" conftest.dir
  2883. cd conftest.dir
  2884. # We will build objects and dependencies in a subdirectory because
  2885. # it helps to detect inapplicable dependency modes. For instance
  2886. # both Tru64's cc and ICC support -MD to output dependencies as a
  2887. # side effect of compilation, but ICC will put the dependencies in
  2888. # the current directory while Tru64 will put them in the object
  2889. # directory.
  2890. mkdir sub
  2891. am_cv_CC_dependencies_compiler_type=none
  2892. if test "$am_compiler_list" = ""; then
  2893. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2894. fi
  2895. for depmode in $am_compiler_list; do
  2896. # Setup a source with many dependencies, because some compilers
  2897. # like to wrap large dependency lists on column 80 (with \), and
  2898. # we should not choose a depcomp mode which is confused by this.
  2899. #
  2900. # We need to recreate these files for each test, as the compiler may
  2901. # overwrite some of them when testing with obscure command lines.
  2902. # This happens at least with the AIX C compiler.
  2903. : > sub/conftest.c
  2904. for i in 1 2 3 4 5 6; do
  2905. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2906. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2907. # Solaris 8's {/usr,}/bin/sh.
  2908. touch sub/conftst$i.h
  2909. done
  2910. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2911. case $depmode in
  2912. nosideeffect)
  2913. # after this tag, mechanisms are not by side-effect, so they'll
  2914. # only be used when explicitly requested
  2915. if test "x$enable_dependency_tracking" = xyes; then
  2916. continue
  2917. else
  2918. break
  2919. fi
  2920. ;;
  2921. none) break ;;
  2922. esac
  2923. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2924. # mode. It turns out that the SunPro C++ compiler does not properly
  2925. # handle `-M -o', and we need to detect this.
  2926. if depmode=$depmode \
  2927. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2928. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2929. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2930. >/dev/null 2>conftest.err &&
  2931. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2932. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2933. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2934. # icc doesn't choke on unknown options, it will just issue warnings
  2935. # or remarks (even with -Werror). So we grep stderr for any message
  2936. # that says an option was ignored or not supported.
  2937. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2938. # icc: Command line warning: ignoring option '-M'; no argument required
  2939. # The diagnosis changed in icc 8.0:
  2940. # icc: Command line remark: option '-MP' not supported
  2941. if (grep 'ignoring option' conftest.err ||
  2942. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2943. am_cv_CC_dependencies_compiler_type=$depmode
  2944. break
  2945. fi
  2946. fi
  2947. done
  2948. cd ..
  2949. rm -rf conftest.dir
  2950. else
  2951. am_cv_CC_dependencies_compiler_type=none
  2952. fi
  2953. fi
  2954. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2955. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2956. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2957. if
  2958. test "x$enable_dependency_tracking" != xno \
  2959. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2960. am__fastdepCC_TRUE=
  2961. am__fastdepCC_FALSE='#'
  2962. else
  2963. am__fastdepCC_TRUE='#'
  2964. am__fastdepCC_FALSE=
  2965. fi
  2966. ac_ext=c
  2967. ac_cpp='$CPP $CPPFLAGS'
  2968. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2969. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2970. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2971. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2972. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2973. # On Suns, sometimes $CPP names a directory.
  2974. if test -n "$CPP" && test -d "$CPP"; then
  2975. CPP=
  2976. fi
  2977. if test -z "$CPP"; then
  2978. if test "${ac_cv_prog_CPP+set}" = set; then
  2979. echo $ECHO_N "(cached) $ECHO_C" >&6
  2980. else
  2981. # Double quotes because CPP needs to be expanded
  2982. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2983. do
  2984. ac_preproc_ok=false
  2985. for ac_c_preproc_warn_flag in '' yes
  2986. do
  2987. # Use a header file that comes with gcc, so configuring glibc
  2988. # with a fresh cross-compiler works.
  2989. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2990. # <limits.h> exists even on freestanding compilers.
  2991. # On the NeXT, cc -E runs the code through the compiler's parser,
  2992. # not just through cpp. "Syntax error" is here to catch this case.
  2993. cat >conftest.$ac_ext <<_ACEOF
  2994. /* confdefs.h. */
  2995. _ACEOF
  2996. cat confdefs.h >>conftest.$ac_ext
  2997. cat >>conftest.$ac_ext <<_ACEOF
  2998. /* end confdefs.h. */
  2999. #ifdef __STDC__
  3000. # include <limits.h>
  3001. #else
  3002. # include <assert.h>
  3003. #endif
  3004. Syntax error
  3005. _ACEOF
  3006. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3007. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3008. ac_status=$?
  3009. grep -v '^ *+' conftest.er1 >conftest.err
  3010. rm -f conftest.er1
  3011. cat conftest.err >&5
  3012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3013. (exit $ac_status); } >/dev/null; then
  3014. if test -s conftest.err; then
  3015. ac_cpp_err=$ac_c_preproc_warn_flag
  3016. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3017. else
  3018. ac_cpp_err=
  3019. fi
  3020. else
  3021. ac_cpp_err=yes
  3022. fi
  3023. if test -z "$ac_cpp_err"; then
  3024. :
  3025. else
  3026. echo "$as_me: failed program was:" >&5
  3027. sed 's/^/| /' conftest.$ac_ext >&5
  3028. # Broken: fails on valid input.
  3029. continue
  3030. fi
  3031. rm -f conftest.err conftest.$ac_ext
  3032. # OK, works on sane cases. Now check whether non-existent headers
  3033. # can be detected and how.
  3034. cat >conftest.$ac_ext <<_ACEOF
  3035. /* confdefs.h. */
  3036. _ACEOF
  3037. cat confdefs.h >>conftest.$ac_ext
  3038. cat >>conftest.$ac_ext <<_ACEOF
  3039. /* end confdefs.h. */
  3040. #include <ac_nonexistent.h>
  3041. _ACEOF
  3042. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3043. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3044. ac_status=$?
  3045. grep -v '^ *+' conftest.er1 >conftest.err
  3046. rm -f conftest.er1
  3047. cat conftest.err >&5
  3048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3049. (exit $ac_status); } >/dev/null; then
  3050. if test -s conftest.err; then
  3051. ac_cpp_err=$ac_c_preproc_warn_flag
  3052. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3053. else
  3054. ac_cpp_err=
  3055. fi
  3056. else
  3057. ac_cpp_err=yes
  3058. fi
  3059. if test -z "$ac_cpp_err"; then
  3060. # Broken: success on invalid input.
  3061. continue
  3062. else
  3063. echo "$as_me: failed program was:" >&5
  3064. sed 's/^/| /' conftest.$ac_ext >&5
  3065. # Passes both tests.
  3066. ac_preproc_ok=:
  3067. break
  3068. fi
  3069. rm -f conftest.err conftest.$ac_ext
  3070. done
  3071. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3072. rm -f conftest.err conftest.$ac_ext
  3073. if $ac_preproc_ok; then
  3074. break
  3075. fi
  3076. done
  3077. ac_cv_prog_CPP=$CPP
  3078. fi
  3079. CPP=$ac_cv_prog_CPP
  3080. else
  3081. ac_cv_prog_CPP=$CPP
  3082. fi
  3083. echo "$as_me:$LINENO: result: $CPP" >&5
  3084. echo "${ECHO_T}$CPP" >&6
  3085. ac_preproc_ok=false
  3086. for ac_c_preproc_warn_flag in '' yes
  3087. do
  3088. # Use a header file that comes with gcc, so configuring glibc
  3089. # with a fresh cross-compiler works.
  3090. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3091. # <limits.h> exists even on freestanding compilers.
  3092. # On the NeXT, cc -E runs the code through the compiler's parser,
  3093. # not just through cpp. "Syntax error" is here to catch this case.
  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. #ifdef __STDC__
  3101. # include <limits.h>
  3102. #else
  3103. # include <assert.h>
  3104. #endif
  3105. Syntax error
  3106. _ACEOF
  3107. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3108. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3109. ac_status=$?
  3110. grep -v '^ *+' conftest.er1 >conftest.err
  3111. rm -f conftest.er1
  3112. cat conftest.err >&5
  3113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3114. (exit $ac_status); } >/dev/null; then
  3115. if test -s conftest.err; then
  3116. ac_cpp_err=$ac_c_preproc_warn_flag
  3117. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3118. else
  3119. ac_cpp_err=
  3120. fi
  3121. else
  3122. ac_cpp_err=yes
  3123. fi
  3124. if test -z "$ac_cpp_err"; then
  3125. :
  3126. else
  3127. echo "$as_me: failed program was:" >&5
  3128. sed 's/^/| /' conftest.$ac_ext >&5
  3129. # Broken: fails on valid input.
  3130. continue
  3131. fi
  3132. rm -f conftest.err conftest.$ac_ext
  3133. # OK, works on sane cases. Now check whether non-existent headers
  3134. # can be detected and how.
  3135. cat >conftest.$ac_ext <<_ACEOF
  3136. /* confdefs.h. */
  3137. _ACEOF
  3138. cat confdefs.h >>conftest.$ac_ext
  3139. cat >>conftest.$ac_ext <<_ACEOF
  3140. /* end confdefs.h. */
  3141. #include <ac_nonexistent.h>
  3142. _ACEOF
  3143. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3144. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3145. ac_status=$?
  3146. grep -v '^ *+' conftest.er1 >conftest.err
  3147. rm -f conftest.er1
  3148. cat conftest.err >&5
  3149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3150. (exit $ac_status); } >/dev/null; then
  3151. if test -s conftest.err; then
  3152. ac_cpp_err=$ac_c_preproc_warn_flag
  3153. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3154. else
  3155. ac_cpp_err=
  3156. fi
  3157. else
  3158. ac_cpp_err=yes
  3159. fi
  3160. if test -z "$ac_cpp_err"; then
  3161. # Broken: success on invalid input.
  3162. continue
  3163. else
  3164. echo "$as_me: failed program was:" >&5
  3165. sed 's/^/| /' conftest.$ac_ext >&5
  3166. # Passes both tests.
  3167. ac_preproc_ok=:
  3168. break
  3169. fi
  3170. rm -f conftest.err conftest.$ac_ext
  3171. done
  3172. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3173. rm -f conftest.err conftest.$ac_ext
  3174. if $ac_preproc_ok; then
  3175. :
  3176. else
  3177. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3178. See \`config.log' for more details." >&5
  3179. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3180. See \`config.log' for more details." >&2;}
  3181. { (exit 1); exit 1; }; }
  3182. fi
  3183. ac_ext=c
  3184. ac_cpp='$CPP $CPPFLAGS'
  3185. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3186. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3187. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3188. echo "$as_me:$LINENO: checking for egrep" >&5
  3189. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3190. if test "${ac_cv_prog_egrep+set}" = set; then
  3191. echo $ECHO_N "(cached) $ECHO_C" >&6
  3192. else
  3193. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3194. then ac_cv_prog_egrep='grep -E'
  3195. else ac_cv_prog_egrep='egrep'
  3196. fi
  3197. fi
  3198. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3199. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3200. EGREP=$ac_cv_prog_egrep
  3201. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3202. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3203. if test "${ac_cv_header_stdc+set}" = set; then
  3204. echo $ECHO_N "(cached) $ECHO_C" >&6
  3205. else
  3206. cat >conftest.$ac_ext <<_ACEOF
  3207. /* confdefs.h. */
  3208. _ACEOF
  3209. cat confdefs.h >>conftest.$ac_ext
  3210. cat >>conftest.$ac_ext <<_ACEOF
  3211. /* end confdefs.h. */
  3212. #include <stdlib.h>
  3213. #include <stdarg.h>
  3214. #include <string.h>
  3215. #include <float.h>
  3216. int
  3217. main ()
  3218. {
  3219. ;
  3220. return 0;
  3221. }
  3222. _ACEOF
  3223. rm -f conftest.$ac_objext
  3224. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3225. (eval $ac_compile) 2>conftest.er1
  3226. ac_status=$?
  3227. grep -v '^ *+' conftest.er1 >conftest.err
  3228. rm -f conftest.er1
  3229. cat conftest.err >&5
  3230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3231. (exit $ac_status); } &&
  3232. { ac_try='test -z "$ac_c_werror_flag"
  3233. || test ! -s conftest.err'
  3234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3235. (eval $ac_try) 2>&5
  3236. ac_status=$?
  3237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3238. (exit $ac_status); }; } &&
  3239. { ac_try='test -s conftest.$ac_objext'
  3240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3241. (eval $ac_try) 2>&5
  3242. ac_status=$?
  3243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3244. (exit $ac_status); }; }; then
  3245. ac_cv_header_stdc=yes
  3246. else
  3247. echo "$as_me: failed program was:" >&5
  3248. sed 's/^/| /' conftest.$ac_ext >&5
  3249. ac_cv_header_stdc=no
  3250. fi
  3251. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3252. if test $ac_cv_header_stdc = yes; then
  3253. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3254. cat >conftest.$ac_ext <<_ACEOF
  3255. /* confdefs.h. */
  3256. _ACEOF
  3257. cat confdefs.h >>conftest.$ac_ext
  3258. cat >>conftest.$ac_ext <<_ACEOF
  3259. /* end confdefs.h. */
  3260. #include <string.h>
  3261. _ACEOF
  3262. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3263. $EGREP "memchr" >/dev/null 2>&1; then
  3264. :
  3265. else
  3266. ac_cv_header_stdc=no
  3267. fi
  3268. rm -f conftest*
  3269. fi
  3270. if test $ac_cv_header_stdc = yes; then
  3271. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3272. cat >conftest.$ac_ext <<_ACEOF
  3273. /* confdefs.h. */
  3274. _ACEOF
  3275. cat confdefs.h >>conftest.$ac_ext
  3276. cat >>conftest.$ac_ext <<_ACEOF
  3277. /* end confdefs.h. */
  3278. #include <stdlib.h>
  3279. _ACEOF
  3280. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3281. $EGREP "free" >/dev/null 2>&1; then
  3282. :
  3283. else
  3284. ac_cv_header_stdc=no
  3285. fi
  3286. rm -f conftest*
  3287. fi
  3288. if test $ac_cv_header_stdc = yes; then
  3289. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3290. if test "$cross_compiling" = yes; then
  3291. :
  3292. else
  3293. cat >conftest.$ac_ext <<_ACEOF
  3294. /* confdefs.h. */
  3295. _ACEOF
  3296. cat confdefs.h >>conftest.$ac_ext
  3297. cat >>conftest.$ac_ext <<_ACEOF
  3298. /* end confdefs.h. */
  3299. #include <ctype.h>
  3300. #if ((' ' & 0x0FF) == 0x020)
  3301. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3302. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3303. #else
  3304. # define ISLOWER(c) \
  3305. (('a' <= (c) && (c) <= 'i') \
  3306. || ('j' <= (c) && (c) <= 'r') \
  3307. || ('s' <= (c) && (c) <= 'z'))
  3308. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3309. #endif
  3310. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3311. int
  3312. main ()
  3313. {
  3314. int i;
  3315. for (i = 0; i < 256; i++)
  3316. if (XOR (islower (i), ISLOWER (i))
  3317. || toupper (i) != TOUPPER (i))
  3318. exit(2);
  3319. exit (0);
  3320. }
  3321. _ACEOF
  3322. rm -f conftest$ac_exeext
  3323. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3324. (eval $ac_link) 2>&5
  3325. ac_status=$?
  3326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3327. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3329. (eval $ac_try) 2>&5
  3330. ac_status=$?
  3331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3332. (exit $ac_status); }; }; then
  3333. :
  3334. else
  3335. echo "$as_me: program exited with status $ac_status" >&5
  3336. echo "$as_me: failed program was:" >&5
  3337. sed 's/^/| /' conftest.$ac_ext >&5
  3338. ( exit $ac_status )
  3339. ac_cv_header_stdc=no
  3340. fi
  3341. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3342. fi
  3343. fi
  3344. fi
  3345. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3346. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3347. if test $ac_cv_header_stdc = yes; then
  3348. cat >>confdefs.h <<\_ACEOF
  3349. #define STDC_HEADERS 1
  3350. _ACEOF
  3351. fi
  3352. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3353. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3354. inttypes.h stdint.h unistd.h
  3355. do
  3356. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3357. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3358. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3359. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3360. echo $ECHO_N "(cached) $ECHO_C" >&6
  3361. else
  3362. cat >conftest.$ac_ext <<_ACEOF
  3363. /* confdefs.h. */
  3364. _ACEOF
  3365. cat confdefs.h >>conftest.$ac_ext
  3366. cat >>conftest.$ac_ext <<_ACEOF
  3367. /* end confdefs.h. */
  3368. $ac_includes_default
  3369. #include <$ac_header>
  3370. _ACEOF
  3371. rm -f conftest.$ac_objext
  3372. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3373. (eval $ac_compile) 2>conftest.er1
  3374. ac_status=$?
  3375. grep -v '^ *+' conftest.er1 >conftest.err
  3376. rm -f conftest.er1
  3377. cat conftest.err >&5
  3378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3379. (exit $ac_status); } &&
  3380. { ac_try='test -z "$ac_c_werror_flag"
  3381. || test ! -s conftest.err'
  3382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3383. (eval $ac_try) 2>&5
  3384. ac_status=$?
  3385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3386. (exit $ac_status); }; } &&
  3387. { ac_try='test -s conftest.$ac_objext'
  3388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3389. (eval $ac_try) 2>&5
  3390. ac_status=$?
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); }; }; then
  3393. eval "$as_ac_Header=yes"
  3394. else
  3395. echo "$as_me: failed program was:" >&5
  3396. sed 's/^/| /' conftest.$ac_ext >&5
  3397. eval "$as_ac_Header=no"
  3398. fi
  3399. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3400. fi
  3401. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3402. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3403. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3404. cat >>confdefs.h <<_ACEOF
  3405. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3406. _ACEOF
  3407. fi
  3408. done
  3409. # Check whether --enable-alsa or --disable-alsa was given.
  3410. if test "${enable_alsa+set}" = set; then
  3411. enableval="$enable_alsa"
  3412. case "${enableval}" in
  3413. yes) COMPILE_ALSA=yes ;;
  3414. no) COMPILE_ALSA=no ;;
  3415. *) COMPILE_ALSA=yes ;;
  3416. esac
  3417. else
  3418. for ac_header in alsa/asoundlib.h
  3419. do
  3420. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3421. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3422. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3423. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3424. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3425. echo $ECHO_N "(cached) $ECHO_C" >&6
  3426. fi
  3427. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3428. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3429. else
  3430. # Is the header compilable?
  3431. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3432. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3433. cat >conftest.$ac_ext <<_ACEOF
  3434. /* confdefs.h. */
  3435. _ACEOF
  3436. cat confdefs.h >>conftest.$ac_ext
  3437. cat >>conftest.$ac_ext <<_ACEOF
  3438. /* end confdefs.h. */
  3439. $ac_includes_default
  3440. #include <$ac_header>
  3441. _ACEOF
  3442. rm -f conftest.$ac_objext
  3443. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3444. (eval $ac_compile) 2>conftest.er1
  3445. ac_status=$?
  3446. grep -v '^ *+' conftest.er1 >conftest.err
  3447. rm -f conftest.er1
  3448. cat conftest.err >&5
  3449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3450. (exit $ac_status); } &&
  3451. { ac_try='test -z "$ac_c_werror_flag"
  3452. || test ! -s conftest.err'
  3453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3454. (eval $ac_try) 2>&5
  3455. ac_status=$?
  3456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3457. (exit $ac_status); }; } &&
  3458. { ac_try='test -s conftest.$ac_objext'
  3459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3460. (eval $ac_try) 2>&5
  3461. ac_status=$?
  3462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3463. (exit $ac_status); }; }; then
  3464. ac_header_compiler=yes
  3465. else
  3466. echo "$as_me: failed program was:" >&5
  3467. sed 's/^/| /' conftest.$ac_ext >&5
  3468. ac_header_compiler=no
  3469. fi
  3470. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3471. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3472. echo "${ECHO_T}$ac_header_compiler" >&6
  3473. # Is the header present?
  3474. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3475. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3476. cat >conftest.$ac_ext <<_ACEOF
  3477. /* confdefs.h. */
  3478. _ACEOF
  3479. cat confdefs.h >>conftest.$ac_ext
  3480. cat >>conftest.$ac_ext <<_ACEOF
  3481. /* end confdefs.h. */
  3482. #include <$ac_header>
  3483. _ACEOF
  3484. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3485. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3486. ac_status=$?
  3487. grep -v '^ *+' conftest.er1 >conftest.err
  3488. rm -f conftest.er1
  3489. cat conftest.err >&5
  3490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3491. (exit $ac_status); } >/dev/null; then
  3492. if test -s conftest.err; then
  3493. ac_cpp_err=$ac_c_preproc_warn_flag
  3494. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3495. else
  3496. ac_cpp_err=
  3497. fi
  3498. else
  3499. ac_cpp_err=yes
  3500. fi
  3501. if test -z "$ac_cpp_err"; then
  3502. ac_header_preproc=yes
  3503. else
  3504. echo "$as_me: failed program was:" >&5
  3505. sed 's/^/| /' conftest.$ac_ext >&5
  3506. ac_header_preproc=no
  3507. fi
  3508. rm -f conftest.err conftest.$ac_ext
  3509. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3510. echo "${ECHO_T}$ac_header_preproc" >&6
  3511. # So? What about this header?
  3512. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3513. yes:no: )
  3514. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3515. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3516. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3517. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3518. ac_header_preproc=yes
  3519. ;;
  3520. no:yes:* )
  3521. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3522. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3523. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3524. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3525. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3526. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3527. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3528. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3529. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3530. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3531. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3532. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3533. (
  3534. cat <<\_ASBOX
  3535. ## -------------------------------- ##
  3536. ## Report this to classpath@gnu.org ##
  3537. ## -------------------------------- ##
  3538. _ASBOX
  3539. ) |
  3540. sed "s/^/$as_me: WARNING: /" >&2
  3541. ;;
  3542. esac
  3543. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3544. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3545. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3546. echo $ECHO_N "(cached) $ECHO_C" >&6
  3547. else
  3548. eval "$as_ac_Header=\$ac_header_preproc"
  3549. fi
  3550. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3551. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3552. fi
  3553. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3554. cat >>confdefs.h <<_ACEOF
  3555. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3556. _ACEOF
  3557. echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
  3558. echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
  3559. if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
  3560. echo $ECHO_N "(cached) $ECHO_C" >&6
  3561. else
  3562. ac_check_lib_save_LIBS=$LIBS
  3563. LIBS="-lasound $LIBS"
  3564. cat >conftest.$ac_ext <<_ACEOF
  3565. /* confdefs.h. */
  3566. _ACEOF
  3567. cat confdefs.h >>conftest.$ac_ext
  3568. cat >>conftest.$ac_ext <<_ACEOF
  3569. /* end confdefs.h. */
  3570. /* Override any gcc2 internal prototype to avoid an error. */
  3571. #ifdef __cplusplus
  3572. extern "C"
  3573. #endif
  3574. /* We use char because int might match the return type of a gcc2
  3575. builtin and then its argument prototype would still apply. */
  3576. char snd_seq_open ();
  3577. int
  3578. main ()
  3579. {
  3580. snd_seq_open ();
  3581. ;
  3582. return 0;
  3583. }
  3584. _ACEOF
  3585. rm -f conftest.$ac_objext conftest$ac_exeext
  3586. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3587. (eval $ac_link) 2>conftest.er1
  3588. ac_status=$?
  3589. grep -v '^ *+' conftest.er1 >conftest.err
  3590. rm -f conftest.er1
  3591. cat conftest.err >&5
  3592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3593. (exit $ac_status); } &&
  3594. { ac_try='test -z "$ac_c_werror_flag"
  3595. || test ! -s conftest.err'
  3596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3597. (eval $ac_try) 2>&5
  3598. ac_status=$?
  3599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3600. (exit $ac_status); }; } &&
  3601. { ac_try='test -s conftest$ac_exeext'
  3602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3603. (eval $ac_try) 2>&5
  3604. ac_status=$?
  3605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3606. (exit $ac_status); }; }; then
  3607. ac_cv_lib_asound_snd_seq_open=yes
  3608. else
  3609. echo "$as_me: failed program was:" >&5
  3610. sed 's/^/| /' conftest.$ac_ext >&5
  3611. ac_cv_lib_asound_snd_seq_open=no
  3612. fi
  3613. rm -f conftest.err conftest.$ac_objext \
  3614. conftest$ac_exeext conftest.$ac_ext
  3615. LIBS=$ac_check_lib_save_LIBS
  3616. fi
  3617. echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
  3618. echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
  3619. if test $ac_cv_lib_asound_snd_seq_open = yes; then
  3620. COMPILE_ALSA=yes
  3621. else
  3622. COMPILE_ALSA=no
  3623. fi
  3624. else
  3625. COMPILE_ALSA=no
  3626. fi
  3627. done
  3628. fi;
  3629. if test "x${COMPILE_ALSA}" = xyes; then
  3630. CREATE_ALSA_LIBRARIES_TRUE=
  3631. CREATE_ALSA_LIBRARIES_FALSE='#'
  3632. else
  3633. CREATE_ALSA_LIBRARIES_TRUE='#'
  3634. CREATE_ALSA_LIBRARIES_FALSE=
  3635. fi
  3636. # Check whether --enable-dssi or --disable-dssi was given.
  3637. if test "${enable_dssi+set}" = set; then
  3638. enableval="$enable_dssi"
  3639. case "${enableval}" in
  3640. yes) COMPILE_DSSI=yes ;;
  3641. no) COMPILE_DSSI=no ;;
  3642. *) COMPILE_DSSI=yes ;;
  3643. esac
  3644. else
  3645. for ac_header in dssi.h
  3646. do
  3647. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3648. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3649. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3650. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3651. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3652. echo $ECHO_N "(cached) $ECHO_C" >&6
  3653. fi
  3654. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3655. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3656. else
  3657. # Is the header compilable?
  3658. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3659. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3660. cat >conftest.$ac_ext <<_ACEOF
  3661. /* confdefs.h. */
  3662. _ACEOF
  3663. cat confdefs.h >>conftest.$ac_ext
  3664. cat >>conftest.$ac_ext <<_ACEOF
  3665. /* end confdefs.h. */
  3666. $ac_includes_default
  3667. #include <$ac_header>
  3668. _ACEOF
  3669. rm -f conftest.$ac_objext
  3670. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3671. (eval $ac_compile) 2>conftest.er1
  3672. ac_status=$?
  3673. grep -v '^ *+' conftest.er1 >conftest.err
  3674. rm -f conftest.er1
  3675. cat conftest.err >&5
  3676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3677. (exit $ac_status); } &&
  3678. { ac_try='test -z "$ac_c_werror_flag"
  3679. || test ! -s conftest.err'
  3680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3681. (eval $ac_try) 2>&5
  3682. ac_status=$?
  3683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3684. (exit $ac_status); }; } &&
  3685. { ac_try='test -s conftest.$ac_objext'
  3686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3687. (eval $ac_try) 2>&5
  3688. ac_status=$?
  3689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3690. (exit $ac_status); }; }; then
  3691. ac_header_compiler=yes
  3692. else
  3693. echo "$as_me: failed program was:" >&5
  3694. sed 's/^/| /' conftest.$ac_ext >&5
  3695. ac_header_compiler=no
  3696. fi
  3697. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3698. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3699. echo "${ECHO_T}$ac_header_compiler" >&6
  3700. # Is the header present?
  3701. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3702. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3703. cat >conftest.$ac_ext <<_ACEOF
  3704. /* confdefs.h. */
  3705. _ACEOF
  3706. cat confdefs.h >>conftest.$ac_ext
  3707. cat >>conftest.$ac_ext <<_ACEOF
  3708. /* end confdefs.h. */
  3709. #include <$ac_header>
  3710. _ACEOF
  3711. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3712. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3713. ac_status=$?
  3714. grep -v '^ *+' conftest.er1 >conftest.err
  3715. rm -f conftest.er1
  3716. cat conftest.err >&5
  3717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3718. (exit $ac_status); } >/dev/null; then
  3719. if test -s conftest.err; then
  3720. ac_cpp_err=$ac_c_preproc_warn_flag
  3721. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3722. else
  3723. ac_cpp_err=
  3724. fi
  3725. else
  3726. ac_cpp_err=yes
  3727. fi
  3728. if test -z "$ac_cpp_err"; then
  3729. ac_header_preproc=yes
  3730. else
  3731. echo "$as_me: failed program was:" >&5
  3732. sed 's/^/| /' conftest.$ac_ext >&5
  3733. ac_header_preproc=no
  3734. fi
  3735. rm -f conftest.err conftest.$ac_ext
  3736. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3737. echo "${ECHO_T}$ac_header_preproc" >&6
  3738. # So? What about this header?
  3739. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3740. yes:no: )
  3741. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3742. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3743. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3744. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3745. ac_header_preproc=yes
  3746. ;;
  3747. no:yes:* )
  3748. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3749. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3750. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3751. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3752. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3753. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3754. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3755. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3756. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3757. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3758. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3759. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3760. (
  3761. cat <<\_ASBOX
  3762. ## -------------------------------- ##
  3763. ## Report this to classpath@gnu.org ##
  3764. ## -------------------------------- ##
  3765. _ASBOX
  3766. ) |
  3767. sed "s/^/$as_me: WARNING: /" >&2
  3768. ;;
  3769. esac
  3770. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3771. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3772. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3773. echo $ECHO_N "(cached) $ECHO_C" >&6
  3774. else
  3775. eval "$as_ac_Header=\$ac_header_preproc"
  3776. fi
  3777. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3778. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3779. fi
  3780. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3781. cat >>confdefs.h <<_ACEOF
  3782. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3783. _ACEOF
  3784. COMPILE_DSSI=yes
  3785. else
  3786. COMPILE_DSSI=no
  3787. fi
  3788. done
  3789. fi;
  3790. if test "x${COMPILE_DSSI}" = xyes; then
  3791. CREATE_DSSI_LIBRARIES_TRUE=
  3792. CREATE_DSSI_LIBRARIES_FALSE='#'
  3793. else
  3794. CREATE_DSSI_LIBRARIES_TRUE='#'
  3795. CREATE_DSSI_LIBRARIES_FALSE=
  3796. fi
  3797. # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
  3798. if test "${enable_gtk_peer+set}" = set; then
  3799. enableval="$enable_gtk_peer"
  3800. case "${enableval}" in
  3801. yes) COMPILE_GTK_PEER=yes ;;
  3802. no) COMPILE_GTK_PEER=no ;;
  3803. *) COMPILE_GTK_PEER=yes ;;
  3804. esac
  3805. else
  3806. COMPILE_GTK_PEER=yes
  3807. fi;
  3808. if test "x${COMPILE_GTK_PEER}" = xyes; then
  3809. CREATE_GTK_PEER_LIBRARIES_TRUE=
  3810. CREATE_GTK_PEER_LIBRARIES_FALSE='#'
  3811. else
  3812. CREATE_GTK_PEER_LIBRARIES_TRUE='#'
  3813. CREATE_GTK_PEER_LIBRARIES_FALSE=
  3814. fi
  3815. # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
  3816. if test "${enable_gtk_peers+set}" = set; then
  3817. enableval="$enable_gtk_peers"
  3818. { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
  3819. echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
  3820. { (exit 1); exit 1; }; }
  3821. fi;
  3822. # Check whether --enable-qt-peer or --disable-qt-peer was given.
  3823. if test "${enable_qt_peer+set}" = set; then
  3824. enableval="$enable_qt_peer"
  3825. case "${enableval}" in
  3826. yes) COMPILE_QT_PEER=yes ;;
  3827. no) COMPILE_QT_PEER=no ;;
  3828. *) COMPILE_QT_PEER=yes ;;
  3829. esac
  3830. else
  3831. COMPILE_QT_PEER=no
  3832. fi;
  3833. if test "x${COMPILE_QT_PEER}" = xyes; then
  3834. CREATE_QT_PEER_LIBRARIES_TRUE=
  3835. CREATE_QT_PEER_LIBRARIES_FALSE='#'
  3836. else
  3837. CREATE_QT_PEER_LIBRARIES_TRUE='#'
  3838. CREATE_QT_PEER_LIBRARIES_FALSE=
  3839. fi
  3840. # Check whether --enable-plugin or --disable-plugin was given.
  3841. if test "${enable_plugin+set}" = set; then
  3842. enableval="$enable_plugin"
  3843. case "${enableval}" in
  3844. yes) COMPILE_PLUGIN=yes ;;
  3845. no) COMPILE_PLUGIN=no ;;
  3846. *) COMPILE_PLUGIN=yes ;;
  3847. esac
  3848. else
  3849. COMPILE_PLUGIN=yes
  3850. fi;
  3851. if test "x${COMPILE_PLUGIN}" = xyes; then
  3852. CREATE_PLUGIN_TRUE=
  3853. CREATE_PLUGIN_FALSE='#'
  3854. else
  3855. CREATE_PLUGIN_TRUE='#'
  3856. CREATE_PLUGIN_FALSE=
  3857. fi
  3858. multi_os_directory=`$CC -print-multi-os-directory`
  3859. case $multi_os_directory in
  3860. .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
  3861. *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
  3862. esac
  3863. # Check whether --with-native-libdir or --without-native-libdir was given.
  3864. if test "${with_native_libdir+set}" = set; then
  3865. withval="$with_native_libdir"
  3866. nativeexeclibdir=${withval}
  3867. else
  3868. nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`
  3869. fi;
  3870. # Check whether --with-glibj-dir or --without-glibj-dir was given.
  3871. if test "${with_glibj_dir+set}" = set; then
  3872. withval="$with_glibj_dir"
  3873. glibjdir=${withval}
  3874. else
  3875. glibjdir='${datadir}/${PACKAGE}'
  3876. fi;
  3877. # Check whether --with-vm or --without-vm was given.
  3878. if test "${with_vm+set}" = set; then
  3879. withval="$with_vm"
  3880. VM_BINARY=${withval}
  3881. else
  3882. VM_BINARY='${prefix}/bin/jamvm'
  3883. fi;
  3884. if test "x`basename $VM_BINARY`" = xcacao; then
  3885. FOUND_CACAO_TRUE=
  3886. FOUND_CACAO_FALSE='#'
  3887. else
  3888. FOUND_CACAO_TRUE='#'
  3889. FOUND_CACAO_FALSE=
  3890. fi
  3891. # Check whether --enable-regen-headers or --disable-regen-headers was given.
  3892. if test "${enable_regen_headers+set}" = set; then
  3893. enableval="$enable_regen_headers"
  3894. case "${enableval}" in
  3895. yes) REGENERATE_JNI_HEADERS=yes ;;
  3896. no) REGENERATE_JNI_HEADERS=no ;;
  3897. *) REGENERATE_JNI_HEADERS=no ;;
  3898. esac
  3899. else
  3900. REGENERATE_JNI_HEADERS=no
  3901. fi;
  3902. if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
  3903. CREATE_JNI_HEADERS_TRUE=
  3904. CREATE_JNI_HEADERS_FALSE='#'
  3905. else
  3906. CREATE_JNI_HEADERS_TRUE='#'
  3907. CREATE_JNI_HEADERS_FALSE=
  3908. fi
  3909. # Check whether --enable-tool-wrappers or --disable-tool-wrappers was given.
  3910. if test "${enable_tool_wrappers+set}" = set; then
  3911. enableval="$enable_tool_wrappers"
  3912. case x"${enableval}" in
  3913. xyes) COMPILE_WRAPPERS=yes ;;
  3914. xno) COMPILE_WRAPPERS=no ;;
  3915. x) COMPILE_WRAPPERS=yes ;;
  3916. *) COMPILE_WRAPPERS=yes ;;
  3917. esac
  3918. else
  3919. COMPILE_WRAPPERS=no
  3920. fi;
  3921. if test "x${COMPILE_WRAPPERS}" = xyes; then
  3922. CREATE_WRAPPERS_TRUE=
  3923. CREATE_WRAPPERS_FALSE='#'
  3924. else
  3925. CREATE_WRAPPERS_TRUE='#'
  3926. CREATE_WRAPPERS_FALSE=
  3927. fi
  3928. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3929. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3930. LN_S=$as_ln_s
  3931. if test "$LN_S" = "ln -s"; then
  3932. echo "$as_me:$LINENO: result: yes" >&5
  3933. echo "${ECHO_T}yes" >&6
  3934. else
  3935. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3936. echo "${ECHO_T}no, using $LN_S" >&6
  3937. fi
  3938. # Find a good install program. We prefer a C program (faster),
  3939. # so one script is as good as another. But avoid the broken or
  3940. # incompatible versions:
  3941. # SysV /etc/install, /usr/sbin/install
  3942. # SunOS /usr/etc/install
  3943. # IRIX /sbin/install
  3944. # AIX /bin/install
  3945. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3946. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3947. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3948. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3949. # OS/2's system install, which has a completely different semantic
  3950. # ./install, which can be erroneously created by make from ./install.sh.
  3951. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3952. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3953. if test -z "$INSTALL"; then
  3954. if test "${ac_cv_path_install+set}" = set; then
  3955. echo $ECHO_N "(cached) $ECHO_C" >&6
  3956. else
  3957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3958. for as_dir in $PATH
  3959. do
  3960. IFS=$as_save_IFS
  3961. test -z "$as_dir" && as_dir=.
  3962. # Account for people who put trailing slashes in PATH elements.
  3963. case $as_dir/ in
  3964. ./ | .// | /cC/* | \
  3965. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3966. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3967. /usr/ucb/* ) ;;
  3968. *)
  3969. # OSF1 and SCO ODT 3.0 have their own names for install.
  3970. # Don't use installbsd from OSF since it installs stuff as root
  3971. # by default.
  3972. for ac_prog in ginstall scoinst install; do
  3973. for ac_exec_ext in '' $ac_executable_extensions; do
  3974. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3975. if test $ac_prog = install &&
  3976. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3977. # AIX install. It has an incompatible calling convention.
  3978. :
  3979. elif test $ac_prog = install &&
  3980. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3981. # program-specific install script used by HP pwplus--don't use.
  3982. :
  3983. else
  3984. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3985. break 3
  3986. fi
  3987. fi
  3988. done
  3989. done
  3990. ;;
  3991. esac
  3992. done
  3993. fi
  3994. if test "${ac_cv_path_install+set}" = set; then
  3995. INSTALL=$ac_cv_path_install
  3996. else
  3997. # As a last resort, use the slow shell script. We don't cache a
  3998. # path for INSTALL within a source directory, because that will
  3999. # break other packages using the cache if that directory is
  4000. # removed, or if the path is relative.
  4001. INSTALL=$ac_install_sh
  4002. fi
  4003. fi
  4004. echo "$as_me:$LINENO: result: $INSTALL" >&5
  4005. echo "${ECHO_T}$INSTALL" >&6
  4006. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4007. # It thinks the first close brace ends the variable substitution.
  4008. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4009. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4010. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4011. ac_ext=cc
  4012. ac_cpp='$CXXCPP $CPPFLAGS'
  4013. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4014. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4015. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4016. if test -n "$ac_tool_prefix"; then
  4017. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  4018. do
  4019. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4020. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4021. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4022. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4023. if test "${ac_cv_prog_CXX+set}" = set; then
  4024. echo $ECHO_N "(cached) $ECHO_C" >&6
  4025. else
  4026. if test -n "$CXX"; then
  4027. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4028. else
  4029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4030. for as_dir in $PATH
  4031. do
  4032. IFS=$as_save_IFS
  4033. test -z "$as_dir" && as_dir=.
  4034. for ac_exec_ext in '' $ac_executable_extensions; do
  4035. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4036. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4037. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4038. break 2
  4039. fi
  4040. done
  4041. done
  4042. fi
  4043. fi
  4044. CXX=$ac_cv_prog_CXX
  4045. if test -n "$CXX"; then
  4046. echo "$as_me:$LINENO: result: $CXX" >&5
  4047. echo "${ECHO_T}$CXX" >&6
  4048. else
  4049. echo "$as_me:$LINENO: result: no" >&5
  4050. echo "${ECHO_T}no" >&6
  4051. fi
  4052. test -n "$CXX" && break
  4053. done
  4054. fi
  4055. if test -z "$CXX"; then
  4056. ac_ct_CXX=$CXX
  4057. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  4058. do
  4059. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4060. set dummy $ac_prog; ac_word=$2
  4061. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4062. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4063. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4064. echo $ECHO_N "(cached) $ECHO_C" >&6
  4065. else
  4066. if test -n "$ac_ct_CXX"; then
  4067. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4068. else
  4069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4070. for as_dir in $PATH
  4071. do
  4072. IFS=$as_save_IFS
  4073. test -z "$as_dir" && as_dir=.
  4074. for ac_exec_ext in '' $ac_executable_extensions; do
  4075. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4076. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4077. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4078. break 2
  4079. fi
  4080. done
  4081. done
  4082. fi
  4083. fi
  4084. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4085. if test -n "$ac_ct_CXX"; then
  4086. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4087. echo "${ECHO_T}$ac_ct_CXX" >&6
  4088. else
  4089. echo "$as_me:$LINENO: result: no" >&5
  4090. echo "${ECHO_T}no" >&6
  4091. fi
  4092. test -n "$ac_ct_CXX" && break
  4093. done
  4094. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  4095. CXX=$ac_ct_CXX
  4096. fi
  4097. # Provide some information about the compiler.
  4098. echo "$as_me:$LINENO:" \
  4099. "checking for C++ compiler version" >&5
  4100. ac_compiler=`set X $ac_compile; echo $2`
  4101. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4102. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4103. ac_status=$?
  4104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4105. (exit $ac_status); }
  4106. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4107. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4108. ac_status=$?
  4109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4110. (exit $ac_status); }
  4111. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4112. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4113. ac_status=$?
  4114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4115. (exit $ac_status); }
  4116. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4117. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  4118. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4119. echo $ECHO_N "(cached) $ECHO_C" >&6
  4120. else
  4121. cat >conftest.$ac_ext <<_ACEOF
  4122. /* confdefs.h. */
  4123. _ACEOF
  4124. cat confdefs.h >>conftest.$ac_ext
  4125. cat >>conftest.$ac_ext <<_ACEOF
  4126. /* end confdefs.h. */
  4127. int
  4128. main ()
  4129. {
  4130. #ifndef __GNUC__
  4131. choke me
  4132. #endif
  4133. ;
  4134. return 0;
  4135. }
  4136. _ACEOF
  4137. rm -f conftest.$ac_objext
  4138. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4139. (eval $ac_compile) 2>conftest.er1
  4140. ac_status=$?
  4141. grep -v '^ *+' conftest.er1 >conftest.err
  4142. rm -f conftest.er1
  4143. cat conftest.err >&5
  4144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4145. (exit $ac_status); } &&
  4146. { ac_try='test -z "$ac_cxx_werror_flag"
  4147. || test ! -s conftest.err'
  4148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4149. (eval $ac_try) 2>&5
  4150. ac_status=$?
  4151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4152. (exit $ac_status); }; } &&
  4153. { ac_try='test -s conftest.$ac_objext'
  4154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4155. (eval $ac_try) 2>&5
  4156. ac_status=$?
  4157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4158. (exit $ac_status); }; }; then
  4159. ac_compiler_gnu=yes
  4160. else
  4161. echo "$as_me: failed program was:" >&5
  4162. sed 's/^/| /' conftest.$ac_ext >&5
  4163. ac_compiler_gnu=no
  4164. fi
  4165. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4166. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4167. fi
  4168. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4169. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  4170. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4171. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4172. ac_save_CXXFLAGS=$CXXFLAGS
  4173. CXXFLAGS="-g"
  4174. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4175. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  4176. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4177. echo $ECHO_N "(cached) $ECHO_C" >&6
  4178. else
  4179. cat >conftest.$ac_ext <<_ACEOF
  4180. /* confdefs.h. */
  4181. _ACEOF
  4182. cat confdefs.h >>conftest.$ac_ext
  4183. cat >>conftest.$ac_ext <<_ACEOF
  4184. /* end confdefs.h. */
  4185. int
  4186. main ()
  4187. {
  4188. ;
  4189. return 0;
  4190. }
  4191. _ACEOF
  4192. rm -f conftest.$ac_objext
  4193. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4194. (eval $ac_compile) 2>conftest.er1
  4195. ac_status=$?
  4196. grep -v '^ *+' conftest.er1 >conftest.err
  4197. rm -f conftest.er1
  4198. cat conftest.err >&5
  4199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4200. (exit $ac_status); } &&
  4201. { ac_try='test -z "$ac_cxx_werror_flag"
  4202. || test ! -s conftest.err'
  4203. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4204. (eval $ac_try) 2>&5
  4205. ac_status=$?
  4206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4207. (exit $ac_status); }; } &&
  4208. { ac_try='test -s conftest.$ac_objext'
  4209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4210. (eval $ac_try) 2>&5
  4211. ac_status=$?
  4212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4213. (exit $ac_status); }; }; then
  4214. ac_cv_prog_cxx_g=yes
  4215. else
  4216. echo "$as_me: failed program was:" >&5
  4217. sed 's/^/| /' conftest.$ac_ext >&5
  4218. ac_cv_prog_cxx_g=no
  4219. fi
  4220. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4221. fi
  4222. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  4223. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  4224. if test "$ac_test_CXXFLAGS" = set; then
  4225. CXXFLAGS=$ac_save_CXXFLAGS
  4226. elif test $ac_cv_prog_cxx_g = yes; then
  4227. if test "$GXX" = yes; then
  4228. CXXFLAGS="-g -O2"
  4229. else
  4230. CXXFLAGS="-g"
  4231. fi
  4232. else
  4233. if test "$GXX" = yes; then
  4234. CXXFLAGS="-O2"
  4235. else
  4236. CXXFLAGS=
  4237. fi
  4238. fi
  4239. for ac_declaration in \
  4240. '' \
  4241. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  4242. 'extern "C" void std::exit (int); using std::exit;' \
  4243. 'extern "C" void exit (int) throw ();' \
  4244. 'extern "C" void exit (int);' \
  4245. 'void exit (int);'
  4246. do
  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. $ac_declaration
  4254. #include <stdlib.h>
  4255. int
  4256. main ()
  4257. {
  4258. exit (42);
  4259. ;
  4260. return 0;
  4261. }
  4262. _ACEOF
  4263. rm -f conftest.$ac_objext
  4264. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4265. (eval $ac_compile) 2>conftest.er1
  4266. ac_status=$?
  4267. grep -v '^ *+' conftest.er1 >conftest.err
  4268. rm -f conftest.er1
  4269. cat conftest.err >&5
  4270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4271. (exit $ac_status); } &&
  4272. { ac_try='test -z "$ac_cxx_werror_flag"
  4273. || test ! -s conftest.err'
  4274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4275. (eval $ac_try) 2>&5
  4276. ac_status=$?
  4277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4278. (exit $ac_status); }; } &&
  4279. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  4285. :
  4286. else
  4287. echo "$as_me: failed program was:" >&5
  4288. sed 's/^/| /' conftest.$ac_ext >&5
  4289. continue
  4290. fi
  4291. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4292. cat >conftest.$ac_ext <<_ACEOF
  4293. /* confdefs.h. */
  4294. _ACEOF
  4295. cat confdefs.h >>conftest.$ac_ext
  4296. cat >>conftest.$ac_ext <<_ACEOF
  4297. /* end confdefs.h. */
  4298. $ac_declaration
  4299. int
  4300. main ()
  4301. {
  4302. exit (42);
  4303. ;
  4304. return 0;
  4305. }
  4306. _ACEOF
  4307. rm -f conftest.$ac_objext
  4308. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4309. (eval $ac_compile) 2>conftest.er1
  4310. ac_status=$?
  4311. grep -v '^ *+' conftest.er1 >conftest.err
  4312. rm -f conftest.er1
  4313. cat conftest.err >&5
  4314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4315. (exit $ac_status); } &&
  4316. { ac_try='test -z "$ac_cxx_werror_flag"
  4317. || test ! -s conftest.err'
  4318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4319. (eval $ac_try) 2>&5
  4320. ac_status=$?
  4321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4322. (exit $ac_status); }; } &&
  4323. { ac_try='test -s conftest.$ac_objext'
  4324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4325. (eval $ac_try) 2>&5
  4326. ac_status=$?
  4327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4328. (exit $ac_status); }; }; then
  4329. break
  4330. else
  4331. echo "$as_me: failed program was:" >&5
  4332. sed 's/^/| /' conftest.$ac_ext >&5
  4333. fi
  4334. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4335. done
  4336. rm -f conftest*
  4337. if test -n "$ac_declaration"; then
  4338. echo '#ifdef __cplusplus' >>confdefs.h
  4339. echo $ac_declaration >>confdefs.h
  4340. echo '#endif' >>confdefs.h
  4341. fi
  4342. ac_ext=c
  4343. ac_cpp='$CPP $CPPFLAGS'
  4344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4347. depcc="$CXX" am_compiler_list=
  4348. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4349. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  4350. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  4351. echo $ECHO_N "(cached) $ECHO_C" >&6
  4352. else
  4353. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4354. # We make a subdir and do the tests there. Otherwise we can end up
  4355. # making bogus files that we don't know about and never remove. For
  4356. # instance it was reported that on HP-UX the gcc test will end up
  4357. # making a dummy file named `D' -- because `-MD' means `put the output
  4358. # in D'.
  4359. mkdir conftest.dir
  4360. # Copy depcomp to subdir because otherwise we won't find it if we're
  4361. # using a relative directory.
  4362. cp "$am_depcomp" conftest.dir
  4363. cd conftest.dir
  4364. # We will build objects and dependencies in a subdirectory because
  4365. # it helps to detect inapplicable dependency modes. For instance
  4366. # both Tru64's cc and ICC support -MD to output dependencies as a
  4367. # side effect of compilation, but ICC will put the dependencies in
  4368. # the current directory while Tru64 will put them in the object
  4369. # directory.
  4370. mkdir sub
  4371. am_cv_CXX_dependencies_compiler_type=none
  4372. if test "$am_compiler_list" = ""; then
  4373. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4374. fi
  4375. for depmode in $am_compiler_list; do
  4376. # Setup a source with many dependencies, because some compilers
  4377. # like to wrap large dependency lists on column 80 (with \), and
  4378. # we should not choose a depcomp mode which is confused by this.
  4379. #
  4380. # We need to recreate these files for each test, as the compiler may
  4381. # overwrite some of them when testing with obscure command lines.
  4382. # This happens at least with the AIX C compiler.
  4383. : > sub/conftest.c
  4384. for i in 1 2 3 4 5 6; do
  4385. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4386. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4387. # Solaris 8's {/usr,}/bin/sh.
  4388. touch sub/conftst$i.h
  4389. done
  4390. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4391. case $depmode in
  4392. nosideeffect)
  4393. # after this tag, mechanisms are not by side-effect, so they'll
  4394. # only be used when explicitly requested
  4395. if test "x$enable_dependency_tracking" = xyes; then
  4396. continue
  4397. else
  4398. break
  4399. fi
  4400. ;;
  4401. none) break ;;
  4402. esac
  4403. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4404. # mode. It turns out that the SunPro C++ compiler does not properly
  4405. # handle `-M -o', and we need to detect this.
  4406. if depmode=$depmode \
  4407. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4408. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4409. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4410. >/dev/null 2>conftest.err &&
  4411. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4412. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4413. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4414. # icc doesn't choke on unknown options, it will just issue warnings
  4415. # or remarks (even with -Werror). So we grep stderr for any message
  4416. # that says an option was ignored or not supported.
  4417. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4418. # icc: Command line warning: ignoring option '-M'; no argument required
  4419. # The diagnosis changed in icc 8.0:
  4420. # icc: Command line remark: option '-MP' not supported
  4421. if (grep 'ignoring option' conftest.err ||
  4422. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4423. am_cv_CXX_dependencies_compiler_type=$depmode
  4424. break
  4425. fi
  4426. fi
  4427. done
  4428. cd ..
  4429. rm -rf conftest.dir
  4430. else
  4431. am_cv_CXX_dependencies_compiler_type=none
  4432. fi
  4433. fi
  4434. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4435. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  4436. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4437. if
  4438. test "x$enable_dependency_tracking" != xno \
  4439. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4440. am__fastdepCXX_TRUE=
  4441. am__fastdepCXX_FALSE='#'
  4442. else
  4443. am__fastdepCXX_TRUE='#'
  4444. am__fastdepCXX_FALSE=
  4445. fi
  4446. # Check whether --enable-static or --disable-static was given.
  4447. if test "${enable_static+set}" = set; then
  4448. enableval="$enable_static"
  4449. p=${PACKAGE-default}
  4450. case $enableval in
  4451. yes) enable_static=yes ;;
  4452. no) enable_static=no ;;
  4453. *)
  4454. enable_static=no
  4455. # Look at the argument we got. We use all the common list separators.
  4456. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  4457. for pkg in $enableval; do
  4458. if test "X$pkg" = "X$p"; then
  4459. enable_static=yes
  4460. fi
  4461. done
  4462. IFS="$ac_save_ifs"
  4463. ;;
  4464. esac
  4465. else
  4466. enable_static=no
  4467. fi;
  4468. # Check whether --enable-shared or --disable-shared was given.
  4469. if test "${enable_shared+set}" = set; then
  4470. enableval="$enable_shared"
  4471. p=${PACKAGE-default}
  4472. case $enableval in
  4473. yes) enable_shared=yes ;;
  4474. no) enable_shared=no ;;
  4475. *)
  4476. enable_shared=no
  4477. # Look at the argument we got. We use all the common list separators.
  4478. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  4479. for pkg in $enableval; do
  4480. if test "X$pkg" = "X$p"; then
  4481. enable_shared=yes
  4482. fi
  4483. done
  4484. IFS="$ac_save_ifs"
  4485. ;;
  4486. esac
  4487. else
  4488. enable_shared=yes
  4489. fi;
  4490. # Check whether --enable-fast-install or --disable-fast-install was given.
  4491. if test "${enable_fast_install+set}" = set; then
  4492. enableval="$enable_fast_install"
  4493. p=${PACKAGE-default}
  4494. case $enableval in
  4495. yes) enable_fast_install=yes ;;
  4496. no) enable_fast_install=no ;;
  4497. *)
  4498. enable_fast_install=no
  4499. # Look at the argument we got. We use all the common list separators.
  4500. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  4501. for pkg in $enableval; do
  4502. if test "X$pkg" = "X$p"; then
  4503. enable_fast_install=yes
  4504. fi
  4505. done
  4506. IFS="$ac_save_ifs"
  4507. ;;
  4508. esac
  4509. else
  4510. enable_fast_install=yes
  4511. fi;
  4512. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  4513. if test "${with_gnu_ld+set}" = set; then
  4514. withval="$with_gnu_ld"
  4515. test "$withval" = no || with_gnu_ld=yes
  4516. else
  4517. with_gnu_ld=no
  4518. fi;
  4519. ac_prog=ld
  4520. if test "$GCC" = yes; then
  4521. # Check if gcc -print-prog-name=ld gives a path.
  4522. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  4523. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  4524. case $host in
  4525. *-*-mingw*)
  4526. # gcc leaves a trailing carriage return which upsets mingw
  4527. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4528. *)
  4529. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4530. esac
  4531. case $ac_prog in
  4532. # Accept absolute paths.
  4533. [\\/]* | [A-Za-z]:[\\/]*)
  4534. re_direlt='/[^/][^/]*/\.\./'
  4535. # Canonicalize the path of ld
  4536. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  4537. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4538. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  4539. done
  4540. test -z "$LD" && LD="$ac_prog"
  4541. ;;
  4542. "")
  4543. # If it fails, then pretend we aren't using GCC.
  4544. ac_prog=ld
  4545. ;;
  4546. *)
  4547. # If it is relative, then search for the first ld in PATH.
  4548. with_gnu_ld=unknown
  4549. ;;
  4550. esac
  4551. elif test "$with_gnu_ld" = yes; then
  4552. echo "$as_me:$LINENO: checking for GNU ld" >&5
  4553. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  4554. else
  4555. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4556. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  4557. fi
  4558. if test "${lt_cv_path_LD+set}" = set; then
  4559. echo $ECHO_N "(cached) $ECHO_C" >&6
  4560. else
  4561. if test -z "$LD"; then
  4562. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  4563. for ac_dir in $PATH; do
  4564. test -z "$ac_dir" && ac_dir=.
  4565. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4566. lt_cv_path_LD="$ac_dir/$ac_prog"
  4567. # Check to see if the program is GNU ld. I'd rather use --version,
  4568. # but apparently some GNU ld's only accept -v.
  4569. # Break only if it was the GNU/non-GNU ld that we prefer.
  4570. if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  4571. test "$with_gnu_ld" != no && break
  4572. else
  4573. test "$with_gnu_ld" != yes && break
  4574. fi
  4575. fi
  4576. done
  4577. IFS="$ac_save_ifs"
  4578. else
  4579. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4580. fi
  4581. fi
  4582. LD="$lt_cv_path_LD"
  4583. if test -n "$LD"; then
  4584. echo "$as_me:$LINENO: result: $LD" >&5
  4585. echo "${ECHO_T}$LD" >&6
  4586. else
  4587. echo "$as_me:$LINENO: result: no" >&5
  4588. echo "${ECHO_T}no" >&6
  4589. fi
  4590. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4591. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4592. { (exit 1); exit 1; }; }
  4593. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4594. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  4595. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4596. echo $ECHO_N "(cached) $ECHO_C" >&6
  4597. else
  4598. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4599. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  4600. lt_cv_prog_gnu_ld=yes
  4601. else
  4602. lt_cv_prog_gnu_ld=no
  4603. fi
  4604. fi
  4605. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4606. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  4607. with_gnu_ld=$lt_cv_prog_gnu_ld
  4608. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4609. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  4610. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4611. echo $ECHO_N "(cached) $ECHO_C" >&6
  4612. else
  4613. lt_cv_ld_reload_flag='-r'
  4614. fi
  4615. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4616. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  4617. reload_flag=$lt_cv_ld_reload_flag
  4618. test -n "$reload_flag" && reload_flag=" $reload_flag"
  4619. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  4620. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  4621. if test "${lt_cv_path_NM+set}" = set; then
  4622. echo $ECHO_N "(cached) $ECHO_C" >&6
  4623. else
  4624. if test -n "$NM"; then
  4625. # Let the user override the test.
  4626. lt_cv_path_NM="$NM"
  4627. else
  4628. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  4629. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4630. test -z "$ac_dir" && ac_dir=.
  4631. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  4632. if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  4633. # Check to see if the nm accepts a BSD-compat flag.
  4634. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4635. # nm: unknown option "B" ignored
  4636. # Tru64's nm complains that /dev/null is an invalid object file
  4637. if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  4638. lt_cv_path_NM="$tmp_nm -B"
  4639. break
  4640. elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  4641. lt_cv_path_NM="$tmp_nm -p"
  4642. break
  4643. else
  4644. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4645. continue # so that we can try to find one that supports BSD flags
  4646. fi
  4647. fi
  4648. done
  4649. IFS="$ac_save_ifs"
  4650. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4651. fi
  4652. fi
  4653. NM="$lt_cv_path_NM"
  4654. echo "$as_me:$LINENO: result: $NM" >&5
  4655. echo "${ECHO_T}$NM" >&6
  4656. echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
  4657. echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
  4658. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4659. echo $ECHO_N "(cached) $ECHO_C" >&6
  4660. else
  4661. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4662. lt_cv_file_magic_test_file=
  4663. lt_cv_deplibs_check_method='unknown'
  4664. # Need to set the preceding variable on all platforms that support
  4665. # interlibrary dependencies.
  4666. # 'none' -- dependencies not supported.
  4667. # `unknown' -- same as none, but documents that we really don't know.
  4668. # 'pass_all' -- all dependencies passed with no checks.
  4669. # 'test_compile' -- check by making test program.
  4670. # 'file_magic [regex]' -- check by looking for files in library path
  4671. # which responds to the $file_magic_cmd with a given egrep regex.
  4672. # If you have `file' or equivalent on your system and you're not sure
  4673. # whether `pass_all' will *always* work, you probably want this one.
  4674. case $host_os in
  4675. aix*)
  4676. lt_cv_deplibs_check_method=pass_all
  4677. ;;
  4678. beos*)
  4679. lt_cv_deplibs_check_method=pass_all
  4680. ;;
  4681. bsdi4*)
  4682. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4683. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4684. lt_cv_file_magic_test_file=/shlib/libc.so
  4685. ;;
  4686. cygwin* | mingw* |pw32*)
  4687. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4688. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4689. ;;
  4690. darwin* | rhapsody*)
  4691. # this will be overwritten by pass_all, but leave it in just in case
  4692. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  4693. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4694. case "$host_os" in
  4695. rhapsody* | darwin1.012)
  4696. lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
  4697. ;;
  4698. *) # Darwin 1.3 on
  4699. lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  4700. ;;
  4701. esac
  4702. lt_cv_deplibs_check_method=pass_all
  4703. ;;
  4704. freebsd* | kfreebsd*-gnu)
  4705. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4706. case $host_cpu in
  4707. i*86 )
  4708. # Not sure whether the presence of OpenBSD here was a mistake.
  4709. # Let's accept both of them until this is cleared up.
  4710. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  4711. lt_cv_file_magic_cmd=/usr/bin/file
  4712. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4713. ;;
  4714. esac
  4715. else
  4716. lt_cv_deplibs_check_method=pass_all
  4717. fi
  4718. ;;
  4719. gnu*)
  4720. lt_cv_deplibs_check_method=pass_all
  4721. ;;
  4722. hpux10.20*|hpux11*)
  4723. case $host_cpu in
  4724. hppa*)
  4725. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4726. lt_cv_file_magic_cmd=/usr/bin/file
  4727. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4728. ;;
  4729. ia64*)
  4730. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4731. lt_cv_file_magic_cmd=/usr/bin/file
  4732. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4733. ;;
  4734. esac
  4735. ;;
  4736. irix5* | irix6*)
  4737. case $host_os in
  4738. irix5*)
  4739. # this will be overridden with pass_all, but let us keep it just in case
  4740. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  4741. ;;
  4742. *)
  4743. case $LD in
  4744. *-32|*"-32 ") libmagic=32-bit;;
  4745. *-n32|*"-n32 ") libmagic=N32;;
  4746. *-64|*"-64 ") libmagic=64-bit;;
  4747. *) libmagic=never-match;;
  4748. esac
  4749. # this will be overridden with pass_all, but let us keep it just in case
  4750. lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  4751. ;;
  4752. esac
  4753. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  4754. lt_cv_deplibs_check_method=pass_all
  4755. ;;
  4756. # This must be Linux ELF.
  4757. linux-gnu*)
  4758. lt_cv_deplibs_check_method=pass_all
  4759. ;;
  4760. netbsd* | knetbsd*-gnu)
  4761. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4762. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  4763. else
  4764. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  4765. fi
  4766. ;;
  4767. newsos6)
  4768. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4769. lt_cv_file_magic_cmd=/usr/bin/file
  4770. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4771. ;;
  4772. osf3* | osf4* | osf5*)
  4773. # this will be overridden with pass_all, but let us keep it just in case
  4774. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  4775. lt_cv_file_magic_test_file=/shlib/libc.so
  4776. lt_cv_deplibs_check_method=pass_all
  4777. ;;
  4778. sco3.2v5*)
  4779. lt_cv_deplibs_check_method=pass_all
  4780. ;;
  4781. solaris*)
  4782. lt_cv_deplibs_check_method=pass_all
  4783. lt_cv_file_magic_test_file=/lib/libc.so
  4784. ;;
  4785. sysv5uw[78]* | sysv4*uw2*)
  4786. lt_cv_deplibs_check_method=pass_all
  4787. ;;
  4788. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4789. case $host_vendor in
  4790. ncr)
  4791. lt_cv_deplibs_check_method=pass_all
  4792. ;;
  4793. motorola)
  4794. 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]'
  4795. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4796. ;;
  4797. esac
  4798. ;;
  4799. esac
  4800. fi
  4801. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4802. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  4803. file_magic_cmd=$lt_cv_file_magic_cmd
  4804. deplibs_check_method=$lt_cv_deplibs_check_method
  4805. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4806. # find the maximum length of command line arguments
  4807. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4808. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  4809. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4810. echo $ECHO_N "(cached) $ECHO_C" >&6
  4811. else
  4812. i=0
  4813. teststring="ABCD"
  4814. case $build_os in
  4815. msdosdjgpp*)
  4816. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4817. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4818. # during glob expansion). Even if it were fixed, the result of this
  4819. # check would be larger than it should be.
  4820. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4821. ;;
  4822. cygwin* | mingw*)
  4823. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4824. # about 5 minutes as the teststring grows exponentially.
  4825. # Worse, since 9x/ME are not pre-emptively multitasking,
  4826. # you end up with a "frozen" computer, even though with patience
  4827. # the test eventually succeeds (with a max line length of 256k).
  4828. # Instead, let's just punt: use the minimum linelength reported by
  4829. # all of the supported platforms: 8192 (on NT/2K/XP).
  4830. lt_cv_sys_max_cmd_len=8192;
  4831. ;;
  4832. amigaos*)
  4833. # On AmigaOS with pdksh, this test takes hours, literally.
  4834. # So we just punt and use a minimum line length of 8192.
  4835. lt_cv_sys_max_cmd_len=8192;
  4836. ;;
  4837. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4838. # This has been around since 386BSD, at least. Likely further.
  4839. if test -x /sbin/sysctl; then
  4840. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4841. elif test -x /usr/sbin/sysctl; then
  4842. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4843. else
  4844. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  4845. fi
  4846. # And add a safety zone
  4847. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4848. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4849. ;;
  4850. esac
  4851. fi
  4852. if test -n "$lt_cv_sys_max_cmd_len" ; then
  4853. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4854. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  4855. else
  4856. echo "$as_me:$LINENO: result: none" >&5
  4857. echo "${ECHO_T}none" >&6
  4858. fi
  4859. # Only perform the check for file, if the check method requires it
  4860. case $deplibs_check_method in
  4861. file_magic*)
  4862. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  4863. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  4864. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  4865. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4866. echo $ECHO_N "(cached) $ECHO_C" >&6
  4867. else
  4868. case $MAGIC_CMD in
  4869. /*)
  4870. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4871. ;;
  4872. ?:/*)
  4873. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  4874. ;;
  4875. *)
  4876. ac_save_MAGIC_CMD="$MAGIC_CMD"
  4877. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4878. ac_dummy="/usr/bin:$PATH"
  4879. for ac_dir in $ac_dummy; do
  4880. test -z "$ac_dir" && ac_dir=.
  4881. if test -f $ac_dir/${ac_tool_prefix}file; then
  4882. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  4883. if test -n "$file_magic_test_file"; then
  4884. case $deplibs_check_method in
  4885. "file_magic "*)
  4886. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4887. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4888. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4889. egrep "$file_magic_regex" > /dev/null; then
  4890. :
  4891. else
  4892. cat <<EOF 1>&2
  4893. *** Warning: the command libtool uses to detect shared libraries,
  4894. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4895. *** The result is that libtool may fail to recognize shared libraries
  4896. *** as such. This will affect the creation of libtool libraries that
  4897. *** depend on shared libraries, but programs linked with such libtool
  4898. *** libraries will work regardless of this problem. Nevertheless, you
  4899. *** may want to report the problem to your system manager and/or to
  4900. *** bug-libtool@gnu.org
  4901. EOF
  4902. fi ;;
  4903. esac
  4904. fi
  4905. break
  4906. fi
  4907. done
  4908. IFS="$ac_save_ifs"
  4909. MAGIC_CMD="$ac_save_MAGIC_CMD"
  4910. ;;
  4911. esac
  4912. fi
  4913. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4914. if test -n "$MAGIC_CMD"; then
  4915. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  4916. echo "${ECHO_T}$MAGIC_CMD" >&6
  4917. else
  4918. echo "$as_me:$LINENO: result: no" >&5
  4919. echo "${ECHO_T}no" >&6
  4920. fi
  4921. if test -z "$lt_cv_path_MAGIC_CMD"; then
  4922. if test -n "$ac_tool_prefix"; then
  4923. echo "$as_me:$LINENO: checking for file" >&5
  4924. echo $ECHO_N "checking for file... $ECHO_C" >&6
  4925. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4926. echo $ECHO_N "(cached) $ECHO_C" >&6
  4927. else
  4928. case $MAGIC_CMD in
  4929. /*)
  4930. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4931. ;;
  4932. ?:/*)
  4933. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  4934. ;;
  4935. *)
  4936. ac_save_MAGIC_CMD="$MAGIC_CMD"
  4937. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4938. ac_dummy="/usr/bin:$PATH"
  4939. for ac_dir in $ac_dummy; do
  4940. test -z "$ac_dir" && ac_dir=.
  4941. if test -f $ac_dir/file; then
  4942. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  4943. if test -n "$file_magic_test_file"; then
  4944. case $deplibs_check_method in
  4945. "file_magic "*)
  4946. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4947. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4948. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4949. egrep "$file_magic_regex" > /dev/null; then
  4950. :
  4951. else
  4952. cat <<EOF 1>&2
  4953. *** Warning: the command libtool uses to detect shared libraries,
  4954. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4955. *** The result is that libtool may fail to recognize shared libraries
  4956. *** as such. This will affect the creation of libtool libraries that
  4957. *** depend on shared libraries, but programs linked with such libtool
  4958. *** libraries will work regardless of this problem. Nevertheless, you
  4959. *** may want to report the problem to your system manager and/or to
  4960. *** bug-libtool@gnu.org
  4961. EOF
  4962. fi ;;
  4963. esac
  4964. fi
  4965. break
  4966. fi
  4967. done
  4968. IFS="$ac_save_ifs"
  4969. MAGIC_CMD="$ac_save_MAGIC_CMD"
  4970. ;;
  4971. esac
  4972. fi
  4973. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4974. if test -n "$MAGIC_CMD"; then
  4975. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  4976. echo "${ECHO_T}$MAGIC_CMD" >&6
  4977. else
  4978. echo "$as_me:$LINENO: result: no" >&5
  4979. echo "${ECHO_T}no" >&6
  4980. fi
  4981. else
  4982. MAGIC_CMD=:
  4983. fi
  4984. fi
  4985. fi
  4986. ;;
  4987. esac
  4988. if test -n "$ac_tool_prefix"; then
  4989. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4990. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4991. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4992. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4993. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4994. echo $ECHO_N "(cached) $ECHO_C" >&6
  4995. else
  4996. if test -n "$RANLIB"; then
  4997. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4998. else
  4999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5000. for as_dir in $PATH
  5001. do
  5002. IFS=$as_save_IFS
  5003. test -z "$as_dir" && as_dir=.
  5004. for ac_exec_ext in '' $ac_executable_extensions; do
  5005. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5006. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5007. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5008. break 2
  5009. fi
  5010. done
  5011. done
  5012. fi
  5013. fi
  5014. RANLIB=$ac_cv_prog_RANLIB
  5015. if test -n "$RANLIB"; then
  5016. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5017. echo "${ECHO_T}$RANLIB" >&6
  5018. else
  5019. echo "$as_me:$LINENO: result: no" >&5
  5020. echo "${ECHO_T}no" >&6
  5021. fi
  5022. fi
  5023. if test -z "$ac_cv_prog_RANLIB"; then
  5024. ac_ct_RANLIB=$RANLIB
  5025. # Extract the first word of "ranlib", so it can be a program name with args.
  5026. set dummy ranlib; ac_word=$2
  5027. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5028. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5029. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5030. echo $ECHO_N "(cached) $ECHO_C" >&6
  5031. else
  5032. if test -n "$ac_ct_RANLIB"; then
  5033. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5034. else
  5035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5036. for as_dir in $PATH
  5037. do
  5038. IFS=$as_save_IFS
  5039. test -z "$as_dir" && as_dir=.
  5040. for ac_exec_ext in '' $ac_executable_extensions; do
  5041. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5042. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5043. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5044. break 2
  5045. fi
  5046. done
  5047. done
  5048. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5049. fi
  5050. fi
  5051. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5052. if test -n "$ac_ct_RANLIB"; then
  5053. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5054. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5055. else
  5056. echo "$as_me:$LINENO: result: no" >&5
  5057. echo "${ECHO_T}no" >&6
  5058. fi
  5059. RANLIB=$ac_ct_RANLIB
  5060. else
  5061. RANLIB="$ac_cv_prog_RANLIB"
  5062. fi
  5063. if test -n "$ac_tool_prefix"; then
  5064. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5065. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5066. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5067. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5068. if test "${ac_cv_prog_STRIP+set}" = set; then
  5069. echo $ECHO_N "(cached) $ECHO_C" >&6
  5070. else
  5071. if test -n "$STRIP"; then
  5072. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5073. else
  5074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5075. for as_dir in $PATH
  5076. do
  5077. IFS=$as_save_IFS
  5078. test -z "$as_dir" && as_dir=.
  5079. for ac_exec_ext in '' $ac_executable_extensions; do
  5080. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5081. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5082. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5083. break 2
  5084. fi
  5085. done
  5086. done
  5087. fi
  5088. fi
  5089. STRIP=$ac_cv_prog_STRIP
  5090. if test -n "$STRIP"; then
  5091. echo "$as_me:$LINENO: result: $STRIP" >&5
  5092. echo "${ECHO_T}$STRIP" >&6
  5093. else
  5094. echo "$as_me:$LINENO: result: no" >&5
  5095. echo "${ECHO_T}no" >&6
  5096. fi
  5097. fi
  5098. if test -z "$ac_cv_prog_STRIP"; then
  5099. ac_ct_STRIP=$STRIP
  5100. # Extract the first word of "strip", so it can be a program name with args.
  5101. set dummy strip; ac_word=$2
  5102. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5103. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5104. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5105. echo $ECHO_N "(cached) $ECHO_C" >&6
  5106. else
  5107. if test -n "$ac_ct_STRIP"; then
  5108. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5109. else
  5110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5111. for as_dir in $PATH
  5112. do
  5113. IFS=$as_save_IFS
  5114. test -z "$as_dir" && as_dir=.
  5115. for ac_exec_ext in '' $ac_executable_extensions; do
  5116. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5117. ac_cv_prog_ac_ct_STRIP="strip"
  5118. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5119. break 2
  5120. fi
  5121. done
  5122. done
  5123. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5124. fi
  5125. fi
  5126. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5127. if test -n "$ac_ct_STRIP"; then
  5128. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5129. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5130. else
  5131. echo "$as_me:$LINENO: result: no" >&5
  5132. echo "${ECHO_T}no" >&6
  5133. fi
  5134. STRIP=$ac_ct_STRIP
  5135. else
  5136. STRIP="$ac_cv_prog_STRIP"
  5137. fi
  5138. # Check for any special flags to pass to ltconfig.
  5139. libtool_flags="--cache-file=$cache_file"
  5140. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  5141. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  5142. test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  5143. test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
  5144. test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  5145. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5146. if test "${enable_libtool_lock+set}" = set; then
  5147. enableval="$enable_libtool_lock"
  5148. fi;
  5149. test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  5150. test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  5151. # Check whether --with-pic or --without-pic was given.
  5152. if test "${with_pic+set}" = set; then
  5153. withval="$with_pic"
  5154. pic_mode="$withval"
  5155. else
  5156. pic_mode=default
  5157. fi;
  5158. test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
  5159. test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
  5160. # Some flags need to be propagated to the compiler or linker for good
  5161. # libtool support.
  5162. case $host in
  5163. *-*-irix6*)
  5164. # Find out which ABI we are using.
  5165. echo '#line 5766 "configure"' > conftest.$ac_ext
  5166. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5167. (eval $ac_compile) 2>&5
  5168. ac_status=$?
  5169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5170. (exit $ac_status); }; then
  5171. if test "$lt_cv_prog_gnu_ld" = yes; then
  5172. case `/usr/bin/file conftest.$ac_objext` in
  5173. *32-bit*)
  5174. LD="${LD-ld} -melf32bsmip"
  5175. ;;
  5176. *N32*)
  5177. LD="${LD-ld} -melf32bmipn32"
  5178. ;;
  5179. *64-bit*)
  5180. LD="${LD-ld} -melf64bmip"
  5181. ;;
  5182. esac
  5183. else
  5184. case `/usr/bin/file conftest.$ac_objext` in
  5185. *32-bit*)
  5186. LD="${LD-ld} -32"
  5187. ;;
  5188. *N32*)
  5189. LD="${LD-ld} -n32"
  5190. ;;
  5191. *64-bit*)
  5192. LD="${LD-ld} -64"
  5193. ;;
  5194. esac
  5195. fi
  5196. fi
  5197. rm -rf conftest*
  5198. ;;
  5199. ia64-*-hpux*)
  5200. # Find out which ABI we are using.
  5201. echo 'int i;' > conftest.$ac_ext
  5202. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5203. (eval $ac_compile) 2>&5
  5204. ac_status=$?
  5205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5206. (exit $ac_status); }; then
  5207. case "`/usr/bin/file conftest.o`" in
  5208. *ELF-32*)
  5209. HPUX_IA64_MODE="32"
  5210. ;;
  5211. *ELF-64*)
  5212. HPUX_IA64_MODE="64"
  5213. ;;
  5214. esac
  5215. fi
  5216. rm -rf conftest*
  5217. ;;
  5218. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  5219. # Find out which ABI we are using.
  5220. echo 'int i;' > conftest.$ac_ext
  5221. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5222. (eval $ac_compile) 2>&5
  5223. ac_status=$?
  5224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5225. (exit $ac_status); }; then
  5226. case "`/usr/bin/file conftest.o`" in
  5227. *32-bit*)
  5228. case $host in
  5229. x86_64-*linux*)
  5230. LD="${LD-ld} -m elf_i386"
  5231. ;;
  5232. ppc64-*linux*|powerpc64-*linux*)
  5233. LD="${LD-ld} -m elf32ppclinux"
  5234. ;;
  5235. s390x-*linux*)
  5236. LD="${LD-ld} -m elf_s390"
  5237. ;;
  5238. sparc64-*linux*)
  5239. LD="${LD-ld} -m elf32_sparc"
  5240. ;;
  5241. esac
  5242. ;;
  5243. *64-bit*)
  5244. case $host in
  5245. x86_64-*linux*)
  5246. LD="${LD-ld} -m elf_x86_64"
  5247. ;;
  5248. ppc*-*linux*|powerpc*-*linux*)
  5249. LD="${LD-ld} -m elf64ppc"
  5250. ;;
  5251. s390*-*linux*)
  5252. LD="${LD-ld} -m elf64_s390"
  5253. ;;
  5254. sparc*-*linux*)
  5255. LD="${LD-ld} -m elf64_sparc"
  5256. ;;
  5257. esac
  5258. ;;
  5259. esac
  5260. fi
  5261. rm -rf conftest*
  5262. ;;
  5263. *-*-sco3.2v5*)
  5264. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5265. SAVE_CFLAGS="$CFLAGS"
  5266. CFLAGS="$CFLAGS -belf"
  5267. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5268. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  5269. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5270. echo $ECHO_N "(cached) $ECHO_C" >&6
  5271. else
  5272. ac_ext=c
  5273. ac_cpp='$CPP $CPPFLAGS'
  5274. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5275. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5277. cat >conftest.$ac_ext <<_ACEOF
  5278. /* confdefs.h. */
  5279. _ACEOF
  5280. cat confdefs.h >>conftest.$ac_ext
  5281. cat >>conftest.$ac_ext <<_ACEOF
  5282. /* end confdefs.h. */
  5283. int
  5284. main ()
  5285. {
  5286. ;
  5287. return 0;
  5288. }
  5289. _ACEOF
  5290. rm -f conftest.$ac_objext conftest$ac_exeext
  5291. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5292. (eval $ac_link) 2>conftest.er1
  5293. ac_status=$?
  5294. grep -v '^ *+' conftest.er1 >conftest.err
  5295. rm -f conftest.er1
  5296. cat conftest.err >&5
  5297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5298. (exit $ac_status); } &&
  5299. { ac_try='test -z "$ac_c_werror_flag"
  5300. || test ! -s conftest.err'
  5301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5302. (eval $ac_try) 2>&5
  5303. ac_status=$?
  5304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5305. (exit $ac_status); }; } &&
  5306. { ac_try='test -s conftest$ac_exeext'
  5307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5308. (eval $ac_try) 2>&5
  5309. ac_status=$?
  5310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5311. (exit $ac_status); }; }; then
  5312. lt_cv_cc_needs_belf=yes
  5313. else
  5314. echo "$as_me: failed program was:" >&5
  5315. sed 's/^/| /' conftest.$ac_ext >&5
  5316. lt_cv_cc_needs_belf=no
  5317. fi
  5318. rm -f conftest.err conftest.$ac_objext \
  5319. conftest$ac_exeext conftest.$ac_ext
  5320. ac_ext=c
  5321. ac_cpp='$CPP $CPPFLAGS'
  5322. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5323. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5324. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5325. fi
  5326. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5327. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  5328. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5329. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5330. CFLAGS="$SAVE_CFLAGS"
  5331. fi
  5332. ;;
  5333. esac
  5334. # Save cache, so that ltconfig can load it
  5335. cat >confcache <<\_ACEOF
  5336. # This file is a shell script that caches the results of configure
  5337. # tests run on this system so they can be shared between configure
  5338. # scripts and configure runs, see configure's option --config-cache.
  5339. # It is not useful on other systems. If it contains results you don't
  5340. # want to keep, you may remove or edit it.
  5341. #
  5342. # config.status only pays attention to the cache file if you give it
  5343. # the --recheck option to rerun configure.
  5344. #
  5345. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5346. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5347. # following values.
  5348. _ACEOF
  5349. # The following way of writing the cache mishandles newlines in values,
  5350. # but we know of no workaround that is simple, portable, and efficient.
  5351. # So, don't put newlines in cache variables' values.
  5352. # Ultrix sh set writes to stderr and can't be redirected directly,
  5353. # and sets the high bit in the cache file unless we assign to the vars.
  5354. {
  5355. (set) 2>&1 |
  5356. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5357. *ac_space=\ *)
  5358. # `set' does not quote correctly, so add quotes (double-quote
  5359. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5360. sed -n \
  5361. "s/'/'\\\\''/g;
  5362. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5363. ;;
  5364. *)
  5365. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5366. sed -n \
  5367. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5368. ;;
  5369. esac;
  5370. } |
  5371. sed '
  5372. t clear
  5373. : clear
  5374. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5375. t end
  5376. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5377. : end' >>confcache
  5378. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5379. if test -w $cache_file; then
  5380. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  5381. cat confcache >$cache_file
  5382. else
  5383. echo "not updating unwritable cache $cache_file"
  5384. fi
  5385. fi
  5386. rm -f confcache
  5387. # Actually configure libtool. ac_aux_dir is where install-sh is found.
  5388. AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  5389. MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  5390. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
  5391. AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
  5392. objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
  5393. deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
  5394. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  5395. $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
  5396. || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
  5397. echo "$as_me: error: libtool configure failed" >&2;}
  5398. { (exit 1); exit 1; }; }
  5399. # Reload cache, that may have been modified by ltconfig
  5400. if test -r "$cache_file"; then
  5401. # Some versions of bash will fail to source /dev/null (special
  5402. # files actually), so we avoid doing that.
  5403. if test -f "$cache_file"; then
  5404. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  5405. echo "$as_me: loading cache $cache_file" >&6;}
  5406. case $cache_file in
  5407. [\\/]* | ?:[\\/]* ) . $cache_file;;
  5408. *) . ./$cache_file;;
  5409. esac
  5410. fi
  5411. else
  5412. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  5413. echo "$as_me: creating cache $cache_file" >&6;}
  5414. >$cache_file
  5415. fi
  5416. # This can be used to rebuild libtool when needed
  5417. LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
  5418. # Always use our own libtool.
  5419. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  5420. # Redirect the config.log output again, so that the ltconfig log is not
  5421. # clobbered by the next message.
  5422. exec 5>>./config.log
  5423. ac_ext=cc
  5424. ac_cpp='$CXXCPP $CPPFLAGS'
  5425. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5426. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5427. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5428. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5429. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  5430. if test -z "$CXXCPP"; then
  5431. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5432. echo $ECHO_N "(cached) $ECHO_C" >&6
  5433. else
  5434. # Double quotes because CXXCPP needs to be expanded
  5435. for CXXCPP in "$CXX -E" "/lib/cpp"
  5436. do
  5437. ac_preproc_ok=false
  5438. for ac_cxx_preproc_warn_flag in '' yes
  5439. do
  5440. # Use a header file that comes with gcc, so configuring glibc
  5441. # with a fresh cross-compiler works.
  5442. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5443. # <limits.h> exists even on freestanding compilers.
  5444. # On the NeXT, cc -E runs the code through the compiler's parser,
  5445. # not just through cpp. "Syntax error" is here to catch this case.
  5446. cat >conftest.$ac_ext <<_ACEOF
  5447. /* confdefs.h. */
  5448. _ACEOF
  5449. cat confdefs.h >>conftest.$ac_ext
  5450. cat >>conftest.$ac_ext <<_ACEOF
  5451. /* end confdefs.h. */
  5452. #ifdef __STDC__
  5453. # include <limits.h>
  5454. #else
  5455. # include <assert.h>
  5456. #endif
  5457. Syntax error
  5458. _ACEOF
  5459. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5460. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5461. ac_status=$?
  5462. grep -v '^ *+' conftest.er1 >conftest.err
  5463. rm -f conftest.er1
  5464. cat conftest.err >&5
  5465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5466. (exit $ac_status); } >/dev/null; then
  5467. if test -s conftest.err; then
  5468. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5469. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5470. else
  5471. ac_cpp_err=
  5472. fi
  5473. else
  5474. ac_cpp_err=yes
  5475. fi
  5476. if test -z "$ac_cpp_err"; then
  5477. :
  5478. else
  5479. echo "$as_me: failed program was:" >&5
  5480. sed 's/^/| /' conftest.$ac_ext >&5
  5481. # Broken: fails on valid input.
  5482. continue
  5483. fi
  5484. rm -f conftest.err conftest.$ac_ext
  5485. # OK, works on sane cases. Now check whether non-existent headers
  5486. # can be detected and how.
  5487. cat >conftest.$ac_ext <<_ACEOF
  5488. /* confdefs.h. */
  5489. _ACEOF
  5490. cat confdefs.h >>conftest.$ac_ext
  5491. cat >>conftest.$ac_ext <<_ACEOF
  5492. /* end confdefs.h. */
  5493. #include <ac_nonexistent.h>
  5494. _ACEOF
  5495. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5496. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5497. ac_status=$?
  5498. grep -v '^ *+' conftest.er1 >conftest.err
  5499. rm -f conftest.er1
  5500. cat conftest.err >&5
  5501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5502. (exit $ac_status); } >/dev/null; then
  5503. if test -s conftest.err; then
  5504. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5505. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5506. else
  5507. ac_cpp_err=
  5508. fi
  5509. else
  5510. ac_cpp_err=yes
  5511. fi
  5512. if test -z "$ac_cpp_err"; then
  5513. # Broken: success on invalid input.
  5514. continue
  5515. else
  5516. echo "$as_me: failed program was:" >&5
  5517. sed 's/^/| /' conftest.$ac_ext >&5
  5518. # Passes both tests.
  5519. ac_preproc_ok=:
  5520. break
  5521. fi
  5522. rm -f conftest.err conftest.$ac_ext
  5523. done
  5524. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5525. rm -f conftest.err conftest.$ac_ext
  5526. if $ac_preproc_ok; then
  5527. break
  5528. fi
  5529. done
  5530. ac_cv_prog_CXXCPP=$CXXCPP
  5531. fi
  5532. CXXCPP=$ac_cv_prog_CXXCPP
  5533. else
  5534. ac_cv_prog_CXXCPP=$CXXCPP
  5535. fi
  5536. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5537. echo "${ECHO_T}$CXXCPP" >&6
  5538. ac_preproc_ok=false
  5539. for ac_cxx_preproc_warn_flag in '' yes
  5540. do
  5541. # Use a header file that comes with gcc, so configuring glibc
  5542. # with a fresh cross-compiler works.
  5543. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5544. # <limits.h> exists even on freestanding compilers.
  5545. # On the NeXT, cc -E runs the code through the compiler's parser,
  5546. # not just through cpp. "Syntax error" is here to catch this case.
  5547. cat >conftest.$ac_ext <<_ACEOF
  5548. /* confdefs.h. */
  5549. _ACEOF
  5550. cat confdefs.h >>conftest.$ac_ext
  5551. cat >>conftest.$ac_ext <<_ACEOF
  5552. /* end confdefs.h. */
  5553. #ifdef __STDC__
  5554. # include <limits.h>
  5555. #else
  5556. # include <assert.h>
  5557. #endif
  5558. Syntax error
  5559. _ACEOF
  5560. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5561. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5562. ac_status=$?
  5563. grep -v '^ *+' conftest.er1 >conftest.err
  5564. rm -f conftest.er1
  5565. cat conftest.err >&5
  5566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5567. (exit $ac_status); } >/dev/null; then
  5568. if test -s conftest.err; then
  5569. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5570. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5571. else
  5572. ac_cpp_err=
  5573. fi
  5574. else
  5575. ac_cpp_err=yes
  5576. fi
  5577. if test -z "$ac_cpp_err"; then
  5578. :
  5579. else
  5580. echo "$as_me: failed program was:" >&5
  5581. sed 's/^/| /' conftest.$ac_ext >&5
  5582. # Broken: fails on valid input.
  5583. continue
  5584. fi
  5585. rm -f conftest.err conftest.$ac_ext
  5586. # OK, works on sane cases. Now check whether non-existent headers
  5587. # can be detected and how.
  5588. cat >conftest.$ac_ext <<_ACEOF
  5589. /* confdefs.h. */
  5590. _ACEOF
  5591. cat confdefs.h >>conftest.$ac_ext
  5592. cat >>conftest.$ac_ext <<_ACEOF
  5593. /* end confdefs.h. */
  5594. #include <ac_nonexistent.h>
  5595. _ACEOF
  5596. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5597. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5598. ac_status=$?
  5599. grep -v '^ *+' conftest.er1 >conftest.err
  5600. rm -f conftest.er1
  5601. cat conftest.err >&5
  5602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5603. (exit $ac_status); } >/dev/null; then
  5604. if test -s conftest.err; then
  5605. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5606. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5607. else
  5608. ac_cpp_err=
  5609. fi
  5610. else
  5611. ac_cpp_err=yes
  5612. fi
  5613. if test -z "$ac_cpp_err"; then
  5614. # Broken: success on invalid input.
  5615. continue
  5616. else
  5617. echo "$as_me: failed program was:" >&5
  5618. sed 's/^/| /' conftest.$ac_ext >&5
  5619. # Passes both tests.
  5620. ac_preproc_ok=:
  5621. break
  5622. fi
  5623. rm -f conftest.err conftest.$ac_ext
  5624. done
  5625. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5626. rm -f conftest.err conftest.$ac_ext
  5627. if $ac_preproc_ok; then
  5628. :
  5629. else
  5630. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5631. See \`config.log' for more details." >&5
  5632. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5633. See \`config.log' for more details." >&2;}
  5634. { (exit 1); exit 1; }; }
  5635. fi
  5636. ac_ext=c
  5637. ac_cpp='$CPP $CPPFLAGS'
  5638. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5639. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5640. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5641. LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
  5642. lt_save_CC="$CC"
  5643. lt_save_CFLAGS="$CFLAGS"
  5644. AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
  5645. MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  5646. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
  5647. AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
  5648. objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
  5649. deplibs_check_method="$deplibs_check_method" \
  5650. file_magic_cmd="$file_magic_cmd" \
  5651. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
  5652. --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
  5653. || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
  5654. echo "$as_me: error: libtool tag configuration failed" >&2;}
  5655. { (exit 1); exit 1; }; }
  5656. CC="$lt_save_CC"
  5657. CFLAGS="$lt_save_CFLAGS"
  5658. # Redirect the config.log output again, so that the ltconfig log is not
  5659. # clobbered by the next message.
  5660. exec 5>>./config.log
  5661. ac_ext=c
  5662. ac_cpp='$CPP $CPPFLAGS'
  5663. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5664. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5665. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5666. if test -n "$ac_tool_prefix"; then
  5667. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5668. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  5669. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5670. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5671. if test "${ac_cv_prog_CC+set}" = set; then
  5672. echo $ECHO_N "(cached) $ECHO_C" >&6
  5673. else
  5674. if test -n "$CC"; then
  5675. ac_cv_prog_CC="$CC" # Let the user override the test.
  5676. else
  5677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5678. for as_dir in $PATH
  5679. do
  5680. IFS=$as_save_IFS
  5681. test -z "$as_dir" && as_dir=.
  5682. for ac_exec_ext in '' $ac_executable_extensions; do
  5683. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5684. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  5685. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5686. break 2
  5687. fi
  5688. done
  5689. done
  5690. fi
  5691. fi
  5692. CC=$ac_cv_prog_CC
  5693. if test -n "$CC"; then
  5694. echo "$as_me:$LINENO: result: $CC" >&5
  5695. echo "${ECHO_T}$CC" >&6
  5696. else
  5697. echo "$as_me:$LINENO: result: no" >&5
  5698. echo "${ECHO_T}no" >&6
  5699. fi
  5700. fi
  5701. if test -z "$ac_cv_prog_CC"; then
  5702. ac_ct_CC=$CC
  5703. # Extract the first word of "gcc", so it can be a program name with args.
  5704. set dummy gcc; ac_word=$2
  5705. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5706. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5707. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5708. echo $ECHO_N "(cached) $ECHO_C" >&6
  5709. else
  5710. if test -n "$ac_ct_CC"; then
  5711. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5712. else
  5713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5714. for as_dir in $PATH
  5715. do
  5716. IFS=$as_save_IFS
  5717. test -z "$as_dir" && as_dir=.
  5718. for ac_exec_ext in '' $ac_executable_extensions; do
  5719. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5720. ac_cv_prog_ac_ct_CC="gcc"
  5721. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5722. break 2
  5723. fi
  5724. done
  5725. done
  5726. fi
  5727. fi
  5728. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5729. if test -n "$ac_ct_CC"; then
  5730. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5731. echo "${ECHO_T}$ac_ct_CC" >&6
  5732. else
  5733. echo "$as_me:$LINENO: result: no" >&5
  5734. echo "${ECHO_T}no" >&6
  5735. fi
  5736. CC=$ac_ct_CC
  5737. else
  5738. CC="$ac_cv_prog_CC"
  5739. fi
  5740. if test -z "$CC"; then
  5741. if test -n "$ac_tool_prefix"; then
  5742. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5743. set dummy ${ac_tool_prefix}cc; ac_word=$2
  5744. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5745. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5746. if test "${ac_cv_prog_CC+set}" = set; then
  5747. echo $ECHO_N "(cached) $ECHO_C" >&6
  5748. else
  5749. if test -n "$CC"; then
  5750. ac_cv_prog_CC="$CC" # Let the user override the test.
  5751. else
  5752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5753. for as_dir in $PATH
  5754. do
  5755. IFS=$as_save_IFS
  5756. test -z "$as_dir" && as_dir=.
  5757. for ac_exec_ext in '' $ac_executable_extensions; do
  5758. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5759. ac_cv_prog_CC="${ac_tool_prefix}cc"
  5760. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5761. break 2
  5762. fi
  5763. done
  5764. done
  5765. fi
  5766. fi
  5767. CC=$ac_cv_prog_CC
  5768. if test -n "$CC"; then
  5769. echo "$as_me:$LINENO: result: $CC" >&5
  5770. echo "${ECHO_T}$CC" >&6
  5771. else
  5772. echo "$as_me:$LINENO: result: no" >&5
  5773. echo "${ECHO_T}no" >&6
  5774. fi
  5775. fi
  5776. if test -z "$ac_cv_prog_CC"; then
  5777. ac_ct_CC=$CC
  5778. # Extract the first word of "cc", so it can be a program name with args.
  5779. set dummy cc; ac_word=$2
  5780. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5781. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5782. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5783. echo $ECHO_N "(cached) $ECHO_C" >&6
  5784. else
  5785. if test -n "$ac_ct_CC"; then
  5786. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5787. else
  5788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5789. for as_dir in $PATH
  5790. do
  5791. IFS=$as_save_IFS
  5792. test -z "$as_dir" && as_dir=.
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5795. ac_cv_prog_ac_ct_CC="cc"
  5796. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. fi
  5802. fi
  5803. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5804. if test -n "$ac_ct_CC"; then
  5805. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5806. echo "${ECHO_T}$ac_ct_CC" >&6
  5807. else
  5808. echo "$as_me:$LINENO: result: no" >&5
  5809. echo "${ECHO_T}no" >&6
  5810. fi
  5811. CC=$ac_ct_CC
  5812. else
  5813. CC="$ac_cv_prog_CC"
  5814. fi
  5815. fi
  5816. if test -z "$CC"; then
  5817. # Extract the first word of "cc", so it can be a program name with args.
  5818. set dummy cc; ac_word=$2
  5819. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5820. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5821. if test "${ac_cv_prog_CC+set}" = set; then
  5822. echo $ECHO_N "(cached) $ECHO_C" >&6
  5823. else
  5824. if test -n "$CC"; then
  5825. ac_cv_prog_CC="$CC" # Let the user override the test.
  5826. else
  5827. ac_prog_rejected=no
  5828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5829. for as_dir in $PATH
  5830. do
  5831. IFS=$as_save_IFS
  5832. test -z "$as_dir" && as_dir=.
  5833. for ac_exec_ext in '' $ac_executable_extensions; do
  5834. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5835. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5836. ac_prog_rejected=yes
  5837. continue
  5838. fi
  5839. ac_cv_prog_CC="cc"
  5840. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5841. break 2
  5842. fi
  5843. done
  5844. done
  5845. if test $ac_prog_rejected = yes; then
  5846. # We found a bogon in the path, so make sure we never use it.
  5847. set dummy $ac_cv_prog_CC
  5848. shift
  5849. if test $# != 0; then
  5850. # We chose a different compiler from the bogus one.
  5851. # However, it has the same basename, so the bogon will be chosen
  5852. # first if we set CC to just the basename; use the full file name.
  5853. shift
  5854. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  5855. fi
  5856. fi
  5857. fi
  5858. fi
  5859. CC=$ac_cv_prog_CC
  5860. if test -n "$CC"; then
  5861. echo "$as_me:$LINENO: result: $CC" >&5
  5862. echo "${ECHO_T}$CC" >&6
  5863. else
  5864. echo "$as_me:$LINENO: result: no" >&5
  5865. echo "${ECHO_T}no" >&6
  5866. fi
  5867. fi
  5868. if test -z "$CC"; then
  5869. if test -n "$ac_tool_prefix"; then
  5870. for ac_prog in cl
  5871. do
  5872. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5873. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5874. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5875. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5876. if test "${ac_cv_prog_CC+set}" = set; then
  5877. echo $ECHO_N "(cached) $ECHO_C" >&6
  5878. else
  5879. if test -n "$CC"; then
  5880. ac_cv_prog_CC="$CC" # Let the user override the test.
  5881. else
  5882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5883. for as_dir in $PATH
  5884. do
  5885. IFS=$as_save_IFS
  5886. test -z "$as_dir" && as_dir=.
  5887. for ac_exec_ext in '' $ac_executable_extensions; do
  5888. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5889. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5890. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5891. break 2
  5892. fi
  5893. done
  5894. done
  5895. fi
  5896. fi
  5897. CC=$ac_cv_prog_CC
  5898. if test -n "$CC"; then
  5899. echo "$as_me:$LINENO: result: $CC" >&5
  5900. echo "${ECHO_T}$CC" >&6
  5901. else
  5902. echo "$as_me:$LINENO: result: no" >&5
  5903. echo "${ECHO_T}no" >&6
  5904. fi
  5905. test -n "$CC" && break
  5906. done
  5907. fi
  5908. if test -z "$CC"; then
  5909. ac_ct_CC=$CC
  5910. for ac_prog in cl
  5911. do
  5912. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5913. set dummy $ac_prog; ac_word=$2
  5914. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5915. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5916. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5917. echo $ECHO_N "(cached) $ECHO_C" >&6
  5918. else
  5919. if test -n "$ac_ct_CC"; then
  5920. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5921. else
  5922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5923. for as_dir in $PATH
  5924. do
  5925. IFS=$as_save_IFS
  5926. test -z "$as_dir" && as_dir=.
  5927. for ac_exec_ext in '' $ac_executable_extensions; do
  5928. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5929. ac_cv_prog_ac_ct_CC="$ac_prog"
  5930. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5931. break 2
  5932. fi
  5933. done
  5934. done
  5935. fi
  5936. fi
  5937. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5938. if test -n "$ac_ct_CC"; then
  5939. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5940. echo "${ECHO_T}$ac_ct_CC" >&6
  5941. else
  5942. echo "$as_me:$LINENO: result: no" >&5
  5943. echo "${ECHO_T}no" >&6
  5944. fi
  5945. test -n "$ac_ct_CC" && break
  5946. done
  5947. CC=$ac_ct_CC
  5948. fi
  5949. fi
  5950. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5951. See \`config.log' for more details." >&5
  5952. echo "$as_me: error: no acceptable C compiler found in \$PATH
  5953. See \`config.log' for more details." >&2;}
  5954. { (exit 1); exit 1; }; }
  5955. # Provide some information about the compiler.
  5956. echo "$as_me:$LINENO:" \
  5957. "checking for C compiler version" >&5
  5958. ac_compiler=`set X $ac_compile; echo $2`
  5959. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5960. (eval $ac_compiler --version </dev/null >&5) 2>&5
  5961. ac_status=$?
  5962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5963. (exit $ac_status); }
  5964. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5965. (eval $ac_compiler -v </dev/null >&5) 2>&5
  5966. ac_status=$?
  5967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5968. (exit $ac_status); }
  5969. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5970. (eval $ac_compiler -V </dev/null >&5) 2>&5
  5971. ac_status=$?
  5972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5973. (exit $ac_status); }
  5974. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5975. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  5976. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5977. echo $ECHO_N "(cached) $ECHO_C" >&6
  5978. else
  5979. cat >conftest.$ac_ext <<_ACEOF
  5980. /* confdefs.h. */
  5981. _ACEOF
  5982. cat confdefs.h >>conftest.$ac_ext
  5983. cat >>conftest.$ac_ext <<_ACEOF
  5984. /* end confdefs.h. */
  5985. int
  5986. main ()
  5987. {
  5988. #ifndef __GNUC__
  5989. choke me
  5990. #endif
  5991. ;
  5992. return 0;
  5993. }
  5994. _ACEOF
  5995. rm -f conftest.$ac_objext
  5996. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5997. (eval $ac_compile) 2>conftest.er1
  5998. ac_status=$?
  5999. grep -v '^ *+' conftest.er1 >conftest.err
  6000. rm -f conftest.er1
  6001. cat conftest.err >&5
  6002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6003. (exit $ac_status); } &&
  6004. { ac_try='test -z "$ac_c_werror_flag"
  6005. || test ! -s conftest.err'
  6006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6007. (eval $ac_try) 2>&5
  6008. ac_status=$?
  6009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6010. (exit $ac_status); }; } &&
  6011. { ac_try='test -s conftest.$ac_objext'
  6012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6013. (eval $ac_try) 2>&5
  6014. ac_status=$?
  6015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6016. (exit $ac_status); }; }; then
  6017. ac_compiler_gnu=yes
  6018. else
  6019. echo "$as_me: failed program was:" >&5
  6020. sed 's/^/| /' conftest.$ac_ext >&5
  6021. ac_compiler_gnu=no
  6022. fi
  6023. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6024. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  6025. fi
  6026. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  6027. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  6028. GCC=`test $ac_compiler_gnu = yes && echo yes`
  6029. ac_test_CFLAGS=${CFLAGS+set}
  6030. ac_save_CFLAGS=$CFLAGS
  6031. CFLAGS="-g"
  6032. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  6033. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  6034. if test "${ac_cv_prog_cc_g+set}" = set; then
  6035. echo $ECHO_N "(cached) $ECHO_C" >&6
  6036. else
  6037. cat >conftest.$ac_ext <<_ACEOF
  6038. /* confdefs.h. */
  6039. _ACEOF
  6040. cat confdefs.h >>conftest.$ac_ext
  6041. cat >>conftest.$ac_ext <<_ACEOF
  6042. /* end confdefs.h. */
  6043. int
  6044. main ()
  6045. {
  6046. ;
  6047. return 0;
  6048. }
  6049. _ACEOF
  6050. rm -f conftest.$ac_objext
  6051. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6052. (eval $ac_compile) 2>conftest.er1
  6053. ac_status=$?
  6054. grep -v '^ *+' conftest.er1 >conftest.err
  6055. rm -f conftest.er1
  6056. cat conftest.err >&5
  6057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6058. (exit $ac_status); } &&
  6059. { ac_try='test -z "$ac_c_werror_flag"
  6060. || test ! -s conftest.err'
  6061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6062. (eval $ac_try) 2>&5
  6063. ac_status=$?
  6064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6065. (exit $ac_status); }; } &&
  6066. { ac_try='test -s conftest.$ac_objext'
  6067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6068. (eval $ac_try) 2>&5
  6069. ac_status=$?
  6070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6071. (exit $ac_status); }; }; then
  6072. ac_cv_prog_cc_g=yes
  6073. else
  6074. echo "$as_me: failed program was:" >&5
  6075. sed 's/^/| /' conftest.$ac_ext >&5
  6076. ac_cv_prog_cc_g=no
  6077. fi
  6078. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6079. fi
  6080. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  6081. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  6082. if test "$ac_test_CFLAGS" = set; then
  6083. CFLAGS=$ac_save_CFLAGS
  6084. elif test $ac_cv_prog_cc_g = yes; then
  6085. if test "$GCC" = yes; then
  6086. CFLAGS="-g -O2"
  6087. else
  6088. CFLAGS="-g"
  6089. fi
  6090. else
  6091. if test "$GCC" = yes; then
  6092. CFLAGS="-O2"
  6093. else
  6094. CFLAGS=
  6095. fi
  6096. fi
  6097. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  6098. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  6099. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  6100. echo $ECHO_N "(cached) $ECHO_C" >&6
  6101. else
  6102. ac_cv_prog_cc_stdc=no
  6103. ac_save_CC=$CC
  6104. cat >conftest.$ac_ext <<_ACEOF
  6105. /* confdefs.h. */
  6106. _ACEOF
  6107. cat confdefs.h >>conftest.$ac_ext
  6108. cat >>conftest.$ac_ext <<_ACEOF
  6109. /* end confdefs.h. */
  6110. #include <stdarg.h>
  6111. #include <stdio.h>
  6112. #include <sys/types.h>
  6113. #include <sys/stat.h>
  6114. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  6115. struct buf { int x; };
  6116. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6117. static char *e (p, i)
  6118. char **p;
  6119. int i;
  6120. {
  6121. return p[i];
  6122. }
  6123. static char *f (char * (*g) (char **, int), char **p, ...)
  6124. {
  6125. char *s;
  6126. va_list v;
  6127. va_start (v,p);
  6128. s = g (p, va_arg (v,int));
  6129. va_end (v);
  6130. return s;
  6131. }
  6132. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  6133. function prototypes and stuff, but not '\xHH' hex character constants.
  6134. These don't provoke an error unfortunately, instead are silently treated
  6135. as 'x'. The following induces an error, until -std1 is added to get
  6136. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  6137. array size at least. It's necessary to write '\x00'==0 to get something
  6138. that's true only with -std1. */
  6139. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6140. int test (int i, double x);
  6141. struct s1 {int (*f) (int a);};
  6142. struct s2 {int (*f) (double a);};
  6143. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6144. int argc;
  6145. char **argv;
  6146. int
  6147. main ()
  6148. {
  6149. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  6150. ;
  6151. return 0;
  6152. }
  6153. _ACEOF
  6154. # Don't try gcc -ansi; that turns off useful extensions and
  6155. # breaks some systems' header files.
  6156. # AIX -qlanglvl=ansi
  6157. # Ultrix and OSF/1 -std1
  6158. # HP-UX 10.20 and later -Ae
  6159. # HP-UX older versions -Aa -D_HPUX_SOURCE
  6160. # SVR4 -Xc -D__EXTENSIONS__
  6161. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6162. do
  6163. CC="$ac_save_CC $ac_arg"
  6164. rm -f conftest.$ac_objext
  6165. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6166. (eval $ac_compile) 2>conftest.er1
  6167. ac_status=$?
  6168. grep -v '^ *+' conftest.er1 >conftest.err
  6169. rm -f conftest.er1
  6170. cat conftest.err >&5
  6171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6172. (exit $ac_status); } &&
  6173. { ac_try='test -z "$ac_c_werror_flag"
  6174. || test ! -s conftest.err'
  6175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6176. (eval $ac_try) 2>&5
  6177. ac_status=$?
  6178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6179. (exit $ac_status); }; } &&
  6180. { ac_try='test -s conftest.$ac_objext'
  6181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6182. (eval $ac_try) 2>&5
  6183. ac_status=$?
  6184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6185. (exit $ac_status); }; }; then
  6186. ac_cv_prog_cc_stdc=$ac_arg
  6187. break
  6188. else
  6189. echo "$as_me: failed program was:" >&5
  6190. sed 's/^/| /' conftest.$ac_ext >&5
  6191. fi
  6192. rm -f conftest.err conftest.$ac_objext
  6193. done
  6194. rm -f conftest.$ac_ext conftest.$ac_objext
  6195. CC=$ac_save_CC
  6196. fi
  6197. case "x$ac_cv_prog_cc_stdc" in
  6198. x|xno)
  6199. echo "$as_me:$LINENO: result: none needed" >&5
  6200. echo "${ECHO_T}none needed" >&6 ;;
  6201. *)
  6202. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  6203. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  6204. CC="$CC $ac_cv_prog_cc_stdc" ;;
  6205. esac
  6206. # Some people use a C++ compiler to compile C. Since we use `exit',
  6207. # in C++ we need to declare it. In case someone uses the same compiler
  6208. # for both compiling C and C++ we need to have the C++ compiler decide
  6209. # the declaration of exit, since it's the most demanding environment.
  6210. cat >conftest.$ac_ext <<_ACEOF
  6211. #ifndef __cplusplus
  6212. choke me
  6213. #endif
  6214. _ACEOF
  6215. rm -f conftest.$ac_objext
  6216. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6217. (eval $ac_compile) 2>conftest.er1
  6218. ac_status=$?
  6219. grep -v '^ *+' conftest.er1 >conftest.err
  6220. rm -f conftest.er1
  6221. cat conftest.err >&5
  6222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6223. (exit $ac_status); } &&
  6224. { ac_try='test -z "$ac_c_werror_flag"
  6225. || test ! -s conftest.err'
  6226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6227. (eval $ac_try) 2>&5
  6228. ac_status=$?
  6229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6230. (exit $ac_status); }; } &&
  6231. { ac_try='test -s conftest.$ac_objext'
  6232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6233. (eval $ac_try) 2>&5
  6234. ac_status=$?
  6235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6236. (exit $ac_status); }; }; then
  6237. for ac_declaration in \
  6238. '' \
  6239. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  6240. 'extern "C" void std::exit (int); using std::exit;' \
  6241. 'extern "C" void exit (int) throw ();' \
  6242. 'extern "C" void exit (int);' \
  6243. 'void exit (int);'
  6244. do
  6245. cat >conftest.$ac_ext <<_ACEOF
  6246. /* confdefs.h. */
  6247. _ACEOF
  6248. cat confdefs.h >>conftest.$ac_ext
  6249. cat >>conftest.$ac_ext <<_ACEOF
  6250. /* end confdefs.h. */
  6251. $ac_declaration
  6252. #include <stdlib.h>
  6253. int
  6254. main ()
  6255. {
  6256. exit (42);
  6257. ;
  6258. return 0;
  6259. }
  6260. _ACEOF
  6261. rm -f conftest.$ac_objext
  6262. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6263. (eval $ac_compile) 2>conftest.er1
  6264. ac_status=$?
  6265. grep -v '^ *+' conftest.er1 >conftest.err
  6266. rm -f conftest.er1
  6267. cat conftest.err >&5
  6268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6269. (exit $ac_status); } &&
  6270. { ac_try='test -z "$ac_c_werror_flag"
  6271. || test ! -s conftest.err'
  6272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6273. (eval $ac_try) 2>&5
  6274. ac_status=$?
  6275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6276. (exit $ac_status); }; } &&
  6277. { ac_try='test -s conftest.$ac_objext'
  6278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6279. (eval $ac_try) 2>&5
  6280. ac_status=$?
  6281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6282. (exit $ac_status); }; }; then
  6283. :
  6284. else
  6285. echo "$as_me: failed program was:" >&5
  6286. sed 's/^/| /' conftest.$ac_ext >&5
  6287. continue
  6288. fi
  6289. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6290. cat >conftest.$ac_ext <<_ACEOF
  6291. /* confdefs.h. */
  6292. _ACEOF
  6293. cat confdefs.h >>conftest.$ac_ext
  6294. cat >>conftest.$ac_ext <<_ACEOF
  6295. /* end confdefs.h. */
  6296. $ac_declaration
  6297. int
  6298. main ()
  6299. {
  6300. exit (42);
  6301. ;
  6302. return 0;
  6303. }
  6304. _ACEOF
  6305. rm -f conftest.$ac_objext
  6306. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6307. (eval $ac_compile) 2>conftest.er1
  6308. ac_status=$?
  6309. grep -v '^ *+' conftest.er1 >conftest.err
  6310. rm -f conftest.er1
  6311. cat conftest.err >&5
  6312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6313. (exit $ac_status); } &&
  6314. { ac_try='test -z "$ac_c_werror_flag"
  6315. || test ! -s conftest.err'
  6316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6317. (eval $ac_try) 2>&5
  6318. ac_status=$?
  6319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6320. (exit $ac_status); }; } &&
  6321. { ac_try='test -s conftest.$ac_objext'
  6322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6323. (eval $ac_try) 2>&5
  6324. ac_status=$?
  6325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6326. (exit $ac_status); }; }; then
  6327. break
  6328. else
  6329. echo "$as_me: failed program was:" >&5
  6330. sed 's/^/| /' conftest.$ac_ext >&5
  6331. fi
  6332. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6333. done
  6334. rm -f conftest*
  6335. if test -n "$ac_declaration"; then
  6336. echo '#ifdef __cplusplus' >>confdefs.h
  6337. echo $ac_declaration >>confdefs.h
  6338. echo '#endif' >>confdefs.h
  6339. fi
  6340. else
  6341. echo "$as_me: failed program was:" >&5
  6342. sed 's/^/| /' conftest.$ac_ext >&5
  6343. fi
  6344. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6345. ac_ext=c
  6346. ac_cpp='$CPP $CPPFLAGS'
  6347. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6348. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6349. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6350. depcc="$CC" am_compiler_list=
  6351. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6352. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  6353. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  6354. echo $ECHO_N "(cached) $ECHO_C" >&6
  6355. else
  6356. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6357. # We make a subdir and do the tests there. Otherwise we can end up
  6358. # making bogus files that we don't know about and never remove. For
  6359. # instance it was reported that on HP-UX the gcc test will end up
  6360. # making a dummy file named `D' -- because `-MD' means `put the output
  6361. # in D'.
  6362. mkdir conftest.dir
  6363. # Copy depcomp to subdir because otherwise we won't find it if we're
  6364. # using a relative directory.
  6365. cp "$am_depcomp" conftest.dir
  6366. cd conftest.dir
  6367. # We will build objects and dependencies in a subdirectory because
  6368. # it helps to detect inapplicable dependency modes. For instance
  6369. # both Tru64's cc and ICC support -MD to output dependencies as a
  6370. # side effect of compilation, but ICC will put the dependencies in
  6371. # the current directory while Tru64 will put them in the object
  6372. # directory.
  6373. mkdir sub
  6374. am_cv_CC_dependencies_compiler_type=none
  6375. if test "$am_compiler_list" = ""; then
  6376. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6377. fi
  6378. for depmode in $am_compiler_list; do
  6379. # Setup a source with many dependencies, because some compilers
  6380. # like to wrap large dependency lists on column 80 (with \), and
  6381. # we should not choose a depcomp mode which is confused by this.
  6382. #
  6383. # We need to recreate these files for each test, as the compiler may
  6384. # overwrite some of them when testing with obscure command lines.
  6385. # This happens at least with the AIX C compiler.
  6386. : > sub/conftest.c
  6387. for i in 1 2 3 4 5 6; do
  6388. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6389. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6390. # Solaris 8's {/usr,}/bin/sh.
  6391. touch sub/conftst$i.h
  6392. done
  6393. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6394. case $depmode in
  6395. nosideeffect)
  6396. # after this tag, mechanisms are not by side-effect, so they'll
  6397. # only be used when explicitly requested
  6398. if test "x$enable_dependency_tracking" = xyes; then
  6399. continue
  6400. else
  6401. break
  6402. fi
  6403. ;;
  6404. none) break ;;
  6405. esac
  6406. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6407. # mode. It turns out that the SunPro C++ compiler does not properly
  6408. # handle `-M -o', and we need to detect this.
  6409. if depmode=$depmode \
  6410. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6411. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6412. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6413. >/dev/null 2>conftest.err &&
  6414. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6415. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6416. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6417. # icc doesn't choke on unknown options, it will just issue warnings
  6418. # or remarks (even with -Werror). So we grep stderr for any message
  6419. # that says an option was ignored or not supported.
  6420. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6421. # icc: Command line warning: ignoring option '-M'; no argument required
  6422. # The diagnosis changed in icc 8.0:
  6423. # icc: Command line remark: option '-MP' not supported
  6424. if (grep 'ignoring option' conftest.err ||
  6425. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6426. am_cv_CC_dependencies_compiler_type=$depmode
  6427. break
  6428. fi
  6429. fi
  6430. done
  6431. cd ..
  6432. rm -rf conftest.dir
  6433. else
  6434. am_cv_CC_dependencies_compiler_type=none
  6435. fi
  6436. fi
  6437. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  6438. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  6439. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6440. if
  6441. test "x$enable_dependency_tracking" != xno \
  6442. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  6443. am__fastdepCC_TRUE=
  6444. am__fastdepCC_FALSE='#'
  6445. else
  6446. am__fastdepCC_TRUE='#'
  6447. am__fastdepCC_FALSE=
  6448. fi
  6449. ac_ext=c
  6450. ac_cpp='$CPP $CPPFLAGS'
  6451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6454. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6455. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  6456. # On Suns, sometimes $CPP names a directory.
  6457. if test -n "$CPP" && test -d "$CPP"; then
  6458. CPP=
  6459. fi
  6460. if test -z "$CPP"; then
  6461. if test "${ac_cv_prog_CPP+set}" = set; then
  6462. echo $ECHO_N "(cached) $ECHO_C" >&6
  6463. else
  6464. # Double quotes because CPP needs to be expanded
  6465. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6466. do
  6467. ac_preproc_ok=false
  6468. for ac_c_preproc_warn_flag in '' yes
  6469. do
  6470. # Use a header file that comes with gcc, so configuring glibc
  6471. # with a fresh cross-compiler works.
  6472. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6473. # <limits.h> exists even on freestanding compilers.
  6474. # On the NeXT, cc -E runs the code through the compiler's parser,
  6475. # not just through cpp. "Syntax error" is here to catch this case.
  6476. cat >conftest.$ac_ext <<_ACEOF
  6477. /* confdefs.h. */
  6478. _ACEOF
  6479. cat confdefs.h >>conftest.$ac_ext
  6480. cat >>conftest.$ac_ext <<_ACEOF
  6481. /* end confdefs.h. */
  6482. #ifdef __STDC__
  6483. # include <limits.h>
  6484. #else
  6485. # include <assert.h>
  6486. #endif
  6487. Syntax error
  6488. _ACEOF
  6489. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6490. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6491. ac_status=$?
  6492. grep -v '^ *+' conftest.er1 >conftest.err
  6493. rm -f conftest.er1
  6494. cat conftest.err >&5
  6495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6496. (exit $ac_status); } >/dev/null; then
  6497. if test -s conftest.err; then
  6498. ac_cpp_err=$ac_c_preproc_warn_flag
  6499. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6500. else
  6501. ac_cpp_err=
  6502. fi
  6503. else
  6504. ac_cpp_err=yes
  6505. fi
  6506. if test -z "$ac_cpp_err"; then
  6507. :
  6508. else
  6509. echo "$as_me: failed program was:" >&5
  6510. sed 's/^/| /' conftest.$ac_ext >&5
  6511. # Broken: fails on valid input.
  6512. continue
  6513. fi
  6514. rm -f conftest.err conftest.$ac_ext
  6515. # OK, works on sane cases. Now check whether non-existent headers
  6516. # can be detected and how.
  6517. cat >conftest.$ac_ext <<_ACEOF
  6518. /* confdefs.h. */
  6519. _ACEOF
  6520. cat confdefs.h >>conftest.$ac_ext
  6521. cat >>conftest.$ac_ext <<_ACEOF
  6522. /* end confdefs.h. */
  6523. #include <ac_nonexistent.h>
  6524. _ACEOF
  6525. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6526. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6527. ac_status=$?
  6528. grep -v '^ *+' conftest.er1 >conftest.err
  6529. rm -f conftest.er1
  6530. cat conftest.err >&5
  6531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6532. (exit $ac_status); } >/dev/null; then
  6533. if test -s conftest.err; then
  6534. ac_cpp_err=$ac_c_preproc_warn_flag
  6535. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6536. else
  6537. ac_cpp_err=
  6538. fi
  6539. else
  6540. ac_cpp_err=yes
  6541. fi
  6542. if test -z "$ac_cpp_err"; then
  6543. # Broken: success on invalid input.
  6544. continue
  6545. else
  6546. echo "$as_me: failed program was:" >&5
  6547. sed 's/^/| /' conftest.$ac_ext >&5
  6548. # Passes both tests.
  6549. ac_preproc_ok=:
  6550. break
  6551. fi
  6552. rm -f conftest.err conftest.$ac_ext
  6553. done
  6554. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6555. rm -f conftest.err conftest.$ac_ext
  6556. if $ac_preproc_ok; then
  6557. break
  6558. fi
  6559. done
  6560. ac_cv_prog_CPP=$CPP
  6561. fi
  6562. CPP=$ac_cv_prog_CPP
  6563. else
  6564. ac_cv_prog_CPP=$CPP
  6565. fi
  6566. echo "$as_me:$LINENO: result: $CPP" >&5
  6567. echo "${ECHO_T}$CPP" >&6
  6568. ac_preproc_ok=false
  6569. for ac_c_preproc_warn_flag in '' yes
  6570. do
  6571. # Use a header file that comes with gcc, so configuring glibc
  6572. # with a fresh cross-compiler works.
  6573. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6574. # <limits.h> exists even on freestanding compilers.
  6575. # On the NeXT, cc -E runs the code through the compiler's parser,
  6576. # not just through cpp. "Syntax error" is here to catch this case.
  6577. cat >conftest.$ac_ext <<_ACEOF
  6578. /* confdefs.h. */
  6579. _ACEOF
  6580. cat confdefs.h >>conftest.$ac_ext
  6581. cat >>conftest.$ac_ext <<_ACEOF
  6582. /* end confdefs.h. */
  6583. #ifdef __STDC__
  6584. # include <limits.h>
  6585. #else
  6586. # include <assert.h>
  6587. #endif
  6588. Syntax error
  6589. _ACEOF
  6590. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6591. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6592. ac_status=$?
  6593. grep -v '^ *+' conftest.er1 >conftest.err
  6594. rm -f conftest.er1
  6595. cat conftest.err >&5
  6596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6597. (exit $ac_status); } >/dev/null; then
  6598. if test -s conftest.err; then
  6599. ac_cpp_err=$ac_c_preproc_warn_flag
  6600. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6601. else
  6602. ac_cpp_err=
  6603. fi
  6604. else
  6605. ac_cpp_err=yes
  6606. fi
  6607. if test -z "$ac_cpp_err"; then
  6608. :
  6609. else
  6610. echo "$as_me: failed program was:" >&5
  6611. sed 's/^/| /' conftest.$ac_ext >&5
  6612. # Broken: fails on valid input.
  6613. continue
  6614. fi
  6615. rm -f conftest.err conftest.$ac_ext
  6616. # OK, works on sane cases. Now check whether non-existent headers
  6617. # can be detected and how.
  6618. cat >conftest.$ac_ext <<_ACEOF
  6619. /* confdefs.h. */
  6620. _ACEOF
  6621. cat confdefs.h >>conftest.$ac_ext
  6622. cat >>conftest.$ac_ext <<_ACEOF
  6623. /* end confdefs.h. */
  6624. #include <ac_nonexistent.h>
  6625. _ACEOF
  6626. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6627. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6628. ac_status=$?
  6629. grep -v '^ *+' conftest.er1 >conftest.err
  6630. rm -f conftest.er1
  6631. cat conftest.err >&5
  6632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6633. (exit $ac_status); } >/dev/null; then
  6634. if test -s conftest.err; then
  6635. ac_cpp_err=$ac_c_preproc_warn_flag
  6636. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6637. else
  6638. ac_cpp_err=
  6639. fi
  6640. else
  6641. ac_cpp_err=yes
  6642. fi
  6643. if test -z "$ac_cpp_err"; then
  6644. # Broken: success on invalid input.
  6645. continue
  6646. else
  6647. echo "$as_me: failed program was:" >&5
  6648. sed 's/^/| /' conftest.$ac_ext >&5
  6649. # Passes both tests.
  6650. ac_preproc_ok=:
  6651. break
  6652. fi
  6653. rm -f conftest.err conftest.$ac_ext
  6654. done
  6655. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6656. rm -f conftest.err conftest.$ac_ext
  6657. if $ac_preproc_ok; then
  6658. :
  6659. else
  6660. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6661. See \`config.log' for more details." >&5
  6662. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6663. See \`config.log' for more details." >&2;}
  6664. { (exit 1); exit 1; }; }
  6665. fi
  6666. ac_ext=c
  6667. ac_cpp='$CPP $CPPFLAGS'
  6668. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6669. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6670. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6671. if test "x${COMPILE_COLLECTIONS}" = xyes; then
  6672. # Extract the first word of "perl", so it can be a program name with args.
  6673. set dummy perl; ac_word=$2
  6674. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6675. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6676. if test "${ac_cv_path_PERL+set}" = set; then
  6677. echo $ECHO_N "(cached) $ECHO_C" >&6
  6678. else
  6679. case $PERL in
  6680. [\\/]* | ?:[\\/]*)
  6681. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  6682. ;;
  6683. *)
  6684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6685. for as_dir in $PATH
  6686. do
  6687. IFS=$as_save_IFS
  6688. test -z "$as_dir" && as_dir=.
  6689. for ac_exec_ext in '' $ac_executable_extensions; do
  6690. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6691. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  6692. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6693. break 2
  6694. fi
  6695. done
  6696. done
  6697. ;;
  6698. esac
  6699. fi
  6700. PERL=$ac_cv_path_PERL
  6701. if test -n "$PERL"; then
  6702. echo "$as_me:$LINENO: result: $PERL" >&5
  6703. echo "${ECHO_T}$PERL" >&6
  6704. else
  6705. echo "$as_me:$LINENO: result: no" >&5
  6706. echo "${ECHO_T}no" >&6
  6707. fi
  6708. ac_config_files="$ac_config_files lib/mkcollections.pl"
  6709. ac_config_commands="$ac_config_commands mkcollections.pl"
  6710. fi
  6711. if test "x${COMPILE_JNI}" = xyes; then
  6712. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6713. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  6714. if test "${ac_cv_header_stdc+set}" = set; then
  6715. echo $ECHO_N "(cached) $ECHO_C" >&6
  6716. else
  6717. cat >conftest.$ac_ext <<_ACEOF
  6718. /* confdefs.h. */
  6719. _ACEOF
  6720. cat confdefs.h >>conftest.$ac_ext
  6721. cat >>conftest.$ac_ext <<_ACEOF
  6722. /* end confdefs.h. */
  6723. #include <stdlib.h>
  6724. #include <stdarg.h>
  6725. #include <string.h>
  6726. #include <float.h>
  6727. int
  6728. main ()
  6729. {
  6730. ;
  6731. return 0;
  6732. }
  6733. _ACEOF
  6734. rm -f conftest.$ac_objext
  6735. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6736. (eval $ac_compile) 2>conftest.er1
  6737. ac_status=$?
  6738. grep -v '^ *+' conftest.er1 >conftest.err
  6739. rm -f conftest.er1
  6740. cat conftest.err >&5
  6741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6742. (exit $ac_status); } &&
  6743. { ac_try='test -z "$ac_c_werror_flag"
  6744. || test ! -s conftest.err'
  6745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6746. (eval $ac_try) 2>&5
  6747. ac_status=$?
  6748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6749. (exit $ac_status); }; } &&
  6750. { ac_try='test -s conftest.$ac_objext'
  6751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6752. (eval $ac_try) 2>&5
  6753. ac_status=$?
  6754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6755. (exit $ac_status); }; }; then
  6756. ac_cv_header_stdc=yes
  6757. else
  6758. echo "$as_me: failed program was:" >&5
  6759. sed 's/^/| /' conftest.$ac_ext >&5
  6760. ac_cv_header_stdc=no
  6761. fi
  6762. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6763. if test $ac_cv_header_stdc = yes; then
  6764. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6765. cat >conftest.$ac_ext <<_ACEOF
  6766. /* confdefs.h. */
  6767. _ACEOF
  6768. cat confdefs.h >>conftest.$ac_ext
  6769. cat >>conftest.$ac_ext <<_ACEOF
  6770. /* end confdefs.h. */
  6771. #include <string.h>
  6772. _ACEOF
  6773. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6774. $EGREP "memchr" >/dev/null 2>&1; then
  6775. :
  6776. else
  6777. ac_cv_header_stdc=no
  6778. fi
  6779. rm -f conftest*
  6780. fi
  6781. if test $ac_cv_header_stdc = yes; then
  6782. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6783. cat >conftest.$ac_ext <<_ACEOF
  6784. /* confdefs.h. */
  6785. _ACEOF
  6786. cat confdefs.h >>conftest.$ac_ext
  6787. cat >>conftest.$ac_ext <<_ACEOF
  6788. /* end confdefs.h. */
  6789. #include <stdlib.h>
  6790. _ACEOF
  6791. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6792. $EGREP "free" >/dev/null 2>&1; then
  6793. :
  6794. else
  6795. ac_cv_header_stdc=no
  6796. fi
  6797. rm -f conftest*
  6798. fi
  6799. if test $ac_cv_header_stdc = yes; then
  6800. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6801. if test "$cross_compiling" = yes; then
  6802. :
  6803. else
  6804. cat >conftest.$ac_ext <<_ACEOF
  6805. /* confdefs.h. */
  6806. _ACEOF
  6807. cat confdefs.h >>conftest.$ac_ext
  6808. cat >>conftest.$ac_ext <<_ACEOF
  6809. /* end confdefs.h. */
  6810. #include <ctype.h>
  6811. #if ((' ' & 0x0FF) == 0x020)
  6812. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6813. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6814. #else
  6815. # define ISLOWER(c) \
  6816. (('a' <= (c) && (c) <= 'i') \
  6817. || ('j' <= (c) && (c) <= 'r') \
  6818. || ('s' <= (c) && (c) <= 'z'))
  6819. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6820. #endif
  6821. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6822. int
  6823. main ()
  6824. {
  6825. int i;
  6826. for (i = 0; i < 256; i++)
  6827. if (XOR (islower (i), ISLOWER (i))
  6828. || toupper (i) != TOUPPER (i))
  6829. exit(2);
  6830. exit (0);
  6831. }
  6832. _ACEOF
  6833. rm -f conftest$ac_exeext
  6834. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6835. (eval $ac_link) 2>&5
  6836. ac_status=$?
  6837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6838. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6839. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6840. (eval $ac_try) 2>&5
  6841. ac_status=$?
  6842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6843. (exit $ac_status); }; }; then
  6844. :
  6845. else
  6846. echo "$as_me: program exited with status $ac_status" >&5
  6847. echo "$as_me: failed program was:" >&5
  6848. sed 's/^/| /' conftest.$ac_ext >&5
  6849. ( exit $ac_status )
  6850. ac_cv_header_stdc=no
  6851. fi
  6852. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6853. fi
  6854. fi
  6855. fi
  6856. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6857. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  6858. if test $ac_cv_header_stdc = yes; then
  6859. cat >>confdefs.h <<\_ACEOF
  6860. #define STDC_HEADERS 1
  6861. _ACEOF
  6862. fi
  6863. echo "$as_me:$LINENO: checking size of void *" >&5
  6864. echo $ECHO_N "checking size of void *... $ECHO_C" >&6
  6865. if test "${ac_cv_sizeof_void_p+set}" = set; then
  6866. echo $ECHO_N "(cached) $ECHO_C" >&6
  6867. else
  6868. for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
  6869. cat >conftest.$ac_ext <<_ACEOF
  6870. /* confdefs.h. */
  6871. _ACEOF
  6872. cat confdefs.h >>conftest.$ac_ext
  6873. cat >>conftest.$ac_ext <<_ACEOF
  6874. /* end confdefs.h. */
  6875. #include "confdefs.h"
  6876. #include <sys/types.h>
  6877. int
  6878. main ()
  6879. {
  6880. switch (0) case 0: case (sizeof (void *) == $ac_size):;
  6881. ;
  6882. return 0;
  6883. }
  6884. _ACEOF
  6885. rm -f conftest.$ac_objext
  6886. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6887. (eval $ac_compile) 2>conftest.er1
  6888. ac_status=$?
  6889. grep -v '^ *+' conftest.er1 >conftest.err
  6890. rm -f conftest.er1
  6891. cat conftest.err >&5
  6892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6893. (exit $ac_status); } &&
  6894. { ac_try='test -z "$ac_c_werror_flag"
  6895. || test ! -s conftest.err'
  6896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6897. (eval $ac_try) 2>&5
  6898. ac_status=$?
  6899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6900. (exit $ac_status); }; } &&
  6901. { ac_try='test -s conftest.$ac_objext'
  6902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6903. (eval $ac_try) 2>&5
  6904. ac_status=$?
  6905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6906. (exit $ac_status); }; }; then
  6907. ac_cv_sizeof_void_p=$ac_size
  6908. else
  6909. echo "$as_me: failed program was:" >&5
  6910. sed 's/^/| /' conftest.$ac_ext >&5
  6911. fi
  6912. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6913. if test x$ac_cv_sizeof_void_p != x ; then break; fi
  6914. done
  6915. fi
  6916. if test x$ac_cv_sizeof_void_p = x ; then
  6917. { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
  6918. echo "$as_me: error: cannot determine a size for void *" >&2;}
  6919. { (exit 1); exit 1; }; }
  6920. fi
  6921. echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  6922. echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
  6923. cat >>confdefs.h <<_ACEOF
  6924. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  6925. _ACEOF
  6926. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  6927. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  6928. if test "${ac_cv_c_bigendian+set}" = set; then
  6929. echo $ECHO_N "(cached) $ECHO_C" >&6
  6930. else
  6931. ac_cv_c_bigendian=unknown
  6932. # See if sys/param.h defines the BYTE_ORDER macro.
  6933. cat >conftest.$ac_ext <<_ACEOF
  6934. /* confdefs.h. */
  6935. _ACEOF
  6936. cat confdefs.h >>conftest.$ac_ext
  6937. cat >>conftest.$ac_ext <<_ACEOF
  6938. /* end confdefs.h. */
  6939. #include <sys/types.h>
  6940. #include <sys/param.h>
  6941. int
  6942. main ()
  6943. {
  6944. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  6945. bogus endian macros
  6946. #endif
  6947. ;
  6948. return 0;
  6949. }
  6950. _ACEOF
  6951. rm -f conftest.$ac_objext
  6952. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6953. (eval $ac_compile) 2>conftest.er1
  6954. ac_status=$?
  6955. grep -v '^ *+' conftest.er1 >conftest.err
  6956. rm -f conftest.er1
  6957. cat conftest.err >&5
  6958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6959. (exit $ac_status); } &&
  6960. { ac_try='test -z "$ac_c_werror_flag"
  6961. || test ! -s conftest.err'
  6962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6963. (eval $ac_try) 2>&5
  6964. ac_status=$?
  6965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6966. (exit $ac_status); }; } &&
  6967. { ac_try='test -s conftest.$ac_objext'
  6968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6969. (eval $ac_try) 2>&5
  6970. ac_status=$?
  6971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6972. (exit $ac_status); }; }; then
  6973. # It does; now see whether it defined to BIG_ENDIAN or not.
  6974. cat >conftest.$ac_ext <<_ACEOF
  6975. /* confdefs.h. */
  6976. _ACEOF
  6977. cat confdefs.h >>conftest.$ac_ext
  6978. cat >>conftest.$ac_ext <<_ACEOF
  6979. /* end confdefs.h. */
  6980. #include <sys/types.h>
  6981. #include <sys/param.h>
  6982. int
  6983. main ()
  6984. {
  6985. #if BYTE_ORDER != BIG_ENDIAN
  6986. not big endian
  6987. #endif
  6988. ;
  6989. return 0;
  6990. }
  6991. _ACEOF
  6992. rm -f conftest.$ac_objext
  6993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6994. (eval $ac_compile) 2>conftest.er1
  6995. ac_status=$?
  6996. grep -v '^ *+' conftest.er1 >conftest.err
  6997. rm -f conftest.er1
  6998. cat conftest.err >&5
  6999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7000. (exit $ac_status); } &&
  7001. { ac_try='test -z "$ac_c_werror_flag"
  7002. || test ! -s conftest.err'
  7003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7004. (eval $ac_try) 2>&5
  7005. ac_status=$?
  7006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7007. (exit $ac_status); }; } &&
  7008. { ac_try='test -s conftest.$ac_objext'
  7009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7010. (eval $ac_try) 2>&5
  7011. ac_status=$?
  7012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7013. (exit $ac_status); }; }; then
  7014. ac_cv_c_bigendian=yes
  7015. else
  7016. echo "$as_me: failed program was:" >&5
  7017. sed 's/^/| /' conftest.$ac_ext >&5
  7018. ac_cv_c_bigendian=no
  7019. fi
  7020. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7021. else
  7022. echo "$as_me: failed program was:" >&5
  7023. sed 's/^/| /' conftest.$ac_ext >&5
  7024. fi
  7025. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7026. if test $ac_cv_c_bigendian = unknown; then
  7027. if test "$cross_compiling" = yes; then
  7028. echo $ac_n "cross-compiling... " 2>&6
  7029. else
  7030. cat >conftest.$ac_ext <<_ACEOF
  7031. /* confdefs.h. */
  7032. _ACEOF
  7033. cat confdefs.h >>conftest.$ac_ext
  7034. cat >>conftest.$ac_ext <<_ACEOF
  7035. /* end confdefs.h. */
  7036. main () {
  7037. /* Are we little or big endian? From Harbison&Steele. */
  7038. union
  7039. {
  7040. long l;
  7041. char c[sizeof (long)];
  7042. } u;
  7043. u.l = 1;
  7044. exit (u.c[sizeof (long) - 1] == 1);
  7045. }
  7046. _ACEOF
  7047. rm -f conftest$ac_exeext
  7048. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7049. (eval $ac_link) 2>&5
  7050. ac_status=$?
  7051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7052. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7053. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7054. (eval $ac_try) 2>&5
  7055. ac_status=$?
  7056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7057. (exit $ac_status); }; }; then
  7058. ac_cv_c_bigendian=no
  7059. else
  7060. echo "$as_me: program exited with status $ac_status" >&5
  7061. echo "$as_me: failed program was:" >&5
  7062. sed 's/^/| /' conftest.$ac_ext >&5
  7063. ( exit $ac_status )
  7064. ac_cv_c_bigendian=yes
  7065. fi
  7066. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7067. fi
  7068. fi
  7069. fi
  7070. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  7071. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  7072. if test $ac_cv_c_bigendian = unknown; then
  7073. echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
  7074. echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
  7075. cat >conftest.c <<EOF
  7076. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7077. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7078. void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
  7079. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7080. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7081. void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
  7082. int main() { _ascii (); _ebcdic (); return 0; }
  7083. EOF
  7084. if test -f conftest.c ; then
  7085. if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
  7086. if test `grep -l BIGenDianSyS conftest.o` ; then
  7087. echo $ac_n ' big endian probe OK, ' 1>&6
  7088. ac_cv_c_bigendian=yes
  7089. fi
  7090. if test `grep -l LiTTleEnDian conftest.o` ; then
  7091. echo $ac_n ' little endian probe OK, ' 1>&6
  7092. if test $ac_cv_c_bigendian = yes ; then
  7093. ac_cv_c_bigendian=unknown;
  7094. else
  7095. ac_cv_c_bigendian=no
  7096. fi
  7097. fi
  7098. echo $ac_n 'guessing bigendian ... ' >&6
  7099. fi
  7100. fi
  7101. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  7102. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  7103. fi
  7104. if test $ac_cv_c_bigendian = yes; then
  7105. cat >>confdefs.h <<\_ACEOF
  7106. #define WORDS_BIGENDIAN 1
  7107. _ACEOF
  7108. cat >>confdefs.h <<\_ACEOF
  7109. #define HOST_WORDS_BIG_ENDIAN 1
  7110. _ACEOF
  7111. BYTEORDER=4321
  7112. else
  7113. BYTEORDER=1234
  7114. fi
  7115. cat >>confdefs.h <<_ACEOF
  7116. #define BYTEORDER $BYTEORDER
  7117. _ACEOF
  7118. if test $ac_cv_c_bigendian = unknown; then
  7119. { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
  7120. echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
  7121. { (exit 1); exit 1; }; }
  7122. fi
  7123. for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
  7124. asm/ioctls.h \
  7125. inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
  7126. sys/time.h \
  7127. sys/select.h \
  7128. crt_externs.h \
  7129. fcntl.h \
  7130. sys/mman.h \
  7131. magic.h
  7132. do
  7133. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7134. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7135. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7136. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7137. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7138. echo $ECHO_N "(cached) $ECHO_C" >&6
  7139. fi
  7140. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7141. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7142. else
  7143. # Is the header compilable?
  7144. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7145. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7146. cat >conftest.$ac_ext <<_ACEOF
  7147. /* confdefs.h. */
  7148. _ACEOF
  7149. cat confdefs.h >>conftest.$ac_ext
  7150. cat >>conftest.$ac_ext <<_ACEOF
  7151. /* end confdefs.h. */
  7152. $ac_includes_default
  7153. #include <$ac_header>
  7154. _ACEOF
  7155. rm -f conftest.$ac_objext
  7156. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7157. (eval $ac_compile) 2>conftest.er1
  7158. ac_status=$?
  7159. grep -v '^ *+' conftest.er1 >conftest.err
  7160. rm -f conftest.er1
  7161. cat conftest.err >&5
  7162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7163. (exit $ac_status); } &&
  7164. { ac_try='test -z "$ac_c_werror_flag"
  7165. || test ! -s conftest.err'
  7166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7167. (eval $ac_try) 2>&5
  7168. ac_status=$?
  7169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7170. (exit $ac_status); }; } &&
  7171. { ac_try='test -s conftest.$ac_objext'
  7172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7173. (eval $ac_try) 2>&5
  7174. ac_status=$?
  7175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7176. (exit $ac_status); }; }; then
  7177. ac_header_compiler=yes
  7178. else
  7179. echo "$as_me: failed program was:" >&5
  7180. sed 's/^/| /' conftest.$ac_ext >&5
  7181. ac_header_compiler=no
  7182. fi
  7183. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7184. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7185. echo "${ECHO_T}$ac_header_compiler" >&6
  7186. # Is the header present?
  7187. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7188. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7189. cat >conftest.$ac_ext <<_ACEOF
  7190. /* confdefs.h. */
  7191. _ACEOF
  7192. cat confdefs.h >>conftest.$ac_ext
  7193. cat >>conftest.$ac_ext <<_ACEOF
  7194. /* end confdefs.h. */
  7195. #include <$ac_header>
  7196. _ACEOF
  7197. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7198. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7199. ac_status=$?
  7200. grep -v '^ *+' conftest.er1 >conftest.err
  7201. rm -f conftest.er1
  7202. cat conftest.err >&5
  7203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7204. (exit $ac_status); } >/dev/null; then
  7205. if test -s conftest.err; then
  7206. ac_cpp_err=$ac_c_preproc_warn_flag
  7207. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7208. else
  7209. ac_cpp_err=
  7210. fi
  7211. else
  7212. ac_cpp_err=yes
  7213. fi
  7214. if test -z "$ac_cpp_err"; then
  7215. ac_header_preproc=yes
  7216. else
  7217. echo "$as_me: failed program was:" >&5
  7218. sed 's/^/| /' conftest.$ac_ext >&5
  7219. ac_header_preproc=no
  7220. fi
  7221. rm -f conftest.err conftest.$ac_ext
  7222. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7223. echo "${ECHO_T}$ac_header_preproc" >&6
  7224. # So? What about this header?
  7225. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7226. yes:no: )
  7227. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7228. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7229. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7230. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7231. ac_header_preproc=yes
  7232. ;;
  7233. no:yes:* )
  7234. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7235. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7236. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7237. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7238. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7239. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7240. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7241. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7242. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7243. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7244. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7245. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7246. (
  7247. cat <<\_ASBOX
  7248. ## -------------------------------- ##
  7249. ## Report this to classpath@gnu.org ##
  7250. ## -------------------------------- ##
  7251. _ASBOX
  7252. ) |
  7253. sed "s/^/$as_me: WARNING: /" >&2
  7254. ;;
  7255. esac
  7256. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7257. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7258. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7259. echo $ECHO_N "(cached) $ECHO_C" >&6
  7260. else
  7261. eval "$as_ac_Header=\$ac_header_preproc"
  7262. fi
  7263. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7264. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7265. fi
  7266. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7267. cat >>confdefs.h <<_ACEOF
  7268. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7269. _ACEOF
  7270. fi
  7271. done
  7272. cat >conftest.$ac_ext <<_ACEOF
  7273. /* confdefs.h. */
  7274. _ACEOF
  7275. cat confdefs.h >>conftest.$ac_ext
  7276. cat >>conftest.$ac_ext <<_ACEOF
  7277. /* end confdefs.h. */
  7278. #include <stdint.h>
  7279. _ACEOF
  7280. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7281. $EGREP "uint32_t" >/dev/null 2>&1; then
  7282. cat >>confdefs.h <<\_ACEOF
  7283. #define HAVE_INT32_DEFINED 1
  7284. _ACEOF
  7285. fi
  7286. rm -f conftest*
  7287. cat >conftest.$ac_ext <<_ACEOF
  7288. /* confdefs.h. */
  7289. _ACEOF
  7290. cat confdefs.h >>conftest.$ac_ext
  7291. cat >>conftest.$ac_ext <<_ACEOF
  7292. /* end confdefs.h. */
  7293. #include <inttypes.h>
  7294. _ACEOF
  7295. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7296. $EGREP "uint32_t" >/dev/null 2>&1; then
  7297. cat >>confdefs.h <<\_ACEOF
  7298. #define HAVE_INT32_DEFINED 1
  7299. _ACEOF
  7300. fi
  7301. rm -f conftest*
  7302. cat >conftest.$ac_ext <<_ACEOF
  7303. /* confdefs.h. */
  7304. _ACEOF
  7305. cat confdefs.h >>conftest.$ac_ext
  7306. cat >>conftest.$ac_ext <<_ACEOF
  7307. /* end confdefs.h. */
  7308. #include <sys/types.h>
  7309. _ACEOF
  7310. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7311. $EGREP "u_int32_t" >/dev/null 2>&1; then
  7312. cat >>confdefs.h <<\_ACEOF
  7313. #define HAVE_BSD_INT32_DEFINED 1
  7314. _ACEOF
  7315. fi
  7316. rm -f conftest*
  7317. cat >conftest.$ac_ext <<_ACEOF
  7318. /* confdefs.h. */
  7319. _ACEOF
  7320. cat confdefs.h >>conftest.$ac_ext
  7321. cat >>conftest.$ac_ext <<_ACEOF
  7322. /* end confdefs.h. */
  7323. #include <sys/config.h>
  7324. _ACEOF
  7325. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7326. $EGREP "u_int32_t" >/dev/null 2>&1; then
  7327. cat >>confdefs.h <<\_ACEOF
  7328. #define HAVE_BSD_INT32_DEFINED 1
  7329. _ACEOF
  7330. fi
  7331. rm -f conftest*
  7332. for ac_func in ftruncate fsync select \
  7333. gethostname socket strerror fork pipe execve open close \
  7334. lseek fstat read write htonl memset htons connect \
  7335. getsockname getpeername bind listen accept \
  7336. recvfrom send sendto setsockopt getsockopt time mktime \
  7337. localtime_r \
  7338. strerror_r \
  7339. fcntl \
  7340. mmap munmap mincore msync madvise getpagesize sysconf \
  7341. lstat readlink \
  7342. do
  7343. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7344. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7345. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7346. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7347. echo $ECHO_N "(cached) $ECHO_C" >&6
  7348. else
  7349. cat >conftest.$ac_ext <<_ACEOF
  7350. /* confdefs.h. */
  7351. _ACEOF
  7352. cat confdefs.h >>conftest.$ac_ext
  7353. cat >>conftest.$ac_ext <<_ACEOF
  7354. /* end confdefs.h. */
  7355. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7356. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7357. #define $ac_func innocuous_$ac_func
  7358. /* System header to define __stub macros and hopefully few prototypes,
  7359. which can conflict with char $ac_func (); below.
  7360. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7361. <limits.h> exists even on freestanding compilers. */
  7362. #ifdef __STDC__
  7363. # include <limits.h>
  7364. #else
  7365. # include <assert.h>
  7366. #endif
  7367. #undef $ac_func
  7368. /* Override any gcc2 internal prototype to avoid an error. */
  7369. #ifdef __cplusplus
  7370. extern "C"
  7371. {
  7372. #endif
  7373. /* We use char because int might match the return type of a gcc2
  7374. builtin and then its argument prototype would still apply. */
  7375. char $ac_func ();
  7376. /* The GNU C library defines this for functions which it implements
  7377. to always fail with ENOSYS. Some functions are actually named
  7378. something starting with __ and the normal name is an alias. */
  7379. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7380. choke me
  7381. #else
  7382. char (*f) () = $ac_func;
  7383. #endif
  7384. #ifdef __cplusplus
  7385. }
  7386. #endif
  7387. int
  7388. main ()
  7389. {
  7390. return f != $ac_func;
  7391. ;
  7392. return 0;
  7393. }
  7394. _ACEOF
  7395. rm -f conftest.$ac_objext conftest$ac_exeext
  7396. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7397. (eval $ac_link) 2>conftest.er1
  7398. ac_status=$?
  7399. grep -v '^ *+' conftest.er1 >conftest.err
  7400. rm -f conftest.er1
  7401. cat conftest.err >&5
  7402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7403. (exit $ac_status); } &&
  7404. { ac_try='test -z "$ac_c_werror_flag"
  7405. || test ! -s conftest.err'
  7406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7407. (eval $ac_try) 2>&5
  7408. ac_status=$?
  7409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7410. (exit $ac_status); }; } &&
  7411. { ac_try='test -s conftest$ac_exeext'
  7412. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7413. (eval $ac_try) 2>&5
  7414. ac_status=$?
  7415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7416. (exit $ac_status); }; }; then
  7417. eval "$as_ac_var=yes"
  7418. else
  7419. echo "$as_me: failed program was:" >&5
  7420. sed 's/^/| /' conftest.$ac_ext >&5
  7421. eval "$as_ac_var=no"
  7422. fi
  7423. rm -f conftest.err conftest.$ac_objext \
  7424. conftest$ac_exeext conftest.$ac_ext
  7425. fi
  7426. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7427. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7428. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7429. cat >>confdefs.h <<_ACEOF
  7430. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7431. _ACEOF
  7432. fi
  7433. done
  7434. LIBMAGIC=
  7435. echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
  7436. echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
  7437. if test "${ac_cv_lib_magic_magic_open+set}" = set; then
  7438. echo $ECHO_N "(cached) $ECHO_C" >&6
  7439. else
  7440. ac_check_lib_save_LIBS=$LIBS
  7441. LIBS="-lmagic $LIBS"
  7442. cat >conftest.$ac_ext <<_ACEOF
  7443. /* confdefs.h. */
  7444. _ACEOF
  7445. cat confdefs.h >>conftest.$ac_ext
  7446. cat >>conftest.$ac_ext <<_ACEOF
  7447. /* end confdefs.h. */
  7448. /* Override any gcc2 internal prototype to avoid an error. */
  7449. #ifdef __cplusplus
  7450. extern "C"
  7451. #endif
  7452. /* We use char because int might match the return type of a gcc2
  7453. builtin and then its argument prototype would still apply. */
  7454. char magic_open ();
  7455. int
  7456. main ()
  7457. {
  7458. magic_open ();
  7459. ;
  7460. return 0;
  7461. }
  7462. _ACEOF
  7463. rm -f conftest.$ac_objext conftest$ac_exeext
  7464. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7465. (eval $ac_link) 2>conftest.er1
  7466. ac_status=$?
  7467. grep -v '^ *+' conftest.er1 >conftest.err
  7468. rm -f conftest.er1
  7469. cat conftest.err >&5
  7470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7471. (exit $ac_status); } &&
  7472. { ac_try='test -z "$ac_c_werror_flag"
  7473. || test ! -s conftest.err'
  7474. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7475. (eval $ac_try) 2>&5
  7476. ac_status=$?
  7477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7478. (exit $ac_status); }; } &&
  7479. { ac_try='test -s conftest$ac_exeext'
  7480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7481. (eval $ac_try) 2>&5
  7482. ac_status=$?
  7483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7484. (exit $ac_status); }; }; then
  7485. ac_cv_lib_magic_magic_open=yes
  7486. else
  7487. echo "$as_me: failed program was:" >&5
  7488. sed 's/^/| /' conftest.$ac_ext >&5
  7489. ac_cv_lib_magic_magic_open=no
  7490. fi
  7491. rm -f conftest.err conftest.$ac_objext \
  7492. conftest$ac_exeext conftest.$ac_ext
  7493. LIBS=$ac_check_lib_save_LIBS
  7494. fi
  7495. echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
  7496. echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
  7497. if test $ac_cv_lib_magic_magic_open = yes; then
  7498. LIBMAGIC=-lmagic
  7499. fi
  7500. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  7501. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  7502. if test "${ac_cv_header_time+set}" = set; then
  7503. echo $ECHO_N "(cached) $ECHO_C" >&6
  7504. else
  7505. cat >conftest.$ac_ext <<_ACEOF
  7506. /* confdefs.h. */
  7507. _ACEOF
  7508. cat confdefs.h >>conftest.$ac_ext
  7509. cat >>conftest.$ac_ext <<_ACEOF
  7510. /* end confdefs.h. */
  7511. #include <sys/types.h>
  7512. #include <sys/time.h>
  7513. #include <time.h>
  7514. int
  7515. main ()
  7516. {
  7517. if ((struct tm *) 0)
  7518. return 0;
  7519. ;
  7520. return 0;
  7521. }
  7522. _ACEOF
  7523. rm -f conftest.$ac_objext
  7524. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7525. (eval $ac_compile) 2>conftest.er1
  7526. ac_status=$?
  7527. grep -v '^ *+' conftest.er1 >conftest.err
  7528. rm -f conftest.er1
  7529. cat conftest.err >&5
  7530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7531. (exit $ac_status); } &&
  7532. { ac_try='test -z "$ac_c_werror_flag"
  7533. || test ! -s conftest.err'
  7534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7535. (eval $ac_try) 2>&5
  7536. ac_status=$?
  7537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7538. (exit $ac_status); }; } &&
  7539. { ac_try='test -s conftest.$ac_objext'
  7540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7541. (eval $ac_try) 2>&5
  7542. ac_status=$?
  7543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7544. (exit $ac_status); }; }; then
  7545. ac_cv_header_time=yes
  7546. else
  7547. echo "$as_me: failed program was:" >&5
  7548. sed 's/^/| /' conftest.$ac_ext >&5
  7549. ac_cv_header_time=no
  7550. fi
  7551. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7552. fi
  7553. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  7554. echo "${ECHO_T}$ac_cv_header_time" >&6
  7555. if test $ac_cv_header_time = yes; then
  7556. cat >>confdefs.h <<\_ACEOF
  7557. #define TIME_WITH_SYS_TIME 1
  7558. _ACEOF
  7559. fi
  7560. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7561. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7562. if test "${ac_cv_struct_tm+set}" = set; then
  7563. echo $ECHO_N "(cached) $ECHO_C" >&6
  7564. else
  7565. cat >conftest.$ac_ext <<_ACEOF
  7566. /* confdefs.h. */
  7567. _ACEOF
  7568. cat confdefs.h >>conftest.$ac_ext
  7569. cat >>conftest.$ac_ext <<_ACEOF
  7570. /* end confdefs.h. */
  7571. #include <sys/types.h>
  7572. #include <time.h>
  7573. int
  7574. main ()
  7575. {
  7576. struct tm *tp; tp->tm_sec;
  7577. ;
  7578. return 0;
  7579. }
  7580. _ACEOF
  7581. rm -f conftest.$ac_objext
  7582. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7583. (eval $ac_compile) 2>conftest.er1
  7584. ac_status=$?
  7585. grep -v '^ *+' conftest.er1 >conftest.err
  7586. rm -f conftest.er1
  7587. cat conftest.err >&5
  7588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7589. (exit $ac_status); } &&
  7590. { ac_try='test -z "$ac_c_werror_flag"
  7591. || test ! -s conftest.err'
  7592. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7593. (eval $ac_try) 2>&5
  7594. ac_status=$?
  7595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7596. (exit $ac_status); }; } &&
  7597. { ac_try='test -s conftest.$ac_objext'
  7598. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7599. (eval $ac_try) 2>&5
  7600. ac_status=$?
  7601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7602. (exit $ac_status); }; }; then
  7603. ac_cv_struct_tm=time.h
  7604. else
  7605. echo "$as_me: failed program was:" >&5
  7606. sed 's/^/| /' conftest.$ac_ext >&5
  7607. ac_cv_struct_tm=sys/time.h
  7608. fi
  7609. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7610. fi
  7611. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7612. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7613. if test $ac_cv_struct_tm = sys/time.h; then
  7614. cat >>confdefs.h <<\_ACEOF
  7615. #define TM_IN_SYS_TIME 1
  7616. _ACEOF
  7617. fi
  7618. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7619. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7620. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7621. echo $ECHO_N "(cached) $ECHO_C" >&6
  7622. else
  7623. cat >conftest.$ac_ext <<_ACEOF
  7624. /* confdefs.h. */
  7625. _ACEOF
  7626. cat confdefs.h >>conftest.$ac_ext
  7627. cat >>conftest.$ac_ext <<_ACEOF
  7628. /* end confdefs.h. */
  7629. #include <sys/types.h>
  7630. #include <$ac_cv_struct_tm>
  7631. int
  7632. main ()
  7633. {
  7634. static struct tm ac_aggr;
  7635. if (ac_aggr.tm_zone)
  7636. return 0;
  7637. ;
  7638. return 0;
  7639. }
  7640. _ACEOF
  7641. rm -f conftest.$ac_objext
  7642. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7643. (eval $ac_compile) 2>conftest.er1
  7644. ac_status=$?
  7645. grep -v '^ *+' conftest.er1 >conftest.err
  7646. rm -f conftest.er1
  7647. cat conftest.err >&5
  7648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7649. (exit $ac_status); } &&
  7650. { ac_try='test -z "$ac_c_werror_flag"
  7651. || test ! -s conftest.err'
  7652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7653. (eval $ac_try) 2>&5
  7654. ac_status=$?
  7655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7656. (exit $ac_status); }; } &&
  7657. { ac_try='test -s conftest.$ac_objext'
  7658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7659. (eval $ac_try) 2>&5
  7660. ac_status=$?
  7661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7662. (exit $ac_status); }; }; then
  7663. ac_cv_member_struct_tm_tm_zone=yes
  7664. else
  7665. echo "$as_me: failed program was:" >&5
  7666. sed 's/^/| /' conftest.$ac_ext >&5
  7667. cat >conftest.$ac_ext <<_ACEOF
  7668. /* confdefs.h. */
  7669. _ACEOF
  7670. cat confdefs.h >>conftest.$ac_ext
  7671. cat >>conftest.$ac_ext <<_ACEOF
  7672. /* end confdefs.h. */
  7673. #include <sys/types.h>
  7674. #include <$ac_cv_struct_tm>
  7675. int
  7676. main ()
  7677. {
  7678. static struct tm ac_aggr;
  7679. if (sizeof ac_aggr.tm_zone)
  7680. return 0;
  7681. ;
  7682. return 0;
  7683. }
  7684. _ACEOF
  7685. rm -f conftest.$ac_objext
  7686. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7687. (eval $ac_compile) 2>conftest.er1
  7688. ac_status=$?
  7689. grep -v '^ *+' conftest.er1 >conftest.err
  7690. rm -f conftest.er1
  7691. cat conftest.err >&5
  7692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7693. (exit $ac_status); } &&
  7694. { ac_try='test -z "$ac_c_werror_flag"
  7695. || test ! -s conftest.err'
  7696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7697. (eval $ac_try) 2>&5
  7698. ac_status=$?
  7699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7700. (exit $ac_status); }; } &&
  7701. { ac_try='test -s conftest.$ac_objext'
  7702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7703. (eval $ac_try) 2>&5
  7704. ac_status=$?
  7705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7706. (exit $ac_status); }; }; then
  7707. ac_cv_member_struct_tm_tm_zone=yes
  7708. else
  7709. echo "$as_me: failed program was:" >&5
  7710. sed 's/^/| /' conftest.$ac_ext >&5
  7711. ac_cv_member_struct_tm_tm_zone=no
  7712. fi
  7713. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7714. fi
  7715. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7716. fi
  7717. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7718. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7719. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7720. cat >>confdefs.h <<_ACEOF
  7721. #define HAVE_STRUCT_TM_TM_ZONE 1
  7722. _ACEOF
  7723. fi
  7724. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7725. cat >>confdefs.h <<\_ACEOF
  7726. #define HAVE_TM_ZONE 1
  7727. _ACEOF
  7728. else
  7729. echo "$as_me:$LINENO: checking for tzname" >&5
  7730. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7731. if test "${ac_cv_var_tzname+set}" = set; then
  7732. echo $ECHO_N "(cached) $ECHO_C" >&6
  7733. else
  7734. cat >conftest.$ac_ext <<_ACEOF
  7735. /* confdefs.h. */
  7736. _ACEOF
  7737. cat confdefs.h >>conftest.$ac_ext
  7738. cat >>conftest.$ac_ext <<_ACEOF
  7739. /* end confdefs.h. */
  7740. #include <time.h>
  7741. #ifndef tzname /* For SGI. */
  7742. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7743. #endif
  7744. int
  7745. main ()
  7746. {
  7747. atoi(*tzname);
  7748. ;
  7749. return 0;
  7750. }
  7751. _ACEOF
  7752. rm -f conftest.$ac_objext conftest$ac_exeext
  7753. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7754. (eval $ac_link) 2>conftest.er1
  7755. ac_status=$?
  7756. grep -v '^ *+' conftest.er1 >conftest.err
  7757. rm -f conftest.er1
  7758. cat conftest.err >&5
  7759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7760. (exit $ac_status); } &&
  7761. { ac_try='test -z "$ac_c_werror_flag"
  7762. || test ! -s conftest.err'
  7763. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7764. (eval $ac_try) 2>&5
  7765. ac_status=$?
  7766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7767. (exit $ac_status); }; } &&
  7768. { ac_try='test -s conftest$ac_exeext'
  7769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7770. (eval $ac_try) 2>&5
  7771. ac_status=$?
  7772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7773. (exit $ac_status); }; }; then
  7774. ac_cv_var_tzname=yes
  7775. else
  7776. echo "$as_me: failed program was:" >&5
  7777. sed 's/^/| /' conftest.$ac_ext >&5
  7778. ac_cv_var_tzname=no
  7779. fi
  7780. rm -f conftest.err conftest.$ac_objext \
  7781. conftest$ac_exeext conftest.$ac_ext
  7782. fi
  7783. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7784. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7785. if test $ac_cv_var_tzname = yes; then
  7786. cat >>confdefs.h <<\_ACEOF
  7787. #define HAVE_TZNAME 1
  7788. _ACEOF
  7789. fi
  7790. fi
  7791. echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
  7792. echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
  7793. cat >conftest.$ac_ext <<_ACEOF
  7794. /* confdefs.h. */
  7795. _ACEOF
  7796. cat confdefs.h >>conftest.$ac_ext
  7797. cat >>conftest.$ac_ext <<_ACEOF
  7798. /* end confdefs.h. */
  7799. #include <time.h>
  7800. int
  7801. main ()
  7802. {
  7803. struct tm tim; tim.tm_gmtoff = 0;
  7804. ;
  7805. return 0;
  7806. }
  7807. _ACEOF
  7808. rm -f conftest.$ac_objext
  7809. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7810. (eval $ac_compile) 2>conftest.er1
  7811. ac_status=$?
  7812. grep -v '^ *+' conftest.er1 >conftest.err
  7813. rm -f conftest.er1
  7814. cat conftest.err >&5
  7815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7816. (exit $ac_status); } &&
  7817. { ac_try='test -z "$ac_c_werror_flag"
  7818. || test ! -s conftest.err'
  7819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7820. (eval $ac_try) 2>&5
  7821. ac_status=$?
  7822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7823. (exit $ac_status); }; } &&
  7824. { ac_try='test -s conftest.$ac_objext'
  7825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7826. (eval $ac_try) 2>&5
  7827. ac_status=$?
  7828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7829. (exit $ac_status); }; }; then
  7830. cat >>confdefs.h <<\_ACEOF
  7831. #define STRUCT_TM_HAS_GMTOFF 1
  7832. _ACEOF
  7833. echo "$as_me:$LINENO: result: yes" >&5
  7834. echo "${ECHO_T}yes" >&6
  7835. else
  7836. echo "$as_me: failed program was:" >&5
  7837. sed 's/^/| /' conftest.$ac_ext >&5
  7838. echo "$as_me:$LINENO: result: no" >&5
  7839. echo "${ECHO_T}no" >&6
  7840. echo "$as_me:$LINENO: checking for global timezone variable" >&5
  7841. echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
  7842. cat >conftest.$ac_ext <<_ACEOF
  7843. /* confdefs.h. */
  7844. _ACEOF
  7845. cat confdefs.h >>conftest.$ac_ext
  7846. cat >>conftest.$ac_ext <<_ACEOF
  7847. /* end confdefs.h. */
  7848. #include <time.h>
  7849. int
  7850. main ()
  7851. {
  7852. void i(){long z2 = 2*timezone;}
  7853. ;
  7854. return 0;
  7855. }
  7856. _ACEOF
  7857. rm -f conftest.$ac_objext
  7858. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7859. (eval $ac_compile) 2>conftest.er1
  7860. ac_status=$?
  7861. grep -v '^ *+' conftest.er1 >conftest.err
  7862. rm -f conftest.er1
  7863. cat conftest.err >&5
  7864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7865. (exit $ac_status); } &&
  7866. { ac_try='test -z "$ac_c_werror_flag"
  7867. || test ! -s conftest.err'
  7868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7869. (eval $ac_try) 2>&5
  7870. ac_status=$?
  7871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7872. (exit $ac_status); }; } &&
  7873. { ac_try='test -s conftest.$ac_objext'
  7874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7875. (eval $ac_try) 2>&5
  7876. ac_status=$?
  7877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7878. (exit $ac_status); }; }; then
  7879. cat >>confdefs.h <<\_ACEOF
  7880. #define HAVE_TIMEZONE 1
  7881. _ACEOF
  7882. echo "$as_me:$LINENO: result: yes" >&5
  7883. echo "${ECHO_T}yes" >&6
  7884. else
  7885. echo "$as_me: failed program was:" >&5
  7886. sed 's/^/| /' conftest.$ac_ext >&5
  7887. echo "$as_me:$LINENO: result: no" >&5
  7888. echo "${ECHO_T}no" >&6
  7889. echo "$as_me:$LINENO: checking for global _timezone variable" >&5
  7890. echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
  7891. cat >conftest.$ac_ext <<_ACEOF
  7892. /* confdefs.h. */
  7893. _ACEOF
  7894. cat confdefs.h >>conftest.$ac_ext
  7895. cat >>conftest.$ac_ext <<_ACEOF
  7896. /* end confdefs.h. */
  7897. #include <time.h>
  7898. int
  7899. main ()
  7900. {
  7901. long z2 = _timezone;
  7902. ;
  7903. return 0;
  7904. }
  7905. _ACEOF
  7906. rm -f conftest.$ac_objext
  7907. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7908. (eval $ac_compile) 2>conftest.er1
  7909. ac_status=$?
  7910. grep -v '^ *+' conftest.er1 >conftest.err
  7911. rm -f conftest.er1
  7912. cat conftest.err >&5
  7913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7914. (exit $ac_status); } &&
  7915. { ac_try='test -z "$ac_c_werror_flag"
  7916. || test ! -s conftest.err'
  7917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7918. (eval $ac_try) 2>&5
  7919. ac_status=$?
  7920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7921. (exit $ac_status); }; } &&
  7922. { ac_try='test -s conftest.$ac_objext'
  7923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7924. (eval $ac_try) 2>&5
  7925. ac_status=$?
  7926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7927. (exit $ac_status); }; }; then
  7928. cat >>confdefs.h <<\_ACEOF
  7929. #define HAVE_UNDERSCORE_TIMEZONE 1
  7930. _ACEOF
  7931. echo "$as_me:$LINENO: result: yes" >&5
  7932. echo "${ECHO_T}yes" >&6
  7933. else
  7934. echo "$as_me: failed program was:" >&5
  7935. sed 's/^/| /' conftest.$ac_ext >&5
  7936. echo "$as_me:$LINENO: result: no" >&5
  7937. echo "${ECHO_T}no" >&6
  7938. fi
  7939. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7940. fi
  7941. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7942. fi
  7943. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7944. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7945. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  7946. if test "${ac_cv_c_const+set}" = set; then
  7947. echo $ECHO_N "(cached) $ECHO_C" >&6
  7948. else
  7949. cat >conftest.$ac_ext <<_ACEOF
  7950. /* confdefs.h. */
  7951. _ACEOF
  7952. cat confdefs.h >>conftest.$ac_ext
  7953. cat >>conftest.$ac_ext <<_ACEOF
  7954. /* end confdefs.h. */
  7955. int
  7956. main ()
  7957. {
  7958. /* FIXME: Include the comments suggested by Paul. */
  7959. #ifndef __cplusplus
  7960. /* Ultrix mips cc rejects this. */
  7961. typedef int charset[2];
  7962. const charset x;
  7963. /* SunOS 4.1.1 cc rejects this. */
  7964. char const *const *ccp;
  7965. char **p;
  7966. /* NEC SVR4.0.2 mips cc rejects this. */
  7967. struct point {int x, y;};
  7968. static struct point const zero = {0,0};
  7969. /* AIX XL C 1.02.0.0 rejects this.
  7970. It does not let you subtract one const X* pointer from another in
  7971. an arm of an if-expression whose if-part is not a constant
  7972. expression */
  7973. const char *g = "string";
  7974. ccp = &g + (g ? g-g : 0);
  7975. /* HPUX 7.0 cc rejects these. */
  7976. ++ccp;
  7977. p = (char**) ccp;
  7978. ccp = (char const *const *) p;
  7979. { /* SCO 3.2v4 cc rejects this. */
  7980. char *t;
  7981. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7982. *t++ = 0;
  7983. }
  7984. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7985. int x[] = {25, 17};
  7986. const int *foo = &x[0];
  7987. ++foo;
  7988. }
  7989. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7990. typedef const int *iptr;
  7991. iptr p = 0;
  7992. ++p;
  7993. }
  7994. { /* AIX XL C 1.02.0.0 rejects this saying
  7995. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7996. struct s { int j; const int *ap[3]; };
  7997. struct s *b; b->j = 5;
  7998. }
  7999. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  8000. const int foo = 10;
  8001. }
  8002. #endif
  8003. ;
  8004. return 0;
  8005. }
  8006. _ACEOF
  8007. rm -f conftest.$ac_objext
  8008. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8009. (eval $ac_compile) 2>conftest.er1
  8010. ac_status=$?
  8011. grep -v '^ *+' conftest.er1 >conftest.err
  8012. rm -f conftest.er1
  8013. cat conftest.err >&5
  8014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8015. (exit $ac_status); } &&
  8016. { ac_try='test -z "$ac_c_werror_flag"
  8017. || test ! -s conftest.err'
  8018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8019. (eval $ac_try) 2>&5
  8020. ac_status=$?
  8021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8022. (exit $ac_status); }; } &&
  8023. { ac_try='test -s conftest.$ac_objext'
  8024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8025. (eval $ac_try) 2>&5
  8026. ac_status=$?
  8027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8028. (exit $ac_status); }; }; then
  8029. ac_cv_c_const=yes
  8030. else
  8031. echo "$as_me: failed program was:" >&5
  8032. sed 's/^/| /' conftest.$ac_ext >&5
  8033. ac_cv_c_const=no
  8034. fi
  8035. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8036. fi
  8037. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  8038. echo "${ECHO_T}$ac_cv_c_const" >&6
  8039. if test $ac_cv_c_const = no; then
  8040. cat >>confdefs.h <<\_ACEOF
  8041. #define const
  8042. _ACEOF
  8043. fi
  8044. echo "$as_me:$LINENO: checking for __attribute__" >&5
  8045. echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
  8046. if test "${ac_cv_c_attribute+set}" = set; then
  8047. echo $ECHO_N "(cached) $ECHO_C" >&6
  8048. else
  8049. cat >conftest.$ac_ext <<_ACEOF
  8050. /* confdefs.h. */
  8051. _ACEOF
  8052. cat confdefs.h >>conftest.$ac_ext
  8053. cat >>conftest.$ac_ext <<_ACEOF
  8054. /* end confdefs.h. */
  8055. void foo(void) __attribute__ ((__noreturn__));
  8056. _ACEOF
  8057. rm -f conftest.$ac_objext
  8058. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8059. (eval $ac_compile) 2>conftest.er1
  8060. ac_status=$?
  8061. grep -v '^ *+' conftest.er1 >conftest.err
  8062. rm -f conftest.er1
  8063. cat conftest.err >&5
  8064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8065. (exit $ac_status); } &&
  8066. { ac_try='test -z "$ac_c_werror_flag"
  8067. || test ! -s conftest.err'
  8068. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8069. (eval $ac_try) 2>&5
  8070. ac_status=$?
  8071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8072. (exit $ac_status); }; } &&
  8073. { ac_try='test -s conftest.$ac_objext'
  8074. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8075. (eval $ac_try) 2>&5
  8076. ac_status=$?
  8077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8078. (exit $ac_status); }; }; then
  8079. ac_cv_c_attribute=yes
  8080. else
  8081. echo "$as_me: failed program was:" >&5
  8082. sed 's/^/| /' conftest.$ac_ext >&5
  8083. ac_cv_c_attribute=no
  8084. fi
  8085. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8086. fi
  8087. echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
  8088. echo "${ECHO_T}$ac_cv_c_attribute" >&6
  8089. case $ac_cv_c_attribute in
  8090. yes) ;;
  8091. no)
  8092. cat >>confdefs.h <<_ACEOF
  8093. #define __attribute__(x) /* nothing */
  8094. _ACEOF
  8095. ;;
  8096. esac
  8097. if test "X$prefix" = "XNONE"; then
  8098. acl_final_prefix="$ac_default_prefix"
  8099. else
  8100. acl_final_prefix="$prefix"
  8101. fi
  8102. if test "X$exec_prefix" = "XNONE"; then
  8103. acl_final_exec_prefix='${prefix}'
  8104. else
  8105. acl_final_exec_prefix="$exec_prefix"
  8106. fi
  8107. acl_save_prefix="$prefix"
  8108. prefix="$acl_final_prefix"
  8109. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8110. prefix="$acl_save_prefix"
  8111. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  8112. if test "${with_gnu_ld+set}" = set; then
  8113. withval="$with_gnu_ld"
  8114. test "$withval" = no || with_gnu_ld=yes
  8115. else
  8116. with_gnu_ld=no
  8117. fi;
  8118. # Prepare PATH_SEPARATOR.
  8119. # The user is always right.
  8120. if test "${PATH_SEPARATOR+set}" != set; then
  8121. echo "#! /bin/sh" >conf$$.sh
  8122. echo "exit 0" >>conf$$.sh
  8123. chmod +x conf$$.sh
  8124. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8125. PATH_SEPARATOR=';'
  8126. else
  8127. PATH_SEPARATOR=:
  8128. fi
  8129. rm -f conf$$.sh
  8130. fi
  8131. ac_prog=ld
  8132. if test "$GCC" = yes; then
  8133. # Check if gcc -print-prog-name=ld gives a path.
  8134. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  8135. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  8136. case $host in
  8137. *-*-mingw*)
  8138. # gcc leaves a trailing carriage return which upsets mingw
  8139. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8140. *)
  8141. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8142. esac
  8143. case $ac_prog in
  8144. # Accept absolute paths.
  8145. [\\/]* | [A-Za-z]:[\\/]*)
  8146. re_direlt='/[^/][^/]*/\.\./'
  8147. # Canonicalize the path of ld
  8148. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8149. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8150. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8151. done
  8152. test -z "$LD" && LD="$ac_prog"
  8153. ;;
  8154. "")
  8155. # If it fails, then pretend we aren't using GCC.
  8156. ac_prog=ld
  8157. ;;
  8158. *)
  8159. # If it is relative, then search for the first ld in PATH.
  8160. with_gnu_ld=unknown
  8161. ;;
  8162. esac
  8163. elif test "$with_gnu_ld" = yes; then
  8164. echo "$as_me:$LINENO: checking for GNU ld" >&5
  8165. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  8166. else
  8167. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8168. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  8169. fi
  8170. if test "${acl_cv_path_LD+set}" = set; then
  8171. echo $ECHO_N "(cached) $ECHO_C" >&6
  8172. else
  8173. if test -z "$LD"; then
  8174. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8175. for ac_dir in $PATH; do
  8176. test -z "$ac_dir" && ac_dir=.
  8177. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8178. acl_cv_path_LD="$ac_dir/$ac_prog"
  8179. # Check to see if the program is GNU ld. I'd rather use --version,
  8180. # but apparently some GNU ld's only accept -v.
  8181. # Break only if it was the GNU/non-GNU ld that we prefer.
  8182. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  8183. test "$with_gnu_ld" != no && break
  8184. else
  8185. test "$with_gnu_ld" != yes && break
  8186. fi
  8187. fi
  8188. done
  8189. IFS="$ac_save_ifs"
  8190. else
  8191. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8192. fi
  8193. fi
  8194. LD="$acl_cv_path_LD"
  8195. if test -n "$LD"; then
  8196. echo "$as_me:$LINENO: result: $LD" >&5
  8197. echo "${ECHO_T}$LD" >&6
  8198. else
  8199. echo "$as_me:$LINENO: result: no" >&5
  8200. echo "${ECHO_T}no" >&6
  8201. fi
  8202. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8203. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8204. { (exit 1); exit 1; }; }
  8205. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8206. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  8207. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  8208. echo $ECHO_N "(cached) $ECHO_C" >&6
  8209. else
  8210. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8211. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  8212. acl_cv_prog_gnu_ld=yes
  8213. else
  8214. acl_cv_prog_gnu_ld=no
  8215. fi
  8216. fi
  8217. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  8218. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  8219. with_gnu_ld=$acl_cv_prog_gnu_ld
  8220. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  8221. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  8222. if test "${acl_cv_rpath+set}" = set; then
  8223. echo $ECHO_N "(cached) $ECHO_C" >&6
  8224. else
  8225. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8226. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8227. . ./conftest.sh
  8228. rm -f ./conftest.sh
  8229. acl_cv_rpath=done
  8230. fi
  8231. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  8232. echo "${ECHO_T}$acl_cv_rpath" >&6
  8233. wl="$acl_cv_wl"
  8234. libext="$acl_cv_libext"
  8235. shlibext="$acl_cv_shlibext"
  8236. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8237. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8238. hardcode_direct="$acl_cv_hardcode_direct"
  8239. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8240. # Check whether --enable-rpath or --disable-rpath was given.
  8241. if test "${enable_rpath+set}" = set; then
  8242. enableval="$enable_rpath"
  8243. :
  8244. else
  8245. enable_rpath=yes
  8246. fi;
  8247. use_additional=yes
  8248. acl_save_prefix="$prefix"
  8249. prefix="$acl_final_prefix"
  8250. acl_save_exec_prefix="$exec_prefix"
  8251. exec_prefix="$acl_final_exec_prefix"
  8252. eval additional_includedir=\"$includedir\"
  8253. eval additional_libdir=\"$libdir\"
  8254. exec_prefix="$acl_save_exec_prefix"
  8255. prefix="$acl_save_prefix"
  8256. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  8257. if test "${with_libiconv_prefix+set}" = set; then
  8258. withval="$with_libiconv_prefix"
  8259. if test "X$withval" = "Xno"; then
  8260. use_additional=no
  8261. else
  8262. if test "X$withval" = "X"; then
  8263. acl_save_prefix="$prefix"
  8264. prefix="$acl_final_prefix"
  8265. acl_save_exec_prefix="$exec_prefix"
  8266. exec_prefix="$acl_final_exec_prefix"
  8267. eval additional_includedir=\"$includedir\"
  8268. eval additional_libdir=\"$libdir\"
  8269. exec_prefix="$acl_save_exec_prefix"
  8270. prefix="$acl_save_prefix"
  8271. else
  8272. additional_includedir="$withval/include"
  8273. additional_libdir="$withval/lib"
  8274. fi
  8275. fi
  8276. fi;
  8277. LIBICONV=
  8278. LTLIBICONV=
  8279. INCICONV=
  8280. rpathdirs=
  8281. ltrpathdirs=
  8282. names_already_handled=
  8283. names_next_round='iconv '
  8284. while test -n "$names_next_round"; do
  8285. names_this_round="$names_next_round"
  8286. names_next_round=
  8287. for name in $names_this_round; do
  8288. already_handled=
  8289. for n in $names_already_handled; do
  8290. if test "$n" = "$name"; then
  8291. already_handled=yes
  8292. break
  8293. fi
  8294. done
  8295. if test -z "$already_handled"; then
  8296. names_already_handled="$names_already_handled $name"
  8297. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8298. eval value=\"\$HAVE_LIB$uppername\"
  8299. if test -n "$value"; then
  8300. if test "$value" = yes; then
  8301. eval value=\"\$LIB$uppername\"
  8302. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  8303. eval value=\"\$LTLIB$uppername\"
  8304. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  8305. else
  8306. :
  8307. fi
  8308. else
  8309. found_dir=
  8310. found_la=
  8311. found_so=
  8312. found_a=
  8313. if test $use_additional = yes; then
  8314. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8315. found_dir="$additional_libdir"
  8316. found_so="$additional_libdir/lib$name.$shlibext"
  8317. if test -f "$additional_libdir/lib$name.la"; then
  8318. found_la="$additional_libdir/lib$name.la"
  8319. fi
  8320. else
  8321. if test -f "$additional_libdir/lib$name.$libext"; then
  8322. found_dir="$additional_libdir"
  8323. found_a="$additional_libdir/lib$name.$libext"
  8324. if test -f "$additional_libdir/lib$name.la"; then
  8325. found_la="$additional_libdir/lib$name.la"
  8326. fi
  8327. fi
  8328. fi
  8329. fi
  8330. if test "X$found_dir" = "X"; then
  8331. for x in $LDFLAGS $LTLIBICONV; do
  8332. acl_save_prefix="$prefix"
  8333. prefix="$acl_final_prefix"
  8334. acl_save_exec_prefix="$exec_prefix"
  8335. exec_prefix="$acl_final_exec_prefix"
  8336. eval x=\"$x\"
  8337. exec_prefix="$acl_save_exec_prefix"
  8338. prefix="$acl_save_prefix"
  8339. case "$x" in
  8340. -L*)
  8341. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8342. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8343. found_dir="$dir"
  8344. found_so="$dir/lib$name.$shlibext"
  8345. if test -f "$dir/lib$name.la"; then
  8346. found_la="$dir/lib$name.la"
  8347. fi
  8348. else
  8349. if test -f "$dir/lib$name.$libext"; then
  8350. found_dir="$dir"
  8351. found_a="$dir/lib$name.$libext"
  8352. if test -f "$dir/lib$name.la"; then
  8353. found_la="$dir/lib$name.la"
  8354. fi
  8355. fi
  8356. fi
  8357. ;;
  8358. esac
  8359. if test "X$found_dir" != "X"; then
  8360. break
  8361. fi
  8362. done
  8363. fi
  8364. if test "X$found_dir" != "X"; then
  8365. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  8366. if test "X$found_so" != "X"; then
  8367. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8368. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8369. else
  8370. haveit=
  8371. for x in $ltrpathdirs; do
  8372. if test "X$x" = "X$found_dir"; then
  8373. haveit=yes
  8374. break
  8375. fi
  8376. done
  8377. if test -z "$haveit"; then
  8378. ltrpathdirs="$ltrpathdirs $found_dir"
  8379. fi
  8380. if test "$hardcode_direct" = yes; then
  8381. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8382. else
  8383. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8384. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8385. haveit=
  8386. for x in $rpathdirs; do
  8387. if test "X$x" = "X$found_dir"; then
  8388. haveit=yes
  8389. break
  8390. fi
  8391. done
  8392. if test -z "$haveit"; then
  8393. rpathdirs="$rpathdirs $found_dir"
  8394. fi
  8395. else
  8396. haveit=
  8397. for x in $LDFLAGS $LIBICONV; do
  8398. acl_save_prefix="$prefix"
  8399. prefix="$acl_final_prefix"
  8400. acl_save_exec_prefix="$exec_prefix"
  8401. exec_prefix="$acl_final_exec_prefix"
  8402. eval x=\"$x\"
  8403. exec_prefix="$acl_save_exec_prefix"
  8404. prefix="$acl_save_prefix"
  8405. if test "X$x" = "X-L$found_dir"; then
  8406. haveit=yes
  8407. break
  8408. fi
  8409. done
  8410. if test -z "$haveit"; then
  8411. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8412. fi
  8413. if test "$hardcode_minus_L" != no; then
  8414. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8415. else
  8416. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8417. fi
  8418. fi
  8419. fi
  8420. fi
  8421. else
  8422. if test "X$found_a" != "X"; then
  8423. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8424. else
  8425. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8426. fi
  8427. fi
  8428. additional_includedir=
  8429. case "$found_dir" in
  8430. */lib | */lib/)
  8431. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8432. additional_includedir="$basedir/include"
  8433. ;;
  8434. esac
  8435. if test "X$additional_includedir" != "X"; then
  8436. if test "X$additional_includedir" != "X/usr/include"; then
  8437. haveit=
  8438. if test "X$additional_includedir" = "X/usr/local/include"; then
  8439. if test -n "$GCC"; then
  8440. case $host_os in
  8441. linux*) haveit=yes;;
  8442. esac
  8443. fi
  8444. fi
  8445. if test -z "$haveit"; then
  8446. for x in $CPPFLAGS $INCICONV; do
  8447. acl_save_prefix="$prefix"
  8448. prefix="$acl_final_prefix"
  8449. acl_save_exec_prefix="$exec_prefix"
  8450. exec_prefix="$acl_final_exec_prefix"
  8451. eval x=\"$x\"
  8452. exec_prefix="$acl_save_exec_prefix"
  8453. prefix="$acl_save_prefix"
  8454. if test "X$x" = "X-I$additional_includedir"; then
  8455. haveit=yes
  8456. break
  8457. fi
  8458. done
  8459. if test -z "$haveit"; then
  8460. if test -d "$additional_includedir"; then
  8461. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8462. fi
  8463. fi
  8464. fi
  8465. fi
  8466. fi
  8467. if test -n "$found_la"; then
  8468. save_libdir="$libdir"
  8469. case "$found_la" in
  8470. */* | *\\*) . "$found_la" ;;
  8471. *) . "./$found_la" ;;
  8472. esac
  8473. libdir="$save_libdir"
  8474. for dep in $dependency_libs; do
  8475. case "$dep" in
  8476. -L*)
  8477. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8478. if test "X$additional_libdir" != "X/usr/lib"; then
  8479. haveit=
  8480. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8481. if test -n "$GCC"; then
  8482. case $host_os in
  8483. linux*) haveit=yes;;
  8484. esac
  8485. fi
  8486. fi
  8487. if test -z "$haveit"; then
  8488. haveit=
  8489. for x in $LDFLAGS $LIBICONV; do
  8490. acl_save_prefix="$prefix"
  8491. prefix="$acl_final_prefix"
  8492. acl_save_exec_prefix="$exec_prefix"
  8493. exec_prefix="$acl_final_exec_prefix"
  8494. eval x=\"$x\"
  8495. exec_prefix="$acl_save_exec_prefix"
  8496. prefix="$acl_save_prefix"
  8497. if test "X$x" = "X-L$additional_libdir"; then
  8498. haveit=yes
  8499. break
  8500. fi
  8501. done
  8502. if test -z "$haveit"; then
  8503. if test -d "$additional_libdir"; then
  8504. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8505. fi
  8506. fi
  8507. haveit=
  8508. for x in $LDFLAGS $LTLIBICONV; do
  8509. acl_save_prefix="$prefix"
  8510. prefix="$acl_final_prefix"
  8511. acl_save_exec_prefix="$exec_prefix"
  8512. exec_prefix="$acl_final_exec_prefix"
  8513. eval x=\"$x\"
  8514. exec_prefix="$acl_save_exec_prefix"
  8515. prefix="$acl_save_prefix"
  8516. if test "X$x" = "X-L$additional_libdir"; then
  8517. haveit=yes
  8518. break
  8519. fi
  8520. done
  8521. if test -z "$haveit"; then
  8522. if test -d "$additional_libdir"; then
  8523. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  8524. fi
  8525. fi
  8526. fi
  8527. fi
  8528. ;;
  8529. -R*)
  8530. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8531. if test "$enable_rpath" != no; then
  8532. haveit=
  8533. for x in $rpathdirs; do
  8534. if test "X$x" = "X$dir"; then
  8535. haveit=yes
  8536. break
  8537. fi
  8538. done
  8539. if test -z "$haveit"; then
  8540. rpathdirs="$rpathdirs $dir"
  8541. fi
  8542. haveit=
  8543. for x in $ltrpathdirs; do
  8544. if test "X$x" = "X$dir"; then
  8545. haveit=yes
  8546. break
  8547. fi
  8548. done
  8549. if test -z "$haveit"; then
  8550. ltrpathdirs="$ltrpathdirs $dir"
  8551. fi
  8552. fi
  8553. ;;
  8554. -l*)
  8555. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8556. ;;
  8557. *.la)
  8558. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8559. ;;
  8560. *)
  8561. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  8562. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  8563. ;;
  8564. esac
  8565. done
  8566. fi
  8567. else
  8568. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8569. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  8570. fi
  8571. fi
  8572. fi
  8573. done
  8574. done
  8575. if test "X$rpathdirs" != "X"; then
  8576. if test -n "$hardcode_libdir_separator"; then
  8577. alldirs=
  8578. for found_dir in $rpathdirs; do
  8579. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8580. done
  8581. acl_save_libdir="$libdir"
  8582. libdir="$alldirs"
  8583. eval flag=\"$hardcode_libdir_flag_spec\"
  8584. libdir="$acl_save_libdir"
  8585. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8586. else
  8587. for found_dir in $rpathdirs; do
  8588. acl_save_libdir="$libdir"
  8589. libdir="$found_dir"
  8590. eval flag=\"$hardcode_libdir_flag_spec\"
  8591. libdir="$acl_save_libdir"
  8592. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8593. done
  8594. fi
  8595. fi
  8596. if test "X$ltrpathdirs" != "X"; then
  8597. for found_dir in $ltrpathdirs; do
  8598. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  8599. done
  8600. fi
  8601. am_save_CPPFLAGS="$CPPFLAGS"
  8602. for element in $INCICONV; do
  8603. haveit=
  8604. for x in $CPPFLAGS; do
  8605. acl_save_prefix="$prefix"
  8606. prefix="$acl_final_prefix"
  8607. acl_save_exec_prefix="$exec_prefix"
  8608. exec_prefix="$acl_final_exec_prefix"
  8609. eval x=\"$x\"
  8610. exec_prefix="$acl_save_exec_prefix"
  8611. prefix="$acl_save_prefix"
  8612. if test "X$x" = "X$element"; then
  8613. haveit=yes
  8614. break
  8615. fi
  8616. done
  8617. if test -z "$haveit"; then
  8618. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8619. fi
  8620. done
  8621. echo "$as_me:$LINENO: checking for iconv" >&5
  8622. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  8623. if test "${am_cv_func_iconv+set}" = set; then
  8624. echo $ECHO_N "(cached) $ECHO_C" >&6
  8625. else
  8626. am_cv_func_iconv="no, consider installing GNU libiconv"
  8627. am_cv_lib_iconv=no
  8628. cat >conftest.$ac_ext <<_ACEOF
  8629. /* confdefs.h. */
  8630. _ACEOF
  8631. cat confdefs.h >>conftest.$ac_ext
  8632. cat >>conftest.$ac_ext <<_ACEOF
  8633. /* end confdefs.h. */
  8634. #include <stdlib.h>
  8635. #include <iconv.h>
  8636. int
  8637. main ()
  8638. {
  8639. iconv_t cd = iconv_open("","");
  8640. iconv(cd,NULL,NULL,NULL,NULL);
  8641. iconv_close(cd);
  8642. ;
  8643. return 0;
  8644. }
  8645. _ACEOF
  8646. rm -f conftest.$ac_objext conftest$ac_exeext
  8647. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8648. (eval $ac_link) 2>conftest.er1
  8649. ac_status=$?
  8650. grep -v '^ *+' conftest.er1 >conftest.err
  8651. rm -f conftest.er1
  8652. cat conftest.err >&5
  8653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8654. (exit $ac_status); } &&
  8655. { ac_try='test -z "$ac_c_werror_flag"
  8656. || test ! -s conftest.err'
  8657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8658. (eval $ac_try) 2>&5
  8659. ac_status=$?
  8660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8661. (exit $ac_status); }; } &&
  8662. { ac_try='test -s conftest$ac_exeext'
  8663. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8664. (eval $ac_try) 2>&5
  8665. ac_status=$?
  8666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8667. (exit $ac_status); }; }; then
  8668. am_cv_func_iconv=yes
  8669. else
  8670. echo "$as_me: failed program was:" >&5
  8671. sed 's/^/| /' conftest.$ac_ext >&5
  8672. fi
  8673. rm -f conftest.err conftest.$ac_objext \
  8674. conftest$ac_exeext conftest.$ac_ext
  8675. if test "$am_cv_func_iconv" != yes; then
  8676. am_save_LIBS="$LIBS"
  8677. LIBS="$LIBS $LIBICONV"
  8678. cat >conftest.$ac_ext <<_ACEOF
  8679. /* confdefs.h. */
  8680. _ACEOF
  8681. cat confdefs.h >>conftest.$ac_ext
  8682. cat >>conftest.$ac_ext <<_ACEOF
  8683. /* end confdefs.h. */
  8684. #include <stdlib.h>
  8685. #include <iconv.h>
  8686. int
  8687. main ()
  8688. {
  8689. iconv_t cd = iconv_open("","");
  8690. iconv(cd,NULL,NULL,NULL,NULL);
  8691. iconv_close(cd);
  8692. ;
  8693. return 0;
  8694. }
  8695. _ACEOF
  8696. rm -f conftest.$ac_objext conftest$ac_exeext
  8697. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8698. (eval $ac_link) 2>conftest.er1
  8699. ac_status=$?
  8700. grep -v '^ *+' conftest.er1 >conftest.err
  8701. rm -f conftest.er1
  8702. cat conftest.err >&5
  8703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8704. (exit $ac_status); } &&
  8705. { ac_try='test -z "$ac_c_werror_flag"
  8706. || test ! -s conftest.err'
  8707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8708. (eval $ac_try) 2>&5
  8709. ac_status=$?
  8710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8711. (exit $ac_status); }; } &&
  8712. { ac_try='test -s conftest$ac_exeext'
  8713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8714. (eval $ac_try) 2>&5
  8715. ac_status=$?
  8716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8717. (exit $ac_status); }; }; then
  8718. am_cv_lib_iconv=yes
  8719. am_cv_func_iconv=yes
  8720. else
  8721. echo "$as_me: failed program was:" >&5
  8722. sed 's/^/| /' conftest.$ac_ext >&5
  8723. fi
  8724. rm -f conftest.err conftest.$ac_objext \
  8725. conftest$ac_exeext conftest.$ac_ext
  8726. LIBS="$am_save_LIBS"
  8727. fi
  8728. fi
  8729. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8730. echo "${ECHO_T}$am_cv_func_iconv" >&6
  8731. if test "$am_cv_func_iconv" = yes; then
  8732. cat >>confdefs.h <<\_ACEOF
  8733. #define HAVE_ICONV 1
  8734. _ACEOF
  8735. fi
  8736. if test "$am_cv_lib_iconv" = yes; then
  8737. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  8738. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  8739. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  8740. echo "${ECHO_T}$LIBICONV" >&6
  8741. else
  8742. CPPFLAGS="$am_save_CPPFLAGS"
  8743. LIBICONV=
  8744. LTLIBICONV=
  8745. fi
  8746. if test "$am_cv_func_iconv" = yes; then
  8747. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  8748. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  8749. if test "${am_cv_proto_iconv+set}" = set; then
  8750. echo $ECHO_N "(cached) $ECHO_C" >&6
  8751. else
  8752. cat >conftest.$ac_ext <<_ACEOF
  8753. /* confdefs.h. */
  8754. _ACEOF
  8755. cat confdefs.h >>conftest.$ac_ext
  8756. cat >>conftest.$ac_ext <<_ACEOF
  8757. /* end confdefs.h. */
  8758. #include <stdlib.h>
  8759. #include <iconv.h>
  8760. extern
  8761. #ifdef __cplusplus
  8762. "C"
  8763. #endif
  8764. #if defined(__STDC__) || defined(__cplusplus)
  8765. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8766. #else
  8767. size_t iconv();
  8768. #endif
  8769. int
  8770. main ()
  8771. {
  8772. ;
  8773. return 0;
  8774. }
  8775. _ACEOF
  8776. rm -f conftest.$ac_objext
  8777. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8778. (eval $ac_compile) 2>conftest.er1
  8779. ac_status=$?
  8780. grep -v '^ *+' conftest.er1 >conftest.err
  8781. rm -f conftest.er1
  8782. cat conftest.err >&5
  8783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8784. (exit $ac_status); } &&
  8785. { ac_try='test -z "$ac_c_werror_flag"
  8786. || test ! -s conftest.err'
  8787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8788. (eval $ac_try) 2>&5
  8789. ac_status=$?
  8790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8791. (exit $ac_status); }; } &&
  8792. { ac_try='test -s conftest.$ac_objext'
  8793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8794. (eval $ac_try) 2>&5
  8795. ac_status=$?
  8796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8797. (exit $ac_status); }; }; then
  8798. am_cv_proto_iconv_arg1=""
  8799. else
  8800. echo "$as_me: failed program was:" >&5
  8801. sed 's/^/| /' conftest.$ac_ext >&5
  8802. am_cv_proto_iconv_arg1="const"
  8803. fi
  8804. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8805. 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);"
  8806. fi
  8807. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8808. echo "$as_me:$LINENO: result: ${ac_t:-
  8809. }$am_cv_proto_iconv" >&5
  8810. echo "${ECHO_T}${ac_t:-
  8811. }$am_cv_proto_iconv" >&6
  8812. cat >>confdefs.h <<_ACEOF
  8813. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8814. _ACEOF
  8815. fi
  8816. if test "x${GCC}" = xyes; then
  8817. WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
  8818. STRICT_WARNING_CFLAGS=-Wstrict-prototypes
  8819. ERROR_CFLAGS=
  8820. if test "x${ENABLE_WERROR}" = xyes; then
  8821. ERROR_CFLAGS='-Werror'
  8822. fi
  8823. fi
  8824. if test "x${COMPILE_XMLJ}" = xyes; then
  8825. succeeded=no
  8826. if test -z "$PKG_CONFIG"; then
  8827. # Extract the first word of "pkg-config", so it can be a program name with args.
  8828. set dummy pkg-config; ac_word=$2
  8829. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8830. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8831. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  8832. echo $ECHO_N "(cached) $ECHO_C" >&6
  8833. else
  8834. case $PKG_CONFIG in
  8835. [\\/]* | ?:[\\/]*)
  8836. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  8837. ;;
  8838. *)
  8839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8840. for as_dir in $PATH
  8841. do
  8842. IFS=$as_save_IFS
  8843. test -z "$as_dir" && as_dir=.
  8844. for ac_exec_ext in '' $ac_executable_extensions; do
  8845. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8846. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8847. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8848. break 2
  8849. fi
  8850. done
  8851. done
  8852. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  8853. ;;
  8854. esac
  8855. fi
  8856. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  8857. if test -n "$PKG_CONFIG"; then
  8858. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  8859. echo "${ECHO_T}$PKG_CONFIG" >&6
  8860. else
  8861. echo "$as_me:$LINENO: result: no" >&5
  8862. echo "${ECHO_T}no" >&6
  8863. fi
  8864. fi
  8865. if test "$PKG_CONFIG" = "no" ; then
  8866. echo "*** The pkg-config script could not be found. Make sure it is"
  8867. echo "*** in your path, or set the PKG_CONFIG environment variable"
  8868. echo "*** to the full path to pkg-config."
  8869. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  8870. else
  8871. PKG_CONFIG_MIN_VERSION=0.9.0
  8872. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  8873. echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
  8874. echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
  8875. if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
  8876. echo "$as_me:$LINENO: result: yes" >&5
  8877. echo "${ECHO_T}yes" >&6
  8878. succeeded=yes
  8879. echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
  8880. echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
  8881. XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
  8882. echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
  8883. echo "${ECHO_T}$XML_CFLAGS" >&6
  8884. echo "$as_me:$LINENO: checking XML_LIBS" >&5
  8885. echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
  8886. XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
  8887. echo "$as_me:$LINENO: result: $XML_LIBS" >&5
  8888. echo "${ECHO_T}$XML_LIBS" >&6
  8889. else
  8890. XML_CFLAGS=""
  8891. XML_LIBS=""
  8892. ## If we have a custom action on failure, don't print errors, but
  8893. ## do set a variable so people can do so.
  8894. XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
  8895. echo $XML_PKG_ERRORS
  8896. fi
  8897. else
  8898. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  8899. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  8900. fi
  8901. fi
  8902. if test $succeeded = yes; then
  8903. :
  8904. else
  8905. { { 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
  8906. 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;}
  8907. { (exit 1); exit 1; }; }
  8908. fi
  8909. succeeded=no
  8910. if test -z "$PKG_CONFIG"; then
  8911. # Extract the first word of "pkg-config", so it can be a program name with args.
  8912. set dummy pkg-config; ac_word=$2
  8913. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8914. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8915. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  8916. echo $ECHO_N "(cached) $ECHO_C" >&6
  8917. else
  8918. case $PKG_CONFIG in
  8919. [\\/]* | ?:[\\/]*)
  8920. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  8921. ;;
  8922. *)
  8923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8924. for as_dir in $PATH
  8925. do
  8926. IFS=$as_save_IFS
  8927. test -z "$as_dir" && as_dir=.
  8928. for ac_exec_ext in '' $ac_executable_extensions; do
  8929. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8930. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8931. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8932. break 2
  8933. fi
  8934. done
  8935. done
  8936. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  8937. ;;
  8938. esac
  8939. fi
  8940. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  8941. if test -n "$PKG_CONFIG"; then
  8942. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  8943. echo "${ECHO_T}$PKG_CONFIG" >&6
  8944. else
  8945. echo "$as_me:$LINENO: result: no" >&5
  8946. echo "${ECHO_T}no" >&6
  8947. fi
  8948. fi
  8949. if test "$PKG_CONFIG" = "no" ; then
  8950. echo "*** The pkg-config script could not be found. Make sure it is"
  8951. echo "*** in your path, or set the PKG_CONFIG environment variable"
  8952. echo "*** to the full path to pkg-config."
  8953. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  8954. else
  8955. PKG_CONFIG_MIN_VERSION=0.9.0
  8956. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  8957. echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
  8958. echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
  8959. if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
  8960. echo "$as_me:$LINENO: result: yes" >&5
  8961. echo "${ECHO_T}yes" >&6
  8962. succeeded=yes
  8963. echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
  8964. echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
  8965. XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
  8966. echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
  8967. echo "${ECHO_T}$XSLT_CFLAGS" >&6
  8968. echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
  8969. echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
  8970. XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
  8971. echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
  8972. echo "${ECHO_T}$XSLT_LIBS" >&6
  8973. else
  8974. XSLT_CFLAGS=""
  8975. XSLT_LIBS=""
  8976. ## If we have a custom action on failure, don't print errors, but
  8977. ## do set a variable so people can do so.
  8978. XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
  8979. echo $XSLT_PKG_ERRORS
  8980. fi
  8981. else
  8982. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  8983. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  8984. fi
  8985. fi
  8986. if test $succeeded = yes; then
  8987. :
  8988. else
  8989. { { 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
  8990. 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;}
  8991. { (exit 1); exit 1; }; }
  8992. fi
  8993. fi
  8994. if test "x${COMPILE_GTK_PEER}" = xyes; then
  8995. echo "$as_me:$LINENO: checking for X" >&5
  8996. echo $ECHO_N "checking for X... $ECHO_C" >&6
  8997. # Check whether --with-x or --without-x was given.
  8998. if test "${with_x+set}" = set; then
  8999. withval="$with_x"
  9000. fi;
  9001. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  9002. if test "x$with_x" = xno; then
  9003. # The user explicitly disabled X.
  9004. have_x=disabled
  9005. else
  9006. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  9007. # Both variables are already set.
  9008. have_x=yes
  9009. else
  9010. if test "${ac_cv_have_x+set}" = set; then
  9011. echo $ECHO_N "(cached) $ECHO_C" >&6
  9012. else
  9013. # One or both of the vars are not set, and there is no cached value.
  9014. ac_x_includes=no ac_x_libraries=no
  9015. rm -fr conftest.dir
  9016. if mkdir conftest.dir; then
  9017. cd conftest.dir
  9018. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  9019. cat >Imakefile <<'_ACEOF'
  9020. acfindx:
  9021. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  9022. _ACEOF
  9023. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  9024. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  9025. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  9026. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  9027. for ac_extension in a so sl; do
  9028. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  9029. test -f $ac_im_libdir/libX11.$ac_extension; then
  9030. ac_im_usrlibdir=$ac_im_libdir; break
  9031. fi
  9032. done
  9033. # Screen out bogus values from the imake configuration. They are
  9034. # bogus both because they are the default anyway, and because
  9035. # using them would break gcc on systems where it needs fixed includes.
  9036. case $ac_im_incroot in
  9037. /usr/include) ;;
  9038. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  9039. esac
  9040. case $ac_im_usrlibdir in
  9041. /usr/lib | /lib) ;;
  9042. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  9043. esac
  9044. fi
  9045. cd ..
  9046. rm -fr conftest.dir
  9047. fi
  9048. # Standard set of common directories for X headers.
  9049. # Check X11 before X11Rn because it is often a symlink to the current release.
  9050. ac_x_header_dirs='
  9051. /usr/X11/include
  9052. /usr/X11R6/include
  9053. /usr/X11R5/include
  9054. /usr/X11R4/include
  9055. /usr/include/X11
  9056. /usr/include/X11R6
  9057. /usr/include/X11R5
  9058. /usr/include/X11R4
  9059. /usr/local/X11/include
  9060. /usr/local/X11R6/include
  9061. /usr/local/X11R5/include
  9062. /usr/local/X11R4/include
  9063. /usr/local/include/X11
  9064. /usr/local/include/X11R6
  9065. /usr/local/include/X11R5
  9066. /usr/local/include/X11R4
  9067. /usr/X386/include
  9068. /usr/x386/include
  9069. /usr/XFree86/include/X11
  9070. /usr/include
  9071. /usr/local/include
  9072. /usr/unsupported/include
  9073. /usr/athena/include
  9074. /usr/local/x11r5/include
  9075. /usr/lpp/Xamples/include
  9076. /usr/openwin/include
  9077. /usr/openwin/share/include'
  9078. if test "$ac_x_includes" = no; then
  9079. # Guess where to find include files, by looking for Xlib.h.
  9080. # First, try using that file with no special directory specified.
  9081. cat >conftest.$ac_ext <<_ACEOF
  9082. /* confdefs.h. */
  9083. _ACEOF
  9084. cat confdefs.h >>conftest.$ac_ext
  9085. cat >>conftest.$ac_ext <<_ACEOF
  9086. /* end confdefs.h. */
  9087. #include <X11/Xlib.h>
  9088. _ACEOF
  9089. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9090. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9091. ac_status=$?
  9092. grep -v '^ *+' conftest.er1 >conftest.err
  9093. rm -f conftest.er1
  9094. cat conftest.err >&5
  9095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9096. (exit $ac_status); } >/dev/null; then
  9097. if test -s conftest.err; then
  9098. ac_cpp_err=$ac_c_preproc_warn_flag
  9099. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9100. else
  9101. ac_cpp_err=
  9102. fi
  9103. else
  9104. ac_cpp_err=yes
  9105. fi
  9106. if test -z "$ac_cpp_err"; then
  9107. # We can compile using X headers with no special include directory.
  9108. ac_x_includes=
  9109. else
  9110. echo "$as_me: failed program was:" >&5
  9111. sed 's/^/| /' conftest.$ac_ext >&5
  9112. for ac_dir in $ac_x_header_dirs; do
  9113. if test -r "$ac_dir/X11/Xlib.h"; then
  9114. ac_x_includes=$ac_dir
  9115. break
  9116. fi
  9117. done
  9118. fi
  9119. rm -f conftest.err conftest.$ac_ext
  9120. fi # $ac_x_includes = no
  9121. if test "$ac_x_libraries" = no; then
  9122. # Check for the libraries.
  9123. # See if we find them without any special options.
  9124. # Don't add to $LIBS permanently.
  9125. ac_save_LIBS=$LIBS
  9126. LIBS="-lXt $LIBS"
  9127. cat >conftest.$ac_ext <<_ACEOF
  9128. /* confdefs.h. */
  9129. _ACEOF
  9130. cat confdefs.h >>conftest.$ac_ext
  9131. cat >>conftest.$ac_ext <<_ACEOF
  9132. /* end confdefs.h. */
  9133. #include <X11/Xlib.h>
  9134. int
  9135. main ()
  9136. {
  9137. XrmInitialize ()
  9138. ;
  9139. return 0;
  9140. }
  9141. _ACEOF
  9142. rm -f conftest.$ac_objext conftest$ac_exeext
  9143. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9144. (eval $ac_link) 2>conftest.er1
  9145. ac_status=$?
  9146. grep -v '^ *+' conftest.er1 >conftest.err
  9147. rm -f conftest.er1
  9148. cat conftest.err >&5
  9149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9150. (exit $ac_status); } &&
  9151. { ac_try='test -z "$ac_c_werror_flag"
  9152. || test ! -s conftest.err'
  9153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9154. (eval $ac_try) 2>&5
  9155. ac_status=$?
  9156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9157. (exit $ac_status); }; } &&
  9158. { ac_try='test -s conftest$ac_exeext'
  9159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9160. (eval $ac_try) 2>&5
  9161. ac_status=$?
  9162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9163. (exit $ac_status); }; }; then
  9164. LIBS=$ac_save_LIBS
  9165. # We can link X programs with no special library path.
  9166. ac_x_libraries=
  9167. else
  9168. echo "$as_me: failed program was:" >&5
  9169. sed 's/^/| /' conftest.$ac_ext >&5
  9170. LIBS=$ac_save_LIBS
  9171. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  9172. do
  9173. # Don't even attempt the hair of trying to link an X program!
  9174. for ac_extension in a so sl; do
  9175. if test -r $ac_dir/libXt.$ac_extension; then
  9176. ac_x_libraries=$ac_dir
  9177. break 2
  9178. fi
  9179. done
  9180. done
  9181. fi
  9182. rm -f conftest.err conftest.$ac_objext \
  9183. conftest$ac_exeext conftest.$ac_ext
  9184. fi # $ac_x_libraries = no
  9185. if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  9186. # Didn't find X anywhere. Cache the known absence of X.
  9187. ac_cv_have_x="have_x=no"
  9188. else
  9189. # Record where we found X for the cache.
  9190. ac_cv_have_x="have_x=yes \
  9191. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  9192. fi
  9193. fi
  9194. fi
  9195. eval "$ac_cv_have_x"
  9196. fi # $with_x != no
  9197. if test "$have_x" != yes; then
  9198. echo "$as_me:$LINENO: result: $have_x" >&5
  9199. echo "${ECHO_T}$have_x" >&6
  9200. no_x=yes
  9201. else
  9202. # If each of the values was on the command line, it overrides each guess.
  9203. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  9204. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  9205. # Update the cache value to reflect the command line values.
  9206. ac_cv_have_x="have_x=yes \
  9207. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  9208. echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
  9209. echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
  9210. fi
  9211. if test "$no_x" = yes; then
  9212. # Not all programs may use this symbol, but it does not hurt to define it.
  9213. cat >>confdefs.h <<\_ACEOF
  9214. #define X_DISPLAY_MISSING 1
  9215. _ACEOF
  9216. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  9217. else
  9218. if test -n "$x_includes"; then
  9219. X_CFLAGS="$X_CFLAGS -I$x_includes"
  9220. fi
  9221. # It would also be nice to do this for all -L options, not just this one.
  9222. if test -n "$x_libraries"; then
  9223. X_LIBS="$X_LIBS -L$x_libraries"
  9224. # For Solaris; some versions of Sun CC require a space after -R and
  9225. # others require no space. Words are not sufficient . . . .
  9226. case `(uname -sr) 2>/dev/null` in
  9227. "SunOS 5"*)
  9228. echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
  9229. echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
  9230. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  9231. cat >conftest.$ac_ext <<_ACEOF
  9232. /* confdefs.h. */
  9233. _ACEOF
  9234. cat confdefs.h >>conftest.$ac_ext
  9235. cat >>conftest.$ac_ext <<_ACEOF
  9236. /* end confdefs.h. */
  9237. int
  9238. main ()
  9239. {
  9240. ;
  9241. return 0;
  9242. }
  9243. _ACEOF
  9244. rm -f conftest.$ac_objext conftest$ac_exeext
  9245. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9246. (eval $ac_link) 2>conftest.er1
  9247. ac_status=$?
  9248. grep -v '^ *+' conftest.er1 >conftest.err
  9249. rm -f conftest.er1
  9250. cat conftest.err >&5
  9251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9252. (exit $ac_status); } &&
  9253. { ac_try='test -z "$ac_c_werror_flag"
  9254. || test ! -s conftest.err'
  9255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9256. (eval $ac_try) 2>&5
  9257. ac_status=$?
  9258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9259. (exit $ac_status); }; } &&
  9260. { ac_try='test -s conftest$ac_exeext'
  9261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9262. (eval $ac_try) 2>&5
  9263. ac_status=$?
  9264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9265. (exit $ac_status); }; }; then
  9266. ac_R_nospace=yes
  9267. else
  9268. echo "$as_me: failed program was:" >&5
  9269. sed 's/^/| /' conftest.$ac_ext >&5
  9270. ac_R_nospace=no
  9271. fi
  9272. rm -f conftest.err conftest.$ac_objext \
  9273. conftest$ac_exeext conftest.$ac_ext
  9274. if test $ac_R_nospace = yes; then
  9275. echo "$as_me:$LINENO: result: no" >&5
  9276. echo "${ECHO_T}no" >&6
  9277. X_LIBS="$X_LIBS -R$x_libraries"
  9278. else
  9279. LIBS="$ac_xsave_LIBS -R $x_libraries"
  9280. cat >conftest.$ac_ext <<_ACEOF
  9281. /* confdefs.h. */
  9282. _ACEOF
  9283. cat confdefs.h >>conftest.$ac_ext
  9284. cat >>conftest.$ac_ext <<_ACEOF
  9285. /* end confdefs.h. */
  9286. int
  9287. main ()
  9288. {
  9289. ;
  9290. return 0;
  9291. }
  9292. _ACEOF
  9293. rm -f conftest.$ac_objext conftest$ac_exeext
  9294. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9295. (eval $ac_link) 2>conftest.er1
  9296. ac_status=$?
  9297. grep -v '^ *+' conftest.er1 >conftest.err
  9298. rm -f conftest.er1
  9299. cat conftest.err >&5
  9300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9301. (exit $ac_status); } &&
  9302. { ac_try='test -z "$ac_c_werror_flag"
  9303. || test ! -s conftest.err'
  9304. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9305. (eval $ac_try) 2>&5
  9306. ac_status=$?
  9307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9308. (exit $ac_status); }; } &&
  9309. { ac_try='test -s conftest$ac_exeext'
  9310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9311. (eval $ac_try) 2>&5
  9312. ac_status=$?
  9313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9314. (exit $ac_status); }; }; then
  9315. ac_R_space=yes
  9316. else
  9317. echo "$as_me: failed program was:" >&5
  9318. sed 's/^/| /' conftest.$ac_ext >&5
  9319. ac_R_space=no
  9320. fi
  9321. rm -f conftest.err conftest.$ac_objext \
  9322. conftest$ac_exeext conftest.$ac_ext
  9323. if test $ac_R_space = yes; then
  9324. echo "$as_me:$LINENO: result: yes" >&5
  9325. echo "${ECHO_T}yes" >&6
  9326. X_LIBS="$X_LIBS -R $x_libraries"
  9327. else
  9328. echo "$as_me:$LINENO: result: neither works" >&5
  9329. echo "${ECHO_T}neither works" >&6
  9330. fi
  9331. fi
  9332. LIBS=$ac_xsave_LIBS
  9333. esac
  9334. fi
  9335. # Check for system-dependent libraries X programs must link with.
  9336. # Do this before checking for the system-independent R6 libraries
  9337. # (-lICE), since we may need -lsocket or whatever for X linking.
  9338. if test "$ISC" = yes; then
  9339. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  9340. else
  9341. # Martyn Johnson says this is needed for Ultrix, if the X
  9342. # libraries were built with DECnet support. And Karl Berry says
  9343. # the Alpha needs dnet_stub (dnet does not exist).
  9344. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  9345. cat >conftest.$ac_ext <<_ACEOF
  9346. /* confdefs.h. */
  9347. _ACEOF
  9348. cat confdefs.h >>conftest.$ac_ext
  9349. cat >>conftest.$ac_ext <<_ACEOF
  9350. /* end confdefs.h. */
  9351. /* Override any gcc2 internal prototype to avoid an error. */
  9352. #ifdef __cplusplus
  9353. extern "C"
  9354. #endif
  9355. /* We use char because int might match the return type of a gcc2
  9356. builtin and then its argument prototype would still apply. */
  9357. char XOpenDisplay ();
  9358. int
  9359. main ()
  9360. {
  9361. XOpenDisplay ();
  9362. ;
  9363. return 0;
  9364. }
  9365. _ACEOF
  9366. rm -f conftest.$ac_objext conftest$ac_exeext
  9367. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9368. (eval $ac_link) 2>conftest.er1
  9369. ac_status=$?
  9370. grep -v '^ *+' conftest.er1 >conftest.err
  9371. rm -f conftest.er1
  9372. cat conftest.err >&5
  9373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9374. (exit $ac_status); } &&
  9375. { ac_try='test -z "$ac_c_werror_flag"
  9376. || test ! -s conftest.err'
  9377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9378. (eval $ac_try) 2>&5
  9379. ac_status=$?
  9380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9381. (exit $ac_status); }; } &&
  9382. { ac_try='test -s conftest$ac_exeext'
  9383. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9384. (eval $ac_try) 2>&5
  9385. ac_status=$?
  9386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9387. (exit $ac_status); }; }; then
  9388. :
  9389. else
  9390. echo "$as_me: failed program was:" >&5
  9391. sed 's/^/| /' conftest.$ac_ext >&5
  9392. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  9393. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
  9394. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  9395. echo $ECHO_N "(cached) $ECHO_C" >&6
  9396. else
  9397. ac_check_lib_save_LIBS=$LIBS
  9398. LIBS="-ldnet $LIBS"
  9399. cat >conftest.$ac_ext <<_ACEOF
  9400. /* confdefs.h. */
  9401. _ACEOF
  9402. cat confdefs.h >>conftest.$ac_ext
  9403. cat >>conftest.$ac_ext <<_ACEOF
  9404. /* end confdefs.h. */
  9405. /* Override any gcc2 internal prototype to avoid an error. */
  9406. #ifdef __cplusplus
  9407. extern "C"
  9408. #endif
  9409. /* We use char because int might match the return type of a gcc2
  9410. builtin and then its argument prototype would still apply. */
  9411. char dnet_ntoa ();
  9412. int
  9413. main ()
  9414. {
  9415. dnet_ntoa ();
  9416. ;
  9417. return 0;
  9418. }
  9419. _ACEOF
  9420. rm -f conftest.$ac_objext conftest$ac_exeext
  9421. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9422. (eval $ac_link) 2>conftest.er1
  9423. ac_status=$?
  9424. grep -v '^ *+' conftest.er1 >conftest.err
  9425. rm -f conftest.er1
  9426. cat conftest.err >&5
  9427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9428. (exit $ac_status); } &&
  9429. { ac_try='test -z "$ac_c_werror_flag"
  9430. || test ! -s conftest.err'
  9431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9432. (eval $ac_try) 2>&5
  9433. ac_status=$?
  9434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9435. (exit $ac_status); }; } &&
  9436. { ac_try='test -s conftest$ac_exeext'
  9437. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9438. (eval $ac_try) 2>&5
  9439. ac_status=$?
  9440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9441. (exit $ac_status); }; }; then
  9442. ac_cv_lib_dnet_dnet_ntoa=yes
  9443. else
  9444. echo "$as_me: failed program was:" >&5
  9445. sed 's/^/| /' conftest.$ac_ext >&5
  9446. ac_cv_lib_dnet_dnet_ntoa=no
  9447. fi
  9448. rm -f conftest.err conftest.$ac_objext \
  9449. conftest$ac_exeext conftest.$ac_ext
  9450. LIBS=$ac_check_lib_save_LIBS
  9451. fi
  9452. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  9453. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
  9454. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  9455. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  9456. fi
  9457. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  9458. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  9459. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
  9460. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  9461. echo $ECHO_N "(cached) $ECHO_C" >&6
  9462. else
  9463. ac_check_lib_save_LIBS=$LIBS
  9464. LIBS="-ldnet_stub $LIBS"
  9465. cat >conftest.$ac_ext <<_ACEOF
  9466. /* confdefs.h. */
  9467. _ACEOF
  9468. cat confdefs.h >>conftest.$ac_ext
  9469. cat >>conftest.$ac_ext <<_ACEOF
  9470. /* end confdefs.h. */
  9471. /* Override any gcc2 internal prototype to avoid an error. */
  9472. #ifdef __cplusplus
  9473. extern "C"
  9474. #endif
  9475. /* We use char because int might match the return type of a gcc2
  9476. builtin and then its argument prototype would still apply. */
  9477. char dnet_ntoa ();
  9478. int
  9479. main ()
  9480. {
  9481. dnet_ntoa ();
  9482. ;
  9483. return 0;
  9484. }
  9485. _ACEOF
  9486. rm -f conftest.$ac_objext conftest$ac_exeext
  9487. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9488. (eval $ac_link) 2>conftest.er1
  9489. ac_status=$?
  9490. grep -v '^ *+' conftest.er1 >conftest.err
  9491. rm -f conftest.er1
  9492. cat conftest.err >&5
  9493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9494. (exit $ac_status); } &&
  9495. { ac_try='test -z "$ac_c_werror_flag"
  9496. || test ! -s conftest.err'
  9497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9498. (eval $ac_try) 2>&5
  9499. ac_status=$?
  9500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9501. (exit $ac_status); }; } &&
  9502. { ac_try='test -s conftest$ac_exeext'
  9503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9504. (eval $ac_try) 2>&5
  9505. ac_status=$?
  9506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9507. (exit $ac_status); }; }; then
  9508. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  9509. else
  9510. echo "$as_me: failed program was:" >&5
  9511. sed 's/^/| /' conftest.$ac_ext >&5
  9512. ac_cv_lib_dnet_stub_dnet_ntoa=no
  9513. fi
  9514. rm -f conftest.err conftest.$ac_objext \
  9515. conftest$ac_exeext conftest.$ac_ext
  9516. LIBS=$ac_check_lib_save_LIBS
  9517. fi
  9518. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  9519. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
  9520. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  9521. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  9522. fi
  9523. fi
  9524. fi
  9525. rm -f conftest.err conftest.$ac_objext \
  9526. conftest$ac_exeext conftest.$ac_ext
  9527. LIBS="$ac_xsave_LIBS"
  9528. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  9529. # to get the SysV transport functions.
  9530. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  9531. # needs -lnsl.
  9532. # The nsl library prevents programs from opening the X display
  9533. # on Irix 5.2, according to T.E. Dickey.
  9534. # The functions gethostbyname, getservbyname, and inet_addr are
  9535. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  9536. echo "$as_me:$LINENO: checking for gethostbyname" >&5
  9537. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  9538. if test "${ac_cv_func_gethostbyname+set}" = set; then
  9539. echo $ECHO_N "(cached) $ECHO_C" >&6
  9540. else
  9541. cat >conftest.$ac_ext <<_ACEOF
  9542. /* confdefs.h. */
  9543. _ACEOF
  9544. cat confdefs.h >>conftest.$ac_ext
  9545. cat >>conftest.$ac_ext <<_ACEOF
  9546. /* end confdefs.h. */
  9547. /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  9548. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9549. #define gethostbyname innocuous_gethostbyname
  9550. /* System header to define __stub macros and hopefully few prototypes,
  9551. which can conflict with char gethostbyname (); below.
  9552. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9553. <limits.h> exists even on freestanding compilers. */
  9554. #ifdef __STDC__
  9555. # include <limits.h>
  9556. #else
  9557. # include <assert.h>
  9558. #endif
  9559. #undef gethostbyname
  9560. /* Override any gcc2 internal prototype to avoid an error. */
  9561. #ifdef __cplusplus
  9562. extern "C"
  9563. {
  9564. #endif
  9565. /* We use char because int might match the return type of a gcc2
  9566. builtin and then its argument prototype would still apply. */
  9567. char gethostbyname ();
  9568. /* The GNU C library defines this for functions which it implements
  9569. to always fail with ENOSYS. Some functions are actually named
  9570. something starting with __ and the normal name is an alias. */
  9571. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  9572. choke me
  9573. #else
  9574. char (*f) () = gethostbyname;
  9575. #endif
  9576. #ifdef __cplusplus
  9577. }
  9578. #endif
  9579. int
  9580. main ()
  9581. {
  9582. return f != gethostbyname;
  9583. ;
  9584. return 0;
  9585. }
  9586. _ACEOF
  9587. rm -f conftest.$ac_objext conftest$ac_exeext
  9588. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9589. (eval $ac_link) 2>conftest.er1
  9590. ac_status=$?
  9591. grep -v '^ *+' conftest.er1 >conftest.err
  9592. rm -f conftest.er1
  9593. cat conftest.err >&5
  9594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9595. (exit $ac_status); } &&
  9596. { ac_try='test -z "$ac_c_werror_flag"
  9597. || test ! -s conftest.err'
  9598. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9599. (eval $ac_try) 2>&5
  9600. ac_status=$?
  9601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9602. (exit $ac_status); }; } &&
  9603. { ac_try='test -s conftest$ac_exeext'
  9604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9605. (eval $ac_try) 2>&5
  9606. ac_status=$?
  9607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9608. (exit $ac_status); }; }; then
  9609. ac_cv_func_gethostbyname=yes
  9610. else
  9611. echo "$as_me: failed program was:" >&5
  9612. sed 's/^/| /' conftest.$ac_ext >&5
  9613. ac_cv_func_gethostbyname=no
  9614. fi
  9615. rm -f conftest.err conftest.$ac_objext \
  9616. conftest$ac_exeext conftest.$ac_ext
  9617. fi
  9618. echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  9619. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  9620. if test $ac_cv_func_gethostbyname = no; then
  9621. echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  9622. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  9623. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  9624. echo $ECHO_N "(cached) $ECHO_C" >&6
  9625. else
  9626. ac_check_lib_save_LIBS=$LIBS
  9627. LIBS="-lnsl $LIBS"
  9628. cat >conftest.$ac_ext <<_ACEOF
  9629. /* confdefs.h. */
  9630. _ACEOF
  9631. cat confdefs.h >>conftest.$ac_ext
  9632. cat >>conftest.$ac_ext <<_ACEOF
  9633. /* end confdefs.h. */
  9634. /* Override any gcc2 internal prototype to avoid an error. */
  9635. #ifdef __cplusplus
  9636. extern "C"
  9637. #endif
  9638. /* We use char because int might match the return type of a gcc2
  9639. builtin and then its argument prototype would still apply. */
  9640. char gethostbyname ();
  9641. int
  9642. main ()
  9643. {
  9644. gethostbyname ();
  9645. ;
  9646. return 0;
  9647. }
  9648. _ACEOF
  9649. rm -f conftest.$ac_objext conftest$ac_exeext
  9650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9651. (eval $ac_link) 2>conftest.er1
  9652. ac_status=$?
  9653. grep -v '^ *+' conftest.er1 >conftest.err
  9654. rm -f conftest.er1
  9655. cat conftest.err >&5
  9656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9657. (exit $ac_status); } &&
  9658. { ac_try='test -z "$ac_c_werror_flag"
  9659. || test ! -s conftest.err'
  9660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9661. (eval $ac_try) 2>&5
  9662. ac_status=$?
  9663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9664. (exit $ac_status); }; } &&
  9665. { ac_try='test -s conftest$ac_exeext'
  9666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9667. (eval $ac_try) 2>&5
  9668. ac_status=$?
  9669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9670. (exit $ac_status); }; }; then
  9671. ac_cv_lib_nsl_gethostbyname=yes
  9672. else
  9673. echo "$as_me: failed program was:" >&5
  9674. sed 's/^/| /' conftest.$ac_ext >&5
  9675. ac_cv_lib_nsl_gethostbyname=no
  9676. fi
  9677. rm -f conftest.err conftest.$ac_objext \
  9678. conftest$ac_exeext conftest.$ac_ext
  9679. LIBS=$ac_check_lib_save_LIBS
  9680. fi
  9681. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  9682. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  9683. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  9684. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  9685. fi
  9686. if test $ac_cv_lib_nsl_gethostbyname = no; then
  9687. echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  9688. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
  9689. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  9690. echo $ECHO_N "(cached) $ECHO_C" >&6
  9691. else
  9692. ac_check_lib_save_LIBS=$LIBS
  9693. LIBS="-lbsd $LIBS"
  9694. cat >conftest.$ac_ext <<_ACEOF
  9695. /* confdefs.h. */
  9696. _ACEOF
  9697. cat confdefs.h >>conftest.$ac_ext
  9698. cat >>conftest.$ac_ext <<_ACEOF
  9699. /* end confdefs.h. */
  9700. /* Override any gcc2 internal prototype to avoid an error. */
  9701. #ifdef __cplusplus
  9702. extern "C"
  9703. #endif
  9704. /* We use char because int might match the return type of a gcc2
  9705. builtin and then its argument prototype would still apply. */
  9706. char gethostbyname ();
  9707. int
  9708. main ()
  9709. {
  9710. gethostbyname ();
  9711. ;
  9712. return 0;
  9713. }
  9714. _ACEOF
  9715. rm -f conftest.$ac_objext conftest$ac_exeext
  9716. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9717. (eval $ac_link) 2>conftest.er1
  9718. ac_status=$?
  9719. grep -v '^ *+' conftest.er1 >conftest.err
  9720. rm -f conftest.er1
  9721. cat conftest.err >&5
  9722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9723. (exit $ac_status); } &&
  9724. { ac_try='test -z "$ac_c_werror_flag"
  9725. || test ! -s conftest.err'
  9726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9727. (eval $ac_try) 2>&5
  9728. ac_status=$?
  9729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9730. (exit $ac_status); }; } &&
  9731. { ac_try='test -s conftest$ac_exeext'
  9732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9733. (eval $ac_try) 2>&5
  9734. ac_status=$?
  9735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9736. (exit $ac_status); }; }; then
  9737. ac_cv_lib_bsd_gethostbyname=yes
  9738. else
  9739. echo "$as_me: failed program was:" >&5
  9740. sed 's/^/| /' conftest.$ac_ext >&5
  9741. ac_cv_lib_bsd_gethostbyname=no
  9742. fi
  9743. rm -f conftest.err conftest.$ac_objext \
  9744. conftest$ac_exeext conftest.$ac_ext
  9745. LIBS=$ac_check_lib_save_LIBS
  9746. fi
  9747. echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  9748. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
  9749. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  9750. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  9751. fi
  9752. fi
  9753. fi
  9754. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  9755. # socket/setsockopt and other routines are undefined under SCO ODT
  9756. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  9757. # on later versions), says Simon Leinen: it contains gethostby*
  9758. # variants that don't use the name server (or something). -lsocket
  9759. # must be given before -lnsl if both are needed. We assume that
  9760. # if connect needs -lnsl, so does gethostbyname.
  9761. echo "$as_me:$LINENO: checking for connect" >&5
  9762. echo $ECHO_N "checking for connect... $ECHO_C" >&6
  9763. if test "${ac_cv_func_connect+set}" = set; then
  9764. echo $ECHO_N "(cached) $ECHO_C" >&6
  9765. else
  9766. cat >conftest.$ac_ext <<_ACEOF
  9767. /* confdefs.h. */
  9768. _ACEOF
  9769. cat confdefs.h >>conftest.$ac_ext
  9770. cat >>conftest.$ac_ext <<_ACEOF
  9771. /* end confdefs.h. */
  9772. /* Define connect to an innocuous variant, in case <limits.h> declares connect.
  9773. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9774. #define connect innocuous_connect
  9775. /* System header to define __stub macros and hopefully few prototypes,
  9776. which can conflict with char connect (); below.
  9777. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9778. <limits.h> exists even on freestanding compilers. */
  9779. #ifdef __STDC__
  9780. # include <limits.h>
  9781. #else
  9782. # include <assert.h>
  9783. #endif
  9784. #undef connect
  9785. /* Override any gcc2 internal prototype to avoid an error. */
  9786. #ifdef __cplusplus
  9787. extern "C"
  9788. {
  9789. #endif
  9790. /* We use char because int might match the return type of a gcc2
  9791. builtin and then its argument prototype would still apply. */
  9792. char connect ();
  9793. /* The GNU C library defines this for functions which it implements
  9794. to always fail with ENOSYS. Some functions are actually named
  9795. something starting with __ and the normal name is an alias. */
  9796. #if defined (__stub_connect) || defined (__stub___connect)
  9797. choke me
  9798. #else
  9799. char (*f) () = connect;
  9800. #endif
  9801. #ifdef __cplusplus
  9802. }
  9803. #endif
  9804. int
  9805. main ()
  9806. {
  9807. return f != connect;
  9808. ;
  9809. return 0;
  9810. }
  9811. _ACEOF
  9812. rm -f conftest.$ac_objext conftest$ac_exeext
  9813. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9814. (eval $ac_link) 2>conftest.er1
  9815. ac_status=$?
  9816. grep -v '^ *+' conftest.er1 >conftest.err
  9817. rm -f conftest.er1
  9818. cat conftest.err >&5
  9819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9820. (exit $ac_status); } &&
  9821. { ac_try='test -z "$ac_c_werror_flag"
  9822. || test ! -s conftest.err'
  9823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9824. (eval $ac_try) 2>&5
  9825. ac_status=$?
  9826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9827. (exit $ac_status); }; } &&
  9828. { ac_try='test -s conftest$ac_exeext'
  9829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9830. (eval $ac_try) 2>&5
  9831. ac_status=$?
  9832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9833. (exit $ac_status); }; }; then
  9834. ac_cv_func_connect=yes
  9835. else
  9836. echo "$as_me: failed program was:" >&5
  9837. sed 's/^/| /' conftest.$ac_ext >&5
  9838. ac_cv_func_connect=no
  9839. fi
  9840. rm -f conftest.err conftest.$ac_objext \
  9841. conftest$ac_exeext conftest.$ac_ext
  9842. fi
  9843. echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  9844. echo "${ECHO_T}$ac_cv_func_connect" >&6
  9845. if test $ac_cv_func_connect = no; then
  9846. echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  9847. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  9848. if test "${ac_cv_lib_socket_connect+set}" = set; then
  9849. echo $ECHO_N "(cached) $ECHO_C" >&6
  9850. else
  9851. ac_check_lib_save_LIBS=$LIBS
  9852. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  9853. cat >conftest.$ac_ext <<_ACEOF
  9854. /* confdefs.h. */
  9855. _ACEOF
  9856. cat confdefs.h >>conftest.$ac_ext
  9857. cat >>conftest.$ac_ext <<_ACEOF
  9858. /* end confdefs.h. */
  9859. /* Override any gcc2 internal prototype to avoid an error. */
  9860. #ifdef __cplusplus
  9861. extern "C"
  9862. #endif
  9863. /* We use char because int might match the return type of a gcc2
  9864. builtin and then its argument prototype would still apply. */
  9865. char connect ();
  9866. int
  9867. main ()
  9868. {
  9869. connect ();
  9870. ;
  9871. return 0;
  9872. }
  9873. _ACEOF
  9874. rm -f conftest.$ac_objext conftest$ac_exeext
  9875. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9876. (eval $ac_link) 2>conftest.er1
  9877. ac_status=$?
  9878. grep -v '^ *+' conftest.er1 >conftest.err
  9879. rm -f conftest.er1
  9880. cat conftest.err >&5
  9881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9882. (exit $ac_status); } &&
  9883. { ac_try='test -z "$ac_c_werror_flag"
  9884. || test ! -s conftest.err'
  9885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9886. (eval $ac_try) 2>&5
  9887. ac_status=$?
  9888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9889. (exit $ac_status); }; } &&
  9890. { ac_try='test -s conftest$ac_exeext'
  9891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9892. (eval $ac_try) 2>&5
  9893. ac_status=$?
  9894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9895. (exit $ac_status); }; }; then
  9896. ac_cv_lib_socket_connect=yes
  9897. else
  9898. echo "$as_me: failed program was:" >&5
  9899. sed 's/^/| /' conftest.$ac_ext >&5
  9900. ac_cv_lib_socket_connect=no
  9901. fi
  9902. rm -f conftest.err conftest.$ac_objext \
  9903. conftest$ac_exeext conftest.$ac_ext
  9904. LIBS=$ac_check_lib_save_LIBS
  9905. fi
  9906. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  9907. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  9908. if test $ac_cv_lib_socket_connect = yes; then
  9909. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  9910. fi
  9911. fi
  9912. # Guillermo Gomez says -lposix is necessary on A/UX.
  9913. echo "$as_me:$LINENO: checking for remove" >&5
  9914. echo $ECHO_N "checking for remove... $ECHO_C" >&6
  9915. if test "${ac_cv_func_remove+set}" = set; then
  9916. echo $ECHO_N "(cached) $ECHO_C" >&6
  9917. else
  9918. cat >conftest.$ac_ext <<_ACEOF
  9919. /* confdefs.h. */
  9920. _ACEOF
  9921. cat confdefs.h >>conftest.$ac_ext
  9922. cat >>conftest.$ac_ext <<_ACEOF
  9923. /* end confdefs.h. */
  9924. /* Define remove to an innocuous variant, in case <limits.h> declares remove.
  9925. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9926. #define remove innocuous_remove
  9927. /* System header to define __stub macros and hopefully few prototypes,
  9928. which can conflict with char remove (); below.
  9929. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9930. <limits.h> exists even on freestanding compilers. */
  9931. #ifdef __STDC__
  9932. # include <limits.h>
  9933. #else
  9934. # include <assert.h>
  9935. #endif
  9936. #undef remove
  9937. /* Override any gcc2 internal prototype to avoid an error. */
  9938. #ifdef __cplusplus
  9939. extern "C"
  9940. {
  9941. #endif
  9942. /* We use char because int might match the return type of a gcc2
  9943. builtin and then its argument prototype would still apply. */
  9944. char remove ();
  9945. /* The GNU C library defines this for functions which it implements
  9946. to always fail with ENOSYS. Some functions are actually named
  9947. something starting with __ and the normal name is an alias. */
  9948. #if defined (__stub_remove) || defined (__stub___remove)
  9949. choke me
  9950. #else
  9951. char (*f) () = remove;
  9952. #endif
  9953. #ifdef __cplusplus
  9954. }
  9955. #endif
  9956. int
  9957. main ()
  9958. {
  9959. return f != remove;
  9960. ;
  9961. return 0;
  9962. }
  9963. _ACEOF
  9964. rm -f conftest.$ac_objext conftest$ac_exeext
  9965. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9966. (eval $ac_link) 2>conftest.er1
  9967. ac_status=$?
  9968. grep -v '^ *+' conftest.er1 >conftest.err
  9969. rm -f conftest.er1
  9970. cat conftest.err >&5
  9971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9972. (exit $ac_status); } &&
  9973. { ac_try='test -z "$ac_c_werror_flag"
  9974. || test ! -s conftest.err'
  9975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9976. (eval $ac_try) 2>&5
  9977. ac_status=$?
  9978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9979. (exit $ac_status); }; } &&
  9980. { ac_try='test -s conftest$ac_exeext'
  9981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9982. (eval $ac_try) 2>&5
  9983. ac_status=$?
  9984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9985. (exit $ac_status); }; }; then
  9986. ac_cv_func_remove=yes
  9987. else
  9988. echo "$as_me: failed program was:" >&5
  9989. sed 's/^/| /' conftest.$ac_ext >&5
  9990. ac_cv_func_remove=no
  9991. fi
  9992. rm -f conftest.err conftest.$ac_objext \
  9993. conftest$ac_exeext conftest.$ac_ext
  9994. fi
  9995. echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  9996. echo "${ECHO_T}$ac_cv_func_remove" >&6
  9997. if test $ac_cv_func_remove = no; then
  9998. echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  9999. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
  10000. if test "${ac_cv_lib_posix_remove+set}" = set; then
  10001. echo $ECHO_N "(cached) $ECHO_C" >&6
  10002. else
  10003. ac_check_lib_save_LIBS=$LIBS
  10004. LIBS="-lposix $LIBS"
  10005. cat >conftest.$ac_ext <<_ACEOF
  10006. /* confdefs.h. */
  10007. _ACEOF
  10008. cat confdefs.h >>conftest.$ac_ext
  10009. cat >>conftest.$ac_ext <<_ACEOF
  10010. /* end confdefs.h. */
  10011. /* Override any gcc2 internal prototype to avoid an error. */
  10012. #ifdef __cplusplus
  10013. extern "C"
  10014. #endif
  10015. /* We use char because int might match the return type of a gcc2
  10016. builtin and then its argument prototype would still apply. */
  10017. char remove ();
  10018. int
  10019. main ()
  10020. {
  10021. remove ();
  10022. ;
  10023. return 0;
  10024. }
  10025. _ACEOF
  10026. rm -f conftest.$ac_objext conftest$ac_exeext
  10027. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10028. (eval $ac_link) 2>conftest.er1
  10029. ac_status=$?
  10030. grep -v '^ *+' conftest.er1 >conftest.err
  10031. rm -f conftest.er1
  10032. cat conftest.err >&5
  10033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10034. (exit $ac_status); } &&
  10035. { ac_try='test -z "$ac_c_werror_flag"
  10036. || test ! -s conftest.err'
  10037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10038. (eval $ac_try) 2>&5
  10039. ac_status=$?
  10040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10041. (exit $ac_status); }; } &&
  10042. { ac_try='test -s conftest$ac_exeext'
  10043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10044. (eval $ac_try) 2>&5
  10045. ac_status=$?
  10046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10047. (exit $ac_status); }; }; then
  10048. ac_cv_lib_posix_remove=yes
  10049. else
  10050. echo "$as_me: failed program was:" >&5
  10051. sed 's/^/| /' conftest.$ac_ext >&5
  10052. ac_cv_lib_posix_remove=no
  10053. fi
  10054. rm -f conftest.err conftest.$ac_objext \
  10055. conftest$ac_exeext conftest.$ac_ext
  10056. LIBS=$ac_check_lib_save_LIBS
  10057. fi
  10058. echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  10059. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
  10060. if test $ac_cv_lib_posix_remove = yes; then
  10061. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  10062. fi
  10063. fi
  10064. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  10065. echo "$as_me:$LINENO: checking for shmat" >&5
  10066. echo $ECHO_N "checking for shmat... $ECHO_C" >&6
  10067. if test "${ac_cv_func_shmat+set}" = set; then
  10068. echo $ECHO_N "(cached) $ECHO_C" >&6
  10069. else
  10070. cat >conftest.$ac_ext <<_ACEOF
  10071. /* confdefs.h. */
  10072. _ACEOF
  10073. cat confdefs.h >>conftest.$ac_ext
  10074. cat >>conftest.$ac_ext <<_ACEOF
  10075. /* end confdefs.h. */
  10076. /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
  10077. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10078. #define shmat innocuous_shmat
  10079. /* System header to define __stub macros and hopefully few prototypes,
  10080. which can conflict with char shmat (); below.
  10081. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10082. <limits.h> exists even on freestanding compilers. */
  10083. #ifdef __STDC__
  10084. # include <limits.h>
  10085. #else
  10086. # include <assert.h>
  10087. #endif
  10088. #undef shmat
  10089. /* Override any gcc2 internal prototype to avoid an error. */
  10090. #ifdef __cplusplus
  10091. extern "C"
  10092. {
  10093. #endif
  10094. /* We use char because int might match the return type of a gcc2
  10095. builtin and then its argument prototype would still apply. */
  10096. char shmat ();
  10097. /* The GNU C library defines this for functions which it implements
  10098. to always fail with ENOSYS. Some functions are actually named
  10099. something starting with __ and the normal name is an alias. */
  10100. #if defined (__stub_shmat) || defined (__stub___shmat)
  10101. choke me
  10102. #else
  10103. char (*f) () = shmat;
  10104. #endif
  10105. #ifdef __cplusplus
  10106. }
  10107. #endif
  10108. int
  10109. main ()
  10110. {
  10111. return f != shmat;
  10112. ;
  10113. return 0;
  10114. }
  10115. _ACEOF
  10116. rm -f conftest.$ac_objext conftest$ac_exeext
  10117. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10118. (eval $ac_link) 2>conftest.er1
  10119. ac_status=$?
  10120. grep -v '^ *+' conftest.er1 >conftest.err
  10121. rm -f conftest.er1
  10122. cat conftest.err >&5
  10123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10124. (exit $ac_status); } &&
  10125. { ac_try='test -z "$ac_c_werror_flag"
  10126. || test ! -s conftest.err'
  10127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10128. (eval $ac_try) 2>&5
  10129. ac_status=$?
  10130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10131. (exit $ac_status); }; } &&
  10132. { ac_try='test -s conftest$ac_exeext'
  10133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10134. (eval $ac_try) 2>&5
  10135. ac_status=$?
  10136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10137. (exit $ac_status); }; }; then
  10138. ac_cv_func_shmat=yes
  10139. else
  10140. echo "$as_me: failed program was:" >&5
  10141. sed 's/^/| /' conftest.$ac_ext >&5
  10142. ac_cv_func_shmat=no
  10143. fi
  10144. rm -f conftest.err conftest.$ac_objext \
  10145. conftest$ac_exeext conftest.$ac_ext
  10146. fi
  10147. echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  10148. echo "${ECHO_T}$ac_cv_func_shmat" >&6
  10149. if test $ac_cv_func_shmat = no; then
  10150. echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  10151. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
  10152. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  10153. echo $ECHO_N "(cached) $ECHO_C" >&6
  10154. else
  10155. ac_check_lib_save_LIBS=$LIBS
  10156. LIBS="-lipc $LIBS"
  10157. cat >conftest.$ac_ext <<_ACEOF
  10158. /* confdefs.h. */
  10159. _ACEOF
  10160. cat confdefs.h >>conftest.$ac_ext
  10161. cat >>conftest.$ac_ext <<_ACEOF
  10162. /* end confdefs.h. */
  10163. /* Override any gcc2 internal prototype to avoid an error. */
  10164. #ifdef __cplusplus
  10165. extern "C"
  10166. #endif
  10167. /* We use char because int might match the return type of a gcc2
  10168. builtin and then its argument prototype would still apply. */
  10169. char shmat ();
  10170. int
  10171. main ()
  10172. {
  10173. shmat ();
  10174. ;
  10175. return 0;
  10176. }
  10177. _ACEOF
  10178. rm -f conftest.$ac_objext conftest$ac_exeext
  10179. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10180. (eval $ac_link) 2>conftest.er1
  10181. ac_status=$?
  10182. grep -v '^ *+' conftest.er1 >conftest.err
  10183. rm -f conftest.er1
  10184. cat conftest.err >&5
  10185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10186. (exit $ac_status); } &&
  10187. { ac_try='test -z "$ac_c_werror_flag"
  10188. || test ! -s conftest.err'
  10189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10190. (eval $ac_try) 2>&5
  10191. ac_status=$?
  10192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10193. (exit $ac_status); }; } &&
  10194. { ac_try='test -s conftest$ac_exeext'
  10195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10196. (eval $ac_try) 2>&5
  10197. ac_status=$?
  10198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10199. (exit $ac_status); }; }; then
  10200. ac_cv_lib_ipc_shmat=yes
  10201. else
  10202. echo "$as_me: failed program was:" >&5
  10203. sed 's/^/| /' conftest.$ac_ext >&5
  10204. ac_cv_lib_ipc_shmat=no
  10205. fi
  10206. rm -f conftest.err conftest.$ac_objext \
  10207. conftest$ac_exeext conftest.$ac_ext
  10208. LIBS=$ac_check_lib_save_LIBS
  10209. fi
  10210. echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  10211. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
  10212. if test $ac_cv_lib_ipc_shmat = yes; then
  10213. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  10214. fi
  10215. fi
  10216. fi
  10217. # Check for libraries that X11R6 Xt/Xaw programs need.
  10218. ac_save_LDFLAGS=$LDFLAGS
  10219. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  10220. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  10221. # check for ICE first), but we must link in the order -lSM -lICE or
  10222. # we get undefined symbols. So assume we have SM if we have ICE.
  10223. # These have to be linked with before -lX11, unlike the other
  10224. # libraries we check for below, so use a different variable.
  10225. # John Interrante, Karl Berry
  10226. echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  10227. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
  10228. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  10229. echo $ECHO_N "(cached) $ECHO_C" >&6
  10230. else
  10231. ac_check_lib_save_LIBS=$LIBS
  10232. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  10233. cat >conftest.$ac_ext <<_ACEOF
  10234. /* confdefs.h. */
  10235. _ACEOF
  10236. cat confdefs.h >>conftest.$ac_ext
  10237. cat >>conftest.$ac_ext <<_ACEOF
  10238. /* end confdefs.h. */
  10239. /* Override any gcc2 internal prototype to avoid an error. */
  10240. #ifdef __cplusplus
  10241. extern "C"
  10242. #endif
  10243. /* We use char because int might match the return type of a gcc2
  10244. builtin and then its argument prototype would still apply. */
  10245. char IceConnectionNumber ();
  10246. int
  10247. main ()
  10248. {
  10249. IceConnectionNumber ();
  10250. ;
  10251. return 0;
  10252. }
  10253. _ACEOF
  10254. rm -f conftest.$ac_objext conftest$ac_exeext
  10255. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10256. (eval $ac_link) 2>conftest.er1
  10257. ac_status=$?
  10258. grep -v '^ *+' conftest.er1 >conftest.err
  10259. rm -f conftest.er1
  10260. cat conftest.err >&5
  10261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10262. (exit $ac_status); } &&
  10263. { ac_try='test -z "$ac_c_werror_flag"
  10264. || test ! -s conftest.err'
  10265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10266. (eval $ac_try) 2>&5
  10267. ac_status=$?
  10268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10269. (exit $ac_status); }; } &&
  10270. { ac_try='test -s conftest$ac_exeext'
  10271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10272. (eval $ac_try) 2>&5
  10273. ac_status=$?
  10274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10275. (exit $ac_status); }; }; then
  10276. ac_cv_lib_ICE_IceConnectionNumber=yes
  10277. else
  10278. echo "$as_me: failed program was:" >&5
  10279. sed 's/^/| /' conftest.$ac_ext >&5
  10280. ac_cv_lib_ICE_IceConnectionNumber=no
  10281. fi
  10282. rm -f conftest.err conftest.$ac_objext \
  10283. conftest$ac_exeext conftest.$ac_ext
  10284. LIBS=$ac_check_lib_save_LIBS
  10285. fi
  10286. echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  10287. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
  10288. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  10289. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  10290. fi
  10291. LDFLAGS=$ac_save_LDFLAGS
  10292. fi
  10293. if test "$no_x" = yes; then
  10294. { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
  10295. echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
  10296. { (exit 1); exit 1; }; }
  10297. fi
  10298. echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
  10299. echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
  10300. if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
  10301. echo $ECHO_N "(cached) $ECHO_C" >&6
  10302. else
  10303. ac_check_lib_save_LIBS=$LIBS
  10304. LIBS="-lXtst ${X_LIBS} $LIBS"
  10305. cat >conftest.$ac_ext <<_ACEOF
  10306. /* confdefs.h. */
  10307. _ACEOF
  10308. cat confdefs.h >>conftest.$ac_ext
  10309. cat >>conftest.$ac_ext <<_ACEOF
  10310. /* end confdefs.h. */
  10311. /* Override any gcc2 internal prototype to avoid an error. */
  10312. #ifdef __cplusplus
  10313. extern "C"
  10314. #endif
  10315. /* We use char because int might match the return type of a gcc2
  10316. builtin and then its argument prototype would still apply. */
  10317. char XTestQueryExtension ();
  10318. int
  10319. main ()
  10320. {
  10321. XTestQueryExtension ();
  10322. ;
  10323. return 0;
  10324. }
  10325. _ACEOF
  10326. rm -f conftest.$ac_objext conftest$ac_exeext
  10327. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10328. (eval $ac_link) 2>conftest.er1
  10329. ac_status=$?
  10330. grep -v '^ *+' conftest.er1 >conftest.err
  10331. rm -f conftest.er1
  10332. cat conftest.err >&5
  10333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10334. (exit $ac_status); } &&
  10335. { ac_try='test -z "$ac_c_werror_flag"
  10336. || test ! -s conftest.err'
  10337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10338. (eval $ac_try) 2>&5
  10339. ac_status=$?
  10340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10341. (exit $ac_status); }; } &&
  10342. { ac_try='test -s conftest$ac_exeext'
  10343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10344. (eval $ac_try) 2>&5
  10345. ac_status=$?
  10346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10347. (exit $ac_status); }; }; then
  10348. ac_cv_lib_Xtst_XTestQueryExtension=yes
  10349. else
  10350. echo "$as_me: failed program was:" >&5
  10351. sed 's/^/| /' conftest.$ac_ext >&5
  10352. ac_cv_lib_Xtst_XTestQueryExtension=no
  10353. fi
  10354. rm -f conftest.err conftest.$ac_objext \
  10355. conftest$ac_exeext conftest.$ac_ext
  10356. LIBS=$ac_check_lib_save_LIBS
  10357. fi
  10358. echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
  10359. echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
  10360. if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
  10361. XTEST_LIBS="$XTEST_LIBS -lX11 -lXtst"
  10362. else
  10363. { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
  10364. echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
  10365. { (exit 1); exit 1; }; }
  10366. fi
  10367. succeeded=no
  10368. if test -z "$PKG_CONFIG"; then
  10369. # Extract the first word of "pkg-config", so it can be a program name with args.
  10370. set dummy pkg-config; ac_word=$2
  10371. echo "$as_me:$LINENO: checking for $ac_word" >&5
  10372. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10373. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  10374. echo $ECHO_N "(cached) $ECHO_C" >&6
  10375. else
  10376. case $PKG_CONFIG in
  10377. [\\/]* | ?:[\\/]*)
  10378. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10379. ;;
  10380. *)
  10381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10382. for as_dir in $PATH
  10383. do
  10384. IFS=$as_save_IFS
  10385. test -z "$as_dir" && as_dir=.
  10386. for ac_exec_ext in '' $ac_executable_extensions; do
  10387. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10388. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10389. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10390. break 2
  10391. fi
  10392. done
  10393. done
  10394. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10395. ;;
  10396. esac
  10397. fi
  10398. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10399. if test -n "$PKG_CONFIG"; then
  10400. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  10401. echo "${ECHO_T}$PKG_CONFIG" >&6
  10402. else
  10403. echo "$as_me:$LINENO: result: no" >&5
  10404. echo "${ECHO_T}no" >&6
  10405. fi
  10406. fi
  10407. if test "$PKG_CONFIG" = "no" ; then
  10408. echo "*** The pkg-config script could not be found. Make sure it is"
  10409. echo "*** in your path, or set the PKG_CONFIG environment variable"
  10410. echo "*** to the full path to pkg-config."
  10411. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  10412. else
  10413. PKG_CONFIG_MIN_VERSION=0.9.0
  10414. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10415. echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
  10416. echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
  10417. if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
  10418. echo "$as_me:$LINENO: result: yes" >&5
  10419. echo "${ECHO_T}yes" >&6
  10420. succeeded=yes
  10421. echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
  10422. echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
  10423. GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
  10424. echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
  10425. echo "${ECHO_T}$GTK_CFLAGS" >&6
  10426. echo "$as_me:$LINENO: checking GTK_LIBS" >&5
  10427. echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
  10428. GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
  10429. echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
  10430. echo "${ECHO_T}$GTK_LIBS" >&6
  10431. else
  10432. GTK_CFLAGS=""
  10433. GTK_LIBS=""
  10434. ## If we have a custom action on failure, don't print errors, but
  10435. ## do set a variable so people can do so.
  10436. GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
  10437. echo $GTK_PKG_ERRORS
  10438. fi
  10439. else
  10440. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10441. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10442. fi
  10443. fi
  10444. if test $succeeded = yes; then
  10445. :
  10446. else
  10447. { { 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
  10448. 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;}
  10449. { (exit 1); exit 1; }; }
  10450. fi
  10451. succeeded=no
  10452. if test -z "$PKG_CONFIG"; then
  10453. # Extract the first word of "pkg-config", so it can be a program name with args.
  10454. set dummy pkg-config; ac_word=$2
  10455. echo "$as_me:$LINENO: checking for $ac_word" >&5
  10456. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10457. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  10458. echo $ECHO_N "(cached) $ECHO_C" >&6
  10459. else
  10460. case $PKG_CONFIG in
  10461. [\\/]* | ?:[\\/]*)
  10462. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10463. ;;
  10464. *)
  10465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10466. for as_dir in $PATH
  10467. do
  10468. IFS=$as_save_IFS
  10469. test -z "$as_dir" && as_dir=.
  10470. for ac_exec_ext in '' $ac_executable_extensions; do
  10471. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10472. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10473. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10474. break 2
  10475. fi
  10476. done
  10477. done
  10478. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10479. ;;
  10480. esac
  10481. fi
  10482. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10483. if test -n "$PKG_CONFIG"; then
  10484. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  10485. echo "${ECHO_T}$PKG_CONFIG" >&6
  10486. else
  10487. echo "$as_me:$LINENO: result: no" >&5
  10488. echo "${ECHO_T}no" >&6
  10489. fi
  10490. fi
  10491. if test "$PKG_CONFIG" = "no" ; then
  10492. echo "*** The pkg-config script could not be found. Make sure it is"
  10493. echo "*** in your path, or set the PKG_CONFIG environment variable"
  10494. echo "*** to the full path to pkg-config."
  10495. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  10496. else
  10497. PKG_CONFIG_MIN_VERSION=0.9.0
  10498. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10499. echo "$as_me:$LINENO: checking for freetype2" >&5
  10500. echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
  10501. if $PKG_CONFIG --exists "freetype2" ; then
  10502. echo "$as_me:$LINENO: result: yes" >&5
  10503. echo "${ECHO_T}yes" >&6
  10504. succeeded=yes
  10505. echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
  10506. echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6
  10507. FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
  10508. echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
  10509. echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6
  10510. echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
  10511. echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6
  10512. FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
  10513. echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
  10514. echo "${ECHO_T}$FREETYPE2_LIBS" >&6
  10515. else
  10516. FREETYPE2_CFLAGS=""
  10517. FREETYPE2_LIBS=""
  10518. ## If we have a custom action on failure, don't print errors, but
  10519. ## do set a variable so people can do so.
  10520. FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
  10521. echo $FREETYPE2_PKG_ERRORS
  10522. fi
  10523. else
  10524. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10525. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10526. fi
  10527. fi
  10528. if test $succeeded = yes; then
  10529. :
  10530. else
  10531. { { 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
  10532. 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;}
  10533. { (exit 1); exit 1; }; }
  10534. fi
  10535. succeeded=no
  10536. if test -z "$PKG_CONFIG"; then
  10537. # Extract the first word of "pkg-config", so it can be a program name with args.
  10538. set dummy pkg-config; ac_word=$2
  10539. echo "$as_me:$LINENO: checking for $ac_word" >&5
  10540. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10541. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  10542. echo $ECHO_N "(cached) $ECHO_C" >&6
  10543. else
  10544. case $PKG_CONFIG in
  10545. [\\/]* | ?:[\\/]*)
  10546. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10547. ;;
  10548. *)
  10549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10550. for as_dir in $PATH
  10551. do
  10552. IFS=$as_save_IFS
  10553. test -z "$as_dir" && as_dir=.
  10554. for ac_exec_ext in '' $ac_executable_extensions; do
  10555. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10556. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10557. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10558. break 2
  10559. fi
  10560. done
  10561. done
  10562. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10563. ;;
  10564. esac
  10565. fi
  10566. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10567. if test -n "$PKG_CONFIG"; then
  10568. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  10569. echo "${ECHO_T}$PKG_CONFIG" >&6
  10570. else
  10571. echo "$as_me:$LINENO: result: no" >&5
  10572. echo "${ECHO_T}no" >&6
  10573. fi
  10574. fi
  10575. if test "$PKG_CONFIG" = "no" ; then
  10576. echo "*** The pkg-config script could not be found. Make sure it is"
  10577. echo "*** in your path, or set the PKG_CONFIG environment variable"
  10578. echo "*** to the full path to pkg-config."
  10579. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  10580. else
  10581. PKG_CONFIG_MIN_VERSION=0.9.0
  10582. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10583. echo "$as_me:$LINENO: checking for pangoft2" >&5
  10584. echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
  10585. if $PKG_CONFIG --exists "pangoft2" ; then
  10586. echo "$as_me:$LINENO: result: yes" >&5
  10587. echo "${ECHO_T}yes" >&6
  10588. succeeded=yes
  10589. echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
  10590. echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
  10591. PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
  10592. echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
  10593. echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
  10594. echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
  10595. echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
  10596. PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
  10597. echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
  10598. echo "${ECHO_T}$PANGOFT2_LIBS" >&6
  10599. else
  10600. PANGOFT2_CFLAGS=""
  10601. PANGOFT2_LIBS=""
  10602. ## If we have a custom action on failure, don't print errors, but
  10603. ## do set a variable so people can do so.
  10604. PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
  10605. echo $PANGOFT2_PKG_ERRORS
  10606. fi
  10607. else
  10608. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10609. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10610. fi
  10611. fi
  10612. if test $succeeded = yes; then
  10613. :
  10614. else
  10615. { { 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
  10616. 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;}
  10617. { (exit 1); exit 1; }; }
  10618. fi
  10619. echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
  10620. echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
  10621. if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
  10622. echo $ECHO_N "(cached) $ECHO_C" >&6
  10623. else
  10624. ac_check_lib_save_LIBS=$LIBS
  10625. LIBS="-lXrender ${X_LIBS} $LIBS"
  10626. cat >conftest.$ac_ext <<_ACEOF
  10627. /* confdefs.h. */
  10628. _ACEOF
  10629. cat confdefs.h >>conftest.$ac_ext
  10630. cat >>conftest.$ac_ext <<_ACEOF
  10631. /* end confdefs.h. */
  10632. /* Override any gcc2 internal prototype to avoid an error. */
  10633. #ifdef __cplusplus
  10634. extern "C"
  10635. #endif
  10636. /* We use char because int might match the return type of a gcc2
  10637. builtin and then its argument prototype would still apply. */
  10638. char XRenderQueryExtension ();
  10639. int
  10640. main ()
  10641. {
  10642. XRenderQueryExtension ();
  10643. ;
  10644. return 0;
  10645. }
  10646. _ACEOF
  10647. rm -f conftest.$ac_objext conftest$ac_exeext
  10648. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10649. (eval $ac_link) 2>conftest.er1
  10650. ac_status=$?
  10651. grep -v '^ *+' conftest.er1 >conftest.err
  10652. rm -f conftest.er1
  10653. cat conftest.err >&5
  10654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10655. (exit $ac_status); } &&
  10656. { ac_try='test -z "$ac_c_werror_flag"
  10657. || test ! -s conftest.err'
  10658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10659. (eval $ac_try) 2>&5
  10660. ac_status=$?
  10661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10662. (exit $ac_status); }; } &&
  10663. { ac_try='test -s conftest$ac_exeext'
  10664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10665. (eval $ac_try) 2>&5
  10666. ac_status=$?
  10667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10668. (exit $ac_status); }; }; then
  10669. ac_cv_lib_Xrender_XRenderQueryExtension=yes
  10670. else
  10671. echo "$as_me: failed program was:" >&5
  10672. sed 's/^/| /' conftest.$ac_ext >&5
  10673. ac_cv_lib_Xrender_XRenderQueryExtension=no
  10674. fi
  10675. rm -f conftest.err conftest.$ac_objext \
  10676. conftest$ac_exeext conftest.$ac_ext
  10677. LIBS=$ac_check_lib_save_LIBS
  10678. fi
  10679. echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
  10680. echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
  10681. if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
  10682. cat >>confdefs.h <<\_ACEOF
  10683. #define HAVE_XRENDER 1
  10684. _ACEOF
  10685. X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
  10686. else
  10687. true
  10688. fi
  10689. echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
  10690. echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6
  10691. if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
  10692. echo $ECHO_N "(cached) $ECHO_C" >&6
  10693. else
  10694. ac_check_lib_save_LIBS=$LIBS
  10695. LIBS="-lXrandr ${X_LIBS} $LIBS"
  10696. cat >conftest.$ac_ext <<_ACEOF
  10697. /* confdefs.h. */
  10698. _ACEOF
  10699. cat confdefs.h >>conftest.$ac_ext
  10700. cat >>conftest.$ac_ext <<_ACEOF
  10701. /* end confdefs.h. */
  10702. /* Override any gcc2 internal prototype to avoid an error. */
  10703. #ifdef __cplusplus
  10704. extern "C"
  10705. #endif
  10706. /* We use char because int might match the return type of a gcc2
  10707. builtin and then its argument prototype would still apply. */
  10708. char XRRQueryExtension ();
  10709. int
  10710. main ()
  10711. {
  10712. XRRQueryExtension ();
  10713. ;
  10714. return 0;
  10715. }
  10716. _ACEOF
  10717. rm -f conftest.$ac_objext conftest$ac_exeext
  10718. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10719. (eval $ac_link) 2>conftest.er1
  10720. ac_status=$?
  10721. grep -v '^ *+' conftest.er1 >conftest.err
  10722. rm -f conftest.er1
  10723. cat conftest.err >&5
  10724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10725. (exit $ac_status); } &&
  10726. { ac_try='test -z "$ac_c_werror_flag"
  10727. || test ! -s conftest.err'
  10728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10729. (eval $ac_try) 2>&5
  10730. ac_status=$?
  10731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10732. (exit $ac_status); }; } &&
  10733. { ac_try='test -s conftest$ac_exeext'
  10734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10735. (eval $ac_try) 2>&5
  10736. ac_status=$?
  10737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10738. (exit $ac_status); }; }; then
  10739. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  10740. else
  10741. echo "$as_me: failed program was:" >&5
  10742. sed 's/^/| /' conftest.$ac_ext >&5
  10743. ac_cv_lib_Xrandr_XRRQueryExtension=no
  10744. fi
  10745. rm -f conftest.err conftest.$ac_objext \
  10746. conftest$ac_exeext conftest.$ac_ext
  10747. LIBS=$ac_check_lib_save_LIBS
  10748. fi
  10749. echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  10750. echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6
  10751. if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
  10752. cat >>confdefs.h <<\_ACEOF
  10753. #define HAVE_XRANDR 1
  10754. _ACEOF
  10755. X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
  10756. else
  10757. true
  10758. fi
  10759. fi
  10760. if test "x${COMPILE_GCONF_PEER}" = xyes; then
  10761. succeeded=no
  10762. if test -z "$PKG_CONFIG"; then
  10763. # Extract the first word of "pkg-config", so it can be a program name with args.
  10764. set dummy pkg-config; ac_word=$2
  10765. echo "$as_me:$LINENO: checking for $ac_word" >&5
  10766. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10767. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  10768. echo $ECHO_N "(cached) $ECHO_C" >&6
  10769. else
  10770. case $PKG_CONFIG in
  10771. [\\/]* | ?:[\\/]*)
  10772. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10773. ;;
  10774. *)
  10775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10776. for as_dir in $PATH
  10777. do
  10778. IFS=$as_save_IFS
  10779. test -z "$as_dir" && as_dir=.
  10780. for ac_exec_ext in '' $ac_executable_extensions; do
  10781. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10782. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10783. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10784. break 2
  10785. fi
  10786. done
  10787. done
  10788. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10789. ;;
  10790. esac
  10791. fi
  10792. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10793. if test -n "$PKG_CONFIG"; then
  10794. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  10795. echo "${ECHO_T}$PKG_CONFIG" >&6
  10796. else
  10797. echo "$as_me:$LINENO: result: no" >&5
  10798. echo "${ECHO_T}no" >&6
  10799. fi
  10800. fi
  10801. if test "$PKG_CONFIG" = "no" ; then
  10802. echo "*** The pkg-config script could not be found. Make sure it is"
  10803. echo "*** in your path, or set the PKG_CONFIG environment variable"
  10804. echo "*** to the full path to pkg-config."
  10805. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  10806. else
  10807. PKG_CONFIG_MIN_VERSION=0.9.0
  10808. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10809. echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.11.2" >&5
  10810. echo $ECHO_N "checking for gconf-2.0 >= 2.11.2... $ECHO_C" >&6
  10811. if $PKG_CONFIG --exists "gconf-2.0 >= 2.11.2" ; then
  10812. echo "$as_me:$LINENO: result: yes" >&5
  10813. echo "${ECHO_T}yes" >&6
  10814. succeeded=yes
  10815. echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
  10816. echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
  10817. GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.11.2"`
  10818. echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
  10819. echo "${ECHO_T}$GCONF_CFLAGS" >&6
  10820. echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
  10821. echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
  10822. GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.11.2"`
  10823. echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
  10824. echo "${ECHO_T}$GCONF_LIBS" >&6
  10825. else
  10826. GCONF_CFLAGS=""
  10827. GCONF_LIBS=""
  10828. ## If we have a custom action on failure, don't print errors, but
  10829. ## do set a variable so people can do so.
  10830. GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.11.2"`
  10831. echo $GCONF_PKG_ERRORS
  10832. fi
  10833. else
  10834. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10835. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10836. fi
  10837. fi
  10838. if test $succeeded = yes; then
  10839. :
  10840. else
  10841. { { 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
  10842. 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;}
  10843. { (exit 1); exit 1; }; }
  10844. fi
  10845. succeeded=no
  10846. if test -z "$PKG_CONFIG"; then
  10847. # Extract the first word of "pkg-config", so it can be a program name with args.
  10848. set dummy pkg-config; ac_word=$2
  10849. echo "$as_me:$LINENO: checking for $ac_word" >&5
  10850. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10851. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  10852. echo $ECHO_N "(cached) $ECHO_C" >&6
  10853. else
  10854. case $PKG_CONFIG in
  10855. [\\/]* | ?:[\\/]*)
  10856. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10857. ;;
  10858. *)
  10859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10860. for as_dir in $PATH
  10861. do
  10862. IFS=$as_save_IFS
  10863. test -z "$as_dir" && as_dir=.
  10864. for ac_exec_ext in '' $ac_executable_extensions; do
  10865. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10866. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10867. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10868. break 2
  10869. fi
  10870. done
  10871. done
  10872. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10873. ;;
  10874. esac
  10875. fi
  10876. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10877. if test -n "$PKG_CONFIG"; then
  10878. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  10879. echo "${ECHO_T}$PKG_CONFIG" >&6
  10880. else
  10881. echo "$as_me:$LINENO: result: no" >&5
  10882. echo "${ECHO_T}no" >&6
  10883. fi
  10884. fi
  10885. if test "$PKG_CONFIG" = "no" ; then
  10886. echo "*** The pkg-config script could not be found. Make sure it is"
  10887. echo "*** in your path, or set the PKG_CONFIG environment variable"
  10888. echo "*** to the full path to pkg-config."
  10889. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  10890. else
  10891. PKG_CONFIG_MIN_VERSION=0.9.0
  10892. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10893. echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
  10894. echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6
  10895. if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
  10896. echo "$as_me:$LINENO: result: yes" >&5
  10897. echo "${ECHO_T}yes" >&6
  10898. succeeded=yes
  10899. echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
  10900. echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
  10901. GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
  10902. echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
  10903. echo "${ECHO_T}$GDK_CFLAGS" >&6
  10904. echo "$as_me:$LINENO: checking GDK_LIBS" >&5
  10905. echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
  10906. GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
  10907. echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
  10908. echo "${ECHO_T}$GDK_LIBS" >&6
  10909. else
  10910. GDK_CFLAGS=""
  10911. GDK_LIBS=""
  10912. ## If we have a custom action on failure, don't print errors, but
  10913. ## do set a variable so people can do so.
  10914. GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
  10915. echo $GDK_PKG_ERRORS
  10916. fi
  10917. else
  10918. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10919. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10920. fi
  10921. fi
  10922. if test $succeeded = yes; then
  10923. :
  10924. else
  10925. { { 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
  10926. 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;}
  10927. { (exit 1); exit 1; }; }
  10928. fi
  10929. USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
  10930. if test "$USE_GCONF_PREFS_PEER" = ""; then
  10931. DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
  10932. fi
  10933. fi
  10934. if test "x${COMPILE_QT_PEER}" = xyes; then
  10935. succeeded=no
  10936. if test -z "$PKG_CONFIG"; then
  10937. # Extract the first word of "pkg-config", so it can be a program name with args.
  10938. set dummy pkg-config; ac_word=$2
  10939. echo "$as_me:$LINENO: checking for $ac_word" >&5
  10940. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10941. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  10942. echo $ECHO_N "(cached) $ECHO_C" >&6
  10943. else
  10944. case $PKG_CONFIG in
  10945. [\\/]* | ?:[\\/]*)
  10946. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10947. ;;
  10948. *)
  10949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10950. for as_dir in $PATH
  10951. do
  10952. IFS=$as_save_IFS
  10953. test -z "$as_dir" && as_dir=.
  10954. for ac_exec_ext in '' $ac_executable_extensions; do
  10955. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10956. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10957. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10958. break 2
  10959. fi
  10960. done
  10961. done
  10962. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10963. ;;
  10964. esac
  10965. fi
  10966. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10967. if test -n "$PKG_CONFIG"; then
  10968. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  10969. echo "${ECHO_T}$PKG_CONFIG" >&6
  10970. else
  10971. echo "$as_me:$LINENO: result: no" >&5
  10972. echo "${ECHO_T}no" >&6
  10973. fi
  10974. fi
  10975. if test "$PKG_CONFIG" = "no" ; then
  10976. echo "*** The pkg-config script could not be found. Make sure it is"
  10977. echo "*** in your path, or set the PKG_CONFIG environment variable"
  10978. echo "*** to the full path to pkg-config."
  10979. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  10980. else
  10981. PKG_CONFIG_MIN_VERSION=0.9.0
  10982. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10983. echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
  10984. echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6
  10985. if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
  10986. echo "$as_me:$LINENO: result: yes" >&5
  10987. echo "${ECHO_T}yes" >&6
  10988. succeeded=yes
  10989. echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
  10990. echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
  10991. QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
  10992. echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
  10993. echo "${ECHO_T}$QT_CFLAGS" >&6
  10994. echo "$as_me:$LINENO: checking QT_LIBS" >&5
  10995. echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
  10996. QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
  10997. echo "$as_me:$LINENO: result: $QT_LIBS" >&5
  10998. echo "${ECHO_T}$QT_LIBS" >&6
  10999. else
  11000. QT_CFLAGS=""
  11001. QT_LIBS=""
  11002. ## If we have a custom action on failure, don't print errors, but
  11003. ## do set a variable so people can do so.
  11004. QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
  11005. fi
  11006. else
  11007. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11008. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11009. fi
  11010. fi
  11011. if test $succeeded = yes; then
  11012. HAVE_QT4="yes"
  11013. else
  11014. HAVE_QT4="no"
  11015. fi
  11016. if test "x$HAVE_QT4" = "xyes"; then
  11017. QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
  11018. EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
  11019. as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
  11020. echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
  11021. echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
  11022. if eval "test \"\${$as_ac_File+set}\" = set"; then
  11023. echo $ECHO_N "(cached) $ECHO_C" >&6
  11024. else
  11025. test "$cross_compiling" = yes &&
  11026. { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  11027. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  11028. { (exit 1); exit 1; }; }
  11029. if test -r "$QT_INCLUDE_DIR/QWidget"; then
  11030. eval "$as_ac_File=yes"
  11031. else
  11032. eval "$as_ac_File=no"
  11033. fi
  11034. fi
  11035. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
  11036. echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
  11037. if test `eval echo '${'$as_ac_File'}'` = yes; then
  11038. { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
  11039. echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
  11040. else
  11041. as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
  11042. echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
  11043. echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
  11044. if eval "test \"\${$as_ac_File+set}\" = set"; then
  11045. echo $ECHO_N "(cached) $ECHO_C" >&6
  11046. else
  11047. test "$cross_compiling" = yes &&
  11048. { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  11049. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  11050. { (exit 1); exit 1; }; }
  11051. if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
  11052. eval "$as_ac_File=yes"
  11053. else
  11054. eval "$as_ac_File=no"
  11055. fi
  11056. fi
  11057. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
  11058. echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
  11059. if test `eval echo '${'$as_ac_File'}'` = yes; then
  11060. QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
  11061. else
  11062. { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
  11063. echo "$as_me: WARNING: QWidget not found" >&2;}
  11064. fi
  11065. fi
  11066. # Extract the first word of "moc", so it can be a program name with args.
  11067. set dummy moc; ac_word=$2
  11068. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11069. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11070. if test "${ac_cv_prog_MOC+set}" = set; then
  11071. echo $ECHO_N "(cached) $ECHO_C" >&6
  11072. else
  11073. if test -n "$MOC"; then
  11074. ac_cv_prog_MOC="$MOC" # Let the user override the test.
  11075. else
  11076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11077. for as_dir in $PATH
  11078. do
  11079. IFS=$as_save_IFS
  11080. test -z "$as_dir" && as_dir=.
  11081. for ac_exec_ext in '' $ac_executable_extensions; do
  11082. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11083. ac_cv_prog_MOC="moc"
  11084. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11085. break 2
  11086. fi
  11087. done
  11088. done
  11089. fi
  11090. fi
  11091. MOC=$ac_cv_prog_MOC
  11092. if test -n "$MOC"; then
  11093. echo "$as_me:$LINENO: result: $MOC" >&5
  11094. echo "${ECHO_T}$MOC" >&6
  11095. else
  11096. echo "$as_me:$LINENO: result: no" >&5
  11097. echo "${ECHO_T}no" >&6
  11098. fi
  11099. # Extract the first word of "moc-qt4", so it can be a program name with args.
  11100. set dummy moc-qt4; ac_word=$2
  11101. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11102. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11103. if test "${ac_cv_prog_MOC+set}" = set; then
  11104. echo $ECHO_N "(cached) $ECHO_C" >&6
  11105. else
  11106. if test -n "$MOC"; then
  11107. ac_cv_prog_MOC="$MOC" # Let the user override the test.
  11108. else
  11109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11110. for as_dir in $PATH
  11111. do
  11112. IFS=$as_save_IFS
  11113. test -z "$as_dir" && as_dir=.
  11114. for ac_exec_ext in '' $ac_executable_extensions; do
  11115. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11116. ac_cv_prog_MOC="moc-qt4"
  11117. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11118. break 2
  11119. fi
  11120. done
  11121. done
  11122. fi
  11123. fi
  11124. MOC=$ac_cv_prog_MOC
  11125. if test -n "$MOC"; then
  11126. echo "$as_me:$LINENO: result: $MOC" >&5
  11127. echo "${ECHO_T}$MOC" >&6
  11128. else
  11129. echo "$as_me:$LINENO: result: no" >&5
  11130. echo "${ECHO_T}no" >&6
  11131. fi
  11132. fi
  11133. if test "x$HAVE_QT4" = "xno"; then
  11134. { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
  11135. echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
  11136. case "$host_os" in
  11137. darwin*)
  11138. # Check whether --with-qt4dir or --without-qt4dir was given.
  11139. if test "${with_qt4dir+set}" = set; then
  11140. withval="$with_qt4dir"
  11141. QT4DIR=$withval
  11142. fi;
  11143. if test x"$QT4DIR" = x ; then
  11144. { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
  11145. echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
  11146. { (exit 1); exit 1; }; }
  11147. fi
  11148. echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
  11149. echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
  11150. # Extract the first word of "moc", so it can be a program name with args.
  11151. set dummy moc; ac_word=$2
  11152. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11153. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11154. if test "${ac_cv_prog_MOC+set}" = set; then
  11155. echo $ECHO_N "(cached) $ECHO_C" >&6
  11156. else
  11157. if test -n "$MOC"; then
  11158. ac_cv_prog_MOC="$MOC" # Let the user override the test.
  11159. else
  11160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11161. for as_dir in $QT4DIR/bin
  11162. do
  11163. IFS=$as_save_IFS
  11164. test -z "$as_dir" && as_dir=.
  11165. for ac_exec_ext in '' $ac_executable_extensions; do
  11166. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11167. ac_cv_prog_MOC="$QT4DIR/bin/moc"
  11168. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11169. break 2
  11170. fi
  11171. done
  11172. done
  11173. fi
  11174. fi
  11175. MOC=$ac_cv_prog_MOC
  11176. if test -n "$MOC"; then
  11177. echo "$as_me:$LINENO: result: $MOC" >&5
  11178. echo "${ECHO_T}$MOC" >&6
  11179. else
  11180. echo "$as_me:$LINENO: result: no" >&5
  11181. echo "${ECHO_T}no" >&6
  11182. fi
  11183. if test x"$MOC" = x; then
  11184. { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
  11185. echo "$as_me: error: *** This is not the right Qt installation" >&2;}
  11186. { (exit 1); exit 1; }; }
  11187. fi
  11188. QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
  11189. QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
  11190. QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
  11191. QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
  11192. ;;
  11193. *)
  11194. { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
  11195. of your installed Qt4 installation." >&5
  11196. echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
  11197. of your installed Qt4 installation." >&2;}
  11198. { (exit 1); exit 1; }; }
  11199. ;;
  11200. esac
  11201. fi
  11202. { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
  11203. echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
  11204. fi
  11205. if test "x${COMPILE_PLUGIN}" = xyes; then
  11206. succeeded=no
  11207. if test -z "$PKG_CONFIG"; then
  11208. # Extract the first word of "pkg-config", so it can be a program name with args.
  11209. set dummy pkg-config; ac_word=$2
  11210. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11211. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11212. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  11213. echo $ECHO_N "(cached) $ECHO_C" >&6
  11214. else
  11215. case $PKG_CONFIG in
  11216. [\\/]* | ?:[\\/]*)
  11217. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11218. ;;
  11219. *)
  11220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11221. for as_dir in $PATH
  11222. do
  11223. IFS=$as_save_IFS
  11224. test -z "$as_dir" && as_dir=.
  11225. for ac_exec_ext in '' $ac_executable_extensions; do
  11226. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11227. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11228. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11229. break 2
  11230. fi
  11231. done
  11232. done
  11233. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11234. ;;
  11235. esac
  11236. fi
  11237. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11238. if test -n "$PKG_CONFIG"; then
  11239. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  11240. echo "${ECHO_T}$PKG_CONFIG" >&6
  11241. else
  11242. echo "$as_me:$LINENO: result: no" >&5
  11243. echo "${ECHO_T}no" >&6
  11244. fi
  11245. fi
  11246. if test "$PKG_CONFIG" = "no" ; then
  11247. echo "*** The pkg-config script could not be found. Make sure it is"
  11248. echo "*** in your path, or set the PKG_CONFIG environment variable"
  11249. echo "*** to the full path to pkg-config."
  11250. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  11251. else
  11252. PKG_CONFIG_MIN_VERSION=0.9.0
  11253. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11254. echo "$as_me:$LINENO: checking for mozilla-plugin" >&5
  11255. echo $ECHO_N "checking for mozilla-plugin... $ECHO_C" >&6
  11256. if $PKG_CONFIG --exists "mozilla-plugin" ; then
  11257. echo "$as_me:$LINENO: result: yes" >&5
  11258. echo "${ECHO_T}yes" >&6
  11259. succeeded=yes
  11260. echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
  11261. echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
  11262. MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
  11263. echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
  11264. echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
  11265. echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
  11266. echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
  11267. MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
  11268. echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
  11269. echo "${ECHO_T}$MOZILLA_LIBS" >&6
  11270. else
  11271. MOZILLA_CFLAGS=""
  11272. MOZILLA_LIBS=""
  11273. ## If we have a custom action on failure, don't print errors, but
  11274. ## do set a variable so people can do so.
  11275. MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
  11276. fi
  11277. else
  11278. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11279. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11280. fi
  11281. fi
  11282. if test $succeeded = yes; then
  11283. MOZILLA_FOUND=yes
  11284. else
  11285. MOZILLA_FOUND=no
  11286. fi
  11287. if test "x${MOZILLA_FOUND}" = xno; then
  11288. succeeded=no
  11289. if test -z "$PKG_CONFIG"; then
  11290. # Extract the first word of "pkg-config", so it can be a program name with args.
  11291. set dummy pkg-config; ac_word=$2
  11292. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11293. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11294. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  11295. echo $ECHO_N "(cached) $ECHO_C" >&6
  11296. else
  11297. case $PKG_CONFIG in
  11298. [\\/]* | ?:[\\/]*)
  11299. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11300. ;;
  11301. *)
  11302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11303. for as_dir in $PATH
  11304. do
  11305. IFS=$as_save_IFS
  11306. test -z "$as_dir" && as_dir=.
  11307. for ac_exec_ext in '' $ac_executable_extensions; do
  11308. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11309. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11310. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11311. break 2
  11312. fi
  11313. done
  11314. done
  11315. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11316. ;;
  11317. esac
  11318. fi
  11319. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11320. if test -n "$PKG_CONFIG"; then
  11321. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  11322. echo "${ECHO_T}$PKG_CONFIG" >&6
  11323. else
  11324. echo "$as_me:$LINENO: result: no" >&5
  11325. echo "${ECHO_T}no" >&6
  11326. fi
  11327. fi
  11328. if test "$PKG_CONFIG" = "no" ; then
  11329. echo "*** The pkg-config script could not be found. Make sure it is"
  11330. echo "*** in your path, or set the PKG_CONFIG environment variable"
  11331. echo "*** to the full path to pkg-config."
  11332. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  11333. else
  11334. PKG_CONFIG_MIN_VERSION=0.9.0
  11335. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11336. echo "$as_me:$LINENO: checking for firefox-plugin" >&5
  11337. echo $ECHO_N "checking for firefox-plugin... $ECHO_C" >&6
  11338. if $PKG_CONFIG --exists "firefox-plugin" ; then
  11339. echo "$as_me:$LINENO: result: yes" >&5
  11340. echo "${ECHO_T}yes" >&6
  11341. succeeded=yes
  11342. echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
  11343. echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
  11344. MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin"`
  11345. echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
  11346. echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
  11347. echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
  11348. echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
  11349. MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin"`
  11350. echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
  11351. echo "${ECHO_T}$MOZILLA_LIBS" >&6
  11352. else
  11353. MOZILLA_CFLAGS=""
  11354. MOZILLA_LIBS=""
  11355. ## If we have a custom action on failure, don't print errors, but
  11356. ## do set a variable so people can do so.
  11357. MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin"`
  11358. fi
  11359. else
  11360. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11361. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11362. fi
  11363. fi
  11364. if test $succeeded = yes; then
  11365. MOZILLA_FOUND=yes
  11366. else
  11367. MOZILLA_FOUND=no
  11368. fi
  11369. fi
  11370. if test "x${MOZILLA_FOUND}" = xno; then
  11371. succeeded=no
  11372. if test -z "$PKG_CONFIG"; then
  11373. # Extract the first word of "pkg-config", so it can be a program name with args.
  11374. set dummy pkg-config; ac_word=$2
  11375. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11376. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11377. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  11378. echo $ECHO_N "(cached) $ECHO_C" >&6
  11379. else
  11380. case $PKG_CONFIG in
  11381. [\\/]* | ?:[\\/]*)
  11382. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11383. ;;
  11384. *)
  11385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11386. for as_dir in $PATH
  11387. do
  11388. IFS=$as_save_IFS
  11389. test -z "$as_dir" && as_dir=.
  11390. for ac_exec_ext in '' $ac_executable_extensions; do
  11391. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11392. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11393. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11394. break 2
  11395. fi
  11396. done
  11397. done
  11398. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11399. ;;
  11400. esac
  11401. fi
  11402. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11403. if test -n "$PKG_CONFIG"; then
  11404. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  11405. echo "${ECHO_T}$PKG_CONFIG" >&6
  11406. else
  11407. echo "$as_me:$LINENO: result: no" >&5
  11408. echo "${ECHO_T}no" >&6
  11409. fi
  11410. fi
  11411. if test "$PKG_CONFIG" = "no" ; then
  11412. echo "*** The pkg-config script could not be found. Make sure it is"
  11413. echo "*** in your path, or set the PKG_CONFIG environment variable"
  11414. echo "*** to the full path to pkg-config."
  11415. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  11416. else
  11417. PKG_CONFIG_MIN_VERSION=0.9.0
  11418. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11419. echo "$as_me:$LINENO: checking for xulrunner-plugin" >&5
  11420. echo $ECHO_N "checking for xulrunner-plugin... $ECHO_C" >&6
  11421. if $PKG_CONFIG --exists "xulrunner-plugin" ; then
  11422. echo "$as_me:$LINENO: result: yes" >&5
  11423. echo "${ECHO_T}yes" >&6
  11424. succeeded=yes
  11425. echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
  11426. echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
  11427. MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin"`
  11428. echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
  11429. echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
  11430. echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
  11431. echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
  11432. MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin"`
  11433. echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
  11434. echo "${ECHO_T}$MOZILLA_LIBS" >&6
  11435. else
  11436. MOZILLA_CFLAGS=""
  11437. MOZILLA_LIBS=""
  11438. ## If we have a custom action on failure, don't print errors, but
  11439. ## do set a variable so people can do so.
  11440. MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin"`
  11441. fi
  11442. else
  11443. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11444. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11445. fi
  11446. fi
  11447. if test $succeeded = yes; then
  11448. MOZILLA_FOUND=yes
  11449. else
  11450. MOZILLA_FOUND=no
  11451. fi
  11452. fi
  11453. if test "x${MOZILLA_FOUND}" = xno; then
  11454. succeeded=no
  11455. if test -z "$PKG_CONFIG"; then
  11456. # Extract the first word of "pkg-config", so it can be a program name with args.
  11457. set dummy pkg-config; ac_word=$2
  11458. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11459. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11460. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  11461. echo $ECHO_N "(cached) $ECHO_C" >&6
  11462. else
  11463. case $PKG_CONFIG in
  11464. [\\/]* | ?:[\\/]*)
  11465. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11466. ;;
  11467. *)
  11468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11469. for as_dir in $PATH
  11470. do
  11471. IFS=$as_save_IFS
  11472. test -z "$as_dir" && as_dir=.
  11473. for ac_exec_ext in '' $ac_executable_extensions; do
  11474. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11475. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11476. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11477. break 2
  11478. fi
  11479. done
  11480. done
  11481. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11482. ;;
  11483. esac
  11484. fi
  11485. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11486. if test -n "$PKG_CONFIG"; then
  11487. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  11488. echo "${ECHO_T}$PKG_CONFIG" >&6
  11489. else
  11490. echo "$as_me:$LINENO: result: no" >&5
  11491. echo "${ECHO_T}no" >&6
  11492. fi
  11493. fi
  11494. if test "$PKG_CONFIG" = "no" ; then
  11495. echo "*** The pkg-config script could not be found. Make sure it is"
  11496. echo "*** in your path, or set the PKG_CONFIG environment variable"
  11497. echo "*** to the full path to pkg-config."
  11498. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  11499. else
  11500. PKG_CONFIG_MIN_VERSION=0.9.0
  11501. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11502. echo "$as_me:$LINENO: checking for mozilla-firefox-plugin" >&5
  11503. echo $ECHO_N "checking for mozilla-firefox-plugin... $ECHO_C" >&6
  11504. if $PKG_CONFIG --exists "mozilla-firefox-plugin" ; then
  11505. echo "$as_me:$LINENO: result: yes" >&5
  11506. echo "${ECHO_T}yes" >&6
  11507. succeeded=yes
  11508. echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
  11509. echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
  11510. MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin"`
  11511. echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
  11512. echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
  11513. echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
  11514. echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
  11515. MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin"`
  11516. echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
  11517. echo "${ECHO_T}$MOZILLA_LIBS" >&6
  11518. else
  11519. MOZILLA_CFLAGS=""
  11520. MOZILLA_LIBS=""
  11521. ## If we have a custom action on failure, don't print errors, but
  11522. ## do set a variable so people can do so.
  11523. MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin"`
  11524. fi
  11525. else
  11526. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11527. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11528. fi
  11529. fi
  11530. if test $succeeded = yes; then
  11531. MOZILLA_FOUND=yes
  11532. else
  11533. MOZILLA_FOUND=no
  11534. fi
  11535. fi
  11536. succeeded=no
  11537. if test -z "$PKG_CONFIG"; then
  11538. # Extract the first word of "pkg-config", so it can be a program name with args.
  11539. set dummy pkg-config; ac_word=$2
  11540. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11541. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11542. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  11543. echo $ECHO_N "(cached) $ECHO_C" >&6
  11544. else
  11545. case $PKG_CONFIG in
  11546. [\\/]* | ?:[\\/]*)
  11547. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11548. ;;
  11549. *)
  11550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11551. for as_dir in $PATH
  11552. do
  11553. IFS=$as_save_IFS
  11554. test -z "$as_dir" && as_dir=.
  11555. for ac_exec_ext in '' $ac_executable_extensions; do
  11556. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11557. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11558. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11559. break 2
  11560. fi
  11561. done
  11562. done
  11563. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11564. ;;
  11565. esac
  11566. fi
  11567. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11568. if test -n "$PKG_CONFIG"; then
  11569. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  11570. echo "${ECHO_T}$PKG_CONFIG" >&6
  11571. else
  11572. echo "$as_me:$LINENO: result: no" >&5
  11573. echo "${ECHO_T}no" >&6
  11574. fi
  11575. fi
  11576. if test "$PKG_CONFIG" = "no" ; then
  11577. echo "*** The pkg-config script could not be found. Make sure it is"
  11578. echo "*** in your path, or set the PKG_CONFIG environment variable"
  11579. echo "*** to the full path to pkg-config."
  11580. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  11581. else
  11582. PKG_CONFIG_MIN_VERSION=0.9.0
  11583. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11584. echo "$as_me:$LINENO: checking for glib-2.0" >&5
  11585. echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
  11586. if $PKG_CONFIG --exists "glib-2.0" ; then
  11587. echo "$as_me:$LINENO: result: yes" >&5
  11588. echo "${ECHO_T}yes" >&6
  11589. succeeded=yes
  11590. echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
  11591. echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
  11592. GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
  11593. echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
  11594. echo "${ECHO_T}$GLIB_CFLAGS" >&6
  11595. echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
  11596. echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
  11597. GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
  11598. echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
  11599. echo "${ECHO_T}$GLIB_LIBS" >&6
  11600. else
  11601. GLIB_CFLAGS=""
  11602. GLIB_LIBS=""
  11603. ## If we have a custom action on failure, don't print errors, but
  11604. ## do set a variable so people can do so.
  11605. GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
  11606. echo $GLIB_PKG_ERRORS
  11607. fi
  11608. else
  11609. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11610. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11611. fi
  11612. fi
  11613. if test $succeeded = yes; then
  11614. :
  11615. else
  11616. { { 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
  11617. 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;}
  11618. { (exit 1); exit 1; }; }
  11619. fi
  11620. PLUGIN_DIR=$HOME/.mozilla/plugins/
  11621. fi
  11622. fi
  11623. # Check whether --with-javah or --without-javah was given.
  11624. if test "${with_javah+set}" = set; then
  11625. withval="$with_javah"
  11626. if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
  11627. if test "x${withval}" != x; then
  11628. if test -f "${withval}"; then
  11629. USER_JAVAH="${withval}"
  11630. else
  11631. # Extract the first word of ""${withval}"", so it can be a program name with args.
  11632. set dummy "${withval}"; ac_word=$2
  11633. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11634. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11635. if test "${ac_cv_path_USER_JAVAH+set}" = set; then
  11636. echo $ECHO_N "(cached) $ECHO_C" >&6
  11637. else
  11638. case $USER_JAVAH in
  11639. [\\/]* | ?:[\\/]*)
  11640. ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
  11641. ;;
  11642. *)
  11643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11644. for as_dir in $PATH
  11645. do
  11646. IFS=$as_save_IFS
  11647. test -z "$as_dir" && as_dir=.
  11648. for ac_exec_ext in '' $ac_executable_extensions; do
  11649. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11650. ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  11651. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11652. break 2
  11653. fi
  11654. done
  11655. done
  11656. ;;
  11657. esac
  11658. fi
  11659. USER_JAVAH=$ac_cv_path_USER_JAVAH
  11660. if test -n "$USER_JAVAH"; then
  11661. echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
  11662. echo "${ECHO_T}$USER_JAVAH" >&6
  11663. else
  11664. echo "$as_me:$LINENO: result: no" >&5
  11665. echo "${ECHO_T}no" >&6
  11666. fi
  11667. fi
  11668. else
  11669. for javah_name in gcjh javah; do
  11670. # Extract the first word of ""$javah_name"", so it can be a program name with args.
  11671. set dummy "$javah_name"; ac_word=$2
  11672. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11673. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11674. if test "${ac_cv_path_USER_JAVAH+set}" = set; then
  11675. echo $ECHO_N "(cached) $ECHO_C" >&6
  11676. else
  11677. case $USER_JAVAH in
  11678. [\\/]* | ?:[\\/]*)
  11679. ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
  11680. ;;
  11681. *)
  11682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11683. for as_dir in $PATH
  11684. do
  11685. IFS=$as_save_IFS
  11686. test -z "$as_dir" && as_dir=.
  11687. for ac_exec_ext in '' $ac_executable_extensions; do
  11688. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11689. ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  11690. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11691. break 2
  11692. fi
  11693. done
  11694. done
  11695. ;;
  11696. esac
  11697. fi
  11698. USER_JAVAH=$ac_cv_path_USER_JAVAH
  11699. if test -n "$USER_JAVAH"; then
  11700. echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
  11701. echo "${ECHO_T}$USER_JAVAH" >&6
  11702. else
  11703. echo "$as_me:$LINENO: result: no" >&5
  11704. echo "${ECHO_T}no" >&6
  11705. fi
  11706. if test "x${USER_JAVAH}" != x; then
  11707. break
  11708. fi
  11709. done
  11710. fi
  11711. # if test "x${USER_JAVAH}" = x; then
  11712. # echo "configure: cannot find javah" 1>&2
  11713. # exit 1
  11714. # fi
  11715. else
  11716. if test "x" != x; then
  11717. if test -f ""; then
  11718. USER_JAVAH=""
  11719. else
  11720. # Extract the first word of """", so it can be a program name with args.
  11721. set dummy ""; ac_word=$2
  11722. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11723. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11724. if test "${ac_cv_path_USER_JAVAH+set}" = set; then
  11725. echo $ECHO_N "(cached) $ECHO_C" >&6
  11726. else
  11727. case $USER_JAVAH in
  11728. [\\/]* | ?:[\\/]*)
  11729. ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
  11730. ;;
  11731. *)
  11732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11733. for as_dir in $PATH
  11734. do
  11735. IFS=$as_save_IFS
  11736. test -z "$as_dir" && as_dir=.
  11737. for ac_exec_ext in '' $ac_executable_extensions; do
  11738. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11739. ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  11740. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11741. break 2
  11742. fi
  11743. done
  11744. done
  11745. ;;
  11746. esac
  11747. fi
  11748. USER_JAVAH=$ac_cv_path_USER_JAVAH
  11749. if test -n "$USER_JAVAH"; then
  11750. echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
  11751. echo "${ECHO_T}$USER_JAVAH" >&6
  11752. else
  11753. echo "$as_me:$LINENO: result: no" >&5
  11754. echo "${ECHO_T}no" >&6
  11755. fi
  11756. fi
  11757. else
  11758. for javah_name in gcjh javah; do
  11759. # Extract the first word of ""$javah_name"", so it can be a program name with args.
  11760. set dummy "$javah_name"; ac_word=$2
  11761. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11762. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11763. if test "${ac_cv_path_USER_JAVAH+set}" = set; then
  11764. echo $ECHO_N "(cached) $ECHO_C" >&6
  11765. else
  11766. case $USER_JAVAH in
  11767. [\\/]* | ?:[\\/]*)
  11768. ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
  11769. ;;
  11770. *)
  11771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11772. for as_dir in $PATH
  11773. do
  11774. IFS=$as_save_IFS
  11775. test -z "$as_dir" && as_dir=.
  11776. for ac_exec_ext in '' $ac_executable_extensions; do
  11777. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11778. ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  11779. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11780. break 2
  11781. fi
  11782. done
  11783. done
  11784. ;;
  11785. esac
  11786. fi
  11787. USER_JAVAH=$ac_cv_path_USER_JAVAH
  11788. if test -n "$USER_JAVAH"; then
  11789. echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
  11790. echo "${ECHO_T}$USER_JAVAH" >&6
  11791. else
  11792. echo "$as_me:$LINENO: result: no" >&5
  11793. echo "${ECHO_T}no" >&6
  11794. fi
  11795. if test "x${USER_JAVAH}" != x; then
  11796. break
  11797. fi
  11798. done
  11799. fi
  11800. # if test "x${USER_JAVAH}" = x; then
  11801. # echo "configure: cannot find javah" 1>&2
  11802. # exit 1
  11803. # fi
  11804. fi
  11805. else
  11806. if test "x" != x; then
  11807. if test -f ""; then
  11808. USER_JAVAH=""
  11809. else
  11810. # Extract the first word of """", so it can be a program name with args.
  11811. set dummy ""; ac_word=$2
  11812. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11813. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11814. if test "${ac_cv_path_USER_JAVAH+set}" = set; then
  11815. echo $ECHO_N "(cached) $ECHO_C" >&6
  11816. else
  11817. case $USER_JAVAH in
  11818. [\\/]* | ?:[\\/]*)
  11819. ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
  11820. ;;
  11821. *)
  11822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11823. for as_dir in $PATH
  11824. do
  11825. IFS=$as_save_IFS
  11826. test -z "$as_dir" && as_dir=.
  11827. for ac_exec_ext in '' $ac_executable_extensions; do
  11828. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11829. ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  11830. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11831. break 2
  11832. fi
  11833. done
  11834. done
  11835. ;;
  11836. esac
  11837. fi
  11838. USER_JAVAH=$ac_cv_path_USER_JAVAH
  11839. if test -n "$USER_JAVAH"; then
  11840. echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
  11841. echo "${ECHO_T}$USER_JAVAH" >&6
  11842. else
  11843. echo "$as_me:$LINENO: result: no" >&5
  11844. echo "${ECHO_T}no" >&6
  11845. fi
  11846. fi
  11847. else
  11848. for javah_name in gcjh javah; do
  11849. # Extract the first word of ""$javah_name"", so it can be a program name with args.
  11850. set dummy "$javah_name"; ac_word=$2
  11851. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11852. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11853. if test "${ac_cv_path_USER_JAVAH+set}" = set; then
  11854. echo $ECHO_N "(cached) $ECHO_C" >&6
  11855. else
  11856. case $USER_JAVAH in
  11857. [\\/]* | ?:[\\/]*)
  11858. ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
  11859. ;;
  11860. *)
  11861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11862. for as_dir in $PATH
  11863. do
  11864. IFS=$as_save_IFS
  11865. test -z "$as_dir" && as_dir=.
  11866. for ac_exec_ext in '' $ac_executable_extensions; do
  11867. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11868. ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  11869. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11870. break 2
  11871. fi
  11872. done
  11873. done
  11874. ;;
  11875. esac
  11876. fi
  11877. USER_JAVAH=$ac_cv_path_USER_JAVAH
  11878. if test -n "$USER_JAVAH"; then
  11879. echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
  11880. echo "${ECHO_T}$USER_JAVAH" >&6
  11881. else
  11882. echo "$as_me:$LINENO: result: no" >&5
  11883. echo "${ECHO_T}no" >&6
  11884. fi
  11885. if test "x${USER_JAVAH}" != x; then
  11886. break
  11887. fi
  11888. done
  11889. fi
  11890. # if test "x${USER_JAVAH}" = x; then
  11891. # echo "configure: cannot find javah" 1>&2
  11892. # exit 1
  11893. # fi
  11894. fi;
  11895. if test "x${USER_JAVAH}" != x; then
  11896. USER_SPECIFIED_JAVAH_TRUE=
  11897. USER_SPECIFIED_JAVAH_FALSE='#'
  11898. else
  11899. USER_SPECIFIED_JAVAH_TRUE='#'
  11900. USER_SPECIFIED_JAVAH_FALSE=
  11901. fi
  11902. CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"
  11903. if test "x${COMPILE_JNI}" = xyes; then
  11904. echo "$as_me:$LINENO: checking jni_md.h support" >&5
  11905. echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
  11906. if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
  11907. echo "$as_me:$LINENO: result: yes" >&5
  11908. echo "${ECHO_T}yes" >&6
  11909. else
  11910. target_cpu=x86
  11911. target_os=linux-gnu
  11912. { echo "$as_me:$LINENO: WARNING: no" >&5
  11913. echo "$as_me: WARNING: no" >&2;}
  11914. fi
  11915. ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
  11916. ac_dests="include/jni_md.h"
  11917. while test -n "$ac_sources"; do
  11918. set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  11919. set $ac_sources; ac_source=$1; shift; ac_sources=$*
  11920. ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  11921. done
  11922. ac_config_links="$ac_config_links $ac_config_links_1"
  11923. fi
  11924. user_specified_javac=
  11925. # Check whether --with-gcj or --without-gcj was given.
  11926. if test "${with_gcj+set}" = set; then
  11927. withval="$with_gcj"
  11928. if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
  11929. if test "x${withval}" != x; then
  11930. if test -f "${withval}"; then
  11931. GCJ="${withval}"
  11932. else
  11933. # Extract the first word of ""${withval}"", so it can be a program name with args.
  11934. set dummy "${withval}"; ac_word=$2
  11935. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11936. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11937. if test "${ac_cv_path_GCJ+set}" = set; then
  11938. echo $ECHO_N "(cached) $ECHO_C" >&6
  11939. else
  11940. case $GCJ in
  11941. [\\/]* | ?:[\\/]*)
  11942. ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
  11943. ;;
  11944. *)
  11945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11946. for as_dir in $PATH
  11947. do
  11948. IFS=$as_save_IFS
  11949. test -z "$as_dir" && as_dir=.
  11950. for ac_exec_ext in '' $ac_executable_extensions; do
  11951. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11952. ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
  11953. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11954. break 2
  11955. fi
  11956. done
  11957. done
  11958. ;;
  11959. esac
  11960. fi
  11961. GCJ=$ac_cv_path_GCJ
  11962. if test -n "$GCJ"; then
  11963. echo "$as_me:$LINENO: result: $GCJ" >&5
  11964. echo "${ECHO_T}$GCJ" >&6
  11965. else
  11966. echo "$as_me:$LINENO: result: no" >&5
  11967. echo "${ECHO_T}no" >&6
  11968. fi
  11969. fi
  11970. else
  11971. # Extract the first word of ""gcj"", so it can be a program name with args.
  11972. set dummy "gcj"; ac_word=$2
  11973. echo "$as_me:$LINENO: checking for $ac_word" >&5
  11974. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11975. if test "${ac_cv_path_GCJ+set}" = set; then
  11976. echo $ECHO_N "(cached) $ECHO_C" >&6
  11977. else
  11978. case $GCJ in
  11979. [\\/]* | ?:[\\/]*)
  11980. ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
  11981. ;;
  11982. *)
  11983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11984. for as_dir in $PATH
  11985. do
  11986. IFS=$as_save_IFS
  11987. test -z "$as_dir" && as_dir=.
  11988. for ac_exec_ext in '' $ac_executable_extensions; do
  11989. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11990. ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
  11991. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11992. break 2
  11993. fi
  11994. done
  11995. done
  11996. ;;
  11997. esac
  11998. fi
  11999. GCJ=$ac_cv_path_GCJ
  12000. if test -n "$GCJ"; then
  12001. echo "$as_me:$LINENO: result: $GCJ" >&5
  12002. echo "${ECHO_T}$GCJ" >&6
  12003. else
  12004. echo "$as_me:$LINENO: result: no" >&5
  12005. echo "${ECHO_T}no" >&6
  12006. fi
  12007. fi
  12008. if test "x$GCJ" != x; then
  12009. echo "$as_me:$LINENO: checking gcj version 4.0" >&5
  12010. echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
  12011. ac_ext=c
  12012. ac_cpp='$CPP $CPPFLAGS'
  12013. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12014. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12015. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12016. cat >conftest.$ac_ext <<_ACEOF
  12017. #if __GNUC__ <= 3
  12018. #error GCJ 4.0.0 or higher is required
  12019. #endif
  12020. _ACEOF
  12021. $GCJ -E conftest.c > /dev/null
  12022. gcj_4_result=$?
  12023. if test "x$gcj_4_result" = "x0"; then
  12024. echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
  12025. echo "${ECHO_T}4.0 or higher found" >&6
  12026. else
  12027. { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
  12028. echo "$as_me: WARNING: 4.0 or higher required" >&2;}
  12029. fi
  12030. ac_ext=c
  12031. ac_cpp='$CPP $CPPFLAGS'
  12032. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12033. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12034. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12035. fi
  12036. else
  12037. if test "x${withval}" != xno; then
  12038. if test "x" != x; then
  12039. if test -f ""; then
  12040. GCJ=""
  12041. else
  12042. # Extract the first word of """", so it can be a program name with args.
  12043. set dummy ""; ac_word=$2
  12044. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12045. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12046. if test "${ac_cv_path_GCJ+set}" = set; then
  12047. echo $ECHO_N "(cached) $ECHO_C" >&6
  12048. else
  12049. case $GCJ in
  12050. [\\/]* | ?:[\\/]*)
  12051. ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
  12052. ;;
  12053. *)
  12054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12055. for as_dir in $PATH
  12056. do
  12057. IFS=$as_save_IFS
  12058. test -z "$as_dir" && as_dir=.
  12059. for ac_exec_ext in '' $ac_executable_extensions; do
  12060. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12061. ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
  12062. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12063. break 2
  12064. fi
  12065. done
  12066. done
  12067. ;;
  12068. esac
  12069. fi
  12070. GCJ=$ac_cv_path_GCJ
  12071. if test -n "$GCJ"; then
  12072. echo "$as_me:$LINENO: result: $GCJ" >&5
  12073. echo "${ECHO_T}$GCJ" >&6
  12074. else
  12075. echo "$as_me:$LINENO: result: no" >&5
  12076. echo "${ECHO_T}no" >&6
  12077. fi
  12078. fi
  12079. else
  12080. # Extract the first word of ""gcj"", so it can be a program name with args.
  12081. set dummy "gcj"; ac_word=$2
  12082. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12083. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12084. if test "${ac_cv_path_GCJ+set}" = set; then
  12085. echo $ECHO_N "(cached) $ECHO_C" >&6
  12086. else
  12087. case $GCJ in
  12088. [\\/]* | ?:[\\/]*)
  12089. ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
  12090. ;;
  12091. *)
  12092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12093. for as_dir in $PATH
  12094. do
  12095. IFS=$as_save_IFS
  12096. test -z "$as_dir" && as_dir=.
  12097. for ac_exec_ext in '' $ac_executable_extensions; do
  12098. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12099. ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
  12100. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12101. break 2
  12102. fi
  12103. done
  12104. done
  12105. ;;
  12106. esac
  12107. fi
  12108. GCJ=$ac_cv_path_GCJ
  12109. if test -n "$GCJ"; then
  12110. echo "$as_me:$LINENO: result: $GCJ" >&5
  12111. echo "${ECHO_T}$GCJ" >&6
  12112. else
  12113. echo "$as_me:$LINENO: result: no" >&5
  12114. echo "${ECHO_T}no" >&6
  12115. fi
  12116. fi
  12117. if test "x$GCJ" != x; then
  12118. echo "$as_me:$LINENO: checking gcj version 4.0" >&5
  12119. echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
  12120. ac_ext=c
  12121. ac_cpp='$CPP $CPPFLAGS'
  12122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12125. cat >conftest.$ac_ext <<_ACEOF
  12126. #if __GNUC__ <= 3
  12127. #error GCJ 4.0.0 or higher is required
  12128. #endif
  12129. _ACEOF
  12130. $GCJ -E conftest.c > /dev/null
  12131. gcj_4_result=$?
  12132. if test "x$gcj_4_result" = "x0"; then
  12133. echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
  12134. echo "${ECHO_T}4.0 or higher found" >&6
  12135. else
  12136. { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
  12137. echo "$as_me: WARNING: 4.0 or higher required" >&2;}
  12138. fi
  12139. ac_ext=c
  12140. ac_cpp='$CPP $CPPFLAGS'
  12141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12144. fi
  12145. fi
  12146. fi
  12147. user_specified_javac=gcj
  12148. else
  12149. if test "x" != x; then
  12150. if test -f ""; then
  12151. GCJ=""
  12152. else
  12153. # Extract the first word of """", so it can be a program name with args.
  12154. set dummy ""; ac_word=$2
  12155. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12156. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12157. if test "${ac_cv_path_GCJ+set}" = set; then
  12158. echo $ECHO_N "(cached) $ECHO_C" >&6
  12159. else
  12160. case $GCJ in
  12161. [\\/]* | ?:[\\/]*)
  12162. ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
  12163. ;;
  12164. *)
  12165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12166. for as_dir in $PATH
  12167. do
  12168. IFS=$as_save_IFS
  12169. test -z "$as_dir" && as_dir=.
  12170. for ac_exec_ext in '' $ac_executable_extensions; do
  12171. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12172. ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
  12173. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12174. break 2
  12175. fi
  12176. done
  12177. done
  12178. ;;
  12179. esac
  12180. fi
  12181. GCJ=$ac_cv_path_GCJ
  12182. if test -n "$GCJ"; then
  12183. echo "$as_me:$LINENO: result: $GCJ" >&5
  12184. echo "${ECHO_T}$GCJ" >&6
  12185. else
  12186. echo "$as_me:$LINENO: result: no" >&5
  12187. echo "${ECHO_T}no" >&6
  12188. fi
  12189. fi
  12190. else
  12191. # Extract the first word of ""gcj"", so it can be a program name with args.
  12192. set dummy "gcj"; ac_word=$2
  12193. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12194. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12195. if test "${ac_cv_path_GCJ+set}" = set; then
  12196. echo $ECHO_N "(cached) $ECHO_C" >&6
  12197. else
  12198. case $GCJ in
  12199. [\\/]* | ?:[\\/]*)
  12200. ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
  12201. ;;
  12202. *)
  12203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12204. for as_dir in $PATH
  12205. do
  12206. IFS=$as_save_IFS
  12207. test -z "$as_dir" && as_dir=.
  12208. for ac_exec_ext in '' $ac_executable_extensions; do
  12209. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12210. ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
  12211. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12212. break 2
  12213. fi
  12214. done
  12215. done
  12216. ;;
  12217. esac
  12218. fi
  12219. GCJ=$ac_cv_path_GCJ
  12220. if test -n "$GCJ"; then
  12221. echo "$as_me:$LINENO: result: $GCJ" >&5
  12222. echo "${ECHO_T}$GCJ" >&6
  12223. else
  12224. echo "$as_me:$LINENO: result: no" >&5
  12225. echo "${ECHO_T}no" >&6
  12226. fi
  12227. fi
  12228. if test "x$GCJ" != x; then
  12229. echo "$as_me:$LINENO: checking gcj version 4.0" >&5
  12230. echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
  12231. ac_ext=c
  12232. ac_cpp='$CPP $CPPFLAGS'
  12233. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12234. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12235. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12236. cat >conftest.$ac_ext <<_ACEOF
  12237. #if __GNUC__ <= 3
  12238. #error GCJ 4.0.0 or higher is required
  12239. #endif
  12240. _ACEOF
  12241. $GCJ -E conftest.c > /dev/null
  12242. gcj_4_result=$?
  12243. if test "x$gcj_4_result" = "x0"; then
  12244. echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
  12245. echo "${ECHO_T}4.0 or higher found" >&6
  12246. else
  12247. { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
  12248. echo "$as_me: WARNING: 4.0 or higher required" >&2;}
  12249. fi
  12250. ac_ext=c
  12251. ac_cpp='$CPP $CPPFLAGS'
  12252. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12253. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12254. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12255. fi
  12256. fi;
  12257. # Check whether --with-jikes or --without-jikes was given.
  12258. if test "${with_jikes+set}" = set; then
  12259. withval="$with_jikes"
  12260. if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
  12261. if test "x${withval}" != x; then
  12262. if test -f "${withval}"; then
  12263. JIKES="${withval}"
  12264. else
  12265. # Extract the first word of ""${withval}"", so it can be a program name with args.
  12266. set dummy "${withval}"; ac_word=$2
  12267. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12268. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12269. if test "${ac_cv_path_JIKES+set}" = set; then
  12270. echo $ECHO_N "(cached) $ECHO_C" >&6
  12271. else
  12272. case $JIKES in
  12273. [\\/]* | ?:[\\/]*)
  12274. ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
  12275. ;;
  12276. *)
  12277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12278. for as_dir in $PATH
  12279. do
  12280. IFS=$as_save_IFS
  12281. test -z "$as_dir" && as_dir=.
  12282. for ac_exec_ext in '' $ac_executable_extensions; do
  12283. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12284. ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
  12285. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12286. break 2
  12287. fi
  12288. done
  12289. done
  12290. ;;
  12291. esac
  12292. fi
  12293. JIKES=$ac_cv_path_JIKES
  12294. if test -n "$JIKES"; then
  12295. echo "$as_me:$LINENO: result: $JIKES" >&5
  12296. echo "${ECHO_T}$JIKES" >&6
  12297. else
  12298. echo "$as_me:$LINENO: result: no" >&5
  12299. echo "${ECHO_T}no" >&6
  12300. fi
  12301. fi
  12302. else
  12303. # Extract the first word of ""jikes"", so it can be a program name with args.
  12304. set dummy "jikes"; ac_word=$2
  12305. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12306. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12307. if test "${ac_cv_path_JIKES+set}" = set; then
  12308. echo $ECHO_N "(cached) $ECHO_C" >&6
  12309. else
  12310. case $JIKES in
  12311. [\\/]* | ?:[\\/]*)
  12312. ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
  12313. ;;
  12314. *)
  12315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12316. for as_dir in $PATH
  12317. do
  12318. IFS=$as_save_IFS
  12319. test -z "$as_dir" && as_dir=.
  12320. for ac_exec_ext in '' $ac_executable_extensions; do
  12321. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12322. ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
  12323. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12324. break 2
  12325. fi
  12326. done
  12327. done
  12328. ;;
  12329. esac
  12330. fi
  12331. JIKES=$ac_cv_path_JIKES
  12332. if test -n "$JIKES"; then
  12333. echo "$as_me:$LINENO: result: $JIKES" >&5
  12334. echo "${ECHO_T}$JIKES" >&6
  12335. else
  12336. echo "$as_me:$LINENO: result: no" >&5
  12337. echo "${ECHO_T}no" >&6
  12338. fi
  12339. fi
  12340. if test "x$JIKES" != "x"; then
  12341. echo "$as_me:$LINENO: checking jikes version" >&5
  12342. echo $ECHO_N "checking jikes version... $ECHO_C" >&6
  12343. JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
  12344. JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
  12345. JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
  12346. if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
  12347. if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
  12348. JIKES=""
  12349. fi
  12350. fi
  12351. if test "x$JIKES" != "x"; then
  12352. echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
  12353. echo "${ECHO_T}$JIKES_VERSION" >&6
  12354. else
  12355. { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
  12356. echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
  12357. fi
  12358. JIKESENCODING=
  12359. if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
  12360. JIKESENCODING='-encoding UTF-8'
  12361. fi
  12362. JIKESWARNINGS="+Pno-switchcheck"
  12363. if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
  12364. if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
  12365. JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
  12366. fi
  12367. fi
  12368. fi
  12369. else
  12370. if test "x${withval}" != xno; then
  12371. if test "x" != x; then
  12372. if test -f ""; then
  12373. JIKES=""
  12374. else
  12375. # Extract the first word of """", so it can be a program name with args.
  12376. set dummy ""; ac_word=$2
  12377. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12378. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12379. if test "${ac_cv_path_JIKES+set}" = set; then
  12380. echo $ECHO_N "(cached) $ECHO_C" >&6
  12381. else
  12382. case $JIKES in
  12383. [\\/]* | ?:[\\/]*)
  12384. ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
  12385. ;;
  12386. *)
  12387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12388. for as_dir in $PATH
  12389. do
  12390. IFS=$as_save_IFS
  12391. test -z "$as_dir" && as_dir=.
  12392. for ac_exec_ext in '' $ac_executable_extensions; do
  12393. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12394. ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
  12395. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12396. break 2
  12397. fi
  12398. done
  12399. done
  12400. ;;
  12401. esac
  12402. fi
  12403. JIKES=$ac_cv_path_JIKES
  12404. if test -n "$JIKES"; then
  12405. echo "$as_me:$LINENO: result: $JIKES" >&5
  12406. echo "${ECHO_T}$JIKES" >&6
  12407. else
  12408. echo "$as_me:$LINENO: result: no" >&5
  12409. echo "${ECHO_T}no" >&6
  12410. fi
  12411. fi
  12412. else
  12413. # Extract the first word of ""jikes"", so it can be a program name with args.
  12414. set dummy "jikes"; ac_word=$2
  12415. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12416. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12417. if test "${ac_cv_path_JIKES+set}" = set; then
  12418. echo $ECHO_N "(cached) $ECHO_C" >&6
  12419. else
  12420. case $JIKES in
  12421. [\\/]* | ?:[\\/]*)
  12422. ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
  12423. ;;
  12424. *)
  12425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12426. for as_dir in $PATH
  12427. do
  12428. IFS=$as_save_IFS
  12429. test -z "$as_dir" && as_dir=.
  12430. for ac_exec_ext in '' $ac_executable_extensions; do
  12431. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12432. ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
  12433. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12434. break 2
  12435. fi
  12436. done
  12437. done
  12438. ;;
  12439. esac
  12440. fi
  12441. JIKES=$ac_cv_path_JIKES
  12442. if test -n "$JIKES"; then
  12443. echo "$as_me:$LINENO: result: $JIKES" >&5
  12444. echo "${ECHO_T}$JIKES" >&6
  12445. else
  12446. echo "$as_me:$LINENO: result: no" >&5
  12447. echo "${ECHO_T}no" >&6
  12448. fi
  12449. fi
  12450. if test "x$JIKES" != "x"; then
  12451. echo "$as_me:$LINENO: checking jikes version" >&5
  12452. echo $ECHO_N "checking jikes version... $ECHO_C" >&6
  12453. JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
  12454. JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
  12455. JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
  12456. if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
  12457. if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
  12458. JIKES=""
  12459. fi
  12460. fi
  12461. if test "x$JIKES" != "x"; then
  12462. echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
  12463. echo "${ECHO_T}$JIKES_VERSION" >&6
  12464. else
  12465. { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
  12466. echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
  12467. fi
  12468. JIKESENCODING=
  12469. if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
  12470. JIKESENCODING='-encoding UTF-8'
  12471. fi
  12472. JIKESWARNINGS="+Pno-switchcheck"
  12473. if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
  12474. if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
  12475. JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
  12476. fi
  12477. fi
  12478. fi
  12479. fi
  12480. fi
  12481. user_specified_javac=jikes
  12482. else
  12483. if test "x" != x; then
  12484. if test -f ""; then
  12485. JIKES=""
  12486. else
  12487. # Extract the first word of """", so it can be a program name with args.
  12488. set dummy ""; ac_word=$2
  12489. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12490. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12491. if test "${ac_cv_path_JIKES+set}" = set; then
  12492. echo $ECHO_N "(cached) $ECHO_C" >&6
  12493. else
  12494. case $JIKES in
  12495. [\\/]* | ?:[\\/]*)
  12496. ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
  12497. ;;
  12498. *)
  12499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12500. for as_dir in $PATH
  12501. do
  12502. IFS=$as_save_IFS
  12503. test -z "$as_dir" && as_dir=.
  12504. for ac_exec_ext in '' $ac_executable_extensions; do
  12505. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12506. ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
  12507. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12508. break 2
  12509. fi
  12510. done
  12511. done
  12512. ;;
  12513. esac
  12514. fi
  12515. JIKES=$ac_cv_path_JIKES
  12516. if test -n "$JIKES"; then
  12517. echo "$as_me:$LINENO: result: $JIKES" >&5
  12518. echo "${ECHO_T}$JIKES" >&6
  12519. else
  12520. echo "$as_me:$LINENO: result: no" >&5
  12521. echo "${ECHO_T}no" >&6
  12522. fi
  12523. fi
  12524. else
  12525. # Extract the first word of ""jikes"", so it can be a program name with args.
  12526. set dummy "jikes"; ac_word=$2
  12527. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12528. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12529. if test "${ac_cv_path_JIKES+set}" = set; then
  12530. echo $ECHO_N "(cached) $ECHO_C" >&6
  12531. else
  12532. case $JIKES in
  12533. [\\/]* | ?:[\\/]*)
  12534. ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
  12535. ;;
  12536. *)
  12537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12538. for as_dir in $PATH
  12539. do
  12540. IFS=$as_save_IFS
  12541. test -z "$as_dir" && as_dir=.
  12542. for ac_exec_ext in '' $ac_executable_extensions; do
  12543. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12544. ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
  12545. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12546. break 2
  12547. fi
  12548. done
  12549. done
  12550. ;;
  12551. esac
  12552. fi
  12553. JIKES=$ac_cv_path_JIKES
  12554. if test -n "$JIKES"; then
  12555. echo "$as_me:$LINENO: result: $JIKES" >&5
  12556. echo "${ECHO_T}$JIKES" >&6
  12557. else
  12558. echo "$as_me:$LINENO: result: no" >&5
  12559. echo "${ECHO_T}no" >&6
  12560. fi
  12561. fi
  12562. if test "x$JIKES" != "x"; then
  12563. echo "$as_me:$LINENO: checking jikes version" >&5
  12564. echo $ECHO_N "checking jikes version... $ECHO_C" >&6
  12565. JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
  12566. JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
  12567. JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
  12568. if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
  12569. if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
  12570. JIKES=""
  12571. fi
  12572. fi
  12573. if test "x$JIKES" != "x"; then
  12574. echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
  12575. echo "${ECHO_T}$JIKES_VERSION" >&6
  12576. else
  12577. { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
  12578. echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
  12579. fi
  12580. JIKESENCODING=
  12581. if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
  12582. JIKESENCODING='-encoding UTF-8'
  12583. fi
  12584. JIKESWARNINGS="+Pno-switchcheck"
  12585. if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
  12586. if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
  12587. JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
  12588. fi
  12589. fi
  12590. fi
  12591. fi;
  12592. # Check whether --with-kjc or --without-kjc was given.
  12593. if test "${with_kjc+set}" = set; then
  12594. withval="$with_kjc"
  12595. if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
  12596. if test "x${withval}" != x; then
  12597. if test -f "${withval}"; then
  12598. KJC="${withval}"
  12599. else
  12600. # Extract the first word of ""${withval}"", so it can be a program name with args.
  12601. set dummy "${withval}"; ac_word=$2
  12602. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12603. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12604. if test "${ac_cv_path_KJC+set}" = set; then
  12605. echo $ECHO_N "(cached) $ECHO_C" >&6
  12606. else
  12607. case $KJC in
  12608. [\\/]* | ?:[\\/]*)
  12609. ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
  12610. ;;
  12611. *)
  12612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12613. for as_dir in $PATH
  12614. do
  12615. IFS=$as_save_IFS
  12616. test -z "$as_dir" && as_dir=.
  12617. for ac_exec_ext in '' $ac_executable_extensions; do
  12618. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12619. ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
  12620. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12621. break 2
  12622. fi
  12623. done
  12624. done
  12625. ;;
  12626. esac
  12627. fi
  12628. KJC=$ac_cv_path_KJC
  12629. if test -n "$KJC"; then
  12630. echo "$as_me:$LINENO: result: $KJC" >&5
  12631. echo "${ECHO_T}$KJC" >&6
  12632. else
  12633. echo "$as_me:$LINENO: result: no" >&5
  12634. echo "${ECHO_T}no" >&6
  12635. fi
  12636. fi
  12637. else
  12638. # Extract the first word of ""kJC"", so it can be a program name with args.
  12639. set dummy "kJC"; ac_word=$2
  12640. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12641. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12642. if test "${ac_cv_path_KJC+set}" = set; then
  12643. echo $ECHO_N "(cached) $ECHO_C" >&6
  12644. else
  12645. case $KJC in
  12646. [\\/]* | ?:[\\/]*)
  12647. ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
  12648. ;;
  12649. *)
  12650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12651. for as_dir in $PATH
  12652. do
  12653. IFS=$as_save_IFS
  12654. test -z "$as_dir" && as_dir=.
  12655. for ac_exec_ext in '' $ac_executable_extensions; do
  12656. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12657. ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
  12658. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12659. break 2
  12660. fi
  12661. done
  12662. done
  12663. ;;
  12664. esac
  12665. fi
  12666. KJC=$ac_cv_path_KJC
  12667. if test -n "$KJC"; then
  12668. echo "$as_me:$LINENO: result: $KJC" >&5
  12669. echo "${ECHO_T}$KJC" >&6
  12670. else
  12671. echo "$as_me:$LINENO: result: no" >&5
  12672. echo "${ECHO_T}no" >&6
  12673. fi
  12674. fi
  12675. else
  12676. if test "x${withval}" != xno; then
  12677. if test "x" != x; then
  12678. if test -f ""; then
  12679. KJC=""
  12680. else
  12681. # Extract the first word of """", so it can be a program name with args.
  12682. set dummy ""; ac_word=$2
  12683. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12684. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12685. if test "${ac_cv_path_KJC+set}" = set; then
  12686. echo $ECHO_N "(cached) $ECHO_C" >&6
  12687. else
  12688. case $KJC in
  12689. [\\/]* | ?:[\\/]*)
  12690. ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
  12691. ;;
  12692. *)
  12693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12694. for as_dir in $PATH
  12695. do
  12696. IFS=$as_save_IFS
  12697. test -z "$as_dir" && as_dir=.
  12698. for ac_exec_ext in '' $ac_executable_extensions; do
  12699. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12700. ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
  12701. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12702. break 2
  12703. fi
  12704. done
  12705. done
  12706. ;;
  12707. esac
  12708. fi
  12709. KJC=$ac_cv_path_KJC
  12710. if test -n "$KJC"; then
  12711. echo "$as_me:$LINENO: result: $KJC" >&5
  12712. echo "${ECHO_T}$KJC" >&6
  12713. else
  12714. echo "$as_me:$LINENO: result: no" >&5
  12715. echo "${ECHO_T}no" >&6
  12716. fi
  12717. fi
  12718. else
  12719. # Extract the first word of ""kJC"", so it can be a program name with args.
  12720. set dummy "kJC"; ac_word=$2
  12721. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12722. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12723. if test "${ac_cv_path_KJC+set}" = set; then
  12724. echo $ECHO_N "(cached) $ECHO_C" >&6
  12725. else
  12726. case $KJC in
  12727. [\\/]* | ?:[\\/]*)
  12728. ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
  12729. ;;
  12730. *)
  12731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12732. for as_dir in $PATH
  12733. do
  12734. IFS=$as_save_IFS
  12735. test -z "$as_dir" && as_dir=.
  12736. for ac_exec_ext in '' $ac_executable_extensions; do
  12737. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12738. ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
  12739. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12740. break 2
  12741. fi
  12742. done
  12743. done
  12744. ;;
  12745. esac
  12746. fi
  12747. KJC=$ac_cv_path_KJC
  12748. if test -n "$KJC"; then
  12749. echo "$as_me:$LINENO: result: $KJC" >&5
  12750. echo "${ECHO_T}$KJC" >&6
  12751. else
  12752. echo "$as_me:$LINENO: result: no" >&5
  12753. echo "${ECHO_T}no" >&6
  12754. fi
  12755. fi
  12756. fi
  12757. fi
  12758. user_specified_javac=kjc
  12759. else
  12760. if test "x" != x; then
  12761. if test -f ""; then
  12762. KJC=""
  12763. else
  12764. # Extract the first word of """", so it can be a program name with args.
  12765. set dummy ""; ac_word=$2
  12766. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12767. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12768. if test "${ac_cv_path_KJC+set}" = set; then
  12769. echo $ECHO_N "(cached) $ECHO_C" >&6
  12770. else
  12771. case $KJC in
  12772. [\\/]* | ?:[\\/]*)
  12773. ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
  12774. ;;
  12775. *)
  12776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12777. for as_dir in $PATH
  12778. do
  12779. IFS=$as_save_IFS
  12780. test -z "$as_dir" && as_dir=.
  12781. for ac_exec_ext in '' $ac_executable_extensions; do
  12782. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12783. ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
  12784. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12785. break 2
  12786. fi
  12787. done
  12788. done
  12789. ;;
  12790. esac
  12791. fi
  12792. KJC=$ac_cv_path_KJC
  12793. if test -n "$KJC"; then
  12794. echo "$as_me:$LINENO: result: $KJC" >&5
  12795. echo "${ECHO_T}$KJC" >&6
  12796. else
  12797. echo "$as_me:$LINENO: result: no" >&5
  12798. echo "${ECHO_T}no" >&6
  12799. fi
  12800. fi
  12801. else
  12802. # Extract the first word of ""kJC"", so it can be a program name with args.
  12803. set dummy "kJC"; ac_word=$2
  12804. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12805. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12806. if test "${ac_cv_path_KJC+set}" = set; then
  12807. echo $ECHO_N "(cached) $ECHO_C" >&6
  12808. else
  12809. case $KJC in
  12810. [\\/]* | ?:[\\/]*)
  12811. ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
  12812. ;;
  12813. *)
  12814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12815. for as_dir in $PATH
  12816. do
  12817. IFS=$as_save_IFS
  12818. test -z "$as_dir" && as_dir=.
  12819. for ac_exec_ext in '' $ac_executable_extensions; do
  12820. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12821. ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
  12822. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12823. break 2
  12824. fi
  12825. done
  12826. done
  12827. ;;
  12828. esac
  12829. fi
  12830. KJC=$ac_cv_path_KJC
  12831. if test -n "$KJC"; then
  12832. echo "$as_me:$LINENO: result: $KJC" >&5
  12833. echo "${ECHO_T}$KJC" >&6
  12834. else
  12835. echo "$as_me:$LINENO: result: no" >&5
  12836. echo "${ECHO_T}no" >&6
  12837. fi
  12838. fi
  12839. fi;
  12840. # Check whether --with-gcjx or --without-gcjx was given.
  12841. if test "${with_gcjx+set}" = set; then
  12842. withval="$with_gcjx"
  12843. if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
  12844. if test "x${withval}" != x; then
  12845. if test -f "${withval}"; then
  12846. GCJX="${withval}"
  12847. else
  12848. # Extract the first word of ""${withval}"", so it can be a program name with args.
  12849. set dummy "${withval}"; ac_word=$2
  12850. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12851. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12852. if test "${ac_cv_path_GCJX+set}" = set; then
  12853. echo $ECHO_N "(cached) $ECHO_C" >&6
  12854. else
  12855. case $GCJX in
  12856. [\\/]* | ?:[\\/]*)
  12857. ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
  12858. ;;
  12859. *)
  12860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12861. for as_dir in $PATH
  12862. do
  12863. IFS=$as_save_IFS
  12864. test -z "$as_dir" && as_dir=.
  12865. for ac_exec_ext in '' $ac_executable_extensions; do
  12866. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12867. ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
  12868. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12869. break 2
  12870. fi
  12871. done
  12872. done
  12873. ;;
  12874. esac
  12875. fi
  12876. GCJX=$ac_cv_path_GCJX
  12877. if test -n "$GCJX"; then
  12878. echo "$as_me:$LINENO: result: $GCJX" >&5
  12879. echo "${ECHO_T}$GCJX" >&6
  12880. else
  12881. echo "$as_me:$LINENO: result: no" >&5
  12882. echo "${ECHO_T}no" >&6
  12883. fi
  12884. fi
  12885. else
  12886. # Extract the first word of ""gcjx"", so it can be a program name with args.
  12887. set dummy "gcjx"; ac_word=$2
  12888. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12889. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12890. if test "${ac_cv_path_GCJX+set}" = set; then
  12891. echo $ECHO_N "(cached) $ECHO_C" >&6
  12892. else
  12893. case $GCJX in
  12894. [\\/]* | ?:[\\/]*)
  12895. ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
  12896. ;;
  12897. *)
  12898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12899. for as_dir in $PATH
  12900. do
  12901. IFS=$as_save_IFS
  12902. test -z "$as_dir" && as_dir=.
  12903. for ac_exec_ext in '' $ac_executable_extensions; do
  12904. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12905. ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
  12906. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12907. break 2
  12908. fi
  12909. done
  12910. done
  12911. ;;
  12912. esac
  12913. fi
  12914. GCJX=$ac_cv_path_GCJX
  12915. if test -n "$GCJX"; then
  12916. echo "$as_me:$LINENO: result: $GCJX" >&5
  12917. echo "${ECHO_T}$GCJX" >&6
  12918. else
  12919. echo "$as_me:$LINENO: result: no" >&5
  12920. echo "${ECHO_T}no" >&6
  12921. fi
  12922. fi
  12923. else
  12924. if test "x${withval}" != xno; then
  12925. if test "x" != x; then
  12926. if test -f ""; then
  12927. GCJX=""
  12928. else
  12929. # Extract the first word of """", so it can be a program name with args.
  12930. set dummy ""; ac_word=$2
  12931. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12932. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12933. if test "${ac_cv_path_GCJX+set}" = set; then
  12934. echo $ECHO_N "(cached) $ECHO_C" >&6
  12935. else
  12936. case $GCJX in
  12937. [\\/]* | ?:[\\/]*)
  12938. ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
  12939. ;;
  12940. *)
  12941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12942. for as_dir in $PATH
  12943. do
  12944. IFS=$as_save_IFS
  12945. test -z "$as_dir" && as_dir=.
  12946. for ac_exec_ext in '' $ac_executable_extensions; do
  12947. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12948. ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
  12949. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12950. break 2
  12951. fi
  12952. done
  12953. done
  12954. ;;
  12955. esac
  12956. fi
  12957. GCJX=$ac_cv_path_GCJX
  12958. if test -n "$GCJX"; then
  12959. echo "$as_me:$LINENO: result: $GCJX" >&5
  12960. echo "${ECHO_T}$GCJX" >&6
  12961. else
  12962. echo "$as_me:$LINENO: result: no" >&5
  12963. echo "${ECHO_T}no" >&6
  12964. fi
  12965. fi
  12966. else
  12967. # Extract the first word of ""gcjx"", so it can be a program name with args.
  12968. set dummy "gcjx"; ac_word=$2
  12969. echo "$as_me:$LINENO: checking for $ac_word" >&5
  12970. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12971. if test "${ac_cv_path_GCJX+set}" = set; then
  12972. echo $ECHO_N "(cached) $ECHO_C" >&6
  12973. else
  12974. case $GCJX in
  12975. [\\/]* | ?:[\\/]*)
  12976. ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
  12977. ;;
  12978. *)
  12979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12980. for as_dir in $PATH
  12981. do
  12982. IFS=$as_save_IFS
  12983. test -z "$as_dir" && as_dir=.
  12984. for ac_exec_ext in '' $ac_executable_extensions; do
  12985. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12986. ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
  12987. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12988. break 2
  12989. fi
  12990. done
  12991. done
  12992. ;;
  12993. esac
  12994. fi
  12995. GCJX=$ac_cv_path_GCJX
  12996. if test -n "$GCJX"; then
  12997. echo "$as_me:$LINENO: result: $GCJX" >&5
  12998. echo "${ECHO_T}$GCJX" >&6
  12999. else
  13000. echo "$as_me:$LINENO: result: no" >&5
  13001. echo "${ECHO_T}no" >&6
  13002. fi
  13003. fi
  13004. fi
  13005. fi
  13006. user_specified_javac=gcjx
  13007. else
  13008. if test "x" != x; then
  13009. if test -f ""; then
  13010. GCJX=""
  13011. else
  13012. # Extract the first word of """", so it can be a program name with args.
  13013. set dummy ""; ac_word=$2
  13014. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13015. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13016. if test "${ac_cv_path_GCJX+set}" = set; then
  13017. echo $ECHO_N "(cached) $ECHO_C" >&6
  13018. else
  13019. case $GCJX in
  13020. [\\/]* | ?:[\\/]*)
  13021. ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
  13022. ;;
  13023. *)
  13024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13025. for as_dir in $PATH
  13026. do
  13027. IFS=$as_save_IFS
  13028. test -z "$as_dir" && as_dir=.
  13029. for ac_exec_ext in '' $ac_executable_extensions; do
  13030. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13031. ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
  13032. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13033. break 2
  13034. fi
  13035. done
  13036. done
  13037. ;;
  13038. esac
  13039. fi
  13040. GCJX=$ac_cv_path_GCJX
  13041. if test -n "$GCJX"; then
  13042. echo "$as_me:$LINENO: result: $GCJX" >&5
  13043. echo "${ECHO_T}$GCJX" >&6
  13044. else
  13045. echo "$as_me:$LINENO: result: no" >&5
  13046. echo "${ECHO_T}no" >&6
  13047. fi
  13048. fi
  13049. else
  13050. # Extract the first word of ""gcjx"", so it can be a program name with args.
  13051. set dummy "gcjx"; ac_word=$2
  13052. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13053. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13054. if test "${ac_cv_path_GCJX+set}" = set; then
  13055. echo $ECHO_N "(cached) $ECHO_C" >&6
  13056. else
  13057. case $GCJX in
  13058. [\\/]* | ?:[\\/]*)
  13059. ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
  13060. ;;
  13061. *)
  13062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13063. for as_dir in $PATH
  13064. do
  13065. IFS=$as_save_IFS
  13066. test -z "$as_dir" && as_dir=.
  13067. for ac_exec_ext in '' $ac_executable_extensions; do
  13068. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13069. ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
  13070. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13071. break 2
  13072. fi
  13073. done
  13074. done
  13075. ;;
  13076. esac
  13077. fi
  13078. GCJX=$ac_cv_path_GCJX
  13079. if test -n "$GCJX"; then
  13080. echo "$as_me:$LINENO: result: $GCJX" >&5
  13081. echo "${ECHO_T}$GCJX" >&6
  13082. else
  13083. echo "$as_me:$LINENO: result: no" >&5
  13084. echo "${ECHO_T}no" >&6
  13085. fi
  13086. fi
  13087. fi;
  13088. # Check whether --with-ecj or --without-ecj was given.
  13089. if test "${with_ecj+set}" = set; then
  13090. withval="$with_ecj"
  13091. if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
  13092. if test "x${withval}" != x; then
  13093. if test -f "${withval}"; then
  13094. ECJ="${withval}"
  13095. else
  13096. # Extract the first word of ""${withval}"", so it can be a program name with args.
  13097. set dummy "${withval}"; ac_word=$2
  13098. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13099. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13100. if test "${ac_cv_path_ECJ+set}" = set; then
  13101. echo $ECHO_N "(cached) $ECHO_C" >&6
  13102. else
  13103. case $ECJ in
  13104. [\\/]* | ?:[\\/]*)
  13105. ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
  13106. ;;
  13107. *)
  13108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13109. for as_dir in $PATH
  13110. do
  13111. IFS=$as_save_IFS
  13112. test -z "$as_dir" && as_dir=.
  13113. for ac_exec_ext in '' $ac_executable_extensions; do
  13114. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13115. ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
  13116. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13117. break 2
  13118. fi
  13119. done
  13120. done
  13121. ;;
  13122. esac
  13123. fi
  13124. ECJ=$ac_cv_path_ECJ
  13125. if test -n "$ECJ"; then
  13126. echo "$as_me:$LINENO: result: $ECJ" >&5
  13127. echo "${ECHO_T}$ECJ" >&6
  13128. else
  13129. echo "$as_me:$LINENO: result: no" >&5
  13130. echo "${ECHO_T}no" >&6
  13131. fi
  13132. fi
  13133. else
  13134. # Extract the first word of ""ecj"", so it can be a program name with args.
  13135. set dummy "ecj"; ac_word=$2
  13136. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13137. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13138. if test "${ac_cv_path_ECJ+set}" = set; then
  13139. echo $ECHO_N "(cached) $ECHO_C" >&6
  13140. else
  13141. case $ECJ in
  13142. [\\/]* | ?:[\\/]*)
  13143. ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
  13144. ;;
  13145. *)
  13146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13147. for as_dir in $PATH
  13148. do
  13149. IFS=$as_save_IFS
  13150. test -z "$as_dir" && as_dir=.
  13151. for ac_exec_ext in '' $ac_executable_extensions; do
  13152. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13153. ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
  13154. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13155. break 2
  13156. fi
  13157. done
  13158. done
  13159. ;;
  13160. esac
  13161. fi
  13162. ECJ=$ac_cv_path_ECJ
  13163. if test -n "$ECJ"; then
  13164. echo "$as_me:$LINENO: result: $ECJ" >&5
  13165. echo "${ECHO_T}$ECJ" >&6
  13166. else
  13167. echo "$as_me:$LINENO: result: no" >&5
  13168. echo "${ECHO_T}no" >&6
  13169. fi
  13170. fi
  13171. else
  13172. if test "x${withval}" != xno; then
  13173. if test "x" != x; then
  13174. if test -f ""; then
  13175. ECJ=""
  13176. else
  13177. # Extract the first word of """", so it can be a program name with args.
  13178. set dummy ""; ac_word=$2
  13179. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13180. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13181. if test "${ac_cv_path_ECJ+set}" = set; then
  13182. echo $ECHO_N "(cached) $ECHO_C" >&6
  13183. else
  13184. case $ECJ in
  13185. [\\/]* | ?:[\\/]*)
  13186. ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
  13187. ;;
  13188. *)
  13189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13190. for as_dir in $PATH
  13191. do
  13192. IFS=$as_save_IFS
  13193. test -z "$as_dir" && as_dir=.
  13194. for ac_exec_ext in '' $ac_executable_extensions; do
  13195. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13196. ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
  13197. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13198. break 2
  13199. fi
  13200. done
  13201. done
  13202. ;;
  13203. esac
  13204. fi
  13205. ECJ=$ac_cv_path_ECJ
  13206. if test -n "$ECJ"; then
  13207. echo "$as_me:$LINENO: result: $ECJ" >&5
  13208. echo "${ECHO_T}$ECJ" >&6
  13209. else
  13210. echo "$as_me:$LINENO: result: no" >&5
  13211. echo "${ECHO_T}no" >&6
  13212. fi
  13213. fi
  13214. else
  13215. # Extract the first word of ""ecj"", so it can be a program name with args.
  13216. set dummy "ecj"; ac_word=$2
  13217. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13218. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13219. if test "${ac_cv_path_ECJ+set}" = set; then
  13220. echo $ECHO_N "(cached) $ECHO_C" >&6
  13221. else
  13222. case $ECJ in
  13223. [\\/]* | ?:[\\/]*)
  13224. ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
  13225. ;;
  13226. *)
  13227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13228. for as_dir in $PATH
  13229. do
  13230. IFS=$as_save_IFS
  13231. test -z "$as_dir" && as_dir=.
  13232. for ac_exec_ext in '' $ac_executable_extensions; do
  13233. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13234. ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
  13235. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13236. break 2
  13237. fi
  13238. done
  13239. done
  13240. ;;
  13241. esac
  13242. fi
  13243. ECJ=$ac_cv_path_ECJ
  13244. if test -n "$ECJ"; then
  13245. echo "$as_me:$LINENO: result: $ECJ" >&5
  13246. echo "${ECHO_T}$ECJ" >&6
  13247. else
  13248. echo "$as_me:$LINENO: result: no" >&5
  13249. echo "${ECHO_T}no" >&6
  13250. fi
  13251. fi
  13252. fi
  13253. fi
  13254. user_specified_javac=ecj
  13255. else
  13256. if test "x" != x; then
  13257. if test -f ""; then
  13258. ECJ=""
  13259. else
  13260. # Extract the first word of """", so it can be a program name with args.
  13261. set dummy ""; ac_word=$2
  13262. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13263. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13264. if test "${ac_cv_path_ECJ+set}" = set; then
  13265. echo $ECHO_N "(cached) $ECHO_C" >&6
  13266. else
  13267. case $ECJ in
  13268. [\\/]* | ?:[\\/]*)
  13269. ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
  13270. ;;
  13271. *)
  13272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13273. for as_dir in $PATH
  13274. do
  13275. IFS=$as_save_IFS
  13276. test -z "$as_dir" && as_dir=.
  13277. for ac_exec_ext in '' $ac_executable_extensions; do
  13278. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13279. ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
  13280. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13281. break 2
  13282. fi
  13283. done
  13284. done
  13285. ;;
  13286. esac
  13287. fi
  13288. ECJ=$ac_cv_path_ECJ
  13289. if test -n "$ECJ"; then
  13290. echo "$as_me:$LINENO: result: $ECJ" >&5
  13291. echo "${ECHO_T}$ECJ" >&6
  13292. else
  13293. echo "$as_me:$LINENO: result: no" >&5
  13294. echo "${ECHO_T}no" >&6
  13295. fi
  13296. fi
  13297. else
  13298. # Extract the first word of ""ecj"", so it can be a program name with args.
  13299. set dummy "ecj"; ac_word=$2
  13300. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13301. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13302. if test "${ac_cv_path_ECJ+set}" = set; then
  13303. echo $ECHO_N "(cached) $ECHO_C" >&6
  13304. else
  13305. case $ECJ in
  13306. [\\/]* | ?:[\\/]*)
  13307. ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
  13308. ;;
  13309. *)
  13310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13311. for as_dir in $PATH
  13312. do
  13313. IFS=$as_save_IFS
  13314. test -z "$as_dir" && as_dir=.
  13315. for ac_exec_ext in '' $ac_executable_extensions; do
  13316. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13317. ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
  13318. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13319. break 2
  13320. fi
  13321. done
  13322. done
  13323. ;;
  13324. esac
  13325. fi
  13326. ECJ=$ac_cv_path_ECJ
  13327. if test -n "$ECJ"; then
  13328. echo "$as_me:$LINENO: result: $ECJ" >&5
  13329. echo "${ECHO_T}$ECJ" >&6
  13330. else
  13331. echo "$as_me:$LINENO: result: no" >&5
  13332. echo "${ECHO_T}no" >&6
  13333. fi
  13334. fi
  13335. fi;
  13336. if test "x${user_specified_javac}" = x; then
  13337. if test "x${GCJ}" != x; then
  13338. FOUND_GCJ_TRUE=
  13339. FOUND_GCJ_FALSE='#'
  13340. else
  13341. FOUND_GCJ_TRUE='#'
  13342. FOUND_GCJ_FALSE=
  13343. fi
  13344. if test "x${JIKES}" != x; then
  13345. FOUND_JIKES_TRUE=
  13346. FOUND_JIKES_FALSE='#'
  13347. else
  13348. FOUND_JIKES_TRUE='#'
  13349. FOUND_JIKES_FALSE=
  13350. fi
  13351. if test "x${ECJ}" != x; then
  13352. FOUND_ECJ_TRUE=
  13353. FOUND_ECJ_FALSE='#'
  13354. else
  13355. FOUND_ECJ_TRUE='#'
  13356. FOUND_ECJ_FALSE=
  13357. fi
  13358. else
  13359. if test "x${user_specified_javac}" = xgcj; then
  13360. FOUND_GCJ_TRUE=
  13361. FOUND_GCJ_FALSE='#'
  13362. else
  13363. FOUND_GCJ_TRUE='#'
  13364. FOUND_GCJ_FALSE=
  13365. fi
  13366. if test "x${user_specified_javac}" = xjikes; then
  13367. FOUND_JIKES_TRUE=
  13368. FOUND_JIKES_FALSE='#'
  13369. else
  13370. FOUND_JIKES_TRUE='#'
  13371. FOUND_JIKES_FALSE=
  13372. fi
  13373. if test "x${user_specified_javac}" = xecj; then
  13374. FOUND_ECJ_TRUE=
  13375. FOUND_ECJ_FALSE='#'
  13376. else
  13377. FOUND_ECJ_TRUE='#'
  13378. FOUND_ECJ_FALSE=
  13379. fi
  13380. fi
  13381. if test "x${user_specified_javac}" = xkjc; then
  13382. FOUND_KJC_TRUE=
  13383. FOUND_KJC_FALSE='#'
  13384. else
  13385. FOUND_KJC_TRUE='#'
  13386. FOUND_KJC_FALSE=
  13387. fi
  13388. if test "x${user_specified_javac}" = xgcjx; then
  13389. FOUND_GCJX_TRUE=
  13390. FOUND_GCJX_FALSE='#'
  13391. else
  13392. FOUND_GCJX_TRUE='#'
  13393. FOUND_GCJX_FALSE=
  13394. fi
  13395. 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
  13396. { { echo "$as_me:$LINENO: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&5
  13397. echo "$as_me: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&2;}
  13398. { (exit 1); exit 1; }; }
  13399. fi
  13400. # Check whether --with-classpath or --without-classpath was given.
  13401. if test "${with_classpath+set}" = set; then
  13402. withval="$with_classpath"
  13403. if test "x${withval}" = xyes; then
  13404. # set user classpath to CLASSPATH from env
  13405. echo "$as_me:$LINENO: checking for classlib" >&5
  13406. echo $ECHO_N "checking for classlib... $ECHO_C" >&6
  13407. USER_CLASSLIB=${CLASSPATH}
  13408. echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
  13409. echo "${ECHO_T}${USER_CLASSLIB}" >&6
  13410. conditional_with_classlib=true
  13411. elif test "x${withval}" != x && test "x${withval}" != xno; then
  13412. # set user classpath to specified value
  13413. echo "$as_me:$LINENO: checking for classlib" >&5
  13414. echo $ECHO_N "checking for classlib... $ECHO_C" >&6
  13415. USER_CLASSLIB=${withval}
  13416. echo "$as_me:$LINENO: result: ${withval}" >&5
  13417. echo "${ECHO_T}${withval}" >&6
  13418. conditional_with_classlib=true
  13419. fi
  13420. else
  13421. conditional_with_classlib=false
  13422. fi;
  13423. if test "x${conditional_with_classlib}" = xtrue; then
  13424. USER_SPECIFIED_CLASSLIB_TRUE=
  13425. USER_SPECIFIED_CLASSLIB_FALSE='#'
  13426. else
  13427. USER_SPECIFIED_CLASSLIB_TRUE='#'
  13428. USER_SPECIFIED_CLASSLIB_FALSE=
  13429. fi
  13430. # Check whether --with-vm-classes or --without-vm-classes was given.
  13431. if test "${with_vm_classes+set}" = set; then
  13432. withval="$with_vm_classes"
  13433. vm_classes="$with_vm_classes"
  13434. else
  13435. vm_classes='${top_srcdir}/vm/reference'
  13436. fi;
  13437. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  13438. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  13439. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  13440. if test "${enable_maintainer_mode+set}" = set; then
  13441. enableval="$enable_maintainer_mode"
  13442. USE_MAINTAINER_MODE=$enableval
  13443. else
  13444. USE_MAINTAINER_MODE=no
  13445. fi;
  13446. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  13447. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  13448. if test $USE_MAINTAINER_MODE = yes; then
  13449. MAINTAINER_MODE_TRUE=
  13450. MAINTAINER_MODE_FALSE='#'
  13451. else
  13452. MAINTAINER_MODE_TRUE='#'
  13453. MAINTAINER_MODE_FALSE=
  13454. fi
  13455. MAINT=$MAINTAINER_MODE_TRUE
  13456. # Check whether --enable-debug or --disable-debug was given.
  13457. if test "${enable_debug+set}" = set; then
  13458. enableval="$enable_debug"
  13459. case "${enableval}" in
  13460. yes)
  13461. LIBDEBUG="true"
  13462. cat >>confdefs.h <<\_ACEOF
  13463. #define DEBUG 1
  13464. _ACEOF
  13465. ;;
  13466. no) LIBDEBUG="false" ;;
  13467. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
  13468. echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
  13469. { (exit 1); exit 1; }; } ;;
  13470. esac
  13471. else
  13472. LIBDEBUG="false"
  13473. fi;
  13474. # Check whether --enable-load-library or --disable-load-library was given.
  13475. if test "${enable_load_library+set}" = set; then
  13476. enableval="$enable_load_library"
  13477. case "${enableval}" in
  13478. yes) INIT_LOAD_LIBRARY="true" ;;
  13479. no) INIT_LOAD_LIBRARY="false" ;;
  13480. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
  13481. echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
  13482. { (exit 1); exit 1; }; } ;;
  13483. esac
  13484. else
  13485. INIT_LOAD_LIBRARY="true"
  13486. fi;
  13487. # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
  13488. if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
  13489. enableval="$enable_java_lang_system_explicit_initialization"
  13490. case "${enableval}" in
  13491. yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
  13492. no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
  13493. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
  13494. echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
  13495. { (exit 1); exit 1; }; } ;;
  13496. esac
  13497. else
  13498. JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
  13499. fi;
  13500. REMOVE=""
  13501. # Extract the first word of "mkdir", so it can be a program name with args.
  13502. set dummy mkdir; ac_word=$2
  13503. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13504. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13505. if test "${ac_cv_path_MKDIR+set}" = set; then
  13506. echo $ECHO_N "(cached) $ECHO_C" >&6
  13507. else
  13508. case $MKDIR in
  13509. [\\/]* | ?:[\\/]*)
  13510. ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
  13511. ;;
  13512. *)
  13513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13514. for as_dir in $PATH
  13515. do
  13516. IFS=$as_save_IFS
  13517. test -z "$as_dir" && as_dir=.
  13518. for ac_exec_ext in '' $ac_executable_extensions; do
  13519. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13520. ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
  13521. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13522. break 2
  13523. fi
  13524. done
  13525. done
  13526. ;;
  13527. esac
  13528. fi
  13529. MKDIR=$ac_cv_path_MKDIR
  13530. if test -n "$MKDIR"; then
  13531. echo "$as_me:$LINENO: result: $MKDIR" >&5
  13532. echo "${ECHO_T}$MKDIR" >&6
  13533. else
  13534. echo "$as_me:$LINENO: result: no" >&5
  13535. echo "${ECHO_T}no" >&6
  13536. fi
  13537. # Extract the first word of "cp", so it can be a program name with args.
  13538. set dummy cp; ac_word=$2
  13539. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13540. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13541. if test "${ac_cv_path_CP+set}" = set; then
  13542. echo $ECHO_N "(cached) $ECHO_C" >&6
  13543. else
  13544. case $CP in
  13545. [\\/]* | ?:[\\/]*)
  13546. ac_cv_path_CP="$CP" # Let the user override the test with a path.
  13547. ;;
  13548. *)
  13549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13550. for as_dir in $PATH
  13551. do
  13552. IFS=$as_save_IFS
  13553. test -z "$as_dir" && as_dir=.
  13554. for ac_exec_ext in '' $ac_executable_extensions; do
  13555. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13556. ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
  13557. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13558. break 2
  13559. fi
  13560. done
  13561. done
  13562. ;;
  13563. esac
  13564. fi
  13565. CP=$ac_cv_path_CP
  13566. if test -n "$CP"; then
  13567. echo "$as_me:$LINENO: result: $CP" >&5
  13568. echo "${ECHO_T}$CP" >&6
  13569. else
  13570. echo "$as_me:$LINENO: result: no" >&5
  13571. echo "${ECHO_T}no" >&6
  13572. fi
  13573. # Extract the first word of "date", so it can be a program name with args.
  13574. set dummy date; ac_word=$2
  13575. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13576. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13577. if test "${ac_cv_path_DATE+set}" = set; then
  13578. echo $ECHO_N "(cached) $ECHO_C" >&6
  13579. else
  13580. case $DATE in
  13581. [\\/]* | ?:[\\/]*)
  13582. ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
  13583. ;;
  13584. *)
  13585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13586. for as_dir in $PATH
  13587. do
  13588. IFS=$as_save_IFS
  13589. test -z "$as_dir" && as_dir=.
  13590. for ac_exec_ext in '' $ac_executable_extensions; do
  13591. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13592. ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
  13593. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13594. break 2
  13595. fi
  13596. done
  13597. done
  13598. ;;
  13599. esac
  13600. fi
  13601. DATE=$ac_cv_path_DATE
  13602. if test -n "$DATE"; then
  13603. echo "$as_me:$LINENO: result: $DATE" >&5
  13604. echo "${ECHO_T}$DATE" >&6
  13605. else
  13606. echo "$as_me:$LINENO: result: no" >&5
  13607. echo "${ECHO_T}no" >&6
  13608. fi
  13609. # Extract the first word of "find", so it can be a program name with args.
  13610. set dummy find; ac_word=$2
  13611. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13612. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13613. if test "${ac_cv_path_FIND+set}" = set; then
  13614. echo $ECHO_N "(cached) $ECHO_C" >&6
  13615. else
  13616. case $FIND in
  13617. [\\/]* | ?:[\\/]*)
  13618. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  13619. ;;
  13620. *)
  13621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13622. for as_dir in $PATH
  13623. do
  13624. IFS=$as_save_IFS
  13625. test -z "$as_dir" && as_dir=.
  13626. for ac_exec_ext in '' $ac_executable_extensions; do
  13627. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13628. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  13629. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13630. break 2
  13631. fi
  13632. done
  13633. done
  13634. ;;
  13635. esac
  13636. fi
  13637. FIND=$ac_cv_path_FIND
  13638. if test -n "$FIND"; then
  13639. echo "$as_me:$LINENO: result: $FIND" >&5
  13640. echo "${ECHO_T}$FIND" >&6
  13641. else
  13642. echo "$as_me:$LINENO: result: no" >&5
  13643. echo "${ECHO_T}no" >&6
  13644. fi
  13645. # Extract the first word of "zip", so it can be a program name with args.
  13646. set dummy zip; ac_word=$2
  13647. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13648. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13649. if test "${ac_cv_path_ZIP+set}" = set; then
  13650. echo $ECHO_N "(cached) $ECHO_C" >&6
  13651. else
  13652. case $ZIP in
  13653. [\\/]* | ?:[\\/]*)
  13654. ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
  13655. ;;
  13656. *)
  13657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13658. for as_dir in $PATH
  13659. do
  13660. IFS=$as_save_IFS
  13661. test -z "$as_dir" && as_dir=.
  13662. for ac_exec_ext in '' $ac_executable_extensions; do
  13663. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13664. ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
  13665. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13666. break 2
  13667. fi
  13668. done
  13669. done
  13670. ;;
  13671. esac
  13672. fi
  13673. ZIP=$ac_cv_path_ZIP
  13674. if test -n "$ZIP"; then
  13675. echo "$as_me:$LINENO: result: $ZIP" >&5
  13676. echo "${ECHO_T}$ZIP" >&6
  13677. else
  13678. echo "$as_me:$LINENO: result: no" >&5
  13679. echo "${ECHO_T}no" >&6
  13680. fi
  13681. # Check whether --with-fastjar or --without-fastjar was given.
  13682. if test "${with_fastjar+set}" = set; then
  13683. withval="$with_fastjar"
  13684. echo "$as_me:$LINENO: checking for user supplied fastjar" >&5
  13685. echo $ECHO_N "checking for user supplied fastjar... $ECHO_C" >&6
  13686. FASTJAR=${withval}
  13687. echo "$as_me:$LINENO: result: ${FASTJAR}" >&5
  13688. echo "${ECHO_T}${FASTJAR}" >&6
  13689. else
  13690. # Extract the first word of "fastjar", so it can be a program name with args.
  13691. set dummy fastjar; ac_word=$2
  13692. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13693. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13694. if test "${ac_cv_path_FASTJAR+set}" = set; then
  13695. echo $ECHO_N "(cached) $ECHO_C" >&6
  13696. else
  13697. case $FASTJAR in
  13698. [\\/]* | ?:[\\/]*)
  13699. ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
  13700. ;;
  13701. *)
  13702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13703. for as_dir in $PATH
  13704. do
  13705. IFS=$as_save_IFS
  13706. test -z "$as_dir" && as_dir=.
  13707. for ac_exec_ext in '' $ac_executable_extensions; do
  13708. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13709. ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
  13710. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13711. break 2
  13712. fi
  13713. done
  13714. done
  13715. ;;
  13716. esac
  13717. fi
  13718. FASTJAR=$ac_cv_path_FASTJAR
  13719. if test -n "$FASTJAR"; then
  13720. echo "$as_me:$LINENO: result: $FASTJAR" >&5
  13721. echo "${ECHO_T}$FASTJAR" >&6
  13722. else
  13723. echo "$as_me:$LINENO: result: no" >&5
  13724. echo "${ECHO_T}no" >&6
  13725. fi
  13726. fi;
  13727. if test x"${FASTJAR}" != x; then
  13728. ZIP=""
  13729. fi
  13730. # Check whether --with-glibj or --without-glibj was given.
  13731. if test "${with_glibj+set}" = set; then
  13732. withval="$with_glibj"
  13733. if test "x${withval}" = xyes || test "x${withval}" = xzip; then
  13734. install_class_files=no
  13735. build_class_files=yes
  13736. use_zip=yes
  13737. elif test "x${withval}" = xboth; then
  13738. install_class_files=yes
  13739. build_class_files=yes
  13740. use_zip=yes
  13741. elif test "x${withval}" = xflat; then
  13742. install_class_files=yes
  13743. build_class_files=yes
  13744. use_zip=no
  13745. elif test "x${withval}" = xno || test "x${withval}" = xnone; then
  13746. install_class_files=no
  13747. build_class_files=no
  13748. use_zip=no
  13749. elif test "x${withval}" = xbuild; then
  13750. install_class_files=no
  13751. build_class_files=yes
  13752. use_zip=no
  13753. else
  13754. { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
  13755. echo "$as_me: error: unknown value given to --with-glibj" >&2;}
  13756. { (exit 1); exit 1; }; }
  13757. fi
  13758. else
  13759. install_class_files=no
  13760. use_zip=yes
  13761. fi;
  13762. if test "x${use_zip}" = xyes; then
  13763. INSTALL_GLIBJ_ZIP_TRUE=
  13764. INSTALL_GLIBJ_ZIP_FALSE='#'
  13765. else
  13766. INSTALL_GLIBJ_ZIP_TRUE='#'
  13767. INSTALL_GLIBJ_ZIP_FALSE=
  13768. fi
  13769. if test "x${install_class_files}" = xyes; then
  13770. INSTALL_CLASS_FILES_TRUE=
  13771. INSTALL_CLASS_FILES_FALSE='#'
  13772. else
  13773. INSTALL_CLASS_FILES_TRUE='#'
  13774. INSTALL_CLASS_FILES_FALSE=
  13775. fi
  13776. if test "x${build_class_files}" = xyes; then
  13777. BUILD_CLASS_FILES_TRUE=
  13778. BUILD_CLASS_FILES_FALSE='#'
  13779. else
  13780. BUILD_CLASS_FILES_TRUE='#'
  13781. BUILD_CLASS_FILES_FALSE=
  13782. fi
  13783. # Check whether --enable-examples or --disable-examples was given.
  13784. if test "${enable_examples+set}" = set; then
  13785. enableval="$enable_examples"
  13786. case "${enableval}" in
  13787. yes) EXAMPLESDIR="examples" ;;
  13788. no) EXAMPLESDIR="" ;;
  13789. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
  13790. echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
  13791. { (exit 1); exit 1; }; } ;;
  13792. esac
  13793. else
  13794. EXAMPLESDIR="examples"
  13795. fi;
  13796. if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
  13797. EXAMPLESDIR=""
  13798. fi
  13799. # Check whether --with-gjdoc or --without-gjdoc was given.
  13800. if test "${with_gjdoc+set}" = set; then
  13801. withval="$with_gjdoc"
  13802. if test "x${withval}" = xno; then
  13803. WITH_GJDOC=no;
  13804. elif test "x${withval}" = xyes -o "x{withval}" = x; then
  13805. WITH_GJDOC=yes;
  13806. # Extract the first word of "gjdoc", so it can be a program name with args.
  13807. set dummy gjdoc; ac_word=$2
  13808. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13809. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13810. if test "${ac_cv_path_GJDOC+set}" = set; then
  13811. echo $ECHO_N "(cached) $ECHO_C" >&6
  13812. else
  13813. case $GJDOC in
  13814. [\\/]* | ?:[\\/]*)
  13815. ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
  13816. ;;
  13817. *)
  13818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13819. for as_dir in $PATH
  13820. do
  13821. IFS=$as_save_IFS
  13822. test -z "$as_dir" && as_dir=.
  13823. for ac_exec_ext in '' $ac_executable_extensions; do
  13824. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13825. ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
  13826. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13827. break 2
  13828. fi
  13829. done
  13830. done
  13831. test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
  13832. ;;
  13833. esac
  13834. fi
  13835. GJDOC=$ac_cv_path_GJDOC
  13836. if test -n "$GJDOC"; then
  13837. echo "$as_me:$LINENO: result: $GJDOC" >&5
  13838. echo "${ECHO_T}$GJDOC" >&6
  13839. else
  13840. echo "$as_me:$LINENO: result: no" >&5
  13841. echo "${ECHO_T}no" >&6
  13842. fi
  13843. if test "x${GJDOC}" = xno; then
  13844. { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
  13845. echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
  13846. { (exit 1); exit 1; }; };
  13847. fi
  13848. else
  13849. WITH_GJDOC=yes
  13850. GJDOC="${withval}"
  13851. as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
  13852. echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
  13853. echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
  13854. if eval "test \"\${$as_ac_File+set}\" = set"; then
  13855. echo $ECHO_N "(cached) $ECHO_C" >&6
  13856. else
  13857. test "$cross_compiling" = yes &&
  13858. { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  13859. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  13860. { (exit 1); exit 1; }; }
  13861. if test -r "${GJDOC}"; then
  13862. eval "$as_ac_File=yes"
  13863. else
  13864. eval "$as_ac_File=no"
  13865. fi
  13866. fi
  13867. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
  13868. echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
  13869. if test `eval echo '${'$as_ac_File'}'` = yes; then
  13870. :
  13871. else
  13872. { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
  13873. echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
  13874. { (exit 1); exit 1; }; }
  13875. fi
  13876. fi
  13877. else
  13878. WITH_GJDOC=no
  13879. fi;
  13880. if test "x${WITH_GJDOC}" = xyes; then
  13881. CREATE_API_DOCS_TRUE=
  13882. CREATE_API_DOCS_FALSE='#'
  13883. else
  13884. CREATE_API_DOCS_TRUE='#'
  13885. CREATE_API_DOCS_FALSE=
  13886. fi
  13887. # Check whether --with-jay or --without-jay was given.
  13888. if test "${with_jay+set}" = set; then
  13889. withval="$with_jay"
  13890. if test -d "${withval}"; then
  13891. JAY_DIR_PATH="${withval}"
  13892. # Extract the first word of "jay", so it can be a program name with args.
  13893. set dummy jay; ac_word=$2
  13894. echo "$as_me:$LINENO: checking for $ac_word" >&5
  13895. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13896. if test "${ac_cv_path_JAY+set}" = set; then
  13897. echo $ECHO_N "(cached) $ECHO_C" >&6
  13898. else
  13899. case $JAY in
  13900. [\\/]* | ?:[\\/]*)
  13901. ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
  13902. ;;
  13903. *)
  13904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13905. for as_dir in ${JAY_DIR_PATH}
  13906. do
  13907. IFS=$as_save_IFS
  13908. test -z "$as_dir" && as_dir=.
  13909. for ac_exec_ext in '' $ac_executable_extensions; do
  13910. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13911. ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
  13912. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13913. break 2
  13914. fi
  13915. done
  13916. done
  13917. test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
  13918. ;;
  13919. esac
  13920. fi
  13921. JAY=$ac_cv_path_JAY
  13922. if test -n "$JAY"; then
  13923. echo "$as_me:$LINENO: result: $JAY" >&5
  13924. echo "${ECHO_T}$JAY" >&6
  13925. else
  13926. echo "$as_me:$LINENO: result: no" >&5
  13927. echo "${ECHO_T}no" >&6
  13928. fi
  13929. if test "x${JAY}" = xno; then
  13930. { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
  13931. echo "$as_me: error: \"jay executable not found\"" >&2;}
  13932. { (exit 1); exit 1; }; };
  13933. fi
  13934. else
  13935. JAY_DIR_PATH=`dirname "${withval}"`
  13936. JAY="${withval}"
  13937. fi
  13938. JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
  13939. as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
  13940. echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
  13941. echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
  13942. if eval "test \"\${$as_ac_File+set}\" = set"; then
  13943. echo $ECHO_N "(cached) $ECHO_C" >&6
  13944. else
  13945. test "$cross_compiling" = yes &&
  13946. { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  13947. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  13948. { (exit 1); exit 1; }; }
  13949. if test -r "${JAY_SKELETON}"; then
  13950. eval "$as_ac_File=yes"
  13951. else
  13952. eval "$as_ac_File=no"
  13953. fi
  13954. fi
  13955. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
  13956. echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
  13957. if test `eval echo '${'$as_ac_File'}'` = yes; then
  13958. :
  13959. else
  13960. { { echo "$as_me:$LINENO: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&5
  13961. echo "$as_me: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&2;}
  13962. { (exit 1); exit 1; }; }
  13963. fi
  13964. JAY_FOUND=yes
  13965. else
  13966. JAY_FOUND=no
  13967. fi;
  13968. if test "x${JAY_FOUND}" = xyes; then
  13969. REGEN_PARSERS_TRUE=
  13970. REGEN_PARSERS_FALSE='#'
  13971. else
  13972. REGEN_PARSERS_TRUE='#'
  13973. REGEN_PARSERS_FALSE=
  13974. fi
  13975. # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
  13976. if test "${enable_portable_native_sync+set}" = set; then
  13977. enableval="$enable_portable_native_sync"
  13978. case "${enableval}" in
  13979. yes)
  13980. cat >>confdefs.h <<\_ACEOF
  13981. #define PORTABLE_NATIVE_SYNC 1
  13982. _ACEOF
  13983. ;;
  13984. no) ;;
  13985. *)
  13986. { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
  13987. echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
  13988. { (exit 1); exit 1; }; }
  13989. ;;
  13990. esac
  13991. fi;
  13992. # ------ AX CREATE STDINT H -------------------------------------
  13993. echo "$as_me:$LINENO: checking for stdint types" >&5
  13994. echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
  13995. ac_stdint_h=`echo include/config-int.h`
  13996. # try to shortcircuit - if the default include path of the compiler
  13997. # can find a "stdint.h" header then we assume that all compilers can.
  13998. if test "${ac_cv_header_stdint_t+set}" = set; then
  13999. echo $ECHO_N "(cached) $ECHO_C" >&6
  14000. else
  14001. old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
  14002. old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
  14003. old_CFLAGS="$CFLAGS" ; CFLAGS=""
  14004. cat >conftest.$ac_ext <<_ACEOF
  14005. /* confdefs.h. */
  14006. _ACEOF
  14007. cat confdefs.h >>conftest.$ac_ext
  14008. cat >>conftest.$ac_ext <<_ACEOF
  14009. /* end confdefs.h. */
  14010. #include <stdint.h>
  14011. int
  14012. main ()
  14013. {
  14014. int_least32_t v = 0;
  14015. ;
  14016. return 0;
  14017. }
  14018. _ACEOF
  14019. rm -f conftest.$ac_objext
  14020. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14021. (eval $ac_compile) 2>conftest.er1
  14022. ac_status=$?
  14023. grep -v '^ *+' conftest.er1 >conftest.err
  14024. rm -f conftest.er1
  14025. cat conftest.err >&5
  14026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14027. (exit $ac_status); } &&
  14028. { ac_try='test -z "$ac_c_werror_flag"
  14029. || test ! -s conftest.err'
  14030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14031. (eval $ac_try) 2>&5
  14032. ac_status=$?
  14033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14034. (exit $ac_status); }; } &&
  14035. { ac_try='test -s conftest.$ac_objext'
  14036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14037. (eval $ac_try) 2>&5
  14038. ac_status=$?
  14039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14040. (exit $ac_status); }; }; then
  14041. ac_cv_stdint_result="(assuming C99 compatible system)"
  14042. ac_cv_header_stdint_t="stdint.h";
  14043. else
  14044. echo "$as_me: failed program was:" >&5
  14045. sed 's/^/| /' conftest.$ac_ext >&5
  14046. ac_cv_header_stdint_t=""
  14047. fi
  14048. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14049. CXXFLAGS="$old_CXXFLAGS"
  14050. CPPFLAGS="$old_CPPFLAGS"
  14051. CFLAGS="$old_CFLAGS"
  14052. fi
  14053. v="... $ac_cv_header_stdint_h"
  14054. if test "$ac_stdint_h" = "stdint.h" ; then
  14055. echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
  14056. echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
  14057. elif test "$ac_stdint_h" = "inttypes.h" ; then
  14058. echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
  14059. echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
  14060. elif test "_$ac_cv_header_stdint_t" = "_" ; then
  14061. echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
  14062. echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
  14063. else
  14064. ac_cv_header_stdint="$ac_cv_header_stdint_t"
  14065. echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
  14066. echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
  14067. fi
  14068. if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
  14069. inttype_headers=`echo | sed -e 's/,/ /g'`
  14070. ac_cv_stdint_result="(no helpful system typedefs seen)"
  14071. echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
  14072. echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
  14073. if test "${ac_cv_header_stdint_x+set}" = set; then
  14074. echo $ECHO_N "(cached) $ECHO_C" >&6
  14075. else
  14076. ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
  14077. echo "$as_me:$LINENO: result: (..)" >&5
  14078. echo "${ECHO_T}(..)" >&6
  14079. for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
  14080. unset ac_cv_type_uintptr_t
  14081. unset ac_cv_type_uint64_t
  14082. echo "$as_me:$LINENO: checking for uintptr_t" >&5
  14083. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
  14084. if test "${ac_cv_type_uintptr_t+set}" = set; then
  14085. echo $ECHO_N "(cached) $ECHO_C" >&6
  14086. else
  14087. cat >conftest.$ac_ext <<_ACEOF
  14088. /* confdefs.h. */
  14089. _ACEOF
  14090. cat confdefs.h >>conftest.$ac_ext
  14091. cat >>conftest.$ac_ext <<_ACEOF
  14092. /* end confdefs.h. */
  14093. #include <$i>
  14094. int
  14095. main ()
  14096. {
  14097. if ((uintptr_t *) 0)
  14098. return 0;
  14099. if (sizeof (uintptr_t))
  14100. return 0;
  14101. ;
  14102. return 0;
  14103. }
  14104. _ACEOF
  14105. rm -f conftest.$ac_objext
  14106. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14107. (eval $ac_compile) 2>conftest.er1
  14108. ac_status=$?
  14109. grep -v '^ *+' conftest.er1 >conftest.err
  14110. rm -f conftest.er1
  14111. cat conftest.err >&5
  14112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14113. (exit $ac_status); } &&
  14114. { ac_try='test -z "$ac_c_werror_flag"
  14115. || test ! -s conftest.err'
  14116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14117. (eval $ac_try) 2>&5
  14118. ac_status=$?
  14119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14120. (exit $ac_status); }; } &&
  14121. { ac_try='test -s conftest.$ac_objext'
  14122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14123. (eval $ac_try) 2>&5
  14124. ac_status=$?
  14125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14126. (exit $ac_status); }; }; then
  14127. ac_cv_type_uintptr_t=yes
  14128. else
  14129. echo "$as_me: failed program was:" >&5
  14130. sed 's/^/| /' conftest.$ac_ext >&5
  14131. ac_cv_type_uintptr_t=no
  14132. fi
  14133. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14134. fi
  14135. echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  14136. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
  14137. if test $ac_cv_type_uintptr_t = yes; then
  14138. ac_cv_header_stdint_x=$i
  14139. else
  14140. continue
  14141. fi
  14142. echo "$as_me:$LINENO: checking for uint64_t" >&5
  14143. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
  14144. if test "${ac_cv_type_uint64_t+set}" = set; then
  14145. echo $ECHO_N "(cached) $ECHO_C" >&6
  14146. else
  14147. cat >conftest.$ac_ext <<_ACEOF
  14148. /* confdefs.h. */
  14149. _ACEOF
  14150. cat confdefs.h >>conftest.$ac_ext
  14151. cat >>conftest.$ac_ext <<_ACEOF
  14152. /* end confdefs.h. */
  14153. #include<$i>
  14154. int
  14155. main ()
  14156. {
  14157. if ((uint64_t *) 0)
  14158. return 0;
  14159. if (sizeof (uint64_t))
  14160. return 0;
  14161. ;
  14162. return 0;
  14163. }
  14164. _ACEOF
  14165. rm -f conftest.$ac_objext
  14166. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14167. (eval $ac_compile) 2>conftest.er1
  14168. ac_status=$?
  14169. grep -v '^ *+' conftest.er1 >conftest.err
  14170. rm -f conftest.er1
  14171. cat conftest.err >&5
  14172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14173. (exit $ac_status); } &&
  14174. { ac_try='test -z "$ac_c_werror_flag"
  14175. || test ! -s conftest.err'
  14176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14177. (eval $ac_try) 2>&5
  14178. ac_status=$?
  14179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14180. (exit $ac_status); }; } &&
  14181. { ac_try='test -s conftest.$ac_objext'
  14182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14183. (eval $ac_try) 2>&5
  14184. ac_status=$?
  14185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14186. (exit $ac_status); }; }; then
  14187. ac_cv_type_uint64_t=yes
  14188. else
  14189. echo "$as_me: failed program was:" >&5
  14190. sed 's/^/| /' conftest.$ac_ext >&5
  14191. ac_cv_type_uint64_t=no
  14192. fi
  14193. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14194. fi
  14195. echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  14196. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
  14197. if test $ac_cv_type_uint64_t = yes; then
  14198. and64="/uint64_t"
  14199. else
  14200. and64=""
  14201. fi
  14202. stdint.h inttypes.h sys/inttypes.h $inttype_headers
  14203. break
  14204. done
  14205. echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
  14206. echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
  14207. fi
  14208. echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
  14209. echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
  14210. if test "_$ac_cv_header_stdint_x" = "_" ; then
  14211. echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
  14212. echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
  14213. if test "${ac_cv_header_stdint_o+set}" = set; then
  14214. echo $ECHO_N "(cached) $ECHO_C" >&6
  14215. else
  14216. ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
  14217. echo "$as_me:$LINENO: result: (..)" >&5
  14218. echo "${ECHO_T}(..)" >&6
  14219. for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
  14220. unset ac_cv_type_uint32_t
  14221. unset ac_cv_type_uint64_t
  14222. echo "$as_me:$LINENO: checking for uint32_t" >&5
  14223. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
  14224. if test "${ac_cv_type_uint32_t+set}" = set; then
  14225. echo $ECHO_N "(cached) $ECHO_C" >&6
  14226. else
  14227. cat >conftest.$ac_ext <<_ACEOF
  14228. /* confdefs.h. */
  14229. _ACEOF
  14230. cat confdefs.h >>conftest.$ac_ext
  14231. cat >>conftest.$ac_ext <<_ACEOF
  14232. /* end confdefs.h. */
  14233. #include <$i>
  14234. int
  14235. main ()
  14236. {
  14237. if ((uint32_t *) 0)
  14238. return 0;
  14239. if (sizeof (uint32_t))
  14240. return 0;
  14241. ;
  14242. return 0;
  14243. }
  14244. _ACEOF
  14245. rm -f conftest.$ac_objext
  14246. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14247. (eval $ac_compile) 2>conftest.er1
  14248. ac_status=$?
  14249. grep -v '^ *+' conftest.er1 >conftest.err
  14250. rm -f conftest.er1
  14251. cat conftest.err >&5
  14252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14253. (exit $ac_status); } &&
  14254. { ac_try='test -z "$ac_c_werror_flag"
  14255. || test ! -s conftest.err'
  14256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14257. (eval $ac_try) 2>&5
  14258. ac_status=$?
  14259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14260. (exit $ac_status); }; } &&
  14261. { ac_try='test -s conftest.$ac_objext'
  14262. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14263. (eval $ac_try) 2>&5
  14264. ac_status=$?
  14265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14266. (exit $ac_status); }; }; then
  14267. ac_cv_type_uint32_t=yes
  14268. else
  14269. echo "$as_me: failed program was:" >&5
  14270. sed 's/^/| /' conftest.$ac_ext >&5
  14271. ac_cv_type_uint32_t=no
  14272. fi
  14273. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14274. fi
  14275. echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  14276. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
  14277. if test $ac_cv_type_uint32_t = yes; then
  14278. ac_cv_header_stdint_o=$i
  14279. else
  14280. continue
  14281. fi
  14282. echo "$as_me:$LINENO: checking for uint64_t" >&5
  14283. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
  14284. if test "${ac_cv_type_uint64_t+set}" = set; then
  14285. echo $ECHO_N "(cached) $ECHO_C" >&6
  14286. else
  14287. cat >conftest.$ac_ext <<_ACEOF
  14288. /* confdefs.h. */
  14289. _ACEOF
  14290. cat confdefs.h >>conftest.$ac_ext
  14291. cat >>conftest.$ac_ext <<_ACEOF
  14292. /* end confdefs.h. */
  14293. #include<$i>
  14294. int
  14295. main ()
  14296. {
  14297. if ((uint64_t *) 0)
  14298. return 0;
  14299. if (sizeof (uint64_t))
  14300. return 0;
  14301. ;
  14302. return 0;
  14303. }
  14304. _ACEOF
  14305. rm -f conftest.$ac_objext
  14306. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14307. (eval $ac_compile) 2>conftest.er1
  14308. ac_status=$?
  14309. grep -v '^ *+' conftest.er1 >conftest.err
  14310. rm -f conftest.er1
  14311. cat conftest.err >&5
  14312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14313. (exit $ac_status); } &&
  14314. { ac_try='test -z "$ac_c_werror_flag"
  14315. || test ! -s conftest.err'
  14316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14317. (eval $ac_try) 2>&5
  14318. ac_status=$?
  14319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14320. (exit $ac_status); }; } &&
  14321. { ac_try='test -s conftest.$ac_objext'
  14322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14323. (eval $ac_try) 2>&5
  14324. ac_status=$?
  14325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14326. (exit $ac_status); }; }; then
  14327. ac_cv_type_uint64_t=yes
  14328. else
  14329. echo "$as_me: failed program was:" >&5
  14330. sed 's/^/| /' conftest.$ac_ext >&5
  14331. ac_cv_type_uint64_t=no
  14332. fi
  14333. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14334. fi
  14335. echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  14336. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
  14337. if test $ac_cv_type_uint64_t = yes; then
  14338. and64="/uint64_t"
  14339. else
  14340. and64=""
  14341. fi
  14342. inttypes.h sys/inttypes.h stdint.h $inttype_headers
  14343. break
  14344. break;
  14345. done
  14346. echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
  14347. echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
  14348. fi
  14349. echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
  14350. echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
  14351. fi
  14352. if test "_$ac_cv_header_stdint_x" = "_" ; then
  14353. if test "_$ac_cv_header_stdint_o" = "_" ; then
  14354. echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
  14355. echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
  14356. if test "${ac_cv_header_stdint_u+set}" = set; then
  14357. echo $ECHO_N "(cached) $ECHO_C" >&6
  14358. else
  14359. ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
  14360. echo "$as_me:$LINENO: result: (..)" >&5
  14361. echo "${ECHO_T}(..)" >&6
  14362. for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
  14363. unset ac_cv_type_u_int32_t
  14364. unset ac_cv_type_u_int64_t
  14365. echo "$as_me:$LINENO: checking for u_int32_t" >&5
  14366. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
  14367. if test "${ac_cv_type_u_int32_t+set}" = set; then
  14368. echo $ECHO_N "(cached) $ECHO_C" >&6
  14369. else
  14370. cat >conftest.$ac_ext <<_ACEOF
  14371. /* confdefs.h. */
  14372. _ACEOF
  14373. cat confdefs.h >>conftest.$ac_ext
  14374. cat >>conftest.$ac_ext <<_ACEOF
  14375. /* end confdefs.h. */
  14376. #include <$i>
  14377. int
  14378. main ()
  14379. {
  14380. if ((u_int32_t *) 0)
  14381. return 0;
  14382. if (sizeof (u_int32_t))
  14383. return 0;
  14384. ;
  14385. return 0;
  14386. }
  14387. _ACEOF
  14388. rm -f conftest.$ac_objext
  14389. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14390. (eval $ac_compile) 2>conftest.er1
  14391. ac_status=$?
  14392. grep -v '^ *+' conftest.er1 >conftest.err
  14393. rm -f conftest.er1
  14394. cat conftest.err >&5
  14395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14396. (exit $ac_status); } &&
  14397. { ac_try='test -z "$ac_c_werror_flag"
  14398. || test ! -s conftest.err'
  14399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14400. (eval $ac_try) 2>&5
  14401. ac_status=$?
  14402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14403. (exit $ac_status); }; } &&
  14404. { ac_try='test -s conftest.$ac_objext'
  14405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14406. (eval $ac_try) 2>&5
  14407. ac_status=$?
  14408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14409. (exit $ac_status); }; }; then
  14410. ac_cv_type_u_int32_t=yes
  14411. else
  14412. echo "$as_me: failed program was:" >&5
  14413. sed 's/^/| /' conftest.$ac_ext >&5
  14414. ac_cv_type_u_int32_t=no
  14415. fi
  14416. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14417. fi
  14418. echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  14419. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
  14420. if test $ac_cv_type_u_int32_t = yes; then
  14421. ac_cv_header_stdint_u=$i
  14422. else
  14423. continue
  14424. fi
  14425. echo "$as_me:$LINENO: checking for u_int64_t" >&5
  14426. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
  14427. if test "${ac_cv_type_u_int64_t+set}" = set; then
  14428. echo $ECHO_N "(cached) $ECHO_C" >&6
  14429. else
  14430. cat >conftest.$ac_ext <<_ACEOF
  14431. /* confdefs.h. */
  14432. _ACEOF
  14433. cat confdefs.h >>conftest.$ac_ext
  14434. cat >>conftest.$ac_ext <<_ACEOF
  14435. /* end confdefs.h. */
  14436. #include<$i>
  14437. int
  14438. main ()
  14439. {
  14440. if ((u_int64_t *) 0)
  14441. return 0;
  14442. if (sizeof (u_int64_t))
  14443. return 0;
  14444. ;
  14445. return 0;
  14446. }
  14447. _ACEOF
  14448. rm -f conftest.$ac_objext
  14449. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14450. (eval $ac_compile) 2>conftest.er1
  14451. ac_status=$?
  14452. grep -v '^ *+' conftest.er1 >conftest.err
  14453. rm -f conftest.er1
  14454. cat conftest.err >&5
  14455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14456. (exit $ac_status); } &&
  14457. { ac_try='test -z "$ac_c_werror_flag"
  14458. || test ! -s conftest.err'
  14459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14460. (eval $ac_try) 2>&5
  14461. ac_status=$?
  14462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14463. (exit $ac_status); }; } &&
  14464. { ac_try='test -s conftest.$ac_objext'
  14465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14466. (eval $ac_try) 2>&5
  14467. ac_status=$?
  14468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14469. (exit $ac_status); }; }; then
  14470. ac_cv_type_u_int64_t=yes
  14471. else
  14472. echo "$as_me: failed program was:" >&5
  14473. sed 's/^/| /' conftest.$ac_ext >&5
  14474. ac_cv_type_u_int64_t=no
  14475. fi
  14476. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14477. fi
  14478. echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  14479. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
  14480. if test $ac_cv_type_u_int64_t = yes; then
  14481. and64="/u_int64_t"
  14482. else
  14483. and64=""
  14484. fi
  14485. sys/types.h inttypes.h sys/inttypes.h $inttype_headers
  14486. break
  14487. break;
  14488. done
  14489. echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
  14490. echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
  14491. fi
  14492. echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
  14493. echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
  14494. fi fi
  14495. if test "_$ac_cv_header_stdint_x" = "_" ; then
  14496. echo "$as_me:$LINENO: checking for stdint datatype model" >&5
  14497. echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
  14498. echo "$as_me:$LINENO: result: (..)" >&5
  14499. echo "${ECHO_T}(..)" >&6
  14500. echo "$as_me:$LINENO: checking for char" >&5
  14501. echo $ECHO_N "checking for char... $ECHO_C" >&6
  14502. if test "${ac_cv_type_char+set}" = set; then
  14503. echo $ECHO_N "(cached) $ECHO_C" >&6
  14504. else
  14505. cat >conftest.$ac_ext <<_ACEOF
  14506. /* confdefs.h. */
  14507. _ACEOF
  14508. cat confdefs.h >>conftest.$ac_ext
  14509. cat >>conftest.$ac_ext <<_ACEOF
  14510. /* end confdefs.h. */
  14511. $ac_includes_default
  14512. int
  14513. main ()
  14514. {
  14515. if ((char *) 0)
  14516. return 0;
  14517. if (sizeof (char))
  14518. return 0;
  14519. ;
  14520. return 0;
  14521. }
  14522. _ACEOF
  14523. rm -f conftest.$ac_objext
  14524. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14525. (eval $ac_compile) 2>conftest.er1
  14526. ac_status=$?
  14527. grep -v '^ *+' conftest.er1 >conftest.err
  14528. rm -f conftest.er1
  14529. cat conftest.err >&5
  14530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14531. (exit $ac_status); } &&
  14532. { ac_try='test -z "$ac_c_werror_flag"
  14533. || test ! -s conftest.err'
  14534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14535. (eval $ac_try) 2>&5
  14536. ac_status=$?
  14537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14538. (exit $ac_status); }; } &&
  14539. { ac_try='test -s conftest.$ac_objext'
  14540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14541. (eval $ac_try) 2>&5
  14542. ac_status=$?
  14543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14544. (exit $ac_status); }; }; then
  14545. ac_cv_type_char=yes
  14546. else
  14547. echo "$as_me: failed program was:" >&5
  14548. sed 's/^/| /' conftest.$ac_ext >&5
  14549. ac_cv_type_char=no
  14550. fi
  14551. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14552. fi
  14553. echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
  14554. echo "${ECHO_T}$ac_cv_type_char" >&6
  14555. echo "$as_me:$LINENO: checking size of char" >&5
  14556. echo $ECHO_N "checking size of char... $ECHO_C" >&6
  14557. if test "${ac_cv_sizeof_char+set}" = set; then
  14558. echo $ECHO_N "(cached) $ECHO_C" >&6
  14559. else
  14560. if test "$ac_cv_type_char" = yes; then
  14561. # The cast to unsigned long works around a bug in the HP C Compiler
  14562. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14563. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14564. # This bug is HP SR number 8606223364.
  14565. if test "$cross_compiling" = yes; then
  14566. # Depending upon the size, compute the lo and hi bounds.
  14567. cat >conftest.$ac_ext <<_ACEOF
  14568. /* confdefs.h. */
  14569. _ACEOF
  14570. cat confdefs.h >>conftest.$ac_ext
  14571. cat >>conftest.$ac_ext <<_ACEOF
  14572. /* end confdefs.h. */
  14573. $ac_includes_default
  14574. int
  14575. main ()
  14576. {
  14577. static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
  14578. test_array [0] = 0
  14579. ;
  14580. return 0;
  14581. }
  14582. _ACEOF
  14583. rm -f conftest.$ac_objext
  14584. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14585. (eval $ac_compile) 2>conftest.er1
  14586. ac_status=$?
  14587. grep -v '^ *+' conftest.er1 >conftest.err
  14588. rm -f conftest.er1
  14589. cat conftest.err >&5
  14590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14591. (exit $ac_status); } &&
  14592. { ac_try='test -z "$ac_c_werror_flag"
  14593. || test ! -s conftest.err'
  14594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14595. (eval $ac_try) 2>&5
  14596. ac_status=$?
  14597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14598. (exit $ac_status); }; } &&
  14599. { ac_try='test -s conftest.$ac_objext'
  14600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14601. (eval $ac_try) 2>&5
  14602. ac_status=$?
  14603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14604. (exit $ac_status); }; }; then
  14605. ac_lo=0 ac_mid=0
  14606. while :; do
  14607. cat >conftest.$ac_ext <<_ACEOF
  14608. /* confdefs.h. */
  14609. _ACEOF
  14610. cat confdefs.h >>conftest.$ac_ext
  14611. cat >>conftest.$ac_ext <<_ACEOF
  14612. /* end confdefs.h. */
  14613. $ac_includes_default
  14614. int
  14615. main ()
  14616. {
  14617. static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
  14618. test_array [0] = 0
  14619. ;
  14620. return 0;
  14621. }
  14622. _ACEOF
  14623. rm -f conftest.$ac_objext
  14624. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14625. (eval $ac_compile) 2>conftest.er1
  14626. ac_status=$?
  14627. grep -v '^ *+' conftest.er1 >conftest.err
  14628. rm -f conftest.er1
  14629. cat conftest.err >&5
  14630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14631. (exit $ac_status); } &&
  14632. { ac_try='test -z "$ac_c_werror_flag"
  14633. || test ! -s conftest.err'
  14634. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14635. (eval $ac_try) 2>&5
  14636. ac_status=$?
  14637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14638. (exit $ac_status); }; } &&
  14639. { ac_try='test -s conftest.$ac_objext'
  14640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14641. (eval $ac_try) 2>&5
  14642. ac_status=$?
  14643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14644. (exit $ac_status); }; }; then
  14645. ac_hi=$ac_mid; break
  14646. else
  14647. echo "$as_me: failed program was:" >&5
  14648. sed 's/^/| /' conftest.$ac_ext >&5
  14649. ac_lo=`expr $ac_mid + 1`
  14650. if test $ac_lo -le $ac_mid; then
  14651. ac_lo= ac_hi=
  14652. break
  14653. fi
  14654. ac_mid=`expr 2 '*' $ac_mid + 1`
  14655. fi
  14656. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14657. done
  14658. else
  14659. echo "$as_me: failed program was:" >&5
  14660. sed 's/^/| /' conftest.$ac_ext >&5
  14661. cat >conftest.$ac_ext <<_ACEOF
  14662. /* confdefs.h. */
  14663. _ACEOF
  14664. cat confdefs.h >>conftest.$ac_ext
  14665. cat >>conftest.$ac_ext <<_ACEOF
  14666. /* end confdefs.h. */
  14667. $ac_includes_default
  14668. int
  14669. main ()
  14670. {
  14671. static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
  14672. test_array [0] = 0
  14673. ;
  14674. return 0;
  14675. }
  14676. _ACEOF
  14677. rm -f conftest.$ac_objext
  14678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14679. (eval $ac_compile) 2>conftest.er1
  14680. ac_status=$?
  14681. grep -v '^ *+' conftest.er1 >conftest.err
  14682. rm -f conftest.er1
  14683. cat conftest.err >&5
  14684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14685. (exit $ac_status); } &&
  14686. { ac_try='test -z "$ac_c_werror_flag"
  14687. || test ! -s conftest.err'
  14688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14689. (eval $ac_try) 2>&5
  14690. ac_status=$?
  14691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14692. (exit $ac_status); }; } &&
  14693. { ac_try='test -s conftest.$ac_objext'
  14694. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14695. (eval $ac_try) 2>&5
  14696. ac_status=$?
  14697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14698. (exit $ac_status); }; }; then
  14699. ac_hi=-1 ac_mid=-1
  14700. while :; do
  14701. cat >conftest.$ac_ext <<_ACEOF
  14702. /* confdefs.h. */
  14703. _ACEOF
  14704. cat confdefs.h >>conftest.$ac_ext
  14705. cat >>conftest.$ac_ext <<_ACEOF
  14706. /* end confdefs.h. */
  14707. $ac_includes_default
  14708. int
  14709. main ()
  14710. {
  14711. static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
  14712. test_array [0] = 0
  14713. ;
  14714. return 0;
  14715. }
  14716. _ACEOF
  14717. rm -f conftest.$ac_objext
  14718. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14719. (eval $ac_compile) 2>conftest.er1
  14720. ac_status=$?
  14721. grep -v '^ *+' conftest.er1 >conftest.err
  14722. rm -f conftest.er1
  14723. cat conftest.err >&5
  14724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14725. (exit $ac_status); } &&
  14726. { ac_try='test -z "$ac_c_werror_flag"
  14727. || test ! -s conftest.err'
  14728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14729. (eval $ac_try) 2>&5
  14730. ac_status=$?
  14731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14732. (exit $ac_status); }; } &&
  14733. { ac_try='test -s conftest.$ac_objext'
  14734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14735. (eval $ac_try) 2>&5
  14736. ac_status=$?
  14737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14738. (exit $ac_status); }; }; then
  14739. ac_lo=$ac_mid; break
  14740. else
  14741. echo "$as_me: failed program was:" >&5
  14742. sed 's/^/| /' conftest.$ac_ext >&5
  14743. ac_hi=`expr '(' $ac_mid ')' - 1`
  14744. if test $ac_mid -le $ac_hi; then
  14745. ac_lo= ac_hi=
  14746. break
  14747. fi
  14748. ac_mid=`expr 2 '*' $ac_mid`
  14749. fi
  14750. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14751. done
  14752. else
  14753. echo "$as_me: failed program was:" >&5
  14754. sed 's/^/| /' conftest.$ac_ext >&5
  14755. ac_lo= ac_hi=
  14756. fi
  14757. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14758. fi
  14759. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14760. # Binary search between lo and hi bounds.
  14761. while test "x$ac_lo" != "x$ac_hi"; do
  14762. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14763. cat >conftest.$ac_ext <<_ACEOF
  14764. /* confdefs.h. */
  14765. _ACEOF
  14766. cat confdefs.h >>conftest.$ac_ext
  14767. cat >>conftest.$ac_ext <<_ACEOF
  14768. /* end confdefs.h. */
  14769. $ac_includes_default
  14770. int
  14771. main ()
  14772. {
  14773. static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
  14774. test_array [0] = 0
  14775. ;
  14776. return 0;
  14777. }
  14778. _ACEOF
  14779. rm -f conftest.$ac_objext
  14780. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14781. (eval $ac_compile) 2>conftest.er1
  14782. ac_status=$?
  14783. grep -v '^ *+' conftest.er1 >conftest.err
  14784. rm -f conftest.er1
  14785. cat conftest.err >&5
  14786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14787. (exit $ac_status); } &&
  14788. { ac_try='test -z "$ac_c_werror_flag"
  14789. || test ! -s conftest.err'
  14790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14791. (eval $ac_try) 2>&5
  14792. ac_status=$?
  14793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14794. (exit $ac_status); }; } &&
  14795. { ac_try='test -s conftest.$ac_objext'
  14796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14797. (eval $ac_try) 2>&5
  14798. ac_status=$?
  14799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14800. (exit $ac_status); }; }; then
  14801. ac_hi=$ac_mid
  14802. else
  14803. echo "$as_me: failed program was:" >&5
  14804. sed 's/^/| /' conftest.$ac_ext >&5
  14805. ac_lo=`expr '(' $ac_mid ')' + 1`
  14806. fi
  14807. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14808. done
  14809. case $ac_lo in
  14810. ?*) ac_cv_sizeof_char=$ac_lo;;
  14811. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
  14812. See \`config.log' for more details." >&5
  14813. echo "$as_me: error: cannot compute sizeof (char), 77
  14814. See \`config.log' for more details." >&2;}
  14815. { (exit 1); exit 1; }; } ;;
  14816. esac
  14817. else
  14818. if test "$cross_compiling" = yes; then
  14819. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  14820. See \`config.log' for more details." >&5
  14821. echo "$as_me: error: cannot run test program while cross compiling
  14822. See \`config.log' for more details." >&2;}
  14823. { (exit 1); exit 1; }; }
  14824. else
  14825. cat >conftest.$ac_ext <<_ACEOF
  14826. /* confdefs.h. */
  14827. _ACEOF
  14828. cat confdefs.h >>conftest.$ac_ext
  14829. cat >>conftest.$ac_ext <<_ACEOF
  14830. /* end confdefs.h. */
  14831. $ac_includes_default
  14832. long longval () { return (long) (sizeof (char)); }
  14833. unsigned long ulongval () { return (long) (sizeof (char)); }
  14834. #include <stdio.h>
  14835. #include <stdlib.h>
  14836. int
  14837. main ()
  14838. {
  14839. FILE *f = fopen ("conftest.val", "w");
  14840. if (! f)
  14841. exit (1);
  14842. if (((long) (sizeof (char))) < 0)
  14843. {
  14844. long i = longval ();
  14845. if (i != ((long) (sizeof (char))))
  14846. exit (1);
  14847. fprintf (f, "%ld\n", i);
  14848. }
  14849. else
  14850. {
  14851. unsigned long i = ulongval ();
  14852. if (i != ((long) (sizeof (char))))
  14853. exit (1);
  14854. fprintf (f, "%lu\n", i);
  14855. }
  14856. exit (ferror (f) || fclose (f) != 0);
  14857. ;
  14858. return 0;
  14859. }
  14860. _ACEOF
  14861. rm -f conftest$ac_exeext
  14862. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14863. (eval $ac_link) 2>&5
  14864. ac_status=$?
  14865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14866. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14868. (eval $ac_try) 2>&5
  14869. ac_status=$?
  14870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14871. (exit $ac_status); }; }; then
  14872. ac_cv_sizeof_char=`cat conftest.val`
  14873. else
  14874. echo "$as_me: program exited with status $ac_status" >&5
  14875. echo "$as_me: failed program was:" >&5
  14876. sed 's/^/| /' conftest.$ac_ext >&5
  14877. ( exit $ac_status )
  14878. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
  14879. See \`config.log' for more details." >&5
  14880. echo "$as_me: error: cannot compute sizeof (char), 77
  14881. See \`config.log' for more details." >&2;}
  14882. { (exit 1); exit 1; }; }
  14883. fi
  14884. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14885. fi
  14886. fi
  14887. rm -f conftest.val
  14888. else
  14889. ac_cv_sizeof_char=0
  14890. fi
  14891. fi
  14892. echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
  14893. echo "${ECHO_T}$ac_cv_sizeof_char" >&6
  14894. cat >>confdefs.h <<_ACEOF
  14895. #define SIZEOF_CHAR $ac_cv_sizeof_char
  14896. _ACEOF
  14897. echo "$as_me:$LINENO: checking for short" >&5
  14898. echo $ECHO_N "checking for short... $ECHO_C" >&6
  14899. if test "${ac_cv_type_short+set}" = set; then
  14900. echo $ECHO_N "(cached) $ECHO_C" >&6
  14901. else
  14902. cat >conftest.$ac_ext <<_ACEOF
  14903. /* confdefs.h. */
  14904. _ACEOF
  14905. cat confdefs.h >>conftest.$ac_ext
  14906. cat >>conftest.$ac_ext <<_ACEOF
  14907. /* end confdefs.h. */
  14908. $ac_includes_default
  14909. int
  14910. main ()
  14911. {
  14912. if ((short *) 0)
  14913. return 0;
  14914. if (sizeof (short))
  14915. return 0;
  14916. ;
  14917. return 0;
  14918. }
  14919. _ACEOF
  14920. rm -f conftest.$ac_objext
  14921. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14922. (eval $ac_compile) 2>conftest.er1
  14923. ac_status=$?
  14924. grep -v '^ *+' conftest.er1 >conftest.err
  14925. rm -f conftest.er1
  14926. cat conftest.err >&5
  14927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14928. (exit $ac_status); } &&
  14929. { ac_try='test -z "$ac_c_werror_flag"
  14930. || test ! -s conftest.err'
  14931. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14932. (eval $ac_try) 2>&5
  14933. ac_status=$?
  14934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14935. (exit $ac_status); }; } &&
  14936. { ac_try='test -s conftest.$ac_objext'
  14937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14938. (eval $ac_try) 2>&5
  14939. ac_status=$?
  14940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14941. (exit $ac_status); }; }; then
  14942. ac_cv_type_short=yes
  14943. else
  14944. echo "$as_me: failed program was:" >&5
  14945. sed 's/^/| /' conftest.$ac_ext >&5
  14946. ac_cv_type_short=no
  14947. fi
  14948. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14949. fi
  14950. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  14951. echo "${ECHO_T}$ac_cv_type_short" >&6
  14952. echo "$as_me:$LINENO: checking size of short" >&5
  14953. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  14954. if test "${ac_cv_sizeof_short+set}" = set; then
  14955. echo $ECHO_N "(cached) $ECHO_C" >&6
  14956. else
  14957. if test "$ac_cv_type_short" = yes; then
  14958. # The cast to unsigned long works around a bug in the HP C Compiler
  14959. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14960. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14961. # This bug is HP SR number 8606223364.
  14962. if test "$cross_compiling" = yes; then
  14963. # Depending upon the size, compute the lo and hi bounds.
  14964. cat >conftest.$ac_ext <<_ACEOF
  14965. /* confdefs.h. */
  14966. _ACEOF
  14967. cat confdefs.h >>conftest.$ac_ext
  14968. cat >>conftest.$ac_ext <<_ACEOF
  14969. /* end confdefs.h. */
  14970. $ac_includes_default
  14971. int
  14972. main ()
  14973. {
  14974. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  14975. test_array [0] = 0
  14976. ;
  14977. return 0;
  14978. }
  14979. _ACEOF
  14980. rm -f conftest.$ac_objext
  14981. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14982. (eval $ac_compile) 2>conftest.er1
  14983. ac_status=$?
  14984. grep -v '^ *+' conftest.er1 >conftest.err
  14985. rm -f conftest.er1
  14986. cat conftest.err >&5
  14987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14988. (exit $ac_status); } &&
  14989. { ac_try='test -z "$ac_c_werror_flag"
  14990. || test ! -s conftest.err'
  14991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14992. (eval $ac_try) 2>&5
  14993. ac_status=$?
  14994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14995. (exit $ac_status); }; } &&
  14996. { ac_try='test -s conftest.$ac_objext'
  14997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14998. (eval $ac_try) 2>&5
  14999. ac_status=$?
  15000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15001. (exit $ac_status); }; }; then
  15002. ac_lo=0 ac_mid=0
  15003. while :; do
  15004. cat >conftest.$ac_ext <<_ACEOF
  15005. /* confdefs.h. */
  15006. _ACEOF
  15007. cat confdefs.h >>conftest.$ac_ext
  15008. cat >>conftest.$ac_ext <<_ACEOF
  15009. /* end confdefs.h. */
  15010. $ac_includes_default
  15011. int
  15012. main ()
  15013. {
  15014. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  15015. test_array [0] = 0
  15016. ;
  15017. return 0;
  15018. }
  15019. _ACEOF
  15020. rm -f conftest.$ac_objext
  15021. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15022. (eval $ac_compile) 2>conftest.er1
  15023. ac_status=$?
  15024. grep -v '^ *+' conftest.er1 >conftest.err
  15025. rm -f conftest.er1
  15026. cat conftest.err >&5
  15027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15028. (exit $ac_status); } &&
  15029. { ac_try='test -z "$ac_c_werror_flag"
  15030. || test ! -s conftest.err'
  15031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15032. (eval $ac_try) 2>&5
  15033. ac_status=$?
  15034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15035. (exit $ac_status); }; } &&
  15036. { ac_try='test -s conftest.$ac_objext'
  15037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15038. (eval $ac_try) 2>&5
  15039. ac_status=$?
  15040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15041. (exit $ac_status); }; }; then
  15042. ac_hi=$ac_mid; break
  15043. else
  15044. echo "$as_me: failed program was:" >&5
  15045. sed 's/^/| /' conftest.$ac_ext >&5
  15046. ac_lo=`expr $ac_mid + 1`
  15047. if test $ac_lo -le $ac_mid; then
  15048. ac_lo= ac_hi=
  15049. break
  15050. fi
  15051. ac_mid=`expr 2 '*' $ac_mid + 1`
  15052. fi
  15053. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15054. done
  15055. else
  15056. echo "$as_me: failed program was:" >&5
  15057. sed 's/^/| /' conftest.$ac_ext >&5
  15058. cat >conftest.$ac_ext <<_ACEOF
  15059. /* confdefs.h. */
  15060. _ACEOF
  15061. cat confdefs.h >>conftest.$ac_ext
  15062. cat >>conftest.$ac_ext <<_ACEOF
  15063. /* end confdefs.h. */
  15064. $ac_includes_default
  15065. int
  15066. main ()
  15067. {
  15068. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  15069. test_array [0] = 0
  15070. ;
  15071. return 0;
  15072. }
  15073. _ACEOF
  15074. rm -f conftest.$ac_objext
  15075. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15076. (eval $ac_compile) 2>conftest.er1
  15077. ac_status=$?
  15078. grep -v '^ *+' conftest.er1 >conftest.err
  15079. rm -f conftest.er1
  15080. cat conftest.err >&5
  15081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15082. (exit $ac_status); } &&
  15083. { ac_try='test -z "$ac_c_werror_flag"
  15084. || test ! -s conftest.err'
  15085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15086. (eval $ac_try) 2>&5
  15087. ac_status=$?
  15088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15089. (exit $ac_status); }; } &&
  15090. { ac_try='test -s conftest.$ac_objext'
  15091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15092. (eval $ac_try) 2>&5
  15093. ac_status=$?
  15094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15095. (exit $ac_status); }; }; then
  15096. ac_hi=-1 ac_mid=-1
  15097. while :; do
  15098. cat >conftest.$ac_ext <<_ACEOF
  15099. /* confdefs.h. */
  15100. _ACEOF
  15101. cat confdefs.h >>conftest.$ac_ext
  15102. cat >>conftest.$ac_ext <<_ACEOF
  15103. /* end confdefs.h. */
  15104. $ac_includes_default
  15105. int
  15106. main ()
  15107. {
  15108. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  15109. test_array [0] = 0
  15110. ;
  15111. return 0;
  15112. }
  15113. _ACEOF
  15114. rm -f conftest.$ac_objext
  15115. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15116. (eval $ac_compile) 2>conftest.er1
  15117. ac_status=$?
  15118. grep -v '^ *+' conftest.er1 >conftest.err
  15119. rm -f conftest.er1
  15120. cat conftest.err >&5
  15121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15122. (exit $ac_status); } &&
  15123. { ac_try='test -z "$ac_c_werror_flag"
  15124. || test ! -s conftest.err'
  15125. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15126. (eval $ac_try) 2>&5
  15127. ac_status=$?
  15128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15129. (exit $ac_status); }; } &&
  15130. { ac_try='test -s conftest.$ac_objext'
  15131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15132. (eval $ac_try) 2>&5
  15133. ac_status=$?
  15134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15135. (exit $ac_status); }; }; then
  15136. ac_lo=$ac_mid; break
  15137. else
  15138. echo "$as_me: failed program was:" >&5
  15139. sed 's/^/| /' conftest.$ac_ext >&5
  15140. ac_hi=`expr '(' $ac_mid ')' - 1`
  15141. if test $ac_mid -le $ac_hi; then
  15142. ac_lo= ac_hi=
  15143. break
  15144. fi
  15145. ac_mid=`expr 2 '*' $ac_mid`
  15146. fi
  15147. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15148. done
  15149. else
  15150. echo "$as_me: failed program was:" >&5
  15151. sed 's/^/| /' conftest.$ac_ext >&5
  15152. ac_lo= ac_hi=
  15153. fi
  15154. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15155. fi
  15156. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15157. # Binary search between lo and hi bounds.
  15158. while test "x$ac_lo" != "x$ac_hi"; do
  15159. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15160. cat >conftest.$ac_ext <<_ACEOF
  15161. /* confdefs.h. */
  15162. _ACEOF
  15163. cat confdefs.h >>conftest.$ac_ext
  15164. cat >>conftest.$ac_ext <<_ACEOF
  15165. /* end confdefs.h. */
  15166. $ac_includes_default
  15167. int
  15168. main ()
  15169. {
  15170. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  15171. test_array [0] = 0
  15172. ;
  15173. return 0;
  15174. }
  15175. _ACEOF
  15176. rm -f conftest.$ac_objext
  15177. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15178. (eval $ac_compile) 2>conftest.er1
  15179. ac_status=$?
  15180. grep -v '^ *+' conftest.er1 >conftest.err
  15181. rm -f conftest.er1
  15182. cat conftest.err >&5
  15183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15184. (exit $ac_status); } &&
  15185. { ac_try='test -z "$ac_c_werror_flag"
  15186. || test ! -s conftest.err'
  15187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15188. (eval $ac_try) 2>&5
  15189. ac_status=$?
  15190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15191. (exit $ac_status); }; } &&
  15192. { ac_try='test -s conftest.$ac_objext'
  15193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15194. (eval $ac_try) 2>&5
  15195. ac_status=$?
  15196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15197. (exit $ac_status); }; }; then
  15198. ac_hi=$ac_mid
  15199. else
  15200. echo "$as_me: failed program was:" >&5
  15201. sed 's/^/| /' conftest.$ac_ext >&5
  15202. ac_lo=`expr '(' $ac_mid ')' + 1`
  15203. fi
  15204. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15205. done
  15206. case $ac_lo in
  15207. ?*) ac_cv_sizeof_short=$ac_lo;;
  15208. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  15209. See \`config.log' for more details." >&5
  15210. echo "$as_me: error: cannot compute sizeof (short), 77
  15211. See \`config.log' for more details." >&2;}
  15212. { (exit 1); exit 1; }; } ;;
  15213. esac
  15214. else
  15215. if test "$cross_compiling" = yes; then
  15216. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  15217. See \`config.log' for more details." >&5
  15218. echo "$as_me: error: cannot run test program while cross compiling
  15219. See \`config.log' for more details." >&2;}
  15220. { (exit 1); exit 1; }; }
  15221. else
  15222. cat >conftest.$ac_ext <<_ACEOF
  15223. /* confdefs.h. */
  15224. _ACEOF
  15225. cat confdefs.h >>conftest.$ac_ext
  15226. cat >>conftest.$ac_ext <<_ACEOF
  15227. /* end confdefs.h. */
  15228. $ac_includes_default
  15229. long longval () { return (long) (sizeof (short)); }
  15230. unsigned long ulongval () { return (long) (sizeof (short)); }
  15231. #include <stdio.h>
  15232. #include <stdlib.h>
  15233. int
  15234. main ()
  15235. {
  15236. FILE *f = fopen ("conftest.val", "w");
  15237. if (! f)
  15238. exit (1);
  15239. if (((long) (sizeof (short))) < 0)
  15240. {
  15241. long i = longval ();
  15242. if (i != ((long) (sizeof (short))))
  15243. exit (1);
  15244. fprintf (f, "%ld\n", i);
  15245. }
  15246. else
  15247. {
  15248. unsigned long i = ulongval ();
  15249. if (i != ((long) (sizeof (short))))
  15250. exit (1);
  15251. fprintf (f, "%lu\n", i);
  15252. }
  15253. exit (ferror (f) || fclose (f) != 0);
  15254. ;
  15255. return 0;
  15256. }
  15257. _ACEOF
  15258. rm -f conftest$ac_exeext
  15259. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15260. (eval $ac_link) 2>&5
  15261. ac_status=$?
  15262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15263. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15265. (eval $ac_try) 2>&5
  15266. ac_status=$?
  15267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15268. (exit $ac_status); }; }; then
  15269. ac_cv_sizeof_short=`cat conftest.val`
  15270. else
  15271. echo "$as_me: program exited with status $ac_status" >&5
  15272. echo "$as_me: failed program was:" >&5
  15273. sed 's/^/| /' conftest.$ac_ext >&5
  15274. ( exit $ac_status )
  15275. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  15276. See \`config.log' for more details." >&5
  15277. echo "$as_me: error: cannot compute sizeof (short), 77
  15278. See \`config.log' for more details." >&2;}
  15279. { (exit 1); exit 1; }; }
  15280. fi
  15281. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15282. fi
  15283. fi
  15284. rm -f conftest.val
  15285. else
  15286. ac_cv_sizeof_short=0
  15287. fi
  15288. fi
  15289. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  15290. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  15291. cat >>confdefs.h <<_ACEOF
  15292. #define SIZEOF_SHORT $ac_cv_sizeof_short
  15293. _ACEOF
  15294. echo "$as_me:$LINENO: checking for int" >&5
  15295. echo $ECHO_N "checking for int... $ECHO_C" >&6
  15296. if test "${ac_cv_type_int+set}" = set; then
  15297. echo $ECHO_N "(cached) $ECHO_C" >&6
  15298. else
  15299. cat >conftest.$ac_ext <<_ACEOF
  15300. /* confdefs.h. */
  15301. _ACEOF
  15302. cat confdefs.h >>conftest.$ac_ext
  15303. cat >>conftest.$ac_ext <<_ACEOF
  15304. /* end confdefs.h. */
  15305. $ac_includes_default
  15306. int
  15307. main ()
  15308. {
  15309. if ((int *) 0)
  15310. return 0;
  15311. if (sizeof (int))
  15312. return 0;
  15313. ;
  15314. return 0;
  15315. }
  15316. _ACEOF
  15317. rm -f conftest.$ac_objext
  15318. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15319. (eval $ac_compile) 2>conftest.er1
  15320. ac_status=$?
  15321. grep -v '^ *+' conftest.er1 >conftest.err
  15322. rm -f conftest.er1
  15323. cat conftest.err >&5
  15324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15325. (exit $ac_status); } &&
  15326. { ac_try='test -z "$ac_c_werror_flag"
  15327. || test ! -s conftest.err'
  15328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15329. (eval $ac_try) 2>&5
  15330. ac_status=$?
  15331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15332. (exit $ac_status); }; } &&
  15333. { ac_try='test -s conftest.$ac_objext'
  15334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15335. (eval $ac_try) 2>&5
  15336. ac_status=$?
  15337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15338. (exit $ac_status); }; }; then
  15339. ac_cv_type_int=yes
  15340. else
  15341. echo "$as_me: failed program was:" >&5
  15342. sed 's/^/| /' conftest.$ac_ext >&5
  15343. ac_cv_type_int=no
  15344. fi
  15345. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15346. fi
  15347. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  15348. echo "${ECHO_T}$ac_cv_type_int" >&6
  15349. echo "$as_me:$LINENO: checking size of int" >&5
  15350. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  15351. if test "${ac_cv_sizeof_int+set}" = set; then
  15352. echo $ECHO_N "(cached) $ECHO_C" >&6
  15353. else
  15354. if test "$ac_cv_type_int" = yes; then
  15355. # The cast to unsigned long works around a bug in the HP C Compiler
  15356. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15357. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15358. # This bug is HP SR number 8606223364.
  15359. if test "$cross_compiling" = yes; then
  15360. # Depending upon the size, compute the lo and hi bounds.
  15361. cat >conftest.$ac_ext <<_ACEOF
  15362. /* confdefs.h. */
  15363. _ACEOF
  15364. cat confdefs.h >>conftest.$ac_ext
  15365. cat >>conftest.$ac_ext <<_ACEOF
  15366. /* end confdefs.h. */
  15367. $ac_includes_default
  15368. int
  15369. main ()
  15370. {
  15371. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  15372. test_array [0] = 0
  15373. ;
  15374. return 0;
  15375. }
  15376. _ACEOF
  15377. rm -f conftest.$ac_objext
  15378. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15379. (eval $ac_compile) 2>conftest.er1
  15380. ac_status=$?
  15381. grep -v '^ *+' conftest.er1 >conftest.err
  15382. rm -f conftest.er1
  15383. cat conftest.err >&5
  15384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15385. (exit $ac_status); } &&
  15386. { ac_try='test -z "$ac_c_werror_flag"
  15387. || test ! -s conftest.err'
  15388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15389. (eval $ac_try) 2>&5
  15390. ac_status=$?
  15391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15392. (exit $ac_status); }; } &&
  15393. { ac_try='test -s conftest.$ac_objext'
  15394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15395. (eval $ac_try) 2>&5
  15396. ac_status=$?
  15397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15398. (exit $ac_status); }; }; then
  15399. ac_lo=0 ac_mid=0
  15400. while :; do
  15401. cat >conftest.$ac_ext <<_ACEOF
  15402. /* confdefs.h. */
  15403. _ACEOF
  15404. cat confdefs.h >>conftest.$ac_ext
  15405. cat >>conftest.$ac_ext <<_ACEOF
  15406. /* end confdefs.h. */
  15407. $ac_includes_default
  15408. int
  15409. main ()
  15410. {
  15411. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  15412. test_array [0] = 0
  15413. ;
  15414. return 0;
  15415. }
  15416. _ACEOF
  15417. rm -f conftest.$ac_objext
  15418. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15419. (eval $ac_compile) 2>conftest.er1
  15420. ac_status=$?
  15421. grep -v '^ *+' conftest.er1 >conftest.err
  15422. rm -f conftest.er1
  15423. cat conftest.err >&5
  15424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15425. (exit $ac_status); } &&
  15426. { ac_try='test -z "$ac_c_werror_flag"
  15427. || test ! -s conftest.err'
  15428. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15429. (eval $ac_try) 2>&5
  15430. ac_status=$?
  15431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15432. (exit $ac_status); }; } &&
  15433. { ac_try='test -s conftest.$ac_objext'
  15434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15435. (eval $ac_try) 2>&5
  15436. ac_status=$?
  15437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15438. (exit $ac_status); }; }; then
  15439. ac_hi=$ac_mid; break
  15440. else
  15441. echo "$as_me: failed program was:" >&5
  15442. sed 's/^/| /' conftest.$ac_ext >&5
  15443. ac_lo=`expr $ac_mid + 1`
  15444. if test $ac_lo -le $ac_mid; then
  15445. ac_lo= ac_hi=
  15446. break
  15447. fi
  15448. ac_mid=`expr 2 '*' $ac_mid + 1`
  15449. fi
  15450. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15451. done
  15452. else
  15453. echo "$as_me: failed program was:" >&5
  15454. sed 's/^/| /' conftest.$ac_ext >&5
  15455. cat >conftest.$ac_ext <<_ACEOF
  15456. /* confdefs.h. */
  15457. _ACEOF
  15458. cat confdefs.h >>conftest.$ac_ext
  15459. cat >>conftest.$ac_ext <<_ACEOF
  15460. /* end confdefs.h. */
  15461. $ac_includes_default
  15462. int
  15463. main ()
  15464. {
  15465. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  15466. test_array [0] = 0
  15467. ;
  15468. return 0;
  15469. }
  15470. _ACEOF
  15471. rm -f conftest.$ac_objext
  15472. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15473. (eval $ac_compile) 2>conftest.er1
  15474. ac_status=$?
  15475. grep -v '^ *+' conftest.er1 >conftest.err
  15476. rm -f conftest.er1
  15477. cat conftest.err >&5
  15478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15479. (exit $ac_status); } &&
  15480. { ac_try='test -z "$ac_c_werror_flag"
  15481. || test ! -s conftest.err'
  15482. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15483. (eval $ac_try) 2>&5
  15484. ac_status=$?
  15485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15486. (exit $ac_status); }; } &&
  15487. { ac_try='test -s conftest.$ac_objext'
  15488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15489. (eval $ac_try) 2>&5
  15490. ac_status=$?
  15491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15492. (exit $ac_status); }; }; then
  15493. ac_hi=-1 ac_mid=-1
  15494. while :; do
  15495. cat >conftest.$ac_ext <<_ACEOF
  15496. /* confdefs.h. */
  15497. _ACEOF
  15498. cat confdefs.h >>conftest.$ac_ext
  15499. cat >>conftest.$ac_ext <<_ACEOF
  15500. /* end confdefs.h. */
  15501. $ac_includes_default
  15502. int
  15503. main ()
  15504. {
  15505. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  15506. test_array [0] = 0
  15507. ;
  15508. return 0;
  15509. }
  15510. _ACEOF
  15511. rm -f conftest.$ac_objext
  15512. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15513. (eval $ac_compile) 2>conftest.er1
  15514. ac_status=$