OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10036 lines
303 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../lcdproc/lcdproc-debugdisable.patch-disabled
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- ./configure.in.bak Sun Mar 16 22:31:01 2003
  18. +++ ./configure.in Mon Mar 17 00:24:17 2003
  19. @@ -16,8 +16,12 @@
  20. AC_MSG_CHECKING(whether to enable debugging)
  21. AC_ARG_ENABLE(debug,
  22. [ --enable-debug show debug information],
  23. - AC_DEFINE(DEBUG)
  24. - debug="yes",
  25. + if [[[ "$enableval" = "yes" ]]]; then
  26. + AC_DEFINE(DEBUG)
  27. + debug="yes"
  28. + else
  29. + debug="no"
  30. + fi,
  31. debug="no"
  32. )
  33. AC_MSG_RESULT($debug)
  34. --- ./configure.bak Sun Mar 16 22:30:53 2003
  35. +++ ./configure Mon Mar 17 00:24:22 2003
  36. @@ -1,44 +1,324 @@
  37. #! /bin/sh
  38. -
  39. # Guess values for system-dependent variables and create Makefiles.
  40. -# Generated automatically using autoconf version 2.13
  41. -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  42. +# Generated by GNU Autoconf 2.57.
  43. #
  44. +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  45. +# Free Software Foundation, Inc.
  46. # This configure script is free software; the Free Software Foundation
  47. # gives unlimited permission to copy, distribute and modify it.
  48. +## --------------------- ##
  49. +## M4sh Initialization. ##
  50. +## --------------------- ##
  51. +
  52. +# Be Bourne compatible
  53. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  54. + emulate sh
  55. + NULLCMD=:
  56. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  57. + # is contrary to our usage. Disable this feature.
  58. + alias -g '${1+"$@"}'='"$@"'
  59. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  60. + set -o posix
  61. +fi
  62. +
  63. +# Support unset when possible.
  64. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  65. + as_unset=unset
  66. +else
  67. + as_unset=false
  68. +fi
  69. +
  70. +
  71. +# Work around bugs in pre-3.0 UWIN ksh.
  72. +$as_unset ENV MAIL MAILPATH
  73. +PS1='$ '
  74. +PS2='> '
  75. +PS4='+ '
  76. +
  77. +# NLS nuisances.
  78. +for as_var in \
  79. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  80. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  81. + LC_TELEPHONE LC_TIME
  82. +do
  83. + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  84. + eval $as_var=C; export $as_var
  85. + else
  86. + $as_unset $as_var
  87. + fi
  88. +done
  89. +
  90. +# Required to use basename.
  91. +if expr a : '\(a\)' >/dev/null 2>&1; then
  92. + as_expr=expr
  93. +else
  94. + as_expr=false
  95. +fi
  96. +
  97. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  98. + as_basename=basename
  99. +else
  100. + as_basename=false
  101. +fi
  102. +
  103. +
  104. +# Name of the executable.
  105. +as_me=`$as_basename "$0" ||
  106. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  107. + X"$0" : 'X\(//\)$' \| \
  108. + X"$0" : 'X\(/\)$' \| \
  109. + . : '\(.\)' 2>/dev/null ||
  110. +echo X/"$0" |
  111. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  112. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  113. + /^X\/\(\/\).*/{ s//\1/; q; }
  114. + s/.*/./; q'`
  115. +
  116. +
  117. +# PATH needs CR, and LINENO needs CR and PATH.
  118. +# Avoid depending upon Character Ranges.
  119. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  120. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  121. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  122. +as_cr_digits='0123456789'
  123. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  124. +
  125. +# The user is always right.
  126. +if test "${PATH_SEPARATOR+set}" != set; then
  127. + echo "#! /bin/sh" >conf$$.sh
  128. + echo "exit 0" >>conf$$.sh
  129. + chmod +x conf$$.sh
  130. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  131. + PATH_SEPARATOR=';'
  132. + else
  133. + PATH_SEPARATOR=:
  134. + fi
  135. + rm -f conf$$.sh
  136. +fi
  137. +
  138. +
  139. + as_lineno_1=$LINENO
  140. + as_lineno_2=$LINENO
  141. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  142. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  143. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  144. + # Find who we are. Look in the path if we contain no path at all
  145. + # relative or not.
  146. + case $0 in
  147. + *[\\/]* ) as_myself=$0 ;;
  148. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  149. +for as_dir in $PATH
  150. +do
  151. + IFS=$as_save_IFS
  152. + test -z "$as_dir" && as_dir=.
  153. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  154. +done
  155. +
  156. + ;;
  157. + esac
  158. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  159. + # in which case we are not to be found in the path.
  160. + if test "x$as_myself" = x; then
  161. + as_myself=$0
  162. + fi
  163. + if test ! -f "$as_myself"; then
  164. + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  165. + { (exit 1); exit 1; }; }
  166. + fi
  167. + case $CONFIG_SHELL in
  168. + '')
  169. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  170. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. +do
  172. + IFS=$as_save_IFS
  173. + test -z "$as_dir" && as_dir=.
  174. + for as_base in sh bash ksh sh5; do
  175. + case $as_dir in
  176. + /*)
  177. + if ("$as_dir/$as_base" -c '
  178. + as_lineno_1=$LINENO
  179. + as_lineno_2=$LINENO
  180. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  181. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  182. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  183. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  184. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  185. + CONFIG_SHELL=$as_dir/$as_base
  186. + export CONFIG_SHELL
  187. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  188. + fi;;
  189. + esac
  190. + done
  191. +done
  192. +;;
  193. + esac
  194. +
  195. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  196. + # uniformly replaced by the line number. The first 'sed' inserts a
  197. + # line-number line before each line; the second 'sed' does the real
  198. + # work. The second script uses 'N' to pair each line-number line
  199. + # with the numbered line, and appends trailing '-' during
  200. + # substitution so that $LINENO is not a special case at line end.
  201. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  202. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  203. + sed '=' <$as_myself |
  204. + sed '
  205. + N
  206. + s,$,-,
  207. + : loop
  208. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  209. + t loop
  210. + s,-$,,
  211. + s,^['$as_cr_digits']*\n,,
  212. + ' >$as_me.lineno &&
  213. + chmod +x $as_me.lineno ||
  214. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  215. + { (exit 1); exit 1; }; }
  216. +
  217. + # Don't try to exec as it changes $[0], causing all sort of problems
  218. + # (the dirname of $[0] is not the place where we might find the
  219. + # original and so on. Autoconf is especially sensible to this).
  220. + . ./$as_me.lineno
  221. + # Exit status is that of the last command.
  222. + exit
  223. +}
  224. +
  225. +
  226. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  227. + *c*,-n*) ECHO_N= ECHO_C='
  228. +' ECHO_T=' ' ;;
  229. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  230. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  231. +esac
  232. +
  233. +if expr a : '\(a\)' >/dev/null 2>&1; then
  234. + as_expr=expr
  235. +else
  236. + as_expr=false
  237. +fi
  238. +
  239. +rm -f conf$$ conf$$.exe conf$$.file
  240. +echo >conf$$.file
  241. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  242. + # We could just check for DJGPP; but this test a) works b) is more generic
  243. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  244. + if test -f conf$$.exe; then
  245. + # Don't use ln at all; we don't have any links
  246. + as_ln_s='cp -p'
  247. + else
  248. + as_ln_s='ln -s'
  249. + fi
  250. +elif ln conf$$.file conf$$ 2>/dev/null; then
  251. + as_ln_s=ln
  252. +else
  253. + as_ln_s='cp -p'
  254. +fi
  255. +rm -f conf$$ conf$$.exe conf$$.file
  256. +
  257. +if mkdir -p . 2>/dev/null; then
  258. + as_mkdir_p=:
  259. +else
  260. + as_mkdir_p=false
  261. +fi
  262. +
  263. +as_executable_p="test -f"
  264. +
  265. +# Sed expression to map a string onto a valid CPP name.
  266. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  267. +
  268. +# Sed expression to map a string onto a valid variable name.
  269. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  270. +
  271. -# Defaults:
  272. -ac_help=
  273. +# IFS
  274. +# We need space, tab and new line, in precisely that order.
  275. +as_nl='
  276. +'
  277. +IFS=" $as_nl"
  278. +
  279. +# CDPATH.
  280. +$as_unset CDPATH
  281. +
  282. +
  283. +# Name of the host.
  284. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  285. +# so uname gets run too.
  286. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  287. +
  288. +exec 6>&1
  289. +
  290. +#
  291. +# Initializations.
  292. +#
  293. ac_default_prefix=/usr/local
  294. -# Any additions from configure.in:
  295. -ac_help="$ac_help
  296. - --enable-debug show debug information"
  297. -ac_help="$ac_help
  298. - --enable-stat-nfs display filesystem stats for NFS"
  299. -ac_help="$ac_help
  300. - --enable-stat-smbfs display filesystem stats for SMBFS"
  301. -ac_help="$ac_help
  302. - --with-lcdport=<port> the server port [13666]"
  303. -ac_help="$ac_help
  304. - --with-loadmax=<load> Max Load Avg at which the backlight will
  305. - start blinking [1.3]"
  306. -ac_help="$ac_help
  307. - --with-loadmin=<load> Min Load Avg at which the backlight will
  308. - turn off (asleep) [0.05]"
  309. -ac_help="$ac_help
  310. - --enable-drivers=<list> compile driver for LCDs in <list>.
  311. - drivers may be separated with commas.
  312. - \"all\" compiles all drivers"
  313. +ac_config_libobj_dir=.
  314. +cross_compiling=no
  315. +subdirs=
  316. +MFLAGS=
  317. +MAKEFLAGS=
  318. +SHELL=${CONFIG_SHELL-/bin/sh}
  319. +
  320. +# Maximum number of lines to put in a shell here document.
  321. +# This variable seems obsolete. It should probably be removed, and
  322. +# only ac_max_sed_lines should be used.
  323. +: ${ac_max_here_lines=38}
  324. +
  325. +# Identity of this package.
  326. +PACKAGE_NAME=
  327. +PACKAGE_TARNAME=
  328. +PACKAGE_VERSION=
  329. +PACKAGE_STRING=
  330. +PACKAGE_BUGREPORT=
  331. +
  332. +ac_unique_file="clients/lcdproc/batt.c"
  333. +# Factoring default headers for most tests.
  334. +ac_includes_default="\
  335. +#include <stdio.h>
  336. +#if HAVE_SYS_TYPES_H
  337. +# include <sys/types.h>
  338. +#endif
  339. +#if HAVE_SYS_STAT_H
  340. +# include <sys/stat.h>
  341. +#endif
  342. +#if STDC_HEADERS
  343. +# include <stdlib.h>
  344. +# include <stddef.h>
  345. +#else
  346. +# if HAVE_STDLIB_H
  347. +# include <stdlib.h>
  348. +# endif
  349. +#endif
  350. +#if HAVE_STRING_H
  351. +# if !STDC_HEADERS && HAVE_MEMORY_H
  352. +# include <memory.h>
  353. +# endif
  354. +# include <string.h>
  355. +#endif
  356. +#if HAVE_STRINGS_H
  357. +# include <strings.h>
  358. +#endif
  359. +#if HAVE_INTTYPES_H
  360. +# include <inttypes.h>
  361. +#else
  362. +# if HAVE_STDINT_H
  363. +# include <stdint.h>
  364. +# endif
  365. +#endif
  366. +#if HAVE_UNISTD_H
  367. +# include <unistd.h>
  368. +#endif"
  369. +
  370. +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP RANLIB ac_ct_RANLIB EGREP LIBCURSES LIBIRMAN LIBLIRC_CLIENT DRIVERS LIBOBJS LTLIBOBJS'
  371. +ac_subst_files=''
  372. # Initialize some variables set by options.
  373. +ac_init_help=
  374. +ac_init_version=false
  375. # The variables have the same names as the options, with
  376. # dashes changed to underlines.
  377. -build=NONE
  378. -cache_file=./config.cache
  379. +cache_file=/dev/null
  380. exec_prefix=NONE
  381. -host=NONE
  382. no_create=
  383. -nonopt=NONE
  384. no_recursion=
  385. prefix=NONE
  386. program_prefix=NONE
  387. @@ -47,10 +327,15 @@
  388. silent=
  389. site=
  390. srcdir=
  391. -target=NONE
  392. verbose=
  393. x_includes=NONE
  394. x_libraries=NONE
  395. +
  396. +# Installation directory options.
  397. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  398. +# and all the variables that are supposed to be based on exec_prefix
  399. +# by default will actually change.
  400. +# Use braces instead of parens because sh, perl, etc. also accept them.
  401. bindir='${exec_prefix}/bin'
  402. sbindir='${exec_prefix}/sbin'
  403. libexecdir='${exec_prefix}/libexec'
  404. @@ -64,17 +349,9 @@
  405. infodir='${prefix}/info'
  406. mandir='${prefix}/man'
  407. -# Initialize some other variables.
  408. -subdirs=
  409. -MFLAGS= MAKEFLAGS=
  410. -SHELL=${CONFIG_SHELL-/bin/sh}
  411. -# Maximum number of lines to put in a shell here document.
  412. -ac_max_here_lines=12
  413. -
  414. ac_prev=
  415. for ac_option
  416. do
  417. -
  418. # If the previous option needs an argument, assign it.
  419. if test -n "$ac_prev"; then
  420. eval "$ac_prev=\$ac_option"
  421. @@ -82,59 +359,59 @@
  422. continue
  423. fi
  424. - case "$ac_option" in
  425. - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  426. - *) ac_optarg= ;;
  427. - esac
  428. + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  429. # Accept the important Cygnus configure options, so we can diagnose typos.
  430. - case "$ac_option" in
  431. + case $ac_option in
  432. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  433. ac_prev=bindir ;;
  434. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  435. - bindir="$ac_optarg" ;;
  436. + bindir=$ac_optarg ;;
  437. -build | --build | --buil | --bui | --bu)
  438. - ac_prev=build ;;
  439. + ac_prev=build_alias ;;
  440. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  441. - build="$ac_optarg" ;;
  442. + build_alias=$ac_optarg ;;
  443. -cache-file | --cache-file | --cache-fil | --cache-fi \
  444. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  445. ac_prev=cache_file ;;
  446. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  447. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  448. - cache_file="$ac_optarg" ;;
  449. + cache_file=$ac_optarg ;;
  450. +
  451. + --config-cache | -C)
  452. + cache_file=config.cache ;;
  453. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  454. ac_prev=datadir ;;
  455. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  456. | --da=*)
  457. - datadir="$ac_optarg" ;;
  458. + datadir=$ac_optarg ;;
  459. -disable-* | --disable-*)
  460. - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  461. + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  462. # Reject names that are not valid shell variable names.
  463. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  464. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  465. - fi
  466. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  467. - eval "enable_${ac_feature}=no" ;;
  468. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  469. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  470. + { (exit 1); exit 1; }; }
  471. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  472. + eval "enable_$ac_feature=no" ;;
  473. -enable-* | --enable-*)
  474. - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  475. + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  476. # Reject names that are not valid shell variable names.
  477. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  478. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  479. - fi
  480. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  481. - case "$ac_option" in
  482. - *=*) ;;
  483. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  484. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  485. + { (exit 1); exit 1; }; }
  486. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  487. + case $ac_option in
  488. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  489. *) ac_optarg=yes ;;
  490. esac
  491. - eval "enable_${ac_feature}='$ac_optarg'" ;;
  492. + eval "enable_$ac_feature='$ac_optarg'" ;;
  493. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  494. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  495. @@ -143,95 +420,47 @@
  496. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  497. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  498. | --exec=* | --exe=* | --ex=*)
  499. - exec_prefix="$ac_optarg" ;;
  500. + exec_prefix=$ac_optarg ;;
  501. -gas | --gas | --ga | --g)
  502. # Obsolete; use --with-gas.
  503. with_gas=yes ;;
  504. - -help | --help | --hel | --he)
  505. - # Omit some internal or obsolete options to make the list less imposing.
  506. - # This message is too long to be a string in the A/UX 3.1 sh.
  507. - cat << EOF
  508. -Usage: configure [options] [host]
  509. -Options: [defaults in brackets after descriptions]
  510. -Configuration:
  511. - --cache-file=FILE cache test results in FILE
  512. - --help print this message
  513. - --no-create do not create output files
  514. - --quiet, --silent do not print \`checking...' messages
  515. - --version print the version of autoconf that created configure
  516. -Directory and file names:
  517. - --prefix=PREFIX install architecture-independent files in PREFIX
  518. - [$ac_default_prefix]
  519. - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  520. - [same as prefix]
  521. - --bindir=DIR user executables in DIR [EPREFIX/bin]
  522. - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  523. - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  524. - --datadir=DIR read-only architecture-independent data in DIR
  525. - [PREFIX/share]
  526. - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  527. - --sharedstatedir=DIR modifiable architecture-independent data in DIR
  528. - [PREFIX/com]
  529. - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  530. - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  531. - --includedir=DIR C header files in DIR [PREFIX/include]
  532. - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  533. - --infodir=DIR info documentation in DIR [PREFIX/info]
  534. - --mandir=DIR man documentation in DIR [PREFIX/man]
  535. - --srcdir=DIR find the sources in DIR [configure dir or ..]
  536. - --program-prefix=PREFIX prepend PREFIX to installed program names
  537. - --program-suffix=SUFFIX append SUFFIX to installed program names
  538. - --program-transform-name=PROGRAM
  539. - run sed PROGRAM on installed program names
  540. -EOF
  541. - cat << EOF
  542. -Host type:
  543. - --build=BUILD configure for building on BUILD [BUILD=HOST]
  544. - --host=HOST configure for HOST [guessed]
  545. - --target=TARGET configure for TARGET [TARGET=HOST]
  546. -Features and packages:
  547. - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  548. - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  549. - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  550. - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  551. - --x-includes=DIR X include files are in DIR
  552. - --x-libraries=DIR X library files are in DIR
  553. -EOF
  554. - if test -n "$ac_help"; then
  555. - echo "--enable and --with options recognized:$ac_help"
  556. - fi
  557. - exit 0 ;;
  558. + -help | --help | --hel | --he | -h)
  559. + ac_init_help=long ;;
  560. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  561. + ac_init_help=recursive ;;
  562. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  563. + ac_init_help=short ;;
  564. -host | --host | --hos | --ho)
  565. - ac_prev=host ;;
  566. + ac_prev=host_alias ;;
  567. -host=* | --host=* | --hos=* | --ho=*)
  568. - host="$ac_optarg" ;;
  569. + host_alias=$ac_optarg ;;
  570. -includedir | --includedir | --includedi | --included | --include \
  571. | --includ | --inclu | --incl | --inc)
  572. ac_prev=includedir ;;
  573. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  574. | --includ=* | --inclu=* | --incl=* | --inc=*)
  575. - includedir="$ac_optarg" ;;
  576. + includedir=$ac_optarg ;;
  577. -infodir | --infodir | --infodi | --infod | --info | --inf)
  578. ac_prev=infodir ;;
  579. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  580. - infodir="$ac_optarg" ;;
  581. + infodir=$ac_optarg ;;
  582. -libdir | --libdir | --libdi | --libd)
  583. ac_prev=libdir ;;
  584. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  585. - libdir="$ac_optarg" ;;
  586. + libdir=$ac_optarg ;;
  587. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  588. | --libexe | --libex | --libe)
  589. ac_prev=libexecdir ;;
  590. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  591. | --libexe=* | --libex=* | --libe=*)
  592. - libexecdir="$ac_optarg" ;;
  593. + libexecdir=$ac_optarg ;;
  594. -localstatedir | --localstatedir | --localstatedi | --localstated \
  595. | --localstate | --localstat | --localsta | --localst \
  596. @@ -240,19 +469,19 @@
  597. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  598. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  599. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  600. - localstatedir="$ac_optarg" ;;
  601. + localstatedir=$ac_optarg ;;
  602. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  603. ac_prev=mandir ;;
  604. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  605. - mandir="$ac_optarg" ;;
  606. + mandir=$ac_optarg ;;
  607. -nfp | --nfp | --nf)
  608. # Obsolete; use --without-fp.
  609. with_fp=no ;;
  610. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  611. - | --no-cr | --no-c)
  612. + | --no-cr | --no-c | -n)
  613. no_create=yes ;;
  614. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  615. @@ -266,26 +495,26 @@
  616. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  617. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  618. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  619. - oldincludedir="$ac_optarg" ;;
  620. + oldincludedir=$ac_optarg ;;
  621. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  622. ac_prev=prefix ;;
  623. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  624. - prefix="$ac_optarg" ;;
  625. + prefix=$ac_optarg ;;
  626. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  627. | --program-pre | --program-pr | --program-p)
  628. ac_prev=program_prefix ;;
  629. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  630. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  631. - program_prefix="$ac_optarg" ;;
  632. + program_prefix=$ac_optarg ;;
  633. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  634. | --program-suf | --program-su | --program-s)
  635. ac_prev=program_suffix ;;
  636. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  637. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  638. - program_suffix="$ac_optarg" ;;
  639. + program_suffix=$ac_optarg ;;
  640. -program-transform-name | --program-transform-name \
  641. | --program-transform-nam | --program-transform-na \
  642. @@ -302,7 +531,7 @@
  643. | --program-transfo=* | --program-transf=* \
  644. | --program-trans=* | --program-tran=* \
  645. | --progr-tra=* | --program-tr=* | --program-t=*)
  646. - program_transform_name="$ac_optarg" ;;
  647. + program_transform_name=$ac_optarg ;;
  648. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  649. | -silent | --silent | --silen | --sile | --sil)
  650. @@ -312,7 +541,7 @@
  651. ac_prev=sbindir ;;
  652. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  653. | --sbi=* | --sb=*)
  654. - sbindir="$ac_optarg" ;;
  655. + sbindir=$ac_optarg ;;
  656. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  657. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  658. @@ -323,58 +552,57 @@
  659. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  660. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  661. | --sha=* | --sh=*)
  662. - sharedstatedir="$ac_optarg" ;;
  663. + sharedstatedir=$ac_optarg ;;
  664. -site | --site | --sit)
  665. ac_prev=site ;;
  666. -site=* | --site=* | --sit=*)
  667. - site="$ac_optarg" ;;
  668. + site=$ac_optarg ;;
  669. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  670. ac_prev=srcdir ;;
  671. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  672. - srcdir="$ac_optarg" ;;
  673. + srcdir=$ac_optarg ;;
  674. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  675. | --syscon | --sysco | --sysc | --sys | --sy)
  676. ac_prev=sysconfdir ;;
  677. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  678. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  679. - sysconfdir="$ac_optarg" ;;
  680. + sysconfdir=$ac_optarg ;;
  681. -target | --target | --targe | --targ | --tar | --ta | --t)
  682. - ac_prev=target ;;
  683. + ac_prev=target_alias ;;
  684. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  685. - target="$ac_optarg" ;;
  686. + target_alias=$ac_optarg ;;
  687. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  688. verbose=yes ;;
  689. - -version | --version | --versio | --versi | --vers)
  690. - echo "configure generated by autoconf version 2.13"
  691. - exit 0 ;;
  692. + -version | --version | --versio | --versi | --vers | -V)
  693. + ac_init_version=: ;;
  694. -with-* | --with-*)
  695. - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  696. + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  697. # Reject names that are not valid shell variable names.
  698. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  699. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  700. - fi
  701. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  702. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  703. + { (exit 1); exit 1; }; }
  704. ac_package=`echo $ac_package| sed 's/-/_/g'`
  705. - case "$ac_option" in
  706. - *=*) ;;
  707. + case $ac_option in
  708. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  709. *) ac_optarg=yes ;;
  710. esac
  711. - eval "with_${ac_package}='$ac_optarg'" ;;
  712. + eval "with_$ac_package='$ac_optarg'" ;;
  713. -without-* | --without-*)
  714. - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  715. + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  716. # Reject names that are not valid shell variable names.
  717. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  718. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  719. - fi
  720. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  721. - eval "with_${ac_package}=no" ;;
  722. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  723. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  724. + { (exit 1); exit 1; }; }
  725. + ac_package=`echo $ac_package | sed 's/-/_/g'`
  726. + eval "with_$ac_package=no" ;;
  727. --x)
  728. # Obsolete; use --with-x.
  729. @@ -385,99 +613,110 @@
  730. ac_prev=x_includes ;;
  731. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  732. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  733. - x_includes="$ac_optarg" ;;
  734. + x_includes=$ac_optarg ;;
  735. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  736. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  737. ac_prev=x_libraries ;;
  738. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  739. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  740. - x_libraries="$ac_optarg" ;;
  741. + x_libraries=$ac_optarg ;;
  742. - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  743. + -*) { echo "$as_me: error: unrecognized option: $ac_option
  744. +Try \`$0 --help' for more information." >&2
  745. + { (exit 1); exit 1; }; }
  746. ;;
  747. + *=*)
  748. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  749. + # Reject names that are not valid shell variable names.
  750. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  751. + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  752. + { (exit 1); exit 1; }; }
  753. + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  754. + eval "$ac_envvar='$ac_optarg'"
  755. + export $ac_envvar ;;
  756. +
  757. *)
  758. - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  759. - echo "configure: warning: $ac_option: invalid host type" 1>&2
  760. - fi
  761. - if test "x$nonopt" != xNONE; then
  762. - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  763. - fi
  764. - nonopt="$ac_option"
  765. + # FIXME: should be removed in autoconf 3.0.
  766. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  767. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  768. + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  769. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  770. ;;
  771. esac
  772. done
  773. if test -n "$ac_prev"; then
  774. - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  775. -fi
  776. -
  777. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  778. -
  779. -# File descriptor usage:
  780. -# 0 standard input
  781. -# 1 file creation
  782. -# 2 errors and warnings
  783. -# 3 some systems may open it to /dev/tty
  784. -# 4 used on the Kubota Titan
  785. -# 6 checking for... messages and results
  786. -# 5 compiler messages saved in config.log
  787. -if test "$silent" = yes; then
  788. - exec 6>/dev/null
  789. -else
  790. - exec 6>&1
  791. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  792. + { echo "$as_me: error: missing argument to $ac_option" >&2
  793. + { (exit 1); exit 1; }; }
  794. fi
  795. -exec 5>./config.log
  796. -echo "\
  797. -This file contains any messages produced by compilers while
  798. -running configure, to aid debugging if configure makes a mistake.
  799. -" 1>&5
  800. +# Be sure to have absolute paths.
  801. +for ac_var in exec_prefix prefix
  802. +do
  803. + eval ac_val=$`echo $ac_var`
  804. + case $ac_val in
  805. + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  806. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  807. + { (exit 1); exit 1; }; };;
  808. + esac
  809. +done
  810. -# Strip out --no-create and --no-recursion so they do not pile up.
  811. -# Also quote any args containing shell metacharacters.
  812. -ac_configure_args=
  813. -for ac_arg
  814. +# Be sure to have absolute paths.
  815. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  816. + localstatedir libdir includedir oldincludedir infodir mandir
  817. do
  818. - case "$ac_arg" in
  819. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  820. - | --no-cr | --no-c) ;;
  821. - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  822. - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  823. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  824. - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  825. - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  826. + eval ac_val=$`echo $ac_var`
  827. + case $ac_val in
  828. + [\\/$]* | ?:[\\/]* ) ;;
  829. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  830. + { (exit 1); exit 1; }; };;
  831. esac
  832. done
  833. -# NLS nuisances.
  834. -# Only set these to C if already set. These must not be set unconditionally
  835. -# because not all systems understand e.g. LANG=C (notably SCO).
  836. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  837. -# Non-C LC_CTYPE values break the ctype check.
  838. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  839. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  840. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  841. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  842. +# There might be people who depend on the old broken behavior: `$host'
  843. +# used to hold the argument of --host etc.
  844. +# FIXME: To remove some day.
  845. +build=$build_alias
  846. +host=$host_alias
  847. +target=$target_alias
  848. +
  849. +# FIXME: To remove some day.
  850. +if test "x$host_alias" != x; then
  851. + if test "x$build_alias" = x; then
  852. + cross_compiling=maybe
  853. + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  854. + If a cross compiler is detected then cross compile mode will be used." >&2
  855. + elif test "x$build_alias" != "x$host_alias"; then
  856. + cross_compiling=yes
  857. + fi
  858. +fi
  859. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  860. -rm -rf conftest* confdefs.h
  861. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  862. -echo > confdefs.h
  863. +ac_tool_prefix=
  864. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  865. +
  866. +test "$silent" = yes && exec 6>/dev/null
  867. -# A filename unique to this package, relative to the directory that
  868. -# configure is in, which we can look for to find out if srcdir is correct.
  869. -ac_unique_file=clients/lcdproc/batt.c
  870. # Find the source files, if location was not specified.
  871. if test -z "$srcdir"; then
  872. ac_srcdir_defaulted=yes
  873. # Try the directory containing this script, then its parent.
  874. - ac_prog=$0
  875. - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  876. - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  877. + ac_confdir=`(dirname "$0") 2>/dev/null ||
  878. +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  879. + X"$0" : 'X\(//\)[^/]' \| \
  880. + X"$0" : 'X\(//\)$' \| \
  881. + X"$0" : 'X\(/\)' \| \
  882. + . : '\(.\)' 2>/dev/null ||
  883. +echo X"$0" |
  884. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  885. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  886. + /^X\(\/\/\)$/{ s//\1/; q; }
  887. + /^X\(\/\).*/{ s//\1/; q; }
  888. + s/.*/./; q'`
  889. srcdir=$ac_confdir
  890. if test ! -r $srcdir/$ac_unique_file; then
  891. srcdir=..
  892. @@ -487,13 +726,450 @@
  893. fi
  894. if test ! -r $srcdir/$ac_unique_file; then
  895. if test "$ac_srcdir_defaulted" = yes; then
  896. - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  897. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  898. + { (exit 1); exit 1; }; }
  899. else
  900. - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  901. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  902. + { (exit 1); exit 1; }; }
  903. fi
  904. fi
  905. -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  906. +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  907. + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  908. + { (exit 1); exit 1; }; }
  909. +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  910. +ac_env_build_alias_set=${build_alias+set}
  911. +ac_env_build_alias_value=$build_alias
  912. +ac_cv_env_build_alias_set=${build_alias+set}
  913. +ac_cv_env_build_alias_value=$build_alias
  914. +ac_env_host_alias_set=${host_alias+set}
  915. +ac_env_host_alias_value=$host_alias
  916. +ac_cv_env_host_alias_set=${host_alias+set}
  917. +ac_cv_env_host_alias_value=$host_alias
  918. +ac_env_target_alias_set=${target_alias+set}
  919. +ac_env_target_alias_value=$target_alias
  920. +ac_cv_env_target_alias_set=${target_alias+set}
  921. +ac_cv_env_target_alias_value=$target_alias
  922. +ac_env_CC_set=${CC+set}
  923. +ac_env_CC_value=$CC
  924. +ac_cv_env_CC_set=${CC+set}
  925. +ac_cv_env_CC_value=$CC
  926. +ac_env_CFLAGS_set=${CFLAGS+set}
  927. +ac_env_CFLAGS_value=$CFLAGS
  928. +ac_cv_env_CFLAGS_set=${CFLAGS+set}
  929. +ac_cv_env_CFLAGS_value=$CFLAGS
  930. +ac_env_LDFLAGS_set=${LDFLAGS+set}
  931. +ac_env_LDFLAGS_value=$LDFLAGS
  932. +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  933. +ac_cv_env_LDFLAGS_value=$LDFLAGS
  934. +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  935. +ac_env_CPPFLAGS_value=$CPPFLAGS
  936. +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  937. +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  938. +ac_env_CPP_set=${CPP+set}
  939. +ac_env_CPP_value=$CPP
  940. +ac_cv_env_CPP_set=${CPP+set}
  941. +ac_cv_env_CPP_value=$CPP
  942. +
  943. +#
  944. +# Report the --help message.
  945. +#
  946. +if test "$ac_init_help" = "long"; then
  947. + # Omit some internal or obsolete options to make the list less imposing.
  948. + # This message is too long to be a string in the A/UX 3.1 sh.
  949. + cat <<_ACEOF
  950. +\`configure' configures this package to adapt to many kinds of systems.
  951. +
  952. +Usage: $0 [OPTION]... [VAR=VALUE]...
  953. +
  954. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  955. +VAR=VALUE. See below for descriptions of some of the useful variables.
  956. +
  957. +Defaults for the options are specified in brackets.
  958. +
  959. +Configuration:
  960. + -h, --help display this help and exit
  961. + --help=short display options specific to this package
  962. + --help=recursive display the short help of all the included packages
  963. + -V, --version display version information and exit
  964. + -q, --quiet, --silent do not print \`checking...' messages
  965. + --cache-file=FILE cache test results in FILE [disabled]
  966. + -C, --config-cache alias for \`--cache-file=config.cache'
  967. + -n, --no-create do not create output files
  968. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  969. +
  970. +_ACEOF
  971. +
  972. + cat <<_ACEOF
  973. +Installation directories:
  974. + --prefix=PREFIX install architecture-independent files in PREFIX
  975. + [$ac_default_prefix]
  976. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  977. + [PREFIX]
  978. +
  979. +By default, \`make install' will install all the files in
  980. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  981. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  982. +for instance \`--prefix=\$HOME'.
  983. +
  984. +For better control, use the options below.
  985. +
  986. +Fine tuning of the installation directories:
  987. + --bindir=DIR user executables [EPREFIX/bin]
  988. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  989. + --libexecdir=DIR program executables [EPREFIX/libexec]
  990. + --datadir=DIR read-only architecture-independent data [PREFIX/share]
  991. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  992. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  993. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  994. + --libdir=DIR object code libraries [EPREFIX/lib]
  995. + --includedir=DIR C header files [PREFIX/include]
  996. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  997. + --infodir=DIR info documentation [PREFIX/info]
  998. + --mandir=DIR man documentation [PREFIX/man]
  999. +_ACEOF
  1000. +
  1001. + cat <<\_ACEOF
  1002. +
  1003. +Program names:
  1004. + --program-prefix=PREFIX prepend PREFIX to installed program names
  1005. + --program-suffix=SUFFIX append SUFFIX to installed program names
  1006. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1007. +
  1008. +System types:
  1009. + --build=BUILD configure for building on BUILD [guessed]
  1010. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1011. +_ACEOF
  1012. +fi
  1013. +
  1014. +if test -n "$ac_init_help"; then
  1015. +
  1016. + cat <<\_ACEOF
  1017. +
  1018. +Optional Features:
  1019. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1020. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1021. + --enable-debug show debug information
  1022. + --enable-stat-nfs display filesystem stats for NFS
  1023. + --enable-stat-smbfs display filesystem stats for SMBFS
  1024. + --enable-drivers=<list> compile driver for LCDs in <list>.
  1025. + drivers may be separated with commas.
  1026. + \"all\" compiles all drivers
  1027. +
  1028. +Optional Packages:
  1029. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1030. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1031. + --with-lcdport=<port> the server port 13666
  1032. + --with-loadmax=<load> Max Load Avg at which the backlight will
  1033. + start blinking 1.3
  1034. + --with-loadmin=<load> Min Load Avg at which the backlight will
  1035. + turn off (asleep) 0.05
  1036. +
  1037. +Some influential environment variables:
  1038. + CC C compiler command
  1039. + CFLAGS C compiler flags
  1040. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1041. + nonstandard directory <lib dir>
  1042. + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1043. + headers in a nonstandard directory <include dir>
  1044. + CPP C preprocessor
  1045. +
  1046. +Use these variables to override the choices made by `configure' or to help
  1047. +it to find libraries and programs with nonstandard names/locations.
  1048. +
  1049. +_ACEOF
  1050. +fi
  1051. +
  1052. +if test "$ac_init_help" = "recursive"; then
  1053. + # If there are subdirs, report their specific --help.
  1054. + ac_popdir=`pwd`
  1055. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1056. + test -d $ac_dir || continue
  1057. + ac_builddir=.
  1058. +
  1059. +if test "$ac_dir" != .; then
  1060. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1061. + # A "../" for each directory in $ac_dir_suffix.
  1062. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1063. +else
  1064. + ac_dir_suffix= ac_top_builddir=
  1065. +fi
  1066. +
  1067. +case $srcdir in
  1068. + .) # No --srcdir option. We are building in place.
  1069. + ac_srcdir=.
  1070. + if test -z "$ac_top_builddir"; then
  1071. + ac_top_srcdir=.
  1072. + else
  1073. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1074. + fi ;;
  1075. + [\\/]* | ?:[\\/]* ) # Absolute path.
  1076. + ac_srcdir=$srcdir$ac_dir_suffix;
  1077. + ac_top_srcdir=$srcdir ;;
  1078. + *) # Relative path.
  1079. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1080. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1081. +esac
  1082. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  1083. +# absolute.
  1084. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  1085. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  1086. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  1087. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  1088. +
  1089. + cd $ac_dir
  1090. + # Check for guested configure; otherwise get Cygnus style configure.
  1091. + if test -f $ac_srcdir/configure.gnu; then
  1092. + echo
  1093. + $SHELL $ac_srcdir/configure.gnu --help=recursive
  1094. + elif test -f $ac_srcdir/configure; then
  1095. + echo
  1096. + $SHELL $ac_srcdir/configure --help=recursive
  1097. + elif test -f $ac_srcdir/configure.ac ||
  1098. + test -f $ac_srcdir/configure.in; then
  1099. + echo
  1100. + $ac_configure --help
  1101. + else
  1102. + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1103. + fi
  1104. + cd $ac_popdir
  1105. + done
  1106. +fi
  1107. +
  1108. +test -n "$ac_init_help" && exit 0
  1109. +if $ac_init_version; then
  1110. + cat <<\_ACEOF
  1111. +
  1112. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  1113. +Free Software Foundation, Inc.
  1114. +This configure script is free software; the Free Software Foundation
  1115. +gives unlimited permission to copy, distribute and modify it.
  1116. +_ACEOF
  1117. + exit 0
  1118. +fi
  1119. +exec 5>config.log
  1120. +cat >&5 <<_ACEOF
  1121. +This file contains any messages produced by compilers while
  1122. +running configure, to aid debugging if configure makes a mistake.
  1123. +
  1124. +It was created by $as_me, which was
  1125. +generated by GNU Autoconf 2.57. Invocation command line was
  1126. +
  1127. + $ $0 $@
  1128. +
  1129. +_ACEOF
  1130. +{
  1131. +cat <<_ASUNAME
  1132. +## --------- ##
  1133. +## Platform. ##
  1134. +## --------- ##
  1135. +
  1136. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1137. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1138. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1139. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1140. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1141. +
  1142. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1143. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1144. +
  1145. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1146. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1147. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1148. +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1149. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1150. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1151. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1152. +
  1153. +_ASUNAME
  1154. +
  1155. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1156. +for as_dir in $PATH
  1157. +do
  1158. + IFS=$as_save_IFS
  1159. + test -z "$as_dir" && as_dir=.
  1160. + echo "PATH: $as_dir"
  1161. +done
  1162. +
  1163. +} >&5
  1164. +
  1165. +cat >&5 <<_ACEOF
  1166. +
  1167. +
  1168. +## ----------- ##
  1169. +## Core tests. ##
  1170. +## ----------- ##
  1171. +
  1172. +_ACEOF
  1173. +
  1174. +
  1175. +# Keep a trace of the command line.
  1176. +# Strip out --no-create and --no-recursion so they do not pile up.
  1177. +# Strip out --silent because we don't want to record it for future runs.
  1178. +# Also quote any args containing shell meta-characters.
  1179. +# Make two passes to allow for proper duplicate-argument suppression.
  1180. +ac_configure_args=
  1181. +ac_configure_args0=
  1182. +ac_configure_args1=
  1183. +ac_sep=
  1184. +ac_must_keep_next=false
  1185. +for ac_pass in 1 2
  1186. +do
  1187. + for ac_arg
  1188. + do
  1189. + case $ac_arg in
  1190. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1191. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1192. + | -silent | --silent | --silen | --sile | --sil)
  1193. + continue ;;
  1194. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1195. + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1196. + esac
  1197. + case $ac_pass in
  1198. + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1199. + 2)
  1200. + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1201. + if test $ac_must_keep_next = true; then
  1202. + ac_must_keep_next=false # Got value, back to normal.
  1203. + else
  1204. + case $ac_arg in
  1205. + *=* | --config-cache | -C | -disable-* | --disable-* \
  1206. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1207. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1208. + | -with-* | --with-* | -without-* | --without-* | --x)
  1209. + case "$ac_configure_args0 " in
  1210. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1211. + esac
  1212. + ;;
  1213. + -* ) ac_must_keep_next=true ;;
  1214. + esac
  1215. + fi
  1216. + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1217. + # Get rid of the leading space.
  1218. + ac_sep=" "
  1219. + ;;
  1220. + esac
  1221. + done
  1222. +done
  1223. +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1224. +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1225. +
  1226. +# When interrupted or exit'd, cleanup temporary files, and complete
  1227. +# config.log. We remove comments because anyway the quotes in there
  1228. +# would cause problems or look ugly.
  1229. +# WARNING: Be sure not to use single quotes in there, as some shells,
  1230. +# such as our DU 5.0 friend, will then `close' the trap.
  1231. +trap 'exit_status=$?
  1232. + # Save into config.log some information that might help in debugging.
  1233. + {
  1234. + echo
  1235. +
  1236. + cat <<\_ASBOX
  1237. +## ---------------- ##
  1238. +## Cache variables. ##
  1239. +## ---------------- ##
  1240. +_ASBOX
  1241. + echo
  1242. + # The following way of writing the cache mishandles newlines in values,
  1243. +{
  1244. + (set) 2>&1 |
  1245. + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1246. + *ac_space=\ *)
  1247. + sed -n \
  1248. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1249. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1250. + ;;
  1251. + *)
  1252. + sed -n \
  1253. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1254. + ;;
  1255. + esac;
  1256. +}
  1257. + echo
  1258. +
  1259. + cat <<\_ASBOX
  1260. +## ----------------- ##
  1261. +## Output variables. ##
  1262. +## ----------------- ##
  1263. +_ASBOX
  1264. + echo
  1265. + for ac_var in $ac_subst_vars
  1266. + do
  1267. + eval ac_val=$`echo $ac_var`
  1268. + echo "$ac_var='"'"'$ac_val'"'"'"
  1269. + done | sort
  1270. + echo
  1271. +
  1272. + if test -n "$ac_subst_files"; then
  1273. + cat <<\_ASBOX
  1274. +## ------------- ##
  1275. +## Output files. ##
  1276. +## ------------- ##
  1277. +_ASBOX
  1278. + echo
  1279. + for ac_var in $ac_subst_files
  1280. + do
  1281. + eval ac_val=$`echo $ac_var`
  1282. + echo "$ac_var='"'"'$ac_val'"'"'"
  1283. + done | sort
  1284. + echo
  1285. + fi
  1286. +
  1287. + if test -s confdefs.h; then
  1288. + cat <<\_ASBOX
  1289. +## ----------- ##
  1290. +## confdefs.h. ##
  1291. +## ----------- ##
  1292. +_ASBOX
  1293. + echo
  1294. + sed "/^$/d" confdefs.h | sort
  1295. + echo
  1296. + fi
  1297. + test "$ac_signal" != 0 &&
  1298. + echo "$as_me: caught signal $ac_signal"
  1299. + echo "$as_me: exit $exit_status"
  1300. + } >&5
  1301. + rm -f core core.* *.core &&
  1302. + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1303. + exit $exit_status
  1304. + ' 0
  1305. +for ac_signal in 1 2 13 15; do
  1306. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1307. +done
  1308. +ac_signal=0
  1309. +
  1310. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  1311. +rm -rf conftest* confdefs.h
  1312. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1313. +echo >confdefs.h
  1314. +
  1315. +# Predefined preprocessor variables.
  1316. +
  1317. +cat >>confdefs.h <<_ACEOF
  1318. +#define PACKAGE_NAME "$PACKAGE_NAME"
  1319. +_ACEOF
  1320. +
  1321. +
  1322. +cat >>confdefs.h <<_ACEOF
  1323. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1324. +_ACEOF
  1325. +
  1326. +
  1327. +cat >>confdefs.h <<_ACEOF
  1328. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  1329. +_ACEOF
  1330. +
  1331. +
  1332. +cat >>confdefs.h <<_ACEOF
  1333. +#define PACKAGE_STRING "$PACKAGE_STRING"
  1334. +_ACEOF
  1335. +
  1336. +
  1337. +cat >>confdefs.h <<_ACEOF
  1338. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1339. +_ACEOF
  1340. +
  1341. +# Let the site file select an alternate cache file if it wants to.
  1342. # Prefer explicitly selected file to automatically selected ones.
  1343. if test -z "$CONFIG_SITE"; then
  1344. if test "x$prefix" != xNONE; then
  1345. @@ -504,39 +1180,103 @@
  1346. fi
  1347. for ac_site_file in $CONFIG_SITE; do
  1348. if test -r "$ac_site_file"; then
  1349. - echo "loading site script $ac_site_file"
  1350. + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1351. +echo "$as_me: loading site script $ac_site_file" >&6;}
  1352. + sed 's/^/| /' "$ac_site_file" >&5
  1353. . "$ac_site_file"
  1354. fi
  1355. done
  1356. if test -r "$cache_file"; then
  1357. - echo "loading cache $cache_file"
  1358. - . $cache_file
  1359. + # Some versions of bash will fail to source /dev/null (special
  1360. + # files actually), so we avoid doing that.
  1361. + if test -f "$cache_file"; then
  1362. + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1363. +echo "$as_me: loading cache $cache_file" >&6;}
  1364. + case $cache_file in
  1365. + [\\/]* | ?:[\\/]* ) . $cache_file;;
  1366. + *) . ./$cache_file;;
  1367. + esac
  1368. + fi
  1369. else
  1370. - echo "creating cache $cache_file"
  1371. - > $cache_file
  1372. + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1373. +echo "$as_me: creating cache $cache_file" >&6;}
  1374. + >$cache_file
  1375. +fi
  1376. +
  1377. +# Check that the precious variables saved in the cache have kept the same
  1378. +# value.
  1379. +ac_cache_corrupted=false
  1380. +for ac_var in `(set) 2>&1 |
  1381. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1382. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1383. + eval ac_new_set=\$ac_env_${ac_var}_set
  1384. + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1385. + eval ac_new_val="\$ac_env_${ac_var}_value"
  1386. + case $ac_old_set,$ac_new_set in
  1387. + set,)
  1388. + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1389. +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1390. + ac_cache_corrupted=: ;;
  1391. + ,set)
  1392. + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1393. +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1394. + ac_cache_corrupted=: ;;
  1395. + ,);;
  1396. + *)
  1397. + if test "x$ac_old_val" != "x$ac_new_val"; then
  1398. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1399. +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1400. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1401. +echo "$as_me: former value: $ac_old_val" >&2;}
  1402. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1403. +echo "$as_me: current value: $ac_new_val" >&2;}
  1404. + ac_cache_corrupted=:
  1405. + fi;;
  1406. + esac
  1407. + # Pass precious variables to config.status.
  1408. + if test "$ac_new_set" = set; then
  1409. + case $ac_new_val in
  1410. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1411. + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1412. + *) ac_arg=$ac_var=$ac_new_val ;;
  1413. + esac
  1414. + case " $ac_configure_args " in
  1415. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1416. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1417. + esac
  1418. + fi
  1419. +done
  1420. +if $ac_cache_corrupted; then
  1421. + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1422. +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1423. + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1424. +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1425. + { (exit 1); exit 1; }; }
  1426. fi
  1427. ac_ext=c
  1428. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1429. ac_cpp='$CPP $CPPFLAGS'
  1430. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1431. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1432. -cross_compiling=$ac_cv_prog_cc_cross
  1433. -
  1434. -ac_exeext=
  1435. -ac_objext=o
  1436. -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  1437. - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  1438. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  1439. - ac_n= ac_c='
  1440. -' ac_t=' '
  1441. - else
  1442. - ac_n=-n ac_c= ac_t=
  1443. - fi
  1444. -else
  1445. - ac_n= ac_c='\c' ac_t=
  1446. -fi
  1447. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1448. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1449. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1450. +
  1451. +
  1452. +
  1453. +
  1454. +
  1455. +
  1456. +
  1457. +
  1458. +
  1459. +
  1460. +
  1461. +
  1462. +
  1463. +
  1464. +
  1465. +
  1466. +
  1467. ac_aux_dir=
  1468. @@ -549,14 +1289,20 @@
  1469. ac_aux_dir=$ac_dir
  1470. ac_install_sh="$ac_aux_dir/install.sh -c"
  1471. break
  1472. + elif test -f $ac_dir/shtool; then
  1473. + ac_aux_dir=$ac_dir
  1474. + ac_install_sh="$ac_aux_dir/shtool install -c"
  1475. + break
  1476. fi
  1477. done
  1478. if test -z "$ac_aux_dir"; then
  1479. - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1480. -fi
  1481. -ac_config_guess=$ac_aux_dir/config.guess
  1482. -ac_config_sub=$ac_aux_dir/config.sub
  1483. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1484. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1485. +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1486. + { (exit 1); exit 1; }; }
  1487. +fi
  1488. +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1489. +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1490. +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1491. # Find a good install program. We prefer a C program (faster),
  1492. # so one script is as good as another. But avoid the broken or
  1493. @@ -565,65 +1311,78 @@
  1494. # SunOS /usr/etc/install
  1495. # IRIX /sbin/install
  1496. # AIX /bin/install
  1497. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  1498. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1499. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1500. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1501. # ./install, which can be erroneously created by make from ./install.sh.
  1502. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1503. -echo "configure:574: checking for a BSD compatible install" >&5
  1504. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1505. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1506. if test -z "$INSTALL"; then
  1507. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1508. - echo $ac_n "(cached) $ac_c" 1>&6
  1509. +if test "${ac_cv_path_install+set}" = set; then
  1510. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1511. else
  1512. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1513. - for ac_dir in $PATH; do
  1514. - # Account for people who put trailing slashes in PATH elements.
  1515. - case "$ac_dir/" in
  1516. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1517. - *)
  1518. - # OSF1 and SCO ODT 3.0 have their own names for install.
  1519. - # Don't use installbsd from OSF since it installs stuff as root
  1520. - # by default.
  1521. - for ac_prog in ginstall scoinst install; do
  1522. - if test -f $ac_dir/$ac_prog; then
  1523. - if test $ac_prog = install &&
  1524. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1525. - # AIX install. It has an incompatible calling convention.
  1526. - :
  1527. - else
  1528. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  1529. - break 2
  1530. - fi
  1531. - fi
  1532. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1533. +for as_dir in $PATH
  1534. +do
  1535. + IFS=$as_save_IFS
  1536. + test -z "$as_dir" && as_dir=.
  1537. + # Account for people who put trailing slashes in PATH elements.
  1538. +case $as_dir/ in
  1539. + ./ | .// | /cC/* | \
  1540. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1541. + /usr/ucb/* ) ;;
  1542. + *)
  1543. + # OSF1 and SCO ODT 3.0 have their own names for install.
  1544. + # Don't use installbsd from OSF since it installs stuff as root
  1545. + # by default.
  1546. + for ac_prog in ginstall scoinst install; do
  1547. + for ac_exec_ext in '' $ac_executable_extensions; do
  1548. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1549. + if test $ac_prog = install &&
  1550. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1551. + # AIX install. It has an incompatible calling convention.
  1552. + :
  1553. + elif test $ac_prog = install &&
  1554. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1555. + # program-specific install script used by HP pwplus--don't use.
  1556. + :
  1557. + else
  1558. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1559. + break 3
  1560. + fi
  1561. + fi
  1562. done
  1563. - ;;
  1564. - esac
  1565. - done
  1566. - IFS="$ac_save_IFS"
  1567. + done
  1568. + ;;
  1569. +esac
  1570. +done
  1571. +
  1572. fi
  1573. if test "${ac_cv_path_install+set}" = set; then
  1574. - INSTALL="$ac_cv_path_install"
  1575. + INSTALL=$ac_cv_path_install
  1576. else
  1577. # As a last resort, use the slow shell script. We don't cache a
  1578. # path for INSTALL within a source directory, because that will
  1579. # break other packages using the cache if that directory is
  1580. # removed, or if the path is relative.
  1581. - INSTALL="$ac_install_sh"
  1582. + INSTALL=$ac_install_sh
  1583. fi
  1584. fi
  1585. -echo "$ac_t""$INSTALL" 1>&6
  1586. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  1587. +echo "${ECHO_T}$INSTALL" >&6
  1588. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1589. # It thinks the first close brace ends the variable substitution.
  1590. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1591. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1592. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1593. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1594. -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  1595. -echo "configure:627: checking whether build environment is sane" >&5
  1596. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1597. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1598. # Just in case
  1599. sleep 1
  1600. echo timestamp > conftestfile
  1601. @@ -645,8 +1404,11 @@
  1602. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1603. # broken ls alias from the environment. This has actually
  1604. # happened. Such a system could not be considered "sane".
  1605. - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  1606. -alias in your environment" 1>&2; exit 1; }
  1607. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1608. +alias in your environment" >&5
  1609. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1610. +alias in your environment" >&2;}
  1611. + { (exit 1); exit 1; }; }
  1612. fi
  1613. test "$2" = conftestfile
  1614. @@ -655,54 +1417,54 @@
  1615. # Ok.
  1616. :
  1617. else
  1618. - { echo "configure: error: newly created file is older than distributed files!
  1619. -Check your system clock" 1>&2; exit 1; }
  1620. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1621. +Check your system clock" >&5
  1622. +echo "$as_me: error: newly created file is older than distributed files!
  1623. +Check your system clock" >&2;}
  1624. + { (exit 1); exit 1; }; }
  1625. fi
  1626. rm -f conftest*
  1627. -echo "$ac_t""yes" 1>&6
  1628. -if test "$program_transform_name" = s,x,x,; then
  1629. - program_transform_name=
  1630. -else
  1631. - # Double any \ or $. echo might interpret backslashes.
  1632. - cat <<\EOF_SED > conftestsed
  1633. -s,\\,\\\\,g; s,\$,$$,g
  1634. -EOF_SED
  1635. - program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  1636. - rm -f conftestsed
  1637. -fi
  1638. +echo "$as_me:$LINENO: result: yes" >&5
  1639. +echo "${ECHO_T}yes" >&6
  1640. test "$program_prefix" != NONE &&
  1641. - program_transform_name="s,^,${program_prefix},; $program_transform_name"
  1642. + program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1643. # Use a double $ so make ignores it.
  1644. test "$program_suffix" != NONE &&
  1645. - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  1646. -
  1647. -# sed with no file args requires a program.
  1648. -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  1649. -
  1650. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1651. -echo "configure:684: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1652. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  1653. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1654. - echo $ac_n "(cached) $ac_c" 1>&6
  1655. + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1656. +# Double any \ or $. echo might interpret backslashes.
  1657. +# By default was `s,x,x', remove it if useless.
  1658. +cat <<\_ACEOF >conftest.sed
  1659. +s/[\\$]/&&/g;s/;s,x,x,$//
  1660. +_ACEOF
  1661. +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1662. +rm conftest.sed
  1663. +
  1664. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1665. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1666. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  1667. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1668. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1669. else
  1670. - cat > conftestmake <<\EOF
  1671. + cat >conftest.make <<\_ACEOF
  1672. all:
  1673. - @echo 'ac_maketemp="${MAKE}"'
  1674. -EOF
  1675. + @echo 'ac_maketemp="$(MAKE)"'
  1676. +_ACEOF
  1677. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1678. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1679. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1680. if test -n "$ac_maketemp"; then
  1681. eval ac_cv_prog_make_${ac_make}_set=yes
  1682. else
  1683. eval ac_cv_prog_make_${ac_make}_set=no
  1684. fi
  1685. -rm -f conftestmake
  1686. +rm -f conftest.make
  1687. fi
  1688. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1689. - echo "$ac_t""yes" 1>&6
  1690. + echo "$as_me:$LINENO: result: yes" >&5
  1691. +echo "${ECHO_T}yes" >&6
  1692. SET_MAKE=
  1693. else
  1694. - echo "$ac_t""no" 1>&6
  1695. + echo "$as_me:$LINENO: result: no" >&5
  1696. +echo "${ECHO_T}no" >&6
  1697. SET_MAKE="MAKE=${MAKE-make}"
  1698. fi
  1699. @@ -712,147 +1474,194 @@
  1700. VERSION=0.4.1
  1701. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  1702. - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  1703. + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1704. +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1705. + { (exit 1); exit 1; }; }
  1706. fi
  1707. -cat >> confdefs.h <<EOF
  1708. +
  1709. +cat >>confdefs.h <<_ACEOF
  1710. #define PACKAGE "$PACKAGE"
  1711. -EOF
  1712. +_ACEOF
  1713. -cat >> confdefs.h <<EOF
  1714. +
  1715. +cat >>confdefs.h <<_ACEOF
  1716. #define VERSION "$VERSION"
  1717. -EOF
  1718. +_ACEOF
  1719. missing_dir=`cd $ac_aux_dir && pwd`
  1720. -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  1721. -echo "configure:730: checking for working aclocal" >&5
  1722. +echo "$as_me:$LINENO: checking for working aclocal" >&5
  1723. +echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
  1724. # Run test in a subshell; some versions of sh will print an error if
  1725. # an executable is not found, even if stderr is redirected.
  1726. # Redirect stdin to placate older versions of autoconf. Sigh.
  1727. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  1728. ACLOCAL=aclocal
  1729. - echo "$ac_t""found" 1>&6
  1730. + echo "$as_me:$LINENO: result: found" >&5
  1731. +echo "${ECHO_T}found" >&6
  1732. else
  1733. ACLOCAL="$missing_dir/missing aclocal"
  1734. - echo "$ac_t""missing" 1>&6
  1735. + echo "$as_me:$LINENO: result: missing" >&5
  1736. +echo "${ECHO_T}missing" >&6
  1737. fi
  1738. -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  1739. -echo "configure:743: checking for working autoconf" >&5
  1740. +echo "$as_me:$LINENO: checking for working autoconf" >&5
  1741. +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  1742. # Run test in a subshell; some versions of sh will print an error if
  1743. # an executable is not found, even if stderr is redirected.
  1744. # Redirect stdin to placate older versions of autoconf. Sigh.
  1745. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  1746. AUTOCONF=autoconf
  1747. - echo "$ac_t""found" 1>&6
  1748. + echo "$as_me:$LINENO: result: found" >&5
  1749. +echo "${ECHO_T}found" >&6
  1750. else
  1751. AUTOCONF="$missing_dir/missing autoconf"
  1752. - echo "$ac_t""missing" 1>&6
  1753. + echo "$as_me:$LINENO: result: missing" >&5
  1754. +echo "${ECHO_T}missing" >&6
  1755. fi
  1756. -echo $ac_n "checking for working automake""... $ac_c" 1>&6
  1757. -echo "configure:756: checking for working automake" >&5
  1758. +echo "$as_me:$LINENO: checking for working automake" >&5
  1759. +echo $ECHO_N "checking for working automake... $ECHO_C" >&6
  1760. # Run test in a subshell; some versions of sh will print an error if
  1761. # an executable is not found, even if stderr is redirected.
  1762. # Redirect stdin to placate older versions of autoconf. Sigh.
  1763. if (automake --version) < /dev/null > /dev/null 2>&1; then
  1764. AUTOMAKE=automake
  1765. - echo "$ac_t""found" 1>&6
  1766. + echo "$as_me:$LINENO: result: found" >&5
  1767. +echo "${ECHO_T}found" >&6
  1768. else
  1769. AUTOMAKE="$missing_dir/missing automake"
  1770. - echo "$ac_t""missing" 1>&6
  1771. + echo "$as_me:$LINENO: result: missing" >&5
  1772. +echo "${ECHO_T}missing" >&6
  1773. fi
  1774. -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  1775. -echo "configure:769: checking for working autoheader" >&5
  1776. +echo "$as_me:$LINENO: checking for working autoheader" >&5
  1777. +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  1778. # Run test in a subshell; some versions of sh will print an error if
  1779. # an executable is not found, even if stderr is redirected.
  1780. # Redirect stdin to placate older versions of autoconf. Sigh.
  1781. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  1782. AUTOHEADER=autoheader
  1783. - echo "$ac_t""found" 1>&6
  1784. + echo "$as_me:$LINENO: result: found" >&5
  1785. +echo "${ECHO_T}found" >&6
  1786. else
  1787. AUTOHEADER="$missing_dir/missing autoheader"
  1788. - echo "$ac_t""missing" 1>&6
  1789. + echo "$as_me:$LINENO: result: missing" >&5
  1790. +echo "${ECHO_T}missing" >&6
  1791. fi
  1792. -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  1793. -echo "configure:782: checking for working makeinfo" >&5
  1794. +echo "$as_me:$LINENO: checking for working makeinfo" >&5
  1795. +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  1796. # Run test in a subshell; some versions of sh will print an error if
  1797. # an executable is not found, even if stderr is redirected.
  1798. # Redirect stdin to placate older versions of autoconf. Sigh.
  1799. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  1800. MAKEINFO=makeinfo
  1801. - echo "$ac_t""found" 1>&6
  1802. + echo "$as_me:$LINENO: result: found" >&5
  1803. +echo "${ECHO_T}found" >&6
  1804. else
  1805. MAKEINFO="$missing_dir/missing makeinfo"
  1806. - echo "$ac_t""missing" 1>&6
  1807. + echo "$as_me:$LINENO: result: missing" >&5
  1808. +echo "${ECHO_T}missing" >&6
  1809. fi
  1810. + ac_config_headers="$ac_config_headers config.h"
  1811. -
  1812. + ac_config_commands="$ac_config_commands default-1"
  1813. # Make sure we can run config.sub.
  1814. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1815. -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1816. -fi
  1817. -
  1818. -echo $ac_n "checking host system type""... $ac_c" 1>&6
  1819. -echo "configure:806: checking host system type" >&5
  1820. -
  1821. -host_alias=$host
  1822. -case "$host_alias" in
  1823. -NONE)
  1824. - case $nonopt in
  1825. - NONE)
  1826. - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1827. - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1828. - fi ;;
  1829. - *) host_alias=$nonopt ;;
  1830. - esac ;;
  1831. -esac
  1832. +$ac_config_sub sun4 >/dev/null 2>&1 ||
  1833. + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1834. +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1835. + { (exit 1); exit 1; }; }
  1836. +
  1837. +echo "$as_me:$LINENO: checking build system type" >&5
  1838. +echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1839. +if test "${ac_cv_build+set}" = set; then
  1840. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1841. +else
  1842. + ac_cv_build_alias=$build_alias
  1843. +test -z "$ac_cv_build_alias" &&
  1844. + ac_cv_build_alias=`$ac_config_guess`
  1845. +test -z "$ac_cv_build_alias" &&
  1846. + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1847. +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1848. + { (exit 1); exit 1; }; }
  1849. +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1850. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1851. +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1852. + { (exit 1); exit 1; }; }
  1853. +
  1854. +fi
  1855. +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1856. +echo "${ECHO_T}$ac_cv_build" >&6
  1857. +build=$ac_cv_build
  1858. +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1859. +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1860. +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1861. +
  1862. +
  1863. +echo "$as_me:$LINENO: checking host system type" >&5
  1864. +echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1865. +if test "${ac_cv_host+set}" = set; then
  1866. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1867. +else
  1868. + ac_cv_host_alias=$host_alias
  1869. +test -z "$ac_cv_host_alias" &&
  1870. + ac_cv_host_alias=$ac_cv_build_alias
  1871. +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1872. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1873. +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1874. + { (exit 1); exit 1; }; }
  1875. +
  1876. +fi
  1877. +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1878. +echo "${ECHO_T}$ac_cv_host" >&6
  1879. +host=$ac_cv_host
  1880. +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1881. +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1882. +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1883. -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1884. -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1885. -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1886. -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1887. -echo "$ac_t""$host" 1>&6
  1888. case "$host" in
  1889. -*-*-*linux*)
  1890. - cat >> confdefs.h <<\EOF
  1891. +*-*-*linux*)
  1892. + cat >>confdefs.h <<\_ACEOF
  1893. #define LINUX 1
  1894. -EOF
  1895. +_ACEOF
  1896. ;;
  1897. *-*-*solaris*)
  1898. - cat >> confdefs.h <<\EOF
  1899. + cat >>confdefs.h <<\_ACEOF
  1900. #define SOLARIS 1
  1901. -EOF
  1902. +_ACEOF
  1903. ;;
  1904. esac
  1905. -echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
  1906. -echo "configure:842: checking whether to enable debugging" >&5
  1907. +echo "$as_me:$LINENO: checking whether to enable debugging" >&5
  1908. +echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
  1909. # Check whether --enable-debug or --disable-debug was given.
  1910. if test "${enable_debug+set}" = set; then
  1911. enableval="$enable_debug"
  1912. - cat >> confdefs.h <<\EOF
  1913. + if [ "$enableval" = "yes" ]; then
  1914. + cat >>confdefs.h <<\_ACEOF
  1915. #define DEBUG 1
  1916. -EOF
  1917. +_ACEOF
  1918. - debug="yes"
  1919. + debug="yes"
  1920. + else
  1921. + debug="no"
  1922. + fi
  1923. else
  1924. debug="no"
  1925. -fi
  1926. -
  1927. -echo "$ac_t""$debug" 1>&6
  1928. +fi;
  1929. +echo "$as_me:$LINENO: result: $debug" >&5
  1930. +echo "${ECHO_T}$debug" >&6
  1931. if test $debug = "yes"; then
  1932. CFLAGS="-g"
  1933. @@ -862,214 +1671,643 @@
  1934. CFLAGS="-Wall $CFLAGS"
  1935. export CFLAGS
  1936. -# Extract the first word of "gcc", so it can be a program name with args.
  1937. +ac_ext=c
  1938. +ac_cpp='$CPP $CPPFLAGS'
  1939. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1940. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1941. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1942. +if test -n "$ac_tool_prefix"; then
  1943. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1944. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1945. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1946. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1947. +if test "${ac_cv_prog_CC+set}" = set; then
  1948. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1949. +else
  1950. + if test -n "$CC"; then
  1951. + ac_cv_prog_CC="$CC" # Let the user override the test.
  1952. +else
  1953. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1954. +for as_dir in $PATH
  1955. +do
  1956. + IFS=$as_save_IFS
  1957. + test -z "$as_dir" && as_dir=.
  1958. + for ac_exec_ext in '' $ac_executable_extensions; do
  1959. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1960. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1961. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1962. + break 2
  1963. + fi
  1964. +done
  1965. +done
  1966. +
  1967. +fi
  1968. +fi
  1969. +CC=$ac_cv_prog_CC
  1970. +if test -n "$CC"; then
  1971. + echo "$as_me:$LINENO: result: $CC" >&5
  1972. +echo "${ECHO_T}$CC" >&6
  1973. +else
  1974. + echo "$as_me:$LINENO: result: no" >&5
  1975. +echo "${ECHO_T}no" >&6
  1976. +fi
  1977. +
  1978. +fi
  1979. +if test -z "$ac_cv_prog_CC"; then
  1980. + ac_ct_CC=$CC
  1981. + # Extract the first word of "gcc", so it can be a program name with args.
  1982. set dummy gcc; ac_word=$2
  1983. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1984. -echo "configure:869: checking for $ac_word" >&5
  1985. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1986. - echo $ac_n "(cached) $ac_c" 1>&6
  1987. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1988. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1989. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1990. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1991. +else
  1992. + if test -n "$ac_ct_CC"; then
  1993. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1994. +else
  1995. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1996. +for as_dir in $PATH
  1997. +do
  1998. + IFS=$as_save_IFS
  1999. + test -z "$as_dir" && as_dir=.
  2000. + for ac_exec_ext in '' $ac_executable_extensions; do
  2001. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2002. + ac_cv_prog_ac_ct_CC="gcc"
  2003. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2004. + break 2
  2005. + fi
  2006. +done
  2007. +done
  2008. +
  2009. +fi
  2010. +fi
  2011. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2012. +if test -n "$ac_ct_CC"; then
  2013. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2014. +echo "${ECHO_T}$ac_ct_CC" >&6
  2015. +else
  2016. + echo "$as_me:$LINENO: result: no" >&5
  2017. +echo "${ECHO_T}no" >&6
  2018. +fi
  2019. +
  2020. + CC=$ac_ct_CC
  2021. +else
  2022. + CC="$ac_cv_prog_CC"
  2023. +fi
  2024. +
  2025. +if test -z "$CC"; then
  2026. + if test -n "$ac_tool_prefix"; then
  2027. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2028. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  2029. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2030. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2031. +if test "${ac_cv_prog_CC+set}" = set; then
  2032. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2033. else
  2034. if test -n "$CC"; then
  2035. ac_cv_prog_CC="$CC" # Let the user override the test.
  2036. else
  2037. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2038. - ac_dummy="$PATH"
  2039. - for ac_dir in $ac_dummy; do
  2040. - test -z "$ac_dir" && ac_dir=.
  2041. - if test -f $ac_dir/$ac_word; then
  2042. - ac_cv_prog_CC="gcc"
  2043. - break
  2044. - fi
  2045. - done
  2046. - IFS="$ac_save_ifs"
  2047. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2048. +for as_dir in $PATH
  2049. +do
  2050. + IFS=$as_save_IFS
  2051. + test -z "$as_dir" && as_dir=.
  2052. + for ac_exec_ext in '' $ac_executable_extensions; do
  2053. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2054. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  2055. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2056. + break 2
  2057. + fi
  2058. +done
  2059. +done
  2060. +
  2061. fi
  2062. fi
  2063. -CC="$ac_cv_prog_CC"
  2064. +CC=$ac_cv_prog_CC
  2065. if test -n "$CC"; then
  2066. - echo "$ac_t""$CC" 1>&6
  2067. + echo "$as_me:$LINENO: result: $CC" >&5
  2068. +echo "${ECHO_T}$CC" >&6
  2069. +else
  2070. + echo "$as_me:$LINENO: result: no" >&5
  2071. +echo "${ECHO_T}no" >&6
  2072. +fi
  2073. +
  2074. +fi
  2075. +if test -z "$ac_cv_prog_CC"; then
  2076. + ac_ct_CC=$CC
  2077. + # Extract the first word of "cc", so it can be a program name with args.
  2078. +set dummy cc; ac_word=$2
  2079. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2080. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2081. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2082. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2083. +else
  2084. + if test -n "$ac_ct_CC"; then
  2085. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2086. +else
  2087. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2088. +for as_dir in $PATH
  2089. +do
  2090. + IFS=$as_save_IFS
  2091. + test -z "$as_dir" && as_dir=.
  2092. + for ac_exec_ext in '' $ac_executable_extensions; do
  2093. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2094. + ac_cv_prog_ac_ct_CC="cc"
  2095. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2096. + break 2
  2097. + fi
  2098. +done
  2099. +done
  2100. +
  2101. +fi
  2102. +fi
  2103. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2104. +if test -n "$ac_ct_CC"; then
  2105. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2106. +echo "${ECHO_T}$ac_ct_CC" >&6
  2107. +else
  2108. + echo "$as_me:$LINENO: result: no" >&5
  2109. +echo "${ECHO_T}no" >&6
  2110. +fi
  2111. +
  2112. + CC=$ac_ct_CC
  2113. else
  2114. - echo "$ac_t""no" 1>&6
  2115. + CC="$ac_cv_prog_CC"
  2116. fi
  2117. +fi
  2118. if test -z "$CC"; then
  2119. # Extract the first word of "cc", so it can be a program name with args.
  2120. set dummy cc; ac_word=$2
  2121. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2122. -echo "configure:899: checking for $ac_word" >&5
  2123. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2124. - echo $ac_n "(cached) $ac_c" 1>&6
  2125. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2126. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2127. +if test "${ac_cv_prog_CC+set}" = set; then
  2128. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2129. else
  2130. if test -n "$CC"; then
  2131. ac_cv_prog_CC="$CC" # Let the user override the test.
  2132. else
  2133. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2134. ac_prog_rejected=no
  2135. - ac_dummy="$PATH"
  2136. - for ac_dir in $ac_dummy; do
  2137. - test -z "$ac_dir" && ac_dir=.
  2138. - if test -f $ac_dir/$ac_word; then
  2139. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  2140. - ac_prog_rejected=yes
  2141. - continue
  2142. - fi
  2143. - ac_cv_prog_CC="cc"
  2144. - break
  2145. - fi
  2146. - done
  2147. - IFS="$ac_save_ifs"
  2148. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2149. +for as_dir in $PATH
  2150. +do
  2151. + IFS=$as_save_IFS
  2152. + test -z "$as_dir" && as_dir=.
  2153. + for ac_exec_ext in '' $ac_executable_extensions; do
  2154. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2155. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2156. + ac_prog_rejected=yes
  2157. + continue
  2158. + fi
  2159. + ac_cv_prog_CC="cc"
  2160. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2161. + break 2
  2162. + fi
  2163. +done
  2164. +done
  2165. +
  2166. if test $ac_prog_rejected = yes; then
  2167. # We found a bogon in the path, so make sure we never use it.
  2168. set dummy $ac_cv_prog_CC
  2169. shift
  2170. - if test $# -gt 0; then
  2171. + if test $# != 0; then
  2172. # We chose a different compiler from the bogus one.
  2173. # However, it has the same basename, so the bogon will be chosen
  2174. # first if we set CC to just the basename; use the full file name.
  2175. shift
  2176. - set dummy "$ac_dir/$ac_word" "$@"
  2177. - shift
  2178. - ac_cv_prog_CC="$@"
  2179. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2180. fi
  2181. fi
  2182. fi
  2183. fi
  2184. -CC="$ac_cv_prog_CC"
  2185. +CC=$ac_cv_prog_CC
  2186. if test -n "$CC"; then
  2187. - echo "$ac_t""$CC" 1>&6
  2188. + echo "$as_me:$LINENO: result: $CC" >&5
  2189. +echo "${ECHO_T}$CC" >&6
  2190. else
  2191. - echo "$ac_t""no" 1>&6
  2192. + echo "$as_me:$LINENO: result: no" >&5
  2193. +echo "${ECHO_T}no" >&6
  2194. fi
  2195. - if test -z "$CC"; then
  2196. - case "`uname -s`" in
  2197. - *win32* | *WIN32*)
  2198. - # Extract the first word of "cl", so it can be a program name with args.
  2199. -set dummy cl; ac_word=$2
  2200. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2201. -echo "configure:950: checking for $ac_word" >&5
  2202. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2203. - echo $ac_n "(cached) $ac_c" 1>&6
  2204. +fi
  2205. +if test -z "$CC"; then
  2206. + if test -n "$ac_tool_prefix"; then
  2207. + for ac_prog in cl
  2208. + do
  2209. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2210. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2211. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2212. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2213. +if test "${ac_cv_prog_CC+set}" = set; then
  2214. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2215. else
  2216. if test -n "$CC"; then
  2217. ac_cv_prog_CC="$CC" # Let the user override the test.
  2218. else
  2219. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2220. - ac_dummy="$PATH"
  2221. - for ac_dir in $ac_dummy; do
  2222. - test -z "$ac_dir" && ac_dir=.
  2223. - if test -f $ac_dir/$ac_word; then
  2224. - ac_cv_prog_CC="cl"
  2225. - break
  2226. - fi
  2227. - done
  2228. - IFS="$ac_save_ifs"
  2229. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2230. +for as_dir in $PATH
  2231. +do
  2232. + IFS=$as_save_IFS
  2233. + test -z "$as_dir" && as_dir=.
  2234. + for ac_exec_ext in '' $ac_executable_extensions; do
  2235. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2236. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2237. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2238. + break 2
  2239. + fi
  2240. +done
  2241. +done
  2242. +
  2243. fi
  2244. fi
  2245. -CC="$ac_cv_prog_CC"
  2246. +CC=$ac_cv_prog_CC
  2247. if test -n "$CC"; then
  2248. - echo "$ac_t""$CC" 1>&6
  2249. + echo "$as_me:$LINENO: result: $CC" >&5
  2250. +echo "${ECHO_T}$CC" >&6
  2251. else
  2252. - echo "$ac_t""no" 1>&6
  2253. + echo "$as_me:$LINENO: result: no" >&5
  2254. +echo "${ECHO_T}no" >&6
  2255. fi
  2256. - ;;
  2257. - esac
  2258. +
  2259. + test -n "$CC" && break
  2260. + done
  2261. +fi
  2262. +if test -z "$CC"; then
  2263. + ac_ct_CC=$CC
  2264. + for ac_prog in cl
  2265. +do
  2266. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  2267. +set dummy $ac_prog; ac_word=$2
  2268. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2269. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2270. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2271. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2272. +else
  2273. + if test -n "$ac_ct_CC"; then
  2274. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2275. +else
  2276. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2277. +for as_dir in $PATH
  2278. +do
  2279. + IFS=$as_save_IFS
  2280. + test -z "$as_dir" && as_dir=.
  2281. + for ac_exec_ext in '' $ac_executable_extensions; do
  2282. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2283. + ac_cv_prog_ac_ct_CC="$ac_prog"
  2284. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2285. + break 2
  2286. fi
  2287. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  2288. +done
  2289. +done
  2290. +
  2291. +fi
  2292. +fi
  2293. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2294. +if test -n "$ac_ct_CC"; then
  2295. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2296. +echo "${ECHO_T}$ac_ct_CC" >&6
  2297. +else
  2298. + echo "$as_me:$LINENO: result: no" >&5
  2299. +echo "${ECHO_T}no" >&6
  2300. fi
  2301. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  2302. -echo "configure:982: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  2303. + test -n "$ac_ct_CC" && break
  2304. +done
  2305. -ac_ext=c
  2306. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2307. -ac_cpp='$CPP $CPPFLAGS'
  2308. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2309. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2310. -cross_compiling=$ac_cv_prog_cc_cross
  2311. + CC=$ac_ct_CC
  2312. +fi
  2313. -cat > conftest.$ac_ext << EOF
  2314. +fi
  2315. -#line 993 "configure"
  2316. -#include "confdefs.h"
  2317. -main(){return(0);}
  2318. -EOF
  2319. -if { (eval echo configure:998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2320. - ac_cv_prog_cc_works=yes
  2321. - # If we can't run a trivial program, we are probably using a cross compiler.
  2322. - if (./conftest; exit) 2>/dev/null; then
  2323. - ac_cv_prog_cc_cross=no
  2324. - else
  2325. - ac_cv_prog_cc_cross=yes
  2326. - fi
  2327. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2328. +See \`config.log' for more details." >&5
  2329. +echo "$as_me: error: no acceptable C compiler found in \$PATH
  2330. +See \`config.log' for more details." >&2;}
  2331. + { (exit 1); exit 1; }; }
  2332. +
  2333. +# Provide some information about the compiler.
  2334. +echo "$as_me:$LINENO:" \
  2335. + "checking for C compiler version" >&5
  2336. +ac_compiler=`set X $ac_compile; echo $2`
  2337. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2338. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  2339. + ac_status=$?
  2340. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2341. + (exit $ac_status); }
  2342. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2343. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  2344. + ac_status=$?
  2345. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2346. + (exit $ac_status); }
  2347. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2348. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  2349. + ac_status=$?
  2350. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2351. + (exit $ac_status); }
  2352. +
  2353. +cat >conftest.$ac_ext <<_ACEOF
  2354. +#line $LINENO "configure"
  2355. +/* confdefs.h. */
  2356. +_ACEOF
  2357. +cat confdefs.h >>conftest.$ac_ext
  2358. +cat >>conftest.$ac_ext <<_ACEOF
  2359. +/* end confdefs.h. */
  2360. +
  2361. +int
  2362. +main ()
  2363. +{
  2364. +
  2365. + ;
  2366. + return 0;
  2367. +}
  2368. +_ACEOF
  2369. +ac_clean_files_save=$ac_clean_files
  2370. +ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2371. +# Try to create an executable without -o first, disregard a.out.
  2372. +# It will help us diagnose broken compilers, and finding out an intuition
  2373. +# of exeext.
  2374. +echo "$as_me:$LINENO: checking for C compiler default output" >&5
  2375. +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  2376. +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2377. +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2378. + (eval $ac_link_default) 2>&5
  2379. + ac_status=$?
  2380. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2381. + (exit $ac_status); }; then
  2382. + # Find the output, starting from the most likely. This scheme is
  2383. +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2384. +# resort.
  2385. +
  2386. +# Be careful to initialize this variable, since it used to be cached.
  2387. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2388. +ac_cv_exeext=
  2389. +# b.out is created by i960 compilers.
  2390. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2391. +do
  2392. + test -f "$ac_file" || continue
  2393. + case $ac_file in
  2394. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2395. + ;;
  2396. + conftest.$ac_ext )
  2397. + # This is the source file.
  2398. + ;;
  2399. + [ab].out )
  2400. + # We found the default executable, but exeext='' is most
  2401. + # certainly right.
  2402. + break;;
  2403. + *.* )
  2404. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2405. + # FIXME: I believe we export ac_cv_exeext for Libtool,
  2406. + # but it would be cool to find out if it's true. Does anybody
  2407. + # maintain Libtool? --akim.
  2408. + export ac_cv_exeext
  2409. + break;;
  2410. + * )
  2411. + break;;
  2412. + esac
  2413. +done
  2414. else
  2415. - echo "configure: failed program was:" >&5
  2416. - cat conftest.$ac_ext >&5
  2417. - ac_cv_prog_cc_works=no
  2418. -fi
  2419. -rm -fr conftest*
  2420. -ac_ext=c
  2421. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2422. -ac_cpp='$CPP $CPPFLAGS'
  2423. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2424. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2425. -cross_compiling=$ac_cv_prog_cc_cross
  2426. + echo "$as_me: failed program was:" >&5
  2427. +sed 's/^/| /' conftest.$ac_ext >&5
  2428. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  2429. -if test $ac_cv_prog_cc_works = no; then
  2430. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  2431. +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2432. +See \`config.log' for more details." >&5
  2433. +echo "$as_me: error: C compiler cannot create executables
  2434. +See \`config.log' for more details." >&2;}
  2435. + { (exit 77); exit 77; }; }
  2436. +fi
  2437. +
  2438. +ac_exeext=$ac_cv_exeext
  2439. +echo "$as_me:$LINENO: result: $ac_file" >&5
  2440. +echo "${ECHO_T}$ac_file" >&6
  2441. +
  2442. +# Check the compiler produces executables we can run. If not, either
  2443. +# the compiler is broken, or we cross compile.
  2444. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2445. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2446. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2447. +# If not cross compiling, check that we can run a simple program.
  2448. +if test "$cross_compiling" != yes; then
  2449. + if { ac_try='./$ac_file'
  2450. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2451. + (eval $ac_try) 2>&5
  2452. + ac_status=$?
  2453. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2454. + (exit $ac_status); }; }; then
  2455. + cross_compiling=no
  2456. + else
  2457. + if test "$cross_compiling" = maybe; then
  2458. + cross_compiling=yes
  2459. + else
  2460. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2461. +If you meant to cross compile, use \`--host'.
  2462. +See \`config.log' for more details." >&5
  2463. +echo "$as_me: error: cannot run C compiled programs.
  2464. +If you meant to cross compile, use \`--host'.
  2465. +See \`config.log' for more details." >&2;}
  2466. + { (exit 1); exit 1; }; }
  2467. + fi
  2468. + fi
  2469. fi
  2470. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  2471. -echo "configure:1024: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  2472. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  2473. -cross_compiling=$ac_cv_prog_cc_cross
  2474. +echo "$as_me:$LINENO: result: yes" >&5
  2475. +echo "${ECHO_T}yes" >&6
  2476. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  2477. -echo "configure:1029: checking whether we are using GNU C" >&5
  2478. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  2479. - echo $ac_n "(cached) $ac_c" 1>&6
  2480. +rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2481. +ac_clean_files=$ac_clean_files_save
  2482. +# Check the compiler produces executables we can run. If not, either
  2483. +# the compiler is broken, or we cross compile.
  2484. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2485. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2486. +echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2487. +echo "${ECHO_T}$cross_compiling" >&6
  2488. +
  2489. +echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2490. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2491. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2492. + (eval $ac_link) 2>&5
  2493. + ac_status=$?
  2494. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2495. + (exit $ac_status); }; then
  2496. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2497. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2498. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  2499. +# `rm'.
  2500. +for ac_file in conftest.exe conftest conftest.*; do
  2501. + test -f "$ac_file" || continue
  2502. + case $ac_file in
  2503. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2504. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2505. + export ac_cv_exeext
  2506. + break;;
  2507. + * ) break;;
  2508. + esac
  2509. +done
  2510. else
  2511. - cat > conftest.c <<EOF
  2512. -#ifdef __GNUC__
  2513. - yes;
  2514. -#endif
  2515. -EOF
  2516. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2517. - ac_cv_prog_gcc=yes
  2518. + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2519. +See \`config.log' for more details." >&5
  2520. +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2521. +See \`config.log' for more details." >&2;}
  2522. + { (exit 1); exit 1; }; }
  2523. +fi
  2524. +
  2525. +rm -f conftest$ac_cv_exeext
  2526. +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2527. +echo "${ECHO_T}$ac_cv_exeext" >&6
  2528. +
  2529. +rm -f conftest.$ac_ext
  2530. +EXEEXT=$ac_cv_exeext
  2531. +ac_exeext=$EXEEXT
  2532. +echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2533. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2534. +if test "${ac_cv_objext+set}" = set; then
  2535. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2536. +else
  2537. + cat >conftest.$ac_ext <<_ACEOF
  2538. +#line $LINENO "configure"
  2539. +/* confdefs.h. */
  2540. +_ACEOF
  2541. +cat confdefs.h >>conftest.$ac_ext
  2542. +cat >>conftest.$ac_ext <<_ACEOF
  2543. +/* end confdefs.h. */
  2544. +
  2545. +int
  2546. +main ()
  2547. +{
  2548. +
  2549. + ;
  2550. + return 0;
  2551. +}
  2552. +_ACEOF
  2553. +rm -f conftest.o conftest.obj
  2554. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2555. + (eval $ac_compile) 2>&5
  2556. + ac_status=$?
  2557. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2558. + (exit $ac_status); }; then
  2559. + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2560. + case $ac_file in
  2561. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2562. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2563. + break;;
  2564. + esac
  2565. +done
  2566. else
  2567. - ac_cv_prog_gcc=no
  2568. -fi
  2569. -fi
  2570. + echo "$as_me: failed program was:" >&5
  2571. +sed 's/^/| /' conftest.$ac_ext >&5
  2572. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  2573. +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2574. +See \`config.log' for more details." >&5
  2575. +echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2576. +See \`config.log' for more details." >&2;}
  2577. + { (exit 1); exit 1; }; }
  2578. +fi
  2579. +
  2580. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2581. +fi
  2582. +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2583. +echo "${ECHO_T}$ac_cv_objext" >&6
  2584. +OBJEXT=$ac_cv_objext
  2585. +ac_objext=$OBJEXT
  2586. +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2587. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2588. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2589. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2590. +else
  2591. + cat >conftest.$ac_ext <<_ACEOF
  2592. +#line $LINENO "configure"
  2593. +/* confdefs.h. */
  2594. +_ACEOF
  2595. +cat confdefs.h >>conftest.$ac_ext
  2596. +cat >>conftest.$ac_ext <<_ACEOF
  2597. +/* end confdefs.h. */
  2598. +
  2599. +int
  2600. +main ()
  2601. +{
  2602. +#ifndef __GNUC__
  2603. + choke me
  2604. +#endif
  2605. -if test $ac_cv_prog_gcc = yes; then
  2606. - GCC=yes
  2607. -else
  2608. - GCC=
  2609. -fi
  2610. + ;
  2611. + return 0;
  2612. +}
  2613. +_ACEOF
  2614. +rm -f conftest.$ac_objext
  2615. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2616. + (eval $ac_compile) 2>&5
  2617. + ac_status=$?
  2618. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2619. + (exit $ac_status); } &&
  2620. + { ac_try='test -s conftest.$ac_objext'
  2621. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2622. + (eval $ac_try) 2>&5
  2623. + ac_status=$?
  2624. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2625. + (exit $ac_status); }; }; then
  2626. + ac_compiler_gnu=yes
  2627. +else
  2628. + echo "$as_me: failed program was:" >&5
  2629. +sed 's/^/| /' conftest.$ac_ext >&5
  2630. +
  2631. +ac_compiler_gnu=no
  2632. +fi
  2633. +rm -f conftest.$ac_objext conftest.$ac_ext
  2634. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2635. +
  2636. +fi
  2637. +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2638. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2639. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  2640. +ac_test_CFLAGS=${CFLAGS+set}
  2641. +ac_save_CFLAGS=$CFLAGS
  2642. +CFLAGS="-g"
  2643. +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2644. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2645. +if test "${ac_cv_prog_cc_g+set}" = set; then
  2646. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2647. +else
  2648. + cat >conftest.$ac_ext <<_ACEOF
  2649. +#line $LINENO "configure"
  2650. +/* confdefs.h. */
  2651. +_ACEOF
  2652. +cat confdefs.h >>conftest.$ac_ext
  2653. +cat >>conftest.$ac_ext <<_ACEOF
  2654. +/* end confdefs.h. */
  2655. +
  2656. +int
  2657. +main ()
  2658. +{
  2659. -ac_test_CFLAGS="${CFLAGS+set}"
  2660. -ac_save_CFLAGS="$CFLAGS"
  2661. -CFLAGS=
  2662. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  2663. -echo "configure:1057: checking whether ${CC-cc} accepts -g" >&5
  2664. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  2665. - echo $ac_n "(cached) $ac_c" 1>&6
  2666. -else
  2667. - echo 'void f(){}' > conftest.c
  2668. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  2669. + ;
  2670. + return 0;
  2671. +}
  2672. +_ACEOF
  2673. +rm -f conftest.$ac_objext
  2674. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2675. + (eval $ac_compile) 2>&5
  2676. + ac_status=$?
  2677. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2678. + (exit $ac_status); } &&
  2679. + { ac_try='test -s conftest.$ac_objext'
  2680. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2681. + (eval $ac_try) 2>&5
  2682. + ac_status=$?
  2683. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2684. + (exit $ac_status); }; }; then
  2685. ac_cv_prog_cc_g=yes
  2686. else
  2687. - ac_cv_prog_cc_g=no
  2688. -fi
  2689. -rm -f conftest*
  2690. + echo "$as_me: failed program was:" >&5
  2691. +sed 's/^/| /' conftest.$ac_ext >&5
  2692. +ac_cv_prog_cc_g=no
  2693. fi
  2694. -
  2695. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  2696. +rm -f conftest.$ac_objext conftest.$ac_ext
  2697. +fi
  2698. +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2699. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2700. if test "$ac_test_CFLAGS" = set; then
  2701. - CFLAGS="$ac_save_CFLAGS"
  2702. + CFLAGS=$ac_save_CFLAGS
  2703. elif test $ac_cv_prog_cc_g = yes; then
  2704. if test "$GCC" = yes; then
  2705. CFLAGS="-g -O2"
  2706. @@ -1083,86 +2321,457 @@
  2707. CFLAGS=
  2708. fi
  2709. fi
  2710. +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2711. +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2712. +if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2713. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2714. +else
  2715. + ac_cv_prog_cc_stdc=no
  2716. +ac_save_CC=$CC
  2717. +cat >conftest.$ac_ext <<_ACEOF
  2718. +#line $LINENO "configure"
  2719. +/* confdefs.h. */
  2720. +_ACEOF
  2721. +cat confdefs.h >>conftest.$ac_ext
  2722. +cat >>conftest.$ac_ext <<_ACEOF
  2723. +/* end confdefs.h. */
  2724. +#include <stdarg.h>
  2725. +#include <stdio.h>
  2726. +#include <sys/types.h>
  2727. +#include <sys/stat.h>
  2728. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2729. +struct buf { int x; };
  2730. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2731. +static char *e (p, i)
  2732. + char **p;
  2733. + int i;
  2734. +{
  2735. + return p[i];
  2736. +}
  2737. +static char *f (char * (*g) (char **, int), char **p, ...)
  2738. +{
  2739. + char *s;
  2740. + va_list v;
  2741. + va_start (v,p);
  2742. + s = g (p, va_arg (v,int));
  2743. + va_end (v);
  2744. + return s;
  2745. +}
  2746. +int test (int i, double x);
  2747. +struct s1 {int (*f) (int a);};
  2748. +struct s2 {int (*f) (double a);};
  2749. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2750. +int argc;
  2751. +char **argv;
  2752. +int
  2753. +main ()
  2754. +{
  2755. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2756. + ;
  2757. + return 0;
  2758. +}
  2759. +_ACEOF
  2760. +# Don't try gcc -ansi; that turns off useful extensions and
  2761. +# breaks some systems' header files.
  2762. +# AIX -qlanglvl=ansi
  2763. +# Ultrix and OSF/1 -std1
  2764. +# HP-UX 10.20 and later -Ae
  2765. +# HP-UX older versions -Aa -D_HPUX_SOURCE
  2766. +# SVR4 -Xc -D__EXTENSIONS__
  2767. +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2768. +do
  2769. + CC="$ac_save_CC $ac_arg"
  2770. + rm -f conftest.$ac_objext
  2771. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2772. + (eval $ac_compile) 2>&5
  2773. + ac_status=$?
  2774. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2775. + (exit $ac_status); } &&
  2776. + { ac_try='test -s conftest.$ac_objext'
  2777. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2778. + (eval $ac_try) 2>&5
  2779. + ac_status=$?
  2780. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2781. + (exit $ac_status); }; }; then
  2782. + ac_cv_prog_cc_stdc=$ac_arg
  2783. +break
  2784. +else
  2785. + echo "$as_me: failed program was:" >&5
  2786. +sed 's/^/| /' conftest.$ac_ext >&5
  2787. +
  2788. +fi
  2789. +rm -f conftest.$ac_objext
  2790. +done
  2791. +rm -f conftest.$ac_ext conftest.$ac_objext
  2792. +CC=$ac_save_CC
  2793. +
  2794. +fi
  2795. +
  2796. +case "x$ac_cv_prog_cc_stdc" in
  2797. + x|xno)
  2798. + echo "$as_me:$LINENO: result: none needed" >&5
  2799. +echo "${ECHO_T}none needed" >&6 ;;
  2800. + *)
  2801. + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2802. +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2803. + CC="$CC $ac_cv_prog_cc_stdc" ;;
  2804. +esac
  2805. +
  2806. +# Some people use a C++ compiler to compile C. Since we use `exit',
  2807. +# in C++ we need to declare it. In case someone uses the same compiler
  2808. +# for both compiling C and C++ we need to have the C++ compiler decide
  2809. +# the declaration of exit, since it's the most demanding environment.
  2810. +cat >conftest.$ac_ext <<_ACEOF
  2811. +#ifndef __cplusplus
  2812. + choke me
  2813. +#endif
  2814. +_ACEOF
  2815. +rm -f conftest.$ac_objext
  2816. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2817. + (eval $ac_compile) 2>&5
  2818. + ac_status=$?
  2819. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2820. + (exit $ac_status); } &&
  2821. + { ac_try='test -s conftest.$ac_objext'
  2822. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2823. + (eval $ac_try) 2>&5
  2824. + ac_status=$?
  2825. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2826. + (exit $ac_status); }; }; then
  2827. + for ac_declaration in \
  2828. + ''\
  2829. + '#include <stdlib.h>' \
  2830. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2831. + 'extern "C" void std::exit (int); using std::exit;' \
  2832. + 'extern "C" void exit (int) throw ();' \
  2833. + 'extern "C" void exit (int);' \
  2834. + 'void exit (int);'
  2835. +do
  2836. + cat >conftest.$ac_ext <<_ACEOF
  2837. +#line $LINENO "configure"
  2838. +/* confdefs.h. */
  2839. +_ACEOF
  2840. +cat confdefs.h >>conftest.$ac_ext
  2841. +cat >>conftest.$ac_ext <<_ACEOF
  2842. +/* end confdefs.h. */
  2843. +#include <stdlib.h>
  2844. +$ac_declaration
  2845. +int
  2846. +main ()
  2847. +{
  2848. +exit (42);
  2849. + ;
  2850. + return 0;
  2851. +}
  2852. +_ACEOF
  2853. +rm -f conftest.$ac_objext
  2854. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2855. + (eval $ac_compile) 2>&5
  2856. + ac_status=$?
  2857. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2858. + (exit $ac_status); } &&
  2859. + { ac_try='test -s conftest.$ac_objext'
  2860. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2861. + (eval $ac_try) 2>&5
  2862. + ac_status=$?
  2863. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2864. + (exit $ac_status); }; }; then
  2865. + :
  2866. +else
  2867. + echo "$as_me: failed program was:" >&5
  2868. +sed 's/^/| /' conftest.$ac_ext >&5
  2869. +
  2870. +continue
  2871. +fi
  2872. +rm -f conftest.$ac_objext conftest.$ac_ext
  2873. + cat >conftest.$ac_ext <<_ACEOF
  2874. +#line $LINENO "configure"
  2875. +/* confdefs.h. */
  2876. +_ACEOF
  2877. +cat confdefs.h >>conftest.$ac_ext
  2878. +cat >>conftest.$ac_ext <<_ACEOF
  2879. +/* end confdefs.h. */
  2880. +$ac_declaration
  2881. +int
  2882. +main ()
  2883. +{
  2884. +exit (42);
  2885. + ;
  2886. + return 0;
  2887. +}
  2888. +_ACEOF
  2889. +rm -f conftest.$ac_objext
  2890. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2891. + (eval $ac_compile) 2>&5
  2892. + ac_status=$?
  2893. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2894. + (exit $ac_status); } &&
  2895. + { ac_try='test -s conftest.$ac_objext'
  2896. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2897. + (eval $ac_try) 2>&5
  2898. + ac_status=$?
  2899. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2900. + (exit $ac_status); }; }; then
  2901. + break
  2902. +else
  2903. + echo "$as_me: failed program was:" >&5
  2904. +sed 's/^/| /' conftest.$ac_ext >&5
  2905. +
  2906. +fi
  2907. +rm -f conftest.$ac_objext conftest.$ac_ext
  2908. +done
  2909. +rm -f conftest*
  2910. +if test -n "$ac_declaration"; then
  2911. + echo '#ifdef __cplusplus' >>confdefs.h
  2912. + echo $ac_declaration >>confdefs.h
  2913. + echo '#endif' >>confdefs.h
  2914. +fi
  2915. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2916. -echo "configure:1089: checking how to run the C preprocessor" >&5
  2917. +else
  2918. + echo "$as_me: failed program was:" >&5
  2919. +sed 's/^/| /' conftest.$ac_ext >&5
  2920. +
  2921. +fi
  2922. +rm -f conftest.$ac_objext conftest.$ac_ext
  2923. +ac_ext=c
  2924. +ac_cpp='$CPP $CPPFLAGS'
  2925. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2926. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2927. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2928. +
  2929. +ac_ext=c
  2930. +ac_cpp='$CPP $CPPFLAGS'
  2931. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2932. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2933. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2934. +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2935. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2936. # On Suns, sometimes $CPP names a directory.
  2937. if test -n "$CPP" && test -d "$CPP"; then
  2938. CPP=
  2939. fi
  2940. if test -z "$CPP"; then
  2941. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2942. - echo $ac_n "(cached) $ac_c" 1>&6
  2943. + if test "${ac_cv_prog_CPP+set}" = set; then
  2944. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2945. else
  2946. - # This must be in double quotes, not single quotes, because CPP may get
  2947. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  2948. - CPP="${CC-cc} -E"
  2949. + # Double quotes because CPP needs to be expanded
  2950. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2951. + do
  2952. + ac_preproc_ok=false
  2953. +for ac_c_preproc_warn_flag in '' yes
  2954. +do
  2955. + # Use a header file that comes with gcc, so configuring glibc
  2956. + # with a fresh cross-compiler works.
  2957. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2958. + # <limits.h> exists even on freestanding compilers.
  2959. # On the NeXT, cc -E runs the code through the compiler's parser,
  2960. - # not just through cpp.
  2961. - cat > conftest.$ac_ext <<EOF
  2962. -#line 1104 "configure"
  2963. -#include "confdefs.h"
  2964. -#include <assert.h>
  2965. -Syntax Error
  2966. -EOF
  2967. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2968. -{ (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2969. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2970. -if test -z "$ac_err"; then
  2971. - :
  2972. + # not just through cpp. "Syntax error" is here to catch this case.
  2973. + cat >conftest.$ac_ext <<_ACEOF
  2974. +#line $LINENO "configure"
  2975. +/* confdefs.h. */
  2976. +_ACEOF
  2977. +cat confdefs.h >>conftest.$ac_ext
  2978. +cat >>conftest.$ac_ext <<_ACEOF
  2979. +/* end confdefs.h. */
  2980. +#ifdef __STDC__
  2981. +# include <limits.h>
  2982. +#else
  2983. +# include <assert.h>
  2984. +#endif
  2985. + Syntax error
  2986. +_ACEOF
  2987. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2988. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2989. + ac_status=$?
  2990. + grep -v '^ *+' conftest.er1 >conftest.err
  2991. + rm -f conftest.er1
  2992. + cat conftest.err >&5
  2993. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2994. + (exit $ac_status); } >/dev/null; then
  2995. + if test -s conftest.err; then
  2996. + ac_cpp_err=$ac_c_preproc_warn_flag
  2997. + else
  2998. + ac_cpp_err=
  2999. + fi
  3000. else
  3001. - echo "$ac_err" >&5
  3002. - echo "configure: failed program was:" >&5
  3003. - cat conftest.$ac_ext >&5
  3004. - rm -rf conftest*
  3005. - CPP="${CC-cc} -E -traditional-cpp"
  3006. - cat > conftest.$ac_ext <<EOF
  3007. -#line 1121 "configure"
  3008. -#include "confdefs.h"
  3009. -#include <assert.h>
  3010. -Syntax Error
  3011. -EOF
  3012. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3013. -{ (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3014. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3015. -if test -z "$ac_err"; then
  3016. + ac_cpp_err=yes
  3017. +fi
  3018. +if test -z "$ac_cpp_err"; then
  3019. :
  3020. else
  3021. - echo "$ac_err" >&5
  3022. - echo "configure: failed program was:" >&5
  3023. - cat conftest.$ac_ext >&5
  3024. - rm -rf conftest*
  3025. - CPP="${CC-cc} -nologo -E"
  3026. - cat > conftest.$ac_ext <<EOF
  3027. -#line 1138 "configure"
  3028. -#include "confdefs.h"
  3029. -#include <assert.h>
  3030. -Syntax Error
  3031. -EOF
  3032. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3033. -{ (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3034. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3035. -if test -z "$ac_err"; then
  3036. - :
  3037. + echo "$as_me: failed program was:" >&5
  3038. +sed 's/^/| /' conftest.$ac_ext >&5
  3039. +
  3040. + # Broken: fails on valid input.
  3041. +continue
  3042. +fi
  3043. +rm -f conftest.err conftest.$ac_ext
  3044. +
  3045. + # OK, works on sane cases. Now check whether non-existent headers
  3046. + # can be detected and how.
  3047. + cat >conftest.$ac_ext <<_ACEOF
  3048. +#line $LINENO "configure"
  3049. +/* confdefs.h. */
  3050. +_ACEOF
  3051. +cat confdefs.h >>conftest.$ac_ext
  3052. +cat >>conftest.$ac_ext <<_ACEOF
  3053. +/* end confdefs.h. */
  3054. +#include <ac_nonexistent.h>
  3055. +_ACEOF
  3056. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3057. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3058. + ac_status=$?
  3059. + grep -v '^ *+' conftest.er1 >conftest.err
  3060. + rm -f conftest.er1
  3061. + cat conftest.err >&5
  3062. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3063. + (exit $ac_status); } >/dev/null; then
  3064. + if test -s conftest.err; then
  3065. + ac_cpp_err=$ac_c_preproc_warn_flag
  3066. + else
  3067. + ac_cpp_err=
  3068. + fi
  3069. else
  3070. - echo "$ac_err" >&5
  3071. - echo "configure: failed program was:" >&5
  3072. - cat conftest.$ac_ext >&5
  3073. - rm -rf conftest*
  3074. - CPP=/lib/cpp
  3075. + ac_cpp_err=yes
  3076. fi
  3077. -rm -f conftest*
  3078. +if test -z "$ac_cpp_err"; then
  3079. + # Broken: success on invalid input.
  3080. +continue
  3081. +else
  3082. + echo "$as_me: failed program was:" >&5
  3083. +sed 's/^/| /' conftest.$ac_ext >&5
  3084. +
  3085. + # Passes both tests.
  3086. +ac_preproc_ok=:
  3087. +break
  3088. fi
  3089. -rm -f conftest*
  3090. +rm -f conftest.err conftest.$ac_ext
  3091. +
  3092. +done
  3093. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3094. +rm -f conftest.err conftest.$ac_ext
  3095. +if $ac_preproc_ok; then
  3096. + break
  3097. fi
  3098. -rm -f conftest*
  3099. - ac_cv_prog_CPP="$CPP"
  3100. +
  3101. + done
  3102. + ac_cv_prog_CPP=$CPP
  3103. +
  3104. fi
  3105. - CPP="$ac_cv_prog_CPP"
  3106. + CPP=$ac_cv_prog_CPP
  3107. +else
  3108. + ac_cv_prog_CPP=$CPP
  3109. +fi
  3110. +echo "$as_me:$LINENO: result: $CPP" >&5
  3111. +echo "${ECHO_T}$CPP" >&6
  3112. +ac_preproc_ok=false
  3113. +for ac_c_preproc_warn_flag in '' yes
  3114. +do
  3115. + # Use a header file that comes with gcc, so configuring glibc
  3116. + # with a fresh cross-compiler works.
  3117. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3118. + # <limits.h> exists even on freestanding compilers.
  3119. + # On the NeXT, cc -E runs the code through the compiler's parser,
  3120. + # not just through cpp. "Syntax error" is here to catch this case.
  3121. + cat >conftest.$ac_ext <<_ACEOF
  3122. +#line $LINENO "configure"
  3123. +/* confdefs.h. */
  3124. +_ACEOF
  3125. +cat confdefs.h >>conftest.$ac_ext
  3126. +cat >>conftest.$ac_ext <<_ACEOF
  3127. +/* end confdefs.h. */
  3128. +#ifdef __STDC__
  3129. +# include <limits.h>
  3130. +#else
  3131. +# include <assert.h>
  3132. +#endif
  3133. + Syntax error
  3134. +_ACEOF
  3135. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3136. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3137. + ac_status=$?
  3138. + grep -v '^ *+' conftest.er1 >conftest.err
  3139. + rm -f conftest.er1
  3140. + cat conftest.err >&5
  3141. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3142. + (exit $ac_status); } >/dev/null; then
  3143. + if test -s conftest.err; then
  3144. + ac_cpp_err=$ac_c_preproc_warn_flag
  3145. + else
  3146. + ac_cpp_err=
  3147. + fi
  3148. else
  3149. - ac_cv_prog_CPP="$CPP"
  3150. + ac_cpp_err=yes
  3151. fi
  3152. -echo "$ac_t""$CPP" 1>&6
  3153. +if test -z "$ac_cpp_err"; then
  3154. + :
  3155. +else
  3156. + echo "$as_me: failed program was:" >&5
  3157. +sed 's/^/| /' conftest.$ac_ext >&5
  3158. +
  3159. + # Broken: fails on valid input.
  3160. +continue
  3161. +fi
  3162. +rm -f conftest.err conftest.$ac_ext
  3163. +
  3164. + # OK, works on sane cases. Now check whether non-existent headers
  3165. + # can be detected and how.
  3166. + cat >conftest.$ac_ext <<_ACEOF
  3167. +#line $LINENO "configure"
  3168. +/* confdefs.h. */
  3169. +_ACEOF
  3170. +cat confdefs.h >>conftest.$ac_ext
  3171. +cat >>conftest.$ac_ext <<_ACEOF
  3172. +/* end confdefs.h. */
  3173. +#include <ac_nonexistent.h>
  3174. +_ACEOF
  3175. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3176. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3177. + ac_status=$?
  3178. + grep -v '^ *+' conftest.er1 >conftest.err
  3179. + rm -f conftest.er1
  3180. + cat conftest.err >&5
  3181. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3182. + (exit $ac_status); } >/dev/null; then
  3183. + if test -s conftest.err; then
  3184. + ac_cpp_err=$ac_c_preproc_warn_flag
  3185. + else
  3186. + ac_cpp_err=
  3187. + fi
  3188. +else
  3189. + ac_cpp_err=yes
  3190. +fi
  3191. +if test -z "$ac_cpp_err"; then
  3192. + # Broken: success on invalid input.
  3193. +continue
  3194. +else
  3195. + echo "$as_me: failed program was:" >&5
  3196. +sed 's/^/| /' conftest.$ac_ext >&5
  3197. +
  3198. + # Passes both tests.
  3199. +ac_preproc_ok=:
  3200. +break
  3201. +fi
  3202. +rm -f conftest.err conftest.$ac_ext
  3203. +
  3204. +done
  3205. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3206. +rm -f conftest.err conftest.$ac_ext
  3207. +if $ac_preproc_ok; then
  3208. + :
  3209. +else
  3210. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3211. +See \`config.log' for more details." >&5
  3212. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3213. +See \`config.log' for more details." >&2;}
  3214. + { (exit 1); exit 1; }; }
  3215. +fi
  3216. +
  3217. +ac_ext=c
  3218. +ac_cpp='$CPP $CPPFLAGS'
  3219. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3220. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3221. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3222. # Find a good install program. We prefer a C program (faster),
  3223. # so one script is as good as another. But avoid the broken or
  3224. @@ -1171,767 +2780,1576 @@
  3225. # SunOS /usr/etc/install
  3226. # IRIX /sbin/install
  3227. # AIX /bin/install
  3228. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  3229. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3230. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3231. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3232. # ./install, which can be erroneously created by make from ./install.sh.
  3233. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  3234. -echo "configure:1180: checking for a BSD compatible install" >&5
  3235. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3236. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3237. if test -z "$INSTALL"; then
  3238. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  3239. - echo $ac_n "(cached) $ac_c" 1>&6
  3240. +if test "${ac_cv_path_install+set}" = set; then
  3241. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3242. else
  3243. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  3244. - for ac_dir in $PATH; do
  3245. - # Account for people who put trailing slashes in PATH elements.
  3246. - case "$ac_dir/" in
  3247. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  3248. - *)
  3249. - # OSF1 and SCO ODT 3.0 have their own names for install.
  3250. - # Don't use installbsd from OSF since it installs stuff as root
  3251. - # by default.
  3252. - for ac_prog in ginstall scoinst install; do
  3253. - if test -f $ac_dir/$ac_prog; then
  3254. - if test $ac_prog = install &&
  3255. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  3256. - # AIX install. It has an incompatible calling convention.
  3257. - :
  3258. - else
  3259. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  3260. - break 2
  3261. - fi
  3262. - fi
  3263. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3264. +for as_dir in $PATH
  3265. +do
  3266. + IFS=$as_save_IFS
  3267. + test -z "$as_dir" && as_dir=.
  3268. + # Account for people who put trailing slashes in PATH elements.
  3269. +case $as_dir/ in
  3270. + ./ | .// | /cC/* | \
  3271. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3272. + /usr/ucb/* ) ;;
  3273. + *)
  3274. + # OSF1 and SCO ODT 3.0 have their own names for install.
  3275. + # Don't use installbsd from OSF since it installs stuff as root
  3276. + # by default.
  3277. + for ac_prog in ginstall scoinst install; do
  3278. + for ac_exec_ext in '' $ac_executable_extensions; do
  3279. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3280. + if test $ac_prog = install &&
  3281. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3282. + # AIX install. It has an incompatible calling convention.
  3283. + :
  3284. + elif test $ac_prog = install &&
  3285. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3286. + # program-specific install script used by HP pwplus--don't use.
  3287. + :
  3288. + else
  3289. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3290. + break 3
  3291. + fi
  3292. + fi
  3293. done
  3294. - ;;
  3295. - esac
  3296. - done
  3297. - IFS="$ac_save_IFS"
  3298. + done
  3299. + ;;
  3300. +esac
  3301. +done
  3302. +
  3303. fi
  3304. if test "${ac_cv_path_install+set}" = set; then
  3305. - INSTALL="$ac_cv_path_install"
  3306. + INSTALL=$ac_cv_path_install
  3307. else
  3308. # As a last resort, use the slow shell script. We don't cache a
  3309. # path for INSTALL within a source directory, because that will
  3310. # break other packages using the cache if that directory is
  3311. # removed, or if the path is relative.
  3312. - INSTALL="$ac_install_sh"
  3313. + INSTALL=$ac_install_sh
  3314. fi
  3315. fi
  3316. -echo "$ac_t""$INSTALL" 1>&6
  3317. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  3318. +echo "${ECHO_T}$INSTALL" >&6
  3319. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3320. # It thinks the first close brace ends the variable substitution.
  3321. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3322. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  3323. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3324. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3325. -# Extract the first word of "ranlib", so it can be a program name with args.
  3326. -set dummy ranlib; ac_word=$2
  3327. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3328. -echo "configure:1235: checking for $ac_word" >&5
  3329. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  3330. - echo $ac_n "(cached) $ac_c" 1>&6
  3331. +if test -n "$ac_tool_prefix"; then
  3332. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3333. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3334. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  3335. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3336. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  3337. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3338. else
  3339. if test -n "$RANLIB"; then
  3340. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3341. else
  3342. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3343. - ac_dummy="$PATH"
  3344. - for ac_dir in $ac_dummy; do
  3345. - test -z "$ac_dir" && ac_dir=.
  3346. - if test -f $ac_dir/$ac_word; then
  3347. - ac_cv_prog_RANLIB="ranlib"
  3348. - break
  3349. - fi
  3350. - done
  3351. - IFS="$ac_save_ifs"
  3352. - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  3353. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3354. +for as_dir in $PATH
  3355. +do
  3356. + IFS=$as_save_IFS
  3357. + test -z "$as_dir" && as_dir=.
  3358. + for ac_exec_ext in '' $ac_executable_extensions; do
  3359. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3360. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3361. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3362. + break 2
  3363. + fi
  3364. +done
  3365. +done
  3366. +
  3367. fi
  3368. fi
  3369. -RANLIB="$ac_cv_prog_RANLIB"
  3370. +RANLIB=$ac_cv_prog_RANLIB
  3371. if test -n "$RANLIB"; then
  3372. - echo "$ac_t""$RANLIB" 1>&6
  3373. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  3374. +echo "${ECHO_T}$RANLIB" >&6
  3375. +else
  3376. + echo "$as_me:$LINENO: result: no" >&5
  3377. +echo "${ECHO_T}no" >&6
  3378. +fi
  3379. +
  3380. +fi
  3381. +if test -z "$ac_cv_prog_RANLIB"; then
  3382. + ac_ct_RANLIB=$RANLIB
  3383. + # Extract the first word of "ranlib", so it can be a program name with args.
  3384. +set dummy ranlib; ac_word=$2
  3385. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  3386. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3387. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3388. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3389. +else
  3390. + if test -n "$ac_ct_RANLIB"; then
  3391. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3392. else
  3393. - echo "$ac_t""no" 1>&6
  3394. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3395. +for as_dir in $PATH
  3396. +do
  3397. + IFS=$as_save_IFS
  3398. + test -z "$as_dir" && as_dir=.
  3399. + for ac_exec_ext in '' $ac_executable_extensions; do
  3400. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3401. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  3402. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3403. + break 2
  3404. + fi
  3405. +done
  3406. +done
  3407. +
  3408. + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3409. +fi
  3410. +fi
  3411. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3412. +if test -n "$ac_ct_RANLIB"; then
  3413. + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3414. +echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3415. +else
  3416. + echo "$as_me:$LINENO: result: no" >&5
  3417. +echo "${ECHO_T}no" >&6
  3418. fi
  3419. + RANLIB=$ac_ct_RANLIB
  3420. +else
  3421. + RANLIB="$ac_cv_prog_RANLIB"
  3422. +fi
  3423. +
  3424. +
  3425. -echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3426. -echo "configure:1265: checking for gethostbyname" >&5
  3427. -if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  3428. - echo $ac_n "(cached) $ac_c" 1>&6
  3429. +echo "$as_me:$LINENO: checking for gethostbyname" >&5
  3430. +echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  3431. +if test "${ac_cv_func_gethostbyname+set}" = set; then
  3432. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3433. else
  3434. - cat > conftest.$ac_ext <<EOF
  3435. -#line 1270 "configure"
  3436. -#include "confdefs.h"
  3437. + cat >conftest.$ac_ext <<_ACEOF
  3438. +#line $LINENO "configure"
  3439. +/* confdefs.h. */
  3440. +_ACEOF
  3441. +cat confdefs.h >>conftest.$ac_ext
  3442. +cat >>conftest.$ac_ext <<_ACEOF
  3443. +/* end confdefs.h. */
  3444. /* System header to define __stub macros and hopefully few prototypes,
  3445. - which can conflict with char gethostbyname(); below. */
  3446. -#include <assert.h>
  3447. + which can conflict with char gethostbyname (); below.
  3448. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3449. + <limits.h> exists even on freestanding compilers. */
  3450. +#ifdef __STDC__
  3451. +# include <limits.h>
  3452. +#else
  3453. +# include <assert.h>
  3454. +#endif
  3455. /* Override any gcc2 internal prototype to avoid an error. */
  3456. +#ifdef __cplusplus
  3457. +extern "C"
  3458. +{
  3459. +#endif
  3460. /* We use char because int might match the return type of a gcc2
  3461. - builtin and then its argument prototype would still apply. */
  3462. -char gethostbyname();
  3463. -
  3464. -int main() {
  3465. -
  3466. + builtin and then its argument prototype would still apply. */
  3467. +char gethostbyname ();
  3468. /* The GNU C library defines this for functions which it implements
  3469. to always fail with ENOSYS. Some functions are actually named
  3470. something starting with __ and the normal name is an alias. */
  3471. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3472. choke me
  3473. #else
  3474. -gethostbyname();
  3475. +char (*f) () = gethostbyname;
  3476. +#endif
  3477. +#ifdef __cplusplus
  3478. +}
  3479. #endif
  3480. -; return 0; }
  3481. -EOF
  3482. -if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3483. - rm -rf conftest*
  3484. - eval "ac_cv_func_gethostbyname=yes"
  3485. -else
  3486. - echo "configure: failed program was:" >&5
  3487. - cat conftest.$ac_ext >&5
  3488. - rm -rf conftest*
  3489. - eval "ac_cv_func_gethostbyname=no"
  3490. -fi
  3491. -rm -f conftest*
  3492. -fi
  3493. -
  3494. -if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3495. - echo "$ac_t""yes" 1>&6
  3496. +int
  3497. +main ()
  3498. +{
  3499. +return f != gethostbyname;
  3500. + ;
  3501. + return 0;
  3502. +}
  3503. +_ACEOF
  3504. +rm -f conftest.$ac_objext conftest$ac_exeext
  3505. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3506. + (eval $ac_link) 2>&5
  3507. + ac_status=$?
  3508. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3509. + (exit $ac_status); } &&
  3510. + { ac_try='test -s conftest$ac_exeext'
  3511. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3512. + (eval $ac_try) 2>&5
  3513. + ac_status=$?
  3514. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3515. + (exit $ac_status); }; }; then
  3516. + ac_cv_func_gethostbyname=yes
  3517. +else
  3518. + echo "$as_me: failed program was:" >&5
  3519. +sed 's/^/| /' conftest.$ac_ext >&5
  3520. +
  3521. +ac_cv_func_gethostbyname=no
  3522. +fi
  3523. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3524. +fi
  3525. +echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  3526. +echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  3527. +if test $ac_cv_func_gethostbyname = yes; then
  3528. :
  3529. else
  3530. - echo "$ac_t""no" 1>&6
  3531. -echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3532. -echo "configure:1311: checking for gethostbyname in -lnsl" >&5
  3533. -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3534. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3535. - echo $ac_n "(cached) $ac_c" 1>&6
  3536. +
  3537. +echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  3538. +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  3539. +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  3540. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3541. else
  3542. - ac_save_LIBS="$LIBS"
  3543. + ac_check_lib_save_LIBS=$LIBS
  3544. LIBS="-lnsl $LIBS"
  3545. -cat > conftest.$ac_ext <<EOF
  3546. -#line 1319 "configure"
  3547. -#include "confdefs.h"
  3548. +cat >conftest.$ac_ext <<_ACEOF
  3549. +#line $LINENO "configure"
  3550. +/* confdefs.h. */
  3551. +_ACEOF
  3552. +cat confdefs.h >>conftest.$ac_ext
  3553. +cat >>conftest.$ac_ext <<_ACEOF
  3554. +/* end confdefs.h. */
  3555. +
  3556. /* Override any gcc2 internal prototype to avoid an error. */
  3557. +#ifdef __cplusplus
  3558. +extern "C"
  3559. +#endif
  3560. /* We use char because int might match the return type of a gcc2
  3561. - builtin and then its argument prototype would still apply. */
  3562. -char gethostbyname();
  3563. -
  3564. -int main() {
  3565. -gethostbyname()
  3566. -; return 0; }
  3567. -EOF
  3568. -if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3569. - rm -rf conftest*
  3570. - eval "ac_cv_lib_$ac_lib_var=yes"
  3571. -else
  3572. - echo "configure: failed program was:" >&5
  3573. - cat conftest.$ac_ext >&5
  3574. - rm -rf conftest*
  3575. - eval "ac_cv_lib_$ac_lib_var=no"
  3576. -fi
  3577. -rm -f conftest*
  3578. -LIBS="$ac_save_LIBS"
  3579. -
  3580. -fi
  3581. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3582. - echo "$ac_t""yes" 1>&6
  3583. - ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  3584. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  3585. - cat >> confdefs.h <<EOF
  3586. -#define $ac_tr_lib 1
  3587. -EOF
  3588. + builtin and then its argument prototype would still apply. */
  3589. +char gethostbyname ();
  3590. +int
  3591. +main ()
  3592. +{
  3593. +gethostbyname ();
  3594. + ;
  3595. + return 0;
  3596. +}
  3597. +_ACEOF
  3598. +rm -f conftest.$ac_objext conftest$ac_exeext
  3599. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3600. + (eval $ac_link) 2>&5
  3601. + ac_status=$?
  3602. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3603. + (exit $ac_status); } &&
  3604. + { ac_try='test -s conftest$ac_exeext'
  3605. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3606. + (eval $ac_try) 2>&5
  3607. + ac_status=$?
  3608. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3609. + (exit $ac_status); }; }; then
  3610. + ac_cv_lib_nsl_gethostbyname=yes
  3611. +else
  3612. + echo "$as_me: failed program was:" >&5
  3613. +sed 's/^/| /' conftest.$ac_ext >&5
  3614. +
  3615. +ac_cv_lib_nsl_gethostbyname=no
  3616. +fi
  3617. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3618. +LIBS=$ac_check_lib_save_LIBS
  3619. +fi
  3620. +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  3621. +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  3622. +if test $ac_cv_lib_nsl_gethostbyname = yes; then
  3623. + cat >>confdefs.h <<_ACEOF
  3624. +#define HAVE_LIBNSL 1
  3625. +_ACEOF
  3626. LIBS="-lnsl $LIBS"
  3627. -else
  3628. - echo "$ac_t""no" 1>&6
  3629. fi
  3630. fi
  3631. -echo $ac_n "checking for connect""... $ac_c" 1>&6
  3632. -echo "configure:1360: checking for connect" >&5
  3633. -if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  3634. - echo $ac_n "(cached) $ac_c" 1>&6
  3635. -else
  3636. - cat > conftest.$ac_ext <<EOF
  3637. -#line 1365 "configure"
  3638. -#include "confdefs.h"
  3639. +echo "$as_me:$LINENO: checking for connect" >&5
  3640. +echo $ECHO_N "checking for connect... $ECHO_C" >&6
  3641. +if test "${ac_cv_func_connect+set}" = set; then
  3642. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3643. +else
  3644. + cat >conftest.$ac_ext <<_ACEOF
  3645. +#line $LINENO "configure"
  3646. +/* confdefs.h. */
  3647. +_ACEOF
  3648. +cat confdefs.h >>conftest.$ac_ext
  3649. +cat >>conftest.$ac_ext <<_ACEOF
  3650. +/* end confdefs.h. */
  3651. /* System header to define __stub macros and hopefully few prototypes,
  3652. - which can conflict with char connect(); below. */
  3653. -#include <assert.h>
  3654. + which can conflict with char connect (); below.
  3655. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3656. + <limits.h> exists even on freestanding compilers. */
  3657. +#ifdef __STDC__
  3658. +# include <limits.h>
  3659. +#else
  3660. +# include <assert.h>
  3661. +#endif
  3662. /* Override any gcc2 internal prototype to avoid an error. */
  3663. +#ifdef __cplusplus
  3664. +extern "C"
  3665. +{
  3666. +#endif
  3667. /* We use char because int might match the return type of a gcc2
  3668. - builtin and then its argument prototype would still apply. */
  3669. -char connect();
  3670. -
  3671. -int main() {
  3672. -
  3673. + builtin and then its argument prototype would still apply. */
  3674. +char connect ();
  3675. /* The GNU C library defines this for functions which it implements
  3676. to always fail with ENOSYS. Some functions are actually named
  3677. something starting with __ and the normal name is an alias. */
  3678. #if defined (__stub_connect) || defined (__stub___connect)
  3679. choke me
  3680. #else
  3681. -connect();
  3682. +char (*f) () = connect;
  3683. +#endif
  3684. +#ifdef __cplusplus
  3685. +}
  3686. #endif
  3687. -; return 0; }
  3688. -EOF
  3689. -if { (eval echo configure:1388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3690. - rm -rf conftest*
  3691. - eval "ac_cv_func_connect=yes"
  3692. -else
  3693. - echo "configure: failed program was:" >&5
  3694. - cat conftest.$ac_ext >&5
  3695. - rm -rf conftest*
  3696. - eval "ac_cv_func_connect=no"
  3697. -fi
  3698. -rm -f conftest*
  3699. -fi
  3700. -
  3701. -if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3702. - echo "$ac_t""yes" 1>&6
  3703. +int
  3704. +main ()
  3705. +{
  3706. +return f != connect;
  3707. + ;
  3708. + return 0;
  3709. +}
  3710. +_ACEOF
  3711. +rm -f conftest.$ac_objext conftest$ac_exeext
  3712. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3713. + (eval $ac_link) 2>&5
  3714. + ac_status=$?
  3715. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3716. + (exit $ac_status); } &&
  3717. + { ac_try='test -s conftest$ac_exeext'
  3718. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3719. + (eval $ac_try) 2>&5
  3720. + ac_status=$?
  3721. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3722. + (exit $ac_status); }; }; then
  3723. + ac_cv_func_connect=yes
  3724. +else
  3725. + echo "$as_me: failed program was:" >&5
  3726. +sed 's/^/| /' conftest.$ac_ext >&5
  3727. +
  3728. +ac_cv_func_connect=no
  3729. +fi
  3730. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3731. +fi
  3732. +echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  3733. +echo "${ECHO_T}$ac_cv_func_connect" >&6
  3734. +if test $ac_cv_func_connect = yes; then
  3735. :
  3736. else
  3737. - echo "$ac_t""no" 1>&6
  3738. -echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3739. -echo "configure:1406: checking for connect in -lsocket" >&5
  3740. -ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3741. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3742. - echo $ac_n "(cached) $ac_c" 1>&6
  3743. +
  3744. +echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  3745. +echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  3746. +if test "${ac_cv_lib_socket_connect+set}" = set; then
  3747. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3748. else
  3749. - ac_save_LIBS="$LIBS"
  3750. + ac_check_lib_save_LIBS=$LIBS
  3751. LIBS="-lsocket $LIBS"
  3752. -cat > conftest.$ac_ext <<EOF
  3753. -#line 1414 "configure"
  3754. -#include "confdefs.h"
  3755. +cat >conftest.$ac_ext <<_ACEOF
  3756. +#line $LINENO "configure"
  3757. +/* confdefs.h. */
  3758. +_ACEOF
  3759. +cat confdefs.h >>conftest.$ac_ext
  3760. +cat >>conftest.$ac_ext <<_ACEOF
  3761. +/* end confdefs.h. */
  3762. +
  3763. /* Override any gcc2 internal prototype to avoid an error. */
  3764. +#ifdef __cplusplus
  3765. +extern "C"
  3766. +#endif
  3767. /* We use char because int might match the return type of a gcc2
  3768. - builtin and then its argument prototype would still apply. */
  3769. -char connect();
  3770. -
  3771. -int main() {
  3772. -connect()
  3773. -; return 0; }
  3774. -EOF
  3775. -if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3776. - rm -rf conftest*
  3777. - eval "ac_cv_lib_$ac_lib_var=yes"
  3778. -else
  3779. - echo "configure: failed program was:" >&5
  3780. - cat conftest.$ac_ext >&5
  3781. - rm -rf conftest*
  3782. - eval "ac_cv_lib_$ac_lib_var=no"
  3783. -fi
  3784. -rm -f conftest*
  3785. -LIBS="$ac_save_LIBS"
  3786. -
  3787. -fi
  3788. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3789. - echo "$ac_t""yes" 1>&6
  3790. - ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  3791. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  3792. - cat >> confdefs.h <<EOF
  3793. -#define $ac_tr_lib 1
  3794. -EOF
  3795. + builtin and then its argument prototype would still apply. */
  3796. +char connect ();
  3797. +int
  3798. +main ()
  3799. +{
  3800. +connect ();
  3801. + ;
  3802. + return 0;
  3803. +}
  3804. +_ACEOF
  3805. +rm -f conftest.$ac_objext conftest$ac_exeext
  3806. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3807. + (eval $ac_link) 2>&5
  3808. + ac_status=$?
  3809. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3810. + (exit $ac_status); } &&
  3811. + { ac_try='test -s conftest$ac_exeext'
  3812. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3813. + (eval $ac_try) 2>&5
  3814. + ac_status=$?
  3815. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3816. + (exit $ac_status); }; }; then
  3817. + ac_cv_lib_socket_connect=yes
  3818. +else
  3819. + echo "$as_me: failed program was:" >&5
  3820. +sed 's/^/| /' conftest.$ac_ext >&5
  3821. +
  3822. +ac_cv_lib_socket_connect=no
  3823. +fi
  3824. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3825. +LIBS=$ac_check_lib_save_LIBS
  3826. +fi
  3827. +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  3828. +echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  3829. +if test $ac_cv_lib_socket_connect = yes; then
  3830. + cat >>confdefs.h <<_ACEOF
  3831. +#define HAVE_LIBSOCKET 1
  3832. +_ACEOF
  3833. LIBS="-lsocket $LIBS"
  3834. -else
  3835. - echo "$ac_t""no" 1>&6
  3836. fi
  3837. fi
  3838. -echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
  3839. -echo "configure:1455: checking for inet_aton" >&5
  3840. -if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
  3841. - echo $ac_n "(cached) $ac_c" 1>&6
  3842. -else
  3843. - cat > conftest.$ac_ext <<EOF
  3844. -#line 1460 "configure"
  3845. -#include "confdefs.h"
  3846. +echo "$as_me:$LINENO: checking for inet_aton" >&5
  3847. +echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
  3848. +if test "${ac_cv_func_inet_aton+set}" = set; then
  3849. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3850. +else
  3851. + cat >conftest.$ac_ext <<_ACEOF
  3852. +#line $LINENO "configure"
  3853. +/* confdefs.h. */
  3854. +_ACEOF
  3855. +cat confdefs.h >>conftest.$ac_ext
  3856. +cat >>conftest.$ac_ext <<_ACEOF
  3857. +/* end confdefs.h. */
  3858. /* System header to define __stub macros and hopefully few prototypes,
  3859. - which can conflict with char inet_aton(); below. */
  3860. -#include <assert.h>
  3861. + which can conflict with char inet_aton (); below.
  3862. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3863. + <limits.h> exists even on freestanding compilers. */
  3864. +#ifdef __STDC__
  3865. +# include <limits.h>
  3866. +#else
  3867. +# include <assert.h>
  3868. +#endif
  3869. /* Override any gcc2 internal prototype to avoid an error. */
  3870. +#ifdef __cplusplus
  3871. +extern "C"
  3872. +{
  3873. +#endif
  3874. /* We use char because int might match the return type of a gcc2
  3875. - builtin and then its argument prototype would still apply. */
  3876. -char inet_aton();
  3877. -
  3878. -int main() {
  3879. -
  3880. + builtin and then its argument prototype would still apply. */
  3881. +char inet_aton ();
  3882. /* The GNU C library defines this for functions which it implements
  3883. to always fail with ENOSYS. Some functions are actually named
  3884. something starting with __ and the normal name is an alias. */
  3885. #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
  3886. choke me
  3887. #else
  3888. -inet_aton();
  3889. +char (*f) () = inet_aton;
  3890. +#endif
  3891. +#ifdef __cplusplus
  3892. +}
  3893. #endif
  3894. -; return 0; }
  3895. -EOF
  3896. -if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3897. - rm -rf conftest*
  3898. - eval "ac_cv_func_inet_aton=yes"
  3899. -else
  3900. - echo "configure: failed program was:" >&5
  3901. - cat conftest.$ac_ext >&5
  3902. - rm -rf conftest*
  3903. - eval "ac_cv_func_inet_aton=no"
  3904. -fi
  3905. -rm -f conftest*
  3906. -fi
  3907. -
  3908. -if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
  3909. - echo "$ac_t""yes" 1>&6
  3910. +int
  3911. +main ()
  3912. +{
  3913. +return f != inet_aton;
  3914. + ;
  3915. + return 0;
  3916. +}
  3917. +_ACEOF
  3918. +rm -f conftest.$ac_objext conftest$ac_exeext
  3919. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3920. + (eval $ac_link) 2>&5
  3921. + ac_status=$?
  3922. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3923. + (exit $ac_status); } &&
  3924. + { ac_try='test -s conftest$ac_exeext'
  3925. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3926. + (eval $ac_try) 2>&5
  3927. + ac_status=$?
  3928. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3929. + (exit $ac_status); }; }; then
  3930. + ac_cv_func_inet_aton=yes
  3931. +else
  3932. + echo "$as_me: failed program was:" >&5
  3933. +sed 's/^/| /' conftest.$ac_ext >&5
  3934. +
  3935. +ac_cv_func_inet_aton=no
  3936. +fi
  3937. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3938. +fi
  3939. +echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  3940. +echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
  3941. +if test $ac_cv_func_inet_aton = yes; then
  3942. :
  3943. else
  3944. - echo "$ac_t""no" 1>&6
  3945. -echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
  3946. -echo "configure:1501: checking for inet_aton in -lresolv" >&5
  3947. -ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
  3948. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3949. - echo $ac_n "(cached) $ac_c" 1>&6
  3950. +
  3951. +echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
  3952. +echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
  3953. +if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
  3954. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3955. else
  3956. - ac_save_LIBS="$LIBS"
  3957. + ac_check_lib_save_LIBS=$LIBS
  3958. LIBS="-lresolv $LIBS"
  3959. -cat > conftest.$ac_ext <<EOF
  3960. -#line 1509 "configure"
  3961. -#include "confdefs.h"
  3962. +cat >conftest.$ac_ext <<_ACEOF
  3963. +#line $LINENO "configure"
  3964. +/* confdefs.h. */
  3965. +_ACEOF
  3966. +cat confdefs.h >>conftest.$ac_ext
  3967. +cat >>conftest.$ac_ext <<_ACEOF
  3968. +/* end confdefs.h. */
  3969. +
  3970. /* Override any gcc2 internal prototype to avoid an error. */
  3971. +#ifdef __cplusplus
  3972. +extern "C"
  3973. +#endif
  3974. /* We use char because int might match the return type of a gcc2
  3975. - builtin and then its argument prototype would still apply. */
  3976. -char inet_aton();
  3977. -
  3978. -int main() {
  3979. -inet_aton()
  3980. -; return 0; }
  3981. -EOF
  3982. -if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3983. - rm -rf conftest*
  3984. - eval "ac_cv_lib_$ac_lib_var=yes"
  3985. -else
  3986. - echo "configure: failed program was:" >&5
  3987. - cat conftest.$ac_ext >&5
  3988. - rm -rf conftest*
  3989. - eval "ac_cv_lib_$ac_lib_var=no"
  3990. -fi
  3991. -rm -f conftest*
  3992. -LIBS="$ac_save_LIBS"
  3993. -
  3994. -fi
  3995. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3996. - echo "$ac_t""yes" 1>&6
  3997. - ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  3998. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  3999. - cat >> confdefs.h <<EOF
  4000. -#define $ac_tr_lib 1
  4001. -EOF
  4002. + builtin and then its argument prototype would still apply. */
  4003. +char inet_aton ();
  4004. +int
  4005. +main ()
  4006. +{
  4007. +inet_aton ();
  4008. + ;
  4009. + return 0;
  4010. +}
  4011. +_ACEOF
  4012. +rm -f conftest.$ac_objext conftest$ac_exeext
  4013. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4014. + (eval $ac_link) 2>&5
  4015. + ac_status=$?
  4016. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4017. + (exit $ac_status); } &&
  4018. + { ac_try='test -s conftest$ac_exeext'
  4019. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4020. + (eval $ac_try) 2>&5
  4021. + ac_status=$?
  4022. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4023. + (exit $ac_status); }; }; then
  4024. + ac_cv_lib_resolv_inet_aton=yes
  4025. +else
  4026. + echo "$as_me: failed program was:" >&5
  4027. +sed 's/^/| /' conftest.$ac_ext >&5
  4028. +
  4029. +ac_cv_lib_resolv_inet_aton=no
  4030. +fi
  4031. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4032. +LIBS=$ac_check_lib_save_LIBS
  4033. +fi
  4034. +echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
  4035. +echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
  4036. +if test $ac_cv_lib_resolv_inet_aton = yes; then
  4037. + cat >>confdefs.h <<_ACEOF
  4038. +#define HAVE_LIBRESOLV 1
  4039. +_ACEOF
  4040. LIBS="-lresolv $LIBS"
  4041. -else
  4042. - echo "$ac_t""no" 1>&6
  4043. fi
  4044. fi
  4045. -echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
  4046. -echo "configure:1550: checking for kstat_open in -lkstat" >&5
  4047. -ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
  4048. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4049. - echo $ac_n "(cached) $ac_c" 1>&6
  4050. +
  4051. +echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
  4052. +echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
  4053. +if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
  4054. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4055. else
  4056. - ac_save_LIBS="$LIBS"
  4057. + ac_check_lib_save_LIBS=$LIBS
  4058. LIBS="-lkstat $LIBS"
  4059. -cat > conftest.$ac_ext <<EOF
  4060. -#line 1558 "configure"
  4061. -#include "confdefs.h"
  4062. +cat >conftest.$ac_ext <<_ACEOF
  4063. +#line $LINENO "configure"
  4064. +/* confdefs.h. */
  4065. +_ACEOF
  4066. +cat confdefs.h >>conftest.$ac_ext
  4067. +cat >>conftest.$ac_ext <<_ACEOF
  4068. +/* end confdefs.h. */
  4069. +
  4070. /* Override any gcc2 internal prototype to avoid an error. */
  4071. +#ifdef __cplusplus
  4072. +extern "C"
  4073. +#endif
  4074. /* We use char because int might match the return type of a gcc2
  4075. - builtin and then its argument prototype would still apply. */
  4076. -char kstat_open();
  4077. + builtin and then its argument prototype would still apply. */
  4078. +char kstat_open ();
  4079. +int
  4080. +main ()
  4081. +{
  4082. +kstat_open ();
  4083. + ;
  4084. + return 0;
  4085. +}
  4086. +_ACEOF
  4087. +rm -f conftest.$ac_objext conftest$ac_exeext
  4088. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4089. + (eval $ac_link) 2>&5
  4090. + ac_status=$?
  4091. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4092. + (exit $ac_status); } &&
  4093. + { ac_try='test -s conftest$ac_exeext'
  4094. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4095. + (eval $ac_try) 2>&5
  4096. + ac_status=$?
  4097. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4098. + (exit $ac_status); }; }; then
  4099. + ac_cv_lib_kstat_kstat_open=yes
  4100. +else
  4101. + echo "$as_me: failed program was:" >&5
  4102. +sed 's/^/| /' conftest.$ac_ext >&5
  4103. +
  4104. +ac_cv_lib_kstat_kstat_open=no
  4105. +fi
  4106. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4107. +LIBS=$ac_check_lib_save_LIBS
  4108. +fi
  4109. +echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
  4110. +echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
  4111. +if test $ac_cv_lib_kstat_kstat_open = yes; then
  4112. + cat >>confdefs.h <<_ACEOF
  4113. +#define HAVE_LIBKSTAT 1
  4114. +_ACEOF
  4115. -int main() {
  4116. -kstat_open()
  4117. -; return 0; }
  4118. -EOF
  4119. -if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4120. - rm -rf conftest*
  4121. - eval "ac_cv_lib_$ac_lib_var=yes"
  4122. -else
  4123. - echo "configure: failed program was:" >&5
  4124. - cat conftest.$ac_ext >&5
  4125. - rm -rf conftest*
  4126. - eval "ac_cv_lib_$ac_lib_var=no"
  4127. -fi
  4128. -rm -f conftest*
  4129. -LIBS="$ac_save_LIBS"
  4130. + LIBS="-lkstat $LIBS"
  4131. fi
  4132. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4133. - echo "$ac_t""yes" 1>&6
  4134. - ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  4135. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4136. - cat >> confdefs.h <<EOF
  4137. -#define $ac_tr_lib 1
  4138. -EOF
  4139. - LIBS="-lkstat $LIBS"
  4140. -else
  4141. - echo "$ac_t""no" 1>&6
  4142. -fi
  4143. for ac_func in getloadavg swapctl
  4144. do
  4145. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4146. -echo "configure:1599: checking for $ac_func" >&5
  4147. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4148. - echo $ac_n "(cached) $ac_c" 1>&6
  4149. -else
  4150. - cat > conftest.$ac_ext <<EOF
  4151. -#line 1604 "configure"
  4152. -#include "confdefs.h"
  4153. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4154. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  4155. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4156. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  4157. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4158. +else
  4159. + cat >conftest.$ac_ext <<_ACEOF
  4160. +#line $LINENO "configure"
  4161. +/* confdefs.h. */
  4162. +_ACEOF
  4163. +cat confdefs.h >>conftest.$ac_ext
  4164. +cat >>conftest.$ac_ext <<_ACEOF
  4165. +/* end confdefs.h. */
  4166. /* System header to define __stub macros and hopefully few prototypes,
  4167. - which can conflict with char $ac_func(); below. */
  4168. -#include <assert.h>
  4169. + which can conflict with char $ac_func (); below.
  4170. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4171. + <limits.h> exists even on freestanding compilers. */
  4172. +#ifdef __STDC__
  4173. +# include <limits.h>
  4174. +#else
  4175. +# include <assert.h>
  4176. +#endif
  4177. /* Override any gcc2 internal prototype to avoid an error. */
  4178. +#ifdef __cplusplus
  4179. +extern "C"
  4180. +{
  4181. +#endif
  4182. /* We use char because int might match the return type of a gcc2
  4183. - builtin and then its argument prototype would still apply. */
  4184. -char $ac_func();
  4185. -
  4186. -int main() {
  4187. -
  4188. + builtin and then its argument prototype would still apply. */
  4189. +char $ac_func ();
  4190. /* The GNU C library defines this for functions which it implements
  4191. to always fail with ENOSYS. Some functions are actually named
  4192. something starting with __ and the normal name is an alias. */
  4193. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4194. choke me
  4195. #else
  4196. -$ac_func();
  4197. +char (*f) () = $ac_func;
  4198. +#endif
  4199. +#ifdef __cplusplus
  4200. +}
  4201. #endif
  4202. -; return 0; }
  4203. -EOF
  4204. -if { (eval echo configure:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4205. - rm -rf conftest*
  4206. - eval "ac_cv_func_$ac_func=yes"
  4207. -else
  4208. - echo "configure: failed program was:" >&5
  4209. - cat conftest.$ac_ext >&5
  4210. - rm -rf conftest*
  4211. - eval "ac_cv_func_$ac_func=no"
  4212. +int
  4213. +main ()
  4214. +{
  4215. +return f != $ac_func;
  4216. + ;
  4217. + return 0;
  4218. +}
  4219. +_ACEOF
  4220. +rm -f conftest.$ac_objext conftest$ac_exeext
  4221. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4222. + (eval $ac_link) 2>&5
  4223. + ac_status=$?
  4224. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4225. + (exit $ac_status); } &&
  4226. + { ac_try='test -s conftest$ac_exeext'
  4227. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4228. + (eval $ac_try) 2>&5
  4229. + ac_status=$?
  4230. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4231. + (exit $ac_status); }; }; then
  4232. + eval "$as_ac_var=yes"
  4233. +else
  4234. + echo "$as_me: failed program was:" >&5
  4235. +sed 's/^/| /' conftest.$ac_ext >&5
  4236. +
  4237. +eval "$as_ac_var=no"
  4238. +fi
  4239. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4240. +fi
  4241. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4242. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4243. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  4244. + cat >>confdefs.h <<_ACEOF
  4245. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4246. +_ACEOF
  4247. +
  4248. +fi
  4249. +done
  4250. +
  4251. +
  4252. +echo "$as_me:$LINENO: checking for egrep" >&5
  4253. +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4254. +if test "${ac_cv_prog_egrep+set}" = set; then
  4255. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4256. +else
  4257. + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4258. + then ac_cv_prog_egrep='grep -E'
  4259. + else ac_cv_prog_egrep='egrep'
  4260. + fi
  4261. +fi
  4262. +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4263. +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4264. + EGREP=$ac_cv_prog_egrep
  4265. +
  4266. +
  4267. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4268. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4269. +if test "${ac_cv_header_stdc+set}" = set; then
  4270. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4271. +else
  4272. + cat >conftest.$ac_ext <<_ACEOF
  4273. +#line $LINENO "configure"
  4274. +/* confdefs.h. */
  4275. +_ACEOF
  4276. +cat confdefs.h >>conftest.$ac_ext
  4277. +cat >>conftest.$ac_ext <<_ACEOF
  4278. +/* end confdefs.h. */
  4279. +#include <stdlib.h>
  4280. +#include <stdarg.h>
  4281. +#include <string.h>
  4282. +#include <float.h>
  4283. +
  4284. +int
  4285. +main ()
  4286. +{
  4287. +
  4288. + ;
  4289. + return 0;
  4290. +}
  4291. +_ACEOF
  4292. +rm -f conftest.$ac_objext
  4293. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4294. + (eval $ac_compile) 2>&5
  4295. + ac_status=$?
  4296. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4297. + (exit $ac_status); } &&
  4298. + { ac_try='test -s conftest.$ac_objext'
  4299. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4300. + (eval $ac_try) 2>&5
  4301. + ac_status=$?
  4302. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4303. + (exit $ac_status); }; }; then
  4304. + ac_cv_header_stdc=yes
  4305. +else
  4306. + echo "$as_me: failed program was:" >&5
  4307. +sed 's/^/| /' conftest.$ac_ext >&5
  4308. +
  4309. +ac_cv_header_stdc=no
  4310. +fi
  4311. +rm -f conftest.$ac_objext conftest.$ac_ext
  4312. +
  4313. +if test $ac_cv_header_stdc = yes; then
  4314. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4315. + cat >conftest.$ac_ext <<_ACEOF
  4316. +#line $LINENO "configure"
  4317. +/* confdefs.h. */
  4318. +_ACEOF
  4319. +cat confdefs.h >>conftest.$ac_ext
  4320. +cat >>conftest.$ac_ext <<_ACEOF
  4321. +/* end confdefs.h. */
  4322. +#include <string.h>
  4323. +
  4324. +_ACEOF
  4325. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4326. + $EGREP "memchr" >/dev/null 2>&1; then
  4327. + :
  4328. +else
  4329. + ac_cv_header_stdc=no
  4330. fi
  4331. rm -f conftest*
  4332. +
  4333. fi
  4334. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4335. - echo "$ac_t""yes" 1>&6
  4336. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4337. - cat >> confdefs.h <<EOF
  4338. -#define $ac_tr_func 1
  4339. -EOF
  4340. -
  4341. +if test $ac_cv_header_stdc = yes; then
  4342. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4343. + cat >conftest.$ac_ext <<_ACEOF
  4344. +#line $LINENO "configure"
  4345. +/* confdefs.h. */
  4346. +_ACEOF
  4347. +cat confdefs.h >>conftest.$ac_ext
  4348. +cat >>conftest.$ac_ext <<_ACEOF
  4349. +/* end confdefs.h. */
  4350. +#include <stdlib.h>
  4351. +
  4352. +_ACEOF
  4353. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4354. + $EGREP "free" >/dev/null 2>&1; then
  4355. + :
  4356. else
  4357. - echo "$ac_t""no" 1>&6
  4358. + ac_cv_header_stdc=no
  4359. +fi
  4360. +rm -f conftest*
  4361. +
  4362. fi
  4363. +
  4364. +if test $ac_cv_header_stdc = yes; then
  4365. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4366. + if test "$cross_compiling" = yes; then
  4367. + :
  4368. +else
  4369. + cat >conftest.$ac_ext <<_ACEOF
  4370. +#line $LINENO "configure"
  4371. +/* confdefs.h. */
  4372. +_ACEOF
  4373. +cat confdefs.h >>conftest.$ac_ext
  4374. +cat >>conftest.$ac_ext <<_ACEOF
  4375. +/* end confdefs.h. */
  4376. +#include <ctype.h>
  4377. +#if ((' ' & 0x0FF) == 0x020)
  4378. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4379. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4380. +#else
  4381. +# define ISLOWER(c) \
  4382. + (('a' <= (c) && (c) <= 'i') \
  4383. + || ('j' <= (c) && (c) <= 'r') \
  4384. + || ('s' <= (c) && (c) <= 'z'))
  4385. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4386. +#endif
  4387. +
  4388. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4389. +int
  4390. +main ()
  4391. +{
  4392. + int i;
  4393. + for (i = 0; i < 256; i++)
  4394. + if (XOR (islower (i), ISLOWER (i))
  4395. + || toupper (i) != TOUPPER (i))
  4396. + exit(2);
  4397. + exit (0);
  4398. +}
  4399. +_ACEOF
  4400. +rm -f conftest$ac_exeext
  4401. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4402. + (eval $ac_link) 2>&5
  4403. + ac_status=$?
  4404. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4405. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4406. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4407. + (eval $ac_try) 2>&5
  4408. + ac_status=$?
  4409. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4410. + (exit $ac_status); }; }; then
  4411. + :
  4412. +else
  4413. + echo "$as_me: program exited with status $ac_status" >&5
  4414. +echo "$as_me: failed program was:" >&5
  4415. +sed 's/^/| /' conftest.$ac_ext >&5
  4416. +
  4417. +( exit $ac_status )
  4418. +ac_cv_header_stdc=no
  4419. +fi
  4420. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4421. +fi
  4422. +fi
  4423. +fi
  4424. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4425. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4426. +if test $ac_cv_header_stdc = yes; then
  4427. +
  4428. +cat >>confdefs.h <<\_ACEOF
  4429. +#define STDC_HEADERS 1
  4430. +_ACEOF
  4431. +
  4432. +fi
  4433. +
  4434. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4435. +
  4436. +
  4437. +
  4438. +
  4439. +
  4440. +
  4441. +
  4442. +
  4443. +
  4444. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4445. + inttypes.h stdint.h unistd.h
  4446. +do
  4447. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4448. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  4449. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4450. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4451. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4452. +else
  4453. + cat >conftest.$ac_ext <<_ACEOF
  4454. +#line $LINENO "configure"
  4455. +/* confdefs.h. */
  4456. +_ACEOF
  4457. +cat confdefs.h >>conftest.$ac_ext
  4458. +cat >>conftest.$ac_ext <<_ACEOF
  4459. +/* end confdefs.h. */
  4460. +$ac_includes_default
  4461. +
  4462. +#include <$ac_header>
  4463. +_ACEOF
  4464. +rm -f conftest.$ac_objext
  4465. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4466. + (eval $ac_compile) 2>&5
  4467. + ac_status=$?
  4468. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4469. + (exit $ac_status); } &&
  4470. + { ac_try='test -s conftest.$ac_objext'
  4471. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4472. + (eval $ac_try) 2>&5
  4473. + ac_status=$?
  4474. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4475. + (exit $ac_status); }; }; then
  4476. + eval "$as_ac_Header=yes"
  4477. +else
  4478. + echo "$as_me: failed program was:" >&5
  4479. +sed 's/^/| /' conftest.$ac_ext >&5
  4480. +
  4481. +eval "$as_ac_Header=no"
  4482. +fi
  4483. +rm -f conftest.$ac_objext conftest.$ac_ext
  4484. +fi
  4485. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4486. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4487. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4488. + cat >>confdefs.h <<_ACEOF
  4489. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4490. +_ACEOF
  4491. +
  4492. +fi
  4493. +
  4494. done
  4495. -for ac_hdr in procfs.h sys/procfs.h sys/loadavg.h
  4496. +
  4497. +
  4498. +
  4499. +
  4500. +for ac_header in procfs.h sys/procfs.h sys/loadavg.h
  4501. do
  4502. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4503. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4504. -echo "configure:1655: checking for $ac_hdr" >&5
  4505. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4506. - echo $ac_n "(cached) $ac_c" 1>&6
  4507. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4508. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4509. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  4510. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4511. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4512. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4513. +fi
  4514. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4515. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4516. +else
  4517. + # Is the header compilable?
  4518. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4519. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4520. +cat >conftest.$ac_ext <<_ACEOF
  4521. +#line $LINENO "configure"
  4522. +/* confdefs.h. */
  4523. +_ACEOF
  4524. +cat confdefs.h >>conftest.$ac_ext
  4525. +cat >>conftest.$ac_ext <<_ACEOF
  4526. +/* end confdefs.h. */
  4527. +$ac_includes_default
  4528. +#include <$ac_header>
  4529. +_ACEOF
  4530. +rm -f conftest.$ac_objext
  4531. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4532. + (eval $ac_compile) 2>&5
  4533. + ac_status=$?
  4534. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4535. + (exit $ac_status); } &&
  4536. + { ac_try='test -s conftest.$ac_objext'
  4537. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4538. + (eval $ac_try) 2>&5
  4539. + ac_status=$?
  4540. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4541. + (exit $ac_status); }; }; then
  4542. + ac_header_compiler=yes
  4543. +else
  4544. + echo "$as_me: failed program was:" >&5
  4545. +sed 's/^/| /' conftest.$ac_ext >&5
  4546. +
  4547. +ac_header_compiler=no
  4548. +fi
  4549. +rm -f conftest.$ac_objext conftest.$ac_ext
  4550. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4551. +echo "${ECHO_T}$ac_header_compiler" >&6
  4552. +
  4553. +# Is the header present?
  4554. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4555. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4556. +cat >conftest.$ac_ext <<_ACEOF
  4557. +#line $LINENO "configure"
  4558. +/* confdefs.h. */
  4559. +_ACEOF
  4560. +cat confdefs.h >>conftest.$ac_ext
  4561. +cat >>conftest.$ac_ext <<_ACEOF
  4562. +/* end confdefs.h. */
  4563. +#include <$ac_header>
  4564. +_ACEOF
  4565. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4566. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4567. + ac_status=$?
  4568. + grep -v '^ *+' conftest.er1 >conftest.err
  4569. + rm -f conftest.er1
  4570. + cat conftest.err >&5
  4571. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4572. + (exit $ac_status); } >/dev/null; then
  4573. + if test -s conftest.err; then
  4574. + ac_cpp_err=$ac_c_preproc_warn_flag
  4575. + else
  4576. + ac_cpp_err=
  4577. + fi
  4578. else
  4579. - cat > conftest.$ac_ext <<EOF
  4580. -#line 1660 "configure"
  4581. -#include "confdefs.h"
  4582. -#include <$ac_hdr>
  4583. -EOF
  4584. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4585. -{ (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4586. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4587. -if test -z "$ac_err"; then
  4588. - rm -rf conftest*
  4589. - eval "ac_cv_header_$ac_safe=yes"
  4590. -else
  4591. - echo "$ac_err" >&5
  4592. - echo "configure: failed program was:" >&5
  4593. - cat conftest.$ac_ext >&5
  4594. - rm -rf conftest*
  4595. - eval "ac_cv_header_$ac_safe=no"
  4596. -fi
  4597. -rm -f conftest*
  4598. + ac_cpp_err=yes
  4599. fi
  4600. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4601. - echo "$ac_t""yes" 1>&6
  4602. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4603. - cat >> confdefs.h <<EOF
  4604. -#define $ac_tr_hdr 1
  4605. -EOF
  4606. -
  4607. +if test -z "$ac_cpp_err"; then
  4608. + ac_header_preproc=yes
  4609. else
  4610. - echo "$ac_t""no" 1>&6
  4611. + echo "$as_me: failed program was:" >&5
  4612. +sed 's/^/| /' conftest.$ac_ext >&5
  4613. +
  4614. + ac_header_preproc=no
  4615. +fi
  4616. +rm -f conftest.err conftest.$ac_ext
  4617. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4618. +echo "${ECHO_T}$ac_header_preproc" >&6
  4619. +
  4620. +# So? What about this header?
  4621. +case $ac_header_compiler:$ac_header_preproc in
  4622. + yes:no )
  4623. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4624. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4625. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4626. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4627. + (
  4628. + cat <<\_ASBOX
  4629. +## ------------------------------------ ##
  4630. +## Report this to bug-autoconf@gnu.org. ##
  4631. +## ------------------------------------ ##
  4632. +_ASBOX
  4633. + ) |
  4634. + sed "s/^/$as_me: WARNING: /" >&2
  4635. + ;;
  4636. + no:yes )
  4637. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4638. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4639. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4640. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4641. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4642. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4643. + (
  4644. + cat <<\_ASBOX
  4645. +## ------------------------------------ ##
  4646. +## Report this to bug-autoconf@gnu.org. ##
  4647. +## ------------------------------------ ##
  4648. +_ASBOX
  4649. + ) |
  4650. + sed "s/^/$as_me: WARNING: /" >&2
  4651. + ;;
  4652. +esac
  4653. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  4654. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4655. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4656. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4657. +else
  4658. + eval "$as_ac_Header=$ac_header_preproc"
  4659. +fi
  4660. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4661. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4662. +
  4663. fi
  4664. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4665. + cat >>confdefs.h <<_ACEOF
  4666. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4667. +_ACEOF
  4668. +
  4669. +fi
  4670. +
  4671. done
  4672. -echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
  4673. -echo "configure:1693: checking for kvm_open in -lkvm" >&5
  4674. -ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
  4675. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4676. - echo $ac_n "(cached) $ac_c" 1>&6
  4677. +echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
  4678. +echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
  4679. +if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
  4680. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4681. else
  4682. - ac_save_LIBS="$LIBS"
  4683. + ac_check_lib_save_LIBS=$LIBS
  4684. LIBS="-lkvm $LIBS"
  4685. -cat > conftest.$ac_ext <<EOF
  4686. -#line 1701 "configure"
  4687. -#include "confdefs.h"
  4688. +cat >conftest.$ac_ext <<_ACEOF
  4689. +#line $LINENO "configure"
  4690. +/* confdefs.h. */
  4691. +_ACEOF
  4692. +cat confdefs.h >>conftest.$ac_ext
  4693. +cat >>conftest.$ac_ext <<_ACEOF
  4694. +/* end confdefs.h. */
  4695. +
  4696. /* Override any gcc2 internal prototype to avoid an error. */
  4697. +#ifdef __cplusplus
  4698. +extern "C"
  4699. +#endif
  4700. /* We use char because int might match the return type of a gcc2
  4701. - builtin and then its argument prototype would still apply. */
  4702. -char kvm_open();
  4703. -
  4704. -int main() {
  4705. -kvm_open()
  4706. -; return 0; }
  4707. -EOF
  4708. -if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4709. - rm -rf conftest*
  4710. - eval "ac_cv_lib_$ac_lib_var=yes"
  4711. -else
  4712. - echo "configure: failed program was:" >&5
  4713. - cat conftest.$ac_ext >&5
  4714. - rm -rf conftest*
  4715. - eval "ac_cv_lib_$ac_lib_var=no"
  4716. -fi
  4717. -rm -f conftest*
  4718. -LIBS="$ac_save_LIBS"
  4719. + builtin and then its argument prototype would still apply. */
  4720. +char kvm_open ();
  4721. +int
  4722. +main ()
  4723. +{
  4724. +kvm_open ();
  4725. + ;
  4726. + return 0;
  4727. +}
  4728. +_ACEOF
  4729. +rm -f conftest.$ac_objext conftest$ac_exeext
  4730. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4731. + (eval $ac_link) 2>&5
  4732. + ac_status=$?
  4733. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4734. + (exit $ac_status); } &&
  4735. + { ac_try='test -s conftest$ac_exeext'
  4736. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4737. + (eval $ac_try) 2>&5
  4738. + ac_status=$?
  4739. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4740. + (exit $ac_status); }; }; then
  4741. + ac_cv_lib_kvm_kvm_open=yes
  4742. +else
  4743. + echo "$as_me: failed program was:" >&5
  4744. +sed 's/^/| /' conftest.$ac_ext >&5
  4745. +
  4746. +ac_cv_lib_kvm_kvm_open=no
  4747. +fi
  4748. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4749. +LIBS=$ac_check_lib_save_LIBS
  4750. +fi
  4751. +echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
  4752. +echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
  4753. +if test $ac_cv_lib_kvm_kvm_open = yes; then
  4754. -fi
  4755. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4756. - echo "$ac_t""yes" 1>&6
  4757. -
  4758. LIBS="-lkvm $LIBS"
  4759. else
  4760. - echo "$ac_t""no" 1>&6
  4761. -echo $ac_n "checking for kvm_open in -lkvm with -lelf""... $ac_c" 1>&6
  4762. -echo "configure:1733: checking for kvm_open in -lkvm with -lelf" >&5
  4763. - if eval "test \"`echo '$''{'ac_cv_lib_kvm_with_elf'+set}'`\" = set"; then
  4764. - echo $ac_n "(cached) $ac_c" 1>&6
  4765. + echo "$as_me:$LINENO: checking for kvm_open in -lkvm with -lelf" >&5
  4766. +echo $ECHO_N "checking for kvm_open in -lkvm with -lelf... $ECHO_C" >&6
  4767. + if test "${ac_cv_lib_kvm_with_elf+set}" = set; then
  4768. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4769. else
  4770. ac_save_LIBS="$LIBS"
  4771. LIBS="-lkvm -lelf $LIBS"
  4772. - cat > conftest.$ac_ext <<EOF
  4773. -#line 1740 "configure"
  4774. -#include "confdefs.h"
  4775. + cat >conftest.$ac_ext <<_ACEOF
  4776. +#line $LINENO "configure"
  4777. +/* confdefs.h. */
  4778. +_ACEOF
  4779. +cat confdefs.h >>conftest.$ac_ext
  4780. +cat >>conftest.$ac_ext <<_ACEOF
  4781. +/* end confdefs.h. */
  4782. char kvm_open();
  4783. -int main() {
  4784. +int
  4785. +main ()
  4786. +{
  4787. kvm_open()
  4788. -; return 0; }
  4789. -EOF
  4790. -if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4791. - rm -rf conftest*
  4792. + ;
  4793. + return 0;
  4794. +}
  4795. +_ACEOF
  4796. +rm -f conftest.$ac_objext conftest$ac_exeext
  4797. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4798. + (eval $ac_link) 2>&5
  4799. + ac_status=$?
  4800. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4801. + (exit $ac_status); } &&
  4802. + { ac_try='test -s conftest$ac_exeext'
  4803. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4804. + (eval $ac_try) 2>&5
  4805. + ac_status=$?
  4806. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4807. + (exit $ac_status); }; }; then
  4808. ac_cv_lib_kvm_with_elf=yes
  4809. else
  4810. - echo "configure: failed program was:" >&5
  4811. - cat conftest.$ac_ext >&5
  4812. - rm -rf conftest*
  4813. - ac_cv_lib_kvm_with_elf=no
  4814. + echo "$as_me: failed program was:" >&5
  4815. +sed 's/^/| /' conftest.$ac_ext >&5
  4816. +
  4817. +ac_cv_lib_kvm_with_elf=no
  4818. fi
  4819. -rm -f conftest*
  4820. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4821. LIBS="$ac_save_LIBS"
  4822. -
  4823. +
  4824. fi
  4825. if test "$ac_cv_lib_kvm_with_elf" = "yes"; then
  4826. - echo "$ac_t""yes" 1>&6
  4827. + echo "$as_me:$LINENO: result: yes" >&5
  4828. +echo "${ECHO_T}yes" >&6
  4829. LIBS="-lkvm -lelf $LIBS"
  4830. else
  4831. - echo "$ac_t""no" 1>&6
  4832. + echo "$as_me:$LINENO: result: no" >&5
  4833. +echo "${ECHO_T}no" >&6
  4834. fi
  4835. fi
  4836. +
  4837. +
  4838. +
  4839. +
  4840. +
  4841. ac_header_dirent=no
  4842. -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  4843. -do
  4844. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4845. -echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  4846. -echo "configure:1776: checking for $ac_hdr that defines DIR" >&5
  4847. -if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  4848. - echo $ac_n "(cached) $ac_c" 1>&6
  4849. -else
  4850. - cat > conftest.$ac_ext <<EOF
  4851. -#line 1781 "configure"
  4852. -#include "confdefs.h"
  4853. +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4854. + as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4855. +echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4856. +echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4857. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4858. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4859. +else
  4860. + cat >conftest.$ac_ext <<_ACEOF
  4861. +#line $LINENO "configure"
  4862. +/* confdefs.h. */
  4863. +_ACEOF
  4864. +cat confdefs.h >>conftest.$ac_ext
  4865. +cat >>conftest.$ac_ext <<_ACEOF
  4866. +/* end confdefs.h. */
  4867. #include <sys/types.h>
  4868. #include <$ac_hdr>
  4869. -int main() {
  4870. -DIR *dirp = 0;
  4871. -; return 0; }
  4872. -EOF
  4873. -if { (eval echo configure:1789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4874. - rm -rf conftest*
  4875. - eval "ac_cv_header_dirent_$ac_safe=yes"
  4876. -else
  4877. - echo "configure: failed program was:" >&5
  4878. - cat conftest.$ac_ext >&5
  4879. - rm -rf conftest*
  4880. - eval "ac_cv_header_dirent_$ac_safe=no"
  4881. -fi
  4882. -rm -f conftest*
  4883. -fi
  4884. -if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  4885. - echo "$ac_t""yes" 1>&6
  4886. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4887. - cat >> confdefs.h <<EOF
  4888. -#define $ac_tr_hdr 1
  4889. -EOF
  4890. - ac_header_dirent=$ac_hdr; break
  4891. -else
  4892. - echo "$ac_t""no" 1>&6
  4893. +
  4894. +int
  4895. +main ()
  4896. +{
  4897. +if ((DIR *) 0)
  4898. +return 0;
  4899. + ;
  4900. + return 0;
  4901. +}
  4902. +_ACEOF
  4903. +rm -f conftest.$ac_objext
  4904. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4905. + (eval $ac_compile) 2>&5
  4906. + ac_status=$?
  4907. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4908. + (exit $ac_status); } &&
  4909. + { ac_try='test -s conftest.$ac_objext'
  4910. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4911. + (eval $ac_try) 2>&5
  4912. + ac_status=$?
  4913. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4914. + (exit $ac_status); }; }; then
  4915. + eval "$as_ac_Header=yes"
  4916. +else
  4917. + echo "$as_me: failed program was:" >&5
  4918. +sed 's/^/| /' conftest.$ac_ext >&5
  4919. +
  4920. +eval "$as_ac_Header=no"
  4921. +fi
  4922. +rm -f conftest.$ac_objext conftest.$ac_ext
  4923. +fi
  4924. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4925. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4926. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4927. + cat >>confdefs.h <<_ACEOF
  4928. +#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4929. +_ACEOF
  4930. +
  4931. +ac_header_dirent=$ac_hdr; break
  4932. fi
  4933. +
  4934. done
  4935. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4936. if test $ac_header_dirent = dirent.h; then
  4937. -echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  4938. -echo "configure:1814: checking for opendir in -ldir" >&5
  4939. -ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  4940. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4941. - echo $ac_n "(cached) $ac_c" 1>&6
  4942. -else
  4943. - ac_save_LIBS="$LIBS"
  4944. -LIBS="-ldir $LIBS"
  4945. -cat > conftest.$ac_ext <<EOF
  4946. -#line 1822 "configure"
  4947. -#include "confdefs.h"
  4948. + echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4949. +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4950. +if test "${ac_cv_search_opendir+set}" = set; then
  4951. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4952. +else
  4953. + ac_func_search_save_LIBS=$LIBS
  4954. +ac_cv_search_opendir=no
  4955. +cat >conftest.$ac_ext <<_ACEOF
  4956. +#line $LINENO "configure"
  4957. +/* confdefs.h. */
  4958. +_ACEOF
  4959. +cat confdefs.h >>conftest.$ac_ext
  4960. +cat >>conftest.$ac_ext <<_ACEOF
  4961. +/* end confdefs.h. */
  4962. +
  4963. /* Override any gcc2 internal prototype to avoid an error. */
  4964. +#ifdef __cplusplus
  4965. +extern "C"
  4966. +#endif
  4967. /* We use char because int might match the return type of a gcc2
  4968. - builtin and then its argument prototype would still apply. */
  4969. -char opendir();
  4970. + builtin and then its argument prototype would still apply. */
  4971. +char opendir ();
  4972. +int
  4973. +main ()
  4974. +{
  4975. +opendir ();
  4976. + ;
  4977. + return 0;
  4978. +}
  4979. +_ACEOF
  4980. +rm -f conftest.$ac_objext conftest$ac_exeext
  4981. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4982. + (eval $ac_link) 2>&5
  4983. + ac_status=$?
  4984. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4985. + (exit $ac_status); } &&
  4986. + { ac_try='test -s conftest$ac_exeext'
  4987. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4988. + (eval $ac_try) 2>&5
  4989. + ac_status=$?
  4990. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4991. + (exit $ac_status); }; }; then
  4992. + ac_cv_search_opendir="none required"
  4993. +else
  4994. + echo "$as_me: failed program was:" >&5
  4995. +sed 's/^/| /' conftest.$ac_ext >&5
  4996. +
  4997. +fi
  4998. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4999. +if test "$ac_cv_search_opendir" = no; then
  5000. + for ac_lib in dir; do
  5001. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5002. + cat >conftest.$ac_ext <<_ACEOF
  5003. +#line $LINENO "configure"
  5004. +/* confdefs.h. */
  5005. +_ACEOF
  5006. +cat confdefs.h >>conftest.$ac_ext
  5007. +cat >>conftest.$ac_ext <<_ACEOF
  5008. +/* end confdefs.h. */
  5009. -int main() {
  5010. -opendir()
  5011. -; return 0; }
  5012. -EOF
  5013. -if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5014. - rm -rf conftest*
  5015. - eval "ac_cv_lib_$ac_lib_var=yes"
  5016. -else
  5017. - echo "configure: failed program was:" >&5
  5018. - cat conftest.$ac_ext >&5
  5019. - rm -rf conftest*
  5020. - eval "ac_cv_lib_$ac_lib_var=no"
  5021. -fi
  5022. -rm -f conftest*
  5023. -LIBS="$ac_save_LIBS"
  5024. +/* Override any gcc2 internal prototype to avoid an error. */
  5025. +#ifdef __cplusplus
  5026. +extern "C"
  5027. +#endif
  5028. +/* We use char because int might match the return type of a gcc2
  5029. + builtin and then its argument prototype would still apply. */
  5030. +char opendir ();
  5031. +int
  5032. +main ()
  5033. +{
  5034. +opendir ();
  5035. + ;
  5036. + return 0;
  5037. +}
  5038. +_ACEOF
  5039. +rm -f conftest.$ac_objext conftest$ac_exeext
  5040. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5041. + (eval $ac_link) 2>&5
  5042. + ac_status=$?
  5043. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5044. + (exit $ac_status); } &&
  5045. + { ac_try='test -s conftest$ac_exeext'
  5046. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5047. + (eval $ac_try) 2>&5
  5048. + ac_status=$?
  5049. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5050. + (exit $ac_status); }; }; then
  5051. + ac_cv_search_opendir="-l$ac_lib"
  5052. +break
  5053. +else
  5054. + echo "$as_me: failed program was:" >&5
  5055. +sed 's/^/| /' conftest.$ac_ext >&5
  5056. fi
  5057. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5058. - echo "$ac_t""yes" 1>&6
  5059. - LIBS="$LIBS -ldir"
  5060. -else
  5061. - echo "$ac_t""no" 1>&6
  5062. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5063. + done
  5064. +fi
  5065. +LIBS=$ac_func_search_save_LIBS
  5066. +fi
  5067. +echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5068. +echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5069. +if test "$ac_cv_search_opendir" != no; then
  5070. + test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5071. +
  5072. fi
  5073. else
  5074. -echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  5075. -echo "configure:1855: checking for opendir in -lx" >&5
  5076. -ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  5077. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5078. - echo $ac_n "(cached) $ac_c" 1>&6
  5079. -else
  5080. - ac_save_LIBS="$LIBS"
  5081. -LIBS="-lx $LIBS"
  5082. -cat > conftest.$ac_ext <<EOF
  5083. -#line 1863 "configure"
  5084. -#include "confdefs.h"
  5085. + echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5086. +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5087. +if test "${ac_cv_search_opendir+set}" = set; then
  5088. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5089. +else
  5090. + ac_func_search_save_LIBS=$LIBS
  5091. +ac_cv_search_opendir=no
  5092. +cat >conftest.$ac_ext <<_ACEOF
  5093. +#line $LINENO "configure"
  5094. +/* confdefs.h. */
  5095. +_ACEOF
  5096. +cat confdefs.h >>conftest.$ac_ext
  5097. +cat >>conftest.$ac_ext <<_ACEOF
  5098. +/* end confdefs.h. */
  5099. +
  5100. /* Override any gcc2 internal prototype to avoid an error. */
  5101. +#ifdef __cplusplus
  5102. +extern "C"
  5103. +#endif
  5104. /* We use char because int might match the return type of a gcc2
  5105. - builtin and then its argument prototype would still apply. */
  5106. -char opendir();
  5107. + builtin and then its argument prototype would still apply. */
  5108. +char opendir ();
  5109. +int
  5110. +main ()
  5111. +{
  5112. +opendir ();
  5113. + ;
  5114. + return 0;
  5115. +}
  5116. +_ACEOF
  5117. +rm -f conftest.$ac_objext conftest$ac_exeext
  5118. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5119. + (eval $ac_link) 2>&5
  5120. + ac_status=$?
  5121. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5122. + (exit $ac_status); } &&
  5123. + { ac_try='test -s conftest$ac_exeext'
  5124. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5125. + (eval $ac_try) 2>&5
  5126. + ac_status=$?
  5127. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5128. + (exit $ac_status); }; }; then
  5129. + ac_cv_search_opendir="none required"
  5130. +else
  5131. + echo "$as_me: failed program was:" >&5
  5132. +sed 's/^/| /' conftest.$ac_ext >&5
  5133. +
  5134. +fi
  5135. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5136. +if test "$ac_cv_search_opendir" = no; then
  5137. + for ac_lib in x; do
  5138. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5139. + cat >conftest.$ac_ext <<_ACEOF
  5140. +#line $LINENO "configure"
  5141. +/* confdefs.h. */
  5142. +_ACEOF
  5143. +cat confdefs.h >>conftest.$ac_ext
  5144. +cat >>conftest.$ac_ext <<_ACEOF
  5145. +/* end confdefs.h. */
  5146. -int main() {
  5147. -opendir()
  5148. -; return 0; }
  5149. -EOF
  5150. -if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5151. - rm -rf conftest*
  5152. - eval "ac_cv_lib_$ac_lib_var=yes"
  5153. -else
  5154. - echo "configure: failed program was:" >&5
  5155. - cat conftest.$ac_ext >&5
  5156. - rm -rf conftest*
  5157. - eval "ac_cv_lib_$ac_lib_var=no"
  5158. -fi
  5159. -rm -f conftest*
  5160. -LIBS="$ac_save_LIBS"
  5161. +/* Override any gcc2 internal prototype to avoid an error. */
  5162. +#ifdef __cplusplus
  5163. +extern "C"
  5164. +#endif
  5165. +/* We use char because int might match the return type of a gcc2
  5166. + builtin and then its argument prototype would still apply. */
  5167. +char opendir ();
  5168. +int
  5169. +main ()
  5170. +{
  5171. +opendir ();
  5172. + ;
  5173. + return 0;
  5174. +}
  5175. +_ACEOF
  5176. +rm -f conftest.$ac_objext conftest$ac_exeext
  5177. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5178. + (eval $ac_link) 2>&5
  5179. + ac_status=$?
  5180. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5181. + (exit $ac_status); } &&
  5182. + { ac_try='test -s conftest$ac_exeext'
  5183. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5184. + (eval $ac_try) 2>&5
  5185. + ac_status=$?
  5186. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5187. + (exit $ac_status); }; }; then
  5188. + ac_cv_search_opendir="-l$ac_lib"
  5189. +break
  5190. +else
  5191. + echo "$as_me: failed program was:" >&5
  5192. +sed 's/^/| /' conftest.$ac_ext >&5
  5193. fi
  5194. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5195. - echo "$ac_t""yes" 1>&6
  5196. - LIBS="$LIBS -lx"
  5197. -else
  5198. - echo "$ac_t""no" 1>&6
  5199. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5200. + done
  5201. +fi
  5202. +LIBS=$ac_func_search_save_LIBS
  5203. +fi
  5204. +echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5205. +echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5206. +if test "$ac_cv_search_opendir" != no; then
  5207. + test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5208. +
  5209. fi
  5210. fi
  5211. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  5212. -echo "configure:1897: checking for ANSI C header files" >&5
  5213. -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  5214. - echo $ac_n "(cached) $ac_c" 1>&6
  5215. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5216. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  5217. +if test "${ac_cv_header_stdc+set}" = set; then
  5218. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5219. else
  5220. - cat > conftest.$ac_ext <<EOF
  5221. -#line 1902 "configure"
  5222. -#include "confdefs.h"
  5223. + cat >conftest.$ac_ext <<_ACEOF
  5224. +#line $LINENO "configure"
  5225. +/* confdefs.h. */
  5226. +_ACEOF
  5227. +cat confdefs.h >>conftest.$ac_ext
  5228. +cat >>conftest.$ac_ext <<_ACEOF
  5229. +/* end confdefs.h. */
  5230. #include <stdlib.h>
  5231. #include <stdarg.h>
  5232. #include <string.h>
  5233. #include <float.h>
  5234. -EOF
  5235. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5236. -{ (eval echo configure:1910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5237. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5238. -if test -z "$ac_err"; then
  5239. - rm -rf conftest*
  5240. +
  5241. +int
  5242. +main ()
  5243. +{
  5244. +
  5245. + ;
  5246. + return 0;
  5247. +}
  5248. +_ACEOF
  5249. +rm -f conftest.$ac_objext
  5250. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5251. + (eval $ac_compile) 2>&5
  5252. + ac_status=$?
  5253. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5254. + (exit $ac_status); } &&
  5255. + { ac_try='test -s conftest.$ac_objext'
  5256. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5257. + (eval $ac_try) 2>&5
  5258. + ac_status=$?
  5259. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5260. + (exit $ac_status); }; }; then
  5261. ac_cv_header_stdc=yes
  5262. else
  5263. - echo "$ac_err" >&5
  5264. - echo "configure: failed program was:" >&5
  5265. - cat conftest.$ac_ext >&5
  5266. - rm -rf conftest*
  5267. - ac_cv_header_stdc=no
  5268. + echo "$as_me: failed program was:" >&5
  5269. +sed 's/^/| /' conftest.$ac_ext >&5
  5270. +
  5271. +ac_cv_header_stdc=no
  5272. fi
  5273. -rm -f conftest*
  5274. +rm -f conftest.$ac_objext conftest.$ac_ext
  5275. if test $ac_cv_header_stdc = yes; then
  5276. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5277. -cat > conftest.$ac_ext <<EOF
  5278. -#line 1927 "configure"
  5279. -#include "confdefs.h"
  5280. + cat >conftest.$ac_ext <<_ACEOF
  5281. +#line $LINENO "configure"
  5282. +/* confdefs.h. */
  5283. +_ACEOF
  5284. +cat confdefs.h >>conftest.$ac_ext
  5285. +cat >>conftest.$ac_ext <<_ACEOF
  5286. +/* end confdefs.h. */
  5287. #include <string.h>
  5288. -EOF
  5289. +
  5290. +_ACEOF
  5291. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5292. - egrep "memchr" >/dev/null 2>&1; then
  5293. + $EGREP "memchr" >/dev/null 2>&1; then
  5294. :
  5295. else
  5296. - rm -rf conftest*
  5297. ac_cv_header_stdc=no
  5298. fi
  5299. rm -f conftest*
  5300. @@ -1940,16 +4358,20 @@
  5301. if test $ac_cv_header_stdc = yes; then
  5302. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5303. -cat > conftest.$ac_ext <<EOF
  5304. -#line 1945 "configure"
  5305. -#include "confdefs.h"
  5306. + cat >conftest.$ac_ext <<_ACEOF
  5307. +#line $LINENO "configure"
  5308. +/* confdefs.h. */
  5309. +_ACEOF
  5310. +cat confdefs.h >>conftest.$ac_ext
  5311. +cat >>conftest.$ac_ext <<_ACEOF
  5312. +/* end confdefs.h. */
  5313. #include <stdlib.h>
  5314. -EOF
  5315. +
  5316. +_ACEOF
  5317. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5318. - egrep "free" >/dev/null 2>&1; then
  5319. + $EGREP "free" >/dev/null 2>&1; then
  5320. :
  5321. else
  5322. - rm -rf conftest*
  5323. ac_cv_header_stdc=no
  5324. fi
  5325. rm -f conftest*
  5326. @@ -1958,436 +4380,794 @@
  5327. if test $ac_cv_header_stdc = yes; then
  5328. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5329. -if test "$cross_compiling" = yes; then
  5330. + if test "$cross_compiling" = yes; then
  5331. :
  5332. else
  5333. - cat > conftest.$ac_ext <<EOF
  5334. -#line 1966 "configure"
  5335. -#include "confdefs.h"
  5336. + cat >conftest.$ac_ext <<_ACEOF
  5337. +#line $LINENO "configure"
  5338. +/* confdefs.h. */
  5339. +_ACEOF
  5340. +cat confdefs.h >>conftest.$ac_ext
  5341. +cat >>conftest.$ac_ext <<_ACEOF
  5342. +/* end confdefs.h. */
  5343. #include <ctype.h>
  5344. -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5345. -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5346. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5347. -int main () { int i; for (i = 0; i < 256; i++)
  5348. -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  5349. -exit (0); }
  5350. +#if ((' ' & 0x0FF) == 0x020)
  5351. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5352. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5353. +#else
  5354. +# define ISLOWER(c) \
  5355. + (('a' <= (c) && (c) <= 'i') \
  5356. + || ('j' <= (c) && (c) <= 'r') \
  5357. + || ('s' <= (c) && (c) <= 'z'))
  5358. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5359. +#endif
  5360. -EOF
  5361. -if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5362. -then
  5363. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5364. +int
  5365. +main ()
  5366. +{
  5367. + int i;
  5368. + for (i = 0; i < 256; i++)
  5369. + if (XOR (islower (i), ISLOWER (i))
  5370. + || toupper (i) != TOUPPER (i))
  5371. + exit(2);
  5372. + exit (0);
  5373. +}
  5374. +_ACEOF
  5375. +rm -f conftest$ac_exeext
  5376. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5377. + (eval $ac_link) 2>&5
  5378. + ac_status=$?
  5379. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5380. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5381. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5382. + (eval $ac_try) 2>&5
  5383. + ac_status=$?
  5384. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5385. + (exit $ac_status); }; }; then
  5386. :
  5387. else
  5388. - echo "configure: failed program was:" >&5
  5389. - cat conftest.$ac_ext >&5
  5390. - rm -fr conftest*
  5391. - ac_cv_header_stdc=no
  5392. + echo "$as_me: program exited with status $ac_status" >&5
  5393. +echo "$as_me: failed program was:" >&5
  5394. +sed 's/^/| /' conftest.$ac_ext >&5
  5395. +
  5396. +( exit $ac_status )
  5397. +ac_cv_header_stdc=no
  5398. fi
  5399. -rm -fr conftest*
  5400. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5401. fi
  5402. -
  5403. fi
  5404. fi
  5405. -
  5406. -echo "$ac_t""$ac_cv_header_stdc" 1>&6
  5407. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5408. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5409. if test $ac_cv_header_stdc = yes; then
  5410. - cat >> confdefs.h <<\EOF
  5411. +
  5412. +cat >>confdefs.h <<\_ACEOF
  5413. #define STDC_HEADERS 1
  5414. -EOF
  5415. +_ACEOF
  5416. fi
  5417. -for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
  5418. +
  5419. +
  5420. +
  5421. +
  5422. +for ac_header in fcntl.h sys/ioctl.h sys/time.h unistd.h
  5423. do
  5424. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5425. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5426. -echo "configure:2004: checking for $ac_hdr" >&5
  5427. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5428. - echo $ac_n "(cached) $ac_c" 1>&6
  5429. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5430. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5431. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  5432. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5433. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5434. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5435. +fi
  5436. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5437. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5438. +else
  5439. + # Is the header compilable?
  5440. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5441. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5442. +cat >conftest.$ac_ext <<_ACEOF
  5443. +#line $LINENO "configure"
  5444. +/* confdefs.h. */
  5445. +_ACEOF
  5446. +cat confdefs.h >>conftest.$ac_ext
  5447. +cat >>conftest.$ac_ext <<_ACEOF
  5448. +/* end confdefs.h. */
  5449. +$ac_includes_default
  5450. +#include <$ac_header>
  5451. +_ACEOF
  5452. +rm -f conftest.$ac_objext
  5453. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5454. + (eval $ac_compile) 2>&5
  5455. + ac_status=$?
  5456. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5457. + (exit $ac_status); } &&
  5458. + { ac_try='test -s conftest.$ac_objext'
  5459. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5460. + (eval $ac_try) 2>&5
  5461. + ac_status=$?
  5462. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5463. + (exit $ac_status); }; }; then
  5464. + ac_header_compiler=yes
  5465. +else
  5466. + echo "$as_me: failed program was:" >&5
  5467. +sed 's/^/| /' conftest.$ac_ext >&5
  5468. +
  5469. +ac_header_compiler=no
  5470. +fi
  5471. +rm -f conftest.$ac_objext conftest.$ac_ext
  5472. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5473. +echo "${ECHO_T}$ac_header_compiler" >&6
  5474. +
  5475. +# Is the header present?
  5476. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5477. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5478. +cat >conftest.$ac_ext <<_ACEOF
  5479. +#line $LINENO "configure"
  5480. +/* confdefs.h. */
  5481. +_ACEOF
  5482. +cat confdefs.h >>conftest.$ac_ext
  5483. +cat >>conftest.$ac_ext <<_ACEOF
  5484. +/* end confdefs.h. */
  5485. +#include <$ac_header>
  5486. +_ACEOF
  5487. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5488. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5489. + ac_status=$?
  5490. + grep -v '^ *+' conftest.er1 >conftest.err
  5491. + rm -f conftest.er1
  5492. + cat conftest.err >&5
  5493. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5494. + (exit $ac_status); } >/dev/null; then
  5495. + if test -s conftest.err; then
  5496. + ac_cpp_err=$ac_c_preproc_warn_flag
  5497. + else
  5498. + ac_cpp_err=
  5499. + fi
  5500. else
  5501. - cat > conftest.$ac_ext <<EOF
  5502. -#line 2009 "configure"
  5503. -#include "confdefs.h"
  5504. -#include <$ac_hdr>
  5505. -EOF
  5506. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5507. -{ (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5508. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5509. -if test -z "$ac_err"; then
  5510. - rm -rf conftest*
  5511. - eval "ac_cv_header_$ac_safe=yes"
  5512. -else
  5513. - echo "$ac_err" >&5
  5514. - echo "configure: failed program was:" >&5
  5515. - cat conftest.$ac_ext >&5
  5516. - rm -rf conftest*
  5517. - eval "ac_cv_header_$ac_safe=no"
  5518. -fi
  5519. -rm -f conftest*
  5520. + ac_cpp_err=yes
  5521. fi
  5522. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5523. - echo "$ac_t""yes" 1>&6
  5524. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5525. - cat >> confdefs.h <<EOF
  5526. -#define $ac_tr_hdr 1
  5527. -EOF
  5528. -
  5529. +if test -z "$ac_cpp_err"; then
  5530. + ac_header_preproc=yes
  5531. +else
  5532. + echo "$as_me: failed program was:" >&5
  5533. +sed 's/^/| /' conftest.$ac_ext >&5
  5534. +
  5535. + ac_header_preproc=no
  5536. +fi
  5537. +rm -f conftest.err conftest.$ac_ext
  5538. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5539. +echo "${ECHO_T}$ac_header_preproc" >&6
  5540. +
  5541. +# So? What about this header?
  5542. +case $ac_header_compiler:$ac_header_preproc in
  5543. + yes:no )
  5544. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5545. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5546. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5547. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5548. + (
  5549. + cat <<\_ASBOX
  5550. +## ------------------------------------ ##
  5551. +## Report this to bug-autoconf@gnu.org. ##
  5552. +## ------------------------------------ ##
  5553. +_ASBOX
  5554. + ) |
  5555. + sed "s/^/$as_me: WARNING: /" >&2
  5556. + ;;
  5557. + no:yes )
  5558. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5559. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5560. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5561. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5562. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5563. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5564. + (
  5565. + cat <<\_ASBOX
  5566. +## ------------------------------------ ##
  5567. +## Report this to bug-autoconf@gnu.org. ##
  5568. +## ------------------------------------ ##
  5569. +_ASBOX
  5570. + ) |
  5571. + sed "s/^/$as_me: WARNING: /" >&2
  5572. + ;;
  5573. +esac
  5574. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  5575. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5576. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5577. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5578. else
  5579. - echo "$ac_t""no" 1>&6
  5580. + eval "$as_ac_Header=$ac_header_preproc"
  5581. +fi
  5582. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5583. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5584. +
  5585. fi
  5586. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5587. + cat >>confdefs.h <<_ACEOF
  5588. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5589. +_ACEOF
  5590. +
  5591. +fi
  5592. +
  5593. done
  5594. -for ac_hdr in curses.h ncurses.h
  5595. +
  5596. +
  5597. +for ac_header in curses.h ncurses.h
  5598. do
  5599. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5600. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5601. -echo "configure:2044: checking for $ac_hdr" >&5
  5602. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5603. - echo $ac_n "(cached) $ac_c" 1>&6
  5604. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5605. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5606. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  5607. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5608. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5609. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5610. +fi
  5611. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5612. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5613. +else
  5614. + # Is the header compilable?
  5615. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5616. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5617. +cat >conftest.$ac_ext <<_ACEOF
  5618. +#line $LINENO "configure"
  5619. +/* confdefs.h. */
  5620. +_ACEOF
  5621. +cat confdefs.h >>conftest.$ac_ext
  5622. +cat >>conftest.$ac_ext <<_ACEOF
  5623. +/* end confdefs.h. */
  5624. +$ac_includes_default
  5625. +#include <$ac_header>
  5626. +_ACEOF
  5627. +rm -f conftest.$ac_objext
  5628. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5629. + (eval $ac_compile) 2>&5
  5630. + ac_status=$?
  5631. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5632. + (exit $ac_status); } &&
  5633. + { ac_try='test -s conftest.$ac_objext'
  5634. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5635. + (eval $ac_try) 2>&5
  5636. + ac_status=$?
  5637. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5638. + (exit $ac_status); }; }; then
  5639. + ac_header_compiler=yes
  5640. +else
  5641. + echo "$as_me: failed program was:" >&5
  5642. +sed 's/^/| /' conftest.$ac_ext >&5
  5643. +
  5644. +ac_header_compiler=no
  5645. +fi
  5646. +rm -f conftest.$ac_objext conftest.$ac_ext
  5647. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5648. +echo "${ECHO_T}$ac_header_compiler" >&6
  5649. +
  5650. +# Is the header present?
  5651. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5652. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5653. +cat >conftest.$ac_ext <<_ACEOF
  5654. +#line $LINENO "configure"
  5655. +/* confdefs.h. */
  5656. +_ACEOF
  5657. +cat confdefs.h >>conftest.$ac_ext
  5658. +cat >>conftest.$ac_ext <<_ACEOF
  5659. +/* end confdefs.h. */
  5660. +#include <$ac_header>
  5661. +_ACEOF
  5662. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5663. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5664. + ac_status=$?
  5665. + grep -v '^ *+' conftest.er1 >conftest.err
  5666. + rm -f conftest.er1
  5667. + cat conftest.err >&5
  5668. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5669. + (exit $ac_status); } >/dev/null; then
  5670. + if test -s conftest.err; then
  5671. + ac_cpp_err=$ac_c_preproc_warn_flag
  5672. + else
  5673. + ac_cpp_err=
  5674. + fi
  5675. else
  5676. - cat > conftest.$ac_ext <<EOF
  5677. -#line 2049 "configure"
  5678. -#include "confdefs.h"
  5679. -#include <$ac_hdr>
  5680. -EOF
  5681. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5682. -{ (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5683. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5684. -if test -z "$ac_err"; then
  5685. - rm -rf conftest*
  5686. - eval "ac_cv_header_$ac_safe=yes"
  5687. -else
  5688. - echo "$ac_err" >&5
  5689. - echo "configure: failed program was:" >&5
  5690. - cat conftest.$ac_ext >&5
  5691. - rm -rf conftest*
  5692. - eval "ac_cv_header_$ac_safe=no"
  5693. + ac_cpp_err=yes
  5694. fi
  5695. -rm -f conftest*
  5696. +if test -z "$ac_cpp_err"; then
  5697. + ac_header_preproc=yes
  5698. +else
  5699. + echo "$as_me: failed program was:" >&5
  5700. +sed 's/^/| /' conftest.$ac_ext >&5
  5701. +
  5702. + ac_header_preproc=no
  5703. +fi
  5704. +rm -f conftest.err conftest.$ac_ext
  5705. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5706. +echo "${ECHO_T}$ac_header_preproc" >&6
  5707. +
  5708. +# So? What about this header?
  5709. +case $ac_header_compiler:$ac_header_preproc in
  5710. + yes:no )
  5711. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5712. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5713. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5714. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5715. + (
  5716. + cat <<\_ASBOX
  5717. +## ------------------------------------ ##
  5718. +## Report this to bug-autoconf@gnu.org. ##
  5719. +## ------------------------------------ ##
  5720. +_ASBOX
  5721. + ) |
  5722. + sed "s/^/$as_me: WARNING: /" >&2
  5723. + ;;
  5724. + no:yes )
  5725. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5726. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5727. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5728. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5729. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5730. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5731. + (
  5732. + cat <<\_ASBOX
  5733. +## ------------------------------------ ##
  5734. +## Report this to bug-autoconf@gnu.org. ##
  5735. +## ------------------------------------ ##
  5736. +_ASBOX
  5737. + ) |
  5738. + sed "s/^/$as_me: WARNING: /" >&2
  5739. + ;;
  5740. +esac
  5741. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  5742. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5743. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5744. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5745. +else
  5746. + eval "$as_ac_Header=$ac_header_preproc"
  5747. +fi
  5748. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5749. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5750. +
  5751. +fi
  5752. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5753. + cat >>confdefs.h <<_ACEOF
  5754. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5755. +_ACEOF
  5756. +
  5757. fi
  5758. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5759. - echo "$ac_t""yes" 1>&6
  5760. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5761. - cat >> confdefs.h <<EOF
  5762. -#define $ac_tr_hdr 1
  5763. -EOF
  5764. -
  5765. -else
  5766. - echo "$ac_t""no" 1>&6
  5767. -fi
  5768. -done
  5769. -
  5770. -
  5771. -echo $ac_n "checking for working const""... $ac_c" 1>&6
  5772. -echo "configure:2082: checking for working const" >&5
  5773. -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  5774. - echo $ac_n "(cached) $ac_c" 1>&6
  5775. -else
  5776. - cat > conftest.$ac_ext <<EOF
  5777. -#line 2087 "configure"
  5778. -#include "confdefs.h"
  5779. -
  5780. -int main() {
  5781. -
  5782. -/* Ultrix mips cc rejects this. */
  5783. -typedef int charset[2]; const charset x;
  5784. -/* SunOS 4.1.1 cc rejects this. */
  5785. -char const *const *ccp;
  5786. -char **p;
  5787. -/* NEC SVR4.0.2 mips cc rejects this. */
  5788. -struct point {int x, y;};
  5789. -static struct point const zero = {0,0};
  5790. -/* AIX XL C 1.02.0.0 rejects this.
  5791. - It does not let you subtract one const X* pointer from another in an arm
  5792. - of an if-expression whose if-part is not a constant expression */
  5793. -const char *g = "string";
  5794. -ccp = &g + (g ? g-g : 0);
  5795. -/* HPUX 7.0 cc rejects these. */
  5796. -++ccp;
  5797. -p = (char**) ccp;
  5798. -ccp = (char const *const *) p;
  5799. -{ /* SCO 3.2v4 cc rejects this. */
  5800. - char *t;
  5801. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  5802. -
  5803. - *t++ = 0;
  5804. -}
  5805. -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5806. - int x[] = {25, 17};
  5807. - const int *foo = &x[0];
  5808. - ++foo;
  5809. -}
  5810. -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5811. - typedef const int *iptr;
  5812. - iptr p = 0;
  5813. - ++p;
  5814. -}
  5815. -{ /* AIX XL C 1.02.0.0 rejects this saying
  5816. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5817. - struct s { int j; const int *ap[3]; };
  5818. - struct s *b; b->j = 5;
  5819. -}
  5820. -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5821. - const int foo = 10;
  5822. -}
  5823. -
  5824. -; return 0; }
  5825. -EOF
  5826. -if { (eval echo configure:2136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5827. - rm -rf conftest*
  5828. +
  5829. +done
  5830. +
  5831. +
  5832. +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5833. +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5834. +if test "${ac_cv_c_const+set}" = set; then
  5835. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5836. +else
  5837. + cat >conftest.$ac_ext <<_ACEOF
  5838. +#line $LINENO "configure"
  5839. +/* confdefs.h. */
  5840. +_ACEOF
  5841. +cat confdefs.h >>conftest.$ac_ext
  5842. +cat >>conftest.$ac_ext <<_ACEOF
  5843. +/* end confdefs.h. */
  5844. +
  5845. +int
  5846. +main ()
  5847. +{
  5848. +/* FIXME: Include the comments suggested by Paul. */
  5849. +#ifndef __cplusplus
  5850. + /* Ultrix mips cc rejects this. */
  5851. + typedef int charset[2];
  5852. + const charset x;
  5853. + /* SunOS 4.1.1 cc rejects this. */
  5854. + char const *const *ccp;
  5855. + char **p;
  5856. + /* NEC SVR4.0.2 mips cc rejects this. */
  5857. + struct point {int x, y;};
  5858. + static struct point const zero = {0,0};
  5859. + /* AIX XL C 1.02.0.0 rejects this.
  5860. + It does not let you subtract one const X* pointer from another in
  5861. + an arm of an if-expression whose if-part is not a constant
  5862. + expression */
  5863. + const char *g = "string";
  5864. + ccp = &g + (g ? g-g : 0);
  5865. + /* HPUX 7.0 cc rejects these. */
  5866. + ++ccp;
  5867. + p = (char**) ccp;
  5868. + ccp = (char const *const *) p;
  5869. + { /* SCO 3.2v4 cc rejects this. */
  5870. + char *t;
  5871. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  5872. +
  5873. + *t++ = 0;
  5874. + }
  5875. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5876. + int x[] = {25, 17};
  5877. + const int *foo = &x[0];
  5878. + ++foo;
  5879. + }
  5880. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5881. + typedef const int *iptr;
  5882. + iptr p = 0;
  5883. + ++p;
  5884. + }
  5885. + { /* AIX XL C 1.02.0.0 rejects this saying
  5886. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5887. + struct s { int j; const int *ap[3]; };
  5888. + struct s *b; b->j = 5;
  5889. + }
  5890. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5891. + const int foo = 10;
  5892. + }
  5893. +#endif
  5894. +
  5895. + ;
  5896. + return 0;
  5897. +}
  5898. +_ACEOF
  5899. +rm -f conftest.$ac_objext
  5900. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5901. + (eval $ac_compile) 2>&5
  5902. + ac_status=$?
  5903. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5904. + (exit $ac_status); } &&
  5905. + { ac_try='test -s conftest.$ac_objext'
  5906. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5907. + (eval $ac_try) 2>&5
  5908. + ac_status=$?
  5909. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5910. + (exit $ac_status); }; }; then
  5911. ac_cv_c_const=yes
  5912. else
  5913. - echo "configure: failed program was:" >&5
  5914. - cat conftest.$ac_ext >&5
  5915. - rm -rf conftest*
  5916. - ac_cv_c_const=no
  5917. + echo "$as_me: failed program was:" >&5
  5918. +sed 's/^/| /' conftest.$ac_ext >&5
  5919. +
  5920. +ac_cv_c_const=no
  5921. fi
  5922. -rm -f conftest*
  5923. +rm -f conftest.$ac_objext conftest.$ac_ext
  5924. fi
  5925. -
  5926. -echo "$ac_t""$ac_cv_c_const" 1>&6
  5927. +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5928. +echo "${ECHO_T}$ac_cv_c_const" >&6
  5929. if test $ac_cv_c_const = no; then
  5930. - cat >> confdefs.h <<\EOF
  5931. -#define const
  5932. -EOF
  5933. +
  5934. +cat >>confdefs.h <<\_ACEOF
  5935. +#define const
  5936. +_ACEOF
  5937. fi
  5938. -echo $ac_n "checking for inline""... $ac_c" 1>&6
  5939. -echo "configure:2157: checking for inline" >&5
  5940. -if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  5941. - echo $ac_n "(cached) $ac_c" 1>&6
  5942. +echo "$as_me:$LINENO: checking for inline" >&5
  5943. +echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5944. +if test "${ac_cv_c_inline+set}" = set; then
  5945. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5946. else
  5947. ac_cv_c_inline=no
  5948. for ac_kw in inline __inline__ __inline; do
  5949. - cat > conftest.$ac_ext <<EOF
  5950. -#line 2164 "configure"
  5951. -#include "confdefs.h"
  5952. -
  5953. -int main() {
  5954. -} $ac_kw foo() {
  5955. -; return 0; }
  5956. -EOF
  5957. -if { (eval echo configure:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5958. - rm -rf conftest*
  5959. + cat >conftest.$ac_ext <<_ACEOF
  5960. +#line $LINENO "configure"
  5961. +/* confdefs.h. */
  5962. +_ACEOF
  5963. +cat confdefs.h >>conftest.$ac_ext
  5964. +cat >>conftest.$ac_ext <<_ACEOF
  5965. +/* end confdefs.h. */
  5966. +#ifndef __cplusplus
  5967. +typedef int foo_t;
  5968. +static $ac_kw foo_t static_foo () {return 0; }
  5969. +$ac_kw foo_t foo () {return 0; }
  5970. +#endif
  5971. +
  5972. +_ACEOF
  5973. +rm -f conftest.$ac_objext
  5974. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5975. + (eval $ac_compile) 2>&5
  5976. + ac_status=$?
  5977. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5978. + (exit $ac_status); } &&
  5979. + { ac_try='test -s conftest.$ac_objext'
  5980. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5981. + (eval $ac_try) 2>&5
  5982. + ac_status=$?
  5983. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5984. + (exit $ac_status); }; }; then
  5985. ac_cv_c_inline=$ac_kw; break
  5986. else
  5987. - echo "configure: failed program was:" >&5
  5988. - cat conftest.$ac_ext >&5
  5989. + echo "$as_me: failed program was:" >&5
  5990. +sed 's/^/| /' conftest.$ac_ext >&5
  5991. +
  5992. fi
  5993. -rm -f conftest*
  5994. +rm -f conftest.$ac_objext conftest.$ac_ext
  5995. done
  5996. fi
  5997. -
  5998. -echo "$ac_t""$ac_cv_c_inline" 1>&6
  5999. -case "$ac_cv_c_inline" in
  6000. +echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6001. +echo "${ECHO_T}$ac_cv_c_inline" >&6
  6002. +case $ac_cv_c_inline in
  6003. inline | yes) ;;
  6004. - no) cat >> confdefs.h <<\EOF
  6005. -#define inline
  6006. -EOF
  6007. + no)
  6008. +cat >>confdefs.h <<\_ACEOF
  6009. +#define inline
  6010. +_ACEOF
  6011. ;;
  6012. - *) cat >> confdefs.h <<EOF
  6013. + *) cat >>confdefs.h <<_ACEOF
  6014. #define inline $ac_cv_c_inline
  6015. -EOF
  6016. +_ACEOF
  6017. ;;
  6018. esac
  6019. -echo $ac_n "checking for size_t""... $ac_c" 1>&6
  6020. -echo "configure:2197: checking for size_t" >&5
  6021. -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  6022. - echo $ac_n "(cached) $ac_c" 1>&6
  6023. -else
  6024. - cat > conftest.$ac_ext <<EOF
  6025. -#line 2202 "configure"
  6026. -#include "confdefs.h"
  6027. -#include <sys/types.h>
  6028. -#if STDC_HEADERS
  6029. -#include <stdlib.h>
  6030. -#include <stddef.h>
  6031. -#endif
  6032. -EOF
  6033. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6034. - egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  6035. - rm -rf conftest*
  6036. +echo "$as_me:$LINENO: checking for size_t" >&5
  6037. +echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  6038. +if test "${ac_cv_type_size_t+set}" = set; then
  6039. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6040. +else
  6041. + cat >conftest.$ac_ext <<_ACEOF
  6042. +#line $LINENO "configure"
  6043. +/* confdefs.h. */
  6044. +_ACEOF
  6045. +cat confdefs.h >>conftest.$ac_ext
  6046. +cat >>conftest.$ac_ext <<_ACEOF
  6047. +/* end confdefs.h. */
  6048. +$ac_includes_default
  6049. +int
  6050. +main ()
  6051. +{
  6052. +if ((size_t *) 0)
  6053. + return 0;
  6054. +if (sizeof (size_t))
  6055. + return 0;
  6056. + ;
  6057. + return 0;
  6058. +}
  6059. +_ACEOF
  6060. +rm -f conftest.$ac_objext
  6061. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6062. + (eval $ac_compile) 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_type_size_t=yes
  6073. else
  6074. - rm -rf conftest*
  6075. - ac_cv_type_size_t=no
  6076. -fi
  6077. -rm -f conftest*
  6078. + echo "$as_me: failed program was:" >&5
  6079. +sed 's/^/| /' conftest.$ac_ext >&5
  6080. +ac_cv_type_size_t=no
  6081. +fi
  6082. +rm -f conftest.$ac_objext conftest.$ac_ext
  6083. fi
  6084. -echo "$ac_t""$ac_cv_type_size_t" 1>&6
  6085. -if test $ac_cv_type_size_t = no; then
  6086. - cat >> confdefs.h <<\EOF
  6087. +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6088. +echo "${ECHO_T}$ac_cv_type_size_t" >&6
  6089. +if test $ac_cv_type_size_t = yes; then
  6090. + :
  6091. +else
  6092. +
  6093. +cat >>confdefs.h <<_ACEOF
  6094. #define size_t unsigned
  6095. -EOF
  6096. +_ACEOF
  6097. fi
  6098. -echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  6099. -echo "configure:2230: checking whether time.h and sys/time.h may both be included" >&5
  6100. -if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  6101. - echo $ac_n "(cached) $ac_c" 1>&6
  6102. -else
  6103. - cat > conftest.$ac_ext <<EOF
  6104. -#line 2235 "configure"
  6105. -#include "confdefs.h"
  6106. +echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6107. +echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  6108. +if test "${ac_cv_header_time+set}" = set; then
  6109. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6110. +else
  6111. + cat >conftest.$ac_ext <<_ACEOF
  6112. +#line $LINENO "configure"
  6113. +/* confdefs.h. */
  6114. +_ACEOF
  6115. +cat confdefs.h >>conftest.$ac_ext
  6116. +cat >>conftest.$ac_ext <<_ACEOF
  6117. +/* end confdefs.h. */
  6118. #include <sys/types.h>
  6119. #include <sys/time.h>
  6120. #include <time.h>
  6121. -int main() {
  6122. -struct tm *tp;
  6123. -; return 0; }
  6124. -EOF
  6125. -if { (eval echo configure:2244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6126. - rm -rf conftest*
  6127. +
  6128. +int
  6129. +main ()
  6130. +{
  6131. +if ((struct tm *) 0)
  6132. +return 0;
  6133. + ;
  6134. + return 0;
  6135. +}
  6136. +_ACEOF
  6137. +rm -f conftest.$ac_objext
  6138. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6139. + (eval $ac_compile) 2>&5
  6140. + ac_status=$?
  6141. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6142. + (exit $ac_status); } &&
  6143. + { ac_try='test -s conftest.$ac_objext'
  6144. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6145. + (eval $ac_try) 2>&5
  6146. + ac_status=$?
  6147. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6148. + (exit $ac_status); }; }; then
  6149. ac_cv_header_time=yes
  6150. else
  6151. - echo "configure: failed program was:" >&5
  6152. - cat conftest.$ac_ext >&5
  6153. - rm -rf conftest*
  6154. - ac_cv_header_time=no
  6155. + echo "$as_me: failed program was:" >&5
  6156. +sed 's/^/| /' conftest.$ac_ext >&5
  6157. +
  6158. +ac_cv_header_time=no
  6159. fi
  6160. -rm -f conftest*
  6161. +rm -f conftest.$ac_objext conftest.$ac_ext
  6162. fi
  6163. -
  6164. -echo "$ac_t""$ac_cv_header_time" 1>&6
  6165. +echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6166. +echo "${ECHO_T}$ac_cv_header_time" >&6
  6167. if test $ac_cv_header_time = yes; then
  6168. - cat >> confdefs.h <<\EOF
  6169. +
  6170. +cat >>confdefs.h <<\_ACEOF
  6171. #define TIME_WITH_SYS_TIME 1
  6172. -EOF
  6173. +_ACEOF
  6174. fi
  6175. -echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  6176. -echo "configure:2265: checking whether struct tm is in sys/time.h or time.h" >&5
  6177. -if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  6178. - echo $ac_n "(cached) $ac_c" 1>&6
  6179. -else
  6180. - cat > conftest.$ac_ext <<EOF
  6181. -#line 2270 "configure"
  6182. -#include "confdefs.h"
  6183. +echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6184. +echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6185. +if test "${ac_cv_struct_tm+set}" = set; then
  6186. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6187. +else
  6188. + cat >conftest.$ac_ext <<_ACEOF
  6189. +#line $LINENO "configure"
  6190. +/* confdefs.h. */
  6191. +_ACEOF
  6192. +cat confdefs.h >>conftest.$ac_ext
  6193. +cat >>conftest.$ac_ext <<_ACEOF
  6194. +/* end confdefs.h. */
  6195. #include <sys/types.h>
  6196. #include <time.h>
  6197. -int main() {
  6198. +
  6199. +int
  6200. +main ()
  6201. +{
  6202. struct tm *tp; tp->tm_sec;
  6203. -; return 0; }
  6204. -EOF
  6205. -if { (eval echo configure:2278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6206. - rm -rf conftest*
  6207. + ;
  6208. + return 0;
  6209. +}
  6210. +_ACEOF
  6211. +rm -f conftest.$ac_objext
  6212. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6213. + (eval $ac_compile) 2>&5
  6214. + ac_status=$?
  6215. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6216. + (exit $ac_status); } &&
  6217. + { ac_try='test -s conftest.$ac_objext'
  6218. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6219. + (eval $ac_try) 2>&5
  6220. + ac_status=$?
  6221. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6222. + (exit $ac_status); }; }; then
  6223. ac_cv_struct_tm=time.h
  6224. else
  6225. - echo "configure: failed program was:" >&5
  6226. - cat conftest.$ac_ext >&5
  6227. - rm -rf conftest*
  6228. - ac_cv_struct_tm=sys/time.h
  6229. + echo "$as_me: failed program was:" >&5
  6230. +sed 's/^/| /' conftest.$ac_ext >&5
  6231. +
  6232. +ac_cv_struct_tm=sys/time.h
  6233. fi
  6234. -rm -f conftest*
  6235. +rm -f conftest.$ac_objext conftest.$ac_ext
  6236. fi
  6237. -
  6238. -echo "$ac_t""$ac_cv_struct_tm" 1>&6
  6239. +echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6240. +echo "${ECHO_T}$ac_cv_struct_tm" >&6
  6241. if test $ac_cv_struct_tm = sys/time.h; then
  6242. - cat >> confdefs.h <<\EOF
  6243. +
  6244. +cat >>confdefs.h <<\_ACEOF
  6245. #define TM_IN_SYS_TIME 1
  6246. -EOF
  6247. +_ACEOF
  6248. fi
  6249. -echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  6250. -echo "configure:2299: checking for uid_t in sys/types.h" >&5
  6251. -if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  6252. - echo $ac_n "(cached) $ac_c" 1>&6
  6253. -else
  6254. - cat > conftest.$ac_ext <<EOF
  6255. -#line 2304 "configure"
  6256. -#include "confdefs.h"
  6257. +echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  6258. +echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  6259. +if test "${ac_cv_type_uid_t+set}" = set; then
  6260. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6261. +else
  6262. + cat >conftest.$ac_ext <<_ACEOF
  6263. +#line $LINENO "configure"
  6264. +/* confdefs.h. */
  6265. +_ACEOF
  6266. +cat confdefs.h >>conftest.$ac_ext
  6267. +cat >>conftest.$ac_ext <<_ACEOF
  6268. +/* end confdefs.h. */
  6269. #include <sys/types.h>
  6270. -EOF
  6271. +
  6272. +_ACEOF
  6273. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6274. - egrep "uid_t" >/dev/null 2>&1; then
  6275. - rm -rf conftest*
  6276. + $EGREP "uid_t" >/dev/null 2>&1; then
  6277. ac_cv_type_uid_t=yes
  6278. else
  6279. - rm -rf conftest*
  6280. ac_cv_type_uid_t=no
  6281. fi
  6282. rm -f conftest*
  6283. fi
  6284. -
  6285. -echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  6286. +echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  6287. +echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  6288. if test $ac_cv_type_uid_t = no; then
  6289. - cat >> confdefs.h <<\EOF
  6290. +
  6291. +cat >>confdefs.h <<\_ACEOF
  6292. #define uid_t int
  6293. -EOF
  6294. +_ACEOF
  6295. +
  6296. - cat >> confdefs.h <<\EOF
  6297. +cat >>confdefs.h <<\_ACEOF
  6298. #define gid_t int
  6299. -EOF
  6300. +_ACEOF
  6301. fi
  6302. -if test $ac_cv_prog_gcc = yes; then
  6303. - echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  6304. -echo "configure:2335: checking whether ${CC-cc} needs -traditional" >&5
  6305. -if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  6306. - echo $ac_n "(cached) $ac_c" 1>&6
  6307. +if test $ac_cv_c_compiler_gnu = yes; then
  6308. + echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  6309. +echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  6310. +if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  6311. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6312. else
  6313. ac_pattern="Autoconf.*'x'"
  6314. - cat > conftest.$ac_ext <<EOF
  6315. -#line 2341 "configure"
  6316. -#include "confdefs.h"
  6317. + cat >conftest.$ac_ext <<_ACEOF
  6318. +#line $LINENO "configure"
  6319. +/* confdefs.h. */
  6320. +_ACEOF
  6321. +cat confdefs.h >>conftest.$ac_ext
  6322. +cat >>conftest.$ac_ext <<_ACEOF
  6323. +/* end confdefs.h. */
  6324. #include <sgtty.h>
  6325. Autoconf TIOCGETP
  6326. -EOF
  6327. +_ACEOF
  6328. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6329. - egrep "$ac_pattern" >/dev/null 2>&1; then
  6330. - rm -rf conftest*
  6331. + $EGREP "$ac_pattern" >/dev/null 2>&1; then
  6332. ac_cv_prog_gcc_traditional=yes
  6333. else
  6334. - rm -rf conftest*
  6335. ac_cv_prog_gcc_traditional=no
  6336. fi
  6337. rm -f conftest*
  6338. if test $ac_cv_prog_gcc_traditional = no; then
  6339. - cat > conftest.$ac_ext <<EOF
  6340. -#line 2359 "configure"
  6341. -#include "confdefs.h"
  6342. + cat >conftest.$ac_ext <<_ACEOF
  6343. +#line $LINENO "configure"
  6344. +/* confdefs.h. */
  6345. +_ACEOF
  6346. +cat confdefs.h >>conftest.$ac_ext
  6347. +cat >>conftest.$ac_ext <<_ACEOF
  6348. +/* end confdefs.h. */
  6349. #include <termio.h>
  6350. Autoconf TCGETA
  6351. -EOF
  6352. +_ACEOF
  6353. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6354. - egrep "$ac_pattern" >/dev/null 2>&1; then
  6355. - rm -rf conftest*
  6356. + $EGREP "$ac_pattern" >/dev/null 2>&1; then
  6357. ac_cv_prog_gcc_traditional=yes
  6358. fi
  6359. rm -f conftest*
  6360. fi
  6361. fi
  6362. -
  6363. -echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  6364. +echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  6365. +echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  6366. if test $ac_cv_prog_gcc_traditional = yes; then
  6367. CC="$CC -traditional"
  6368. fi
  6369. fi
  6370. -echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  6371. -echo "configure:2381: checking return type of signal handlers" >&5
  6372. -if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  6373. - echo $ac_n "(cached) $ac_c" 1>&6
  6374. -else
  6375. - cat > conftest.$ac_ext <<EOF
  6376. -#line 2386 "configure"
  6377. -#include "confdefs.h"
  6378. +echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  6379. +echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  6380. +if test "${ac_cv_type_signal+set}" = set; then
  6381. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6382. +else
  6383. + cat >conftest.$ac_ext <<_ACEOF
  6384. +#line $LINENO "configure"
  6385. +/* confdefs.h. */
  6386. +_ACEOF
  6387. +cat confdefs.h >>conftest.$ac_ext
  6388. +cat >>conftest.$ac_ext <<_ACEOF
  6389. +/* end confdefs.h. */
  6390. #include <sys/types.h>
  6391. #include <signal.h>
  6392. #ifdef signal
  6393. -#undef signal
  6394. +# undef signal
  6395. #endif
  6396. #ifdef __cplusplus
  6397. extern "C" void (*signal (int, void (*)(int)))(int);
  6398. @@ -2395,347 +5175,774 @@
  6399. void (*signal ()) ();
  6400. #endif
  6401. -int main() {
  6402. +int
  6403. +main ()
  6404. +{
  6405. int i;
  6406. -; return 0; }
  6407. -EOF
  6408. -if { (eval echo configure:2403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6409. - rm -rf conftest*
  6410. + ;
  6411. + return 0;
  6412. +}
  6413. +_ACEOF
  6414. +rm -f conftest.$ac_objext
  6415. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6416. + (eval $ac_compile) 2>&5
  6417. + ac_status=$?
  6418. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6419. + (exit $ac_status); } &&
  6420. + { ac_try='test -s conftest.$ac_objext'
  6421. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6422. + (eval $ac_try) 2>&5
  6423. + ac_status=$?
  6424. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6425. + (exit $ac_status); }; }; then
  6426. ac_cv_type_signal=void
  6427. else
  6428. - echo "configure: failed program was:" >&5
  6429. - cat conftest.$ac_ext >&5
  6430. - rm -rf conftest*
  6431. - ac_cv_type_signal=int
  6432. + echo "$as_me: failed program was:" >&5
  6433. +sed 's/^/| /' conftest.$ac_ext >&5
  6434. +
  6435. +ac_cv_type_signal=int
  6436. fi
  6437. -rm -f conftest*
  6438. +rm -f conftest.$ac_objext conftest.$ac_ext
  6439. fi
  6440. +echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  6441. +echo "${ECHO_T}$ac_cv_type_signal" >&6
  6442. -echo "$ac_t""$ac_cv_type_signal" 1>&6
  6443. -cat >> confdefs.h <<EOF
  6444. +cat >>confdefs.h <<_ACEOF
  6445. #define RETSIGTYPE $ac_cv_type_signal
  6446. -EOF
  6447. +_ACEOF
  6448. +
  6449. +
  6450. +
  6451. +
  6452. +
  6453. +
  6454. for ac_func in select socket strdup strerror strtol uname
  6455. do
  6456. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6457. -echo "configure:2424: checking for $ac_func" >&5
  6458. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6459. - echo $ac_n "(cached) $ac_c" 1>&6
  6460. -else
  6461. - cat > conftest.$ac_ext <<EOF
  6462. -#line 2429 "configure"
  6463. -#include "confdefs.h"
  6464. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6465. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  6466. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6467. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  6468. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6469. +else
  6470. + cat >conftest.$ac_ext <<_ACEOF
  6471. +#line $LINENO "configure"
  6472. +/* confdefs.h. */
  6473. +_ACEOF
  6474. +cat confdefs.h >>conftest.$ac_ext
  6475. +cat >>conftest.$ac_ext <<_ACEOF
  6476. +/* end confdefs.h. */
  6477. /* System header to define __stub macros and hopefully few prototypes,
  6478. - which can conflict with char $ac_func(); below. */
  6479. -#include <assert.h>
  6480. + which can conflict with char $ac_func (); below.
  6481. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6482. + <limits.h> exists even on freestanding compilers. */
  6483. +#ifdef __STDC__
  6484. +# include <limits.h>
  6485. +#else
  6486. +# include <assert.h>
  6487. +#endif
  6488. /* Override any gcc2 internal prototype to avoid an error. */
  6489. +#ifdef __cplusplus
  6490. +extern "C"
  6491. +{
  6492. +#endif
  6493. /* We use char because int might match the return type of a gcc2
  6494. - builtin and then its argument prototype would still apply. */
  6495. -char $ac_func();
  6496. -
  6497. -int main() {
  6498. -
  6499. + builtin and then its argument prototype would still apply. */
  6500. +char $ac_func ();
  6501. /* The GNU C library defines this for functions which it implements
  6502. to always fail with ENOSYS. Some functions are actually named
  6503. something starting with __ and the normal name is an alias. */
  6504. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6505. choke me
  6506. #else
  6507. -$ac_func();
  6508. +char (*f) () = $ac_func;
  6509. +#endif
  6510. +#ifdef __cplusplus
  6511. +}
  6512. #endif
  6513. -; return 0; }
  6514. -EOF
  6515. -if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6516. - rm -rf conftest*
  6517. - eval "ac_cv_func_$ac_func=yes"
  6518. -else
  6519. - echo "configure: failed program was:" >&5
  6520. - cat conftest.$ac_ext >&5
  6521. - rm -rf conftest*
  6522. - eval "ac_cv_func_$ac_func=no"
  6523. -fi
  6524. -rm -f conftest*
  6525. -fi
  6526. +int
  6527. +main ()
  6528. +{
  6529. +return f != $ac_func;
  6530. + ;
  6531. + return 0;
  6532. +}
  6533. +_ACEOF
  6534. +rm -f conftest.$ac_objext conftest$ac_exeext
  6535. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6536. + (eval $ac_link) 2>&5
  6537. + ac_status=$?
  6538. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6539. + (exit $ac_status); } &&
  6540. + { ac_try='test -s conftest$ac_exeext'
  6541. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6542. + (eval $ac_try) 2>&5
  6543. + ac_status=$?
  6544. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6545. + (exit $ac_status); }; }; then
  6546. + eval "$as_ac_var=yes"
  6547. +else
  6548. + echo "$as_me: failed program was:" >&5
  6549. +sed 's/^/| /' conftest.$ac_ext >&5
  6550. +
  6551. +eval "$as_ac_var=no"
  6552. +fi
  6553. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6554. +fi
  6555. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6556. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6557. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  6558. + cat >>confdefs.h <<_ACEOF
  6559. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6560. +_ACEOF
  6561. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6562. - echo "$ac_t""yes" 1>&6
  6563. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6564. - cat >> confdefs.h <<EOF
  6565. -#define $ac_tr_func 1
  6566. -EOF
  6567. -
  6568. -else
  6569. - echo "$ac_t""no" 1>&6
  6570. fi
  6571. done
  6572. - for ac_hdr in fcntl.h sys/dustat.h sys/param.h sys/statfs.h sys/fstyp.h
  6573. +
  6574. +
  6575. +
  6576. +
  6577. +
  6578. +for ac_header in fcntl.h sys/dustat.h sys/param.h sys/statfs.h sys/fstyp.h
  6579. do
  6580. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6581. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6582. -echo "configure:2483: checking for $ac_hdr" >&5
  6583. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6584. - echo $ac_n "(cached) $ac_c" 1>&6
  6585. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6586. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6587. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6588. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6589. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6590. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6591. +fi
  6592. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6593. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6594. +else
  6595. + # Is the header compilable?
  6596. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6597. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6598. +cat >conftest.$ac_ext <<_ACEOF
  6599. +#line $LINENO "configure"
  6600. +/* confdefs.h. */
  6601. +_ACEOF
  6602. +cat confdefs.h >>conftest.$ac_ext
  6603. +cat >>conftest.$ac_ext <<_ACEOF
  6604. +/* end confdefs.h. */
  6605. +$ac_includes_default
  6606. +#include <$ac_header>
  6607. +_ACEOF
  6608. +rm -f conftest.$ac_objext
  6609. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6610. + (eval $ac_compile) 2>&5
  6611. + ac_status=$?
  6612. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6613. + (exit $ac_status); } &&
  6614. + { ac_try='test -s conftest.$ac_objext'
  6615. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6616. + (eval $ac_try) 2>&5
  6617. + ac_status=$?
  6618. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6619. + (exit $ac_status); }; }; then
  6620. + ac_header_compiler=yes
  6621. +else
  6622. + echo "$as_me: failed program was:" >&5
  6623. +sed 's/^/| /' conftest.$ac_ext >&5
  6624. +
  6625. +ac_header_compiler=no
  6626. +fi
  6627. +rm -f conftest.$ac_objext conftest.$ac_ext
  6628. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6629. +echo "${ECHO_T}$ac_header_compiler" >&6
  6630. +
  6631. +# Is the header present?
  6632. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6633. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6634. +cat >conftest.$ac_ext <<_ACEOF
  6635. +#line $LINENO "configure"
  6636. +/* confdefs.h. */
  6637. +_ACEOF
  6638. +cat confdefs.h >>conftest.$ac_ext
  6639. +cat >>conftest.$ac_ext <<_ACEOF
  6640. +/* end confdefs.h. */
  6641. +#include <$ac_header>
  6642. +_ACEOF
  6643. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6644. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6645. + ac_status=$?
  6646. + grep -v '^ *+' conftest.er1 >conftest.err
  6647. + rm -f conftest.er1
  6648. + cat conftest.err >&5
  6649. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6650. + (exit $ac_status); } >/dev/null; then
  6651. + if test -s conftest.err; then
  6652. + ac_cpp_err=$ac_c_preproc_warn_flag
  6653. + else
  6654. + ac_cpp_err=
  6655. + fi
  6656. else
  6657. - cat > conftest.$ac_ext <<EOF
  6658. -#line 2488 "configure"
  6659. -#include "confdefs.h"
  6660. -#include <$ac_hdr>
  6661. -EOF
  6662. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6663. -{ (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6664. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6665. -if test -z "$ac_err"; then
  6666. - rm -rf conftest*
  6667. - eval "ac_cv_header_$ac_safe=yes"
  6668. -else
  6669. - echo "$ac_err" >&5
  6670. - echo "configure: failed program was:" >&5
  6671. - cat conftest.$ac_ext >&5
  6672. - rm -rf conftest*
  6673. - eval "ac_cv_header_$ac_safe=no"
  6674. -fi
  6675. -rm -f conftest*
  6676. + ac_cpp_err=yes
  6677. fi
  6678. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6679. - echo "$ac_t""yes" 1>&6
  6680. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6681. - cat >> confdefs.h <<EOF
  6682. -#define $ac_tr_hdr 1
  6683. -EOF
  6684. -
  6685. +if test -z "$ac_cpp_err"; then
  6686. + ac_header_preproc=yes
  6687. +else
  6688. + echo "$as_me: failed program was:" >&5
  6689. +sed 's/^/| /' conftest.$ac_ext >&5
  6690. +
  6691. + ac_header_preproc=no
  6692. +fi
  6693. +rm -f conftest.err conftest.$ac_ext
  6694. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6695. +echo "${ECHO_T}$ac_header_preproc" >&6
  6696. +
  6697. +# So? What about this header?
  6698. +case $ac_header_compiler:$ac_header_preproc in
  6699. + yes:no )
  6700. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6701. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6702. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6703. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6704. + (
  6705. + cat <<\_ASBOX
  6706. +## ------------------------------------ ##
  6707. +## Report this to bug-autoconf@gnu.org. ##
  6708. +## ------------------------------------ ##
  6709. +_ASBOX
  6710. + ) |
  6711. + sed "s/^/$as_me: WARNING: /" >&2
  6712. + ;;
  6713. + no:yes )
  6714. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6715. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6716. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6717. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6718. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6719. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6720. + (
  6721. + cat <<\_ASBOX
  6722. +## ------------------------------------ ##
  6723. +## Report this to bug-autoconf@gnu.org. ##
  6724. +## ------------------------------------ ##
  6725. +_ASBOX
  6726. + ) |
  6727. + sed "s/^/$as_me: WARNING: /" >&2
  6728. + ;;
  6729. +esac
  6730. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  6731. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6732. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6733. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6734. else
  6735. - echo "$ac_t""no" 1>&6
  6736. + eval "$as_ac_Header=$ac_header_preproc"
  6737. +fi
  6738. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6739. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6740. +
  6741. +fi
  6742. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6743. + cat >>confdefs.h <<_ACEOF
  6744. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6745. +_ACEOF
  6746. +
  6747. fi
  6748. +
  6749. done
  6750. - for ac_hdr in mnttab.h mntent.h utime.h sys/statvfs.h sys/vfs.h
  6751. +
  6752. +
  6753. +
  6754. +
  6755. +
  6756. +for ac_header in mnttab.h mntent.h utime.h sys/statvfs.h sys/vfs.h
  6757. do
  6758. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6759. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6760. -echo "configure:2523: checking for $ac_hdr" >&5
  6761. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6762. - echo $ac_n "(cached) $ac_c" 1>&6
  6763. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6764. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6765. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6766. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6767. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6768. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6769. +fi
  6770. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6771. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6772. +else
  6773. + # Is the header compilable?
  6774. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6775. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6776. +cat >conftest.$ac_ext <<_ACEOF
  6777. +#line $LINENO "configure"
  6778. +/* confdefs.h. */
  6779. +_ACEOF
  6780. +cat confdefs.h >>conftest.$ac_ext
  6781. +cat >>conftest.$ac_ext <<_ACEOF
  6782. +/* end confdefs.h. */
  6783. +$ac_includes_default
  6784. +#include <$ac_header>
  6785. +_ACEOF
  6786. +rm -f conftest.$ac_objext
  6787. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6788. + (eval $ac_compile) 2>&5
  6789. + ac_status=$?
  6790. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6791. + (exit $ac_status); } &&
  6792. + { ac_try='test -s conftest.$ac_objext'
  6793. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6794. + (eval $ac_try) 2>&5
  6795. + ac_status=$?
  6796. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6797. + (exit $ac_status); }; }; then
  6798. + ac_header_compiler=yes
  6799. +else
  6800. + echo "$as_me: failed program was:" >&5
  6801. +sed 's/^/| /' conftest.$ac_ext >&5
  6802. +
  6803. +ac_header_compiler=no
  6804. +fi
  6805. +rm -f conftest.$ac_objext conftest.$ac_ext
  6806. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6807. +echo "${ECHO_T}$ac_header_compiler" >&6
  6808. +
  6809. +# Is the header present?
  6810. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6811. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6812. +cat >conftest.$ac_ext <<_ACEOF
  6813. +#line $LINENO "configure"
  6814. +/* confdefs.h. */
  6815. +_ACEOF
  6816. +cat confdefs.h >>conftest.$ac_ext
  6817. +cat >>conftest.$ac_ext <<_ACEOF
  6818. +/* end confdefs.h. */
  6819. +#include <$ac_header>
  6820. +_ACEOF
  6821. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6822. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6823. + ac_status=$?
  6824. + grep -v '^ *+' conftest.er1 >conftest.err
  6825. + rm -f conftest.er1
  6826. + cat conftest.err >&5
  6827. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6828. + (exit $ac_status); } >/dev/null; then
  6829. + if test -s conftest.err; then
  6830. + ac_cpp_err=$ac_c_preproc_warn_flag
  6831. + else
  6832. + ac_cpp_err=
  6833. + fi
  6834. else
  6835. - cat > conftest.$ac_ext <<EOF
  6836. -#line 2528 "configure"
  6837. -#include "confdefs.h"
  6838. -#include <$ac_hdr>
  6839. -EOF
  6840. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6841. -{ (eval echo configure:2533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6842. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6843. -if test -z "$ac_err"; then
  6844. - rm -rf conftest*
  6845. - eval "ac_cv_header_$ac_safe=yes"
  6846. -else
  6847. - echo "$ac_err" >&5
  6848. - echo "configure: failed program was:" >&5
  6849. - cat conftest.$ac_ext >&5
  6850. - rm -rf conftest*
  6851. - eval "ac_cv_header_$ac_safe=no"
  6852. -fi
  6853. -rm -f conftest*
  6854. + ac_cpp_err=yes
  6855. fi
  6856. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6857. - echo "$ac_t""yes" 1>&6
  6858. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6859. - cat >> confdefs.h <<EOF
  6860. -#define $ac_tr_hdr 1
  6861. -EOF
  6862. -
  6863. +if test -z "$ac_cpp_err"; then
  6864. + ac_header_preproc=yes
  6865. else
  6866. - echo "$ac_t""no" 1>&6
  6867. + echo "$as_me: failed program was:" >&5
  6868. +sed 's/^/| /' conftest.$ac_ext >&5
  6869. +
  6870. + ac_header_preproc=no
  6871. +fi
  6872. +rm -f conftest.err conftest.$ac_ext
  6873. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6874. +echo "${ECHO_T}$ac_header_preproc" >&6
  6875. +
  6876. +# So? What about this header?
  6877. +case $ac_header_compiler:$ac_header_preproc in
  6878. + yes:no )
  6879. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6880. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6881. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6882. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6883. + (
  6884. + cat <<\_ASBOX
  6885. +## ------------------------------------ ##
  6886. +## Report this to bug-autoconf@gnu.org. ##
  6887. +## ------------------------------------ ##
  6888. +_ASBOX
  6889. + ) |
  6890. + sed "s/^/$as_me: WARNING: /" >&2
  6891. + ;;
  6892. + no:yes )
  6893. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6894. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6895. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6896. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6897. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6898. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6899. + (
  6900. + cat <<\_ASBOX
  6901. +## ------------------------------------ ##
  6902. +## Report this to bug-autoconf@gnu.org. ##
  6903. +## ------------------------------------ ##
  6904. +_ASBOX
  6905. + ) |
  6906. + sed "s/^/$as_me: WARNING: /" >&2
  6907. + ;;
  6908. +esac
  6909. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  6910. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6911. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6912. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6913. +else
  6914. + eval "$as_ac_Header=$ac_header_preproc"
  6915. +fi
  6916. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6917. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6918. +
  6919. +fi
  6920. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6921. + cat >>confdefs.h <<_ACEOF
  6922. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6923. +_ACEOF
  6924. +
  6925. fi
  6926. +
  6927. done
  6928. - for ac_hdr in sys/mount.h sys/filsys.h sys/fs_types.h
  6929. +
  6930. +
  6931. +
  6932. +for ac_header in sys/mount.h sys/filsys.h sys/fs_types.h
  6933. do
  6934. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6935. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6936. -echo "configure:2563: checking for $ac_hdr" >&5
  6937. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6938. - echo $ac_n "(cached) $ac_c" 1>&6
  6939. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6940. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6941. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6942. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6943. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6944. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6945. +fi
  6946. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6947. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6948. +else
  6949. + # Is the header compilable?
  6950. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6951. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6952. +cat >conftest.$ac_ext <<_ACEOF
  6953. +#line $LINENO "configure"
  6954. +/* confdefs.h. */
  6955. +_ACEOF
  6956. +cat confdefs.h >>conftest.$ac_ext
  6957. +cat >>conftest.$ac_ext <<_ACEOF
  6958. +/* end confdefs.h. */
  6959. +$ac_includes_default
  6960. +#include <$ac_header>
  6961. +_ACEOF
  6962. +rm -f conftest.$ac_objext
  6963. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6964. + (eval $ac_compile) 2>&5
  6965. + ac_status=$?
  6966. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6967. + (exit $ac_status); } &&
  6968. + { ac_try='test -s conftest.$ac_objext'
  6969. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6970. + (eval $ac_try) 2>&5
  6971. + ac_status=$?
  6972. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6973. + (exit $ac_status); }; }; then
  6974. + ac_header_compiler=yes
  6975. +else
  6976. + echo "$as_me: failed program was:" >&5
  6977. +sed 's/^/| /' conftest.$ac_ext >&5
  6978. +
  6979. +ac_header_compiler=no
  6980. +fi
  6981. +rm -f conftest.$ac_objext conftest.$ac_ext
  6982. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6983. +echo "${ECHO_T}$ac_header_compiler" >&6
  6984. +
  6985. +# Is the header present?
  6986. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6987. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6988. +cat >conftest.$ac_ext <<_ACEOF
  6989. +#line $LINENO "configure"
  6990. +/* confdefs.h. */
  6991. +_ACEOF
  6992. +cat confdefs.h >>conftest.$ac_ext
  6993. +cat >>conftest.$ac_ext <<_ACEOF
  6994. +/* end confdefs.h. */
  6995. +#include <$ac_header>
  6996. +_ACEOF
  6997. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6998. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6999. + ac_status=$?
  7000. + grep -v '^ *+' conftest.er1 >conftest.err
  7001. + rm -f conftest.er1
  7002. + cat conftest.err >&5
  7003. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7004. + (exit $ac_status); } >/dev/null; then
  7005. + if test -s conftest.err; then
  7006. + ac_cpp_err=$ac_c_preproc_warn_flag
  7007. + else
  7008. + ac_cpp_err=
  7009. + fi
  7010. else
  7011. - cat > conftest.$ac_ext <<EOF
  7012. -#line 2568 "configure"
  7013. -#include "confdefs.h"
  7014. -#include <$ac_hdr>
  7015. -EOF
  7016. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7017. -{ (eval echo configure:2573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7018. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7019. -if test -z "$ac_err"; then
  7020. - rm -rf conftest*
  7021. - eval "ac_cv_header_$ac_safe=yes"
  7022. -else
  7023. - echo "$ac_err" >&5
  7024. - echo "configure: failed program was:" >&5
  7025. - cat conftest.$ac_ext >&5
  7026. - rm -rf conftest*
  7027. - eval "ac_cv_header_$ac_safe=no"
  7028. + ac_cpp_err=yes
  7029. fi
  7030. -rm -f conftest*
  7031. -fi
  7032. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7033. - echo "$ac_t""yes" 1>&6
  7034. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7035. - cat >> confdefs.h <<EOF
  7036. -#define $ac_tr_hdr 1
  7037. -EOF
  7038. -
  7039. +if test -z "$ac_cpp_err"; then
  7040. + ac_header_preproc=yes
  7041. +else
  7042. + echo "$as_me: failed program was:" >&5
  7043. +sed 's/^/| /' conftest.$ac_ext >&5
  7044. +
  7045. + ac_header_preproc=no
  7046. +fi
  7047. +rm -f conftest.err conftest.$ac_ext
  7048. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7049. +echo "${ECHO_T}$ac_header_preproc" >&6
  7050. +
  7051. +# So? What about this header?
  7052. +case $ac_header_compiler:$ac_header_preproc in
  7053. + yes:no )
  7054. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7055. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7056. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7057. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7058. + (
  7059. + cat <<\_ASBOX
  7060. +## ------------------------------------ ##
  7061. +## Report this to bug-autoconf@gnu.org. ##
  7062. +## ------------------------------------ ##
  7063. +_ASBOX
  7064. + ) |
  7065. + sed "s/^/$as_me: WARNING: /" >&2
  7066. + ;;
  7067. + no:yes )
  7068. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7069. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7070. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7071. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7072. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7073. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7074. + (
  7075. + cat <<\_ASBOX
  7076. +## ------------------------------------ ##
  7077. +## Report this to bug-autoconf@gnu.org. ##
  7078. +## ------------------------------------ ##
  7079. +_ASBOX
  7080. + ) |
  7081. + sed "s/^/$as_me: WARNING: /" >&2
  7082. + ;;
  7083. +esac
  7084. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  7085. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7086. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7087. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7088. else
  7089. - echo "$ac_t""no" 1>&6
  7090. + eval "$as_ac_Header=$ac_header_preproc"
  7091. +fi
  7092. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7093. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7094. +
  7095. +fi
  7096. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7097. + cat >>confdefs.h <<_ACEOF
  7098. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7099. +_ACEOF
  7100. +
  7101. fi
  7102. +
  7103. done
  7104. - for ac_func in getmntinfo
  7105. +
  7106. +for ac_func in getmntinfo
  7107. do
  7108. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7109. -echo "configure:2602: checking for $ac_func" >&5
  7110. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7111. - echo $ac_n "(cached) $ac_c" 1>&6
  7112. -else
  7113. - cat > conftest.$ac_ext <<EOF
  7114. -#line 2607 "configure"
  7115. -#include "confdefs.h"
  7116. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7117. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  7118. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7119. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  7120. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7121. +else
  7122. + cat >conftest.$ac_ext <<_ACEOF
  7123. +#line $LINENO "configure"
  7124. +/* confdefs.h. */
  7125. +_ACEOF
  7126. +cat confdefs.h >>conftest.$ac_ext
  7127. +cat >>conftest.$ac_ext <<_ACEOF
  7128. +/* end confdefs.h. */
  7129. /* System header to define __stub macros and hopefully few prototypes,
  7130. - which can conflict with char $ac_func(); below. */
  7131. -#include <assert.h>
  7132. + which can conflict with char $ac_func (); below.
  7133. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7134. + <limits.h> exists even on freestanding compilers. */
  7135. +#ifdef __STDC__
  7136. +# include <limits.h>
  7137. +#else
  7138. +# include <assert.h>
  7139. +#endif
  7140. /* Override any gcc2 internal prototype to avoid an error. */
  7141. +#ifdef __cplusplus
  7142. +extern "C"
  7143. +{
  7144. +#endif
  7145. /* We use char because int might match the return type of a gcc2
  7146. - builtin and then its argument prototype would still apply. */
  7147. -char $ac_func();
  7148. -
  7149. -int main() {
  7150. -
  7151. + builtin and then its argument prototype would still apply. */
  7152. +char $ac_func ();
  7153. /* The GNU C library defines this for functions which it implements
  7154. to always fail with ENOSYS. Some functions are actually named
  7155. something starting with __ and the normal name is an alias. */
  7156. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7157. choke me
  7158. #else
  7159. -$ac_func();
  7160. +char (*f) () = $ac_func;
  7161. +#endif
  7162. +#ifdef __cplusplus
  7163. +}
  7164. #endif
  7165. -; return 0; }
  7166. -EOF
  7167. -if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7168. - rm -rf conftest*
  7169. - eval "ac_cv_func_$ac_func=yes"
  7170. -else
  7171. - echo "configure: failed program was:" >&5
  7172. - cat conftest.$ac_ext >&5
  7173. - rm -rf conftest*
  7174. - eval "ac_cv_func_$ac_func=no"
  7175. -fi
  7176. -rm -f conftest*
  7177. -fi
  7178. +int
  7179. +main ()
  7180. +{
  7181. +return f != $ac_func;
  7182. + ;
  7183. + return 0;
  7184. +}
  7185. +_ACEOF
  7186. +rm -f conftest.$ac_objext conftest$ac_exeext
  7187. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7188. + (eval $ac_link) 2>&5
  7189. + ac_status=$?
  7190. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7191. + (exit $ac_status); } &&
  7192. + { ac_try='test -s conftest$ac_exeext'
  7193. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7194. + (eval $ac_try) 2>&5
  7195. + ac_status=$?
  7196. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7197. + (exit $ac_status); }; }; then
  7198. + eval "$as_ac_var=yes"
  7199. +else
  7200. + echo "$as_me: failed program was:" >&5
  7201. +sed 's/^/| /' conftest.$ac_ext >&5
  7202. +
  7203. +eval "$as_ac_var=no"
  7204. +fi
  7205. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7206. +fi
  7207. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7208. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7209. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  7210. + cat >>confdefs.h <<_ACEOF
  7211. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7212. +_ACEOF
  7213. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7214. - echo "$ac_t""yes" 1>&6
  7215. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7216. - cat >> confdefs.h <<EOF
  7217. -#define $ac_tr_func 1
  7218. -EOF
  7219. -
  7220. -else
  7221. - echo "$ac_t""no" 1>&6
  7222. fi
  7223. done
  7224. - echo "checking how to get filesystem space usage" 1>&6
  7225. -echo "configure:2656: checking how to get filesystem space usage" >&5
  7226. + { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
  7227. +echo "$as_me: checking how to get filesystem space usage..." >&6;}
  7228. space=no
  7229. # Here we'll compromise a little (and perform only the link test)
  7230. # since it seems there are no variants of the statvfs function.
  7231. if test $space = no; then
  7232. # SVR4
  7233. - for ac_func in statvfs
  7234. +
  7235. +for ac_func in statvfs
  7236. do
  7237. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7238. -echo "configure:2666: checking for $ac_func" >&5
  7239. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7240. - echo $ac_n "(cached) $ac_c" 1>&6
  7241. -else
  7242. - cat > conftest.$ac_ext <<EOF
  7243. -#line 2671 "configure"
  7244. -#include "confdefs.h"
  7245. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7246. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  7247. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7248. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  7249. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7250. +else
  7251. + cat >conftest.$ac_ext <<_ACEOF
  7252. +#line $LINENO "configure"
  7253. +/* confdefs.h. */
  7254. +_ACEOF
  7255. +cat confdefs.h >>conftest.$ac_ext
  7256. +cat >>conftest.$ac_ext <<_ACEOF
  7257. +/* end confdefs.h. */
  7258. /* System header to define __stub macros and hopefully few prototypes,
  7259. - which can conflict with char $ac_func(); below. */
  7260. -#include <assert.h>
  7261. + which can conflict with char $ac_func (); below.
  7262. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7263. + <limits.h> exists even on freestanding compilers. */
  7264. +#ifdef __STDC__
  7265. +# include <limits.h>
  7266. +#else
  7267. +# include <assert.h>
  7268. +#endif
  7269. /* Override any gcc2 internal prototype to avoid an error. */
  7270. +#ifdef __cplusplus
  7271. +extern "C"
  7272. +{
  7273. +#endif
  7274. /* We use char because int might match the return type of a gcc2
  7275. - builtin and then its argument prototype would still apply. */
  7276. -char $ac_func();
  7277. -
  7278. -int main() {
  7279. -
  7280. + builtin and then its argument prototype would still apply. */
  7281. +char $ac_func ();
  7282. /* The GNU C library defines this for functions which it implements
  7283. to always fail with ENOSYS. Some functions are actually named
  7284. something starting with __ and the normal name is an alias. */
  7285. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7286. choke me
  7287. #else
  7288. -$ac_func();
  7289. +char (*f) () = $ac_func;
  7290. +#endif
  7291. +#ifdef __cplusplus
  7292. +}
  7293. #endif
  7294. -; return 0; }
  7295. -EOF
  7296. -if { (eval echo configure:2694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7297. - rm -rf conftest*
  7298. - eval "ac_cv_func_$ac_func=yes"
  7299. -else
  7300. - echo "configure: failed program was:" >&5
  7301. - cat conftest.$ac_ext >&5
  7302. - rm -rf conftest*
  7303. - eval "ac_cv_func_$ac_func=no"
  7304. -fi
  7305. -rm -f conftest*
  7306. -fi
  7307. +int
  7308. +main ()
  7309. +{
  7310. +return f != $ac_func;
  7311. + ;
  7312. + return 0;
  7313. +}
  7314. +_ACEOF
  7315. +rm -f conftest.$ac_objext conftest$ac_exeext
  7316. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7317. + (eval $ac_link) 2>&5
  7318. + ac_status=$?
  7319. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7320. + (exit $ac_status); } &&
  7321. + { ac_try='test -s conftest$ac_exeext'
  7322. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7323. + (eval $ac_try) 2>&5
  7324. + ac_status=$?
  7325. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7326. + (exit $ac_status); }; }; then
  7327. + eval "$as_ac_var=yes"
  7328. +else
  7329. + echo "$as_me: failed program was:" >&5
  7330. +sed 's/^/| /' conftest.$ac_ext >&5
  7331. +
  7332. +eval "$as_ac_var=no"
  7333. +fi
  7334. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7335. +fi
  7336. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7337. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7338. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  7339. + cat >>confdefs.h <<_ACEOF
  7340. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7341. +_ACEOF
  7342. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7343. - echo "$ac_t""yes" 1>&6
  7344. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7345. - cat >> confdefs.h <<EOF
  7346. -#define $ac_tr_func 1
  7347. -EOF
  7348. -
  7349. -else
  7350. - echo "$ac_t""no" 1>&6
  7351. fi
  7352. done
  7353. if test $ac_cv_func_statvfs = yes; then
  7354. space=yes
  7355. - cat >> confdefs.h <<\EOF
  7356. + cat >>confdefs.h <<\_ACEOF
  7357. #define STAT_STATVFS 1
  7358. -EOF
  7359. +_ACEOF
  7360. fi
  7361. fi
  7362. if test $space = no; then
  7363. # DEC Alpha running OSF/1
  7364. - echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
  7365. -echo "configure:2730: checking for 3-argument statfs function (DEC OSF/1)" >&5
  7366. - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
  7367. - echo $ac_n "(cached) $ac_c" 1>&6
  7368. + echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
  7369. +echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
  7370. + if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
  7371. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7372. else
  7373. if test "$cross_compiling" = yes; then
  7374. fu_cv_sys_stat_statfs3_osf1=no
  7375. else
  7376. - cat > conftest.$ac_ext <<EOF
  7377. -#line 2738 "configure"
  7378. -#include "confdefs.h"
  7379. + cat >conftest.$ac_ext <<_ACEOF
  7380. +#line $LINENO "configure"
  7381. +/* confdefs.h. */
  7382. +_ACEOF
  7383. +cat confdefs.h >>conftest.$ac_ext
  7384. +cat >>conftest.$ac_ext <<_ACEOF
  7385. +/* end confdefs.h. */
  7386. #include <sys/param.h>
  7387. #include <sys/types.h>
  7388. @@ -2746,44 +5953,59 @@
  7389. fsd.f_fsize = 0;
  7390. exit (statfs (".", &fsd, sizeof (struct statfs)));
  7391. }
  7392. -EOF
  7393. -if { (eval echo configure:2751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7394. -then
  7395. +_ACEOF
  7396. +rm -f conftest$ac_exeext
  7397. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7398. + (eval $ac_link) 2>&5
  7399. + ac_status=$?
  7400. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7401. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7402. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7403. + (eval $ac_try) 2>&5
  7404. + ac_status=$?
  7405. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7406. + (exit $ac_status); }; }; then
  7407. fu_cv_sys_stat_statfs3_osf1=yes
  7408. else
  7409. - echo "configure: failed program was:" >&5
  7410. - cat conftest.$ac_ext >&5
  7411. - rm -fr conftest*
  7412. - fu_cv_sys_stat_statfs3_osf1=no
  7413. + echo "$as_me: program exited with status $ac_status" >&5
  7414. +echo "$as_me: failed program was:" >&5
  7415. +sed 's/^/| /' conftest.$ac_ext >&5
  7416. +
  7417. +( exit $ac_status )
  7418. +fu_cv_sys_stat_statfs3_osf1=no
  7419. fi
  7420. -rm -fr conftest*
  7421. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7422. fi
  7423. -
  7424. fi
  7425. - echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
  7426. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
  7427. +echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
  7428. if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
  7429. space=yes
  7430. - cat >> confdefs.h <<\EOF
  7431. + cat >>confdefs.h <<\_ACEOF
  7432. #define STAT_STATFS3_OSF1 1
  7433. -EOF
  7434. +_ACEOF
  7435. fi
  7436. fi
  7437. if test $space = no; then
  7438. # AIX
  7439. - echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
  7440. -echo "configure:2778: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
  7441. - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
  7442. - echo $ac_n "(cached) $ac_c" 1>&6
  7443. + echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
  7444. +echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
  7445. + if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
  7446. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7447. else
  7448. if test "$cross_compiling" = yes; then
  7449. fu_cv_sys_stat_statfs2_bsize=no
  7450. else
  7451. - cat > conftest.$ac_ext <<EOF
  7452. -#line 2786 "configure"
  7453. -#include "confdefs.h"
  7454. + cat >conftest.$ac_ext <<_ACEOF
  7455. +#line $LINENO "configure"
  7456. +/* confdefs.h. */
  7457. +_ACEOF
  7458. +cat confdefs.h >>conftest.$ac_ext
  7459. +cat >>conftest.$ac_ext <<_ACEOF
  7460. +/* end confdefs.h. */
  7461. #ifdef HAVE_SYS_PARAM_H
  7462. #include <sys/param.h>
  7463. @@ -2800,44 +6022,59 @@
  7464. fsd.f_bsize = 0;
  7465. exit (statfs (".", &fsd));
  7466. }
  7467. -EOF
  7468. -if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7469. -then
  7470. +_ACEOF
  7471. +rm -f conftest$ac_exeext
  7472. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7473. + (eval $ac_link) 2>&5
  7474. + ac_status=$?
  7475. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7476. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7477. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7478. + (eval $ac_try) 2>&5
  7479. + ac_status=$?
  7480. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7481. + (exit $ac_status); }; }; then
  7482. fu_cv_sys_stat_statfs2_bsize=yes
  7483. else
  7484. - echo "configure: failed program was:" >&5
  7485. - cat conftest.$ac_ext >&5
  7486. - rm -fr conftest*
  7487. - fu_cv_sys_stat_statfs2_bsize=no
  7488. + echo "$as_me: program exited with status $ac_status" >&5
  7489. +echo "$as_me: failed program was:" >&5
  7490. +sed 's/^/| /' conftest.$ac_ext >&5
  7491. +
  7492. +( exit $ac_status )
  7493. +fu_cv_sys_stat_statfs2_bsize=no
  7494. fi
  7495. -rm -fr conftest*
  7496. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7497. fi
  7498. -
  7499. fi
  7500. - echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
  7501. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
  7502. +echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
  7503. if test $fu_cv_sys_stat_statfs2_bsize = yes; then
  7504. space=yes
  7505. - cat >> confdefs.h <<\EOF
  7506. + cat >>confdefs.h <<\_ACEOF
  7507. #define STAT_STATFS2_BSIZE 1
  7508. -EOF
  7509. +_ACEOF
  7510. fi
  7511. fi
  7512. if test $space = no; then
  7513. # SVR3
  7514. - echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
  7515. -echo "configure:2832: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
  7516. - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
  7517. - echo $ac_n "(cached) $ac_c" 1>&6
  7518. + echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
  7519. +echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
  7520. + if test "${fu_cv_sys_stat_statfs4+set}" = set; then
  7521. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7522. else
  7523. if test "$cross_compiling" = yes; then
  7524. fu_cv_sys_stat_statfs4=no
  7525. else
  7526. - cat > conftest.$ac_ext <<EOF
  7527. -#line 2840 "configure"
  7528. -#include "confdefs.h"
  7529. + cat >conftest.$ac_ext <<_ACEOF
  7530. +#line $LINENO "configure"
  7531. +/* confdefs.h. */
  7532. +_ACEOF
  7533. +cat confdefs.h >>conftest.$ac_ext
  7534. +cat >>conftest.$ac_ext <<_ACEOF
  7535. +/* end confdefs.h. */
  7536. #include <sys/types.h>
  7537. #include <sys/statfs.h>
  7538. main ()
  7539. @@ -2845,43 +6082,58 @@
  7540. struct statfs fsd;
  7541. exit (statfs (".", &fsd, sizeof fsd, 0));
  7542. }
  7543. -EOF
  7544. -if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7545. -then
  7546. +_ACEOF
  7547. +rm -f conftest$ac_exeext
  7548. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7549. + (eval $ac_link) 2>&5
  7550. + ac_status=$?
  7551. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7552. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7553. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7554. + (eval $ac_try) 2>&5
  7555. + ac_status=$?
  7556. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7557. + (exit $ac_status); }; }; then
  7558. fu_cv_sys_stat_statfs4=yes
  7559. else
  7560. - echo "configure: failed program was:" >&5
  7561. - cat conftest.$ac_ext >&5
  7562. - rm -fr conftest*
  7563. - fu_cv_sys_stat_statfs4=no
  7564. + echo "$as_me: program exited with status $ac_status" >&5
  7565. +echo "$as_me: failed program was:" >&5
  7566. +sed 's/^/| /' conftest.$ac_ext >&5
  7567. +
  7568. +( exit $ac_status )
  7569. +fu_cv_sys_stat_statfs4=no
  7570. fi
  7571. -rm -fr conftest*
  7572. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7573. fi
  7574. -
  7575. fi
  7576. - echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
  7577. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
  7578. +echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
  7579. if test $fu_cv_sys_stat_statfs4 = yes; then
  7580. space=yes
  7581. - cat >> confdefs.h <<\EOF
  7582. + cat >>confdefs.h <<\_ACEOF
  7583. #define STAT_STATFS4 1
  7584. -EOF
  7585. +_ACEOF
  7586. fi
  7587. fi
  7588. if test $space = no; then
  7589. # 4.4BSD and NetBSD
  7590. - echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
  7591. -echo "configure:2876: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
  7592. - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
  7593. - echo $ac_n "(cached) $ac_c" 1>&6
  7594. + echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
  7595. +echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
  7596. + if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
  7597. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7598. else
  7599. if test "$cross_compiling" = yes; then
  7600. fu_cv_sys_stat_statfs2_fsize=no
  7601. else
  7602. - cat > conftest.$ac_ext <<EOF
  7603. -#line 2884 "configure"
  7604. -#include "confdefs.h"
  7605. + cat >conftest.$ac_ext <<_ACEOF
  7606. +#line $LINENO "configure"
  7607. +/* confdefs.h. */
  7608. +_ACEOF
  7609. +cat confdefs.h >>conftest.$ac_ext
  7610. +cat >>conftest.$ac_ext <<_ACEOF
  7611. +/* end confdefs.h. */
  7612. #include <sys/types.h>
  7613. #ifdef HAVE_SYS_PARAM_H
  7614. #include <sys/param.h>
  7615. @@ -2895,44 +6147,59 @@
  7616. fsd.f_fsize = 0;
  7617. exit (statfs (".", &fsd));
  7618. }
  7619. -EOF
  7620. -if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7621. -then
  7622. +_ACEOF
  7623. +rm -f conftest$ac_exeext
  7624. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7625. + (eval $ac_link) 2>&5
  7626. + ac_status=$?
  7627. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7628. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7629. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7630. + (eval $ac_try) 2>&5
  7631. + ac_status=$?
  7632. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7633. + (exit $ac_status); }; }; then
  7634. fu_cv_sys_stat_statfs2_fsize=yes
  7635. else
  7636. - echo "configure: failed program was:" >&5
  7637. - cat conftest.$ac_ext >&5
  7638. - rm -fr conftest*
  7639. - fu_cv_sys_stat_statfs2_fsize=no
  7640. + echo "$as_me: program exited with status $ac_status" >&5
  7641. +echo "$as_me: failed program was:" >&5
  7642. +sed 's/^/| /' conftest.$ac_ext >&5
  7643. +
  7644. +( exit $ac_status )
  7645. +fu_cv_sys_stat_statfs2_fsize=no
  7646. fi
  7647. -rm -fr conftest*
  7648. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7649. fi
  7650. -
  7651. fi
  7652. - echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
  7653. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
  7654. +echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
  7655. if test $fu_cv_sys_stat_statfs2_fsize = yes; then
  7656. space=yes
  7657. - cat >> confdefs.h <<\EOF
  7658. + cat >>confdefs.h <<\_ACEOF
  7659. #define STAT_STATFS2_FSIZE 1
  7660. -EOF
  7661. +_ACEOF
  7662. fi
  7663. fi
  7664. if test $space = no; then
  7665. # Ultrix
  7666. - echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
  7667. -echo "configure:2927: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
  7668. - if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
  7669. - echo $ac_n "(cached) $ac_c" 1>&6
  7670. + echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
  7671. +echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
  7672. + if test "${fu_cv_sys_stat_fs_data+set}" = set; then
  7673. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7674. else
  7675. if test "$cross_compiling" = yes; then
  7676. fu_cv_sys_stat_fs_data=no
  7677. else
  7678. - cat > conftest.$ac_ext <<EOF
  7679. -#line 2935 "configure"
  7680. -#include "confdefs.h"
  7681. + cat >conftest.$ac_ext <<_ACEOF
  7682. +#line $LINENO "configure"
  7683. +/* confdefs.h. */
  7684. +_ACEOF
  7685. +cat confdefs.h >>conftest.$ac_ext
  7686. +cat >>conftest.$ac_ext <<_ACEOF
  7687. +/* end confdefs.h. */
  7688. #include <sys/types.h>
  7689. #ifdef HAVE_SYS_PARAM_H
  7690. @@ -2951,53 +6218,63 @@
  7691. 0 for not mounted, -1 for failure. */
  7692. exit (statfs (".", &fsd) != 1);
  7693. }
  7694. -EOF
  7695. -if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7696. -then
  7697. +_ACEOF
  7698. +rm -f conftest$ac_exeext
  7699. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7700. + (eval $ac_link) 2>&5
  7701. + ac_status=$?
  7702. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7703. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7704. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7705. + (eval $ac_try) 2>&5
  7706. + ac_status=$?
  7707. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. + (exit $ac_status); }; }; then
  7709. fu_cv_sys_stat_fs_data=yes
  7710. else
  7711. - echo "configure: failed program was:" >&5
  7712. - cat conftest.$ac_ext >&5
  7713. - rm -fr conftest*
  7714. - fu_cv_sys_stat_fs_data=no
  7715. + echo "$as_me: program exited with status $ac_status" >&5
  7716. +echo "$as_me: failed program was:" >&5
  7717. +sed 's/^/| /' conftest.$ac_ext >&5
  7718. +
  7719. +( exit $ac_status )
  7720. +fu_cv_sys_stat_fs_data=no
  7721. fi
  7722. -rm -fr conftest*
  7723. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7724. fi
  7725. -
  7726. fi
  7727. - echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
  7728. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
  7729. +echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
  7730. if test $fu_cv_sys_stat_fs_data = yes; then
  7731. space=yes
  7732. - cat >> confdefs.h <<\EOF
  7733. + cat >>confdefs.h <<\_ACEOF
  7734. #define STAT_STATFS2_FS_DATA 1
  7735. -EOF
  7736. +_ACEOF
  7737. fi
  7738. fi
  7739. -
  7740. +
  7741. # Check whether --enable-stat-nfs or --disable-stat-nfs was given.
  7742. if test "${enable_stat_nfs+set}" = set; then
  7743. enableval="$enable_stat_nfs"
  7744. - cat >> confdefs.h <<\EOF
  7745. + cat >>confdefs.h <<\_ACEOF
  7746. #define STAT_NFS 1
  7747. -EOF
  7748. +_ACEOF
  7749. -fi
  7750. -
  7751. +fi;
  7752. # Check whether --enable-stat-smbfs or --disable-stat-smbfs was given.
  7753. if test "${enable_stat_smbfs+set}" = set; then
  7754. enableval="$enable_stat_smbfs"
  7755. - cat >> confdefs.h <<\EOF
  7756. + cat >>confdefs.h <<\_ACEOF
  7757. #define STAT_SMBFS 1
  7758. -EOF
  7759. +_ACEOF
  7760. -fi
  7761. +fi;
  7762. @@ -3008,16 +6285,16 @@
  7763. else
  7764. LCDPORT="13666"
  7765. -fi
  7766. -
  7767. -cat >> confdefs.h <<EOF
  7768. +fi;
  7769. +cat >>confdefs.h <<_ACEOF
  7770. #define LCDPORT $LCDPORT
  7771. -EOF
  7772. +_ACEOF
  7773. -cat >> confdefs.h <<EOF
  7774. +cat >>confdefs.h <<_ACEOF
  7775. #define PROTOCOL_VERSION "0.3"
  7776. -EOF
  7777. +_ACEOF
  7778. +
  7779. @@ -3028,11 +6305,11 @@
  7780. else
  7781. LOAD_MAX=1.3
  7782. -fi
  7783. -
  7784. -cat >> confdefs.h <<EOF
  7785. +fi;
  7786. +cat >>confdefs.h <<_ACEOF
  7787. #define LOAD_MAX $LOAD_MAX
  7788. -EOF
  7789. +_ACEOF
  7790. +
  7791. # Check whether --with-loadmin or --without-loadmin was given.
  7792. @@ -3042,16 +6319,15 @@
  7793. else
  7794. LOAD_MIN=0.05
  7795. -fi
  7796. -
  7797. -cat >> confdefs.h <<EOF
  7798. +fi;
  7799. +cat >>confdefs.h <<_ACEOF
  7800. #define LOAD_MIN $LOAD_MIN
  7801. -EOF
  7802. +_ACEOF
  7803. -echo $ac_n "checking for which drivers to compile""... $ac_c" 1>&6
  7804. -echo "configure:3055: checking for which drivers to compile" >&5
  7805. +echo "$as_me:$LINENO: checking for which drivers to compile" >&5
  7806. +echo $ECHO_N "checking for which drivers to compile... $ECHO_C" >&6
  7807. # Check whether --enable-drivers or --disable-drivers was given.
  7808. if test "${enable_drivers+set}" = set; then
  7809. @@ -3059,252 +6335,329 @@
  7810. drivers="$enableval"
  7811. else
  7812. drivers=mtxorb,cfontz,curses,text,lb216,bayrad,glk
  7813. -fi
  7814. -
  7815. +fi;
  7816. if test "$drivers" = "all"; then
  7817. drivers=mtxorb,cfontz,curses,text,lb216,hd44780,joy,irman,lircin,bayrad,glk
  7818. - echo "$ac_t""all" 1>&6
  7819. + echo "$as_me:$LINENO: result: all" >&5
  7820. +echo "${ECHO_T}all" >&6
  7821. fi
  7822. drivers=`echo $drivers | sed 's/,/ /g'`
  7823. - echo "$ac_t""$drivers" 1>&6
  7824. + echo "$as_me:$LINENO: result: $drivers" >&5
  7825. +echo "${ECHO_T}$drivers" >&6
  7826. for driver in $drivers
  7827. do
  7828. case "$driver" in
  7829. mtxorb)
  7830. DRIVERS="$DRIVERS MtxOrb.o"
  7831. - cat >> confdefs.h <<\EOF
  7832. + cat >>confdefs.h <<\_ACEOF
  7833. #define MTXORB_DRV 1
  7834. -EOF
  7835. +_ACEOF
  7836. ;;
  7837. glk)
  7838. DRIVERS="$DRIVERS glk.o glkproto.o"
  7839. - cat >> confdefs.h <<\EOF
  7840. + cat >>confdefs.h <<\_ACEOF
  7841. #define GLK_DRV 1
  7842. -EOF
  7843. +_ACEOF
  7844. ;;
  7845. bayrad)
  7846. DRIVERS="$DRIVERS bayrad.o"
  7847. - cat >> confdefs.h <<\EOF
  7848. + cat >>confdefs.h <<\_ACEOF
  7849. #define BAYRAD_DRV 1
  7850. -EOF
  7851. +_ACEOF
  7852. ;;
  7853. cfontz)
  7854. DRIVERS="$DRIVERS CFontz.o"
  7855. - cat >> confdefs.h <<\EOF
  7856. + cat >>confdefs.h <<\_ACEOF
  7857. #define CFONTZ_DRV 1
  7858. -EOF
  7859. +_ACEOF
  7860. ;;
  7861. - sli)
  7862. + sli)
  7863. DRIVERS="$DRIVERS wirz-sli.o"
  7864. - cat >> confdefs.h <<\EOF
  7865. + cat >>confdefs.h <<\_ACEOF
  7866. #define SLI_DRV 1
  7867. -EOF
  7868. +_ACEOF
  7869. ;;
  7870. curses)
  7871. - echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
  7872. -echo "configure:3113: checking for main in -lncurses" >&5
  7873. -ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
  7874. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7875. - echo $ac_n "(cached) $ac_c" 1>&6
  7876. + echo "$as_me:$LINENO: checking for main in -lncurses" >&5
  7877. +echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
  7878. +if test "${ac_cv_lib_ncurses_main+set}" = set; then
  7879. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7880. else
  7881. - ac_save_LIBS="$LIBS"
  7882. + ac_check_lib_save_LIBS=$LIBS
  7883. LIBS="-lncurses $LIBS"
  7884. -cat > conftest.$ac_ext <<EOF
  7885. -#line 3121 "configure"
  7886. -#include "confdefs.h"
  7887. -
  7888. -int main() {
  7889. -main()
  7890. -; return 0; }
  7891. -EOF
  7892. -if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7893. - rm -rf conftest*
  7894. - eval "ac_cv_lib_$ac_lib_var=yes"
  7895. -else
  7896. - echo "configure: failed program was:" >&5
  7897. - cat conftest.$ac_ext >&5
  7898. - rm -rf conftest*
  7899. - eval "ac_cv_lib_$ac_lib_var=no"
  7900. -fi
  7901. -rm -f conftest*
  7902. -LIBS="$ac_save_LIBS"
  7903. +cat >conftest.$ac_ext <<_ACEOF
  7904. +#line $LINENO "configure"
  7905. +/* confdefs.h. */
  7906. +_ACEOF
  7907. +cat confdefs.h >>conftest.$ac_ext
  7908. +cat >>conftest.$ac_ext <<_ACEOF
  7909. +/* end confdefs.h. */
  7910. -fi
  7911. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7912. - echo "$ac_t""yes" 1>&6
  7913. +
  7914. +int
  7915. +main ()
  7916. +{
  7917. +main ();
  7918. + ;
  7919. + return 0;
  7920. +}
  7921. +_ACEOF
  7922. +rm -f conftest.$ac_objext conftest$ac_exeext
  7923. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7924. + (eval $ac_link) 2>&5
  7925. + ac_status=$?
  7926. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7927. + (exit $ac_status); } &&
  7928. + { ac_try='test -s conftest$ac_exeext'
  7929. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7930. + (eval $ac_try) 2>&5
  7931. + ac_status=$?
  7932. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7933. + (exit $ac_status); }; }; then
  7934. + ac_cv_lib_ncurses_main=yes
  7935. +else
  7936. + echo "$as_me: failed program was:" >&5
  7937. +sed 's/^/| /' conftest.$ac_ext >&5
  7938. +
  7939. +ac_cv_lib_ncurses_main=no
  7940. +fi
  7941. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7942. +LIBS=$ac_check_lib_save_LIBS
  7943. +fi
  7944. +echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
  7945. +echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
  7946. +if test $ac_cv_lib_ncurses_main = yes; then
  7947. LIBCURSES="-lncurses"
  7948. else
  7949. - echo "$ac_t""no" 1>&6
  7950. -echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
  7951. -echo "configure:3147: checking for main in -lcurses" >&5
  7952. -ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
  7953. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7954. - echo $ac_n "(cached) $ac_c" 1>&6
  7955. + echo "$as_me:$LINENO: checking for main in -lcurses" >&5
  7956. +echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
  7957. +if test "${ac_cv_lib_curses_main+set}" = set; then
  7958. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7959. else
  7960. - ac_save_LIBS="$LIBS"
  7961. + ac_check_lib_save_LIBS=$LIBS
  7962. LIBS="-lcurses $LIBS"
  7963. -cat > conftest.$ac_ext <<EOF
  7964. -#line 3155 "configure"
  7965. -#include "confdefs.h"
  7966. -
  7967. -int main() {
  7968. -main()
  7969. -; return 0; }
  7970. -EOF
  7971. -if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7972. - rm -rf conftest*
  7973. - eval "ac_cv_lib_$ac_lib_var=yes"
  7974. -else
  7975. - echo "configure: failed program was:" >&5
  7976. - cat conftest.$ac_ext >&5
  7977. - rm -rf conftest*
  7978. - eval "ac_cv_lib_$ac_lib_var=no"
  7979. -fi
  7980. -rm -f conftest*
  7981. -LIBS="$ac_save_LIBS"
  7982. +cat >conftest.$ac_ext <<_ACEOF
  7983. +#line $LINENO "configure"
  7984. +/* confdefs.h. */
  7985. +_ACEOF
  7986. +cat confdefs.h >>conftest.$ac_ext
  7987. +cat >>conftest.$ac_ext <<_ACEOF
  7988. +/* end confdefs.h. */
  7989. -fi
  7990. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7991. - echo "$ac_t""yes" 1>&6
  7992. +
  7993. +int
  7994. +main ()
  7995. +{
  7996. +main ();
  7997. + ;
  7998. + return 0;
  7999. +}
  8000. +_ACEOF
  8001. +rm -f conftest.$ac_objext conftest$ac_exeext
  8002. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8003. + (eval $ac_link) 2>&5
  8004. + ac_status=$?
  8005. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8006. + (exit $ac_status); } &&
  8007. + { ac_try='test -s conftest$ac_exeext'
  8008. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8009. + (eval $ac_try) 2>&5
  8010. + ac_status=$?
  8011. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8012. + (exit $ac_status); }; }; then
  8013. + ac_cv_lib_curses_main=yes
  8014. +else
  8015. + echo "$as_me: failed program was:" >&5
  8016. +sed 's/^/| /' conftest.$ac_ext >&5
  8017. +
  8018. +ac_cv_lib_curses_main=no
  8019. +fi
  8020. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8021. +LIBS=$ac_check_lib_save_LIBS
  8022. +fi
  8023. +echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
  8024. +echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
  8025. +if test $ac_cv_lib_curses_main = yes; then
  8026. LIBCURSES="-lcurses"
  8027. else
  8028. - echo "$ac_t""no" 1>&6
  8029. -{ echo "configure: error: The curses driver needs the curses library" 1>&2; exit 1; }
  8030. + { { echo "$as_me:$LINENO: error: The curses driver needs the curses library" >&5
  8031. +echo "$as_me: error: The curses driver needs the curses library" >&2;}
  8032. + { (exit 1); exit 1; }; }
  8033. fi
  8034. fi
  8035. DRIVERS="$DRIVERS curses_drv.o"
  8036. - cat >> confdefs.h <<\EOF
  8037. + cat >>confdefs.h <<\_ACEOF
  8038. #define CURSES_DRV 1
  8039. -EOF
  8040. +_ACEOF
  8041. ;;
  8042. text)
  8043. DRIVERS="$DRIVERS text.o"
  8044. - cat >> confdefs.h <<\EOF
  8045. + cat >>confdefs.h <<\_ACEOF
  8046. #define TEXT_DRV 1
  8047. -EOF
  8048. +_ACEOF
  8049. ;;
  8050. lb216)
  8051. DRIVERS="$DRIVERS lb216.o"
  8052. - cat >> confdefs.h <<\EOF
  8053. + cat >>confdefs.h <<\_ACEOF
  8054. #define LB216_DRV 1
  8055. -EOF
  8056. +_ACEOF
  8057. ;;
  8058. hd44780)
  8059. DRIVERS="$DRIVERS hd44780.o hd44780-4bit.o hd44780-ext8bit.o lcd_sem.o hd44780-serialLpt.o hd44780-winamp.o"
  8060. - cat >> confdefs.h <<\EOF
  8061. + cat >>confdefs.h <<\_ACEOF
  8062. #define HD44780_DRV 1
  8063. -EOF
  8064. +_ACEOF
  8065. ;;
  8066. - joy)
  8067. + joy)
  8068. DRIVERS="$DRIVERS joy.o"
  8069. - cat >> confdefs.h <<\EOF
  8070. + cat >>confdefs.h <<\_ACEOF
  8071. #define JOY_DRV 1
  8072. -EOF
  8073. +_ACEOF
  8074. ;;
  8075. irman)
  8076. - echo $ac_n "checking for main in -lirman""... $ac_c" 1>&6
  8077. -echo "configure:3221: checking for main in -lirman" >&5
  8078. -ac_lib_var=`echo irman'_'main | sed 'y%./+-%__p_%'`
  8079. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8080. - echo $ac_n "(cached) $ac_c" 1>&6
  8081. + echo "$as_me:$LINENO: checking for main in -lirman" >&5
  8082. +echo $ECHO_N "checking for main in -lirman... $ECHO_C" >&6
  8083. +if test "${ac_cv_lib_irman_main+set}" = set; then
  8084. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8085. else
  8086. - ac_save_LIBS="$LIBS"
  8087. + ac_check_lib_save_LIBS=$LIBS
  8088. LIBS="-lirman $LIBS"
  8089. -cat > conftest.$ac_ext <<EOF
  8090. -#line 3229 "configure"
  8091. -#include "confdefs.h"
  8092. -
  8093. -int main() {
  8094. -main()
  8095. -; return 0; }
  8096. -EOF
  8097. -if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8098. - rm -rf conftest*
  8099. - eval "ac_cv_lib_$ac_lib_var=yes"
  8100. -else
  8101. - echo "configure: failed program was:" >&5
  8102. - cat conftest.$ac_ext >&5
  8103. - rm -rf conftest*
  8104. - eval "ac_cv_lib_$ac_lib_var=no"
  8105. -fi
  8106. -rm -f conftest*
  8107. -LIBS="$ac_save_LIBS"
  8108. +cat >conftest.$ac_ext <<_ACEOF
  8109. +#line $LINENO "configure"
  8110. +/* confdefs.h. */
  8111. +_ACEOF
  8112. +cat confdefs.h >>conftest.$ac_ext
  8113. +cat >>conftest.$ac_ext <<_ACEOF
  8114. +/* end confdefs.h. */
  8115. -fi
  8116. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8117. - echo "$ac_t""yes" 1>&6
  8118. +
  8119. +int
  8120. +main ()
  8121. +{
  8122. +main ();
  8123. + ;
  8124. + return 0;
  8125. +}
  8126. +_ACEOF
  8127. +rm -f conftest.$ac_objext conftest$ac_exeext
  8128. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8129. + (eval $ac_link) 2>&5
  8130. + ac_status=$?
  8131. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8132. + (exit $ac_status); } &&
  8133. + { ac_try='test -s conftest$ac_exeext'
  8134. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8135. + (eval $ac_try) 2>&5
  8136. + ac_status=$?
  8137. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8138. + (exit $ac_status); }; }; then
  8139. + ac_cv_lib_irman_main=yes
  8140. +else
  8141. + echo "$as_me: failed program was:" >&5
  8142. +sed 's/^/| /' conftest.$ac_ext >&5
  8143. +
  8144. +ac_cv_lib_irman_main=no
  8145. +fi
  8146. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8147. +LIBS=$ac_check_lib_save_LIBS
  8148. +fi
  8149. +echo "$as_me:$LINENO: result: $ac_cv_lib_irman_main" >&5
  8150. +echo "${ECHO_T}$ac_cv_lib_irman_main" >&6
  8151. +if test $ac_cv_lib_irman_main = yes; then
  8152. LIBIRMAN="-lirman"
  8153. else
  8154. - echo "$ac_t""no" 1>&6
  8155. -{ echo "configure: error: The irman driver needs the irman library" 1>&2; exit 1; }
  8156. + { { echo "$as_me:$LINENO: error: The irman driver needs the irman library" >&5
  8157. +echo "$as_me: error: The irman driver needs the irman library" >&2;}
  8158. + { (exit 1); exit 1; }; }
  8159. fi
  8160. DRIVERS="$DRIVERS irmanin.o"
  8161. - cat >> confdefs.h <<\EOF
  8162. + cat >>confdefs.h <<\_ACEOF
  8163. #define IRMANIN_DRV 1
  8164. -EOF
  8165. +_ACEOF
  8166. ;;
  8167. lircin)
  8168. - echo $ac_n "checking for main in -llirc_client""... $ac_c" 1>&6
  8169. -echo "configure:3265: checking for main in -llirc_client" >&5
  8170. -ac_lib_var=`echo lirc_client'_'main | sed 'y%./+-%__p_%'`
  8171. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8172. - echo $ac_n "(cached) $ac_c" 1>&6
  8173. + echo "$as_me:$LINENO: checking for main in -llirc_client" >&5
  8174. +echo $ECHO_N "checking for main in -llirc_client... $ECHO_C" >&6
  8175. +if test "${ac_cv_lib_lirc_client_main+set}" = set; then
  8176. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8177. else
  8178. - ac_save_LIBS="$LIBS"
  8179. + ac_check_lib_save_LIBS=$LIBS
  8180. LIBS="-llirc_client $LIBS"
  8181. -cat > conftest.$ac_ext <<EOF
  8182. -#line 3273 "configure"
  8183. -#include "confdefs.h"
  8184. -
  8185. -int main() {
  8186. -main()
  8187. -; return 0; }
  8188. -EOF
  8189. -if { (eval echo configure:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8190. - rm -rf conftest*
  8191. - eval "ac_cv_lib_$ac_lib_var=yes"
  8192. -else
  8193. - echo "configure: failed program was:" >&5
  8194. - cat conftest.$ac_ext >&5
  8195. - rm -rf conftest*
  8196. - eval "ac_cv_lib_$ac_lib_var=no"
  8197. -fi
  8198. -rm -f conftest*
  8199. -LIBS="$ac_save_LIBS"
  8200. +cat >conftest.$ac_ext <<_ACEOF
  8201. +#line $LINENO "configure"
  8202. +/* confdefs.h. */
  8203. +_ACEOF
  8204. +cat confdefs.h >>conftest.$ac_ext
  8205. +cat >>conftest.$ac_ext <<_ACEOF
  8206. +/* end confdefs.h. */
  8207. -fi
  8208. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8209. - echo "$ac_t""yes" 1>&6
  8210. +
  8211. +int
  8212. +main ()
  8213. +{
  8214. +main ();
  8215. + ;
  8216. + return 0;
  8217. +}
  8218. +_ACEOF
  8219. +rm -f conftest.$ac_objext conftest$ac_exeext
  8220. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8221. + (eval $ac_link) 2>&5
  8222. + ac_status=$?
  8223. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8224. + (exit $ac_status); } &&
  8225. + { ac_try='test -s conftest$ac_exeext'
  8226. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8227. + (eval $ac_try) 2>&5
  8228. + ac_status=$?
  8229. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8230. + (exit $ac_status); }; }; then
  8231. + ac_cv_lib_lirc_client_main=yes
  8232. +else
  8233. + echo "$as_me: failed program was:" >&5
  8234. +sed 's/^/| /' conftest.$ac_ext >&5
  8235. +
  8236. +ac_cv_lib_lirc_client_main=no
  8237. +fi
  8238. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8239. +LIBS=$ac_check_lib_save_LIBS
  8240. +fi
  8241. +echo "$as_me:$LINENO: result: $ac_cv_lib_lirc_client_main" >&5
  8242. +echo "${ECHO_T}$ac_cv_lib_lirc_client_main" >&6
  8243. +if test $ac_cv_lib_lirc_client_main = yes; then
  8244. LIBLIRC_CLIENT="-llirc_client"
  8245. else
  8246. - echo "$ac_t""no" 1>&6
  8247. -{ echo "configure: error: The lirc driver needs the lirc client library" 1>&2; exit 1; }
  8248. + { { echo "$as_me:$LINENO: error: The lirc driver needs the lirc client library" >&5
  8249. +echo "$as_me: error: The lirc driver needs the lirc client library" >&2;}
  8250. + { (exit 1); exit 1; }; }
  8251. fi
  8252. DRIVERS="$DRIVERS lircin.o"
  8253. - cat >> confdefs.h <<\EOF
  8254. + cat >>confdefs.h <<\_ACEOF
  8255. #define LIRCIN_DRV 1
  8256. -EOF
  8257. +_ACEOF
  8258. ;;
  8259. - *)
  8260. - { echo "configure: error: Unknown driver $driver" 1>&2; exit 1; }
  8261. + *)
  8262. + { { echo "$as_me:$LINENO: error: Unknown driver $driver" >&5
  8263. +echo "$as_me: error: Unknown driver $driver" >&2;}
  8264. + { (exit 1); exit 1; }; }
  8265. ;;
  8266. esac
  8267. done
  8268. @@ -3315,396 +6668,1187 @@
  8269. -trap '' 1 2 15
  8270. -cat > confcache <<\EOF
  8271. + ac_config_files="$ac_config_files Makefile shared/Makefile server/Makefile server/drivers/Makefile clients/Makefile clients/lcdproc/Makefile clients/examples/Makefile clients/headlines/Makefile docs/Makefile"
  8272. +cat >confcache <<\_ACEOF
  8273. # This file is a shell script that caches the results of configure
  8274. # tests run on this system so they can be shared between configure
  8275. -# scripts and configure runs. It is not useful on other systems.
  8276. -# If it contains results you don't want to keep, you may remove or edit it.
  8277. +# scripts and configure runs, see configure's option --config-cache.
  8278. +# It is not useful on other systems. If it contains results you don't
  8279. +# want to keep, you may remove or edit it.
  8280. #
  8281. -# By default, configure uses ./config.cache as the cache file,
  8282. -# creating it if it does not exist already. You can give configure
  8283. -# the --cache-file=FILE option to use a different cache file; that is
  8284. -# what configure does when it calls configure scripts in
  8285. -# subdirectories, so they share the cache.
  8286. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  8287. -# config.status only pays attention to the cache file if you give it the
  8288. -# --recheck option to rerun configure.
  8289. +# config.status only pays attention to the cache file if you give it
  8290. +# the --recheck option to rerun configure.
  8291. #
  8292. -EOF
  8293. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  8294. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  8295. +# following values.
  8296. +
  8297. +_ACEOF
  8298. +
  8299. # The following way of writing the cache mishandles newlines in values,
  8300. # but we know of no workaround that is simple, portable, and efficient.
  8301. # So, don't put newlines in cache variables' values.
  8302. # Ultrix sh set writes to stderr and can't be redirected directly,
  8303. # and sets the high bit in the cache file unless we assign to the vars.
  8304. -(set) 2>&1 |
  8305. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8306. - *ac_space=\ *)
  8307. - # `set' does not quote correctly, so add quotes (double-quote substitution
  8308. - # turns \\\\ into \\, and sed turns \\ into \).
  8309. - sed -n \
  8310. - -e "s/'/'\\\\''/g" \
  8311. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  8312. - ;;
  8313. - *)
  8314. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  8315. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  8316. - ;;
  8317. - esac >> confcache
  8318. -if cmp -s $cache_file confcache; then
  8319. - :
  8320. -else
  8321. +{
  8322. + (set) 2>&1 |
  8323. + case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8324. + *ac_space=\ *)
  8325. + # `set' does not quote correctly, so add quotes (double-quote
  8326. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  8327. + sed -n \
  8328. + "s/'/'\\\\''/g;
  8329. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8330. + ;;
  8331. + *)
  8332. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  8333. + sed -n \
  8334. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8335. + ;;
  8336. + esac;
  8337. +} |
  8338. + sed '
  8339. + t clear
  8340. + : clear
  8341. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8342. + t end
  8343. + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8344. + : end' >>confcache
  8345. +if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8346. if test -w $cache_file; then
  8347. - echo "updating cache $cache_file"
  8348. - cat confcache > $cache_file
  8349. + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  8350. + cat confcache >$cache_file
  8351. else
  8352. echo "not updating unwritable cache $cache_file"
  8353. fi
  8354. fi
  8355. rm -f confcache
  8356. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  8357. -
  8358. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8359. # Let make expand exec_prefix.
  8360. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8361. -# Any assignment to VPATH causes Sun make to only execute
  8362. -# the first set of double-colon rules, so remove it if not needed.
  8363. -# If there is a colon in the path, we need to keep it.
  8364. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  8365. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8366. +# trailing colons and then remove the whole line if VPATH becomes empty
  8367. +# (actually we leave an empty line to preserve line numbers).
  8368. if test "x$srcdir" = x.; then
  8369. - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  8370. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  8371. +s/:*\$(srcdir):*/:/;
  8372. +s/:*\${srcdir}:*/:/;
  8373. +s/:*@srcdir@:*/:/;
  8374. +s/^\([^=]*=[ ]*\):*/\1/;
  8375. +s/:*$//;
  8376. +s/^[^=]*=[ ]*$//;
  8377. +}'
  8378. fi
  8379. -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  8380. -
  8381. DEFS=-DHAVE_CONFIG_H
  8382. -# Without the "./", some shells look in PATH for config.status.
  8383. -: ${CONFIG_STATUS=./config.status}
  8384. +ac_libobjs=
  8385. +ac_ltlibobjs=
  8386. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8387. + # 1. Remove the extension, and $U if already installed.
  8388. + ac_i=`echo "$ac_i" |
  8389. + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  8390. + # 2. Add them.
  8391. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  8392. + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  8393. +done
  8394. +LIBOBJS=$ac_libobjs
  8395. +
  8396. +LTLIBOBJS=$ac_ltlibobjs
  8397. -echo creating $CONFIG_STATUS
  8398. -rm -f $CONFIG_STATUS
  8399. -cat > $CONFIG_STATUS <<EOF
  8400. -#! /bin/sh
  8401. -# Generated automatically by configure.
  8402. +
  8403. +
  8404. +: ${CONFIG_STATUS=./config.status}
  8405. +ac_clean_files_save=$ac_clean_files
  8406. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8407. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8408. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8409. +cat >$CONFIG_STATUS <<_ACEOF
  8410. +#! $SHELL
  8411. +# Generated by $as_me.
  8412. # Run this file to recreate the current configuration.
  8413. -# This directory was configured as follows,
  8414. -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8415. -#
  8416. -# $0 $ac_configure_args
  8417. -#
  8418. # Compiler output produced by configure, useful for debugging
  8419. -# configure, is in ./config.log if it exists.
  8420. +# configure, is in config.log if it exists.
  8421. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  8422. -for ac_option
  8423. +debug=false
  8424. +ac_cs_recheck=false
  8425. +ac_cs_silent=false
  8426. +SHELL=\${CONFIG_SHELL-$SHELL}
  8427. +_ACEOF
  8428. +
  8429. +cat >>$CONFIG_STATUS <<\_ACEOF
  8430. +## --------------------- ##
  8431. +## M4sh Initialization. ##
  8432. +## --------------------- ##
  8433. +
  8434. +# Be Bourne compatible
  8435. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8436. + emulate sh
  8437. + NULLCMD=:
  8438. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8439. + # is contrary to our usage. Disable this feature.
  8440. + alias -g '${1+"$@"}'='"$@"'
  8441. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8442. + set -o posix
  8443. +fi
  8444. +
  8445. +# Support unset when possible.
  8446. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  8447. + as_unset=unset
  8448. +else
  8449. + as_unset=false
  8450. +fi
  8451. +
  8452. +
  8453. +# Work around bugs in pre-3.0 UWIN ksh.
  8454. +$as_unset ENV MAIL MAILPATH
  8455. +PS1='$ '
  8456. +PS2='> '
  8457. +PS4='+ '
  8458. +
  8459. +# NLS nuisances.
  8460. +for as_var in \
  8461. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8462. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8463. + LC_TELEPHONE LC_TIME
  8464. +do
  8465. + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8466. + eval $as_var=C; export $as_var
  8467. + else
  8468. + $as_unset $as_var
  8469. + fi
  8470. +done
  8471. +
  8472. +# Required to use basename.
  8473. +if expr a : '\(a\)' >/dev/null 2>&1; then
  8474. + as_expr=expr
  8475. +else
  8476. + as_expr=false
  8477. +fi
  8478. +
  8479. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  8480. + as_basename=basename
  8481. +else
  8482. + as_basename=false
  8483. +fi
  8484. +
  8485. +
  8486. +# Name of the executable.
  8487. +as_me=`$as_basename "$0" ||
  8488. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8489. + X"$0" : 'X\(//\)$' \| \
  8490. + X"$0" : 'X\(/\)$' \| \
  8491. + . : '\(.\)' 2>/dev/null ||
  8492. +echo X/"$0" |
  8493. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8494. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  8495. + /^X\/\(\/\).*/{ s//\1/; q; }
  8496. + s/.*/./; q'`
  8497. +
  8498. +
  8499. +# PATH needs CR, and LINENO needs CR and PATH.
  8500. +# Avoid depending upon Character Ranges.
  8501. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8502. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8503. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8504. +as_cr_digits='0123456789'
  8505. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  8506. +
  8507. +# The user is always right.
  8508. +if test "${PATH_SEPARATOR+set}" != set; then
  8509. + echo "#! /bin/sh" >conf$$.sh
  8510. + echo "exit 0" >>conf$$.sh
  8511. + chmod +x conf$$.sh
  8512. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8513. + PATH_SEPARATOR=';'
  8514. + else
  8515. + PATH_SEPARATOR=:
  8516. + fi
  8517. + rm -f conf$$.sh
  8518. +fi
  8519. +
  8520. +
  8521. + as_lineno_1=$LINENO
  8522. + as_lineno_2=$LINENO
  8523. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8524. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8525. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  8526. + # Find who we are. Look in the path if we contain no path at all
  8527. + # relative or not.
  8528. + case $0 in
  8529. + *[\\/]* ) as_myself=$0 ;;
  8530. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8531. +for as_dir in $PATH
  8532. +do
  8533. + IFS=$as_save_IFS
  8534. + test -z "$as_dir" && as_dir=.
  8535. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8536. +done
  8537. +
  8538. + ;;
  8539. + esac
  8540. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  8541. + # in which case we are not to be found in the path.
  8542. + if test "x$as_myself" = x; then
  8543. + as_myself=$0
  8544. + fi
  8545. + if test ! -f "$as_myself"; then
  8546. + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  8547. +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  8548. + { (exit 1); exit 1; }; }
  8549. + fi
  8550. + case $CONFIG_SHELL in
  8551. + '')
  8552. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8553. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8554. +do
  8555. + IFS=$as_save_IFS
  8556. + test -z "$as_dir" && as_dir=.
  8557. + for as_base in sh bash ksh sh5; do
  8558. + case $as_dir in
  8559. + /*)
  8560. + if ("$as_dir/$as_base" -c '
  8561. + as_lineno_1=$LINENO
  8562. + as_lineno_2=$LINENO
  8563. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8564. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8565. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  8566. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  8567. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  8568. + CONFIG_SHELL=$as_dir/$as_base
  8569. + export CONFIG_SHELL
  8570. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8571. + fi;;
  8572. + esac
  8573. + done
  8574. +done
  8575. +;;
  8576. + esac
  8577. +
  8578. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8579. + # uniformly replaced by the line number. The first 'sed' inserts a
  8580. + # line-number line before each line; the second 'sed' does the real
  8581. + # work. The second script uses 'N' to pair each line-number line
  8582. + # with the numbered line, and appends trailing '-' during
  8583. + # substitution so that $LINENO is not a special case at line end.
  8584. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8585. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  8586. + sed '=' <$as_myself |
  8587. + sed '
  8588. + N
  8589. + s,$,-,
  8590. + : loop
  8591. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8592. + t loop
  8593. + s,-$,,
  8594. + s,^['$as_cr_digits']*\n,,
  8595. + ' >$as_me.lineno &&
  8596. + chmod +x $as_me.lineno ||
  8597. + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8598. +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8599. + { (exit 1); exit 1; }; }
  8600. +
  8601. + # Don't try to exec as it changes $[0], causing all sort of problems
  8602. + # (the dirname of $[0] is not the place where we might find the
  8603. + # original and so on. Autoconf is especially sensible to this).
  8604. + . ./$as_me.lineno
  8605. + # Exit status is that of the last command.
  8606. + exit
  8607. +}
  8608. +
  8609. +
  8610. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8611. + *c*,-n*) ECHO_N= ECHO_C='
  8612. +' ECHO_T=' ' ;;
  8613. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8614. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8615. +esac
  8616. +
  8617. +if expr a : '\(a\)' >/dev/null 2>&1; then
  8618. + as_expr=expr
  8619. +else
  8620. + as_expr=false
  8621. +fi
  8622. +
  8623. +rm -f conf$$ conf$$.exe conf$$.file
  8624. +echo >conf$$.file
  8625. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  8626. + # We could just check for DJGPP; but this test a) works b) is more generic
  8627. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8628. + if test -f conf$$.exe; then
  8629. + # Don't use ln at all; we don't have any links
  8630. + as_ln_s='cp -p'
  8631. + else
  8632. + as_ln_s='ln -s'
  8633. + fi
  8634. +elif ln conf$$.file conf$$ 2>/dev/null; then
  8635. + as_ln_s=ln
  8636. +else
  8637. + as_ln_s='cp -p'
  8638. +fi
  8639. +rm -f conf$$ conf$$.exe conf$$.file
  8640. +
  8641. +if mkdir -p . 2>/dev/null; then
  8642. + as_mkdir_p=:
  8643. +else
  8644. + as_mkdir_p=false
  8645. +fi
  8646. +
  8647. +as_executable_p="test -f"
  8648. +
  8649. +# Sed expression to map a string onto a valid CPP name.
  8650. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  8651. +
  8652. +# Sed expression to map a string onto a valid variable name.
  8653. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  8654. +
  8655. +
  8656. +# IFS
  8657. +# We need space, tab and new line, in precisely that order.
  8658. +as_nl='
  8659. +'
  8660. +IFS=" $as_nl"
  8661. +
  8662. +# CDPATH.
  8663. +$as_unset CDPATH
  8664. +
  8665. +exec 6>&1
  8666. +
  8667. +# Open the log real soon, to keep \$[0] and so on meaningful, and to
  8668. +# report actual input values of CONFIG_FILES etc. instead of their
  8669. +# values after options handling. Logging --version etc. is OK.
  8670. +exec 5>>config.log
  8671. +{
  8672. + echo
  8673. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8674. +## Running $as_me. ##
  8675. +_ASBOX
  8676. +} >&5
  8677. +cat >&5 <<_CSEOF
  8678. +
  8679. +This file was extended by $as_me, which was
  8680. +generated by GNU Autoconf 2.57. Invocation command line was
  8681. +
  8682. + CONFIG_FILES = $CONFIG_FILES
  8683. + CONFIG_HEADERS = $CONFIG_HEADERS
  8684. + CONFIG_LINKS = $CONFIG_LINKS
  8685. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  8686. + $ $0 $@
  8687. +
  8688. +_CSEOF
  8689. +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  8690. +echo >&5
  8691. +_ACEOF
  8692. +
  8693. +# Files that config.status was made for.
  8694. +if test -n "$ac_config_files"; then
  8695. + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  8696. +fi
  8697. +
  8698. +if test -n "$ac_config_headers"; then
  8699. + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  8700. +fi
  8701. +
  8702. +if test -n "$ac_config_links"; then
  8703. + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  8704. +fi
  8705. +
  8706. +if test -n "$ac_config_commands"; then
  8707. + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  8708. +fi
  8709. +
  8710. +cat >>$CONFIG_STATUS <<\_ACEOF
  8711. +
  8712. +ac_cs_usage="\
  8713. +\`$as_me' instantiates files from templates according to the
  8714. +current configuration.
  8715. +
  8716. +Usage: $0 [OPTIONS] [FILE]...
  8717. +
  8718. + -h, --help print this help, then exit
  8719. + -V, --version print version number, then exit
  8720. + -q, --quiet do not print progress messages
  8721. + -d, --debug don't remove temporary files
  8722. + --recheck update $as_me by reconfiguring in the same conditions
  8723. + --file=FILE[:TEMPLATE]
  8724. + instantiate the configuration file FILE
  8725. + --header=FILE[:TEMPLATE]
  8726. + instantiate the configuration header FILE
  8727. +
  8728. +Configuration files:
  8729. +$config_files
  8730. +
  8731. +Configuration headers:
  8732. +$config_headers
  8733. +
  8734. +Configuration commands:
  8735. +$config_commands
  8736. +
  8737. +Report bugs to <bug-autoconf@gnu.org>."
  8738. +_ACEOF
  8739. +
  8740. +cat >>$CONFIG_STATUS <<_ACEOF
  8741. +ac_cs_version="\\
  8742. +config.status
  8743. +configured by $0, generated by GNU Autoconf 2.57,
  8744. + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  8745. +
  8746. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  8747. +Free Software Foundation, Inc.
  8748. +This config.status script is free software; the Free Software Foundation
  8749. +gives unlimited permission to copy, distribute and modify it."
  8750. +srcdir=$srcdir
  8751. +INSTALL="$INSTALL"
  8752. +_ACEOF
  8753. +
  8754. +cat >>$CONFIG_STATUS <<\_ACEOF
  8755. +# If no file are specified by the user, then we need to provide default
  8756. +# value. By we need to know if files were specified by the user.
  8757. +ac_need_defaults=:
  8758. +while test $# != 0
  8759. do
  8760. - case "\$ac_option" in
  8761. + case $1 in
  8762. + --*=*)
  8763. + ac_option=`expr "x$1" : 'x\([^=]*\)='`
  8764. + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  8765. + ac_shift=:
  8766. + ;;
  8767. + -*)
  8768. + ac_option=$1
  8769. + ac_optarg=$2
  8770. + ac_shift=shift
  8771. + ;;
  8772. + *) # This is not an option, so the user has probably given explicit
  8773. + # arguments.
  8774. + ac_option=$1
  8775. + ac_need_defaults=false;;
  8776. + esac
  8777. +
  8778. + case $ac_option in
  8779. + # Handling of the options.
  8780. +_ACEOF
  8781. +cat >>$CONFIG_STATUS <<\_ACEOF
  8782. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8783. - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  8784. - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  8785. - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  8786. - echo "$CONFIG_STATUS generated by autoconf version 2.13"
  8787. - exit 0 ;;
  8788. - -help | --help | --hel | --he | --h)
  8789. - echo "\$ac_cs_usage"; exit 0 ;;
  8790. - *) echo "\$ac_cs_usage"; exit 1 ;;
  8791. + ac_cs_recheck=: ;;
  8792. + --version | --vers* | -V )
  8793. + echo "$ac_cs_version"; exit 0 ;;
  8794. + --he | --h)
  8795. + # Conflict between --help and --header
  8796. + { { echo "$as_me:$LINENO: error: ambiguous option: $1
  8797. +Try \`$0 --help' for more information." >&5
  8798. +echo "$as_me: error: ambiguous option: $1
  8799. +Try \`$0 --help' for more information." >&2;}
  8800. + { (exit 1); exit 1; }; };;
  8801. + --help | --hel | -h )
  8802. + echo "$ac_cs_usage"; exit 0 ;;
  8803. + --debug | --d* | -d )
  8804. + debug=: ;;
  8805. + --file | --fil | --fi | --f )
  8806. + $ac_shift
  8807. + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  8808. + ac_need_defaults=false;;
  8809. + --header | --heade | --head | --hea )
  8810. + $ac_shift
  8811. + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  8812. + ac_need_defaults=false;;
  8813. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8814. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8815. + ac_cs_silent=: ;;
  8816. +
  8817. + # This is an error.
  8818. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  8819. +Try \`$0 --help' for more information." >&5
  8820. +echo "$as_me: error: unrecognized option: $1
  8821. +Try \`$0 --help' for more information." >&2;}
  8822. + { (exit 1); exit 1; }; } ;;
  8823. +
  8824. + *) ac_config_targets="$ac_config_targets $1" ;;
  8825. +
  8826. esac
  8827. + shift
  8828. done
  8829. -ac_given_srcdir=$srcdir
  8830. -ac_given_INSTALL="$INSTALL"
  8831. +ac_configure_extra_args=
  8832. -trap 'rm -fr `echo "Makefile
  8833. - shared/Makefile
  8834. - server/Makefile
  8835. - server/drivers/Makefile
  8836. - clients/Makefile
  8837. - clients/lcdproc/Makefile
  8838. - clients/examples/Makefile
  8839. - clients/headlines/Makefile
  8840. - docs/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  8841. -EOF
  8842. -cat >> $CONFIG_STATUS <<EOF
  8843. -
  8844. -# Protect against being on the right side of a sed subst in config.status.
  8845. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  8846. - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  8847. -$ac_vpsub
  8848. -$extrasub
  8849. -s%@SHELL@%$SHELL%g
  8850. -s%@CFLAGS@%$CFLAGS%g
  8851. -s%@CPPFLAGS@%$CPPFLAGS%g
  8852. -s%@CXXFLAGS@%$CXXFLAGS%g
  8853. -s%@FFLAGS@%$FFLAGS%g
  8854. -s%@DEFS@%$DEFS%g
  8855. -s%@LDFLAGS@%$LDFLAGS%g
  8856. -s%@LIBS@%$LIBS%g
  8857. -s%@exec_prefix@%$exec_prefix%g
  8858. -s%@prefix@%$prefix%g
  8859. -s%@program_transform_name@%$program_transform_name%g
  8860. -s%@bindir@%$bindir%g
  8861. -s%@sbindir@%$sbindir%g
  8862. -s%@libexecdir@%$libexecdir%g
  8863. -s%@datadir@%$datadir%g
  8864. -s%@sysconfdir@%$sysconfdir%g
  8865. -s%@sharedstatedir@%$sharedstatedir%g
  8866. -s%@localstatedir@%$localstatedir%g
  8867. -s%@libdir@%$libdir%g
  8868. -s%@includedir@%$includedir%g
  8869. -s%@oldincludedir@%$oldincludedir%g
  8870. -s%@infodir@%$infodir%g
  8871. -s%@mandir@%$mandir%g
  8872. -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  8873. -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  8874. -s%@INSTALL_DATA@%$INSTALL_DATA%g
  8875. -s%@PACKAGE@%$PACKAGE%g
  8876. -s%@VERSION@%$VERSION%g
  8877. -s%@ACLOCAL@%$ACLOCAL%g
  8878. -s%@AUTOCONF@%$AUTOCONF%g
  8879. -s%@AUTOMAKE@%$AUTOMAKE%g
  8880. -s%@AUTOHEADER@%$AUTOHEADER%g
  8881. -s%@MAKEINFO@%$MAKEINFO%g
  8882. -s%@SET_MAKE@%$SET_MAKE%g
  8883. -s%@host@%$host%g
  8884. -s%@host_alias@%$host_alias%g
  8885. -s%@host_cpu@%$host_cpu%g
  8886. -s%@host_vendor@%$host_vendor%g
  8887. -s%@host_os@%$host_os%g
  8888. -s%@CC@%$CC%g
  8889. -s%@CPP@%$CPP%g
  8890. -s%@RANLIB@%$RANLIB%g
  8891. -s%@LIBCURSES@%$LIBCURSES%g
  8892. -s%@LIBIRMAN@%$LIBIRMAN%g
  8893. -s%@LIBLIRC_CLIENT@%$LIBLIRC_CLIENT%g
  8894. -s%@DRIVERS@%$DRIVERS%g
  8895. +if $ac_cs_silent; then
  8896. + exec 6>/dev/null
  8897. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  8898. +fi
  8899. +
  8900. +_ACEOF
  8901. +cat >>$CONFIG_STATUS <<_ACEOF
  8902. +if \$ac_cs_recheck; then
  8903. + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  8904. + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8905. +fi
  8906. +
  8907. +_ACEOF
  8908. +
  8909. +cat >>$CONFIG_STATUS <<_ACEOF
  8910. +#
  8911. +# INIT-COMMANDS section.
  8912. +#
  8913. +
  8914. +
  8915. +
  8916. +_ACEOF
  8917. +
  8918. +
  8919. +
  8920. +cat >>$CONFIG_STATUS <<\_ACEOF
  8921. +for ac_config_target in $ac_config_targets
  8922. +do
  8923. + case "$ac_config_target" in
  8924. + # Handling of arguments.
  8925. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8926. + "shared/Makefile" ) CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
  8927. + "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  8928. + "server/drivers/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/drivers/Makefile" ;;
  8929. + "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
  8930. + "clients/lcdproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/lcdproc/Makefile" ;;
  8931. + "clients/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/examples/Makefile" ;;
  8932. + "clients/headlines/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/headlines/Makefile" ;;
  8933. + "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  8934. + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  8935. + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  8936. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8937. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8938. + { (exit 1); exit 1; }; };;
  8939. + esac
  8940. +done
  8941. +
  8942. +# If the user did not use the arguments to specify the items to instantiate,
  8943. +# then the envvar interface is used. Set only those that are not.
  8944. +# We use the long form for the default assignment because of an extremely
  8945. +# bizarre bug on SunOS 4.1.3.
  8946. +if $ac_need_defaults; then
  8947. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8948. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8949. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  8950. +fi
  8951. +
  8952. +# Have a temporary directory for convenience. Make it in the build tree
  8953. +# simply because there is no reason to put it here, and in addition,
  8954. +# creating and moving files from /tmp can sometimes cause problems.
  8955. +# Create a temporary directory, and hook for its removal unless debugging.
  8956. +$debug ||
  8957. +{
  8958. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8959. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  8960. +}
  8961. +# Create a (secure) tmp directory for tmp files.
  8962. +
  8963. +{
  8964. + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  8965. + test -n "$tmp" && test -d "$tmp"
  8966. +} ||
  8967. +{
  8968. + tmp=./confstat$$-$RANDOM
  8969. + (umask 077 && mkdir $tmp)
  8970. +} ||
  8971. +{
  8972. + echo "$me: cannot create a temporary directory in ." >&2
  8973. + { (exit 1); exit 1; }
  8974. +}
  8975. +
  8976. +_ACEOF
  8977. +
  8978. +cat >>$CONFIG_STATUS <<_ACEOF
  8979. +
  8980. +#
  8981. +# CONFIG_FILES section.
  8982. +#
  8983. +
  8984. +# No need to generate the scripts if there are no CONFIG_FILES.
  8985. +# This happens for instance when ./config.status config.h
  8986. +if test -n "\$CONFIG_FILES"; then
  8987. + # Protect against being on the right side of a sed subst in config.status.
  8988. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  8989. + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  8990. +s,@SHELL@,$SHELL,;t t
  8991. +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  8992. +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  8993. +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  8994. +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  8995. +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  8996. +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  8997. +s,@exec_prefix@,$exec_prefix,;t t
  8998. +s,@prefix@,$prefix,;t t
  8999. +s,@program_transform_name@,$program_transform_name,;t t
  9000. +s,@bindir@,$bindir,;t t
  9001. +s,@sbindir@,$sbindir,;t t
  9002. +s,@libexecdir@,$libexecdir,;t t
  9003. +s,@datadir@,$datadir,;t t
  9004. +s,@sysconfdir@,$sysconfdir,;t t
  9005. +s,@sharedstatedir@,$sharedstatedir,;t t
  9006. +s,@localstatedir@,$localstatedir,;t t
  9007. +s,@libdir@,$libdir,;t t
  9008. +s,@includedir@,$includedir,;t t
  9009. +s,@oldincludedir@,$oldincludedir,;t t
  9010. +s,@infodir@,$infodir,;t t
  9011. +s,@mandir@,$mandir,;t t
  9012. +s,@build_alias@,$build_alias,;t t
  9013. +s,@host_alias@,$host_alias,;t t
  9014. +s,@target_alias@,$target_alias,;t t
  9015. +s,@DEFS@,$DEFS,;t t
  9016. +s,@ECHO_C@,$ECHO_C,;t t
  9017. +s,@ECHO_N@,$ECHO_N,;t t
  9018. +s,@ECHO_T@,$ECHO_T,;t t
  9019. +s,@LIBS@,$LIBS,;t t
  9020. +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  9021. +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  9022. +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  9023. +s,@PACKAGE@,$PACKAGE,;t t
  9024. +s,@VERSION@,$VERSION,;t t
  9025. +s,@ACLOCAL@,$ACLOCAL,;t t
  9026. +s,@AUTOCONF@,$AUTOCONF,;t t
  9027. +s,@AUTOMAKE@,$AUTOMAKE,;t t
  9028. +s,@AUTOHEADER@,$AUTOHEADER,;t t
  9029. +s,@MAKEINFO@,$MAKEINFO,;t t
  9030. +s,@SET_MAKE@,$SET_MAKE,;t t
  9031. +s,@build@,$build,;t t
  9032. +s,@build_cpu@,$build_cpu,;t t
  9033. +s,@build_vendor@,$build_vendor,;t t
  9034. +s,@build_os@,$build_os,;t t
  9035. +s,@host@,$host,;t t
  9036. +s,@host_cpu@,$host_cpu,;t t
  9037. +s,@host_vendor@,$host_vendor,;t t
  9038. +s,@host_os@,$host_os,;t t
  9039. +s,@CC@,$CC,;t t
  9040. +s,@CFLAGS@,$CFLAGS,;t t
  9041. +s,@LDFLAGS@,$LDFLAGS,;t t
  9042. +s,@CPPFLAGS@,$CPPFLAGS,;t t
  9043. +s,@ac_ct_CC@,$ac_ct_CC,;t t
  9044. +s,@EXEEXT@,$EXEEXT,;t t
  9045. +s,@OBJEXT@,$OBJEXT,;t t
  9046. +s,@CPP@,$CPP,;t t
  9047. +s,@RANLIB@,$RANLIB,;t t
  9048. +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  9049. +s,@EGREP@,$EGREP,;t t
  9050. +s,@LIBCURSES@,$LIBCURSES,;t t
  9051. +s,@LIBIRMAN@,$LIBIRMAN,;t t
  9052. +s,@LIBLIRC_CLIENT@,$LIBLIRC_CLIENT,;t t
  9053. +s,@DRIVERS@,$DRIVERS,;t t
  9054. +s,@LIBOBJS@,$LIBOBJS,;t t
  9055. +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  9056. CEOF
  9057. -EOF
  9058. -cat >> $CONFIG_STATUS <<\EOF
  9059. +_ACEOF
  9060. -# Split the substitutions into bite-sized pieces for seds with
  9061. -# small command number limits, like on Digital OSF/1 and HP-UX.
  9062. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  9063. -ac_file=1 # Number of current file.
  9064. -ac_beg=1 # First line for current file.
  9065. -ac_end=$ac_max_sed_cmds # Line after last line for current file.
  9066. -ac_more_lines=:
  9067. -ac_sed_cmds=""
  9068. -while $ac_more_lines; do
  9069. - if test $ac_beg -gt 1; then
  9070. - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  9071. - else
  9072. - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  9073. - fi
  9074. - if test ! -s conftest.s$ac_file; then
  9075. - ac_more_lines=false
  9076. - rm -f conftest.s$ac_file
  9077. - else
  9078. - if test -z "$ac_sed_cmds"; then
  9079. - ac_sed_cmds="sed -f conftest.s$ac_file"
  9080. + cat >>$CONFIG_STATUS <<\_ACEOF
  9081. + # Split the substitutions into bite-sized pieces for seds with
  9082. + # small command number limits, like on Digital OSF/1 and HP-UX.
  9083. + ac_max_sed_lines=48
  9084. + ac_sed_frag=1 # Number of current file.
  9085. + ac_beg=1 # First line for current file.
  9086. + ac_end=$ac_max_sed_lines # Line after last line for current file.
  9087. + ac_more_lines=:
  9088. + ac_sed_cmds=
  9089. + while $ac_more_lines; do
  9090. + if test $ac_beg -gt 1; then
  9091. + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9092. + else
  9093. + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9094. + fi
  9095. + if test ! -s $tmp/subs.frag; then
  9096. + ac_more_lines=false
  9097. else
  9098. - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  9099. + # The purpose of the label and of the branching condition is to
  9100. + # speed up the sed processing (if there are no `@' at all, there
  9101. + # is no need to browse any of the substitutions).
  9102. + # These are the two extra sed commands mentioned above.
  9103. + (echo ':t
  9104. + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  9105. + if test -z "$ac_sed_cmds"; then
  9106. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  9107. + else
  9108. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  9109. + fi
  9110. + ac_sed_frag=`expr $ac_sed_frag + 1`
  9111. + ac_beg=$ac_end
  9112. + ac_end=`expr $ac_end + $ac_max_sed_lines`
  9113. fi
  9114. - ac_file=`expr $ac_file + 1`
  9115. - ac_beg=$ac_end
  9116. - ac_end=`expr $ac_end + $ac_max_sed_cmds`
  9117. - fi
  9118. -done
  9119. -if test -z "$ac_sed_cmds"; then
  9120. - ac_sed_cmds=cat
  9121. -fi
  9122. -EOF
  9123. -
  9124. -cat >> $CONFIG_STATUS <<EOF
  9125. -
  9126. -CONFIG_FILES=\${CONFIG_FILES-"Makefile
  9127. - shared/Makefile
  9128. - server/Makefile
  9129. - server/drivers/Makefile
  9130. - clients/Makefile
  9131. - clients/lcdproc/Makefile
  9132. - clients/examples/Makefile
  9133. - clients/headlines/Makefile
  9134. - docs/Makefile"}
  9135. -EOF
  9136. -cat >> $CONFIG_STATUS <<\EOF
  9137. -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  9138. + done
  9139. + if test -z "$ac_sed_cmds"; then
  9140. + ac_sed_cmds=cat
  9141. + fi
  9142. +fi # test -n "$CONFIG_FILES"
  9143. +
  9144. +_ACEOF
  9145. +cat >>$CONFIG_STATUS <<\_ACEOF
  9146. +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  9147. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9148. - case "$ac_file" in
  9149. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  9150. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9151. - *) ac_file_in="${ac_file}.in" ;;
  9152. + case $ac_file in
  9153. + - | *:- | *:-:* ) # input from stdin
  9154. + cat >$tmp/stdin
  9155. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9156. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9157. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9158. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9159. + * ) ac_file_in=$ac_file.in ;;
  9160. esac
  9161. - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  9162. -
  9163. - # Remove last slash and all that follows it. Not all systems have dirname.
  9164. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  9165. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  9166. - # The file is in a subdirectory.
  9167. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  9168. - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  9169. - # A "../" for each directory in $ac_dir_suffix.
  9170. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  9171. - else
  9172. - ac_dir_suffix= ac_dots=
  9173. - fi
  9174. -
  9175. - case "$ac_given_srcdir" in
  9176. - .) srcdir=.
  9177. - if test -z "$ac_dots"; then top_srcdir=.
  9178. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  9179. - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  9180. + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  9181. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9182. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9183. + X"$ac_file" : 'X\(//\)[^/]' \| \
  9184. + X"$ac_file" : 'X\(//\)$' \| \
  9185. + X"$ac_file" : 'X\(/\)' \| \
  9186. + . : '\(.\)' 2>/dev/null ||
  9187. +echo X"$ac_file" |
  9188. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9189. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9190. + /^X\(\/\/\)$/{ s//\1/; q; }
  9191. + /^X\(\/\).*/{ s//\1/; q; }
  9192. + s/.*/./; q'`
  9193. + { if $as_mkdir_p; then
  9194. + mkdir -p "$ac_dir"
  9195. + else
  9196. + as_dir="$ac_dir"
  9197. + as_dirs=
  9198. + while test ! -d "$as_dir"; do
  9199. + as_dirs="$as_dir $as_dirs"
  9200. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9201. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9202. + X"$as_dir" : 'X\(//\)[^/]' \| \
  9203. + X"$as_dir" : 'X\(//\)$' \| \
  9204. + X"$as_dir" : 'X\(/\)' \| \
  9205. + . : '\(.\)' 2>/dev/null ||
  9206. +echo X"$as_dir" |
  9207. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9208. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9209. + /^X\(\/\/\)$/{ s//\1/; q; }
  9210. + /^X\(\/\).*/{ s//\1/; q; }
  9211. + s/.*/./; q'`
  9212. + done
  9213. + test ! -n "$as_dirs" || mkdir $as_dirs
  9214. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9215. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9216. + { (exit 1); exit 1; }; }; }
  9217. +
  9218. + ac_builddir=.
  9219. +
  9220. +if test "$ac_dir" != .; then
  9221. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9222. + # A "../" for each directory in $ac_dir_suffix.
  9223. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9224. +else
  9225. + ac_dir_suffix= ac_top_builddir=
  9226. +fi
  9227. +
  9228. +case $srcdir in
  9229. + .) # No --srcdir option. We are building in place.
  9230. + ac_srcdir=.
  9231. + if test -z "$ac_top_builddir"; then
  9232. + ac_top_srcdir=.
  9233. + else
  9234. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9235. + fi ;;
  9236. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9237. + ac_srcdir=$srcdir$ac_dir_suffix;
  9238. + ac_top_srcdir=$srcdir ;;
  9239. *) # Relative path.
  9240. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  9241. - top_srcdir="$ac_dots$ac_given_srcdir" ;;
  9242. - esac
  9243. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9244. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9245. +esac
  9246. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9247. +# absolute.
  9248. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9249. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  9250. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9251. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9252. - case "$ac_given_INSTALL" in
  9253. - [/$]*) INSTALL="$ac_given_INSTALL" ;;
  9254. - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  9255. - esac
  9256. - echo creating "$ac_file"
  9257. - rm -f "$ac_file"
  9258. - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  9259. - case "$ac_file" in
  9260. - *Makefile*) ac_comsub="1i\\
  9261. -# $configure_input" ;;
  9262. - *) ac_comsub= ;;
  9263. + case $INSTALL in
  9264. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9265. + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  9266. esac
  9267. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  9268. - sed -e "$ac_comsub
  9269. -s%@configure_input@%$configure_input%g
  9270. -s%@srcdir@%$srcdir%g
  9271. -s%@top_srcdir@%$top_srcdir%g
  9272. -s%@INSTALL@%$INSTALL%g
  9273. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  9274. -fi; done
  9275. -rm -f conftest.s*
  9276. + if test x"$ac_file" != x-; then
  9277. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  9278. +echo "$as_me: creating $ac_file" >&6;}
  9279. + rm -f "$ac_file"
  9280. + fi
  9281. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  9282. + # use $as_me), people would be surprised to read:
  9283. + # /* config.h. Generated by config.status. */
  9284. + if test x"$ac_file" = x-; then
  9285. + configure_input=
  9286. + else
  9287. + configure_input="$ac_file. "
  9288. + fi
  9289. + configure_input=$configure_input"Generated from `echo $ac_file_in |
  9290. + sed 's,.*/,,'` by configure."
  9291. +
  9292. + # First look for the input files in the build tree, otherwise in the
  9293. + # src tree.
  9294. + ac_file_inputs=`IFS=:
  9295. + for f in $ac_file_in; do
  9296. + case $f in
  9297. + -) echo $tmp/stdin ;;
  9298. + [\\/$]*)
  9299. + # Absolute (can't be DOS-style, as IFS=:)
  9300. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9301. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9302. + { (exit 1); exit 1; }; }
  9303. + echo $f;;
  9304. + *) # Relative
  9305. + if test -f "$f"; then
  9306. + # Build tree
  9307. + echo $f
  9308. + elif test -f "$srcdir/$f"; then
  9309. + # Source tree
  9310. + echo $srcdir/$f
  9311. + else
  9312. + # /dev/null tree
  9313. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9314. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9315. + { (exit 1); exit 1; }; }
  9316. + fi;;
  9317. + esac
  9318. + done` || { (exit 1); exit 1; }
  9319. +_ACEOF
  9320. +cat >>$CONFIG_STATUS <<_ACEOF
  9321. + sed "$ac_vpsub
  9322. +$extrasub
  9323. +_ACEOF
  9324. +cat >>$CONFIG_STATUS <<\_ACEOF
  9325. +:t
  9326. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9327. +s,@configure_input@,$configure_input,;t t
  9328. +s,@srcdir@,$ac_srcdir,;t t
  9329. +s,@abs_srcdir@,$ac_abs_srcdir,;t t
  9330. +s,@top_srcdir@,$ac_top_srcdir,;t t
  9331. +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  9332. +s,@builddir@,$ac_builddir,;t t
  9333. +s,@abs_builddir@,$ac_abs_builddir,;t t
  9334. +s,@top_builddir@,$ac_top_builddir,;t t
  9335. +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  9336. +s,@INSTALL@,$ac_INSTALL,;t t
  9337. +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  9338. + rm -f $tmp/stdin
  9339. + if test x"$ac_file" != x-; then
  9340. + mv $tmp/out $ac_file
  9341. + else
  9342. + cat $tmp/out
  9343. + rm -f $tmp/out
  9344. + fi
  9345. +
  9346. +done
  9347. +_ACEOF
  9348. +cat >>$CONFIG_STATUS <<\_ACEOF
  9349. +
  9350. +#
  9351. +# CONFIG_HEADER section.
  9352. +#
  9353. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  9354. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  9355. #
  9356. # ac_d sets the value in "#define NAME VALUE" lines.
  9357. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9358. -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  9359. -ac_dC='\3'
  9360. -ac_dD='%g'
  9361. -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  9362. -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9363. -ac_uB='\([ ]\)%\1#\2define\3'
  9364. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9365. +ac_dB='[ ].*$,\1#\2'
  9366. +ac_dC=' '
  9367. +ac_dD=',;t'
  9368. +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9369. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9370. +ac_uB='$,\1#\2define\3'
  9371. ac_uC=' '
  9372. -ac_uD='\4%g'
  9373. -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9374. -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9375. -ac_eB='$%\1#\2define\3'
  9376. -ac_eC=' '
  9377. -ac_eD='%g'
  9378. -
  9379. -if test "${CONFIG_HEADERS+set}" != set; then
  9380. -EOF
  9381. -cat >> $CONFIG_STATUS <<EOF
  9382. - CONFIG_HEADERS="config.h"
  9383. -EOF
  9384. -cat >> $CONFIG_STATUS <<\EOF
  9385. -fi
  9386. -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  9387. +ac_uD=',;t'
  9388. +
  9389. +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  9390. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9391. - case "$ac_file" in
  9392. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  9393. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9394. - *) ac_file_in="${ac_file}.in" ;;
  9395. + case $ac_file in
  9396. + - | *:- | *:-:* ) # input from stdin
  9397. + cat >$tmp/stdin
  9398. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9399. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9400. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9401. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9402. + * ) ac_file_in=$ac_file.in ;;
  9403. esac
  9404. - echo creating $ac_file
  9405. + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  9406. +echo "$as_me: creating $ac_file" >&6;}
  9407. - rm -f conftest.frag conftest.in conftest.out
  9408. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  9409. - cat $ac_file_inputs > conftest.in
  9410. -
  9411. -EOF
  9412. -
  9413. -# Transform confdefs.h into a sed script conftest.vals that substitutes
  9414. -# the proper values into config.h.in to produce config.h. And first:
  9415. -# Protect against being on the right side of a sed subst in config.status.
  9416. -# Protect against being in an unquoted here document in config.status.
  9417. -rm -f conftest.vals
  9418. -cat > conftest.hdr <<\EOF
  9419. -s/[\\&%]/\\&/g
  9420. -s%[\\$`]%\\&%g
  9421. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  9422. -s%ac_d%ac_u%gp
  9423. -s%ac_u%ac_e%gp
  9424. -EOF
  9425. -sed -n -f conftest.hdr confdefs.h > conftest.vals
  9426. -rm -f conftest.hdr
  9427. + # First look for the input files in the build tree, otherwise in the
  9428. + # src tree.
  9429. + ac_file_inputs=`IFS=:
  9430. + for f in $ac_file_in; do
  9431. + case $f in
  9432. + -) echo $tmp/stdin ;;
  9433. + [\\/$]*)
  9434. + # Absolute (can't be DOS-style, as IFS=:)
  9435. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9436. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9437. + { (exit 1); exit 1; }; }
  9438. + echo $f;;
  9439. + *) # Relative
  9440. + if test -f "$f"; then
  9441. + # Build tree
  9442. + echo $f
  9443. + elif test -f "$srcdir/$f"; then
  9444. + # Source tree
  9445. + echo $srcdir/$f
  9446. + else
  9447. + # /dev/null tree
  9448. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9449. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9450. + { (exit 1); exit 1; }; }
  9451. + fi;;
  9452. + esac
  9453. + done` || { (exit 1); exit 1; }
  9454. + # Remove the trailing spaces.
  9455. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  9456. +
  9457. +_ACEOF
  9458. +
  9459. +# Transform confdefs.h into two sed scripts, `conftest.defines' and
  9460. +# `conftest.undefs', that substitutes the proper values into
  9461. +# config.h.in to produce config.h. The first handles `#define'
  9462. +# templates, and the second `#undef' templates.
  9463. +# And first: Protect against being on the right side of a sed subst in
  9464. +# config.status. Protect against being in an unquoted here document
  9465. +# in config.status.
  9466. +rm -f conftest.defines conftest.undefs
  9467. +# Using a here document instead of a string reduces the quoting nightmare.
  9468. +# Putting comments in sed scripts is not portable.
  9469. +#
  9470. +# `end' is used to avoid that the second main sed command (meant for
  9471. +# 0-ary CPP macros) applies to n-ary macro definitions.
  9472. +# See the Autoconf documentation for `clear'.
  9473. +cat >confdef2sed.sed <<\_ACEOF
  9474. +s/[\\&,]/\\&/g
  9475. +s,[\\$`],\\&,g
  9476. +t clear
  9477. +: clear
  9478. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  9479. +t end
  9480. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  9481. +: end
  9482. +_ACEOF
  9483. +# If some macros were called several times there might be several times
  9484. +# the same #defines, which is useless. Nevertheless, we may not want to
  9485. +# sort them, since we want the *last* AC-DEFINE to be honored.
  9486. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  9487. +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  9488. +rm -f confdef2sed.sed
  9489. # This sed command replaces #undef with comments. This is necessary, for
  9490. # example, in the case of _POSIX_SOURCE, which is predefined and required
  9491. # on some systems where configure will not decide to define it.
  9492. -cat >> conftest.vals <<\EOF
  9493. -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  9494. -EOF
  9495. -
  9496. -# Break up conftest.vals because some shells have a limit on
  9497. -# the size of here documents, and old seds have small limits too.
  9498. -
  9499. +cat >>conftest.undefs <<\_ACEOF
  9500. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  9501. +_ACEOF
  9502. +
  9503. +# Break up conftest.defines because some shells have a limit on the size
  9504. +# of here documents, and old seds have small limits too (100 cmds).
  9505. +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  9506. +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  9507. +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  9508. +echo ' :' >>$CONFIG_STATUS
  9509. +rm -f conftest.tail
  9510. +while grep . conftest.defines >/dev/null
  9511. +do
  9512. + # Write a limited-size here document to $tmp/defines.sed.
  9513. + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  9514. + # Speed up: don't consider the non `#define' lines.
  9515. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  9516. + # Work around the forget-to-reset-the-flag bug.
  9517. + echo 't clr' >>$CONFIG_STATUS
  9518. + echo ': clr' >>$CONFIG_STATUS
  9519. + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  9520. + echo 'CEOF
  9521. + sed -f $tmp/defines.sed $tmp/in >$tmp/out
  9522. + rm -f $tmp/in
  9523. + mv $tmp/out $tmp/in
  9524. +' >>$CONFIG_STATUS
  9525. + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  9526. + rm -f conftest.defines
  9527. + mv conftest.tail conftest.defines
  9528. +done
  9529. +rm -f conftest.defines
  9530. +echo ' fi # grep' >>$CONFIG_STATUS
  9531. +echo >>$CONFIG_STATUS
  9532. +
  9533. +# Break up conftest.undefs because some shells have a limit on the size
  9534. +# of here documents, and old seds have small limits too (100 cmds).
  9535. +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  9536. rm -f conftest.tail
  9537. -while :
  9538. +while grep . conftest.undefs >/dev/null
  9539. do
  9540. - ac_lines=`grep -c . conftest.vals`
  9541. - # grep -c gives empty output for an empty file on some AIX systems.
  9542. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  9543. - # Write a limited-size here document to conftest.frag.
  9544. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  9545. - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  9546. + # Write a limited-size here document to $tmp/undefs.sed.
  9547. + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  9548. + # Speed up: don't consider the non `#undef'
  9549. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  9550. + # Work around the forget-to-reset-the-flag bug.
  9551. + echo 't clr' >>$CONFIG_STATUS
  9552. + echo ': clr' >>$CONFIG_STATUS
  9553. + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  9554. echo 'CEOF
  9555. - sed -f conftest.frag conftest.in > conftest.out
  9556. - rm -f conftest.in
  9557. - mv conftest.out conftest.in
  9558. -' >> $CONFIG_STATUS
  9559. - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  9560. - rm -f conftest.vals
  9561. - mv conftest.tail conftest.vals
  9562. -done
  9563. -rm -f conftest.vals
  9564. -
  9565. -cat >> $CONFIG_STATUS <<\EOF
  9566. - rm -f conftest.frag conftest.h
  9567. - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  9568. - cat conftest.in >> conftest.h
  9569. - rm -f conftest.in
  9570. - if cmp -s $ac_file conftest.h 2>/dev/null; then
  9571. - echo "$ac_file is unchanged"
  9572. - rm -f conftest.h
  9573. - else
  9574. - # Remove last slash and all that follows it. Not all systems have dirname.
  9575. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  9576. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  9577. - # The file is in a subdirectory.
  9578. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  9579. + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  9580. + rm -f $tmp/in
  9581. + mv $tmp/out $tmp/in
  9582. +' >>$CONFIG_STATUS
  9583. + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  9584. + rm -f conftest.undefs
  9585. + mv conftest.tail conftest.undefs
  9586. +done
  9587. +rm -f conftest.undefs
  9588. +
  9589. +cat >>$CONFIG_STATUS <<\_ACEOF
  9590. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  9591. + # use $as_me), people would be surprised to read:
  9592. + # /* config.h. Generated by config.status. */
  9593. + if test x"$ac_file" = x-; then
  9594. + echo "/* Generated by configure. */" >$tmp/config.h
  9595. + else
  9596. + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  9597. + fi
  9598. + cat $tmp/in >>$tmp/config.h
  9599. + rm -f $tmp/in
  9600. + if test x"$ac_file" != x-; then
  9601. + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  9602. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9603. +echo "$as_me: $ac_file is unchanged" >&6;}
  9604. + else
  9605. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9606. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9607. + X"$ac_file" : 'X\(//\)[^/]' \| \
  9608. + X"$ac_file" : 'X\(//\)$' \| \
  9609. + X"$ac_file" : 'X\(/\)' \| \
  9610. + . : '\(.\)' 2>/dev/null ||
  9611. +echo X"$ac_file" |
  9612. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9613. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9614. + /^X\(\/\/\)$/{ s//\1/; q; }
  9615. + /^X\(\/\).*/{ s//\1/; q; }
  9616. + s/.*/./; q'`
  9617. + { if $as_mkdir_p; then
  9618. + mkdir -p "$ac_dir"
  9619. + else
  9620. + as_dir="$ac_dir"
  9621. + as_dirs=
  9622. + while test ! -d "$as_dir"; do
  9623. + as_dirs="$as_dir $as_dirs"
  9624. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9625. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9626. + X"$as_dir" : 'X\(//\)[^/]' \| \
  9627. + X"$as_dir" : 'X\(//\)$' \| \
  9628. + X"$as_dir" : 'X\(/\)' \| \
  9629. + . : '\(.\)' 2>/dev/null ||
  9630. +echo X"$as_dir" |
  9631. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9632. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9633. + /^X\(\/\/\)$/{ s//\1/; q; }
  9634. + /^X\(\/\).*/{ s//\1/; q; }
  9635. + s/.*/./; q'`
  9636. + done
  9637. + test ! -n "$as_dirs" || mkdir $as_dirs
  9638. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9639. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9640. + { (exit 1); exit 1; }; }; }
  9641. +
  9642. + rm -f $ac_file
  9643. + mv $tmp/config.h $ac_file
  9644. fi
  9645. - rm -f $ac_file
  9646. - mv conftest.h $ac_file
  9647. + else
  9648. + cat $tmp/config.h
  9649. + rm -f $tmp/config.h
  9650. fi
  9651. -fi; done
  9652. +done
  9653. +_ACEOF
  9654. +cat >>$CONFIG_STATUS <<\_ACEOF
  9655. +
  9656. +#
  9657. +# CONFIG_COMMANDS section.
  9658. +#
  9659. +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  9660. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  9661. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9662. + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  9663. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9664. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  9665. + X"$ac_dest" : 'X\(//\)$' \| \
  9666. + X"$ac_dest" : 'X\(/\)' \| \
  9667. + . : '\(.\)' 2>/dev/null ||
  9668. +echo X"$ac_dest" |
  9669. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9670. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9671. + /^X\(\/\/\)$/{ s//\1/; q; }
  9672. + /^X\(\/\).*/{ s//\1/; q; }
  9673. + s/.*/./; q'`
  9674. + ac_builddir=.
  9675. +
  9676. +if test "$ac_dir" != .; then
  9677. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9678. + # A "../" for each directory in $ac_dir_suffix.
  9679. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9680. +else
  9681. + ac_dir_suffix= ac_top_builddir=
  9682. +fi
  9683. +
  9684. +case $srcdir in
  9685. + .) # No --srcdir option. We are building in place.
  9686. + ac_srcdir=.
  9687. + if test -z "$ac_top_builddir"; then
  9688. + ac_top_srcdir=.
  9689. + else
  9690. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9691. + fi ;;
  9692. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9693. + ac_srcdir=$srcdir$ac_dir_suffix;
  9694. + ac_top_srcdir=$srcdir ;;
  9695. + *) # Relative path.
  9696. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9697. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9698. +esac
  9699. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9700. +# absolute.
  9701. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9702. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  9703. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9704. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9705. -EOF
  9706. -cat >> $CONFIG_STATUS <<EOF
  9707. + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  9708. +echo "$as_me: executing $ac_dest commands" >&6;}
  9709. + case $ac_dest in
  9710. + default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
  9711. + esac
  9712. +done
  9713. +_ACEOF
  9714. -EOF
  9715. -cat >> $CONFIG_STATUS <<\EOF
  9716. -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  9717. +cat >>$CONFIG_STATUS <<\_ACEOF
  9718. -exit 0
  9719. -EOF
  9720. +{ (exit 0); exit 0; }
  9721. +_ACEOF
  9722. chmod +x $CONFIG_STATUS
  9723. -rm -fr confdefs* $ac_clean_files
  9724. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  9725. +ac_clean_files=$ac_clean_files_save
  9726. +
  9727. +
  9728. +# configure is writing to config.log, and then calls config.status.
  9729. +# config.status does its own redirection, appending to config.log.
  9730. +# Unfortunately, on DOS this fails, as config.log is still kept open
  9731. +# by configure, so config.status won't be able to write to it; its
  9732. +# output is simply discarded. So we exec the FD to /dev/null,
  9733. +# effectively closing config.log, so it can be properly (re)opened and
  9734. +# appended to by config.status. When coming back to configure, we
  9735. +# need to make the FD available again.
  9736. +if test "$no_create" != yes; then
  9737. + ac_cs_success=:
  9738. + ac_config_status_args=
  9739. + test "$silent" = yes &&
  9740. + ac_config_status_args="$ac_config_status_args --quiet"
  9741. + exec 5>/dev/null
  9742. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9743. + exec 5>>config.log
  9744. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9745. + # would make configure fail if this is the last instruction.
  9746. + $ac_cs_success || { (exit 1); exit 1; }
  9747. +fi