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

/contrib/groff/configure

https://bitbucket.org/freebsd/freebsd-head/
Shell | 11663 lines | 9639 code | 1032 blank | 992 comment | 931 complexity | babeed6a0c07208d324434964263f4fa MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, LGPL-2.0, LGPL-2.1, BSD-2-Clause, 0BSD, JSON, AGPL-1.0, GPL-2.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59b.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
  6. # 2003, 2004 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14. emulate sh
  15. NULLCMD=:
  16. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17. # is contrary to our usage. Disable this feature.
  18. alias -g '${1+"$@"}'='"$@"'
  19. setopt NO_GLOB_SUBST
  20. elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. BIN_SH=xpg4; export BIN_SH # for Tru64
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # PATH needs CR
  26. # Avoid depending upon Character Ranges.
  27. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  28. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  29. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  30. as_cr_digits='0123456789'
  31. as_cr_alnum=$as_cr_Letters$as_cr_digits
  32. # The user is always right.
  33. if test "${PATH_SEPARATOR+set}" != set; then
  34. echo "#! /bin/sh" >conf$$.sh
  35. echo "exit 0" >>conf$$.sh
  36. chmod +x conf$$.sh
  37. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  38. PATH_SEPARATOR=';'
  39. else
  40. PATH_SEPARATOR=:
  41. fi
  42. rm -f conf$$.sh
  43. fi
  44. # Support unset when possible.
  45. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  46. as_unset=unset
  47. else
  48. as_unset=false
  49. fi
  50. # Find who we are. Look in the path if we contain no path at all
  51. # relative or not.
  52. case $0 in
  53. *[\\/]* ) as_myself=$0 ;;
  54. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  55. for as_dir in $PATH
  56. do
  57. IFS=$as_save_IFS
  58. test -z "$as_dir" && as_dir=.
  59. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  60. done
  61. ;;
  62. esac
  63. # We did not find ourselves, most probably we were run as `sh COMMAND'
  64. # in which case we are not to be found in the path.
  65. if test "x$as_myself" = x; then
  66. as_myself=$0
  67. fi
  68. if test ! -f "$as_myself"; then
  69. { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
  70. { (exit 1); exit 1; }; }
  71. fi
  72. # Work around bugs in pre-3.0 UWIN ksh.
  73. for as_var in ENV MAIL MAILPATH
  74. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  75. done
  76. PS1='$ '
  77. PS2='> '
  78. PS4='+ '
  79. # NLS nuisances.
  80. for as_var in \
  81. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  82. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  83. LC_TELEPHONE LC_TIME
  84. do
  85. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  86. eval $as_var=C; export $as_var
  87. else
  88. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  89. fi
  90. done
  91. # Required to use basename.
  92. if expr a : '\(a\)' >/dev/null 2>&1; then
  93. as_expr=expr
  94. else
  95. as_expr=false
  96. fi
  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. # Name of the executable.
  103. as_me=`$as_basename "$0" ||
  104. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  105. X"$0" : 'X\(//\)$' \| \
  106. X"$0" : 'X\(/\)$' \| \
  107. . : '\(.\)' 2>/dev/null ||
  108. echo X/"$0" |
  109. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  110. /^X\/\(\/\/\)$/{ s//\1/; q; }
  111. /^X\/\(\/\).*/{ s//\1/; q; }
  112. s/.*/./; q'`
  113. if test "x$CONFIG_SHELL" = x; then
  114. if (eval ":") 2>/dev/null; then
  115. as_have_required=yes
  116. else
  117. as_have_required=no
  118. fi
  119. if test $as_have_required = yes && (eval ":
  120. (func_return () {
  121. (exit \$1)
  122. }
  123. func_success () {
  124. func_return 0
  125. }
  126. func_failure () {
  127. func_return 1
  128. }
  129. func_ret_success () {
  130. return 0
  131. }
  132. func_ret_failure () {
  133. return 1
  134. }
  135. exitcode=0
  136. if func_success; then
  137. :
  138. else
  139. exitcode=1
  140. echo func_failure succeeded.
  141. fi
  142. if func_failure; then
  143. exitcode=1
  144. echo func_success failed.
  145. fi
  146. if func_ret_success; then
  147. :
  148. else
  149. exitcode=1
  150. echo func_ret_success failed.
  151. fi
  152. if func_ret_failure; then
  153. exitcode=1
  154. echo func_ret_failure succeeded.
  155. fi
  156. test \$exitcode = 0) || { (exit 1); exit 1; }
  157. (
  158. as_lineno_1=\$LINENO
  159. as_lineno_2=\$LINENO
  160. as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\`
  161. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  162. test \"x\$as_lineno_3\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  163. ") 2> /dev/null; then
  164. :
  165. else
  166. as_candidate_shells=
  167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170. IFS=$as_save_IFS
  171. test -z "$as_dir" && as_dir=.
  172. case $as_dir in
  173. /*)
  174. for as_base in sh bash ksh sh5; do
  175. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  176. done
  177. esac
  178. done
  179. for as_shell in $as_candidate_shells $SHELL; do
  180. if { $as_shell 2> /dev/null <<\_ASEOF
  181. # Be Bourne compatible
  182. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  183. emulate sh
  184. NULLCMD=:
  185. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  186. # is contrary to our usage. Disable this feature.
  187. alias -g '${1+"$@"}'='"$@"'
  188. setopt NO_GLOB_SUBST
  189. elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  190. set -o posix
  191. fi
  192. BIN_SH=xpg4; export BIN_SH # for Tru64
  193. DUALCASE=1; export DUALCASE # for MKS sh
  194. :
  195. _ASEOF
  196. }; then
  197. CONFIG_SHELL=$as_shell
  198. as_have_required=yes
  199. if { $as_shell 2> /dev/null <<\_ASEOF
  200. # Be Bourne compatible
  201. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  202. emulate sh
  203. NULLCMD=:
  204. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  205. # is contrary to our usage. Disable this feature.
  206. alias -g '${1+"$@"}'='"$@"'
  207. setopt NO_GLOB_SUBST
  208. elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  209. set -o posix
  210. fi
  211. BIN_SH=xpg4; export BIN_SH # for Tru64
  212. DUALCASE=1; export DUALCASE # for MKS sh
  213. :
  214. (func_return () {
  215. (exit $1)
  216. }
  217. func_success () {
  218. func_return 0
  219. }
  220. func_failure () {
  221. func_return 1
  222. }
  223. func_ret_success () {
  224. return 0
  225. }
  226. func_ret_failure () {
  227. return 1
  228. }
  229. exitcode=0
  230. if func_success; then
  231. :
  232. else
  233. exitcode=1
  234. echo func_failure succeeded.
  235. fi
  236. if func_failure; then
  237. exitcode=1
  238. echo func_success failed.
  239. fi
  240. if func_ret_success; then
  241. :
  242. else
  243. exitcode=1
  244. echo func_ret_success failed.
  245. fi
  246. if func_ret_failure; then
  247. exitcode=1
  248. echo func_ret_failure succeeded.
  249. fi
  250. test $exitcode = 0) || { (exit 1); exit 1; }
  251. (
  252. as_lineno_1=$LINENO
  253. as_lineno_2=$LINENO
  254. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  255. test "x$as_lineno_1" != "x$as_lineno_2" &&
  256. test "x$as_lineno_3" = "x$as_lineno_2") || { (exit 1); exit 1; }
  257. _ASEOF
  258. }; then
  259. break
  260. fi
  261. fi
  262. done
  263. if test "x$CONFIG_SHELL" != x; then
  264. for as_var in BASH_ENV ENV
  265. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  266. done
  267. export CONFIG_SHELL
  268. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  269. fi
  270. if test $as_have_required = no; then
  271. echo This script requires a shell more modern than all the
  272. echo shells that I found on your system. Please install a
  273. echo modern shell, or manually run the script under such a
  274. echo shell if you do have one.
  275. { (exit 1); exit 1; }
  276. fi
  277. fi
  278. fi
  279. (eval "func_return () {
  280. (exit \$1)
  281. }
  282. func_success () {
  283. func_return 0
  284. }
  285. func_failure () {
  286. func_return 1
  287. }
  288. func_ret_success () {
  289. return 0
  290. }
  291. func_ret_failure () {
  292. return 1
  293. }
  294. exitcode=0
  295. if func_success; then
  296. :
  297. else
  298. exitcode=1
  299. echo func_failure succeeded.
  300. fi
  301. if func_failure; then
  302. exitcode=1
  303. echo func_success failed.
  304. fi
  305. if func_ret_success; then
  306. :
  307. else
  308. exitcode=1
  309. echo func_ret_success failed.
  310. fi
  311. if func_ret_failure; then
  312. exitcode=1
  313. echo func_ret_failure succeeded.
  314. fi
  315. test \$exitcode = 0") || {
  316. echo No shell found that supports shell functions.
  317. echo Please tell autoconf@gnu.org about your system,
  318. echo including any error possibly output before this
  319. echo message
  320. }
  321. as_lineno_1=$LINENO
  322. as_lineno_2=$LINENO
  323. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  324. test "x$as_lineno_1" != "x$as_lineno_2" &&
  325. test "x$as_lineno_3" = "x$as_lineno_2" || {
  326. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  327. # uniformly replaced by the line number. The first 'sed' inserts a
  328. # line-number line after each line using $LINENO; the second 'sed'
  329. # does the real work. The second script uses 'N' to pair each
  330. # line-number line with the line containing $LINENO, and appends
  331. # trailing '-' during substitution so that $LINENO is not a special
  332. # case at line end.
  333. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  334. # scripts with optimization help from Paolo Bonzini. Blame Lee
  335. # E. McMahon (1931-1989) for sed's syntax. :-)
  336. sed -n '
  337. p
  338. /[$]LINENO/=
  339. ' <$as_myself |
  340. sed '
  341. s,[$]LINENO.*,&-,
  342. t lineno
  343. b
  344. : lineno
  345. N
  346. : loop
  347. s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
  348. t loop
  349. s,-\n.*,,
  350. ' >$as_me.lineno &&
  351. chmod +x $as_me.lineno ||
  352. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  353. { (exit 1); exit 1; }; }
  354. # Don't try to exec as it changes $[0], causing all sort of problems
  355. # (the dirname of $[0] is not the place where we might find the
  356. # original and so on. Autoconf is especially sensible to this).
  357. . ./$as_me.lineno
  358. # Exit status is that of the last command.
  359. exit
  360. }
  361. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  362. *c*,-n*) ECHO_N= ECHO_C='
  363. ' ECHO_T=' ' ;;
  364. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  365. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  366. esac
  367. if expr a : '\(a\)' >/dev/null 2>&1; then
  368. as_expr=expr
  369. else
  370. as_expr=false
  371. fi
  372. rm -f conf$$ conf$$.exe conf$$.file
  373. echo >conf$$.file
  374. if ln -s conf$$.file conf$$ 2>/dev/null; then
  375. # We could just check for DJGPP; but this test a) works b) is more generic
  376. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  377. if test -f conf$$.exe; then
  378. # Don't use ln at all; we don't have any links
  379. as_ln_s='cp -p'
  380. else
  381. as_ln_s='ln -s'
  382. fi
  383. elif ln conf$$.file conf$$ 2>/dev/null; then
  384. as_ln_s=ln
  385. else
  386. as_ln_s='cp -p'
  387. fi
  388. rm -f conf$$ conf$$.exe conf$$.file
  389. if mkdir -p . 2>/dev/null; then
  390. as_mkdir_p=:
  391. else
  392. test -d ./-p && rmdir ./-p
  393. as_mkdir_p=false
  394. fi
  395. as_executable_p="test -f"
  396. # Sed expression to map a string onto a valid CPP name.
  397. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  398. # Sed expression to map a string onto a valid variable name.
  399. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  400. # IFS
  401. # We need space, tab and new line, in precisely that order.
  402. as_nl='
  403. '
  404. IFS=" $as_nl"
  405. # CDPATH.
  406. $as_unset CDPATH
  407. # Name of the host.
  408. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  409. # so uname gets run too.
  410. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  411. exec 6>&1
  412. #
  413. # Initializations.
  414. #
  415. ac_default_prefix=/usr/local
  416. ac_config_libobj_dir=.
  417. cross_compiling=no
  418. subdirs=
  419. MFLAGS=
  420. MAKEFLAGS=
  421. SHELL=${CONFIG_SHELL-/bin/sh}
  422. # Maximum number of lines to put in a shell here document.
  423. # This variable seems obsolete. It should probably be removed, and
  424. # only ac_max_sed_lines should be used.
  425. : ${ac_max_here_lines=38}
  426. # Identity of this package.
  427. PACKAGE_NAME=
  428. PACKAGE_TARNAME=
  429. PACKAGE_VERSION=
  430. PACKAGE_STRING=
  431. PACKAGE_BUGREPORT=
  432. ac_unique_file="src/roff/groff/groff.cpp"
  433. # Factoring default headers for most tests.
  434. ac_includes_default="\
  435. #include <stdio.h>
  436. #if HAVE_SYS_TYPES_H
  437. # include <sys/types.h>
  438. #endif
  439. #if HAVE_SYS_STAT_H
  440. # include <sys/stat.h>
  441. #endif
  442. #if STDC_HEADERS
  443. # include <stdlib.h>
  444. # include <stddef.h>
  445. #else
  446. # if HAVE_STDLIB_H
  447. # include <stdlib.h>
  448. # endif
  449. #endif
  450. #if HAVE_STRING_H
  451. # if !STDC_HEADERS && HAVE_MEMORY_H
  452. # include <memory.h>
  453. # endif
  454. # include <string.h>
  455. #endif
  456. #if HAVE_STRINGS_H
  457. # include <strings.h>
  458. #endif
  459. #if HAVE_INTTYPES_H
  460. # include <inttypes.h>
  461. #endif
  462. #if HAVE_STDINT_H
  463. # include <stdint.h>
  464. #endif
  465. #if HAVE_UNISTD_H
  466. # include <unistd.h>
  467. #endif"
  468. 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XDEVDIRS XPROGDIRS XLIBDIRS appresdir LPR LP LPQ PSPRINT DVIPRINT PERLPATH YACC RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD GREP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR ALT_GHOSTSCRIPT_PROGS GHOSTSCRIPT ac_ct_GHOSTSCRIPT pnmcut pnmcrop pnmtopng psselect pnmtops make_html make_install_html ALT_AWK_PROGS AWK ac_ct_AWK make_pdfdoc make_install_pdfdoc pnmtops_nosetpage LTLIBOBJS'
  469. ac_subst_files=''
  470. # Initialize some variables set by options.
  471. ac_init_help=
  472. ac_init_version=false
  473. # The variables have the same names as the options, with
  474. # dashes changed to underlines.
  475. cache_file=/dev/null
  476. exec_prefix=NONE
  477. no_create=
  478. no_recursion=
  479. prefix=NONE
  480. program_prefix=NONE
  481. program_suffix=NONE
  482. program_transform_name=s,x,x,
  483. silent=
  484. site=
  485. srcdir=
  486. verbose=
  487. x_includes=NONE
  488. x_libraries=NONE
  489. # Installation directory options.
  490. # These are left unexpanded so users can "make install exec_prefix=/foo"
  491. # and all the variables that are supposed to be based on exec_prefix
  492. # by default will actually change.
  493. # Use braces instead of parens because sh, perl, etc. also accept them.
  494. bindir='${exec_prefix}/bin'
  495. sbindir='${exec_prefix}/sbin'
  496. libexecdir='${exec_prefix}/libexec'
  497. datadir='${prefix}/share'
  498. sysconfdir='${prefix}/etc'
  499. sharedstatedir='${prefix}/com'
  500. localstatedir='${prefix}/var'
  501. libdir='${exec_prefix}/lib'
  502. includedir='${prefix}/include'
  503. oldincludedir='/usr/include'
  504. infodir='${prefix}/info'
  505. mandir='${prefix}/man'
  506. ac_prev=
  507. ac_dashdash=
  508. for ac_option
  509. do
  510. # If the previous option needs an argument, assign it.
  511. if test -n "$ac_prev"; then
  512. eval "$ac_prev=\$ac_option"
  513. ac_prev=
  514. continue
  515. fi
  516. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  517. # Accept the important Cygnus configure options, so we can diagnose typos.
  518. case $ac_dashdash$ac_option in
  519. --)
  520. ac_dashdash=yes ;;
  521. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  522. ac_prev=bindir ;;
  523. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  524. bindir=$ac_optarg ;;
  525. -build | --build | --buil | --bui | --bu)
  526. ac_prev=build_alias ;;
  527. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  528. build_alias=$ac_optarg ;;
  529. -cache-file | --cache-file | --cache-fil | --cache-fi \
  530. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  531. ac_prev=cache_file ;;
  532. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  533. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  534. cache_file=$ac_optarg ;;
  535. --config-cache | -C)
  536. cache_file=config.cache ;;
  537. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  538. ac_prev=datadir ;;
  539. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  540. | --da=*)
  541. datadir=$ac_optarg ;;
  542. -disable-* | --disable-*)
  543. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  544. # Reject names that are not valid shell variable names.
  545. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  546. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  547. { (exit 1); exit 1; }; }
  548. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  549. eval "enable_$ac_feature=no" ;;
  550. -enable-* | --enable-*)
  551. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  552. # Reject names that are not valid shell variable names.
  553. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  554. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  555. { (exit 1); exit 1; }; }
  556. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  557. case $ac_option in
  558. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  559. *) ac_optarg=yes ;;
  560. esac
  561. eval "enable_$ac_feature='$ac_optarg'" ;;
  562. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  563. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  564. | --exec | --exe | --ex)
  565. ac_prev=exec_prefix ;;
  566. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  567. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  568. | --exec=* | --exe=* | --ex=*)
  569. exec_prefix=$ac_optarg ;;
  570. -gas | --gas | --ga | --g)
  571. # Obsolete; use --with-gas.
  572. with_gas=yes ;;
  573. -help | --help | --hel | --he | -h)
  574. ac_init_help=long ;;
  575. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  576. ac_init_help=recursive ;;
  577. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  578. ac_init_help=short ;;
  579. -host | --host | --hos | --ho)
  580. ac_prev=host_alias ;;
  581. -host=* | --host=* | --hos=* | --ho=*)
  582. host_alias=$ac_optarg ;;
  583. -includedir | --includedir | --includedi | --included | --include \
  584. | --includ | --inclu | --incl | --inc)
  585. ac_prev=includedir ;;
  586. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  587. | --includ=* | --inclu=* | --incl=* | --inc=*)
  588. includedir=$ac_optarg ;;
  589. -infodir | --infodir | --infodi | --infod | --info | --inf)
  590. ac_prev=infodir ;;
  591. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  592. infodir=$ac_optarg ;;
  593. -libdir | --libdir | --libdi | --libd)
  594. ac_prev=libdir ;;
  595. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  596. libdir=$ac_optarg ;;
  597. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  598. | --libexe | --libex | --libe)
  599. ac_prev=libexecdir ;;
  600. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  601. | --libexe=* | --libex=* | --libe=*)
  602. libexecdir=$ac_optarg ;;
  603. -localstatedir | --localstatedir | --localstatedi | --localstated \
  604. | --localstate | --localstat | --localsta | --localst \
  605. | --locals | --local | --loca | --loc | --lo)
  606. ac_prev=localstatedir ;;
  607. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  608. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  609. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  610. localstatedir=$ac_optarg ;;
  611. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  612. ac_prev=mandir ;;
  613. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  614. mandir=$ac_optarg ;;
  615. -nfp | --nfp | --nf)
  616. # Obsolete; use --without-fp.
  617. with_fp=no ;;
  618. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  619. | --no-cr | --no-c | -n)
  620. no_create=yes ;;
  621. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  622. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  623. no_recursion=yes ;;
  624. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  625. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  626. | --oldin | --oldi | --old | --ol | --o)
  627. ac_prev=oldincludedir ;;
  628. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  629. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  630. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  631. oldincludedir=$ac_optarg ;;
  632. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  633. ac_prev=prefix ;;
  634. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  635. prefix=$ac_optarg ;;
  636. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  637. | --program-pre | --program-pr | --program-p)
  638. ac_prev=program_prefix ;;
  639. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  640. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  641. program_prefix=$ac_optarg ;;
  642. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  643. | --program-suf | --program-su | --program-s)
  644. ac_prev=program_suffix ;;
  645. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  646. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  647. program_suffix=$ac_optarg ;;
  648. -program-transform-name | --program-transform-name \
  649. | --program-transform-nam | --program-transform-na \
  650. | --program-transform-n | --program-transform- \
  651. | --program-transform | --program-transfor \
  652. | --program-transfo | --program-transf \
  653. | --program-trans | --program-tran \
  654. | --progr-tra | --program-tr | --program-t)
  655. ac_prev=program_transform_name ;;
  656. -program-transform-name=* | --program-transform-name=* \
  657. | --program-transform-nam=* | --program-transform-na=* \
  658. | --program-transform-n=* | --program-transform-=* \
  659. | --program-transform=* | --program-transfor=* \
  660. | --program-transfo=* | --program-transf=* \
  661. | --program-trans=* | --program-tran=* \
  662. | --progr-tra=* | --program-tr=* | --program-t=*)
  663. program_transform_name=$ac_optarg ;;
  664. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  665. | -silent | --silent | --silen | --sile | --sil)
  666. silent=yes ;;
  667. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  668. ac_prev=sbindir ;;
  669. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  670. | --sbi=* | --sb=*)
  671. sbindir=$ac_optarg ;;
  672. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  673. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  674. | --sharedst | --shareds | --shared | --share | --shar \
  675. | --sha | --sh)
  676. ac_prev=sharedstatedir ;;
  677. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  678. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  679. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  680. | --sha=* | --sh=*)
  681. sharedstatedir=$ac_optarg ;;
  682. -site | --site | --sit)
  683. ac_prev=site ;;
  684. -site=* | --site=* | --sit=*)
  685. site=$ac_optarg ;;
  686. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  687. ac_prev=srcdir ;;
  688. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  689. srcdir=$ac_optarg ;;
  690. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  691. | --syscon | --sysco | --sysc | --sys | --sy)
  692. ac_prev=sysconfdir ;;
  693. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  694. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  695. sysconfdir=$ac_optarg ;;
  696. -target | --target | --targe | --targ | --tar | --ta | --t)
  697. ac_prev=target_alias ;;
  698. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  699. target_alias=$ac_optarg ;;
  700. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  701. verbose=yes ;;
  702. -version | --version | --versio | --versi | --vers | -V)
  703. ac_init_version=: ;;
  704. -with-* | --with-*)
  705. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  706. # Reject names that are not valid shell variable names.
  707. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  708. { echo "$as_me: error: invalid package name: $ac_package" >&2
  709. { (exit 1); exit 1; }; }
  710. ac_package=`echo $ac_package| sed 's/-/_/g'`
  711. case $ac_option in
  712. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  713. *) ac_optarg=yes ;;
  714. esac
  715. eval "with_$ac_package='$ac_optarg'" ;;
  716. -without-* | --without-*)
  717. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  718. # Reject names that are not valid shell variable names.
  719. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  720. { echo "$as_me: error: invalid package name: $ac_package" >&2
  721. { (exit 1); exit 1; }; }
  722. ac_package=`echo $ac_package | sed 's/-/_/g'`
  723. eval "with_$ac_package=no" ;;
  724. --x)
  725. # Obsolete; use --with-x.
  726. with_x=yes ;;
  727. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  728. | --x-incl | --x-inc | --x-in | --x-i)
  729. ac_prev=x_includes ;;
  730. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  731. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  732. x_includes=$ac_optarg ;;
  733. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  734. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  735. ac_prev=x_libraries ;;
  736. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  737. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  738. x_libraries=$ac_optarg ;;
  739. -*) { echo "$as_me: error: unrecognized option: $ac_option
  740. Try \`$0 --help' for more information." >&2
  741. { (exit 1); exit 1; }; }
  742. ;;
  743. *=*)
  744. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  745. # Reject names that are not valid shell variable names.
  746. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  747. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  748. { (exit 1); exit 1; }; }
  749. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  750. eval "$ac_envvar='$ac_optarg'"
  751. export $ac_envvar ;;
  752. *)
  753. # FIXME: should be removed in autoconf 3.0.
  754. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  755. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  756. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  757. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  758. ;;
  759. esac
  760. done
  761. if test -n "$ac_prev"; then
  762. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  763. { echo "$as_me: error: missing argument to $ac_option" >&2
  764. { (exit 1); exit 1; }; }
  765. fi
  766. # Be sure to have absolute directory names.
  767. for ac_var in exec_prefix prefix
  768. do
  769. eval ac_val=$`echo $ac_var`
  770. case $ac_val in
  771. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  772. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  773. { (exit 1); exit 1; }; };;
  774. esac
  775. done
  776. # Be sure to have absolute directory names.
  777. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  778. localstatedir libdir includedir oldincludedir infodir mandir
  779. do
  780. eval ac_val=$`echo $ac_var`
  781. case $ac_val in
  782. [\\/$]* | ?:[\\/]* ) ;;
  783. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  784. { (exit 1); exit 1; }; };;
  785. esac
  786. done
  787. # There might be people who depend on the old broken behavior: `$host'
  788. # used to hold the argument of --host etc.
  789. # FIXME: To remove some day.
  790. build=$build_alias
  791. host=$host_alias
  792. target=$target_alias
  793. # FIXME: To remove some day.
  794. if test "x$host_alias" != x; then
  795. if test "x$build_alias" = x; then
  796. cross_compiling=maybe
  797. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  798. If a cross compiler is detected then cross compile mode will be used." >&2
  799. elif test "x$build_alias" != "x$host_alias"; then
  800. cross_compiling=yes
  801. fi
  802. fi
  803. ac_tool_prefix=
  804. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  805. test "$silent" = yes && exec 6>/dev/null
  806. # Find the source files, if location was not specified.
  807. if test -z "$srcdir"; then
  808. ac_srcdir_defaulted=yes
  809. # Try the directory containing this script, then its parent.
  810. ac_confdir=`(dirname "$0") 2>/dev/null ||
  811. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  812. X"$0" : 'X\(//\)[^/]' \| \
  813. X"$0" : 'X\(//\)$' \| \
  814. X"$0" : 'X\(/\)' \| \
  815. . : '\(.\)' 2>/dev/null ||
  816. echo X"$0" |
  817. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  818. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  819. /^X\(\/\/\)$/{ s//\1/; q; }
  820. /^X\(\/\).*/{ s//\1/; q; }
  821. s/.*/./; q'`
  822. srcdir=$ac_confdir
  823. if test ! -r $srcdir/$ac_unique_file; then
  824. srcdir=..
  825. fi
  826. else
  827. ac_srcdir_defaulted=no
  828. fi
  829. if test ! -r $srcdir/$ac_unique_file; then
  830. if test "$ac_srcdir_defaulted" = yes; then
  831. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  832. { (exit 1); exit 1; }; }
  833. else
  834. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  835. { (exit 1); exit 1; }; }
  836. fi
  837. fi
  838. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  839. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  840. { (exit 1); exit 1; }; }
  841. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  842. ac_env_build_alias_set=${build_alias+set}
  843. ac_env_build_alias_value=$build_alias
  844. ac_cv_env_build_alias_set=${build_alias+set}
  845. ac_cv_env_build_alias_value=$build_alias
  846. ac_env_host_alias_set=${host_alias+set}
  847. ac_env_host_alias_value=$host_alias
  848. ac_cv_env_host_alias_set=${host_alias+set}
  849. ac_cv_env_host_alias_value=$host_alias
  850. ac_env_target_alias_set=${target_alias+set}
  851. ac_env_target_alias_value=$target_alias
  852. ac_cv_env_target_alias_set=${target_alias+set}
  853. ac_cv_env_target_alias_value=$target_alias
  854. ac_env_CC_set=${CC+set}
  855. ac_env_CC_value=$CC
  856. ac_cv_env_CC_set=${CC+set}
  857. ac_cv_env_CC_value=$CC
  858. ac_env_CFLAGS_set=${CFLAGS+set}
  859. ac_env_CFLAGS_value=$CFLAGS
  860. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  861. ac_cv_env_CFLAGS_value=$CFLAGS
  862. ac_env_LDFLAGS_set=${LDFLAGS+set}
  863. ac_env_LDFLAGS_value=$LDFLAGS
  864. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  865. ac_cv_env_LDFLAGS_value=$LDFLAGS
  866. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  867. ac_env_CPPFLAGS_value=$CPPFLAGS
  868. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  869. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  870. ac_env_CXX_set=${CXX+set}
  871. ac_env_CXX_value=$CXX
  872. ac_cv_env_CXX_set=${CXX+set}
  873. ac_cv_env_CXX_value=$CXX
  874. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  875. ac_env_CXXFLAGS_value=$CXXFLAGS
  876. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  877. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  878. ac_env_CPP_set=${CPP+set}
  879. ac_env_CPP_value=$CPP
  880. ac_cv_env_CPP_set=${CPP+set}
  881. ac_cv_env_CPP_value=$CPP
  882. #
  883. # Report the --help message.
  884. #
  885. if test "$ac_init_help" = "long"; then
  886. # Omit some internal or obsolete options to make the list less imposing.
  887. # This message is too long to be a string in the A/UX 3.1 sh.
  888. cat <<_ACEOF
  889. \`configure' configures this package to adapt to many kinds of systems.
  890. Usage: $0 [OPTION]... [VAR=VALUE]...
  891. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  892. VAR=VALUE. See below for descriptions of some of the useful variables.
  893. Defaults for the options are specified in brackets.
  894. Configuration:
  895. -h, --help display this help and exit
  896. --help=short display options specific to this package
  897. --help=recursive display the short help of all the included packages
  898. -V, --version display version information and exit
  899. -q, --quiet, --silent do not print \`checking...' messages
  900. --cache-file=FILE cache test results in FILE [disabled]
  901. -C, --config-cache alias for \`--cache-file=config.cache'
  902. -n, --no-create do not create output files
  903. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  904. _ACEOF
  905. cat <<_ACEOF
  906. Installation directories:
  907. --prefix=PREFIX install architecture-independent files in PREFIX
  908. [$ac_default_prefix]
  909. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  910. [PREFIX]
  911. By default, \`make install' will install all the files in
  912. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  913. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  914. for instance \`--prefix=\$HOME'.
  915. For better control, use the options below.
  916. Fine tuning of the installation directories:
  917. --bindir=DIR user executables [EPREFIX/bin]
  918. --sbindir=DIR system admin executables [EPREFIX/sbin]
  919. --libexecdir=DIR program executables [EPREFIX/libexec]
  920. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  921. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  922. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  923. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  924. --libdir=DIR object code libraries [EPREFIX/lib]
  925. --includedir=DIR C header files [PREFIX/include]
  926. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  927. --infodir=DIR info documentation [PREFIX/info]
  928. --mandir=DIR man documentation [PREFIX/man]
  929. _ACEOF
  930. cat <<\_ACEOF
  931. X features:
  932. --x-includes=DIR X include files are in DIR
  933. --x-libraries=DIR X library files are in DIR
  934. _ACEOF
  935. fi
  936. if test -n "$ac_init_help"; then
  937. cat <<\_ACEOF
  938. Optional Packages:
  939. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  940. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  941. --with-x use the X Window System
  942. --with-appresdir=DIR X11 application resource files
  943. --with-alt-gs=LIST alternative names for ghostscript executable
  944. --with-gs=PROG actual [/path/]name of ghostscript executable
  945. --with-alt-awk=LIST alternative names for awk executable
  946. --with-awk=PROG actual [/path/]name of awk executable
  947. Some influential environment variables:
  948. CC C compiler command
  949. CFLAGS C compiler flags
  950. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  951. nonstandard directory <lib dir>
  952. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  953. headers in a nonstandard directory <include dir>
  954. CXX C++ compiler command
  955. CXXFLAGS C++ compiler flags
  956. CPP C preprocessor
  957. Use these variables to override the choices made by `configure' or to help
  958. it to find libraries and programs with nonstandard names/locations.
  959. _ACEOF
  960. fi
  961. if test "$ac_init_help" = "recursive"; then
  962. # If there are subdirs, report their specific --help.
  963. ac_popdir=`pwd`
  964. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  965. test -d $ac_dir || continue
  966. ac_builddir=.
  967. if test "$ac_dir" != .; then
  968. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  969. # A "../" for each directory in $ac_dir_suffix.
  970. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  971. else
  972. ac_dir_suffix= ac_top_builddir=
  973. fi
  974. case $srcdir in
  975. .) # No --srcdir option. We are building in place.
  976. ac_srcdir=.
  977. if test -z "$ac_top_builddir"; then
  978. ac_top_srcdir=.
  979. else
  980. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  981. fi ;;
  982. [\\/]* | ?:[\\/]* ) # Absolute name.
  983. ac_srcdir=$srcdir$ac_dir_suffix;
  984. ac_top_srcdir=$srcdir ;;
  985. *) # Relative name.
  986. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  987. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  988. esac
  989. # Do not use `cd foo && pwd` to compute absolute names, because
  990. # the directories may not exist.
  991. case `pwd` in
  992. .) ac_abs_builddir="$ac_dir";;
  993. *)
  994. case "$ac_dir" in
  995. .) ac_abs_builddir=`pwd`;;
  996. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  997. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  998. esac;;
  999. esac
  1000. case $ac_abs_builddir in
  1001. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1002. *)
  1003. case ${ac_top_builddir}. in
  1004. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1005. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1006. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1007. esac;;
  1008. esac
  1009. case $ac_abs_builddir in
  1010. .) ac_abs_srcdir=$ac_srcdir;;
  1011. *)
  1012. case $ac_srcdir in
  1013. .) ac_abs_srcdir=$ac_abs_builddir;;
  1014. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1015. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1016. esac;;
  1017. esac
  1018. case $ac_abs_builddir in
  1019. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1020. *)
  1021. case $ac_top_srcdir in
  1022. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1023. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1024. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1025. esac;;
  1026. esac
  1027. cd $ac_dir
  1028. # Check for guested configure; otherwise get Cygnus style configure.
  1029. if test -f $ac_srcdir/configure.gnu; then
  1030. echo
  1031. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1032. elif test -f $ac_srcdir/configure; then
  1033. echo
  1034. $SHELL $ac_srcdir/configure --help=recursive
  1035. elif test -f $ac_srcdir/configure.ac ||
  1036. test -f $ac_srcdir/configure.in; then
  1037. echo
  1038. $ac_configure --help
  1039. else
  1040. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1041. fi
  1042. cd "$ac_popdir"
  1043. done
  1044. fi
  1045. test -n "$ac_init_help" && exit 0
  1046. if $ac_init_version; then
  1047. cat <<\_ACEOF
  1048. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
  1049. 2003, 2004 Free Software Foundation, Inc.
  1050. This configure script is free software; the Free Software Foundation
  1051. gives unlimited permission to copy, distribute and modify it.
  1052. _ACEOF
  1053. exit 0
  1054. fi
  1055. exec 5>config.log
  1056. cat >&5 <<_ACEOF
  1057. This file contains any messages produced by compilers while
  1058. running configure, to aid debugging if configure makes a mistake.
  1059. It was created by $as_me, which was
  1060. generated by GNU Autoconf 2.59b. Invocation command line was
  1061. $ $0 $@
  1062. _ACEOF
  1063. {
  1064. cat <<_ASUNAME
  1065. ## --------- ##
  1066. ## Platform. ##
  1067. ## --------- ##
  1068. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1069. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1070. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1071. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1072. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1073. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1074. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1075. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1076. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1077. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1078. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1079. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1080. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1081. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1082. _ASUNAME
  1083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1084. for as_dir in $PATH
  1085. do
  1086. IFS=$as_save_IFS
  1087. test -z "$as_dir" && as_dir=.
  1088. echo "PATH: $as_dir"
  1089. done
  1090. } >&5
  1091. cat >&5 <<_ACEOF
  1092. ## ----------- ##
  1093. ## Core tests. ##
  1094. ## ----------- ##
  1095. _ACEOF
  1096. # Keep a trace of the command line.
  1097. # Strip out --no-create and --no-recursion so they do not pile up.
  1098. # Strip out --silent because we don't want to record it for future runs.
  1099. # Also quote any args containing shell meta-characters.
  1100. # Make two passes to allow for proper duplicate-argument suppression.
  1101. ac_configure_args=
  1102. ac_configure_args0=
  1103. ac_configure_args1=
  1104. ac_sep=
  1105. ac_must_keep_next=false
  1106. for ac_pass in 1 2
  1107. do
  1108. for ac_arg
  1109. do
  1110. case $ac_arg in
  1111. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1112. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1113. | -silent | --silent | --silen | --sile | --sil)
  1114. continue ;;
  1115. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1116. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1117. esac
  1118. case $ac_pass in
  1119. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1120. 2)
  1121. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1122. if test $ac_must_keep_next = true; then
  1123. ac_must_keep_next=false # Got value, back to normal.
  1124. else
  1125. case $ac_arg in
  1126. *=* | --config-cache | -C | -disable-* | --disable-* \
  1127. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1128. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1129. | -with-* | --with-* | -without-* | --without-* | --x)
  1130. case "$ac_configure_args0 " in
  1131. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1132. esac
  1133. ;;
  1134. -* ) ac_must_keep_next=true ;;
  1135. esac
  1136. fi
  1137. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1138. # Get rid of the leading space.
  1139. ac_sep=" "
  1140. ;;
  1141. esac
  1142. done
  1143. done
  1144. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1145. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1146. # When interrupted or exit'd, cleanup temporary files, and complete
  1147. # config.log. We remove comments because anyway the quotes in there
  1148. # would cause problems or look ugly.
  1149. # WARNING: Be sure not to use single quotes in there, as some shells,
  1150. # such as our DU 5.0 friend, will then `close' the trap.
  1151. trap 'exit_status=$?
  1152. # Save into config.log some information that might help in debugging.
  1153. {
  1154. echo
  1155. cat <<\_ASBOX
  1156. ## ---------------- ##
  1157. ## Cache variables. ##
  1158. ## ---------------- ##
  1159. _ASBOX
  1160. echo
  1161. # The following way of writing the cache mishandles newlines in values,
  1162. {
  1163. (set) 2>&1 |
  1164. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1165. *ac_space=\ *)
  1166. sed -n \
  1167. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1168. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1169. ;;
  1170. *)
  1171. sed -n \
  1172. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1173. ;;
  1174. esac;
  1175. }
  1176. echo
  1177. cat <<\_ASBOX
  1178. ## ----------------- ##
  1179. ## Output variables. ##
  1180. ## ----------------- ##
  1181. _ASBOX
  1182. echo
  1183. for ac_var in $ac_subst_vars
  1184. do
  1185. eval ac_val=$`echo $ac_var`
  1186. echo "$ac_var='"'"'$ac_val'"'"'"
  1187. done | sort
  1188. echo
  1189. if test -n "$ac_subst_files"; then
  1190. cat <<\_ASBOX
  1191. ## ------------- ##
  1192. ## Output files. ##
  1193. ## ------------- ##
  1194. _ASBOX
  1195. echo
  1196. for ac_var in $ac_subst_files
  1197. do
  1198. eval ac_val=$`echo $ac_var`
  1199. echo "$ac_var='"'"'$ac_val'"'"'"
  1200. done | sort
  1201. echo
  1202. fi
  1203. if test -s confdefs.h; then
  1204. cat <<\_ASBOX
  1205. ## ----------- ##
  1206. ## confdefs.h. ##
  1207. ## ----------- ##
  1208. _ASBOX
  1209. echo
  1210. sed "/^$/d" confdefs.h | sort
  1211. echo
  1212. fi
  1213. test "$ac_signal" != 0 &&
  1214. echo "$as_me: caught signal $ac_signal"
  1215. echo "$as_me: exit $exit_status"
  1216. } >&5
  1217. rm -f core *.core &&
  1218. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1219. exit $exit_status
  1220. ' 0
  1221. for ac_signal in 1 2 13 15; do
  1222. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1223. done
  1224. ac_signal=0
  1225. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1226. rm -f -r conftest* confdefs.h
  1227. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1228. # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
  1229. ac_space=' '
  1230. echo "$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space" >confdefs.h
  1231. # Predefined preprocessor variables.
  1232. cat >>confdefs.h <<_ACEOF
  1233. #define PACKAGE_NAME "$PACKAGE_NAME"
  1234. _ACEOF
  1235. cat >>confdefs.h <<_ACEOF
  1236. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1237. _ACEOF
  1238. cat >>confdefs.h <<_ACEOF
  1239. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1240. _ACEOF
  1241. cat >>confdefs.h <<_ACEOF
  1242. #define PACKAGE_STRING "$PACKAGE_STRING"
  1243. _ACEOF
  1244. cat >>confdefs.h <<_ACEOF
  1245. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1246. _ACEOF
  1247. # Let the site file select an alternate cache file if it wants to.
  1248. # Prefer explicitly selected file to automatically selected ones.
  1249. if test -z "$CONFIG_SITE"; then
  1250. if test "x$prefix" != xNONE; then
  1251. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1252. else
  1253. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1254. fi
  1255. fi
  1256. for ac_site_file in $CONFIG_SITE; do
  1257. if test -r "$ac_site_file"; then
  1258. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1259. echo "$as_me: loading site script $ac_site_file" >&6;}
  1260. sed 's/^/| /' "$ac_site_file" >&5
  1261. . "$ac_site_file"
  1262. fi
  1263. done
  1264. if test -r "$cache_file"; then
  1265. # Some versions of bash will fail to source /dev/null (special
  1266. # files actually), so we avoid doing that.
  1267. if test -f "$cache_file"; then
  1268. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1269. echo "$as_me: loading cache $cache_file" >&6;}
  1270. case $cache_file in
  1271. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1272. *) . ./$cache_file;;
  1273. esac
  1274. fi
  1275. else
  1276. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1277. echo "$as_me: creating cache $cache_file" >&6;}
  1278. >$cache_file
  1279. fi
  1280. # Check that the precious variables saved in the cache have kept the same
  1281. # value.
  1282. ac_cache_corrupted=false
  1283. for ac_var in `(set) 2>&1 |
  1284. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1285. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1286. eval ac_new_set=\$ac_env_${ac_var}_set
  1287. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1288. eval ac_new_val="\$ac_env_${ac_var}_value"
  1289. case $ac_old_set,$ac_new_set in
  1290. set,)
  1291. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1292. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1293. ac_cache_corrupted=: ;;
  1294. ,set)
  1295. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1296. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1297. ac_cache_corrupted=: ;;
  1298. ,);;
  1299. *)
  1300. if test "x$ac_old_val" != "x$ac_new_val"; then
  1301. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1302. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1303. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1304. echo "$as_me: former value: $ac_old_val" >&2;}
  1305. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1306. echo "$as_me: current value: $ac_new_val" >&2;}
  1307. ac_cache_corrupted=:
  1308. fi;;
  1309. esac
  1310. # Pass precious variables to config.status.
  1311. if test "$ac_new_set" = set; then
  1312. case $ac_new_val in
  1313. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1314. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1315. *) ac_arg=$ac_var=$ac_new_val ;;
  1316. esac
  1317. case " $ac_configure_args " in
  1318. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1319. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1320. esac
  1321. fi
  1322. done
  1323. if $ac_cache_corrupted; then
  1324. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1325. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1326. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1327. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1328. { (exit 1); exit 1; }; }
  1329. fi
  1330. ac_ext=c
  1331. ac_cpp='$CPP $CPPFLAGS'
  1332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1335. ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
  1336. # checks for programs
  1337. ac_ext=c
  1338. ac_cpp='$CPP $CPPFLAGS'
  1339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1342. if test -n "$ac_tool_prefix"; then
  1343. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1344. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1345. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1346. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1347. if test "${ac_cv_prog_CC+set}" = set; then
  1348. echo $ECHO_N "(cached) $ECHO_C" >&6
  1349. else
  1350. if test -n "$CC"; then
  1351. ac_cv_prog_CC="$CC" # Let the user override the test.
  1352. else
  1353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1354. for as_dir in $PATH
  1355. do
  1356. IFS=$as_save_IFS
  1357. test -z "$as_dir" && as_dir=.
  1358. for ac_exec_ext in '' $ac_executable_extensions; do
  1359. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1360. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1361. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1362. break 2
  1363. fi
  1364. done
  1365. done
  1366. fi
  1367. fi
  1368. CC=$ac_cv_prog_CC
  1369. if test -n "$CC"; then
  1370. echo "$as_me:$LINENO: result: $CC" >&5
  1371. echo "${ECHO_T}$CC" >&6
  1372. else
  1373. echo "$as_me:$LINENO: result: no" >&5
  1374. echo "${ECHO_T}no" >&6
  1375. fi
  1376. fi
  1377. if test -z "$ac_cv_prog_CC"; then
  1378. ac_ct_CC=$CC
  1379. # Extract the first word of "gcc", so it can be a program name with args.
  1380. set dummy gcc; ac_word=$2
  1381. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1382. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1383. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1384. echo $ECHO_N "(cached) $ECHO_C" >&6
  1385. else
  1386. if test -n "$ac_ct_CC"; then
  1387. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1388. else
  1389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1390. for as_dir in $PATH
  1391. do
  1392. IFS=$as_save_IFS
  1393. test -z "$as_dir" && as_dir=.
  1394. for ac_exec_ext in '' $ac_executable_extensions; do
  1395. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1396. ac_cv_prog_ac_ct_CC="gcc"
  1397. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1398. break 2
  1399. fi
  1400. done
  1401. done
  1402. fi
  1403. fi
  1404. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1405. if test -n "$ac_ct_CC"; then
  1406. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1407. echo "${ECHO_T}$ac_ct_CC" >&6
  1408. else
  1409. echo "$as_me:$LINENO: result: no" >&5
  1410. echo "${ECHO_T}no" >&6
  1411. fi
  1412. if test "x$ac_ct_CC" = x; then
  1413. CC=""
  1414. else
  1415. if test "$build" != "$host"; then
  1416. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1417. whose name does not start with the host triplet. If you think this
  1418. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1419. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1420. whose name does not start with the host triplet. If you think this
  1421. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1422. fi
  1423. CC=$ac_ct_CC
  1424. fi
  1425. else
  1426. CC="$ac_cv_prog_CC"
  1427. fi
  1428. if test -z "$CC"; then
  1429. if test -n "$ac_tool_prefix"; then
  1430. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1431. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1432. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1433. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1434. if test "${ac_cv_prog_CC+set}" = set; then
  1435. echo $ECHO_N "(cached) $ECHO_C" >&6
  1436. else
  1437. if test -n "$CC"; then
  1438. ac_cv_prog_CC="$CC" # Let the user override the test.
  1439. else
  1440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1441. for as_dir in $PATH
  1442. do
  1443. IFS=$as_save_IFS
  1444. test -z "$as_dir" && as_dir=.
  1445. for ac_exec_ext in '' $ac_executable_extensions; do
  1446. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1447. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1448. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1449. break 2
  1450. fi
  1451. done
  1452. done
  1453. fi
  1454. fi
  1455. CC=$ac_cv_prog_CC
  1456. if test -n "$CC"; then
  1457. echo "$as_me:$LINENO: result: $CC" >&5
  1458. echo "${ECHO_T}$CC" >&6
  1459. else
  1460. echo "$as_me:$LINENO: result: no" >&5
  1461. echo "${ECHO_T}no" >&6
  1462. fi
  1463. fi
  1464. if test -z "$ac_cv_prog_CC"; then
  1465. ac_ct_CC=$CC
  1466. # Extract the first word of "cc", so it can be a program name with args.
  1467. set dummy cc; ac_word=$2
  1468. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1469. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1470. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1471. echo $ECHO_N "(cached) $ECHO_C" >&6
  1472. else
  1473. if test -n "$ac_ct_CC"; then
  1474. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1475. else
  1476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1477. for as_dir in $PATH
  1478. do
  1479. IFS=$as_save_IFS
  1480. test -z "$as_dir" && as_dir=.
  1481. for ac_exec_ext in '' $ac_executable_extensions; do
  1482. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1483. ac_cv_prog_ac_ct_CC="cc"
  1484. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1485. break 2
  1486. fi
  1487. done
  1488. done
  1489. fi
  1490. fi
  1491. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1492. if test -n "$ac_ct_CC"; then
  1493. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1494. echo "${ECHO_T}$ac_ct_CC" >&6
  1495. else
  1496. echo "$as_me:$LINENO: result: no" >&5
  1497. echo "${ECHO_T}no" >&6
  1498. fi
  1499. if test "x$ac_ct_CC" = x; then
  1500. CC=""
  1501. else
  1502. if test "$build" != "$host"; then
  1503. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1504. whose name does not start with the host triplet. If you think this
  1505. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1506. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1507. whose name does not start with the host triplet. If you think this
  1508. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1509. fi
  1510. CC=$ac_ct_CC
  1511. fi
  1512. else
  1513. CC="$ac_cv_prog_CC"
  1514. fi
  1515. fi
  1516. if test -z "$CC"; then
  1517. # Extract the first word of "cc", so it can be a program name with args.
  1518. set dummy cc; ac_word=$2
  1519. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1520. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1521. if test "${ac_cv_prog_CC+set}" = set; then
  1522. echo $ECHO_N "(cached) $ECHO_C" >&6
  1523. else
  1524. if test -n "$CC"; then
  1525. ac_cv_prog_CC="$CC" # Let the user override the test.
  1526. else
  1527. ac_prog_rejected=no
  1528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1529. for as_dir in $PATH
  1530. do
  1531. IFS=$as_save_IFS
  1532. test -z "$as_dir" && as_dir=.
  1533. for ac_exec_ext in '' $ac_executable_extensions; do
  1534. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1535. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1536. ac_prog_rejected=yes
  1537. continue
  1538. fi
  1539. ac_cv_prog_CC="cc"
  1540. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1541. break 2
  1542. fi
  1543. done
  1544. done
  1545. if test $ac_prog_rejected = yes; then
  1546. # We found a bogon in the path, so make sure we never use it.
  1547. set dummy $ac_cv_prog_CC
  1548. shift
  1549. if test $# != 0; then
  1550. # We chose a different compiler from the bogus one.
  1551. # However, it has the same basename, so the bogon will be chosen
  1552. # first if we set CC to just the basename; use the full file name.
  1553. shift
  1554. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1555. fi
  1556. fi
  1557. fi
  1558. fi
  1559. CC=$ac_cv_prog_CC
  1560. if test -n "$CC"; then
  1561. echo "$as_me:$LINENO: result: $CC" >&5
  1562. echo "${ECHO_T}$CC" >&6
  1563. else
  1564. echo "$as_me:$LINENO: result: no" >&5
  1565. echo "${ECHO_T}no" >&6
  1566. fi
  1567. fi
  1568. if test -z "$CC"; then
  1569. if test -n "$ac_tool_prefix"; then
  1570. for ac_prog in cl
  1571. do
  1572. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1573. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1574. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1575. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1576. if test "${ac_cv_prog_CC+set}" = set; then
  1577. echo $ECHO_N "(cached) $ECHO_C" >&6
  1578. else
  1579. if test -n "$CC"; then
  1580. ac_cv_prog_CC="$CC" # Let the user override the test.
  1581. else
  1582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1583. for as_dir in $PATH
  1584. do
  1585. IFS=$as_save_IFS
  1586. test -z "$as_dir" && as_dir=.
  1587. for ac_exec_ext in '' $ac_executable_extensions; do
  1588. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1589. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1590. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1591. break 2
  1592. fi
  1593. done
  1594. done
  1595. fi
  1596. fi
  1597. CC=$ac_cv_prog_CC
  1598. if test -n "$CC"; then
  1599. echo "$as_me:$LINENO: result: $CC" >&5
  1600. echo "${ECHO_T}$CC" >&6
  1601. else
  1602. echo "$as_me:$LINENO: result: no" >&5
  1603. echo "${ECHO_T}no" >&6
  1604. fi
  1605. test -n "$CC" && break
  1606. done
  1607. fi
  1608. if test -z "$CC"; then
  1609. ac_ct_CC=$CC
  1610. for ac_prog in cl
  1611. do
  1612. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1613. set dummy $ac_prog; ac_word=$2
  1614. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1615. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1616. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1617. echo $ECHO_N "(cached) $ECHO_C" >&6
  1618. else
  1619. if test -n "$ac_ct_CC"; then
  1620. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1621. else
  1622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1623. for as_dir in $PATH
  1624. do
  1625. IFS=$as_save_IFS
  1626. test -z "$as_dir" && as_dir=.
  1627. for ac_exec_ext in '' $ac_executable_extensions; do
  1628. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1629. ac_cv_prog_ac_ct_CC="$ac_prog"
  1630. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1631. break 2
  1632. fi
  1633. done
  1634. done
  1635. fi
  1636. fi
  1637. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1638. if test -n "$ac_ct_CC"; then
  1639. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1640. echo "${ECHO_T}$ac_ct_CC" >&6
  1641. else
  1642. echo "$as_me:$LINENO: result: no" >&5
  1643. echo "${ECHO_T}no" >&6
  1644. fi
  1645. test -n "$ac_ct_CC" && break
  1646. done
  1647. if test "x$ac_ct_CC" = x; then
  1648. CC=""
  1649. else
  1650. if test "$build" != "$host"; then
  1651. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1652. whose name does not start with the host triplet. If you think this
  1653. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1654. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1655. whose name does not start with the host triplet. If you think this
  1656. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1657. fi
  1658. CC=$ac_ct_CC
  1659. fi
  1660. fi
  1661. fi
  1662. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1663. See \`config.log' for more details." >&5
  1664. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1665. See \`config.log' for more details." >&2;}
  1666. { (exit 1); exit 1; }; }
  1667. # Provide some information about the compiler.
  1668. echo "$as_me:$LINENO:" \
  1669. "checking for C compiler version" >&5
  1670. ac_compiler=`set X $ac_compile; echo $2`
  1671. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1672. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1673. ac_status=$?
  1674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1675. (exit $ac_status); }
  1676. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1677. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1678. ac_status=$?
  1679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1680. (exit $ac_status); }
  1681. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1682. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1683. ac_status=$?
  1684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1685. (exit $ac_status); }
  1686. cat >conftest.$ac_ext <<_ACEOF
  1687. /* confdefs.h. */
  1688. _ACEOF
  1689. cat confdefs.h >>conftest.$ac_ext
  1690. cat >>conftest.$ac_ext <<_ACEOF
  1691. /* end confdefs.h. */
  1692. int
  1693. main ()
  1694. {
  1695. ;
  1696. return 0;
  1697. }
  1698. _ACEOF
  1699. ac_clean_files_save=$ac_clean_files
  1700. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1701. # Try to create an executable without -o first, disregard a.out.
  1702. # It will help us diagnose broken compilers, and finding out an intuition
  1703. # of exeext.
  1704. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1705. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1706. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1707. #
  1708. # List of possible output files, starting from the most likely.
  1709. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1710. # only as a last resort. b.out is created by i960 compilers.
  1711. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1712. #
  1713. # The IRIX 6 linker writes into existing files which may not be
  1714. # executable, retaining their permissions. Remove them first so a
  1715. # subsequent execution test works.
  1716. ac_rmfiles=
  1717. for ac_file in $ac_files
  1718. do
  1719. case $ac_file in
  1720. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1721. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1722. esac
  1723. done
  1724. rm -f $ac_rmfiles
  1725. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1726. (eval $ac_link_default) 2>&5
  1727. ac_status=$?
  1728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1729. (exit $ac_status); }; then
  1730. # Be careful to initialize this variable, since it used to be cached.
  1731. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1732. ac_cv_exeext=
  1733. for ac_file in $ac_files
  1734. do
  1735. test -f "$ac_file" || continue
  1736. case $ac_file in
  1737. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1738. ;;
  1739. [ab].out )
  1740. # We found the default executable, but exeext='' is most
  1741. # certainly right.
  1742. break;;
  1743. *.* )
  1744. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1745. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1746. # but it would be cool to find out if it's true. Does anybody
  1747. # maintain Libtool? --akim.
  1748. export ac_cv_exeext
  1749. break;;
  1750. * )
  1751. break;;
  1752. esac
  1753. done
  1754. else
  1755. echo "$as_me: failed program was:" >&5
  1756. sed 's/^/| /' conftest.$ac_ext >&5
  1757. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1758. See \`config.log' for more details." >&5
  1759. echo "$as_me: error: C compiler cannot create executables
  1760. See \`config.log' for more details." >&2;}
  1761. { (exit 77); exit 77; }; }
  1762. fi
  1763. ac_exeext=$ac_cv_exeext
  1764. echo "$as_me:$LINENO: result: $ac_file" >&5
  1765. echo "${ECHO_T}$ac_file" >&6
  1766. # Check the compiler produces executables we can run. If not, either
  1767. # the compiler is broken, or we cross compile.
  1768. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1769. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1770. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1771. # If not cross compiling, check that we can run a simple program.
  1772. if test "$cross_compiling" != yes; then
  1773. if { ac_try='./$ac_file'
  1774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1775. (eval $ac_try) 2>&5
  1776. ac_status=$?
  1777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1778. (exit $ac_status); }; }; then
  1779. cross_compiling=no
  1780. else
  1781. if test "$cross_compiling" = maybe; then
  1782. cross_compiling=yes
  1783. else
  1784. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1785. If you meant to cross compile, use \`--host'.
  1786. See \`config.log' for more details." >&5
  1787. echo "$as_me: error: cannot run C compiled programs.
  1788. If you meant to cross compile, use \`--host'.
  1789. See \`config.log' for more details." >&2;}
  1790. { (exit 1); exit 1; }; }
  1791. fi
  1792. fi
  1793. fi
  1794. echo "$as_me:$LINENO: result: yes" >&5
  1795. echo "${ECHO_T}yes" >&6
  1796. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1797. ac_clean_files=$ac_clean_files_save
  1798. # Check the compiler produces executables we can run. If not, either
  1799. # the compiler is broken, or we cross compile.
  1800. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1801. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1802. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1803. echo "${ECHO_T}$cross_compiling" >&6
  1804. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1805. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1806. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1807. (eval $ac_link) 2>&5
  1808. ac_status=$?
  1809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1810. (exit $ac_status); }; then
  1811. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1812. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1813. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1814. # `rm'.
  1815. for ac_file in conftest.exe conftest conftest.*; do
  1816. test -f "$ac_file" || continue
  1817. case $ac_file in
  1818. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1819. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1820. export ac_cv_exeext
  1821. break;;
  1822. * ) break;;
  1823. esac
  1824. done
  1825. else
  1826. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1827. See \`config.log' for more details." >&5
  1828. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1829. See \`config.log' for more details." >&2;}
  1830. { (exit 1); exit 1; }; }
  1831. fi
  1832. rm -f conftest$ac_cv_exeext
  1833. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1834. echo "${ECHO_T}$ac_cv_exeext" >&6
  1835. rm -f conftest.$ac_ext
  1836. EXEEXT=$ac_cv_exeext
  1837. ac_exeext=$EXEEXT
  1838. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1839. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1840. if test "${ac_cv_objext+set}" = set; then
  1841. echo $ECHO_N "(cached) $ECHO_C" >&6
  1842. else
  1843. cat >conftest.$ac_ext <<_ACEOF
  1844. /* confdefs.h. */
  1845. _ACEOF
  1846. cat confdefs.h >>conftest.$ac_ext
  1847. cat >>conftest.$ac_ext <<_ACEOF
  1848. /* end confdefs.h. */
  1849. int
  1850. main ()
  1851. {
  1852. ;
  1853. return 0;
  1854. }
  1855. _ACEOF
  1856. rm -f conftest.o conftest.obj
  1857. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1858. (eval $ac_compile) 2>&5
  1859. ac_status=$?
  1860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1861. (exit $ac_status); }; then
  1862. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1863. case $ac_file in
  1864. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1865. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1866. break;;
  1867. esac
  1868. done
  1869. else
  1870. echo "$as_me: failed program was:" >&5
  1871. sed 's/^/| /' conftest.$ac_ext >&5
  1872. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1873. See \`config.log' for more details." >&5
  1874. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1875. See \`config.log' for more details." >&2;}
  1876. { (exit 1); exit 1; }; }
  1877. fi
  1878. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1879. fi
  1880. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1881. echo "${ECHO_T}$ac_cv_objext" >&6
  1882. OBJEXT=$ac_cv_objext
  1883. ac_objext=$OBJEXT
  1884. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1885. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1886. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1887. echo $ECHO_N "(cached) $ECHO_C" >&6
  1888. else
  1889. cat >conftest.$ac_ext <<_ACEOF
  1890. /* confdefs.h. */
  1891. _ACEOF
  1892. cat confdefs.h >>conftest.$ac_ext
  1893. cat >>conftest.$ac_ext <<_ACEOF
  1894. /* end confdefs.h. */
  1895. int
  1896. main ()
  1897. {
  1898. #ifndef __GNUC__
  1899. choke me
  1900. #endif
  1901. ;
  1902. return 0;
  1903. }
  1904. _ACEOF
  1905. rm -f conftest.$ac_objext
  1906. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1907. (eval $ac_compile) 2>conftest.er1
  1908. ac_status=$?
  1909. grep -v '^ *+' conftest.er1 >conftest.err
  1910. rm -f conftest.er1
  1911. cat conftest.err >&5
  1912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1913. (exit $ac_status); } &&
  1914. { ac_try='test -z "$ac_c_werror_flag"
  1915. || test ! -s conftest.err'
  1916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1917. (eval $ac_try) 2>&5
  1918. ac_status=$?
  1919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1920. (exit $ac_status); }; } &&
  1921. { ac_try='test -s conftest.$ac_objext'
  1922. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1923. (eval $ac_try) 2>&5
  1924. ac_status=$?
  1925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1926. (exit $ac_status); }; }; then
  1927. ac_compiler_gnu=yes
  1928. else
  1929. echo "$as_me: failed program was:" >&5
  1930. sed 's/^/| /' conftest.$ac_ext >&5
  1931. ac_compiler_gnu=no
  1932. fi
  1933. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1934. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1935. fi
  1936. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1937. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1938. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1939. ac_test_CFLAGS=${CFLAGS+set}
  1940. ac_save_CFLAGS=$CFLAGS
  1941. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1942. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1943. if test "${ac_cv_prog_cc_g+set}" = set; then
  1944. echo $ECHO_N "(cached) $ECHO_C" >&6
  1945. else
  1946. ac_save_c_werror_flag=$ac_c_werror_flag
  1947. ac_c_werror_flag=yes
  1948. ac_cv_prog_cc_g=no
  1949. CFLAGS="-g"
  1950. cat >conftest.$ac_ext <<_ACEOF
  1951. /* confdefs.h. */
  1952. _ACEOF
  1953. cat confdefs.h >>conftest.$ac_ext
  1954. cat >>conftest.$ac_ext <<_ACEOF
  1955. /* end confdefs.h. */
  1956. int
  1957. main ()
  1958. {
  1959. ;
  1960. return 0;
  1961. }
  1962. _ACEOF
  1963. rm -f conftest.$ac_objext
  1964. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1965. (eval $ac_compile) 2>conftest.er1
  1966. ac_status=$?
  1967. grep -v '^ *+' conftest.er1 >conftest.err
  1968. rm -f conftest.er1
  1969. cat conftest.err >&5
  1970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1971. (exit $ac_status); } &&
  1972. { ac_try='test -z "$ac_c_werror_flag"
  1973. || test ! -s conftest.err'
  1974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1975. (eval $ac_try) 2>&5
  1976. ac_status=$?
  1977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1978. (exit $ac_status); }; } &&
  1979. { ac_try='test -s conftest.$ac_objext'
  1980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1981. (eval $ac_try) 2>&5
  1982. ac_status=$?
  1983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1984. (exit $ac_status); }; }; then
  1985. ac_cv_prog_cc_g=yes
  1986. else
  1987. echo "$as_me: failed program was:" >&5
  1988. sed 's/^/| /' conftest.$ac_ext >&5
  1989. CFLAGS=""
  1990. cat >conftest.$ac_ext <<_ACEOF
  1991. /* confdefs.h. */
  1992. _ACEOF
  1993. cat confdefs.h >>conftest.$ac_ext
  1994. cat >>conftest.$ac_ext <<_ACEOF
  1995. /* end confdefs.h. */
  1996. int
  1997. main ()
  1998. {
  1999. ;
  2000. return 0;
  2001. }
  2002. _ACEOF
  2003. rm -f conftest.$ac_objext
  2004. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2005. (eval $ac_compile) 2>conftest.er1
  2006. ac_status=$?
  2007. grep -v '^ *+' conftest.er1 >conftest.err
  2008. rm -f conftest.er1
  2009. cat conftest.err >&5
  2010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2011. (exit $ac_status); } &&
  2012. { ac_try='test -z "$ac_c_werror_flag"
  2013. || test ! -s conftest.err'
  2014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2015. (eval $ac_try) 2>&5
  2016. ac_status=$?
  2017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2018. (exit $ac_status); }; } &&
  2019. { ac_try='test -s conftest.$ac_objext'
  2020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2021. (eval $ac_try) 2>&5
  2022. ac_status=$?
  2023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2024. (exit $ac_status); }; }; then
  2025. :
  2026. else
  2027. echo "$as_me: failed program was:" >&5
  2028. sed 's/^/| /' conftest.$ac_ext >&5
  2029. ac_c_werror_flag=$ac_save_c_werror_flag
  2030. CFLAGS="-g"
  2031. cat >conftest.$ac_ext <<_ACEOF
  2032. /* confdefs.h. */
  2033. _ACEOF
  2034. cat confdefs.h >>conftest.$ac_ext
  2035. cat >>conftest.$ac_ext <<_ACEOF
  2036. /* end confdefs.h. */
  2037. int
  2038. main ()
  2039. {
  2040. ;
  2041. return 0;
  2042. }
  2043. _ACEOF
  2044. rm -f conftest.$ac_objext
  2045. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2046. (eval $ac_compile) 2>conftest.er1
  2047. ac_status=$?
  2048. grep -v '^ *+' conftest.er1 >conftest.err
  2049. rm -f conftest.er1
  2050. cat conftest.err >&5
  2051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2052. (exit $ac_status); } &&
  2053. { ac_try='test -z "$ac_c_werror_flag"
  2054. || test ! -s conftest.err'
  2055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2056. (eval $ac_try) 2>&5
  2057. ac_status=$?
  2058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2059. (exit $ac_status); }; } &&
  2060. { ac_try='test -s conftest.$ac_objext'
  2061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2062. (eval $ac_try) 2>&5
  2063. ac_status=$?
  2064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2065. (exit $ac_status); }; }; then
  2066. ac_cv_prog_cc_g=yes
  2067. else
  2068. echo "$as_me: failed program was:" >&5
  2069. sed 's/^/| /' conftest.$ac_ext >&5
  2070. fi
  2071. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2072. fi
  2073. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2074. fi
  2075. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2076. ac_c_werror_flag=$ac_save_c_werror_flag
  2077. fi
  2078. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2079. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2080. if test "$ac_test_CFLAGS" = set; then
  2081. CFLAGS=$ac_save_CFLAGS
  2082. elif test $ac_cv_prog_cc_g = yes; then
  2083. if test "$GCC" = yes; then
  2084. CFLAGS="-g -O2"
  2085. else
  2086. CFLAGS="-g"
  2087. fi
  2088. else
  2089. if test "$GCC" = yes; then
  2090. CFLAGS="-O2"
  2091. else
  2092. CFLAGS=
  2093. fi
  2094. fi
  2095. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2096. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2097. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2098. echo $ECHO_N "(cached) $ECHO_C" >&6
  2099. else
  2100. ac_cv_prog_cc_stdc=no
  2101. ac_save_CC=$CC
  2102. cat >conftest.$ac_ext <<_ACEOF
  2103. /* confdefs.h. */
  2104. _ACEOF
  2105. cat confdefs.h >>conftest.$ac_ext
  2106. cat >>conftest.$ac_ext <<_ACEOF
  2107. /* end confdefs.h. */
  2108. #include <stdarg.h>
  2109. #include <stdio.h>
  2110. #include <sys/types.h>
  2111. #include <sys/stat.h>
  2112. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2113. struct buf { int x; };
  2114. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2115. static char *e (p, i)
  2116. char **p;
  2117. int i;
  2118. {
  2119. return p[i];
  2120. }
  2121. static char *f (char * (*g) (char **, int), char **p, ...)
  2122. {
  2123. char *s;
  2124. va_list v;
  2125. va_start (v,p);
  2126. s = g (p, va_arg (v,int));
  2127. va_end (v);
  2128. return s;
  2129. }
  2130. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2131. function prototypes and stuff, but not '\xHH' hex character constants.
  2132. These don't provoke an error unfortunately, instead are silently treated
  2133. as 'x'. The following induces an error, until -std is added to get
  2134. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2135. array size at least. It's necessary to write '\x00'==0 to get something
  2136. that's true only with -std. */
  2137. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2138. int test (int i, double x);
  2139. struct s1 {int (*f) (int a);};
  2140. struct s2 {int (*f) (double a);};
  2141. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2142. int argc;
  2143. char **argv;
  2144. int
  2145. main ()
  2146. {
  2147. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2148. ;
  2149. return 0;
  2150. }
  2151. _ACEOF
  2152. # Don't try gcc -ansi; that turns off useful extensions and
  2153. # breaks some systems' header files.
  2154. # AIX -qlanglvl=ansi
  2155. # Ultrix, OSF/1, Tru64 -std
  2156. # HP-UX 10.20 and later -Ae
  2157. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2158. # SVR4 -Xc -D__EXTENSIONS__
  2159. for ac_arg in "" -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2160. do
  2161. CC="$ac_save_CC $ac_arg"
  2162. rm -f conftest.$ac_objext
  2163. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2164. (eval $ac_compile) 2>conftest.er1
  2165. ac_status=$?
  2166. grep -v '^ *+' conftest.er1 >conftest.err
  2167. rm -f conftest.er1
  2168. cat conftest.err >&5
  2169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2170. (exit $ac_status); } &&
  2171. { ac_try='test -z "$ac_c_werror_flag"
  2172. || test ! -s conftest.err'
  2173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2174. (eval $ac_try) 2>&5
  2175. ac_status=$?
  2176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2177. (exit $ac_status); }; } &&
  2178. { ac_try='test -s conftest.$ac_objext'
  2179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2180. (eval $ac_try) 2>&5
  2181. ac_status=$?
  2182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2183. (exit $ac_status); }; }; then
  2184. ac_cv_prog_cc_stdc=$ac_arg
  2185. break
  2186. else
  2187. echo "$as_me: failed program was:" >&5
  2188. sed 's/^/| /' conftest.$ac_ext >&5
  2189. fi
  2190. rm -f conftest.err conftest.$ac_objext
  2191. done
  2192. rm -f conftest.$ac_ext conftest.$ac_objext
  2193. CC=$ac_save_CC
  2194. fi
  2195. case "x$ac_cv_prog_cc_stdc" in
  2196. x|xno)
  2197. echo "$as_me:$LINENO: result: none needed" >&5
  2198. echo "${ECHO_T}none needed" >&6 ;;
  2199. *)
  2200. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2201. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2202. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2203. esac
  2204. # Some people use a C++ compiler to compile C. Since we use `exit',
  2205. # in C++ we need to declare it. In case someone uses the same compiler
  2206. # for both compiling C and C++ we need to have the C++ compiler decide
  2207. # the declaration of exit, since it's the most demanding environment.
  2208. cat >conftest.$ac_ext <<_ACEOF
  2209. #ifndef __cplusplus
  2210. choke me
  2211. #endif
  2212. _ACEOF
  2213. rm -f conftest.$ac_objext
  2214. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2215. (eval $ac_compile) 2>conftest.er1
  2216. ac_status=$?
  2217. grep -v '^ *+' conftest.er1 >conftest.err
  2218. rm -f conftest.er1
  2219. cat conftest.err >&5
  2220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2221. (exit $ac_status); } &&
  2222. { ac_try='test -z "$ac_c_werror_flag"
  2223. || test ! -s conftest.err'
  2224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2225. (eval $ac_try) 2>&5
  2226. ac_status=$?
  2227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2228. (exit $ac_status); }; } &&
  2229. { ac_try='test -s conftest.$ac_objext'
  2230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2231. (eval $ac_try) 2>&5
  2232. ac_status=$?
  2233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2234. (exit $ac_status); }; }; then
  2235. for ac_declaration in \
  2236. '' \
  2237. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2238. 'extern "C" void std::exit (int); using std::exit;' \
  2239. 'extern "C" void exit (int) throw ();' \
  2240. 'extern "C" void exit (int);' \
  2241. 'void exit (int);'
  2242. do
  2243. cat >conftest.$ac_ext <<_ACEOF
  2244. /* confdefs.h. */
  2245. _ACEOF
  2246. cat confdefs.h >>conftest.$ac_ext
  2247. cat >>conftest.$ac_ext <<_ACEOF
  2248. /* end confdefs.h. */
  2249. $ac_declaration
  2250. #include <stdlib.h>
  2251. int
  2252. main ()
  2253. {
  2254. exit (42);
  2255. ;
  2256. return 0;
  2257. }
  2258. _ACEOF
  2259. rm -f conftest.$ac_objext
  2260. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2261. (eval $ac_compile) 2>conftest.er1
  2262. ac_status=$?
  2263. grep -v '^ *+' conftest.er1 >conftest.err
  2264. rm -f conftest.er1
  2265. cat conftest.err >&5
  2266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2267. (exit $ac_status); } &&
  2268. { ac_try='test -z "$ac_c_werror_flag"
  2269. || test ! -s conftest.err'
  2270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2271. (eval $ac_try) 2>&5
  2272. ac_status=$?
  2273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2274. (exit $ac_status); }; } &&
  2275. { ac_try='test -s conftest.$ac_objext'
  2276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2277. (eval $ac_try) 2>&5
  2278. ac_status=$?
  2279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2280. (exit $ac_status); }; }; then
  2281. :
  2282. else
  2283. echo "$as_me: failed program was:" >&5
  2284. sed 's/^/| /' conftest.$ac_ext >&5
  2285. continue
  2286. fi
  2287. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2288. cat >conftest.$ac_ext <<_ACEOF
  2289. /* confdefs.h. */
  2290. _ACEOF
  2291. cat confdefs.h >>conftest.$ac_ext
  2292. cat >>conftest.$ac_ext <<_ACEOF
  2293. /* end confdefs.h. */
  2294. $ac_declaration
  2295. int
  2296. main ()
  2297. {
  2298. exit (42);
  2299. ;
  2300. return 0;
  2301. }
  2302. _ACEOF
  2303. rm -f conftest.$ac_objext
  2304. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2305. (eval $ac_compile) 2>conftest.er1
  2306. ac_status=$?
  2307. grep -v '^ *+' conftest.er1 >conftest.err
  2308. rm -f conftest.er1
  2309. cat conftest.err >&5
  2310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2311. (exit $ac_status); } &&
  2312. { ac_try='test -z "$ac_c_werror_flag"
  2313. || test ! -s conftest.err'
  2314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2315. (eval $ac_try) 2>&5
  2316. ac_status=$?
  2317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2318. (exit $ac_status); }; } &&
  2319. { ac_try='test -s conftest.$ac_objext'
  2320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2321. (eval $ac_try) 2>&5
  2322. ac_status=$?
  2323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2324. (exit $ac_status); }; }; then
  2325. break
  2326. else
  2327. echo "$as_me: failed program was:" >&5
  2328. sed 's/^/| /' conftest.$ac_ext >&5
  2329. fi
  2330. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2331. done
  2332. rm -f conftest*
  2333. if test -n "$ac_declaration"; then
  2334. echo '#ifdef __cplusplus' >>confdefs.h
  2335. echo $ac_declaration >>confdefs.h
  2336. echo '#endif' >>confdefs.h
  2337. fi
  2338. else
  2339. echo "$as_me: failed program was:" >&5
  2340. sed 's/^/| /' conftest.$ac_ext >&5
  2341. fi
  2342. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2343. ac_ext=c
  2344. ac_cpp='$CPP $CPPFLAGS'
  2345. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2346. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2347. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2348. ac_ext=cc
  2349. ac_cpp='$CXXCPP $CPPFLAGS'
  2350. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2351. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2352. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2353. if test -n "$ac_tool_prefix"; then
  2354. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2355. do
  2356. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2357. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2358. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2359. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2360. if test "${ac_cv_prog_CXX+set}" = set; then
  2361. echo $ECHO_N "(cached) $ECHO_C" >&6
  2362. else
  2363. if test -n "$CXX"; then
  2364. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2365. else
  2366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2367. for as_dir in $PATH
  2368. do
  2369. IFS=$as_save_IFS
  2370. test -z "$as_dir" && as_dir=.
  2371. for ac_exec_ext in '' $ac_executable_extensions; do
  2372. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2373. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2374. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2375. break 2
  2376. fi
  2377. done
  2378. done
  2379. fi
  2380. fi
  2381. CXX=$ac_cv_prog_CXX
  2382. if test -n "$CXX"; then
  2383. echo "$as_me:$LINENO: result: $CXX" >&5
  2384. echo "${ECHO_T}$CXX" >&6
  2385. else
  2386. echo "$as_me:$LINENO: result: no" >&5
  2387. echo "${ECHO_T}no" >&6
  2388. fi
  2389. test -n "$CXX" && break
  2390. done
  2391. fi
  2392. if test -z "$CXX"; then
  2393. ac_ct_CXX=$CXX
  2394. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2395. do
  2396. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2397. set dummy $ac_prog; ac_word=$2
  2398. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2399. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2400. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2401. echo $ECHO_N "(cached) $ECHO_C" >&6
  2402. else
  2403. if test -n "$ac_ct_CXX"; then
  2404. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2405. else
  2406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2407. for as_dir in $PATH
  2408. do
  2409. IFS=$as_save_IFS
  2410. test -z "$as_dir" && as_dir=.
  2411. for ac_exec_ext in '' $ac_executable_extensions; do
  2412. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2413. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2414. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2415. break 2
  2416. fi
  2417. done
  2418. done
  2419. fi
  2420. fi
  2421. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2422. if test -n "$ac_ct_CXX"; then
  2423. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2424. echo "${ECHO_T}$ac_ct_CXX" >&6
  2425. else
  2426. echo "$as_me:$LINENO: result: no" >&5
  2427. echo "${ECHO_T}no" >&6
  2428. fi
  2429. test -n "$ac_ct_CXX" && break
  2430. done
  2431. if test "x$ac_ct_CXX" = x; then
  2432. CXX="g++"
  2433. else
  2434. if test "$build" != "$host"; then
  2435. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2436. whose name does not start with the host triplet. If you think this
  2437. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2438. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2439. whose name does not start with the host triplet. If you think this
  2440. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2441. fi
  2442. CXX=$ac_ct_CXX
  2443. fi
  2444. fi
  2445. # Provide some information about the compiler.
  2446. echo "$as_me:$LINENO:" \
  2447. "checking for C++ compiler version" >&5
  2448. ac_compiler=`set X $ac_compile; echo $2`
  2449. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2450. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2451. ac_status=$?
  2452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2453. (exit $ac_status); }
  2454. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2455. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2456. ac_status=$?
  2457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2458. (exit $ac_status); }
  2459. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2460. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2461. ac_status=$?
  2462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2463. (exit $ac_status); }
  2464. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2465. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2466. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2467. echo $ECHO_N "(cached) $ECHO_C" >&6
  2468. else
  2469. cat >conftest.$ac_ext <<_ACEOF
  2470. /* confdefs.h. */
  2471. _ACEOF
  2472. cat confdefs.h >>conftest.$ac_ext
  2473. cat >>conftest.$ac_ext <<_ACEOF
  2474. /* end confdefs.h. */
  2475. int
  2476. main ()
  2477. {
  2478. #ifndef __GNUC__
  2479. choke me
  2480. #endif
  2481. ;
  2482. return 0;
  2483. }
  2484. _ACEOF
  2485. rm -f conftest.$ac_objext
  2486. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2487. (eval $ac_compile) 2>conftest.er1
  2488. ac_status=$?
  2489. grep -v '^ *+' conftest.er1 >conftest.err
  2490. rm -f conftest.er1
  2491. cat conftest.err >&5
  2492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2493. (exit $ac_status); } &&
  2494. { ac_try='test -z "$ac_cxx_werror_flag"
  2495. || test ! -s conftest.err'
  2496. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2497. (eval $ac_try) 2>&5
  2498. ac_status=$?
  2499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2500. (exit $ac_status); }; } &&
  2501. { ac_try='test -s conftest.$ac_objext'
  2502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2503. (eval $ac_try) 2>&5
  2504. ac_status=$?
  2505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2506. (exit $ac_status); }; }; then
  2507. ac_compiler_gnu=yes
  2508. else
  2509. echo "$as_me: failed program was:" >&5
  2510. sed 's/^/| /' conftest.$ac_ext >&5
  2511. ac_compiler_gnu=no
  2512. fi
  2513. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2514. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2515. fi
  2516. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2517. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2518. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2519. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2520. ac_save_CXXFLAGS=$CXXFLAGS
  2521. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2522. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2523. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2524. echo $ECHO_N "(cached) $ECHO_C" >&6
  2525. else
  2526. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2527. ac_cxx_werror_flag=yes
  2528. ac_cv_prog_cxx_g=no
  2529. CXXFLAGS="-g"
  2530. cat >conftest.$ac_ext <<_ACEOF
  2531. /* confdefs.h. */
  2532. _ACEOF
  2533. cat confdefs.h >>conftest.$ac_ext
  2534. cat >>conftest.$ac_ext <<_ACEOF
  2535. /* end confdefs.h. */
  2536. int
  2537. main ()
  2538. {
  2539. ;
  2540. return 0;
  2541. }
  2542. _ACEOF
  2543. rm -f conftest.$ac_objext
  2544. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2545. (eval $ac_compile) 2>conftest.er1
  2546. ac_status=$?
  2547. grep -v '^ *+' conftest.er1 >conftest.err
  2548. rm -f conftest.er1
  2549. cat conftest.err >&5
  2550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2551. (exit $ac_status); } &&
  2552. { ac_try='test -z "$ac_cxx_werror_flag"
  2553. || test ! -s conftest.err'
  2554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2555. (eval $ac_try) 2>&5
  2556. ac_status=$?
  2557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2558. (exit $ac_status); }; } &&
  2559. { ac_try='test -s conftest.$ac_objext'
  2560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2561. (eval $ac_try) 2>&5
  2562. ac_status=$?
  2563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2564. (exit $ac_status); }; }; then
  2565. ac_cv_prog_cxx_g=yes
  2566. else
  2567. echo "$as_me: failed program was:" >&5
  2568. sed 's/^/| /' conftest.$ac_ext >&5
  2569. CXXFLAGS=""
  2570. cat >conftest.$ac_ext <<_ACEOF
  2571. /* confdefs.h. */
  2572. _ACEOF
  2573. cat confdefs.h >>conftest.$ac_ext
  2574. cat >>conftest.$ac_ext <<_ACEOF
  2575. /* end confdefs.h. */
  2576. int
  2577. main ()
  2578. {
  2579. ;
  2580. return 0;
  2581. }
  2582. _ACEOF
  2583. rm -f conftest.$ac_objext
  2584. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2585. (eval $ac_compile) 2>conftest.er1
  2586. ac_status=$?
  2587. grep -v '^ *+' conftest.er1 >conftest.err
  2588. rm -f conftest.er1
  2589. cat conftest.err >&5
  2590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2591. (exit $ac_status); } &&
  2592. { ac_try='test -z "$ac_cxx_werror_flag"
  2593. || test ! -s conftest.err'
  2594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2595. (eval $ac_try) 2>&5
  2596. ac_status=$?
  2597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2598. (exit $ac_status); }; } &&
  2599. { ac_try='test -s conftest.$ac_objext'
  2600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2601. (eval $ac_try) 2>&5
  2602. ac_status=$?
  2603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2604. (exit $ac_status); }; }; then
  2605. :
  2606. else
  2607. echo "$as_me: failed program was:" >&5
  2608. sed 's/^/| /' conftest.$ac_ext >&5
  2609. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2610. CXXFLAGS="-g"
  2611. cat >conftest.$ac_ext <<_ACEOF
  2612. /* confdefs.h. */
  2613. _ACEOF
  2614. cat confdefs.h >>conftest.$ac_ext
  2615. cat >>conftest.$ac_ext <<_ACEOF
  2616. /* end confdefs.h. */
  2617. int
  2618. main ()
  2619. {
  2620. ;
  2621. return 0;
  2622. }
  2623. _ACEOF
  2624. rm -f conftest.$ac_objext
  2625. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2626. (eval $ac_compile) 2>conftest.er1
  2627. ac_status=$?
  2628. grep -v '^ *+' conftest.er1 >conftest.err
  2629. rm -f conftest.er1
  2630. cat conftest.err >&5
  2631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2632. (exit $ac_status); } &&
  2633. { ac_try='test -z "$ac_cxx_werror_flag"
  2634. || test ! -s conftest.err'
  2635. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2636. (eval $ac_try) 2>&5
  2637. ac_status=$?
  2638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2639. (exit $ac_status); }; } &&
  2640. { ac_try='test -s conftest.$ac_objext'
  2641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2642. (eval $ac_try) 2>&5
  2643. ac_status=$?
  2644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2645. (exit $ac_status); }; }; then
  2646. ac_cv_prog_cxx_g=yes
  2647. else
  2648. echo "$as_me: failed program was:" >&5
  2649. sed 's/^/| /' conftest.$ac_ext >&5
  2650. fi
  2651. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2652. fi
  2653. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2654. fi
  2655. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2656. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2657. fi
  2658. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2659. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2660. if test "$ac_test_CXXFLAGS" = set; then
  2661. CXXFLAGS=$ac_save_CXXFLAGS
  2662. elif test $ac_cv_prog_cxx_g = yes; then
  2663. if test "$GXX" = yes; then
  2664. CXXFLAGS="-g -O2"
  2665. else
  2666. CXXFLAGS="-g"
  2667. fi
  2668. else
  2669. if test "$GXX" = yes; then
  2670. CXXFLAGS="-O2"
  2671. else
  2672. CXXFLAGS=
  2673. fi
  2674. fi
  2675. for ac_declaration in \
  2676. '' \
  2677. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2678. 'extern "C" void std::exit (int); using std::exit;' \
  2679. 'extern "C" void exit (int) throw ();' \
  2680. 'extern "C" void exit (int);' \
  2681. 'void exit (int);'
  2682. do
  2683. cat >conftest.$ac_ext <<_ACEOF
  2684. /* confdefs.h. */
  2685. _ACEOF
  2686. cat confdefs.h >>conftest.$ac_ext
  2687. cat >>conftest.$ac_ext <<_ACEOF
  2688. /* end confdefs.h. */
  2689. $ac_declaration
  2690. #include <stdlib.h>
  2691. int
  2692. main ()
  2693. {
  2694. exit (42);
  2695. ;
  2696. return 0;
  2697. }
  2698. _ACEOF
  2699. rm -f conftest.$ac_objext
  2700. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2701. (eval $ac_compile) 2>conftest.er1
  2702. ac_status=$?
  2703. grep -v '^ *+' conftest.er1 >conftest.err
  2704. rm -f conftest.er1
  2705. cat conftest.err >&5
  2706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2707. (exit $ac_status); } &&
  2708. { ac_try='test -z "$ac_cxx_werror_flag"
  2709. || test ! -s conftest.err'
  2710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2711. (eval $ac_try) 2>&5
  2712. ac_status=$?
  2713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2714. (exit $ac_status); }; } &&
  2715. { ac_try='test -s conftest.$ac_objext'
  2716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2717. (eval $ac_try) 2>&5
  2718. ac_status=$?
  2719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2720. (exit $ac_status); }; }; then
  2721. :
  2722. else
  2723. echo "$as_me: failed program was:" >&5
  2724. sed 's/^/| /' conftest.$ac_ext >&5
  2725. continue
  2726. fi
  2727. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2728. cat >conftest.$ac_ext <<_ACEOF
  2729. /* confdefs.h. */
  2730. _ACEOF
  2731. cat confdefs.h >>conftest.$ac_ext
  2732. cat >>conftest.$ac_ext <<_ACEOF
  2733. /* end confdefs.h. */
  2734. $ac_declaration
  2735. int
  2736. main ()
  2737. {
  2738. exit (42);
  2739. ;
  2740. return 0;
  2741. }
  2742. _ACEOF
  2743. rm -f conftest.$ac_objext
  2744. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2745. (eval $ac_compile) 2>conftest.er1
  2746. ac_status=$?
  2747. grep -v '^ *+' conftest.er1 >conftest.err
  2748. rm -f conftest.er1
  2749. cat conftest.err >&5
  2750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2751. (exit $ac_status); } &&
  2752. { ac_try='test -z "$ac_cxx_werror_flag"
  2753. || test ! -s conftest.err'
  2754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2755. (eval $ac_try) 2>&5
  2756. ac_status=$?
  2757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2758. (exit $ac_status); }; } &&
  2759. { ac_try='test -s conftest.$ac_objext'
  2760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2761. (eval $ac_try) 2>&5
  2762. ac_status=$?
  2763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2764. (exit $ac_status); }; }; then
  2765. break
  2766. else
  2767. echo "$as_me: failed program was:" >&5
  2768. sed 's/^/| /' conftest.$ac_ext >&5
  2769. fi
  2770. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2771. done
  2772. rm -f conftest*
  2773. if test -n "$ac_declaration"; then
  2774. echo '#ifdef __cplusplus' >>confdefs.h
  2775. echo $ac_declaration >>confdefs.h
  2776. echo '#endif' >>confdefs.h
  2777. fi
  2778. ac_ext=c
  2779. ac_cpp='$CPP $CPPFLAGS'
  2780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2783. ac_ext=cc
  2784. ac_cpp='$CXXCPP $CPPFLAGS'
  2785. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2786. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2787. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2788. if test "$cross_compiling" = no; then
  2789. echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
  2790. echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
  2791. fi
  2792. if test "$cross_compiling" = yes; then
  2793. :
  2794. else
  2795. cat >conftest.$ac_ext <<_ACEOF
  2796. /* confdefs.h. */
  2797. _ACEOF
  2798. cat confdefs.h >>conftest.$ac_ext
  2799. cat >>conftest.$ac_ext <<_ACEOF
  2800. /* end confdefs.h. */
  2801. int main() {
  2802. return 0;
  2803. }
  2804. _ACEOF
  2805. rm -f conftest$ac_exeext
  2806. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2807. (eval $ac_link) 2>&5
  2808. ac_status=$?
  2809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2810. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2812. (eval $ac_try) 2>&5
  2813. ac_status=$?
  2814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2815. (exit $ac_status); }; }; then
  2816. echo "$as_me:$LINENO: result: yes" >&5
  2817. echo "${ECHO_T}yes" >&6
  2818. else
  2819. echo "$as_me: program exited with status $ac_status" >&5
  2820. echo "$as_me: failed program was:" >&5
  2821. sed 's/^/| /' conftest.$ac_ext >&5
  2822. ( exit $ac_status )
  2823. echo "$as_me:$LINENO: result: no" >&5
  2824. echo "${ECHO_T}no" >&6
  2825. { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
  2826. echo "$as_me: error: a working C++ compiler is required" >&2;}
  2827. { (exit 1); exit 1; }; }
  2828. fi
  2829. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2830. fi
  2831. if test "$cross_compiling" = no; then
  2832. echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
  2833. echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
  2834. fi
  2835. if test "$cross_compiling" = yes; then
  2836. :
  2837. else
  2838. cat >conftest.$ac_ext <<_ACEOF
  2839. /* confdefs.h. */
  2840. _ACEOF
  2841. cat confdefs.h >>conftest.$ac_ext
  2842. cat >>conftest.$ac_ext <<_ACEOF
  2843. /* end confdefs.h. */
  2844. extern "C" {
  2845. void _exit(int);
  2846. }
  2847. int i;
  2848. struct A {
  2849. char dummy;
  2850. A() { i = 1; }
  2851. ~A() { if (i == 1) _exit(0); }
  2852. };
  2853. A a;
  2854. int main()
  2855. {
  2856. return 1;
  2857. }
  2858. _ACEOF
  2859. rm -f conftest$ac_exeext
  2860. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2861. (eval $ac_link) 2>&5
  2862. ac_status=$?
  2863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2864. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2866. (eval $ac_try) 2>&5
  2867. ac_status=$?
  2868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2869. (exit $ac_status); }; }; then
  2870. echo "$as_me:$LINENO: result: yes" >&5
  2871. echo "${ECHO_T}yes" >&6
  2872. else
  2873. echo "$as_me: program exited with status $ac_status" >&5
  2874. echo "$as_me: failed program was:" >&5
  2875. sed 's/^/| /' conftest.$ac_ext >&5
  2876. ( exit $ac_status )
  2877. echo "$as_me:$LINENO: result: no" >&5
  2878. echo "${ECHO_T}no" >&6
  2879. { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
  2880. echo "$as_me: error: a working C++ compiler is required" >&2;}
  2881. { (exit 1); exit 1; }; }
  2882. fi
  2883. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2884. fi
  2885. echo "$as_me:$LINENO: checking that header files support C++" >&5
  2886. echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
  2887. cat >conftest.$ac_ext <<_ACEOF
  2888. /* confdefs.h. */
  2889. _ACEOF
  2890. cat confdefs.h >>conftest.$ac_ext
  2891. cat >>conftest.$ac_ext <<_ACEOF
  2892. /* end confdefs.h. */
  2893. #include <stdio.h>
  2894. int
  2895. main ()
  2896. {
  2897. fopen(0, 0);
  2898. ;
  2899. return 0;
  2900. }
  2901. _ACEOF
  2902. rm -f conftest.$ac_objext conftest$ac_exeext
  2903. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2904. (eval $ac_link) 2>conftest.er1
  2905. ac_status=$?
  2906. grep -v '^ *+' conftest.er1 >conftest.err
  2907. rm -f conftest.er1
  2908. cat conftest.err >&5
  2909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2910. (exit $ac_status); } &&
  2911. { ac_try='test -z "$ac_cxx_werror_flag"
  2912. || test ! -s conftest.err'
  2913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2914. (eval $ac_try) 2>&5
  2915. ac_status=$?
  2916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2917. (exit $ac_status); }; } &&
  2918. { ac_try='test -s conftest$ac_exeext'
  2919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2920. (eval $ac_try) 2>&5
  2921. ac_status=$?
  2922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2923. (exit $ac_status); }; }; then
  2924. echo "$as_me:$LINENO: result: yes" >&5
  2925. echo "${ECHO_T}yes" >&6
  2926. else
  2927. echo "$as_me: failed program was:" >&5
  2928. sed 's/^/| /' conftest.$ac_ext >&5
  2929. echo "$as_me:$LINENO: result: no" >&5
  2930. echo "${ECHO_T}no" >&6
  2931. { { echo "$as_me:$LINENO: error: header files do not support C++
  2932. (if you are using a version of gcc/g++ earlier than 2.5,
  2933. you should install libg++)" >&5
  2934. echo "$as_me: error: header files do not support C++
  2935. (if you are using a version of gcc/g++ earlier than 2.5,
  2936. you should install libg++)" >&2;}
  2937. { (exit 1); exit 1; }; }
  2938. fi
  2939. rm -f conftest.err conftest.$ac_objext \
  2940. conftest$ac_exeext conftest.$ac_ext
  2941. ac_ext=c
  2942. ac_cpp='$CPP $CPPFLAGS'
  2943. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2944. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2945. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2946. echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
  2947. echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
  2948. cat >conftest.$ac_ext <<_ACEOF
  2949. /* confdefs.h. */
  2950. _ACEOF
  2951. cat confdefs.h >>conftest.$ac_ext
  2952. cat >>conftest.$ac_ext <<_ACEOF
  2953. /* end confdefs.h. */
  2954. /* Treat any failure as ASCII for compatibility with existing art.
  2955. Use compile-time rather than run-time tests for cross-compiler
  2956. tolerance. */
  2957. #if '0' != 240
  2958. make an error "Character set is not EBCDIC"
  2959. #endif
  2960. int
  2961. main ()
  2962. {
  2963. ;
  2964. return 0;
  2965. }
  2966. _ACEOF
  2967. rm -f conftest.$ac_objext
  2968. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2969. (eval $ac_compile) 2>conftest.er1
  2970. ac_status=$?
  2971. grep -v '^ *+' conftest.er1 >conftest.err
  2972. rm -f conftest.er1
  2973. cat conftest.err >&5
  2974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2975. (exit $ac_status); } &&
  2976. { ac_try='test -z "$ac_c_werror_flag"
  2977. || test ! -s conftest.err'
  2978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2979. (eval $ac_try) 2>&5
  2980. ac_status=$?
  2981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2982. (exit $ac_status); }; } &&
  2983. { ac_try='test -s conftest.$ac_objext'
  2984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2985. (eval $ac_try) 2>&5
  2986. ac_status=$?
  2987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2988. (exit $ac_status); }; }; then
  2989. groff_cv_ebcdic="yes"
  2990. TTYDEVDIRS="font/devcp1047"
  2991. echo "$as_me:$LINENO: result: yes" >&5
  2992. echo "${ECHO_T}yes" >&6
  2993. cat >>confdefs.h <<\_ACEOF
  2994. #define IS_EBCDIC_HOST 1
  2995. _ACEOF
  2996. else
  2997. echo "$as_me: failed program was:" >&5
  2998. sed 's/^/| /' conftest.$ac_ext >&5
  2999. groff_cv_ebcdic="no"
  3000. TTYDEVDIRS="font/devascii font/devlatin1"
  3001. OTHERDEVDIRS="font/devlj4 font/devlbp"
  3002. echo "$as_me:$LINENO: result: no" >&5
  3003. echo "${ECHO_T}no" >&6
  3004. fi
  3005. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3006. if test "$groff_cv_ebcdic" = "yes"; then
  3007. echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
  3008. echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
  3009. case `uname` in
  3010. OS/390)
  3011. CFLAGS="$CFLAGS -D_ALL_SOURCE"
  3012. echo "$as_me:$LINENO: result: yes" >&5
  3013. echo "${ECHO_T}yes" >&6 ;;
  3014. *)
  3015. echo "$as_me:$LINENO: result: no" >&5
  3016. echo "${ECHO_T}no" >&6 ;;
  3017. esac
  3018. fi
  3019. ac_ext=c
  3020. ac_cpp='$CPP $CPPFLAGS'
  3021. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3022. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3023. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3024. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3025. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3026. # On Suns, sometimes $CPP names a directory.
  3027. if test -n "$CPP" && test -d "$CPP"; then
  3028. CPP=
  3029. fi
  3030. if test -z "$CPP"; then
  3031. if test "${ac_cv_prog_CPP+set}" = set; then
  3032. echo $ECHO_N "(cached) $ECHO_C" >&6
  3033. else
  3034. # Double quotes because CPP needs to be expanded
  3035. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3036. do
  3037. ac_preproc_ok=false
  3038. for ac_c_preproc_warn_flag in '' yes
  3039. do
  3040. # Use a header file that comes with gcc, so configuring glibc
  3041. # with a fresh cross-compiler works.
  3042. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3043. # <limits.h> exists even on freestanding compilers.
  3044. # On the NeXT, cc -E runs the code through the compiler's parser,
  3045. # not just through cpp. "Syntax error" is here to catch this case.
  3046. cat >conftest.$ac_ext <<_ACEOF
  3047. /* confdefs.h. */
  3048. _ACEOF
  3049. cat confdefs.h >>conftest.$ac_ext
  3050. cat >>conftest.$ac_ext <<_ACEOF
  3051. /* end confdefs.h. */
  3052. #ifdef __STDC__
  3053. # include <limits.h>
  3054. #else
  3055. # include <assert.h>
  3056. #endif
  3057. Syntax error
  3058. _ACEOF
  3059. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3060. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3061. ac_status=$?
  3062. grep -v '^ *+' conftest.er1 >conftest.err
  3063. rm -f conftest.er1
  3064. cat conftest.err >&5
  3065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3066. (exit $ac_status); } >/dev/null; then
  3067. if test -s conftest.err; then
  3068. ac_cpp_err=$ac_c_preproc_warn_flag
  3069. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3070. else
  3071. ac_cpp_err=
  3072. fi
  3073. else
  3074. ac_cpp_err=yes
  3075. fi
  3076. if test -z "$ac_cpp_err"; then
  3077. :
  3078. else
  3079. echo "$as_me: failed program was:" >&5
  3080. sed 's/^/| /' conftest.$ac_ext >&5
  3081. # Broken: fails on valid input.
  3082. continue
  3083. fi
  3084. rm -f conftest.err conftest.$ac_ext
  3085. # OK, works on sane cases. Now check whether non-existent headers
  3086. # can be detected and how.
  3087. cat >conftest.$ac_ext <<_ACEOF
  3088. /* confdefs.h. */
  3089. _ACEOF
  3090. cat confdefs.h >>conftest.$ac_ext
  3091. cat >>conftest.$ac_ext <<_ACEOF
  3092. /* end confdefs.h. */
  3093. #include <ac_nonexistent.h>
  3094. _ACEOF
  3095. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3096. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3097. ac_status=$?
  3098. grep -v '^ *+' conftest.er1 >conftest.err
  3099. rm -f conftest.er1
  3100. cat conftest.err >&5
  3101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3102. (exit $ac_status); } >/dev/null; then
  3103. if test -s conftest.err; then
  3104. ac_cpp_err=$ac_c_preproc_warn_flag
  3105. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3106. else
  3107. ac_cpp_err=
  3108. fi
  3109. else
  3110. ac_cpp_err=yes
  3111. fi
  3112. if test -z "$ac_cpp_err"; then
  3113. # Broken: success on invalid input.
  3114. continue
  3115. else
  3116. echo "$as_me: failed program was:" >&5
  3117. sed 's/^/| /' conftest.$ac_ext >&5
  3118. # Passes both tests.
  3119. ac_preproc_ok=:
  3120. break
  3121. fi
  3122. rm -f conftest.err conftest.$ac_ext
  3123. done
  3124. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3125. rm -f conftest.err conftest.$ac_ext
  3126. if $ac_preproc_ok; then
  3127. break
  3128. fi
  3129. done
  3130. ac_cv_prog_CPP=$CPP
  3131. fi
  3132. CPP=$ac_cv_prog_CPP
  3133. else
  3134. ac_cv_prog_CPP=$CPP
  3135. fi
  3136. echo "$as_me:$LINENO: result: $CPP" >&5
  3137. echo "${ECHO_T}$CPP" >&6
  3138. ac_preproc_ok=false
  3139. for ac_c_preproc_warn_flag in '' yes
  3140. do
  3141. # Use a header file that comes with gcc, so configuring glibc
  3142. # with a fresh cross-compiler works.
  3143. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3144. # <limits.h> exists even on freestanding compilers.
  3145. # On the NeXT, cc -E runs the code through the compiler's parser,
  3146. # not just through cpp. "Syntax error" is here to catch this case.
  3147. cat >conftest.$ac_ext <<_ACEOF
  3148. /* confdefs.h. */
  3149. _ACEOF
  3150. cat confdefs.h >>conftest.$ac_ext
  3151. cat >>conftest.$ac_ext <<_ACEOF
  3152. /* end confdefs.h. */
  3153. #ifdef __STDC__
  3154. # include <limits.h>
  3155. #else
  3156. # include <assert.h>
  3157. #endif
  3158. Syntax error
  3159. _ACEOF
  3160. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3161. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3162. ac_status=$?
  3163. grep -v '^ *+' conftest.er1 >conftest.err
  3164. rm -f conftest.er1
  3165. cat conftest.err >&5
  3166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3167. (exit $ac_status); } >/dev/null; then
  3168. if test -s conftest.err; then
  3169. ac_cpp_err=$ac_c_preproc_warn_flag
  3170. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3171. else
  3172. ac_cpp_err=
  3173. fi
  3174. else
  3175. ac_cpp_err=yes
  3176. fi
  3177. if test -z "$ac_cpp_err"; then
  3178. :
  3179. else
  3180. echo "$as_me: failed program was:" >&5
  3181. sed 's/^/| /' conftest.$ac_ext >&5
  3182. # Broken: fails on valid input.
  3183. continue
  3184. fi
  3185. rm -f conftest.err conftest.$ac_ext
  3186. # OK, works on sane cases. Now check whether non-existent headers
  3187. # can be detected and how.
  3188. cat >conftest.$ac_ext <<_ACEOF
  3189. /* confdefs.h. */
  3190. _ACEOF
  3191. cat confdefs.h >>conftest.$ac_ext
  3192. cat >>conftest.$ac_ext <<_ACEOF
  3193. /* end confdefs.h. */
  3194. #include <ac_nonexistent.h>
  3195. _ACEOF
  3196. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3197. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3198. ac_status=$?
  3199. grep -v '^ *+' conftest.er1 >conftest.err
  3200. rm -f conftest.er1
  3201. cat conftest.err >&5
  3202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3203. (exit $ac_status); } >/dev/null; then
  3204. if test -s conftest.err; then
  3205. ac_cpp_err=$ac_c_preproc_warn_flag
  3206. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3207. else
  3208. ac_cpp_err=
  3209. fi
  3210. else
  3211. ac_cpp_err=yes
  3212. fi
  3213. if test -z "$ac_cpp_err"; then
  3214. # Broken: success on invalid input.
  3215. continue
  3216. else
  3217. echo "$as_me: failed program was:" >&5
  3218. sed 's/^/| /' conftest.$ac_ext >&5
  3219. # Passes both tests.
  3220. ac_preproc_ok=:
  3221. break
  3222. fi
  3223. rm -f conftest.err conftest.$ac_ext
  3224. done
  3225. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3226. rm -f conftest.err conftest.$ac_ext
  3227. if $ac_preproc_ok; then
  3228. :
  3229. else
  3230. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3231. See \`config.log' for more details." >&5
  3232. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3233. See \`config.log' for more details." >&2;}
  3234. { (exit 1); exit 1; }; }
  3235. fi
  3236. ac_ext=c
  3237. ac_cpp='$CPP $CPPFLAGS'
  3238. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3239. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3240. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3241. echo "$as_me:$LINENO: checking for X" >&5
  3242. echo $ECHO_N "checking for X... $ECHO_C" >&6
  3243. # Check whether --with-x or --without-x was given.
  3244. if test "${with_x+set}" = set; then
  3245. withval="$with_x"
  3246. fi;
  3247. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3248. if test "x$with_x" = xno; then
  3249. # The user explicitly disabled X.
  3250. have_x=disabled
  3251. else
  3252. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  3253. # Both variables are already set.
  3254. have_x=yes
  3255. else
  3256. if test "${ac_cv_have_x+set}" = set; then
  3257. echo $ECHO_N "(cached) $ECHO_C" >&6
  3258. else
  3259. # One or both of the vars are not set, and there is no cached value.
  3260. ac_x_includes=no ac_x_libraries=no
  3261. rm -f -r conftest.dir
  3262. if mkdir conftest.dir; then
  3263. cd conftest.dir
  3264. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  3265. cat >Imakefile <<'_ACEOF'
  3266. acfindx:
  3267. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  3268. _ACEOF
  3269. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  3270. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3271. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  3272. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3273. for ac_extension in a so sl; do
  3274. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  3275. test -f $ac_im_libdir/libX11.$ac_extension; then
  3276. ac_im_usrlibdir=$ac_im_libdir; break
  3277. fi
  3278. done
  3279. # Screen out bogus values from the imake configuration. They are
  3280. # bogus both because they are the default anyway, and because
  3281. # using them would break gcc on systems where it needs fixed includes.
  3282. case $ac_im_incroot in
  3283. /usr/include) ;;
  3284. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  3285. esac
  3286. case $ac_im_usrlibdir in
  3287. /usr/lib | /lib) ;;
  3288. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  3289. esac
  3290. fi
  3291. cd ..
  3292. rm -f -r conftest.dir
  3293. fi
  3294. # Standard set of common directories for X headers.
  3295. # Check X11 before X11Rn because it is often a symlink to the current release.
  3296. ac_x_header_dirs='
  3297. /usr/X11/include
  3298. /usr/X11R6/include
  3299. /usr/X11R5/include
  3300. /usr/X11R4/include
  3301. /usr/include/X11
  3302. /usr/include/X11R6
  3303. /usr/include/X11R5
  3304. /usr/include/X11R4
  3305. /usr/local/X11/include
  3306. /usr/local/X11R6/include
  3307. /usr/local/X11R5/include
  3308. /usr/local/X11R4/include
  3309. /usr/local/include/X11
  3310. /usr/local/include/X11R6
  3311. /usr/local/include/X11R5
  3312. /usr/local/include/X11R4
  3313. /usr/X386/include
  3314. /usr/x386/include
  3315. /usr/XFree86/include/X11
  3316. /usr/include
  3317. /usr/local/include
  3318. /usr/unsupported/include
  3319. /usr/athena/include
  3320. /usr/local/x11r5/include
  3321. /usr/lpp/Xamples/include
  3322. /usr/openwin/include
  3323. /usr/openwin/share/include'
  3324. if test "$ac_x_includes" = no; then
  3325. # Guess where to find include files, by looking for Intrinsic.h.
  3326. # First, try using that file with no special directory specified.
  3327. cat >conftest.$ac_ext <<_ACEOF
  3328. /* confdefs.h. */
  3329. _ACEOF
  3330. cat confdefs.h >>conftest.$ac_ext
  3331. cat >>conftest.$ac_ext <<_ACEOF
  3332. /* end confdefs.h. */
  3333. #include <X11/Intrinsic.h>
  3334. _ACEOF
  3335. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3336. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3337. ac_status=$?
  3338. grep -v '^ *+' conftest.er1 >conftest.err
  3339. rm -f conftest.er1
  3340. cat conftest.err >&5
  3341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3342. (exit $ac_status); } >/dev/null; then
  3343. if test -s conftest.err; then
  3344. ac_cpp_err=$ac_c_preproc_warn_flag
  3345. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3346. else
  3347. ac_cpp_err=
  3348. fi
  3349. else
  3350. ac_cpp_err=yes
  3351. fi
  3352. if test -z "$ac_cpp_err"; then
  3353. # We can compile using X headers with no special include directory.
  3354. ac_x_includes=
  3355. else
  3356. echo "$as_me: failed program was:" >&5
  3357. sed 's/^/| /' conftest.$ac_ext >&5
  3358. for ac_dir in $ac_x_header_dirs; do
  3359. if test -r "$ac_dir/X11/Intrinsic.h"; then
  3360. ac_x_includes=$ac_dir
  3361. break
  3362. fi
  3363. done
  3364. fi
  3365. rm -f conftest.err conftest.$ac_ext
  3366. fi # $ac_x_includes = no
  3367. if test "$ac_x_libraries" = no; then
  3368. # Check for the libraries.
  3369. # See if we find them without any special options.
  3370. # Don't add to $LIBS permanently.
  3371. ac_save_LIBS=$LIBS
  3372. LIBS="-lXt $LIBS"
  3373. cat >conftest.$ac_ext <<_ACEOF
  3374. /* confdefs.h. */
  3375. _ACEOF
  3376. cat confdefs.h >>conftest.$ac_ext
  3377. cat >>conftest.$ac_ext <<_ACEOF
  3378. /* end confdefs.h. */
  3379. #include <X11/Intrinsic.h>
  3380. int
  3381. main ()
  3382. {
  3383. XtMalloc (0)
  3384. ;
  3385. return 0;
  3386. }
  3387. _ACEOF
  3388. rm -f conftest.$ac_objext conftest$ac_exeext
  3389. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3390. (eval $ac_link) 2>conftest.er1
  3391. ac_status=$?
  3392. grep -v '^ *+' conftest.er1 >conftest.err
  3393. rm -f conftest.er1
  3394. cat conftest.err >&5
  3395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3396. (exit $ac_status); } &&
  3397. { ac_try='test -z "$ac_c_werror_flag"
  3398. || test ! -s conftest.err'
  3399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3400. (eval $ac_try) 2>&5
  3401. ac_status=$?
  3402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3403. (exit $ac_status); }; } &&
  3404. { ac_try='test -s conftest$ac_exeext'
  3405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3406. (eval $ac_try) 2>&5
  3407. ac_status=$?
  3408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3409. (exit $ac_status); }; }; then
  3410. LIBS=$ac_save_LIBS
  3411. # We can link X programs with no special library path.
  3412. ac_x_libraries=
  3413. else
  3414. echo "$as_me: failed program was:" >&5
  3415. sed 's/^/| /' conftest.$ac_ext >&5
  3416. LIBS=$ac_save_LIBS
  3417. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  3418. do
  3419. # Don't even attempt the hair of trying to link an X program!
  3420. for ac_extension in a so sl; do
  3421. if test -r $ac_dir/libXt.$ac_extension; then
  3422. ac_x_libraries=$ac_dir
  3423. break 2
  3424. fi
  3425. done
  3426. done
  3427. fi
  3428. rm -f conftest.err conftest.$ac_objext \
  3429. conftest$ac_exeext conftest.$ac_ext
  3430. fi # $ac_x_libraries = no
  3431. if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  3432. # Didn't find X anywhere. Cache the known absence of X.
  3433. ac_cv_have_x="have_x=no"
  3434. else
  3435. # Record where we found X for the cache.
  3436. ac_cv_have_x="have_x=yes \
  3437. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3438. fi
  3439. fi
  3440. fi
  3441. eval "$ac_cv_have_x"
  3442. fi # $with_x != no
  3443. if test "$have_x" != yes; then
  3444. echo "$as_me:$LINENO: result: $have_x" >&5
  3445. echo "${ECHO_T}$have_x" >&6
  3446. no_x=yes
  3447. else
  3448. # If each of the values was on the command line, it overrides each guess.
  3449. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3450. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3451. # Update the cache value to reflect the command line values.
  3452. ac_cv_have_x="have_x=yes \
  3453. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3454. echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
  3455. echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
  3456. fi
  3457. if test "$no_x" = yes; then
  3458. # Not all programs may use this symbol, but it does not hurt to define it.
  3459. cat >>confdefs.h <<\_ACEOF
  3460. #define X_DISPLAY_MISSING 1
  3461. _ACEOF
  3462. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3463. else
  3464. if test -n "$x_includes"; then
  3465. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3466. fi
  3467. # It would also be nice to do this for all -L options, not just this one.
  3468. if test -n "$x_libraries"; then
  3469. X_LIBS="$X_LIBS -L$x_libraries"
  3470. # For Solaris; some versions of Sun CC require a space after -R and
  3471. # others require no space. Words are not sufficient . . . .
  3472. case `(uname -sr) 2>/dev/null` in
  3473. "SunOS 5"*)
  3474. echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
  3475. echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
  3476. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  3477. cat >conftest.$ac_ext <<_ACEOF
  3478. /* confdefs.h. */
  3479. _ACEOF
  3480. cat confdefs.h >>conftest.$ac_ext
  3481. cat >>conftest.$ac_ext <<_ACEOF
  3482. /* end confdefs.h. */
  3483. int
  3484. main ()
  3485. {
  3486. ;
  3487. return 0;
  3488. }
  3489. _ACEOF
  3490. rm -f conftest.$ac_objext conftest$ac_exeext
  3491. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3492. (eval $ac_link) 2>conftest.er1
  3493. ac_status=$?
  3494. grep -v '^ *+' conftest.er1 >conftest.err
  3495. rm -f conftest.er1
  3496. cat conftest.err >&5
  3497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3498. (exit $ac_status); } &&
  3499. { ac_try='test -z "$ac_c_werror_flag"
  3500. || test ! -s conftest.err'
  3501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3502. (eval $ac_try) 2>&5
  3503. ac_status=$?
  3504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3505. (exit $ac_status); }; } &&
  3506. { ac_try='test -s conftest$ac_exeext'
  3507. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3508. (eval $ac_try) 2>&5
  3509. ac_status=$?
  3510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3511. (exit $ac_status); }; }; then
  3512. ac_R_nospace=yes
  3513. else
  3514. echo "$as_me: failed program was:" >&5
  3515. sed 's/^/| /' conftest.$ac_ext >&5
  3516. ac_R_nospace=no
  3517. fi
  3518. rm -f conftest.err conftest.$ac_objext \
  3519. conftest$ac_exeext conftest.$ac_ext
  3520. if test $ac_R_nospace = yes; then
  3521. echo "$as_me:$LINENO: result: no" >&5
  3522. echo "${ECHO_T}no" >&6
  3523. X_LIBS="$X_LIBS -R$x_libraries"
  3524. else
  3525. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3526. cat >conftest.$ac_ext <<_ACEOF
  3527. /* confdefs.h. */
  3528. _ACEOF
  3529. cat confdefs.h >>conftest.$ac_ext
  3530. cat >>conftest.$ac_ext <<_ACEOF
  3531. /* end confdefs.h. */
  3532. int
  3533. main ()
  3534. {
  3535. ;
  3536. return 0;
  3537. }
  3538. _ACEOF
  3539. rm -f conftest.$ac_objext conftest$ac_exeext
  3540. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3541. (eval $ac_link) 2>conftest.er1
  3542. ac_status=$?
  3543. grep -v '^ *+' conftest.er1 >conftest.err
  3544. rm -f conftest.er1
  3545. cat conftest.err >&5
  3546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3547. (exit $ac_status); } &&
  3548. { ac_try='test -z "$ac_c_werror_flag"
  3549. || test ! -s conftest.err'
  3550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3551. (eval $ac_try) 2>&5
  3552. ac_status=$?
  3553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3554. (exit $ac_status); }; } &&
  3555. { ac_try='test -s conftest$ac_exeext'
  3556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3557. (eval $ac_try) 2>&5
  3558. ac_status=$?
  3559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3560. (exit $ac_status); }; }; then
  3561. ac_R_space=yes
  3562. else
  3563. echo "$as_me: failed program was:" >&5
  3564. sed 's/^/| /' conftest.$ac_ext >&5
  3565. ac_R_space=no
  3566. fi
  3567. rm -f conftest.err conftest.$ac_objext \
  3568. conftest$ac_exeext conftest.$ac_ext
  3569. if test $ac_R_space = yes; then
  3570. echo "$as_me:$LINENO: result: yes" >&5
  3571. echo "${ECHO_T}yes" >&6
  3572. X_LIBS="$X_LIBS -R $x_libraries"
  3573. else
  3574. echo "$as_me:$LINENO: result: neither works" >&5
  3575. echo "${ECHO_T}neither works" >&6
  3576. fi
  3577. fi
  3578. LIBS=$ac_xsave_LIBS
  3579. esac
  3580. fi
  3581. # Check for system-dependent libraries X programs must link with.
  3582. # Do this before checking for the system-independent R6 libraries
  3583. # (-lICE), since we may need -lsocket or whatever for X linking.
  3584. if test "$ISC" = yes; then
  3585. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3586. else
  3587. # Martyn Johnson says this is needed for Ultrix, if the X
  3588. # libraries were built with DECnet support. And Karl Berry says
  3589. # the Alpha needs dnet_stub (dnet does not exist).
  3590. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  3591. cat >conftest.$ac_ext <<_ACEOF
  3592. /* confdefs.h. */
  3593. _ACEOF
  3594. cat confdefs.h >>conftest.$ac_ext
  3595. cat >>conftest.$ac_ext <<_ACEOF
  3596. /* end confdefs.h. */
  3597. /* Override any gcc2 internal prototype to avoid an error. */
  3598. #ifdef __cplusplus
  3599. extern "C"
  3600. #endif
  3601. /* We use char because int might match the return type of a gcc2
  3602. builtin and then its argument prototype would still apply. */
  3603. char XOpenDisplay ();
  3604. int
  3605. main ()
  3606. {
  3607. XOpenDisplay ();
  3608. ;
  3609. return 0;
  3610. }
  3611. _ACEOF
  3612. rm -f conftest.$ac_objext conftest$ac_exeext
  3613. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3614. (eval $ac_link) 2>conftest.er1
  3615. ac_status=$?
  3616. grep -v '^ *+' conftest.er1 >conftest.err
  3617. rm -f conftest.er1
  3618. cat conftest.err >&5
  3619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3620. (exit $ac_status); } &&
  3621. { ac_try='test -z "$ac_c_werror_flag"
  3622. || test ! -s conftest.err'
  3623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3624. (eval $ac_try) 2>&5
  3625. ac_status=$?
  3626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3627. (exit $ac_status); }; } &&
  3628. { ac_try='test -s conftest$ac_exeext'
  3629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3630. (eval $ac_try) 2>&5
  3631. ac_status=$?
  3632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3633. (exit $ac_status); }; }; then
  3634. :
  3635. else
  3636. echo "$as_me: failed program was:" >&5
  3637. sed 's/^/| /' conftest.$ac_ext >&5
  3638. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  3639. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
  3640. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  3641. echo $ECHO_N "(cached) $ECHO_C" >&6
  3642. else
  3643. ac_check_lib_save_LIBS=$LIBS
  3644. LIBS="-ldnet $LIBS"
  3645. cat >conftest.$ac_ext <<_ACEOF
  3646. /* confdefs.h. */
  3647. _ACEOF
  3648. cat confdefs.h >>conftest.$ac_ext
  3649. cat >>conftest.$ac_ext <<_ACEOF
  3650. /* end confdefs.h. */
  3651. /* Override any gcc2 internal prototype to avoid an error. */
  3652. #ifdef __cplusplus
  3653. extern "C"
  3654. #endif
  3655. /* We use char because int might match the return type of a gcc2
  3656. builtin and then its argument prototype would still apply. */
  3657. char dnet_ntoa ();
  3658. int
  3659. main ()
  3660. {
  3661. dnet_ntoa ();
  3662. ;
  3663. return 0;
  3664. }
  3665. _ACEOF
  3666. rm -f conftest.$ac_objext conftest$ac_exeext
  3667. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3668. (eval $ac_link) 2>conftest.er1
  3669. ac_status=$?
  3670. grep -v '^ *+' conftest.er1 >conftest.err
  3671. rm -f conftest.er1
  3672. cat conftest.err >&5
  3673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3674. (exit $ac_status); } &&
  3675. { ac_try='test -z "$ac_c_werror_flag"
  3676. || test ! -s conftest.err'
  3677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3678. (eval $ac_try) 2>&5
  3679. ac_status=$?
  3680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3681. (exit $ac_status); }; } &&
  3682. { ac_try='test -s conftest$ac_exeext'
  3683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3684. (eval $ac_try) 2>&5
  3685. ac_status=$?
  3686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3687. (exit $ac_status); }; }; then
  3688. ac_cv_lib_dnet_dnet_ntoa=yes
  3689. else
  3690. echo "$as_me: failed program was:" >&5
  3691. sed 's/^/| /' conftest.$ac_ext >&5
  3692. ac_cv_lib_dnet_dnet_ntoa=no
  3693. fi
  3694. rm -f conftest.err conftest.$ac_objext \
  3695. conftest$ac_exeext conftest.$ac_ext
  3696. LIBS=$ac_check_lib_save_LIBS
  3697. fi
  3698. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  3699. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
  3700. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  3701. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3702. fi
  3703. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3704. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  3705. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
  3706. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  3707. echo $ECHO_N "(cached) $ECHO_C" >&6
  3708. else
  3709. ac_check_lib_save_LIBS=$LIBS
  3710. LIBS="-ldnet_stub $LIBS"
  3711. cat >conftest.$ac_ext <<_ACEOF
  3712. /* confdefs.h. */
  3713. _ACEOF
  3714. cat confdefs.h >>conftest.$ac_ext
  3715. cat >>conftest.$ac_ext <<_ACEOF
  3716. /* end confdefs.h. */
  3717. /* Override any gcc2 internal prototype to avoid an error. */
  3718. #ifdef __cplusplus
  3719. extern "C"
  3720. #endif
  3721. /* We use char because int might match the return type of a gcc2
  3722. builtin and then its argument prototype would still apply. */
  3723. char dnet_ntoa ();
  3724. int
  3725. main ()
  3726. {
  3727. dnet_ntoa ();
  3728. ;
  3729. return 0;
  3730. }
  3731. _ACEOF
  3732. rm -f conftest.$ac_objext conftest$ac_exeext
  3733. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3734. (eval $ac_link) 2>conftest.er1
  3735. ac_status=$?
  3736. grep -v '^ *+' conftest.er1 >conftest.err
  3737. rm -f conftest.er1
  3738. cat conftest.err >&5
  3739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3740. (exit $ac_status); } &&
  3741. { ac_try='test -z "$ac_c_werror_flag"
  3742. || test ! -s conftest.err'
  3743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3744. (eval $ac_try) 2>&5
  3745. ac_status=$?
  3746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3747. (exit $ac_status); }; } &&
  3748. { ac_try='test -s conftest$ac_exeext'
  3749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3750. (eval $ac_try) 2>&5
  3751. ac_status=$?
  3752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3753. (exit $ac_status); }; }; then
  3754. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  3755. else
  3756. echo "$as_me: failed program was:" >&5
  3757. sed 's/^/| /' conftest.$ac_ext >&5
  3758. ac_cv_lib_dnet_stub_dnet_ntoa=no
  3759. fi
  3760. rm -f conftest.err conftest.$ac_objext \
  3761. conftest$ac_exeext conftest.$ac_ext
  3762. LIBS=$ac_check_lib_save_LIBS
  3763. fi
  3764. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  3765. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
  3766. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  3767. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3768. fi
  3769. fi
  3770. fi
  3771. rm -f conftest.err conftest.$ac_objext \
  3772. conftest$ac_exeext conftest.$ac_ext
  3773. LIBS="$ac_xsave_LIBS"
  3774. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3775. # to get the SysV transport functions.
  3776. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  3777. # needs -lnsl.
  3778. # The nsl library prevents programs from opening the X display
  3779. # on Irix 5.2, according to T.E. Dickey.
  3780. # The functions gethostbyname, getservbyname, and inet_addr are
  3781. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  3782. echo "$as_me:$LINENO: checking for gethostbyname" >&5
  3783. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  3784. if test "${ac_cv_func_gethostbyname+set}" = set; then
  3785. echo $ECHO_N "(cached) $ECHO_C" >&6
  3786. else
  3787. cat >conftest.$ac_ext <<_ACEOF
  3788. /* confdefs.h. */
  3789. _ACEOF
  3790. cat confdefs.h >>conftest.$ac_ext
  3791. cat >>conftest.$ac_ext <<_ACEOF
  3792. /* end confdefs.h. */
  3793. /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  3794. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3795. #define gethostbyname innocuous_gethostbyname
  3796. /* System header to define __stub macros and hopefully few prototypes,
  3797. which can conflict with char gethostbyname (); below.
  3798. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3799. <limits.h> exists even on freestanding compilers. */
  3800. #ifdef __STDC__
  3801. # include <limits.h>
  3802. #else
  3803. # include <assert.h>
  3804. #endif
  3805. #undef gethostbyname
  3806. /* Override any gcc2 internal prototype to avoid an error. */
  3807. #ifdef __cplusplus
  3808. extern "C"
  3809. {
  3810. #endif
  3811. /* We use char because int might match the return type of a gcc2
  3812. builtin and then its argument prototype would still apply. */
  3813. char gethostbyname ();
  3814. /* The GNU C library defines this for functions which it implements
  3815. to always fail with ENOSYS. Some functions are actually named
  3816. something starting with __ and the normal name is an alias. */
  3817. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3818. choke me
  3819. #else
  3820. char (*f) () = gethostbyname;
  3821. #endif
  3822. #ifdef __cplusplus
  3823. }
  3824. #endif
  3825. int
  3826. main ()
  3827. {
  3828. return f != gethostbyname;
  3829. ;
  3830. return 0;
  3831. }
  3832. _ACEOF
  3833. rm -f conftest.$ac_objext conftest$ac_exeext
  3834. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3835. (eval $ac_link) 2>conftest.er1
  3836. ac_status=$?
  3837. grep -v '^ *+' conftest.er1 >conftest.err
  3838. rm -f conftest.er1
  3839. cat conftest.err >&5
  3840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3841. (exit $ac_status); } &&
  3842. { ac_try='test -z "$ac_c_werror_flag"
  3843. || test ! -s conftest.err'
  3844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3845. (eval $ac_try) 2>&5
  3846. ac_status=$?
  3847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3848. (exit $ac_status); }; } &&
  3849. { ac_try='test -s conftest$ac_exeext'
  3850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3851. (eval $ac_try) 2>&5
  3852. ac_status=$?
  3853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3854. (exit $ac_status); }; }; then
  3855. ac_cv_func_gethostbyname=yes
  3856. else
  3857. echo "$as_me: failed program was:" >&5
  3858. sed 's/^/| /' conftest.$ac_ext >&5
  3859. ac_cv_func_gethostbyname=no
  3860. fi
  3861. rm -f conftest.err conftest.$ac_objext \
  3862. conftest$ac_exeext conftest.$ac_ext
  3863. fi
  3864. echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  3865. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  3866. if test $ac_cv_func_gethostbyname = no; then
  3867. echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  3868. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  3869. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  3870. echo $ECHO_N "(cached) $ECHO_C" >&6
  3871. else
  3872. ac_check_lib_save_LIBS=$LIBS
  3873. LIBS="-lnsl $LIBS"
  3874. cat >conftest.$ac_ext <<_ACEOF
  3875. /* confdefs.h. */
  3876. _ACEOF
  3877. cat confdefs.h >>conftest.$ac_ext
  3878. cat >>conftest.$ac_ext <<_ACEOF
  3879. /* end confdefs.h. */
  3880. /* Override any gcc2 internal prototype to avoid an error. */
  3881. #ifdef __cplusplus
  3882. extern "C"
  3883. #endif
  3884. /* We use char because int might match the return type of a gcc2
  3885. builtin and then its argument prototype would still apply. */
  3886. char gethostbyname ();
  3887. int
  3888. main ()
  3889. {
  3890. gethostbyname ();
  3891. ;
  3892. return 0;
  3893. }
  3894. _ACEOF
  3895. rm -f conftest.$ac_objext conftest$ac_exeext
  3896. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3897. (eval $ac_link) 2>conftest.er1
  3898. ac_status=$?
  3899. grep -v '^ *+' conftest.er1 >conftest.err
  3900. rm -f conftest.er1
  3901. cat conftest.err >&5
  3902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3903. (exit $ac_status); } &&
  3904. { ac_try='test -z "$ac_c_werror_flag"
  3905. || test ! -s conftest.err'
  3906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3907. (eval $ac_try) 2>&5
  3908. ac_status=$?
  3909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3910. (exit $ac_status); }; } &&
  3911. { ac_try='test -s conftest$ac_exeext'
  3912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3913. (eval $ac_try) 2>&5
  3914. ac_status=$?
  3915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3916. (exit $ac_status); }; }; then
  3917. ac_cv_lib_nsl_gethostbyname=yes
  3918. else
  3919. echo "$as_me: failed program was:" >&5
  3920. sed 's/^/| /' conftest.$ac_ext >&5
  3921. ac_cv_lib_nsl_gethostbyname=no
  3922. fi
  3923. rm -f conftest.err conftest.$ac_objext \
  3924. conftest$ac_exeext conftest.$ac_ext
  3925. LIBS=$ac_check_lib_save_LIBS
  3926. fi
  3927. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  3928. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  3929. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  3930. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3931. fi
  3932. if test $ac_cv_lib_nsl_gethostbyname = no; then
  3933. echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  3934. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
  3935. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  3936. echo $ECHO_N "(cached) $ECHO_C" >&6
  3937. else
  3938. ac_check_lib_save_LIBS=$LIBS
  3939. LIBS="-lbsd $LIBS"
  3940. cat >conftest.$ac_ext <<_ACEOF
  3941. /* confdefs.h. */
  3942. _ACEOF
  3943. cat confdefs.h >>conftest.$ac_ext
  3944. cat >>conftest.$ac_ext <<_ACEOF
  3945. /* end confdefs.h. */
  3946. /* Override any gcc2 internal prototype to avoid an error. */
  3947. #ifdef __cplusplus
  3948. extern "C"
  3949. #endif
  3950. /* We use char because int might match the return type of a gcc2
  3951. builtin and then its argument prototype would still apply. */
  3952. char gethostbyname ();
  3953. int
  3954. main ()
  3955. {
  3956. gethostbyname ();
  3957. ;
  3958. return 0;
  3959. }
  3960. _ACEOF
  3961. rm -f conftest.$ac_objext conftest$ac_exeext
  3962. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3963. (eval $ac_link) 2>conftest.er1
  3964. ac_status=$?
  3965. grep -v '^ *+' conftest.er1 >conftest.err
  3966. rm -f conftest.er1
  3967. cat conftest.err >&5
  3968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3969. (exit $ac_status); } &&
  3970. { ac_try='test -z "$ac_c_werror_flag"
  3971. || test ! -s conftest.err'
  3972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3973. (eval $ac_try) 2>&5
  3974. ac_status=$?
  3975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3976. (exit $ac_status); }; } &&
  3977. { ac_try='test -s conftest$ac_exeext'
  3978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3979. (eval $ac_try) 2>&5
  3980. ac_status=$?
  3981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3982. (exit $ac_status); }; }; then
  3983. ac_cv_lib_bsd_gethostbyname=yes
  3984. else
  3985. echo "$as_me: failed program was:" >&5
  3986. sed 's/^/| /' conftest.$ac_ext >&5
  3987. ac_cv_lib_bsd_gethostbyname=no
  3988. fi
  3989. rm -f conftest.err conftest.$ac_objext \
  3990. conftest$ac_exeext conftest.$ac_ext
  3991. LIBS=$ac_check_lib_save_LIBS
  3992. fi
  3993. echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  3994. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
  3995. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  3996. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  3997. fi
  3998. fi
  3999. fi
  4000. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  4001. # socket/setsockopt and other routines are undefined under SCO ODT
  4002. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  4003. # on later versions), says Simon Leinen: it contains gethostby*
  4004. # variants that don't use the name server (or something). -lsocket
  4005. # must be given before -lnsl if both are needed. We assume that
  4006. # if connect needs -lnsl, so does gethostbyname.
  4007. echo "$as_me:$LINENO: checking for connect" >&5
  4008. echo $ECHO_N "checking for connect... $ECHO_C" >&6
  4009. if test "${ac_cv_func_connect+set}" = set; then
  4010. echo $ECHO_N "(cached) $ECHO_C" >&6
  4011. else
  4012. cat >conftest.$ac_ext <<_ACEOF
  4013. /* confdefs.h. */
  4014. _ACEOF
  4015. cat confdefs.h >>conftest.$ac_ext
  4016. cat >>conftest.$ac_ext <<_ACEOF
  4017. /* end confdefs.h. */
  4018. /* Define connect to an innocuous variant, in case <limits.h> declares connect.
  4019. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4020. #define connect innocuous_connect
  4021. /* System header to define __stub macros and hopefully few prototypes,
  4022. which can conflict with char connect (); below.
  4023. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4024. <limits.h> exists even on freestanding compilers. */
  4025. #ifdef __STDC__
  4026. # include <limits.h>
  4027. #else
  4028. # include <assert.h>
  4029. #endif
  4030. #undef connect
  4031. /* Override any gcc2 internal prototype to avoid an error. */
  4032. #ifdef __cplusplus
  4033. extern "C"
  4034. {
  4035. #endif
  4036. /* We use char because int might match the return type of a gcc2
  4037. builtin and then its argument prototype would still apply. */
  4038. char connect ();
  4039. /* The GNU C library defines this for functions which it implements
  4040. to always fail with ENOSYS. Some functions are actually named
  4041. something starting with __ and the normal name is an alias. */
  4042. #if defined (__stub_connect) || defined (__stub___connect)
  4043. choke me
  4044. #else
  4045. char (*f) () = connect;
  4046. #endif
  4047. #ifdef __cplusplus
  4048. }
  4049. #endif
  4050. int
  4051. main ()
  4052. {
  4053. return f != connect;
  4054. ;
  4055. return 0;
  4056. }
  4057. _ACEOF
  4058. rm -f conftest.$ac_objext conftest$ac_exeext
  4059. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4060. (eval $ac_link) 2>conftest.er1
  4061. ac_status=$?
  4062. grep -v '^ *+' conftest.er1 >conftest.err
  4063. rm -f conftest.er1
  4064. cat conftest.err >&5
  4065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4066. (exit $ac_status); } &&
  4067. { ac_try='test -z "$ac_c_werror_flag"
  4068. || test ! -s conftest.err'
  4069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4070. (eval $ac_try) 2>&5
  4071. ac_status=$?
  4072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4073. (exit $ac_status); }; } &&
  4074. { ac_try='test -s conftest$ac_exeext'
  4075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4076. (eval $ac_try) 2>&5
  4077. ac_status=$?
  4078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4079. (exit $ac_status); }; }; then
  4080. ac_cv_func_connect=yes
  4081. else
  4082. echo "$as_me: failed program was:" >&5
  4083. sed 's/^/| /' conftest.$ac_ext >&5
  4084. ac_cv_func_connect=no
  4085. fi
  4086. rm -f conftest.err conftest.$ac_objext \
  4087. conftest$ac_exeext conftest.$ac_ext
  4088. fi
  4089. echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  4090. echo "${ECHO_T}$ac_cv_func_connect" >&6
  4091. if test $ac_cv_func_connect = no; then
  4092. echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  4093. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  4094. if test "${ac_cv_lib_socket_connect+set}" = set; then
  4095. echo $ECHO_N "(cached) $ECHO_C" >&6
  4096. else
  4097. ac_check_lib_save_LIBS=$LIBS
  4098. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  4099. cat >conftest.$ac_ext <<_ACEOF
  4100. /* confdefs.h. */
  4101. _ACEOF
  4102. cat confdefs.h >>conftest.$ac_ext
  4103. cat >>conftest.$ac_ext <<_ACEOF
  4104. /* end confdefs.h. */
  4105. /* Override any gcc2 internal prototype to avoid an error. */
  4106. #ifdef __cplusplus
  4107. extern "C"
  4108. #endif
  4109. /* We use char because int might match the return type of a gcc2
  4110. builtin and then its argument prototype would still apply. */
  4111. char connect ();
  4112. int
  4113. main ()
  4114. {
  4115. connect ();
  4116. ;
  4117. return 0;
  4118. }
  4119. _ACEOF
  4120. rm -f conftest.$ac_objext conftest$ac_exeext
  4121. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4122. (eval $ac_link) 2>conftest.er1
  4123. ac_status=$?
  4124. grep -v '^ *+' conftest.er1 >conftest.err
  4125. rm -f conftest.er1
  4126. cat conftest.err >&5
  4127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4128. (exit $ac_status); } &&
  4129. { ac_try='test -z "$ac_c_werror_flag"
  4130. || test ! -s conftest.err'
  4131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4132. (eval $ac_try) 2>&5
  4133. ac_status=$?
  4134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4135. (exit $ac_status); }; } &&
  4136. { ac_try='test -s conftest$ac_exeext'
  4137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4138. (eval $ac_try) 2>&5
  4139. ac_status=$?
  4140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4141. (exit $ac_status); }; }; then
  4142. ac_cv_lib_socket_connect=yes
  4143. else
  4144. echo "$as_me: failed program was:" >&5
  4145. sed 's/^/| /' conftest.$ac_ext >&5
  4146. ac_cv_lib_socket_connect=no
  4147. fi
  4148. rm -f conftest.err conftest.$ac_objext \
  4149. conftest$ac_exeext conftest.$ac_ext
  4150. LIBS=$ac_check_lib_save_LIBS
  4151. fi
  4152. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  4153. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  4154. if test $ac_cv_lib_socket_connect = yes; then
  4155. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  4156. fi
  4157. fi
  4158. # Guillermo Gomez says -lposix is necessary on A/UX.
  4159. echo "$as_me:$LINENO: checking for remove" >&5
  4160. echo $ECHO_N "checking for remove... $ECHO_C" >&6
  4161. if test "${ac_cv_func_remove+set}" = set; then
  4162. echo $ECHO_N "(cached) $ECHO_C" >&6
  4163. else
  4164. cat >conftest.$ac_ext <<_ACEOF
  4165. /* confdefs.h. */
  4166. _ACEOF
  4167. cat confdefs.h >>conftest.$ac_ext
  4168. cat >>conftest.$ac_ext <<_ACEOF
  4169. /* end confdefs.h. */
  4170. /* Define remove to an innocuous variant, in case <limits.h> declares remove.
  4171. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4172. #define remove innocuous_remove
  4173. /* System header to define __stub macros and hopefully few prototypes,
  4174. which can conflict with char remove (); below.
  4175. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4176. <limits.h> exists even on freestanding compilers. */
  4177. #ifdef __STDC__
  4178. # include <limits.h>
  4179. #else
  4180. # include <assert.h>
  4181. #endif
  4182. #undef remove
  4183. /* Override any gcc2 internal prototype to avoid an error. */
  4184. #ifdef __cplusplus
  4185. extern "C"
  4186. {
  4187. #endif
  4188. /* We use char because int might match the return type of a gcc2
  4189. builtin and then its argument prototype would still apply. */
  4190. char remove ();
  4191. /* The GNU C library defines this for functions which it implements
  4192. to always fail with ENOSYS. Some functions are actually named
  4193. something starting with __ and the normal name is an alias. */
  4194. #if defined (__stub_remove) || defined (__stub___remove)
  4195. choke me
  4196. #else
  4197. char (*f) () = remove;
  4198. #endif
  4199. #ifdef __cplusplus
  4200. }
  4201. #endif
  4202. int
  4203. main ()
  4204. {
  4205. return f != remove;
  4206. ;
  4207. return 0;
  4208. }
  4209. _ACEOF
  4210. rm -f conftest.$ac_objext conftest$ac_exeext
  4211. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4212. (eval $ac_link) 2>conftest.er1
  4213. ac_status=$?
  4214. grep -v '^ *+' conftest.er1 >conftest.err
  4215. rm -f conftest.er1
  4216. cat conftest.err >&5
  4217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4218. (exit $ac_status); } &&
  4219. { ac_try='test -z "$ac_c_werror_flag"
  4220. || test ! -s conftest.err'
  4221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4222. (eval $ac_try) 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. ac_cv_func_remove=yes
  4233. else
  4234. echo "$as_me: failed program was:" >&5
  4235. sed 's/^/| /' conftest.$ac_ext >&5
  4236. ac_cv_func_remove=no
  4237. fi
  4238. rm -f conftest.err conftest.$ac_objext \
  4239. conftest$ac_exeext conftest.$ac_ext
  4240. fi
  4241. echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  4242. echo "${ECHO_T}$ac_cv_func_remove" >&6
  4243. if test $ac_cv_func_remove = no; then
  4244. echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  4245. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
  4246. if test "${ac_cv_lib_posix_remove+set}" = set; then
  4247. echo $ECHO_N "(cached) $ECHO_C" >&6
  4248. else
  4249. ac_check_lib_save_LIBS=$LIBS
  4250. LIBS="-lposix $LIBS"
  4251. cat >conftest.$ac_ext <<_ACEOF
  4252. /* confdefs.h. */
  4253. _ACEOF
  4254. cat confdefs.h >>conftest.$ac_ext
  4255. cat >>conftest.$ac_ext <<_ACEOF
  4256. /* end confdefs.h. */
  4257. /* Override any gcc2 internal prototype to avoid an error. */
  4258. #ifdef __cplusplus
  4259. extern "C"
  4260. #endif
  4261. /* We use char because int might match the return type of a gcc2
  4262. builtin and then its argument prototype would still apply. */
  4263. char remove ();
  4264. int
  4265. main ()
  4266. {
  4267. remove ();
  4268. ;
  4269. return 0;
  4270. }
  4271. _ACEOF
  4272. rm -f conftest.$ac_objext conftest$ac_exeext
  4273. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4274. (eval $ac_link) 2>conftest.er1
  4275. ac_status=$?
  4276. grep -v '^ *+' conftest.er1 >conftest.err
  4277. rm -f conftest.er1
  4278. cat conftest.err >&5
  4279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4280. (exit $ac_status); } &&
  4281. { ac_try='test -z "$ac_c_werror_flag"
  4282. || test ! -s conftest.err'
  4283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4284. (eval $ac_try) 2>&5
  4285. ac_status=$?
  4286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4287. (exit $ac_status); }; } &&
  4288. { ac_try='test -s conftest$ac_exeext'
  4289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4290. (eval $ac_try) 2>&5
  4291. ac_status=$?
  4292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4293. (exit $ac_status); }; }; then
  4294. ac_cv_lib_posix_remove=yes
  4295. else
  4296. echo "$as_me: failed program was:" >&5
  4297. sed 's/^/| /' conftest.$ac_ext >&5
  4298. ac_cv_lib_posix_remove=no
  4299. fi
  4300. rm -f conftest.err conftest.$ac_objext \
  4301. conftest$ac_exeext conftest.$ac_ext
  4302. LIBS=$ac_check_lib_save_LIBS
  4303. fi
  4304. echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  4305. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
  4306. if test $ac_cv_lib_posix_remove = yes; then
  4307. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  4308. fi
  4309. fi
  4310. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  4311. echo "$as_me:$LINENO: checking for shmat" >&5
  4312. echo $ECHO_N "checking for shmat... $ECHO_C" >&6
  4313. if test "${ac_cv_func_shmat+set}" = set; then
  4314. echo $ECHO_N "(cached) $ECHO_C" >&6
  4315. else
  4316. cat >conftest.$ac_ext <<_ACEOF
  4317. /* confdefs.h. */
  4318. _ACEOF
  4319. cat confdefs.h >>conftest.$ac_ext
  4320. cat >>conftest.$ac_ext <<_ACEOF
  4321. /* end confdefs.h. */
  4322. /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
  4323. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4324. #define shmat innocuous_shmat
  4325. /* System header to define __stub macros and hopefully few prototypes,
  4326. which can conflict with char shmat (); below.
  4327. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4328. <limits.h> exists even on freestanding compilers. */
  4329. #ifdef __STDC__
  4330. # include <limits.h>
  4331. #else
  4332. # include <assert.h>
  4333. #endif
  4334. #undef shmat
  4335. /* Override any gcc2 internal prototype to avoid an error. */
  4336. #ifdef __cplusplus
  4337. extern "C"
  4338. {
  4339. #endif
  4340. /* We use char because int might match the return type of a gcc2
  4341. builtin and then its argument prototype would still apply. */
  4342. char shmat ();
  4343. /* The GNU C library defines this for functions which it implements
  4344. to always fail with ENOSYS. Some functions are actually named
  4345. something starting with __ and the normal name is an alias. */
  4346. #if defined (__stub_shmat) || defined (__stub___shmat)
  4347. choke me
  4348. #else
  4349. char (*f) () = shmat;
  4350. #endif
  4351. #ifdef __cplusplus
  4352. }
  4353. #endif
  4354. int
  4355. main ()
  4356. {
  4357. return f != shmat;
  4358. ;
  4359. return 0;
  4360. }
  4361. _ACEOF
  4362. rm -f conftest.$ac_objext conftest$ac_exeext
  4363. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4364. (eval $ac_link) 2>conftest.er1
  4365. ac_status=$?
  4366. grep -v '^ *+' conftest.er1 >conftest.err
  4367. rm -f conftest.er1
  4368. cat conftest.err >&5
  4369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4370. (exit $ac_status); } &&
  4371. { ac_try='test -z "$ac_c_werror_flag"
  4372. || test ! -s conftest.err'
  4373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4374. (eval $ac_try) 2>&5
  4375. ac_status=$?
  4376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4377. (exit $ac_status); }; } &&
  4378. { ac_try='test -s conftest$ac_exeext'
  4379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4380. (eval $ac_try) 2>&5
  4381. ac_status=$?
  4382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4383. (exit $ac_status); }; }; then
  4384. ac_cv_func_shmat=yes
  4385. else
  4386. echo "$as_me: failed program was:" >&5
  4387. sed 's/^/| /' conftest.$ac_ext >&5
  4388. ac_cv_func_shmat=no
  4389. fi
  4390. rm -f conftest.err conftest.$ac_objext \
  4391. conftest$ac_exeext conftest.$ac_ext
  4392. fi
  4393. echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  4394. echo "${ECHO_T}$ac_cv_func_shmat" >&6
  4395. if test $ac_cv_func_shmat = no; then
  4396. echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  4397. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
  4398. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  4399. echo $ECHO_N "(cached) $ECHO_C" >&6
  4400. else
  4401. ac_check_lib_save_LIBS=$LIBS
  4402. LIBS="-lipc $LIBS"
  4403. cat >conftest.$ac_ext <<_ACEOF
  4404. /* confdefs.h. */
  4405. _ACEOF
  4406. cat confdefs.h >>conftest.$ac_ext
  4407. cat >>conftest.$ac_ext <<_ACEOF
  4408. /* end confdefs.h. */
  4409. /* Override any gcc2 internal prototype to avoid an error. */
  4410. #ifdef __cplusplus
  4411. extern "C"
  4412. #endif
  4413. /* We use char because int might match the return type of a gcc2
  4414. builtin and then its argument prototype would still apply. */
  4415. char shmat ();
  4416. int
  4417. main ()
  4418. {
  4419. shmat ();
  4420. ;
  4421. return 0;
  4422. }
  4423. _ACEOF
  4424. rm -f conftest.$ac_objext conftest$ac_exeext
  4425. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4426. (eval $ac_link) 2>conftest.er1
  4427. ac_status=$?
  4428. grep -v '^ *+' conftest.er1 >conftest.err
  4429. rm -f conftest.er1
  4430. cat conftest.err >&5
  4431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4432. (exit $ac_status); } &&
  4433. { ac_try='test -z "$ac_c_werror_flag"
  4434. || test ! -s conftest.err'
  4435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4436. (eval $ac_try) 2>&5
  4437. ac_status=$?
  4438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4439. (exit $ac_status); }; } &&
  4440. { ac_try='test -s conftest$ac_exeext'
  4441. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4442. (eval $ac_try) 2>&5
  4443. ac_status=$?
  4444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4445. (exit $ac_status); }; }; then
  4446. ac_cv_lib_ipc_shmat=yes
  4447. else
  4448. echo "$as_me: failed program was:" >&5
  4449. sed 's/^/| /' conftest.$ac_ext >&5
  4450. ac_cv_lib_ipc_shmat=no
  4451. fi
  4452. rm -f conftest.err conftest.$ac_objext \
  4453. conftest$ac_exeext conftest.$ac_ext
  4454. LIBS=$ac_check_lib_save_LIBS
  4455. fi
  4456. echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  4457. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
  4458. if test $ac_cv_lib_ipc_shmat = yes; then
  4459. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  4460. fi
  4461. fi
  4462. fi
  4463. # Check for libraries that X11R6 Xt/Xaw programs need.
  4464. ac_save_LDFLAGS=$LDFLAGS
  4465. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  4466. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  4467. # check for ICE first), but we must link in the order -lSM -lICE or
  4468. # we get undefined symbols. So assume we have SM if we have ICE.
  4469. # These have to be linked with before -lX11, unlike the other
  4470. # libraries we check for below, so use a different variable.
  4471. # John Interrante, Karl Berry
  4472. echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  4473. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
  4474. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  4475. echo $ECHO_N "(cached) $ECHO_C" >&6
  4476. else
  4477. ac_check_lib_save_LIBS=$LIBS
  4478. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  4479. cat >conftest.$ac_ext <<_ACEOF
  4480. /* confdefs.h. */
  4481. _ACEOF
  4482. cat confdefs.h >>conftest.$ac_ext
  4483. cat >>conftest.$ac_ext <<_ACEOF
  4484. /* end confdefs.h. */
  4485. /* Override any gcc2 internal prototype to avoid an error. */
  4486. #ifdef __cplusplus
  4487. extern "C"
  4488. #endif
  4489. /* We use char because int might match the return type of a gcc2
  4490. builtin and then its argument prototype would still apply. */
  4491. char IceConnectionNumber ();
  4492. int
  4493. main ()
  4494. {
  4495. IceConnectionNumber ();
  4496. ;
  4497. return 0;
  4498. }
  4499. _ACEOF
  4500. rm -f conftest.$ac_objext conftest$ac_exeext
  4501. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4502. (eval $ac_link) 2>conftest.er1
  4503. ac_status=$?
  4504. grep -v '^ *+' conftest.er1 >conftest.err
  4505. rm -f conftest.er1
  4506. cat conftest.err >&5
  4507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4508. (exit $ac_status); } &&
  4509. { ac_try='test -z "$ac_c_werror_flag"
  4510. || test ! -s conftest.err'
  4511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4512. (eval $ac_try) 2>&5
  4513. ac_status=$?
  4514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4515. (exit $ac_status); }; } &&
  4516. { ac_try='test -s conftest$ac_exeext'
  4517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4518. (eval $ac_try) 2>&5
  4519. ac_status=$?
  4520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4521. (exit $ac_status); }; }; then
  4522. ac_cv_lib_ICE_IceConnectionNumber=yes
  4523. else
  4524. echo "$as_me: failed program was:" >&5
  4525. sed 's/^/| /' conftest.$ac_ext >&5
  4526. ac_cv_lib_ICE_IceConnectionNumber=no
  4527. fi
  4528. rm -f conftest.err conftest.$ac_objext \
  4529. conftest$ac_exeext conftest.$ac_ext
  4530. LIBS=$ac_check_lib_save_LIBS
  4531. fi
  4532. echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  4533. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
  4534. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  4535. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  4536. fi
  4537. LDFLAGS=$ac_save_LDFLAGS
  4538. fi
  4539. groff_no_x=$no_x
  4540. if test -z "$groff_no_x"; then
  4541. OLDCFLAGS=$CFLAGS
  4542. OLDLDFLAGS=$LDFLAGS
  4543. OLDLIBS=$LIBS
  4544. CFLAGS="$CFLAGS $X_CFLAGS"
  4545. LDFLAGS="$LDFLAGS $X_LIBS"
  4546. LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  4547. LIBS="$LIBS -lXaw"
  4548. echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
  4549. echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
  4550. cat >conftest.$ac_ext <<_ACEOF
  4551. /* confdefs.h. */
  4552. _ACEOF
  4553. cat confdefs.h >>conftest.$ac_ext
  4554. cat >>conftest.$ac_ext <<_ACEOF
  4555. /* end confdefs.h. */
  4556. #include <X11/Intrinsic.h>
  4557. #include <X11/Xaw/Simple.h>
  4558. int
  4559. main ()
  4560. {
  4561. ;
  4562. return 0;
  4563. }
  4564. _ACEOF
  4565. rm -f conftest.$ac_objext conftest$ac_exeext
  4566. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4567. (eval $ac_link) 2>conftest.er1
  4568. ac_status=$?
  4569. grep -v '^ *+' conftest.er1 >conftest.err
  4570. rm -f conftest.er1
  4571. cat conftest.err >&5
  4572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4573. (exit $ac_status); } &&
  4574. { ac_try='test -z "$ac_c_werror_flag"
  4575. || test ! -s conftest.err'
  4576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4577. (eval $ac_try) 2>&5
  4578. ac_status=$?
  4579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4580. (exit $ac_status); }; } &&
  4581. { ac_try='test -s conftest$ac_exeext'
  4582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4583. (eval $ac_try) 2>&5
  4584. ac_status=$?
  4585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4586. (exit $ac_status); }; }; then
  4587. echo "$as_me:$LINENO: result: yes" >&5
  4588. echo "${ECHO_T}yes" >&6
  4589. else
  4590. echo "$as_me: failed program was:" >&5
  4591. sed 's/^/| /' conftest.$ac_ext >&5
  4592. echo "$as_me:$LINENO: result: no" >&5
  4593. echo "${ECHO_T}no" >&6
  4594. groff_no_x="yes"
  4595. fi
  4596. rm -f conftest.err conftest.$ac_objext \
  4597. conftest$ac_exeext conftest.$ac_ext
  4598. LIBS="$LIBS -lXmu"
  4599. echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
  4600. echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
  4601. cat >conftest.$ac_ext <<_ACEOF
  4602. /* confdefs.h. */
  4603. _ACEOF
  4604. cat confdefs.h >>conftest.$ac_ext
  4605. cat >>conftest.$ac_ext <<_ACEOF
  4606. /* end confdefs.h. */
  4607. #include <X11/Intrinsic.h>
  4608. #include <X11/Xmu/Converters.h>
  4609. int
  4610. main ()
  4611. {
  4612. ;
  4613. return 0;
  4614. }
  4615. _ACEOF
  4616. rm -f conftest.$ac_objext conftest$ac_exeext
  4617. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4618. (eval $ac_link) 2>conftest.er1
  4619. ac_status=$?
  4620. grep -v '^ *+' conftest.er1 >conftest.err
  4621. rm -f conftest.er1
  4622. cat conftest.err >&5
  4623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4624. (exit $ac_status); } &&
  4625. { ac_try='test -z "$ac_c_werror_flag"
  4626. || test ! -s conftest.err'
  4627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4628. (eval $ac_try) 2>&5
  4629. ac_status=$?
  4630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4631. (exit $ac_status); }; } &&
  4632. { ac_try='test -s conftest$ac_exeext'
  4633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4634. (eval $ac_try) 2>&5
  4635. ac_status=$?
  4636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4637. (exit $ac_status); }; }; then
  4638. echo "$as_me:$LINENO: result: yes" >&5
  4639. echo "${ECHO_T}yes" >&6
  4640. else
  4641. echo "$as_me: failed program was:" >&5
  4642. sed 's/^/| /' conftest.$ac_ext >&5
  4643. echo "$as_me:$LINENO: result: no" >&5
  4644. echo "${ECHO_T}no" >&6
  4645. groff_no_x="yes"
  4646. fi
  4647. rm -f conftest.err conftest.$ac_objext \
  4648. conftest$ac_exeext conftest.$ac_ext
  4649. CFLAGS=$OLDCFLAGS
  4650. LDFLAGS=$OLDLDFLAGS
  4651. LIBS=$OLDLIBS
  4652. fi
  4653. if test "x$groff_no_x" = "xyes"; then
  4654. { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
  4655. echo "$as_me: gxditview and xtotroff won't be built" >&6;}
  4656. else
  4657. XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
  4658. XPROGDIRS="src/devices/xditview src/utils/xtotroff"
  4659. XLIBDIRS="src/libs/libxutil"
  4660. fi
  4661. # Check whether --with-appresdir or --without-appresdir was given.
  4662. if test "${with_appresdir+set}" = set; then
  4663. withval="$with_appresdir"
  4664. fi;
  4665. if test -z "$groff_no_x"; then
  4666. # Create an Imakefile, run `xmkmf', then `make'.
  4667. rm -f -r conftest.dir
  4668. if mkdir conftest.dir; then
  4669. cd conftest.dir
  4670. # Make sure to not put `make' in the Imakefile rules,
  4671. # since we grep it out.
  4672. cat >Imakefile <<'EOF'
  4673. xlibdirs:
  4674. @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
  4675. EOF
  4676. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  4677. # GNU make sometimes prints "make[1]: Entering...",
  4678. # which would confuse us.
  4679. eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
  4680. # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
  4681. for groff_extension in a so sl; do
  4682. if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
  4683. test -f $groff_x_libdir/libX11.$groff_extension; then
  4684. groff_x_usrlibdir=$groff_x_libdir
  4685. break
  4686. fi
  4687. done
  4688. fi
  4689. cd ..
  4690. rm -f -r conftest.dir
  4691. fi
  4692. # In case the test with `xmkmf' wasn't successful, try a suite of
  4693. # standard directories. Check `X11' before `X11Rn' because it is often
  4694. # a symlink to the current release.
  4695. groff_x_libdirs='
  4696. /usr/X11/lib
  4697. /usr/X11R6/lib
  4698. /usr/X11R5/lib
  4699. /usr/X11R4/lib
  4700. /usr/lib/X11
  4701. /usr/lib/X11R6
  4702. /usr/lib/X11R5
  4703. /usr/lib/X11R4
  4704. /usr/local/X11/lib
  4705. /usr/local/X11R6/lib
  4706. /usr/local/X11R5/lib
  4707. /usr/local/X11R4/lib
  4708. /usr/local/lib/X11
  4709. /usr/local/lib/X11R6
  4710. /usr/local/lib/X11R5
  4711. /usr/local/lib/X11R4
  4712. /usr/X386/lib
  4713. /usr/x386/lib
  4714. /usr/XFree86/lib/X11
  4715. /usr/lib
  4716. /usr/local/lib
  4717. /usr/unsupported/lib
  4718. /usr/athena/lib
  4719. /usr/local/x11r5/lib
  4720. /usr/lpp/Xamples/lib
  4721. /usr/openwin/lib
  4722. /usr/openwin/share/lib'
  4723. if test -z "$groff_x_usrlibdir"; then
  4724. # We only test whether libX11 exists.
  4725. for groff_dir in $groff_x_libdirs; do
  4726. for groff_extension in a so sl; do
  4727. if test ! -r $groff_dir/libX11.$groff_extension; then
  4728. groff_x_usrlibdir=$groff_dir
  4729. break 2
  4730. fi
  4731. done
  4732. done
  4733. fi
  4734. if test "x$with_appresdir" = "x"; then
  4735. appresdir=$groff_x_usrlibdir/X11/app-defaults
  4736. else
  4737. appresdir=$with_appresdir
  4738. fi
  4739. fi
  4740. if test -z "$PSPRINT"; then
  4741. for ac_prog in lpr
  4742. do
  4743. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4744. set dummy $ac_prog; ac_word=$2
  4745. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4746. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4747. if test "${ac_cv_prog_LPR+set}" = set; then
  4748. echo $ECHO_N "(cached) $ECHO_C" >&6
  4749. else
  4750. if test -n "$LPR"; then
  4751. ac_cv_prog_LPR="$LPR" # Let the user override the test.
  4752. else
  4753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4754. for as_dir in $PATH
  4755. do
  4756. IFS=$as_save_IFS
  4757. test -z "$as_dir" && as_dir=.
  4758. for ac_exec_ext in '' $ac_executable_extensions; do
  4759. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4760. ac_cv_prog_LPR="$ac_prog"
  4761. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4762. break 2
  4763. fi
  4764. done
  4765. done
  4766. fi
  4767. fi
  4768. LPR=$ac_cv_prog_LPR
  4769. if test -n "$LPR"; then
  4770. echo "$as_me:$LINENO: result: $LPR" >&5
  4771. echo "${ECHO_T}$LPR" >&6
  4772. else
  4773. echo "$as_me:$LINENO: result: no" >&5
  4774. echo "${ECHO_T}no" >&6
  4775. fi
  4776. test -n "$LPR" && break
  4777. done
  4778. for ac_prog in lp
  4779. do
  4780. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4781. set dummy $ac_prog; ac_word=$2
  4782. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4783. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4784. if test "${ac_cv_prog_LP+set}" = set; then
  4785. echo $ECHO_N "(cached) $ECHO_C" >&6
  4786. else
  4787. if test -n "$LP"; then
  4788. ac_cv_prog_LP="$LP" # Let the user override the test.
  4789. else
  4790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4791. for as_dir in $PATH
  4792. do
  4793. IFS=$as_save_IFS
  4794. test -z "$as_dir" && as_dir=.
  4795. for ac_exec_ext in '' $ac_executable_extensions; do
  4796. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4797. ac_cv_prog_LP="$ac_prog"
  4798. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4799. break 2
  4800. fi
  4801. done
  4802. done
  4803. fi
  4804. fi
  4805. LP=$ac_cv_prog_LP
  4806. if test -n "$LP"; then
  4807. echo "$as_me:$LINENO: result: $LP" >&5
  4808. echo "${ECHO_T}$LP" >&6
  4809. else
  4810. echo "$as_me:$LINENO: result: no" >&5
  4811. echo "${ECHO_T}no" >&6
  4812. fi
  4813. test -n "$LP" && break
  4814. done
  4815. if test -n "$LPR" && test -n "$LP"; then
  4816. # HP-UX provides an lpr command that emulates lpr using lp,
  4817. # but it doesn't have lpq; in this case we want to use lp
  4818. # rather than lpr.
  4819. for ac_prog in lpq
  4820. do
  4821. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4822. set dummy $ac_prog; ac_word=$2
  4823. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4824. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4825. if test "${ac_cv_prog_LPQ+set}" = set; then
  4826. echo $ECHO_N "(cached) $ECHO_C" >&6
  4827. else
  4828. if test -n "$LPQ"; then
  4829. ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
  4830. else
  4831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4832. for as_dir in $PATH
  4833. do
  4834. IFS=$as_save_IFS
  4835. test -z "$as_dir" && as_dir=.
  4836. for ac_exec_ext in '' $ac_executable_extensions; do
  4837. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4838. ac_cv_prog_LPQ="$ac_prog"
  4839. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4840. break 2
  4841. fi
  4842. done
  4843. done
  4844. fi
  4845. fi
  4846. LPQ=$ac_cv_prog_LPQ
  4847. if test -n "$LPQ"; then
  4848. echo "$as_me:$LINENO: result: $LPQ" >&5
  4849. echo "${ECHO_T}$LPQ" >&6
  4850. else
  4851. echo "$as_me:$LINENO: result: no" >&5
  4852. echo "${ECHO_T}no" >&6
  4853. fi
  4854. test -n "$LPQ" && break
  4855. done
  4856. test -n "$LPQ" || LPR=
  4857. fi
  4858. if test -n "$LPR"; then
  4859. PSPRINT="$LPR"
  4860. elif test -n "$LP"; then
  4861. PSPRINT="$LP"
  4862. fi
  4863. fi
  4864. echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
  4865. echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
  4866. echo "$as_me:$LINENO: result: $PSPRINT" >&5
  4867. echo "${ECHO_T}$PSPRINT" >&6
  4868. # Figure out DVIPRINT from PSPRINT.
  4869. echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
  4870. echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
  4871. if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
  4872. if test "x$PSPRINT" = "xlpr"; then
  4873. DVIPRINT="lpr -d"
  4874. else
  4875. DVIPRINT="$PSPRINT"
  4876. fi
  4877. fi
  4878. echo "$as_me:$LINENO: result: $DVIPRINT" >&5
  4879. echo "${ECHO_T}$DVIPRINT" >&6
  4880. # Extract the first word of "perl", so it can be a program name with args.
  4881. set dummy perl; ac_word=$2
  4882. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4883. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4884. if test "${ac_cv_path_PERLPATH+set}" = set; then
  4885. echo $ECHO_N "(cached) $ECHO_C" >&6
  4886. else
  4887. case $PERLPATH in
  4888. [\\/]* | ?:[\\/]*)
  4889. ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
  4890. ;;
  4891. *)
  4892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4893. for as_dir in $PATH
  4894. do
  4895. IFS=$as_save_IFS
  4896. test -z "$as_dir" && as_dir=.
  4897. for ac_exec_ext in '' $ac_executable_extensions; do
  4898. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4899. ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
  4900. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4901. break 2
  4902. fi
  4903. done
  4904. done
  4905. test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
  4906. ;;
  4907. esac
  4908. fi
  4909. PERLPATH=$ac_cv_path_PERLPATH
  4910. if test -n "$PERLPATH"; then
  4911. echo "$as_me:$LINENO: result: $PERLPATH" >&5
  4912. echo "${ECHO_T}$PERLPATH" >&6
  4913. else
  4914. echo "$as_me:$LINENO: result: no" >&5
  4915. echo "${ECHO_T}no" >&6
  4916. fi
  4917. for ac_prog in byacc 'bison -y'
  4918. do
  4919. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4920. set dummy $ac_prog; ac_word=$2
  4921. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4922. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4923. if test "${ac_cv_prog_YACC+set}" = set; then
  4924. echo $ECHO_N "(cached) $ECHO_C" >&6
  4925. else
  4926. if test -n "$YACC"; then
  4927. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4928. else
  4929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4930. for as_dir in $PATH
  4931. do
  4932. IFS=$as_save_IFS
  4933. test -z "$as_dir" && as_dir=.
  4934. for ac_exec_ext in '' $ac_executable_extensions; do
  4935. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4936. ac_cv_prog_YACC="$ac_prog"
  4937. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4938. break 2
  4939. fi
  4940. done
  4941. done
  4942. fi
  4943. fi
  4944. YACC=$ac_cv_prog_YACC
  4945. if test -n "$YACC"; then
  4946. echo "$as_me:$LINENO: result: $YACC" >&5
  4947. echo "${ECHO_T}$YACC" >&6
  4948. else
  4949. echo "$as_me:$LINENO: result: no" >&5
  4950. echo "${ECHO_T}no" >&6
  4951. fi
  4952. test -n "$YACC" && break
  4953. done
  4954. test -n "$YACC" || YACC="yacc"
  4955. if test -n "$ac_tool_prefix"; then
  4956. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4957. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4958. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4959. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4960. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4961. echo $ECHO_N "(cached) $ECHO_C" >&6
  4962. else
  4963. if test -n "$RANLIB"; then
  4964. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4965. else
  4966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4967. for as_dir in $PATH
  4968. do
  4969. IFS=$as_save_IFS
  4970. test -z "$as_dir" && as_dir=.
  4971. for ac_exec_ext in '' $ac_executable_extensions; do
  4972. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4973. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4974. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4975. break 2
  4976. fi
  4977. done
  4978. done
  4979. fi
  4980. fi
  4981. RANLIB=$ac_cv_prog_RANLIB
  4982. if test -n "$RANLIB"; then
  4983. echo "$as_me:$LINENO: result: $RANLIB" >&5
  4984. echo "${ECHO_T}$RANLIB" >&6
  4985. else
  4986. echo "$as_me:$LINENO: result: no" >&5
  4987. echo "${ECHO_T}no" >&6
  4988. fi
  4989. fi
  4990. if test -z "$ac_cv_prog_RANLIB"; then
  4991. ac_ct_RANLIB=$RANLIB
  4992. # Extract the first word of "ranlib", so it can be a program name with args.
  4993. set dummy ranlib; ac_word=$2
  4994. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4995. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4996. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4997. echo $ECHO_N "(cached) $ECHO_C" >&6
  4998. else
  4999. if test -n "$ac_ct_RANLIB"; then
  5000. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5001. else
  5002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5003. for as_dir in $PATH
  5004. do
  5005. IFS=$as_save_IFS
  5006. test -z "$as_dir" && as_dir=.
  5007. for ac_exec_ext in '' $ac_executable_extensions; do
  5008. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5009. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5010. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5011. break 2
  5012. fi
  5013. done
  5014. done
  5015. fi
  5016. fi
  5017. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5018. if test -n "$ac_ct_RANLIB"; then
  5019. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5020. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5021. else
  5022. echo "$as_me:$LINENO: result: no" >&5
  5023. echo "${ECHO_T}no" >&6
  5024. fi
  5025. if test "x$ac_ct_RANLIB" = x; then
  5026. RANLIB=":"
  5027. else
  5028. if test "$build" != "$host"; then
  5029. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5030. whose name does not start with the host triplet. If you think this
  5031. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5032. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5033. whose name does not start with the host triplet. If you think this
  5034. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5035. fi
  5036. RANLIB=$ac_ct_RANLIB
  5037. fi
  5038. else
  5039. RANLIB="$ac_cv_prog_RANLIB"
  5040. fi
  5041. ac_aux_dir=
  5042. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  5043. if test -f $ac_dir/install-sh; then
  5044. ac_aux_dir=$ac_dir
  5045. ac_install_sh="$ac_aux_dir/install-sh -c"
  5046. break
  5047. elif test -f $ac_dir/install.sh; then
  5048. ac_aux_dir=$ac_dir
  5049. ac_install_sh="$ac_aux_dir/install.sh -c"
  5050. break
  5051. elif test -f $ac_dir/shtool; then
  5052. ac_aux_dir=$ac_dir
  5053. ac_install_sh="$ac_aux_dir/shtool install -c"
  5054. break
  5055. fi
  5056. done
  5057. if test -z "$ac_aux_dir"; then
  5058. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  5059. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  5060. { (exit 1); exit 1; }; }
  5061. fi
  5062. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  5063. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  5064. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  5065. ac_dir=`cd $ac_aux_dir; pwd`
  5066. ac_install_sh="$ac_dir/install-sh -c"
  5067. for ac_prog in install-info
  5068. do
  5069. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5070. set dummy $ac_prog; ac_word=$2
  5071. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5072. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5073. if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
  5074. echo $ECHO_N "(cached) $ECHO_C" >&6
  5075. else
  5076. if test -n "$INSTALL_INFO"; then
  5077. ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
  5078. else
  5079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5080. for as_dir in $PATH
  5081. do
  5082. IFS=$as_save_IFS
  5083. test -z "$as_dir" && as_dir=.
  5084. for ac_exec_ext in '' $ac_executable_extensions; do
  5085. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5086. ac_cv_prog_INSTALL_INFO="$ac_prog"
  5087. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5088. break 2
  5089. fi
  5090. done
  5091. done
  5092. fi
  5093. fi
  5094. INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
  5095. if test -n "$INSTALL_INFO"; then
  5096. echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
  5097. echo "${ECHO_T}$INSTALL_INFO" >&6
  5098. else
  5099. echo "$as_me:$LINENO: result: no" >&5
  5100. echo "${ECHO_T}no" >&6
  5101. fi
  5102. test -n "$INSTALL_INFO" && break
  5103. done
  5104. test -n "$INSTALL_INFO" || INSTALL_INFO=":"
  5105. # Find a good install program. We prefer a C program (faster),
  5106. # so one script is as good as another. But avoid the broken or
  5107. # incompatible versions:
  5108. # SysV /etc/install, /usr/sbin/install
  5109. # SunOS /usr/etc/install
  5110. # IRIX /sbin/install
  5111. # AIX /bin/install
  5112. # AmigaOS /C/install, which installs bootblocks on floppy discs
  5113. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5114. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5115. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5116. # OS/2's system install, which has a completely different semantic
  5117. # ./install, which can be erroneously created by make from ./install.sh.
  5118. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  5119. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  5120. if test -z "$INSTALL"; then
  5121. if test "${ac_cv_path_install+set}" = set; then
  5122. echo $ECHO_N "(cached) $ECHO_C" >&6
  5123. else
  5124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5125. for as_dir in $PATH
  5126. do
  5127. IFS=$as_save_IFS
  5128. test -z "$as_dir" && as_dir=.
  5129. # Account for people who put trailing slashes in PATH elements.
  5130. case $as_dir/ in
  5131. ./ | .// | /cC/* | \
  5132. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5133. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  5134. /usr/ucb/* ) ;;
  5135. *)
  5136. # OSF1 and SCO ODT 3.0 have their own names for install.
  5137. # Don't use installbsd from OSF since it installs stuff as root
  5138. # by default.
  5139. for ac_prog in ginstall scoinst install; do
  5140. for ac_exec_ext in '' $ac_executable_extensions; do
  5141. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  5142. if test $ac_prog = install &&
  5143. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5144. # AIX install. It has an incompatible calling convention.
  5145. :
  5146. elif test $ac_prog = install &&
  5147. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5148. # program-specific install script used by HP pwplus--don't use.
  5149. :
  5150. else
  5151. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5152. break 3
  5153. fi
  5154. fi
  5155. done
  5156. done
  5157. ;;
  5158. esac
  5159. done
  5160. fi
  5161. if test "${ac_cv_path_install+set}" = set; then
  5162. INSTALL=$ac_cv_path_install
  5163. else
  5164. # As a last resort, use the slow shell script. Don't cache a
  5165. # value for INSTALL within a source directory, because that will
  5166. # break other packages using the cache if that directory is
  5167. # removed, or if the value is a relative name.
  5168. INSTALL=$ac_install_sh
  5169. fi
  5170. fi
  5171. echo "$as_me:$LINENO: result: $INSTALL" >&5
  5172. echo "${ECHO_T}$INSTALL" >&6
  5173. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5174. # It thinks the first close brace ends the variable substitution.
  5175. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  5176. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  5177. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  5178. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5179. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  5180. LN_S=$as_ln_s
  5181. if test "$LN_S" = "ln -s"; then
  5182. echo "$as_me:$LINENO: result: yes" >&5
  5183. echo "${ECHO_T}yes" >&6
  5184. else
  5185. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5186. echo "${ECHO_T}no, using $LN_S" >&6
  5187. fi
  5188. # use a dummy substitution if no csh hack is necessary to avoid errors
  5189. # with non-GNU sed programs
  5190. echo "$as_me:$LINENO: checking for csh hash hack" >&5
  5191. echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
  5192. cat <<EOF >conftest.sh
  5193. #! /bin/sh
  5194. true || exit 0
  5195. export PATH || exit 0
  5196. exit 1
  5197. EOF
  5198. chmod +x conftest.sh
  5199. if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
  5200. echo "$as_me:$LINENO: result: yes" >&5
  5201. echo "${ECHO_T}yes" >&6
  5202. SH_SCRIPT_SED_CMD='1s/.*/:/'
  5203. else
  5204. echo "$as_me:$LINENO: result: no" >&5
  5205. echo "${ECHO_T}no" >&6
  5206. SH_SCRIPT_SED_CMD='1s/a/a/'
  5207. fi
  5208. rm -f conftest.sh
  5209. # checks for headers
  5210. echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5211. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
  5212. if test "${ac_cv_path_GREP+set}" = set; then
  5213. echo $ECHO_N "(cached) $ECHO_C" >&6
  5214. else
  5215. # Extract the first word of "grep ggrep" to use in msg output
  5216. if test -z "$GREP"; then
  5217. set dummy grep ggrep; ac_prog_name=$2
  5218. if test "${ac_cv_path_GREP+set}" = set; then
  5219. echo $ECHO_N "(cached) $ECHO_C" >&6
  5220. else
  5221. # Create a temporary directory, and hook for its removal unless debugging.
  5222. $debug ||
  5223. {
  5224. trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
  5225. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5226. }
  5227. # Create a (secure) tmp directory for tmp files.
  5228. : ${TMPDIR=/tmp}
  5229. {
  5230. tmp=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
  5231. test -n "$tmp" && test -d "$tmp"
  5232. } ||
  5233. {
  5234. tmp=$TMPDIR/GREP$$-$RANDOM
  5235. (umask 077 && mkdir $tmp)
  5236. } ||
  5237. {
  5238. echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  5239. { (exit 1); exit 1; }
  5240. }
  5241. ac_path_GREP_found=false
  5242. # Loop through the user's path and test for each of PROGNAME-LIST
  5243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5244. as_dummy="$PATH:/usr/xpg4/bin"
  5245. for as_dir in $as_dummy
  5246. do
  5247. IFS=$as_save_IFS
  5248. test -z "$as_dir" && as_dir=.
  5249. for ac_prog in grep ggrep; do
  5250. for ac_exec_ext in '' $ac_executable_extensions; do
  5251. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5252. test -f "$ac_path_GREP" || continue
  5253. $ac_path_GREP_found || if $as_executable_p "$ac_path_GREP"; then
  5254. # Check for GNU ac_path_GREP and select it if it is found.
  5255. # Check for GNU $ac_path_GREP
  5256. if "$ac_path_GREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
  5257. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:
  5258. else
  5259. ac_count=0
  5260. echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
  5261. while :
  5262. do
  5263. cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
  5264. mv "$tmp/conftest.tmp" "$tmp/conftest.in"
  5265. cp "$tmp/conftest.in" "$tmp/conftest.nl"
  5266. echo 'GREP' >> "$tmp/conftest.nl"
  5267. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
  5268. diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
  5269. ac_count=`expr $ac_count + 1`
  5270. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5271. # Best one so far, save it but keep looking for a better one
  5272. ac_cv_path_GREP="$ac_path_GREP"
  5273. ac_path_GREP_max=$ac_count
  5274. fi
  5275. # 10*(2^10) chars as input seems more than enough
  5276. test $ac_count -gt 10 && break
  5277. done
  5278. fi
  5279. fi
  5280. $ac_path_GREP_found && break 3
  5281. done
  5282. done
  5283. done
  5284. rm -rf "$tmp"
  5285. fi
  5286. GREP="$ac_cv_path_GREP"
  5287. if test -z "$GREP"; then
  5288. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
  5289. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
  5290. { (exit 1); exit 1; }; }
  5291. fi
  5292. fi
  5293. fi
  5294. echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5295. echo "${ECHO_T}$ac_cv_path_GREP" >&6
  5296. GREP="$ac_cv_path_GREP"
  5297. echo "$as_me:$LINENO: checking for egrep" >&5
  5298. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  5299. if test "${ac_cv_path_EGREP+set}" = set; then
  5300. echo $ECHO_N "(cached) $ECHO_C" >&6
  5301. else
  5302. if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1
  5303. then ac_cv_path_EGREP="$GREP -E"
  5304. else
  5305. # Extract the first word of "egrep" to use in msg output
  5306. if test -z "$EGREP"; then
  5307. set dummy egrep; ac_prog_name=$2
  5308. if test "${ac_cv_path_EGREP+set}" = set; then
  5309. echo $ECHO_N "(cached) $ECHO_C" >&6
  5310. else
  5311. # Create a temporary directory, and hook for its removal unless debugging.
  5312. $debug ||
  5313. {
  5314. trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
  5315. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5316. }
  5317. # Create a (secure) tmp directory for tmp files.
  5318. : ${TMPDIR=/tmp}
  5319. {
  5320. tmp=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
  5321. test -n "$tmp" && test -d "$tmp"
  5322. } ||
  5323. {
  5324. tmp=$TMPDIR/EGREP$$-$RANDOM
  5325. (umask 077 && mkdir $tmp)
  5326. } ||
  5327. {
  5328. echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  5329. { (exit 1); exit 1; }
  5330. }
  5331. ac_path_EGREP_found=false
  5332. # Loop through the user's path and test for each of PROGNAME-LIST
  5333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5334. as_dummy="$PATH:/usr/xpg4/bin"
  5335. for as_dir in $as_dummy
  5336. do
  5337. IFS=$as_save_IFS
  5338. test -z "$as_dir" && as_dir=.
  5339. for ac_prog in egrep; do
  5340. for ac_exec_ext in '' $ac_executable_extensions; do
  5341. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5342. test -f "$ac_path_EGREP" || continue
  5343. $ac_path_EGREP_found || if $as_executable_p "$ac_path_EGREP"; then
  5344. # Check for GNU ac_path_EGREP and select it if it is found.
  5345. # Check for GNU $ac_path_EGREP
  5346. if "$ac_path_EGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
  5347. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:
  5348. else
  5349. ac_count=0
  5350. echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
  5351. while :
  5352. do
  5353. cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
  5354. mv "$tmp/conftest.tmp" "$tmp/conftest.in"
  5355. cp "$tmp/conftest.in" "$tmp/conftest.nl"
  5356. echo 'EGREP' >> "$tmp/conftest.nl"
  5357. "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
  5358. diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
  5359. ac_count=`expr $ac_count + 1`
  5360. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5361. # Best one so far, save it but keep looking for a better one
  5362. ac_cv_path_EGREP="$ac_path_EGREP"
  5363. ac_path_EGREP_max=$ac_count
  5364. fi
  5365. # 10*(2^10) chars as input seems more than enough
  5366. test $ac_count -gt 10 && break
  5367. done
  5368. fi
  5369. fi
  5370. $ac_path_EGREP_found && break 3
  5371. done
  5372. done
  5373. done
  5374. rm -rf "$tmp"
  5375. fi
  5376. EGREP="$ac_cv_path_EGREP"
  5377. if test -z "$EGREP"; then
  5378. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
  5379. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
  5380. { (exit 1); exit 1; }; }
  5381. fi
  5382. fi
  5383. fi
  5384. fi
  5385. echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5386. echo "${ECHO_T}$ac_cv_path_EGREP" >&6
  5387. EGREP="$ac_cv_path_EGREP"
  5388. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5389. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  5390. if test "${ac_cv_header_stdc+set}" = set; then
  5391. echo $ECHO_N "(cached) $ECHO_C" >&6
  5392. else
  5393. cat >conftest.$ac_ext <<_ACEOF
  5394. /* confdefs.h. */
  5395. _ACEOF
  5396. cat confdefs.h >>conftest.$ac_ext
  5397. cat >>conftest.$ac_ext <<_ACEOF
  5398. /* end confdefs.h. */
  5399. #include <stdlib.h>
  5400. #include <stdarg.h>
  5401. #include <string.h>
  5402. #include <float.h>
  5403. int
  5404. main ()
  5405. {
  5406. ;
  5407. return 0;
  5408. }
  5409. _ACEOF
  5410. rm -f conftest.$ac_objext
  5411. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5412. (eval $ac_compile) 2>conftest.er1
  5413. ac_status=$?
  5414. grep -v '^ *+' conftest.er1 >conftest.err
  5415. rm -f conftest.er1
  5416. cat conftest.err >&5
  5417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5418. (exit $ac_status); } &&
  5419. { ac_try='test -z "$ac_c_werror_flag"
  5420. || test ! -s conftest.err'
  5421. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5422. (eval $ac_try) 2>&5
  5423. ac_status=$?
  5424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5425. (exit $ac_status); }; } &&
  5426. { ac_try='test -s conftest.$ac_objext'
  5427. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5428. (eval $ac_try) 2>&5
  5429. ac_status=$?
  5430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5431. (exit $ac_status); }; }; then
  5432. ac_cv_header_stdc=yes
  5433. else
  5434. echo "$as_me: failed program was:" >&5
  5435. sed 's/^/| /' conftest.$ac_ext >&5
  5436. ac_cv_header_stdc=no
  5437. fi
  5438. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5439. if test $ac_cv_header_stdc = yes; then
  5440. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5441. cat >conftest.$ac_ext <<_ACEOF
  5442. /* confdefs.h. */
  5443. _ACEOF
  5444. cat confdefs.h >>conftest.$ac_ext
  5445. cat >>conftest.$ac_ext <<_ACEOF
  5446. /* end confdefs.h. */
  5447. #include <string.h>
  5448. _ACEOF
  5449. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5450. $EGREP "memchr" >/dev/null 2>&1; then
  5451. :
  5452. else
  5453. ac_cv_header_stdc=no
  5454. fi
  5455. rm -f conftest*
  5456. fi
  5457. if test $ac_cv_header_stdc = yes; then
  5458. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5459. cat >conftest.$ac_ext <<_ACEOF
  5460. /* confdefs.h. */
  5461. _ACEOF
  5462. cat confdefs.h >>conftest.$ac_ext
  5463. cat >>conftest.$ac_ext <<_ACEOF
  5464. /* end confdefs.h. */
  5465. #include <stdlib.h>
  5466. _ACEOF
  5467. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5468. $EGREP "free" >/dev/null 2>&1; then
  5469. :
  5470. else
  5471. ac_cv_header_stdc=no
  5472. fi
  5473. rm -f conftest*
  5474. fi
  5475. if test $ac_cv_header_stdc = yes; then
  5476. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5477. if test "$cross_compiling" = yes; then
  5478. :
  5479. else
  5480. cat >conftest.$ac_ext <<_ACEOF
  5481. /* confdefs.h. */
  5482. _ACEOF
  5483. cat confdefs.h >>conftest.$ac_ext
  5484. cat >>conftest.$ac_ext <<_ACEOF
  5485. /* end confdefs.h. */
  5486. #include <ctype.h>
  5487. #include <stdlib.h>
  5488. #if ((' ' & 0x0FF) == 0x020)
  5489. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5490. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5491. #else
  5492. # define ISLOWER(c) \
  5493. (('a' <= (c) && (c) <= 'i') \
  5494. || ('j' <= (c) && (c) <= 'r') \
  5495. || ('s' <= (c) && (c) <= 'z'))
  5496. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5497. #endif
  5498. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5499. int
  5500. main ()
  5501. {
  5502. int i;
  5503. for (i = 0; i < 256; i++)
  5504. if (XOR (islower (i), ISLOWER (i))
  5505. || toupper (i) != TOUPPER (i))
  5506. exit (2);
  5507. exit (0);
  5508. }
  5509. _ACEOF
  5510. rm -f conftest$ac_exeext
  5511. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5512. (eval $ac_link) 2>&5
  5513. ac_status=$?
  5514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5515. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5517. (eval $ac_try) 2>&5
  5518. ac_status=$?
  5519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5520. (exit $ac_status); }; }; then
  5521. :
  5522. else
  5523. echo "$as_me: program exited with status $ac_status" >&5
  5524. echo "$as_me: failed program was:" >&5
  5525. sed 's/^/| /' conftest.$ac_ext >&5
  5526. ( exit $ac_status )
  5527. ac_cv_header_stdc=no
  5528. fi
  5529. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5530. fi
  5531. fi
  5532. fi
  5533. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5534. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5535. if test $ac_cv_header_stdc = yes; then
  5536. cat >>confdefs.h <<\_ACEOF
  5537. #define STDC_HEADERS 1
  5538. _ACEOF
  5539. fi
  5540. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5541. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5542. inttypes.h stdint.h unistd.h
  5543. do
  5544. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5545. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5546. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5547. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5548. echo $ECHO_N "(cached) $ECHO_C" >&6
  5549. else
  5550. cat >conftest.$ac_ext <<_ACEOF
  5551. /* confdefs.h. */
  5552. _ACEOF
  5553. cat confdefs.h >>conftest.$ac_ext
  5554. cat >>conftest.$ac_ext <<_ACEOF
  5555. /* end confdefs.h. */
  5556. $ac_includes_default
  5557. #include <$ac_header>
  5558. _ACEOF
  5559. rm -f conftest.$ac_objext
  5560. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5561. (eval $ac_compile) 2>conftest.er1
  5562. ac_status=$?
  5563. grep -v '^ *+' conftest.er1 >conftest.err
  5564. rm -f conftest.er1
  5565. cat conftest.err >&5
  5566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5567. (exit $ac_status); } &&
  5568. { ac_try='test -z "$ac_c_werror_flag"
  5569. || test ! -s conftest.err'
  5570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5571. (eval $ac_try) 2>&5
  5572. ac_status=$?
  5573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5574. (exit $ac_status); }; } &&
  5575. { ac_try='test -s conftest.$ac_objext'
  5576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5577. (eval $ac_try) 2>&5
  5578. ac_status=$?
  5579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5580. (exit $ac_status); }; }; then
  5581. eval "$as_ac_Header=yes"
  5582. else
  5583. echo "$as_me: failed program was:" >&5
  5584. sed 's/^/| /' conftest.$ac_ext >&5
  5585. eval "$as_ac_Header=no"
  5586. fi
  5587. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5588. fi
  5589. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5590. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5591. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5592. cat >>confdefs.h <<_ACEOF
  5593. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5594. _ACEOF
  5595. fi
  5596. done
  5597. for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
  5598. string.h strings.h math.h sys/time.h direct.h process.h
  5599. do
  5600. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5601. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5602. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5603. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5604. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5605. echo $ECHO_N "(cached) $ECHO_C" >&6
  5606. fi
  5607. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5608. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5609. else
  5610. # Is the header compilable?
  5611. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5612. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5613. cat >conftest.$ac_ext <<_ACEOF
  5614. /* confdefs.h. */
  5615. _ACEOF
  5616. cat confdefs.h >>conftest.$ac_ext
  5617. cat >>conftest.$ac_ext <<_ACEOF
  5618. /* end confdefs.h. */
  5619. $ac_includes_default
  5620. #include <$ac_header>
  5621. _ACEOF
  5622. rm -f conftest.$ac_objext
  5623. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5624. (eval $ac_compile) 2>conftest.er1
  5625. ac_status=$?
  5626. grep -v '^ *+' conftest.er1 >conftest.err
  5627. rm -f conftest.er1
  5628. cat conftest.err >&5
  5629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5630. (exit $ac_status); } &&
  5631. { ac_try='test -z "$ac_c_werror_flag"
  5632. || test ! -s conftest.err'
  5633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5634. (eval $ac_try) 2>&5
  5635. ac_status=$?
  5636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5637. (exit $ac_status); }; } &&
  5638. { ac_try='test -s conftest.$ac_objext'
  5639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5640. (eval $ac_try) 2>&5
  5641. ac_status=$?
  5642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5643. (exit $ac_status); }; }; then
  5644. ac_header_compiler=yes
  5645. else
  5646. echo "$as_me: failed program was:" >&5
  5647. sed 's/^/| /' conftest.$ac_ext >&5
  5648. ac_header_compiler=no
  5649. fi
  5650. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5651. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5652. echo "${ECHO_T}$ac_header_compiler" >&6
  5653. # Is the header present?
  5654. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5655. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5656. cat >conftest.$ac_ext <<_ACEOF
  5657. /* confdefs.h. */
  5658. _ACEOF
  5659. cat confdefs.h >>conftest.$ac_ext
  5660. cat >>conftest.$ac_ext <<_ACEOF
  5661. /* end confdefs.h. */
  5662. #include <$ac_header>
  5663. _ACEOF
  5664. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5665. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5666. ac_status=$?
  5667. grep -v '^ *+' conftest.er1 >conftest.err
  5668. rm -f conftest.er1
  5669. cat conftest.err >&5
  5670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5671. (exit $ac_status); } >/dev/null; then
  5672. if test -s conftest.err; then
  5673. ac_cpp_err=$ac_c_preproc_warn_flag
  5674. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5675. else
  5676. ac_cpp_err=
  5677. fi
  5678. else
  5679. ac_cpp_err=yes
  5680. fi
  5681. if test -z "$ac_cpp_err"; then
  5682. ac_header_preproc=yes
  5683. else
  5684. echo "$as_me: failed program was:" >&5
  5685. sed 's/^/| /' conftest.$ac_ext >&5
  5686. ac_header_preproc=no
  5687. fi
  5688. rm -f conftest.err conftest.$ac_ext
  5689. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5690. echo "${ECHO_T}$ac_header_preproc" >&6
  5691. # So? What about this header?
  5692. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5693. yes:no: )
  5694. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5695. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5696. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5697. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5698. ac_header_preproc=yes
  5699. ;;
  5700. no:yes:* )
  5701. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5702. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5703. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5704. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5705. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5706. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5707. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5708. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5709. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5710. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5711. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5712. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5713. (
  5714. cat <<\_ASBOX
  5715. ## ------------------------------------------ ##
  5716. ## Report this to the AC_PACKAGE_NAME lists. ##
  5717. ## ------------------------------------------ ##
  5718. _ASBOX
  5719. ) |
  5720. sed "s/^/$as_me: WARNING: /" >&2
  5721. ;;
  5722. esac
  5723. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5724. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5725. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5726. echo $ECHO_N "(cached) $ECHO_C" >&6
  5727. else
  5728. eval "$as_ac_Header=\$ac_header_preproc"
  5729. fi
  5730. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5731. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5732. fi
  5733. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5734. cat >>confdefs.h <<_ACEOF
  5735. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5736. _ACEOF
  5737. fi
  5738. done
  5739. echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
  5740. echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
  5741. if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
  5742. then
  5743. echo "$as_me:$LINENO: result: yes" >&5
  5744. echo "${ECHO_T}yes" >&6
  5745. cat >>confdefs.h <<\_ACEOF
  5746. #define _SYSV3 1
  5747. _ACEOF
  5748. else
  5749. echo "$as_me:$LINENO: result: no" >&5
  5750. echo "${ECHO_T}no" >&6
  5751. fi
  5752. echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
  5753. echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
  5754. ac_ext=cc
  5755. ac_cpp='$CXXCPP $CPPFLAGS'
  5756. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5757. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5758. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5759. cat >conftest.$ac_ext <<_ACEOF
  5760. /* confdefs.h. */
  5761. _ACEOF
  5762. cat confdefs.h >>conftest.$ac_ext
  5763. cat >>conftest.$ac_ext <<_ACEOF
  5764. /* end confdefs.h. */
  5765. #include <stdio.h>
  5766. extern "C" { void fileno(int); }
  5767. int
  5768. main ()
  5769. {
  5770. ;
  5771. return 0;
  5772. }
  5773. _ACEOF
  5774. rm -f conftest.$ac_objext
  5775. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5776. (eval $ac_compile) 2>conftest.er1
  5777. ac_status=$?
  5778. grep -v '^ *+' conftest.er1 >conftest.err
  5779. rm -f conftest.er1
  5780. cat conftest.err >&5
  5781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5782. (exit $ac_status); } &&
  5783. { ac_try='test -z "$ac_cxx_werror_flag"
  5784. || test ! -s conftest.err'
  5785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5786. (eval $ac_try) 2>&5
  5787. ac_status=$?
  5788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5789. (exit $ac_status); }; } &&
  5790. { ac_try='test -s conftest.$ac_objext'
  5791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5792. (eval $ac_try) 2>&5
  5793. ac_status=$?
  5794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5795. (exit $ac_status); }; }; then
  5796. echo "$as_me:$LINENO: result: yes" >&5
  5797. echo "${ECHO_T}yes" >&6
  5798. cat >>confdefs.h <<\_ACEOF
  5799. #define _POSIX_SOURCE 1
  5800. _ACEOF
  5801. else
  5802. echo "$as_me: failed program was:" >&5
  5803. sed 's/^/| /' conftest.$ac_ext >&5
  5804. echo "$as_me:$LINENO: result: no" >&5
  5805. echo "${ECHO_T}no" >&6
  5806. fi
  5807. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5808. ac_ext=c
  5809. ac_cpp='$CPP $CPPFLAGS'
  5810. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5811. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5812. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5813. # checks for header stuff
  5814. ac_ext=cc
  5815. ac_cpp='$CXXCPP $CPPFLAGS'
  5816. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5817. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5818. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5819. echo "$as_me:$LINENO: checking for return type of srand" >&5
  5820. echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
  5821. cat >conftest.$ac_ext <<_ACEOF
  5822. /* confdefs.h. */
  5823. _ACEOF
  5824. cat confdefs.h >>conftest.$ac_ext
  5825. cat >>conftest.$ac_ext <<_ACEOF
  5826. /* end confdefs.h. */
  5827. #include <stdlib.h>
  5828. extern "C" { void srand(unsigned int); }
  5829. int
  5830. main ()
  5831. {
  5832. ;
  5833. return 0;
  5834. }
  5835. _ACEOF
  5836. rm -f conftest.$ac_objext
  5837. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5838. (eval $ac_compile) 2>conftest.er1
  5839. ac_status=$?
  5840. grep -v '^ *+' conftest.er1 >conftest.err
  5841. rm -f conftest.er1
  5842. cat conftest.err >&5
  5843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5844. (exit $ac_status); } &&
  5845. { ac_try='test -z "$ac_cxx_werror_flag"
  5846. || test ! -s conftest.err'
  5847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5848. (eval $ac_try) 2>&5
  5849. ac_status=$?
  5850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5851. (exit $ac_status); }; } &&
  5852. { ac_try='test -s conftest.$ac_objext'
  5853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5854. (eval $ac_try) 2>&5
  5855. ac_status=$?
  5856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5857. (exit $ac_status); }; }; then
  5858. echo "$as_me:$LINENO: result: void" >&5
  5859. echo "${ECHO_T}void" >&6
  5860. cat >>confdefs.h <<\_ACEOF
  5861. #define RET_TYPE_SRAND_IS_VOID 1
  5862. _ACEOF
  5863. else
  5864. echo "$as_me: failed program was:" >&5
  5865. sed 's/^/| /' conftest.$ac_ext >&5
  5866. echo "$as_me:$LINENO: result: int" >&5
  5867. echo "${ECHO_T}int" >&6
  5868. fi
  5869. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5870. ac_ext=c
  5871. ac_cpp='$CPP $CPPFLAGS'
  5872. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5873. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5874. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5875. echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
  5876. echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
  5877. ac_ext=cc
  5878. ac_cpp='$CXXCPP $CPPFLAGS'
  5879. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5880. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5881. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5882. if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
  5883. echo $ECHO_N "(cached) $ECHO_C" >&6
  5884. else
  5885. cat >conftest.$ac_ext <<_ACEOF
  5886. /* confdefs.h. */
  5887. _ACEOF
  5888. cat confdefs.h >>conftest.$ac_ext
  5889. cat >>conftest.$ac_ext <<_ACEOF
  5890. /* end confdefs.h. */
  5891. #include <stdio.h>
  5892. #ifdef HAVE_STRING_H
  5893. #include <string.h>
  5894. #endif
  5895. #ifdef HAVE_STRINGS_H
  5896. #include <strings.h>
  5897. #endif
  5898. #ifdef HAVE_STDLIB_H
  5899. #include <stdlib.h>
  5900. #endif
  5901. #ifdef HAVE_SYS_TIME_H
  5902. #include <sys/time.h>
  5903. #endif
  5904. #ifdef HAVE_UNISTD_H
  5905. #include <unistd.h>
  5906. #endif
  5907. #ifdef HAVE_MATH_H
  5908. #include <math.h>
  5909. #endif
  5910. int
  5911. main ()
  5912. {
  5913. #ifndef gettimeofday
  5914. char *p = (char *) gettimeofday;
  5915. #endif
  5916. ;
  5917. return 0;
  5918. }
  5919. _ACEOF
  5920. rm -f conftest.$ac_objext
  5921. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5922. (eval $ac_compile) 2>conftest.er1
  5923. ac_status=$?
  5924. grep -v '^ *+' conftest.er1 >conftest.err
  5925. rm -f conftest.er1
  5926. cat conftest.err >&5
  5927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5928. (exit $ac_status); } &&
  5929. { ac_try='test -z "$ac_cxx_werror_flag"
  5930. || test ! -s conftest.err'
  5931. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5932. (eval $ac_try) 2>&5
  5933. ac_status=$?
  5934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5935. (exit $ac_status); }; } &&
  5936. { ac_try='test -s conftest.$ac_objext'
  5937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5938. (eval $ac_try) 2>&5
  5939. ac_status=$?
  5940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5941. (exit $ac_status); }; }; then
  5942. groff_cv_decl_needed_gettimeofday=no
  5943. else
  5944. echo "$as_me: failed program was:" >&5
  5945. sed 's/^/| /' conftest.$ac_ext >&5
  5946. groff_cv_decl_needed_gettimeofday=yes
  5947. fi
  5948. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5949. fi
  5950. echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
  5951. echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
  5952. if test $groff_cv_decl_needed_gettimeofday = yes; then
  5953. cat >>confdefs.h <<\_ACEOF
  5954. #define NEED_DECLARATION_GETTIMEOFDAY 1
  5955. _ACEOF
  5956. fi
  5957. ac_ext=c
  5958. ac_cpp='$CPP $CPPFLAGS'
  5959. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5960. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5961. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5962. echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
  5963. echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
  5964. ac_ext=cc
  5965. ac_cpp='$CXXCPP $CPPFLAGS'
  5966. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5967. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5968. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5969. if test "${groff_cv_decl_needed_hypot+set}" = set; then
  5970. echo $ECHO_N "(cached) $ECHO_C" >&6
  5971. else
  5972. cat >conftest.$ac_ext <<_ACEOF
  5973. /* confdefs.h. */
  5974. _ACEOF
  5975. cat confdefs.h >>conftest.$ac_ext
  5976. cat >>conftest.$ac_ext <<_ACEOF
  5977. /* end confdefs.h. */
  5978. #include <stdio.h>
  5979. #ifdef HAVE_STRING_H
  5980. #include <string.h>
  5981. #endif
  5982. #ifdef HAVE_STRINGS_H
  5983. #include <strings.h>
  5984. #endif
  5985. #ifdef HAVE_STDLIB_H
  5986. #include <stdlib.h>
  5987. #endif
  5988. #ifdef HAVE_SYS_TIME_H
  5989. #include <sys/time.h>
  5990. #endif
  5991. #ifdef HAVE_UNISTD_H
  5992. #include <unistd.h>
  5993. #endif
  5994. #ifdef HAVE_MATH_H
  5995. #include <math.h>
  5996. #endif
  5997. int
  5998. main ()
  5999. {
  6000. #ifndef hypot
  6001. char *p = (char *) hypot;
  6002. #endif
  6003. ;
  6004. return 0;
  6005. }
  6006. _ACEOF
  6007. rm -f conftest.$ac_objext
  6008. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6009. (eval $ac_compile) 2>conftest.er1
  6010. ac_status=$?
  6011. grep -v '^ *+' conftest.er1 >conftest.err
  6012. rm -f conftest.er1
  6013. cat conftest.err >&5
  6014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6015. (exit $ac_status); } &&
  6016. { ac_try='test -z "$ac_cxx_werror_flag"
  6017. || test ! -s conftest.err'
  6018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6019. (eval $ac_try) 2>&5
  6020. ac_status=$?
  6021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6022. (exit $ac_status); }; } &&
  6023. { ac_try='test -s conftest.$ac_objext'
  6024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6025. (eval $ac_try) 2>&5
  6026. ac_status=$?
  6027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6028. (exit $ac_status); }; }; then
  6029. groff_cv_decl_needed_hypot=no
  6030. else
  6031. echo "$as_me: failed program was:" >&5
  6032. sed 's/^/| /' conftest.$ac_ext >&5
  6033. groff_cv_decl_needed_hypot=yes
  6034. fi
  6035. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6036. fi
  6037. echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
  6038. echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
  6039. if test $groff_cv_decl_needed_hypot = yes; then
  6040. cat >>confdefs.h <<\_ACEOF
  6041. #define NEED_DECLARATION_HYPOT 1
  6042. _ACEOF
  6043. fi
  6044. ac_ext=c
  6045. ac_cpp='$CPP $CPPFLAGS'
  6046. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6047. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6048. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6049. echo "$as_me:$LINENO: checking whether popen must be declared" >&5
  6050. echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
  6051. ac_ext=cc
  6052. ac_cpp='$CXXCPP $CPPFLAGS'
  6053. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6054. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6055. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6056. if test "${groff_cv_decl_needed_popen+set}" = set; then
  6057. echo $ECHO_N "(cached) $ECHO_C" >&6
  6058. else
  6059. cat >conftest.$ac_ext <<_ACEOF
  6060. /* confdefs.h. */
  6061. _ACEOF
  6062. cat confdefs.h >>conftest.$ac_ext
  6063. cat >>conftest.$ac_ext <<_ACEOF
  6064. /* end confdefs.h. */
  6065. #include <stdio.h>
  6066. #ifdef HAVE_STRING_H
  6067. #include <string.h>
  6068. #endif
  6069. #ifdef HAVE_STRINGS_H
  6070. #include <strings.h>
  6071. #endif
  6072. #ifdef HAVE_STDLIB_H
  6073. #include <stdlib.h>
  6074. #endif
  6075. #ifdef HAVE_SYS_TIME_H
  6076. #include <sys/time.h>
  6077. #endif
  6078. #ifdef HAVE_UNISTD_H
  6079. #include <unistd.h>
  6080. #endif
  6081. #ifdef HAVE_MATH_H
  6082. #include <math.h>
  6083. #endif
  6084. int
  6085. main ()
  6086. {
  6087. #ifndef popen
  6088. char *p = (char *) popen;
  6089. #endif
  6090. ;
  6091. return 0;
  6092. }
  6093. _ACEOF
  6094. rm -f conftest.$ac_objext
  6095. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6096. (eval $ac_compile) 2>conftest.er1
  6097. ac_status=$?
  6098. grep -v '^ *+' conftest.er1 >conftest.err
  6099. rm -f conftest.er1
  6100. cat conftest.err >&5
  6101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6102. (exit $ac_status); } &&
  6103. { ac_try='test -z "$ac_cxx_werror_flag"
  6104. || test ! -s conftest.err'
  6105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6106. (eval $ac_try) 2>&5
  6107. ac_status=$?
  6108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6109. (exit $ac_status); }; } &&
  6110. { ac_try='test -s conftest.$ac_objext'
  6111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6112. (eval $ac_try) 2>&5
  6113. ac_status=$?
  6114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6115. (exit $ac_status); }; }; then
  6116. groff_cv_decl_needed_popen=no
  6117. else
  6118. echo "$as_me: failed program was:" >&5
  6119. sed 's/^/| /' conftest.$ac_ext >&5
  6120. groff_cv_decl_needed_popen=yes
  6121. fi
  6122. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6123. fi
  6124. echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
  6125. echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
  6126. if test $groff_cv_decl_needed_popen = yes; then
  6127. cat >>confdefs.h <<\_ACEOF
  6128. #define NEED_DECLARATION_POPEN 1
  6129. _ACEOF
  6130. fi
  6131. ac_ext=c
  6132. ac_cpp='$CPP $CPPFLAGS'
  6133. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6134. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6135. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6136. echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
  6137. echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
  6138. ac_ext=cc
  6139. ac_cpp='$CXXCPP $CPPFLAGS'
  6140. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6141. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6142. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6143. if test "${groff_cv_decl_needed_pclose+set}" = set; then
  6144. echo $ECHO_N "(cached) $ECHO_C" >&6
  6145. else
  6146. cat >conftest.$ac_ext <<_ACEOF
  6147. /* confdefs.h. */
  6148. _ACEOF
  6149. cat confdefs.h >>conftest.$ac_ext
  6150. cat >>conftest.$ac_ext <<_ACEOF
  6151. /* end confdefs.h. */
  6152. #include <stdio.h>
  6153. #ifdef HAVE_STRING_H
  6154. #include <string.h>
  6155. #endif
  6156. #ifdef HAVE_STRINGS_H
  6157. #include <strings.h>
  6158. #endif
  6159. #ifdef HAVE_STDLIB_H
  6160. #include <stdlib.h>
  6161. #endif
  6162. #ifdef HAVE_SYS_TIME_H
  6163. #include <sys/time.h>
  6164. #endif
  6165. #ifdef HAVE_UNISTD_H
  6166. #include <unistd.h>
  6167. #endif
  6168. #ifdef HAVE_MATH_H
  6169. #include <math.h>
  6170. #endif
  6171. int
  6172. main ()
  6173. {
  6174. #ifndef pclose
  6175. char *p = (char *) pclose;
  6176. #endif
  6177. ;
  6178. return 0;
  6179. }
  6180. _ACEOF
  6181. rm -f conftest.$ac_objext
  6182. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6183. (eval $ac_compile) 2>conftest.er1
  6184. ac_status=$?
  6185. grep -v '^ *+' conftest.er1 >conftest.err
  6186. rm -f conftest.er1
  6187. cat conftest.err >&5
  6188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6189. (exit $ac_status); } &&
  6190. { ac_try='test -z "$ac_cxx_werror_flag"
  6191. || test ! -s conftest.err'
  6192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6193. (eval $ac_try) 2>&5
  6194. ac_status=$?
  6195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6196. (exit $ac_status); }; } &&
  6197. { ac_try='test -s conftest.$ac_objext'
  6198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6199. (eval $ac_try) 2>&5
  6200. ac_status=$?
  6201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6202. (exit $ac_status); }; }; then
  6203. groff_cv_decl_needed_pclose=no
  6204. else
  6205. echo "$as_me: failed program was:" >&5
  6206. sed 's/^/| /' conftest.$ac_ext >&5
  6207. groff_cv_decl_needed_pclose=yes
  6208. fi
  6209. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6210. fi
  6211. echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
  6212. echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
  6213. if test $groff_cv_decl_needed_pclose = yes; then
  6214. cat >>confdefs.h <<\_ACEOF
  6215. #define NEED_DECLARATION_PCLOSE 1
  6216. _ACEOF
  6217. fi
  6218. ac_ext=c
  6219. ac_cpp='$CPP $CPPFLAGS'
  6220. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6221. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6222. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6223. echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
  6224. echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
  6225. ac_ext=cc
  6226. ac_cpp='$CXXCPP $CPPFLAGS'
  6227. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6228. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6229. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6230. if test "${groff_cv_decl_needed_putenv+set}" = set; then
  6231. echo $ECHO_N "(cached) $ECHO_C" >&6
  6232. else
  6233. cat >conftest.$ac_ext <<_ACEOF
  6234. /* confdefs.h. */
  6235. _ACEOF
  6236. cat confdefs.h >>conftest.$ac_ext
  6237. cat >>conftest.$ac_ext <<_ACEOF
  6238. /* end confdefs.h. */
  6239. #include <stdio.h>
  6240. #ifdef HAVE_STRING_H
  6241. #include <string.h>
  6242. #endif
  6243. #ifdef HAVE_STRINGS_H
  6244. #include <strings.h>
  6245. #endif
  6246. #ifdef HAVE_STDLIB_H
  6247. #include <stdlib.h>
  6248. #endif
  6249. #ifdef HAVE_SYS_TIME_H
  6250. #include <sys/time.h>
  6251. #endif
  6252. #ifdef HAVE_UNISTD_H
  6253. #include <unistd.h>
  6254. #endif
  6255. #ifdef HAVE_MATH_H
  6256. #include <math.h>
  6257. #endif
  6258. int
  6259. main ()
  6260. {
  6261. #ifndef putenv
  6262. char *p = (char *) putenv;
  6263. #endif
  6264. ;
  6265. return 0;
  6266. }
  6267. _ACEOF
  6268. rm -f conftest.$ac_objext
  6269. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6270. (eval $ac_compile) 2>conftest.er1
  6271. ac_status=$?
  6272. grep -v '^ *+' conftest.er1 >conftest.err
  6273. rm -f conftest.er1
  6274. cat conftest.err >&5
  6275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6276. (exit $ac_status); } &&
  6277. { ac_try='test -z "$ac_cxx_werror_flag"
  6278. || test ! -s conftest.err'
  6279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6280. (eval $ac_try) 2>&5
  6281. ac_status=$?
  6282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6283. (exit $ac_status); }; } &&
  6284. { ac_try='test -s conftest.$ac_objext'
  6285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6286. (eval $ac_try) 2>&5
  6287. ac_status=$?
  6288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6289. (exit $ac_status); }; }; then
  6290. groff_cv_decl_needed_putenv=no
  6291. else
  6292. echo "$as_me: failed program was:" >&5
  6293. sed 's/^/| /' conftest.$ac_ext >&5
  6294. groff_cv_decl_needed_putenv=yes
  6295. fi
  6296. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6297. fi
  6298. echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
  6299. echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
  6300. if test $groff_cv_decl_needed_putenv = yes; then
  6301. cat >>confdefs.h <<\_ACEOF
  6302. #define NEED_DECLARATION_PUTENV 1
  6303. _ACEOF
  6304. fi
  6305. ac_ext=c
  6306. ac_cpp='$CPP $CPPFLAGS'
  6307. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6308. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6309. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6310. echo "$as_me:$LINENO: checking whether rand must be declared" >&5
  6311. echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
  6312. ac_ext=cc
  6313. ac_cpp='$CXXCPP $CPPFLAGS'
  6314. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6315. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6316. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6317. if test "${groff_cv_decl_needed_rand+set}" = set; then
  6318. echo $ECHO_N "(cached) $ECHO_C" >&6
  6319. else
  6320. cat >conftest.$ac_ext <<_ACEOF
  6321. /* confdefs.h. */
  6322. _ACEOF
  6323. cat confdefs.h >>conftest.$ac_ext
  6324. cat >>conftest.$ac_ext <<_ACEOF
  6325. /* end confdefs.h. */
  6326. #include <stdio.h>
  6327. #ifdef HAVE_STRING_H
  6328. #include <string.h>
  6329. #endif
  6330. #ifdef HAVE_STRINGS_H
  6331. #include <strings.h>
  6332. #endif
  6333. #ifdef HAVE_STDLIB_H
  6334. #include <stdlib.h>
  6335. #endif
  6336. #ifdef HAVE_SYS_TIME_H
  6337. #include <sys/time.h>
  6338. #endif
  6339. #ifdef HAVE_UNISTD_H
  6340. #include <unistd.h>
  6341. #endif
  6342. #ifdef HAVE_MATH_H
  6343. #include <math.h>
  6344. #endif
  6345. int
  6346. main ()
  6347. {
  6348. #ifndef rand
  6349. char *p = (char *) rand;
  6350. #endif
  6351. ;
  6352. return 0;
  6353. }
  6354. _ACEOF
  6355. rm -f conftest.$ac_objext
  6356. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6357. (eval $ac_compile) 2>conftest.er1
  6358. ac_status=$?
  6359. grep -v '^ *+' conftest.er1 >conftest.err
  6360. rm -f conftest.er1
  6361. cat conftest.err >&5
  6362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6363. (exit $ac_status); } &&
  6364. { ac_try='test -z "$ac_cxx_werror_flag"
  6365. || test ! -s conftest.err'
  6366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6367. (eval $ac_try) 2>&5
  6368. ac_status=$?
  6369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6370. (exit $ac_status); }; } &&
  6371. { ac_try='test -s conftest.$ac_objext'
  6372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6373. (eval $ac_try) 2>&5
  6374. ac_status=$?
  6375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6376. (exit $ac_status); }; }; then
  6377. groff_cv_decl_needed_rand=no
  6378. else
  6379. echo "$as_me: failed program was:" >&5
  6380. sed 's/^/| /' conftest.$ac_ext >&5
  6381. groff_cv_decl_needed_rand=yes
  6382. fi
  6383. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6384. fi
  6385. echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
  6386. echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
  6387. if test $groff_cv_decl_needed_rand = yes; then
  6388. cat >>confdefs.h <<\_ACEOF
  6389. #define NEED_DECLARATION_RAND 1
  6390. _ACEOF
  6391. fi
  6392. ac_ext=c
  6393. ac_cpp='$CPP $CPPFLAGS'
  6394. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6395. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6396. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6397. echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
  6398. echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
  6399. ac_ext=cc
  6400. ac_cpp='$CXXCPP $CPPFLAGS'
  6401. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6402. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6403. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6404. if test "${groff_cv_decl_needed_snprintf+set}" = set; then
  6405. echo $ECHO_N "(cached) $ECHO_C" >&6
  6406. else
  6407. cat >conftest.$ac_ext <<_ACEOF
  6408. /* confdefs.h. */
  6409. _ACEOF
  6410. cat confdefs.h >>conftest.$ac_ext
  6411. cat >>conftest.$ac_ext <<_ACEOF
  6412. /* end confdefs.h. */
  6413. #include <stdio.h>
  6414. #ifdef HAVE_STRING_H
  6415. #include <string.h>
  6416. #endif
  6417. #ifdef HAVE_STRINGS_H
  6418. #include <strings.h>
  6419. #endif
  6420. #ifdef HAVE_STDLIB_H
  6421. #include <stdlib.h>
  6422. #endif
  6423. #ifdef HAVE_SYS_TIME_H
  6424. #include <sys/time.h>
  6425. #endif
  6426. #ifdef HAVE_UNISTD_H
  6427. #include <unistd.h>
  6428. #endif
  6429. #ifdef HAVE_MATH_H
  6430. #include <math.h>
  6431. #endif
  6432. int
  6433. main ()
  6434. {
  6435. #ifndef snprintf
  6436. char *p = (char *) snprintf;
  6437. #endif
  6438. ;
  6439. return 0;
  6440. }
  6441. _ACEOF
  6442. rm -f conftest.$ac_objext
  6443. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6444. (eval $ac_compile) 2>conftest.er1
  6445. ac_status=$?
  6446. grep -v '^ *+' conftest.er1 >conftest.err
  6447. rm -f conftest.er1
  6448. cat conftest.err >&5
  6449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6450. (exit $ac_status); } &&
  6451. { ac_try='test -z "$ac_cxx_werror_flag"
  6452. || test ! -s conftest.err'
  6453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6454. (eval $ac_try) 2>&5
  6455. ac_status=$?
  6456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6457. (exit $ac_status); }; } &&
  6458. { ac_try='test -s conftest.$ac_objext'
  6459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6460. (eval $ac_try) 2>&5
  6461. ac_status=$?
  6462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6463. (exit $ac_status); }; }; then
  6464. groff_cv_decl_needed_snprintf=no
  6465. else
  6466. echo "$as_me: failed program was:" >&5
  6467. sed 's/^/| /' conftest.$ac_ext >&5
  6468. groff_cv_decl_needed_snprintf=yes
  6469. fi
  6470. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6471. fi
  6472. echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
  6473. echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
  6474. if test $groff_cv_decl_needed_snprintf = yes; then
  6475. cat >>confdefs.h <<\_ACEOF
  6476. #define NEED_DECLARATION_SNPRINTF 1
  6477. _ACEOF
  6478. fi
  6479. ac_ext=c
  6480. ac_cpp='$CPP $CPPFLAGS'
  6481. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6482. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6483. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6484. echo "$as_me:$LINENO: checking whether srand must be declared" >&5
  6485. echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
  6486. ac_ext=cc
  6487. ac_cpp='$CXXCPP $CPPFLAGS'
  6488. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6489. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6490. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6491. if test "${groff_cv_decl_needed_srand+set}" = set; then
  6492. echo $ECHO_N "(cached) $ECHO_C" >&6
  6493. else
  6494. cat >conftest.$ac_ext <<_ACEOF
  6495. /* confdefs.h. */
  6496. _ACEOF
  6497. cat confdefs.h >>conftest.$ac_ext
  6498. cat >>conftest.$ac_ext <<_ACEOF
  6499. /* end confdefs.h. */
  6500. #include <stdio.h>
  6501. #ifdef HAVE_STRING_H
  6502. #include <string.h>
  6503. #endif
  6504. #ifdef HAVE_STRINGS_H
  6505. #include <strings.h>
  6506. #endif
  6507. #ifdef HAVE_STDLIB_H
  6508. #include <stdlib.h>
  6509. #endif
  6510. #ifdef HAVE_SYS_TIME_H
  6511. #include <sys/time.h>
  6512. #endif
  6513. #ifdef HAVE_UNISTD_H
  6514. #include <unistd.h>
  6515. #endif
  6516. #ifdef HAVE_MATH_H
  6517. #include <math.h>
  6518. #endif
  6519. int
  6520. main ()
  6521. {
  6522. #ifndef srand
  6523. char *p = (char *) srand;
  6524. #endif
  6525. ;
  6526. return 0;
  6527. }
  6528. _ACEOF
  6529. rm -f conftest.$ac_objext
  6530. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6531. (eval $ac_compile) 2>conftest.er1
  6532. ac_status=$?
  6533. grep -v '^ *+' conftest.er1 >conftest.err
  6534. rm -f conftest.er1
  6535. cat conftest.err >&5
  6536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6537. (exit $ac_status); } &&
  6538. { ac_try='test -z "$ac_cxx_werror_flag"
  6539. || test ! -s conftest.err'
  6540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6541. (eval $ac_try) 2>&5
  6542. ac_status=$?
  6543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6544. (exit $ac_status); }; } &&
  6545. { ac_try='test -s conftest.$ac_objext'
  6546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6547. (eval $ac_try) 2>&5
  6548. ac_status=$?
  6549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6550. (exit $ac_status); }; }; then
  6551. groff_cv_decl_needed_srand=no
  6552. else
  6553. echo "$as_me: failed program was:" >&5
  6554. sed 's/^/| /' conftest.$ac_ext >&5
  6555. groff_cv_decl_needed_srand=yes
  6556. fi
  6557. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6558. fi
  6559. echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
  6560. echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
  6561. if test $groff_cv_decl_needed_srand = yes; then
  6562. cat >>confdefs.h <<\_ACEOF
  6563. #define NEED_DECLARATION_SRAND 1
  6564. _ACEOF
  6565. fi
  6566. ac_ext=c
  6567. ac_cpp='$CPP $CPPFLAGS'
  6568. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6569. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6570. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6571. echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
  6572. echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
  6573. ac_ext=cc
  6574. ac_cpp='$CXXCPP $CPPFLAGS'
  6575. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6576. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6577. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6578. if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
  6579. echo $ECHO_N "(cached) $ECHO_C" >&6
  6580. else
  6581. cat >conftest.$ac_ext <<_ACEOF
  6582. /* confdefs.h. */
  6583. _ACEOF
  6584. cat confdefs.h >>conftest.$ac_ext
  6585. cat >>conftest.$ac_ext <<_ACEOF
  6586. /* end confdefs.h. */
  6587. #include <stdio.h>
  6588. #ifdef HAVE_STRING_H
  6589. #include <string.h>
  6590. #endif
  6591. #ifdef HAVE_STRINGS_H
  6592. #include <strings.h>
  6593. #endif
  6594. #ifdef HAVE_STDLIB_H
  6595. #include <stdlib.h>
  6596. #endif
  6597. #ifdef HAVE_SYS_TIME_H
  6598. #include <sys/time.h>
  6599. #endif
  6600. #ifdef HAVE_UNISTD_H
  6601. #include <unistd.h>
  6602. #endif
  6603. #ifdef HAVE_MATH_H
  6604. #include <math.h>
  6605. #endif
  6606. int
  6607. main ()
  6608. {
  6609. #ifndef strcasecmp
  6610. char *p = (char *) strcasecmp;
  6611. #endif
  6612. ;
  6613. return 0;
  6614. }
  6615. _ACEOF
  6616. rm -f conftest.$ac_objext
  6617. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6618. (eval $ac_compile) 2>conftest.er1
  6619. ac_status=$?
  6620. grep -v '^ *+' conftest.er1 >conftest.err
  6621. rm -f conftest.er1
  6622. cat conftest.err >&5
  6623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6624. (exit $ac_status); } &&
  6625. { ac_try='test -z "$ac_cxx_werror_flag"
  6626. || test ! -s conftest.err'
  6627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6628. (eval $ac_try) 2>&5
  6629. ac_status=$?
  6630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6631. (exit $ac_status); }; } &&
  6632. { ac_try='test -s conftest.$ac_objext'
  6633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6634. (eval $ac_try) 2>&5
  6635. ac_status=$?
  6636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6637. (exit $ac_status); }; }; then
  6638. groff_cv_decl_needed_strcasecmp=no
  6639. else
  6640. echo "$as_me: failed program was:" >&5
  6641. sed 's/^/| /' conftest.$ac_ext >&5
  6642. groff_cv_decl_needed_strcasecmp=yes
  6643. fi
  6644. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6645. fi
  6646. echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
  6647. echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
  6648. if test $groff_cv_decl_needed_strcasecmp = yes; then
  6649. cat >>confdefs.h <<\_ACEOF
  6650. #define NEED_DECLARATION_STRCASECMP 1
  6651. _ACEOF
  6652. fi
  6653. ac_ext=c
  6654. ac_cpp='$CPP $CPPFLAGS'
  6655. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6656. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6657. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6658. echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
  6659. echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
  6660. ac_ext=cc
  6661. ac_cpp='$CXXCPP $CPPFLAGS'
  6662. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6663. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6664. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6665. if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
  6666. echo $ECHO_N "(cached) $ECHO_C" >&6
  6667. else
  6668. cat >conftest.$ac_ext <<_ACEOF
  6669. /* confdefs.h. */
  6670. _ACEOF
  6671. cat confdefs.h >>conftest.$ac_ext
  6672. cat >>conftest.$ac_ext <<_ACEOF
  6673. /* end confdefs.h. */
  6674. #include <stdio.h>
  6675. #ifdef HAVE_STRING_H
  6676. #include <string.h>
  6677. #endif
  6678. #ifdef HAVE_STRINGS_H
  6679. #include <strings.h>
  6680. #endif
  6681. #ifdef HAVE_STDLIB_H
  6682. #include <stdlib.h>
  6683. #endif
  6684. #ifdef HAVE_SYS_TIME_H
  6685. #include <sys/time.h>
  6686. #endif
  6687. #ifdef HAVE_UNISTD_H
  6688. #include <unistd.h>
  6689. #endif
  6690. #ifdef HAVE_MATH_H
  6691. #include <math.h>
  6692. #endif
  6693. int
  6694. main ()
  6695. {
  6696. #ifndef strncasecmp
  6697. char *p = (char *) strncasecmp;
  6698. #endif
  6699. ;
  6700. return 0;
  6701. }
  6702. _ACEOF
  6703. rm -f conftest.$ac_objext
  6704. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6705. (eval $ac_compile) 2>conftest.er1
  6706. ac_status=$?
  6707. grep -v '^ *+' conftest.er1 >conftest.err
  6708. rm -f conftest.er1
  6709. cat conftest.err >&5
  6710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6711. (exit $ac_status); } &&
  6712. { ac_try='test -z "$ac_cxx_werror_flag"
  6713. || test ! -s conftest.err'
  6714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6715. (eval $ac_try) 2>&5
  6716. ac_status=$?
  6717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6718. (exit $ac_status); }; } &&
  6719. { ac_try='test -s conftest.$ac_objext'
  6720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6721. (eval $ac_try) 2>&5
  6722. ac_status=$?
  6723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6724. (exit $ac_status); }; }; then
  6725. groff_cv_decl_needed_strncasecmp=no
  6726. else
  6727. echo "$as_me: failed program was:" >&5
  6728. sed 's/^/| /' conftest.$ac_ext >&5
  6729. groff_cv_decl_needed_strncasecmp=yes
  6730. fi
  6731. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6732. fi
  6733. echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
  6734. echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
  6735. if test $groff_cv_decl_needed_strncasecmp = yes; then
  6736. cat >>confdefs.h <<\_ACEOF
  6737. #define NEED_DECLARATION_STRNCASECMP 1
  6738. _ACEOF
  6739. fi
  6740. ac_ext=c
  6741. ac_cpp='$CPP $CPPFLAGS'
  6742. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6743. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6744. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6745. echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
  6746. echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
  6747. ac_ext=cc
  6748. ac_cpp='$CXXCPP $CPPFLAGS'
  6749. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6750. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6751. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6752. if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
  6753. echo $ECHO_N "(cached) $ECHO_C" >&6
  6754. else
  6755. cat >conftest.$ac_ext <<_ACEOF
  6756. /* confdefs.h. */
  6757. _ACEOF
  6758. cat confdefs.h >>conftest.$ac_ext
  6759. cat >>conftest.$ac_ext <<_ACEOF
  6760. /* end confdefs.h. */
  6761. #include <stdio.h>
  6762. #ifdef HAVE_STRING_H
  6763. #include <string.h>
  6764. #endif
  6765. #ifdef HAVE_STRINGS_H
  6766. #include <strings.h>
  6767. #endif
  6768. #ifdef HAVE_STDLIB_H
  6769. #include <stdlib.h>
  6770. #endif
  6771. #ifdef HAVE_SYS_TIME_H
  6772. #include <sys/time.h>
  6773. #endif
  6774. #ifdef HAVE_UNISTD_H
  6775. #include <unistd.h>
  6776. #endif
  6777. #ifdef HAVE_MATH_H
  6778. #include <math.h>
  6779. #endif
  6780. int
  6781. main ()
  6782. {
  6783. #ifndef vfprintf
  6784. char *p = (char *) vfprintf;
  6785. #endif
  6786. ;
  6787. return 0;
  6788. }
  6789. _ACEOF
  6790. rm -f conftest.$ac_objext
  6791. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6792. (eval $ac_compile) 2>conftest.er1
  6793. ac_status=$?
  6794. grep -v '^ *+' conftest.er1 >conftest.err
  6795. rm -f conftest.er1
  6796. cat conftest.err >&5
  6797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6798. (exit $ac_status); } &&
  6799. { ac_try='test -z "$ac_cxx_werror_flag"
  6800. || test ! -s conftest.err'
  6801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6802. (eval $ac_try) 2>&5
  6803. ac_status=$?
  6804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6805. (exit $ac_status); }; } &&
  6806. { ac_try='test -s conftest.$ac_objext'
  6807. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6808. (eval $ac_try) 2>&5
  6809. ac_status=$?
  6810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6811. (exit $ac_status); }; }; then
  6812. groff_cv_decl_needed_vfprintf=no
  6813. else
  6814. echo "$as_me: failed program was:" >&5
  6815. sed 's/^/| /' conftest.$ac_ext >&5
  6816. groff_cv_decl_needed_vfprintf=yes
  6817. fi
  6818. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6819. fi
  6820. echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
  6821. echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
  6822. if test $groff_cv_decl_needed_vfprintf = yes; then
  6823. cat >>confdefs.h <<\_ACEOF
  6824. #define NEED_DECLARATION_VFPRINTF 1
  6825. _ACEOF
  6826. fi
  6827. ac_ext=c
  6828. ac_cpp='$CPP $CPPFLAGS'
  6829. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6830. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6831. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6832. echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
  6833. echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
  6834. ac_ext=cc
  6835. ac_cpp='$CXXCPP $CPPFLAGS'
  6836. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6837. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6838. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6839. if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
  6840. echo $ECHO_N "(cached) $ECHO_C" >&6
  6841. else
  6842. cat >conftest.$ac_ext <<_ACEOF
  6843. /* confdefs.h. */
  6844. _ACEOF
  6845. cat confdefs.h >>conftest.$ac_ext
  6846. cat >>conftest.$ac_ext <<_ACEOF
  6847. /* end confdefs.h. */
  6848. #include <stdio.h>
  6849. #ifdef HAVE_STRING_H
  6850. #include <string.h>
  6851. #endif
  6852. #ifdef HAVE_STRINGS_H
  6853. #include <strings.h>
  6854. #endif
  6855. #ifdef HAVE_STDLIB_H
  6856. #include <stdlib.h>
  6857. #endif
  6858. #ifdef HAVE_SYS_TIME_H
  6859. #include <sys/time.h>
  6860. #endif
  6861. #ifdef HAVE_UNISTD_H
  6862. #include <unistd.h>
  6863. #endif
  6864. #ifdef HAVE_MATH_H
  6865. #include <math.h>
  6866. #endif
  6867. int
  6868. main ()
  6869. {
  6870. #ifndef vsnprintf
  6871. char *p = (char *) vsnprintf;
  6872. #endif
  6873. ;
  6874. return 0;
  6875. }
  6876. _ACEOF
  6877. rm -f conftest.$ac_objext
  6878. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6879. (eval $ac_compile) 2>conftest.er1
  6880. ac_status=$?
  6881. grep -v '^ *+' conftest.er1 >conftest.err
  6882. rm -f conftest.er1
  6883. cat conftest.err >&5
  6884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6885. (exit $ac_status); } &&
  6886. { ac_try='test -z "$ac_cxx_werror_flag"
  6887. || test ! -s conftest.err'
  6888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6889. (eval $ac_try) 2>&5
  6890. ac_status=$?
  6891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6892. (exit $ac_status); }; } &&
  6893. { ac_try='test -s conftest.$ac_objext'
  6894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6895. (eval $ac_try) 2>&5
  6896. ac_status=$?
  6897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6898. (exit $ac_status); }; }; then
  6899. groff_cv_decl_needed_vsnprintf=no
  6900. else
  6901. echo "$as_me: failed program was:" >&5
  6902. sed 's/^/| /' conftest.$ac_ext >&5
  6903. groff_cv_decl_needed_vsnprintf=yes
  6904. fi
  6905. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6906. fi
  6907. echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
  6908. echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
  6909. if test $groff_cv_decl_needed_vsnprintf = yes; then
  6910. cat >>confdefs.h <<\_ACEOF
  6911. #define NEED_DECLARATION_VSNPRINTF 1
  6912. _ACEOF
  6913. fi
  6914. ac_ext=c
  6915. ac_cpp='$CPP $CPPFLAGS'
  6916. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6917. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6918. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6919. ac_ext=cc
  6920. ac_cpp='$CXXCPP $CPPFLAGS'
  6921. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6922. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6923. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6924. echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
  6925. echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
  6926. cat >conftest.$ac_ext <<_ACEOF
  6927. /* confdefs.h. */
  6928. _ACEOF
  6929. cat confdefs.h >>conftest.$ac_ext
  6930. cat >>conftest.$ac_ext <<_ACEOF
  6931. /* end confdefs.h. */
  6932. #include <errno.h>
  6933. #include <stdio.h>
  6934. #include <stdlib.h>
  6935. int
  6936. main ()
  6937. {
  6938. int k;
  6939. k = sys_nerr;
  6940. ;
  6941. return 0;
  6942. }
  6943. _ACEOF
  6944. rm -f conftest.$ac_objext
  6945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6946. (eval $ac_compile) 2>conftest.er1
  6947. ac_status=$?
  6948. grep -v '^ *+' conftest.er1 >conftest.err
  6949. rm -f conftest.er1
  6950. cat conftest.err >&5
  6951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6952. (exit $ac_status); } &&
  6953. { ac_try='test -z "$ac_cxx_werror_flag"
  6954. || test ! -s conftest.err'
  6955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6956. (eval $ac_try) 2>&5
  6957. ac_status=$?
  6958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6959. (exit $ac_status); }; } &&
  6960. { ac_try='test -s conftest.$ac_objext'
  6961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6962. (eval $ac_try) 2>&5
  6963. ac_status=$?
  6964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6965. (exit $ac_status); }; }; then
  6966. echo "$as_me:$LINENO: result: yes" >&5
  6967. echo "${ECHO_T}yes" >&6
  6968. cat >>confdefs.h <<\_ACEOF
  6969. #define HAVE_SYS_NERR 1
  6970. _ACEOF
  6971. else
  6972. echo "$as_me: failed program was:" >&5
  6973. sed 's/^/| /' conftest.$ac_ext >&5
  6974. echo "$as_me:$LINENO: result: no" >&5
  6975. echo "${ECHO_T}no" >&6
  6976. fi
  6977. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6978. ac_ext=c
  6979. ac_cpp='$CPP $CPPFLAGS'
  6980. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6981. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6982. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6983. echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
  6984. echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
  6985. cat >conftest.$ac_ext <<_ACEOF
  6986. /* confdefs.h. */
  6987. _ACEOF
  6988. cat confdefs.h >>conftest.$ac_ext
  6989. cat >>conftest.$ac_ext <<_ACEOF
  6990. /* end confdefs.h. */
  6991. #include <errno.h>
  6992. #include <stdio.h>
  6993. #include <stdlib.h>
  6994. int
  6995. main ()
  6996. {
  6997. int k;
  6998. k = (int)sys_errlist[0];
  6999. ;
  7000. return 0;
  7001. }
  7002. _ACEOF
  7003. rm -f conftest.$ac_objext
  7004. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7005. (eval $ac_compile) 2>conftest.er1
  7006. ac_status=$?
  7007. grep -v '^ *+' conftest.er1 >conftest.err
  7008. rm -f conftest.er1
  7009. cat conftest.err >&5
  7010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7011. (exit $ac_status); } &&
  7012. { ac_try='test -z "$ac_c_werror_flag"
  7013. || test ! -s conftest.err'
  7014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7015. (eval $ac_try) 2>&5
  7016. ac_status=$?
  7017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7018. (exit $ac_status); }; } &&
  7019. { ac_try='test -s conftest.$ac_objext'
  7020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7021. (eval $ac_try) 2>&5
  7022. ac_status=$?
  7023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7024. (exit $ac_status); }; }; then
  7025. echo "$as_me:$LINENO: result: yes" >&5
  7026. echo "${ECHO_T}yes" >&6
  7027. cat >>confdefs.h <<\_ACEOF
  7028. #define HAVE_SYS_ERRLIST 1
  7029. _ACEOF
  7030. else
  7031. echo "$as_me: failed program was:" >&5
  7032. sed 's/^/| /' conftest.$ac_ext >&5
  7033. echo "$as_me:$LINENO: result: no" >&5
  7034. echo "${ECHO_T}no" >&6
  7035. fi
  7036. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7037. ac_ext=cc
  7038. ac_cpp='$CXXCPP $CPPFLAGS'
  7039. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7040. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7041. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7042. echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
  7043. echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
  7044. cat >conftest.$ac_ext <<_ACEOF
  7045. /* confdefs.h. */
  7046. _ACEOF
  7047. cat confdefs.h >>conftest.$ac_ext
  7048. cat >>conftest.$ac_ext <<_ACEOF
  7049. /* end confdefs.h. */
  7050. #include <osfcn.h>
  7051. int
  7052. main ()
  7053. {
  7054. read(0, 0, 0);
  7055. open(0, 0);
  7056. ;
  7057. return 0;
  7058. }
  7059. _ACEOF
  7060. rm -f conftest.$ac_objext
  7061. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7062. (eval $ac_compile) 2>conftest.er1
  7063. ac_status=$?
  7064. grep -v '^ *+' conftest.er1 >conftest.err
  7065. rm -f conftest.er1
  7066. cat conftest.err >&5
  7067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7068. (exit $ac_status); } &&
  7069. { ac_try='test -z "$ac_cxx_werror_flag"
  7070. || test ! -s conftest.err'
  7071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7072. (eval $ac_try) 2>&5
  7073. ac_status=$?
  7074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7075. (exit $ac_status); }; } &&
  7076. { ac_try='test -s conftest.$ac_objext'
  7077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7078. (eval $ac_try) 2>&5
  7079. ac_status=$?
  7080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7081. (exit $ac_status); }; }; then
  7082. echo "$as_me:$LINENO: result: yes" >&5
  7083. echo "${ECHO_T}yes" >&6
  7084. cat >>confdefs.h <<\_ACEOF
  7085. #define HAVE_CC_OSFCN_H 1
  7086. _ACEOF
  7087. else
  7088. echo "$as_me: failed program was:" >&5
  7089. sed 's/^/| /' conftest.$ac_ext >&5
  7090. echo "$as_me:$LINENO: result: no" >&5
  7091. echo "${ECHO_T}no" >&6
  7092. fi
  7093. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7094. ac_ext=c
  7095. ac_cpp='$CPP $CPPFLAGS'
  7096. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7097. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7098. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7099. ac_ext=cc
  7100. ac_cpp='$CXXCPP $CPPFLAGS'
  7101. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7102. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7103. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7104. echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
  7105. echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
  7106. cat >conftest.$ac_ext <<_ACEOF
  7107. /* confdefs.h. */
  7108. _ACEOF
  7109. cat confdefs.h >>conftest.$ac_ext
  7110. cat >>conftest.$ac_ext <<_ACEOF
  7111. /* end confdefs.h. */
  7112. #include <limits.h>
  7113. int
  7114. main ()
  7115. {
  7116. int x = INT_MIN;
  7117. int y = INT_MAX;
  7118. int z = UCHAR_MAX;
  7119. ;
  7120. return 0;
  7121. }
  7122. _ACEOF
  7123. rm -f conftest.$ac_objext
  7124. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7125. (eval $ac_compile) 2>conftest.er1
  7126. ac_status=$?
  7127. grep -v '^ *+' conftest.er1 >conftest.err
  7128. rm -f conftest.er1
  7129. cat conftest.err >&5
  7130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7131. (exit $ac_status); } &&
  7132. { ac_try='test -z "$ac_cxx_werror_flag"
  7133. || test ! -s conftest.err'
  7134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7135. (eval $ac_try) 2>&5
  7136. ac_status=$?
  7137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7138. (exit $ac_status); }; } &&
  7139. { ac_try='test -s conftest.$ac_objext'
  7140. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7141. (eval $ac_try) 2>&5
  7142. ac_status=$?
  7143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7144. (exit $ac_status); }; }; then
  7145. echo "$as_me:$LINENO: result: yes" >&5
  7146. echo "${ECHO_T}yes" >&6
  7147. cat >>confdefs.h <<\_ACEOF
  7148. #define HAVE_CC_LIMITS_H 1
  7149. _ACEOF
  7150. else
  7151. echo "$as_me: failed program was:" >&5
  7152. sed 's/^/| /' conftest.$ac_ext >&5
  7153. echo "$as_me:$LINENO: result: no" >&5
  7154. echo "${ECHO_T}no" >&6
  7155. fi
  7156. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7157. ac_ext=c
  7158. ac_cpp='$CPP $CPPFLAGS'
  7159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7162. ac_ext=cc
  7163. ac_cpp='$CXXCPP $CPPFLAGS'
  7164. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7165. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7166. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7167. echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
  7168. echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
  7169. cat >conftest.$ac_ext <<_ACEOF
  7170. /* confdefs.h. */
  7171. _ACEOF
  7172. cat confdefs.h >>conftest.$ac_ext
  7173. cat >>conftest.$ac_ext <<_ACEOF
  7174. /* end confdefs.h. */
  7175. #include <sys/types.h>
  7176. #include <inttypes.h>
  7177. int
  7178. main ()
  7179. {
  7180. uintmax_t i = (uintmax_t)-1;
  7181. ;
  7182. return 0;
  7183. }
  7184. _ACEOF
  7185. rm -f conftest.$ac_objext
  7186. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7187. (eval $ac_compile) 2>conftest.er1
  7188. ac_status=$?
  7189. grep -v '^ *+' conftest.er1 >conftest.err
  7190. rm -f conftest.er1
  7191. cat conftest.err >&5
  7192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7193. (exit $ac_status); } &&
  7194. { ac_try='test -z "$ac_cxx_werror_flag"
  7195. || test ! -s conftest.err'
  7196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7197. (eval $ac_try) 2>&5
  7198. ac_status=$?
  7199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7200. (exit $ac_status); }; } &&
  7201. { ac_try='test -s conftest.$ac_objext'
  7202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7203. (eval $ac_try) 2>&5
  7204. ac_status=$?
  7205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7206. (exit $ac_status); }; }; then
  7207. groff_cv_header_inttypes_h=yes
  7208. cat >>confdefs.h <<\_ACEOF
  7209. #define HAVE_CC_INTTYPES_H 1
  7210. _ACEOF
  7211. else
  7212. echo "$as_me: failed program was:" >&5
  7213. sed 's/^/| /' conftest.$ac_ext >&5
  7214. groff_cv_header_inttypes_h=no
  7215. fi
  7216. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7217. echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
  7218. echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
  7219. ac_ext=c
  7220. ac_cpp='$CPP $CPPFLAGS'
  7221. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7222. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7223. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7224. # checks for typedefs
  7225. ac_ext=cc
  7226. ac_cpp='$CXXCPP $CPPFLAGS'
  7227. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7228. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7229. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7230. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  7231. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  7232. cat >conftest.$ac_ext <<_ACEOF
  7233. /* confdefs.h. */
  7234. _ACEOF
  7235. cat confdefs.h >>conftest.$ac_ext
  7236. cat >>conftest.$ac_ext <<_ACEOF
  7237. /* end confdefs.h. */
  7238. unsigned long long ull = 1;
  7239. int i = 63;
  7240. unsigned long long ullmax = (unsigned long long)-1;
  7241. int
  7242. main ()
  7243. {
  7244. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7245. ;
  7246. return 0;
  7247. }
  7248. _ACEOF
  7249. rm -f conftest.$ac_objext conftest$ac_exeext
  7250. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7251. (eval $ac_link) 2>conftest.er1
  7252. ac_status=$?
  7253. grep -v '^ *+' conftest.er1 >conftest.err
  7254. rm -f conftest.er1
  7255. cat conftest.err >&5
  7256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7257. (exit $ac_status); } &&
  7258. { ac_try='test -z "$ac_cxx_werror_flag"
  7259. || test ! -s conftest.err'
  7260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7261. (eval $ac_try) 2>&5
  7262. ac_status=$?
  7263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7264. (exit $ac_status); }; } &&
  7265. { ac_try='test -s conftest$ac_exeext'
  7266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7267. (eval $ac_try) 2>&5
  7268. ac_status=$?
  7269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7270. (exit $ac_status); }; }; then
  7271. groff_cv_type_unsigned_long_long=yes
  7272. else
  7273. echo "$as_me: failed program was:" >&5
  7274. sed 's/^/| /' conftest.$ac_ext >&5
  7275. groff_cv_type_unsigned_long_long=no
  7276. fi
  7277. rm -f conftest.err conftest.$ac_objext \
  7278. conftest$ac_exeext conftest.$ac_ext
  7279. echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
  7280. echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
  7281. ac_ext=c
  7282. ac_cpp='$CPP $CPPFLAGS'
  7283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7286. if test $groff_cv_header_inttypes_h = no; then
  7287. test $groff_cv_type_unsigned_long_long = yes \
  7288. && ac_type='unsigned long long' \
  7289. || ac_type='unsigned long'
  7290. cat >>confdefs.h <<_ACEOF
  7291. #define uintmax_t $ac_type
  7292. _ACEOF
  7293. fi
  7294. ac_ext=cc
  7295. ac_cpp='$CXXCPP $CPPFLAGS'
  7296. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7297. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7298. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7299. echo "$as_me:$LINENO: checking for declaration of time_t" >&5
  7300. echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
  7301. cat >conftest.$ac_ext <<_ACEOF
  7302. /* confdefs.h. */
  7303. _ACEOF
  7304. cat confdefs.h >>conftest.$ac_ext
  7305. cat >>conftest.$ac_ext <<_ACEOF
  7306. /* end confdefs.h. */
  7307. #include <time.h>
  7308. int
  7309. main ()
  7310. {
  7311. time_t t = time(0);
  7312. struct tm *p = localtime(&t);
  7313. ;
  7314. return 0;
  7315. }
  7316. _ACEOF
  7317. rm -f conftest.$ac_objext
  7318. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7319. (eval $ac_compile) 2>conftest.er1
  7320. ac_status=$?
  7321. grep -v '^ *+' conftest.er1 >conftest.err
  7322. rm -f conftest.er1
  7323. cat conftest.err >&5
  7324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7325. (exit $ac_status); } &&
  7326. { ac_try='test -z "$ac_cxx_werror_flag"
  7327. || test ! -s conftest.err'
  7328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7329. (eval $ac_try) 2>&5
  7330. ac_status=$?
  7331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7332. (exit $ac_status); }; } &&
  7333. { ac_try='test -s conftest.$ac_objext'
  7334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7335. (eval $ac_try) 2>&5
  7336. ac_status=$?
  7337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7338. (exit $ac_status); }; }; then
  7339. echo "$as_me:$LINENO: result: yes" >&5
  7340. echo "${ECHO_T}yes" >&6
  7341. else
  7342. echo "$as_me: failed program was:" >&5
  7343. sed 's/^/| /' conftest.$ac_ext >&5
  7344. echo "$as_me:$LINENO: result: no" >&5
  7345. echo "${ECHO_T}no" >&6
  7346. cat >>confdefs.h <<\_ACEOF
  7347. #define LONG_FOR_TIME_T 1
  7348. _ACEOF
  7349. fi
  7350. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7351. ac_ext=c
  7352. ac_cpp='$CPP $CPPFLAGS'
  7353. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7354. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7355. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7356. echo "$as_me:$LINENO: checking for return type of signal handlers" >&5
  7357. echo $ECHO_N "checking for return type of signal handlers... $ECHO_C" >&6
  7358. for groff_declaration in \
  7359. 'extern "C" void (*signal (int, void (*)(int)))(int);' \
  7360. 'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
  7361. 'void (*signal ()) ();'
  7362. do
  7363. cat >conftest.$ac_ext <<_ACEOF
  7364. /* confdefs.h. */
  7365. _ACEOF
  7366. cat confdefs.h >>conftest.$ac_ext
  7367. cat >>conftest.$ac_ext <<_ACEOF
  7368. /* end confdefs.h. */
  7369. #include <sys/types.h>
  7370. #include <signal.h>
  7371. #ifdef signal
  7372. # undef signal
  7373. #endif
  7374. $groff_declaration
  7375. int
  7376. main ()
  7377. {
  7378. int i;
  7379. ;
  7380. return 0;
  7381. }
  7382. _ACEOF
  7383. rm -f conftest.$ac_objext
  7384. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7385. (eval $ac_compile) 2>conftest.er1
  7386. ac_status=$?
  7387. grep -v '^ *+' conftest.er1 >conftest.err
  7388. rm -f conftest.er1
  7389. cat conftest.err >&5
  7390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7391. (exit $ac_status); } &&
  7392. { ac_try='test -z "$ac_c_werror_flag"
  7393. || test ! -s conftest.err'
  7394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7395. (eval $ac_try) 2>&5
  7396. ac_status=$?
  7397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7398. (exit $ac_status); }; } &&
  7399. { ac_try='test -s conftest.$ac_objext'
  7400. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7401. (eval $ac_try) 2>&5
  7402. ac_status=$?
  7403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7404. (exit $ac_status); }; }; then
  7405. break
  7406. else
  7407. echo "$as_me: failed program was:" >&5
  7408. sed 's/^/| /' conftest.$ac_ext >&5
  7409. continue
  7410. fi
  7411. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7412. done
  7413. if test -n "$groff_declaration"; then
  7414. echo "$as_me:$LINENO: result: void" >&5
  7415. echo "${ECHO_T}void" >&6
  7416. cat >>confdefs.h <<\_ACEOF
  7417. #define RETSIGTYPE void
  7418. _ACEOF
  7419. else
  7420. echo "$as_me:$LINENO: result: int" >&5
  7421. echo "${ECHO_T}int" >&6
  7422. cat >>confdefs.h <<\_ACEOF
  7423. #define RETSIGTYPE int
  7424. _ACEOF
  7425. fi
  7426. echo "$as_me:$LINENO: checking struct exception" >&5
  7427. echo $ECHO_N "checking struct exception... $ECHO_C" >&6
  7428. cat >conftest.$ac_ext <<_ACEOF
  7429. /* confdefs.h. */
  7430. _ACEOF
  7431. cat confdefs.h >>conftest.$ac_ext
  7432. cat >>conftest.$ac_ext <<_ACEOF
  7433. /* end confdefs.h. */
  7434. #include <math.h>
  7435. int
  7436. main ()
  7437. {
  7438. struct exception e;
  7439. ;
  7440. return 0;
  7441. }
  7442. _ACEOF
  7443. rm -f conftest.$ac_objext
  7444. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7445. (eval $ac_compile) 2>conftest.er1
  7446. ac_status=$?
  7447. grep -v '^ *+' conftest.er1 >conftest.err
  7448. rm -f conftest.er1
  7449. cat conftest.err >&5
  7450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7451. (exit $ac_status); } &&
  7452. { ac_try='test -z "$ac_c_werror_flag"
  7453. || test ! -s conftest.err'
  7454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7455. (eval $ac_try) 2>&5
  7456. ac_status=$?
  7457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7458. (exit $ac_status); }; } &&
  7459. { ac_try='test -s conftest.$ac_objext'
  7460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7461. (eval $ac_try) 2>&5
  7462. ac_status=$?
  7463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7464. (exit $ac_status); }; }; then
  7465. echo "$as_me:$LINENO: result: yes" >&5
  7466. echo "${ECHO_T}yes" >&6
  7467. cat >>confdefs.h <<\_ACEOF
  7468. #define HAVE_STRUCT_EXCEPTION 1
  7469. _ACEOF
  7470. else
  7471. echo "$as_me: failed program was:" >&5
  7472. sed 's/^/| /' conftest.$ac_ext >&5
  7473. echo "$as_me:$LINENO: result: no" >&5
  7474. echo "${ECHO_T}no" >&6
  7475. fi
  7476. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7477. # checks for libraries
  7478. echo "$as_me:$LINENO: checking for main in -lc" >&5
  7479. echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
  7480. if test "${ac_cv_lib_c_main+set}" = set; then
  7481. echo $ECHO_N "(cached) $ECHO_C" >&6
  7482. else
  7483. ac_check_lib_save_LIBS=$LIBS
  7484. LIBS="-lc $LIBS"
  7485. cat >conftest.$ac_ext <<_ACEOF
  7486. /* confdefs.h. */
  7487. _ACEOF
  7488. cat confdefs.h >>conftest.$ac_ext
  7489. cat >>conftest.$ac_ext <<_ACEOF
  7490. /* end confdefs.h. */
  7491. int
  7492. main ()
  7493. {
  7494. main ();
  7495. ;
  7496. return 0;
  7497. }
  7498. _ACEOF
  7499. rm -f conftest.$ac_objext conftest$ac_exeext
  7500. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7501. (eval $ac_link) 2>conftest.er1
  7502. ac_status=$?
  7503. grep -v '^ *+' conftest.er1 >conftest.err
  7504. rm -f conftest.er1
  7505. cat conftest.err >&5
  7506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7507. (exit $ac_status); } &&
  7508. { ac_try='test -z "$ac_c_werror_flag"
  7509. || test ! -s conftest.err'
  7510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7511. (eval $ac_try) 2>&5
  7512. ac_status=$?
  7513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7514. (exit $ac_status); }; } &&
  7515. { ac_try='test -s conftest$ac_exeext'
  7516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7517. (eval $ac_try) 2>&5
  7518. ac_status=$?
  7519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7520. (exit $ac_status); }; }; then
  7521. ac_cv_lib_c_main=yes
  7522. else
  7523. echo "$as_me: failed program was:" >&5
  7524. sed 's/^/| /' conftest.$ac_ext >&5
  7525. ac_cv_lib_c_main=no
  7526. fi
  7527. rm -f conftest.err conftest.$ac_objext \
  7528. conftest$ac_exeext conftest.$ac_ext
  7529. LIBS=$ac_check_lib_save_LIBS
  7530. fi
  7531. echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
  7532. echo "${ECHO_T}$ac_cv_lib_c_main" >&6
  7533. if test $ac_cv_lib_c_main = yes; then
  7534. LIBC=-lc
  7535. fi
  7536. echo "$as_me:$LINENO: checking for sin in -lm" >&5
  7537. echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
  7538. if test "${ac_cv_lib_m_sin+set}" = set; then
  7539. echo $ECHO_N "(cached) $ECHO_C" >&6
  7540. else
  7541. ac_check_lib_save_LIBS=$LIBS
  7542. LIBS="-lm $LIBS"
  7543. cat >conftest.$ac_ext <<_ACEOF
  7544. /* confdefs.h. */
  7545. _ACEOF
  7546. cat confdefs.h >>conftest.$ac_ext
  7547. cat >>conftest.$ac_ext <<_ACEOF
  7548. /* end confdefs.h. */
  7549. /* Override any gcc2 internal prototype to avoid an error. */
  7550. #ifdef __cplusplus
  7551. extern "C"
  7552. #endif
  7553. /* We use char because int might match the return type of a gcc2
  7554. builtin and then its argument prototype would still apply. */
  7555. char sin ();
  7556. int
  7557. main ()
  7558. {
  7559. sin ();
  7560. ;
  7561. return 0;
  7562. }
  7563. _ACEOF
  7564. rm -f conftest.$ac_objext conftest$ac_exeext
  7565. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7566. (eval $ac_link) 2>conftest.er1
  7567. ac_status=$?
  7568. grep -v '^ *+' conftest.er1 >conftest.err
  7569. rm -f conftest.er1
  7570. cat conftest.err >&5
  7571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7572. (exit $ac_status); } &&
  7573. { ac_try='test -z "$ac_c_werror_flag"
  7574. || test ! -s conftest.err'
  7575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7576. (eval $ac_try) 2>&5
  7577. ac_status=$?
  7578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7579. (exit $ac_status); }; } &&
  7580. { ac_try='test -s conftest$ac_exeext'
  7581. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7582. (eval $ac_try) 2>&5
  7583. ac_status=$?
  7584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7585. (exit $ac_status); }; }; then
  7586. ac_cv_lib_m_sin=yes
  7587. else
  7588. echo "$as_me: failed program was:" >&5
  7589. sed 's/^/| /' conftest.$ac_ext >&5
  7590. ac_cv_lib_m_sin=no
  7591. fi
  7592. rm -f conftest.err conftest.$ac_objext \
  7593. conftest$ac_exeext conftest.$ac_ext
  7594. LIBS=$ac_check_lib_save_LIBS
  7595. fi
  7596. echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
  7597. echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
  7598. if test $ac_cv_lib_m_sin = yes; then
  7599. LIBM=-lm
  7600. fi
  7601. # checks for functions
  7602. for ac_header in stdlib.h unistd.h
  7603. do
  7604. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7605. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7606. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7607. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7608. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7609. echo $ECHO_N "(cached) $ECHO_C" >&6
  7610. fi
  7611. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7612. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7613. else
  7614. # Is the header compilable?
  7615. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7616. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7617. cat >conftest.$ac_ext <<_ACEOF
  7618. /* confdefs.h. */
  7619. _ACEOF
  7620. cat confdefs.h >>conftest.$ac_ext
  7621. cat >>conftest.$ac_ext <<_ACEOF
  7622. /* end confdefs.h. */
  7623. $ac_includes_default
  7624. #include <$ac_header>
  7625. _ACEOF
  7626. rm -f conftest.$ac_objext
  7627. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7628. (eval $ac_compile) 2>conftest.er1
  7629. ac_status=$?
  7630. grep -v '^ *+' conftest.er1 >conftest.err
  7631. rm -f conftest.er1
  7632. cat conftest.err >&5
  7633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7634. (exit $ac_status); } &&
  7635. { ac_try='test -z "$ac_c_werror_flag"
  7636. || test ! -s conftest.err'
  7637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7638. (eval $ac_try) 2>&5
  7639. ac_status=$?
  7640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7641. (exit $ac_status); }; } &&
  7642. { ac_try='test -s conftest.$ac_objext'
  7643. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7644. (eval $ac_try) 2>&5
  7645. ac_status=$?
  7646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7647. (exit $ac_status); }; }; then
  7648. ac_header_compiler=yes
  7649. else
  7650. echo "$as_me: failed program was:" >&5
  7651. sed 's/^/| /' conftest.$ac_ext >&5
  7652. ac_header_compiler=no
  7653. fi
  7654. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7655. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7656. echo "${ECHO_T}$ac_header_compiler" >&6
  7657. # Is the header present?
  7658. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7659. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7660. cat >conftest.$ac_ext <<_ACEOF
  7661. /* confdefs.h. */
  7662. _ACEOF
  7663. cat confdefs.h >>conftest.$ac_ext
  7664. cat >>conftest.$ac_ext <<_ACEOF
  7665. /* end confdefs.h. */
  7666. #include <$ac_header>
  7667. _ACEOF
  7668. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7669. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7670. ac_status=$?
  7671. grep -v '^ *+' conftest.er1 >conftest.err
  7672. rm -f conftest.er1
  7673. cat conftest.err >&5
  7674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7675. (exit $ac_status); } >/dev/null; then
  7676. if test -s conftest.err; then
  7677. ac_cpp_err=$ac_c_preproc_warn_flag
  7678. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7679. else
  7680. ac_cpp_err=
  7681. fi
  7682. else
  7683. ac_cpp_err=yes
  7684. fi
  7685. if test -z "$ac_cpp_err"; then
  7686. ac_header_preproc=yes
  7687. else
  7688. echo "$as_me: failed program was:" >&5
  7689. sed 's/^/| /' conftest.$ac_ext >&5
  7690. ac_header_preproc=no
  7691. fi
  7692. rm -f conftest.err conftest.$ac_ext
  7693. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7694. echo "${ECHO_T}$ac_header_preproc" >&6
  7695. # So? What about this header?
  7696. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7697. yes:no: )
  7698. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7699. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7700. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7701. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7702. ac_header_preproc=yes
  7703. ;;
  7704. no:yes:* )
  7705. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7706. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7707. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7708. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7709. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7710. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7711. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7712. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7713. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7714. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7715. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7716. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7717. (
  7718. cat <<\_ASBOX
  7719. ## ------------------------------------------ ##
  7720. ## Report this to the AC_PACKAGE_NAME lists. ##
  7721. ## ------------------------------------------ ##
  7722. _ASBOX
  7723. ) |
  7724. sed "s/^/$as_me: WARNING: /" >&2
  7725. ;;
  7726. esac
  7727. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7728. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7729. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7730. echo $ECHO_N "(cached) $ECHO_C" >&6
  7731. else
  7732. eval "$as_ac_Header=\$ac_header_preproc"
  7733. fi
  7734. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7735. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7736. fi
  7737. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7738. cat >>confdefs.h <<_ACEOF
  7739. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7740. _ACEOF
  7741. fi
  7742. done
  7743. for ac_func in getpagesize
  7744. do
  7745. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7746. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7747. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7748. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7749. echo $ECHO_N "(cached) $ECHO_C" >&6
  7750. else
  7751. cat >conftest.$ac_ext <<_ACEOF
  7752. /* confdefs.h. */
  7753. _ACEOF
  7754. cat confdefs.h >>conftest.$ac_ext
  7755. cat >>conftest.$ac_ext <<_ACEOF
  7756. /* end confdefs.h. */
  7757. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7758. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7759. #define $ac_func innocuous_$ac_func
  7760. /* System header to define __stub macros and hopefully few prototypes,
  7761. which can conflict with char $ac_func (); below.
  7762. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7763. <limits.h> exists even on freestanding compilers. */
  7764. #ifdef __STDC__
  7765. # include <limits.h>
  7766. #else
  7767. # include <assert.h>
  7768. #endif
  7769. #undef $ac_func
  7770. /* Override any gcc2 internal prototype to avoid an error. */
  7771. #ifdef __cplusplus
  7772. extern "C"
  7773. {
  7774. #endif
  7775. /* We use char because int might match the return type of a gcc2
  7776. builtin and then its argument prototype would still apply. */
  7777. char $ac_func ();
  7778. /* The GNU C library defines this for functions which it implements
  7779. to always fail with ENOSYS. Some functions are actually named
  7780. something starting with __ and the normal name is an alias. */
  7781. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7782. choke me
  7783. #else
  7784. char (*f) () = $ac_func;
  7785. #endif
  7786. #ifdef __cplusplus
  7787. }
  7788. #endif
  7789. int
  7790. main ()
  7791. {
  7792. return f != $ac_func;
  7793. ;
  7794. return 0;
  7795. }
  7796. _ACEOF
  7797. rm -f conftest.$ac_objext conftest$ac_exeext
  7798. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7799. (eval $ac_link) 2>conftest.er1
  7800. ac_status=$?
  7801. grep -v '^ *+' conftest.er1 >conftest.err
  7802. rm -f conftest.er1
  7803. cat conftest.err >&5
  7804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7805. (exit $ac_status); } &&
  7806. { ac_try='test -z "$ac_c_werror_flag"
  7807. || test ! -s conftest.err'
  7808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7809. (eval $ac_try) 2>&5
  7810. ac_status=$?
  7811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7812. (exit $ac_status); }; } &&
  7813. { ac_try='test -s conftest$ac_exeext'
  7814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7815. (eval $ac_try) 2>&5
  7816. ac_status=$?
  7817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7818. (exit $ac_status); }; }; then
  7819. eval "$as_ac_var=yes"
  7820. else
  7821. echo "$as_me: failed program was:" >&5
  7822. sed 's/^/| /' conftest.$ac_ext >&5
  7823. eval "$as_ac_var=no"
  7824. fi
  7825. rm -f conftest.err conftest.$ac_objext \
  7826. conftest$ac_exeext conftest.$ac_ext
  7827. fi
  7828. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7829. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7830. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7831. cat >>confdefs.h <<_ACEOF
  7832. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7833. _ACEOF
  7834. fi
  7835. done
  7836. echo "$as_me:$LINENO: checking for working mmap" >&5
  7837. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  7838. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7839. echo $ECHO_N "(cached) $ECHO_C" >&6
  7840. else
  7841. if test "$cross_compiling" = yes; then
  7842. ac_cv_func_mmap_fixed_mapped=no
  7843. else
  7844. cat >conftest.$ac_ext <<_ACEOF
  7845. /* confdefs.h. */
  7846. _ACEOF
  7847. cat confdefs.h >>conftest.$ac_ext
  7848. cat >>conftest.$ac_ext <<_ACEOF
  7849. /* end confdefs.h. */
  7850. $ac_includes_default
  7851. /* malloc might have been renamed as rpl_malloc. */
  7852. #undef malloc
  7853. /* Thanks to Mike Haertel and Jim Avera for this test.
  7854. Here is a matrix of mmap possibilities:
  7855. mmap private not fixed
  7856. mmap private fixed at somewhere currently unmapped
  7857. mmap private fixed at somewhere already mapped
  7858. mmap shared not fixed
  7859. mmap shared fixed at somewhere currently unmapped
  7860. mmap shared fixed at somewhere already mapped
  7861. For private mappings, we should verify that changes cannot be read()
  7862. back from the file, nor mmap's back from the file at a different
  7863. address. (There have been systems where private was not correctly
  7864. implemented like the infamous i386 svr4.0, and systems where the
  7865. VM page cache was not coherent with the file system buffer cache
  7866. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7867. For shared mappings, we should conversely verify that changes get
  7868. propagated back to all the places they're supposed to be.
  7869. Grep wants private fixed already mapped.
  7870. The main things grep needs to know about mmap are:
  7871. * does it exist and is it safe to write into the mmap'd area
  7872. * how to use it (BSD variants) */
  7873. #include <fcntl.h>
  7874. #include <sys/mman.h>
  7875. #if !STDC_HEADERS && !HAVE_STDLIB_H
  7876. char *malloc ();
  7877. #endif
  7878. /* This mess was copied from the GNU getpagesize.h. */
  7879. #if !HAVE_GETPAGESIZE
  7880. /* Assume that all systems that can run configure have sys/param.h. */
  7881. # if !HAVE_SYS_PARAM_H
  7882. # define HAVE_SYS_PARAM_H 1
  7883. # endif
  7884. # ifdef _SC_PAGESIZE
  7885. # define getpagesize() sysconf(_SC_PAGESIZE)
  7886. # else /* no _SC_PAGESIZE */
  7887. # if HAVE_SYS_PARAM_H
  7888. # include <sys/param.h>
  7889. # ifdef EXEC_PAGESIZE
  7890. # define getpagesize() EXEC_PAGESIZE
  7891. # else /* no EXEC_PAGESIZE */
  7892. # ifdef NBPG
  7893. # define getpagesize() NBPG * CLSIZE
  7894. # ifndef CLSIZE
  7895. # define CLSIZE 1
  7896. # endif /* no CLSIZE */
  7897. # else /* no NBPG */
  7898. # ifdef NBPC
  7899. # define getpagesize() NBPC
  7900. # else /* no NBPC */
  7901. # ifdef PAGESIZE
  7902. # define getpagesize() PAGESIZE
  7903. # endif /* PAGESIZE */
  7904. # endif /* no NBPC */
  7905. # endif /* no NBPG */
  7906. # endif /* no EXEC_PAGESIZE */
  7907. # else /* no HAVE_SYS_PARAM_H */
  7908. # define getpagesize() 8192 /* punt totally */
  7909. # endif /* no HAVE_SYS_PARAM_H */
  7910. # endif /* no _SC_PAGESIZE */
  7911. #endif /* no HAVE_GETPAGESIZE */
  7912. int
  7913. main ()
  7914. {
  7915. char *data, *data2, *data3;
  7916. int i, pagesize;
  7917. int fd;
  7918. pagesize = getpagesize ();
  7919. /* First, make a file with some known garbage in it. */
  7920. data = (char *) malloc (pagesize);
  7921. if (!data)
  7922. exit (1);
  7923. for (i = 0; i < pagesize; ++i)
  7924. *(data + i) = rand ();
  7925. umask (0);
  7926. fd = creat ("conftest.mmap", 0600);
  7927. if (fd < 0)
  7928. exit (1);
  7929. if (write (fd, data, pagesize) != pagesize)
  7930. exit (1);
  7931. close (fd);
  7932. /* Next, try to mmap the file at a fixed address which already has
  7933. something else allocated at it. If we can, also make sure that
  7934. we see the same garbage. */
  7935. fd = open ("conftest.mmap", O_RDWR);
  7936. if (fd < 0)
  7937. exit (1);
  7938. data2 = (char *) malloc (2 * pagesize);
  7939. if (!data2)
  7940. exit (1);
  7941. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7942. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7943. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7944. exit (1);
  7945. for (i = 0; i < pagesize; ++i)
  7946. if (*(data + i) != *(data2 + i))
  7947. exit (1);
  7948. /* Finally, make sure that changes to the mapped area do not
  7949. percolate back to the file as seen by read(). (This is a bug on
  7950. some variants of i386 svr4.0.) */
  7951. for (i = 0; i < pagesize; ++i)
  7952. *(data2 + i) = *(data2 + i) + 1;
  7953. data3 = (char *) malloc (pagesize);
  7954. if (!data3)
  7955. exit (1);
  7956. if (read (fd, data3, pagesize) != pagesize)
  7957. exit (1);
  7958. for (i = 0; i < pagesize; ++i)
  7959. if (*(data + i) != *(data3 + i))
  7960. exit (1);
  7961. close (fd);
  7962. exit (0);
  7963. }
  7964. _ACEOF
  7965. rm -f conftest$ac_exeext
  7966. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7967. (eval $ac_link) 2>&5
  7968. ac_status=$?
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7972. (eval $ac_try) 2>&5
  7973. ac_status=$?
  7974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7975. (exit $ac_status); }; }; then
  7976. ac_cv_func_mmap_fixed_mapped=yes
  7977. else
  7978. echo "$as_me: program exited with status $ac_status" >&5
  7979. echo "$as_me: failed program was:" >&5
  7980. sed 's/^/| /' conftest.$ac_ext >&5
  7981. ( exit $ac_status )
  7982. ac_cv_func_mmap_fixed_mapped=no
  7983. fi
  7984. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7985. fi
  7986. fi
  7987. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7988. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  7989. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7990. cat >>confdefs.h <<\_ACEOF
  7991. #define HAVE_MMAP 1
  7992. _ACEOF
  7993. fi
  7994. rm -f conftest.mmap
  7995. saved_libs="$LIBS"
  7996. LIBS="$LIBS $LIBC $LIBM"
  7997. for ac_func in fmod getcwd putenv snprintf strcasecmp \
  7998. strerror strncasecmp strtol
  7999. do
  8000. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8001. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8002. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8003. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8004. echo $ECHO_N "(cached) $ECHO_C" >&6
  8005. else
  8006. cat >conftest.$ac_ext <<_ACEOF
  8007. /* confdefs.h. */
  8008. _ACEOF
  8009. cat confdefs.h >>conftest.$ac_ext
  8010. cat >>conftest.$ac_ext <<_ACEOF
  8011. /* end confdefs.h. */
  8012. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8013. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8014. #define $ac_func innocuous_$ac_func
  8015. /* System header to define __stub macros and hopefully few prototypes,
  8016. which can conflict with char $ac_func (); below.
  8017. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8018. <limits.h> exists even on freestanding compilers. */
  8019. #ifdef __STDC__
  8020. # include <limits.h>
  8021. #else
  8022. # include <assert.h>
  8023. #endif
  8024. #undef $ac_func
  8025. /* Override any gcc2 internal prototype to avoid an error. */
  8026. #ifdef __cplusplus
  8027. extern "C"
  8028. {
  8029. #endif
  8030. /* We use char because int might match the return type of a gcc2
  8031. builtin and then its argument prototype would still apply. */
  8032. char $ac_func ();
  8033. /* The GNU C library defines this for functions which it implements
  8034. to always fail with ENOSYS. Some functions are actually named
  8035. something starting with __ and the normal name is an alias. */
  8036. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8037. choke me
  8038. #else
  8039. char (*f) () = $ac_func;
  8040. #endif
  8041. #ifdef __cplusplus
  8042. }
  8043. #endif
  8044. int
  8045. main ()
  8046. {
  8047. return f != $ac_func;
  8048. ;
  8049. return 0;
  8050. }
  8051. _ACEOF
  8052. rm -f conftest.$ac_objext conftest$ac_exeext
  8053. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8054. (eval $ac_link) 2>conftest.er1
  8055. ac_status=$?
  8056. grep -v '^ *+' conftest.er1 >conftest.err
  8057. rm -f conftest.er1
  8058. cat conftest.err >&5
  8059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8060. (exit $ac_status); } &&
  8061. { ac_try='test -z "$ac_c_werror_flag"
  8062. || test ! -s conftest.err'
  8063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8064. (eval $ac_try) 2>&5
  8065. ac_status=$?
  8066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8067. (exit $ac_status); }; } &&
  8068. { ac_try='test -s conftest$ac_exeext'
  8069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8070. (eval $ac_try) 2>&5
  8071. ac_status=$?
  8072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8073. (exit $ac_status); }; }; then
  8074. eval "$as_ac_var=yes"
  8075. else
  8076. echo "$as_me: failed program was:" >&5
  8077. sed 's/^/| /' conftest.$ac_ext >&5
  8078. eval "$as_ac_var=no"
  8079. fi
  8080. rm -f conftest.err conftest.$ac_objext \
  8081. conftest$ac_exeext conftest.$ac_ext
  8082. fi
  8083. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8084. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8085. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8086. cat >>confdefs.h <<_ACEOF
  8087. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8088. _ACEOF
  8089. else
  8090. case $LIBOBJS in
  8091. "$ac_func.$ac_objext" | \
  8092. *" $ac_func.$ac_objext" | \
  8093. "$ac_func.$ac_objext "* | \
  8094. *" $ac_func.$ac_objext "* ) ;;
  8095. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
  8096. esac
  8097. fi
  8098. done
  8099. # vsnprintf is in the same source file as snprintf
  8100. for ac_func in vsnprintf
  8101. do
  8102. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8103. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8104. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8105. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8106. echo $ECHO_N "(cached) $ECHO_C" >&6
  8107. else
  8108. cat >conftest.$ac_ext <<_ACEOF
  8109. /* confdefs.h. */
  8110. _ACEOF
  8111. cat confdefs.h >>conftest.$ac_ext
  8112. cat >>conftest.$ac_ext <<_ACEOF
  8113. /* end confdefs.h. */
  8114. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8115. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8116. #define $ac_func innocuous_$ac_func
  8117. /* System header to define __stub macros and hopefully few prototypes,
  8118. which can conflict with char $ac_func (); below.
  8119. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8120. <limits.h> exists even on freestanding compilers. */
  8121. #ifdef __STDC__
  8122. # include <limits.h>
  8123. #else
  8124. # include <assert.h>
  8125. #endif
  8126. #undef $ac_func
  8127. /* Override any gcc2 internal prototype to avoid an error. */
  8128. #ifdef __cplusplus
  8129. extern "C"
  8130. {
  8131. #endif
  8132. /* We use char because int might match the return type of a gcc2
  8133. builtin and then its argument prototype would still apply. */
  8134. char $ac_func ();
  8135. /* The GNU C library defines this for functions which it implements
  8136. to always fail with ENOSYS. Some functions are actually named
  8137. something starting with __ and the normal name is an alias. */
  8138. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8139. choke me
  8140. #else
  8141. char (*f) () = $ac_func;
  8142. #endif
  8143. #ifdef __cplusplus
  8144. }
  8145. #endif
  8146. int
  8147. main ()
  8148. {
  8149. return f != $ac_func;
  8150. ;
  8151. return 0;
  8152. }
  8153. _ACEOF
  8154. rm -f conftest.$ac_objext conftest$ac_exeext
  8155. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8156. (eval $ac_link) 2>conftest.er1
  8157. ac_status=$?
  8158. grep -v '^ *+' conftest.er1 >conftest.err
  8159. rm -f conftest.er1
  8160. cat conftest.err >&5
  8161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8162. (exit $ac_status); } &&
  8163. { ac_try='test -z "$ac_c_werror_flag"
  8164. || test ! -s conftest.err'
  8165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8166. (eval $ac_try) 2>&5
  8167. ac_status=$?
  8168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8169. (exit $ac_status); }; } &&
  8170. { ac_try='test -s conftest$ac_exeext'
  8171. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8172. (eval $ac_try) 2>&5
  8173. ac_status=$?
  8174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8175. (exit $ac_status); }; }; then
  8176. eval "$as_ac_var=yes"
  8177. else
  8178. echo "$as_me: failed program was:" >&5
  8179. sed 's/^/| /' conftest.$ac_ext >&5
  8180. eval "$as_ac_var=no"
  8181. fi
  8182. rm -f conftest.err conftest.$ac_objext \
  8183. conftest$ac_exeext conftest.$ac_ext
  8184. fi
  8185. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8186. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8187. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8188. cat >>confdefs.h <<_ACEOF
  8189. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8190. _ACEOF
  8191. else
  8192. case $LIBOBJS in
  8193. "snprintf.$ac_objext" | \
  8194. *" snprintf.$ac_objext" | \
  8195. "snprintf.$ac_objext "* | \
  8196. *" snprintf.$ac_objext "* ) ;;
  8197. *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
  8198. esac
  8199. fi
  8200. done
  8201. LIBS="$saved_libs"
  8202. for ac_func in gettimeofday isatty kill rename setlocale strsep
  8203. do
  8204. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8205. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8206. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8207. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8208. echo $ECHO_N "(cached) $ECHO_C" >&6
  8209. else
  8210. cat >conftest.$ac_ext <<_ACEOF
  8211. /* confdefs.h. */
  8212. _ACEOF
  8213. cat confdefs.h >>conftest.$ac_ext
  8214. cat >>conftest.$ac_ext <<_ACEOF
  8215. /* end confdefs.h. */
  8216. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8217. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8218. #define $ac_func innocuous_$ac_func
  8219. /* System header to define __stub macros and hopefully few prototypes,
  8220. which can conflict with char $ac_func (); below.
  8221. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8222. <limits.h> exists even on freestanding compilers. */
  8223. #ifdef __STDC__
  8224. # include <limits.h>
  8225. #else
  8226. # include <assert.h>
  8227. #endif
  8228. #undef $ac_func
  8229. /* Override any gcc2 internal prototype to avoid an error. */
  8230. #ifdef __cplusplus
  8231. extern "C"
  8232. {
  8233. #endif
  8234. /* We use char because int might match the return type of a gcc2
  8235. builtin and then its argument prototype would still apply. */
  8236. char $ac_func ();
  8237. /* The GNU C library defines this for functions which it implements
  8238. to always fail with ENOSYS. Some functions are actually named
  8239. something starting with __ and the normal name is an alias. */
  8240. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8241. choke me
  8242. #else
  8243. char (*f) () = $ac_func;
  8244. #endif
  8245. #ifdef __cplusplus
  8246. }
  8247. #endif
  8248. int
  8249. main ()
  8250. {
  8251. return f != $ac_func;
  8252. ;
  8253. return 0;
  8254. }
  8255. _ACEOF
  8256. rm -f conftest.$ac_objext conftest$ac_exeext
  8257. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8258. (eval $ac_link) 2>conftest.er1
  8259. ac_status=$?
  8260. grep -v '^ *+' conftest.er1 >conftest.err
  8261. rm -f conftest.er1
  8262. cat conftest.err >&5
  8263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8264. (exit $ac_status); } &&
  8265. { ac_try='test -z "$ac_c_werror_flag"
  8266. || test ! -s conftest.err'
  8267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8268. (eval $ac_try) 2>&5
  8269. ac_status=$?
  8270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8271. (exit $ac_status); }; } &&
  8272. { ac_try='test -s conftest$ac_exeext'
  8273. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8274. (eval $ac_try) 2>&5
  8275. ac_status=$?
  8276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8277. (exit $ac_status); }; }; then
  8278. eval "$as_ac_var=yes"
  8279. else
  8280. echo "$as_me: failed program was:" >&5
  8281. sed 's/^/| /' conftest.$ac_ext >&5
  8282. eval "$as_ac_var=no"
  8283. fi
  8284. rm -f conftest.err conftest.$ac_objext \
  8285. conftest$ac_exeext conftest.$ac_ext
  8286. fi
  8287. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8288. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8289. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8290. cat >>confdefs.h <<_ACEOF
  8291. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8292. _ACEOF
  8293. fi
  8294. done
  8295. echo "$as_me:$LINENO: checking for mkstemp" >&5
  8296. echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
  8297. ac_ext=cc
  8298. ac_cpp='$CXXCPP $CPPFLAGS'
  8299. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8300. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8301. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8302. cat >conftest.$ac_ext <<_ACEOF
  8303. /* confdefs.h. */
  8304. _ACEOF
  8305. cat confdefs.h >>conftest.$ac_ext
  8306. cat >>conftest.$ac_ext <<_ACEOF
  8307. /* end confdefs.h. */
  8308. #include <stdlib.h>
  8309. #include <unistd.h>
  8310. int (*f) (char *);
  8311. int
  8312. main ()
  8313. {
  8314. f = mkstemp;
  8315. ;
  8316. return 0;
  8317. }
  8318. _ACEOF
  8319. rm -f conftest.$ac_objext conftest$ac_exeext
  8320. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8321. (eval $ac_link) 2>conftest.er1
  8322. ac_status=$?
  8323. grep -v '^ *+' conftest.er1 >conftest.err
  8324. rm -f conftest.er1
  8325. cat conftest.err >&5
  8326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8327. (exit $ac_status); } &&
  8328. { ac_try='test -z "$ac_cxx_werror_flag"
  8329. || test ! -s conftest.err'
  8330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8331. (eval $ac_try) 2>&5
  8332. ac_status=$?
  8333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8334. (exit $ac_status); }; } &&
  8335. { ac_try='test -s conftest$ac_exeext'
  8336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8337. (eval $ac_try) 2>&5
  8338. ac_status=$?
  8339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8340. (exit $ac_status); }; }; then
  8341. echo "$as_me:$LINENO: result: yes" >&5
  8342. echo "${ECHO_T}yes" >&6
  8343. cat >>confdefs.h <<\_ACEOF
  8344. #define HAVE_MKSTEMP 1
  8345. _ACEOF
  8346. else
  8347. echo "$as_me: failed program was:" >&5
  8348. sed 's/^/| /' conftest.$ac_ext >&5
  8349. echo "$as_me:$LINENO: result: no" >&5
  8350. echo "${ECHO_T}no" >&6
  8351. case $LIBOBJS in
  8352. "mkstemp.$ac_objext" | \
  8353. *" mkstemp.$ac_objext" | \
  8354. "mkstemp.$ac_objext "* | \
  8355. *" mkstemp.$ac_objext "* ) ;;
  8356. *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
  8357. esac
  8358. fi
  8359. rm -f conftest.err conftest.$ac_objext \
  8360. conftest$ac_exeext conftest.$ac_ext
  8361. ac_ext=c
  8362. ac_cpp='$CPP $CPPFLAGS'
  8363. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8364. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8365. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8366. echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
  8367. echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
  8368. if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
  8369. echo $ECHO_N "(cached) $ECHO_C" >&6
  8370. else
  8371. cat >conftest.$ac_ext <<_ACEOF
  8372. /* confdefs.h. */
  8373. _ACEOF
  8374. cat confdefs.h >>conftest.$ac_ext
  8375. cat >>conftest.$ac_ext <<_ACEOF
  8376. /* end confdefs.h. */
  8377. $ac_includes_default
  8378. int
  8379. main ()
  8380. {
  8381. #ifndef sys_siglist
  8382. char *p = (char *) sys_siglist;
  8383. #endif
  8384. ;
  8385. return 0;
  8386. }
  8387. _ACEOF
  8388. rm -f conftest.$ac_objext
  8389. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8390. (eval $ac_compile) 2>conftest.er1
  8391. ac_status=$?
  8392. grep -v '^ *+' conftest.er1 >conftest.err
  8393. rm -f conftest.er1
  8394. cat conftest.err >&5
  8395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8396. (exit $ac_status); } &&
  8397. { ac_try='test -z "$ac_c_werror_flag"
  8398. || test ! -s conftest.err'
  8399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8400. (eval $ac_try) 2>&5
  8401. ac_status=$?
  8402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8403. (exit $ac_status); }; } &&
  8404. { ac_try='test -s conftest.$ac_objext'
  8405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8406. (eval $ac_try) 2>&5
  8407. ac_status=$?
  8408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8409. (exit $ac_status); }; }; then
  8410. ac_cv_have_decl_sys_siglist=yes
  8411. else
  8412. echo "$as_me: failed program was:" >&5
  8413. sed 's/^/| /' conftest.$ac_ext >&5
  8414. ac_cv_have_decl_sys_siglist=no
  8415. fi
  8416. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8417. fi
  8418. echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
  8419. echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
  8420. if test $ac_cv_have_decl_sys_siglist = yes; then
  8421. cat >>confdefs.h <<_ACEOF
  8422. #define HAVE_DECL_SYS_SIGLIST 1
  8423. _ACEOF
  8424. else
  8425. cat >>confdefs.h <<_ACEOF
  8426. #define HAVE_DECL_SYS_SIGLIST 0
  8427. _ACEOF
  8428. fi
  8429. # checks for compiler characteristics
  8430. ac_ext=cc
  8431. ac_cpp='$CXXCPP $CPPFLAGS'
  8432. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8433. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8434. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8435. echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
  8436. echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
  8437. cat >conftest.$ac_ext <<_ACEOF
  8438. /* confdefs.h. */
  8439. _ACEOF
  8440. cat confdefs.h >>conftest.$ac_ext
  8441. cat >>conftest.$ac_ext <<_ACEOF
  8442. /* end confdefs.h. */
  8443. int
  8444. main ()
  8445. {
  8446. char *p = new char[5];
  8447. delete [] p;
  8448. ;
  8449. return 0;
  8450. }
  8451. _ACEOF
  8452. rm -f conftest.$ac_objext
  8453. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8454. (eval $ac_compile) 2>conftest.er1
  8455. ac_status=$?
  8456. grep -v '^ *+' conftest.er1 >conftest.err
  8457. rm -f conftest.er1
  8458. cat conftest.err >&5
  8459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8460. (exit $ac_status); } &&
  8461. { ac_try='test -z "$ac_cxx_werror_flag"
  8462. || test ! -s conftest.err'
  8463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8464. (eval $ac_try) 2>&5
  8465. ac_status=$?
  8466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8467. (exit $ac_status); }; } &&
  8468. { ac_try='test -s conftest.$ac_objext'
  8469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8470. (eval $ac_try) 2>&5
  8471. ac_status=$?
  8472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8473. (exit $ac_status); }; }; then
  8474. echo "$as_me:$LINENO: result: yes" >&5
  8475. echo "${ECHO_T}yes" >&6
  8476. else
  8477. echo "$as_me: failed program was:" >&5
  8478. sed 's/^/| /' conftest.$ac_ext >&5
  8479. echo "$as_me:$LINENO: result: no" >&5
  8480. echo "${ECHO_T}no" >&6
  8481. cat >>confdefs.h <<\_ACEOF
  8482. #define ARRAY_DELETE_NEEDS_SIZE 1
  8483. _ACEOF
  8484. fi
  8485. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8486. ac_ext=c
  8487. ac_cpp='$CPP $CPPFLAGS'
  8488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8491. ac_ext=cc
  8492. ac_cpp='$CXXCPP $CPPFLAGS'
  8493. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8494. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8495. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8496. echo "$as_me:$LINENO: checking traditional preprocessor" >&5
  8497. echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
  8498. cat >conftest.$ac_ext <<_ACEOF
  8499. /* confdefs.h. */
  8500. _ACEOF
  8501. cat confdefs.h >>conftest.$ac_ext
  8502. cat >>conftest.$ac_ext <<_ACEOF
  8503. /* end confdefs.h. */
  8504. #define name2(a, b) a/**/b
  8505. int
  8506. main ()
  8507. {
  8508. int name2(foo, bar);
  8509. ;
  8510. return 0;
  8511. }
  8512. _ACEOF
  8513. rm -f conftest.$ac_objext
  8514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8515. (eval $ac_compile) 2>conftest.er1
  8516. ac_status=$?
  8517. grep -v '^ *+' conftest.er1 >conftest.err
  8518. rm -f conftest.er1
  8519. cat conftest.err >&5
  8520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8521. (exit $ac_status); } &&
  8522. { ac_try='test -z "$ac_cxx_werror_flag"
  8523. || test ! -s conftest.err'
  8524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8525. (eval $ac_try) 2>&5
  8526. ac_status=$?
  8527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8528. (exit $ac_status); }; } &&
  8529. { ac_try='test -s conftest.$ac_objext'
  8530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8531. (eval $ac_try) 2>&5
  8532. ac_status=$?
  8533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8534. (exit $ac_status); }; }; then
  8535. echo "$as_me:$LINENO: result: yes" >&5
  8536. echo "${ECHO_T}yes" >&6
  8537. cat >>confdefs.h <<\_ACEOF
  8538. #define TRADITIONAL_CPP 1
  8539. _ACEOF
  8540. else
  8541. echo "$as_me: failed program was:" >&5
  8542. sed 's/^/| /' conftest.$ac_ext >&5
  8543. echo "$as_me:$LINENO: result: no" >&5
  8544. echo "${ECHO_T}no" >&6
  8545. fi
  8546. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8547. ac_ext=c
  8548. ac_cpp='$CPP $CPPFLAGS'
  8549. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8550. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8551. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8552. # checks for operating system services
  8553. echo "$as_me:$LINENO: checking w_coredump" >&5
  8554. echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
  8555. if test "$cross_compiling" = yes; then
  8556. echo "$as_me:$LINENO: result: no" >&5
  8557. echo "${ECHO_T}no" >&6
  8558. else
  8559. cat >conftest.$ac_ext <<_ACEOF
  8560. /* confdefs.h. */
  8561. _ACEOF
  8562. cat confdefs.h >>conftest.$ac_ext
  8563. cat >>conftest.$ac_ext <<_ACEOF
  8564. /* end confdefs.h. */
  8565. #include <sys/types.h>
  8566. #include <sys/wait.h>
  8567. int
  8568. main ()
  8569. {
  8570. main()
  8571. {
  8572. #ifdef WCOREFLAG
  8573. exit(1);
  8574. #else
  8575. int i = 0;
  8576. ((union wait *)&i)->w_coredump = 1;
  8577. exit(i != 0200);
  8578. #endif
  8579. }
  8580. ;
  8581. return 0;
  8582. }
  8583. _ACEOF
  8584. rm -f conftest$ac_exeext
  8585. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8586. (eval $ac_link) 2>&5
  8587. ac_status=$?
  8588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8589. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8591. (eval $ac_try) 2>&5
  8592. ac_status=$?
  8593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8594. (exit $ac_status); }; }; then
  8595. echo "$as_me:$LINENO: result: yes" >&5
  8596. echo "${ECHO_T}yes" >&6
  8597. cat >>confdefs.h <<\_ACEOF
  8598. #define WCOREFLAG 0200
  8599. _ACEOF
  8600. else
  8601. echo "$as_me: program exited with status $ac_status" >&5
  8602. echo "$as_me: failed program was:" >&5
  8603. sed 's/^/| /' conftest.$ac_ext >&5
  8604. ( exit $ac_status )
  8605. echo "$as_me:$LINENO: result: no" >&5
  8606. echo "${ECHO_T}no" >&6
  8607. fi
  8608. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8609. fi
  8610. # other random stuff
  8611. echo "$as_me:$LINENO: checking default value for grops -b option" >&5
  8612. echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
  8613. test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
  8614. echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
  8615. echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
  8616. echo "$as_me:$LINENO: checking default paper size" >&5
  8617. echo $ECHO_N "checking default paper size... $ECHO_C" >&6
  8618. groff_prefix=$prefix
  8619. test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
  8620. if test -z "$PAGE"; then
  8621. descfile=
  8622. if test -r $groff_prefix/share/groff/font/devps/DESC; then
  8623. descfile=$groff_prefix/share/groff/font/devps/DESC
  8624. elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
  8625. descfile=$groff_prefix/lib/groff/font/devps/DESC
  8626. else
  8627. for f in $groff_prefix/share/groff/*/font/devps/DESC; do
  8628. if test -r $f; then
  8629. descfile=$f
  8630. break
  8631. fi
  8632. done
  8633. fi
  8634. if test -n "$descfile"; then
  8635. if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
  8636. PAGE=A4
  8637. elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
  8638. PAGE=A4
  8639. fi
  8640. fi
  8641. fi
  8642. if test -z "$PAGE"; then
  8643. dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
  8644. /etc/resolv.conf 2>/dev/null`
  8645. if test -z "$dom"; then
  8646. dom=`(domainname) 2>/dev/null | tr -d '+'`
  8647. if test -z "$dom" \
  8648. || test "$dom" = '(none)'; then
  8649. dom=`(hostname) 2>/dev/null | grep '\.'`
  8650. fi
  8651. fi
  8652. # If the top-level domain is two letters and it's not `us' or `ca'
  8653. # then they probably use A4 paper.
  8654. case "$dom" in
  8655. *.[Uu][Ss]|*.[Cc][Aa])
  8656. ;;
  8657. *.[A-Za-z][A-Za-z])
  8658. PAGE=A4 ;;
  8659. esac
  8660. fi
  8661. test -n "$PAGE" || PAGE=letter
  8662. if test "x$PAGE" = "xA4"; then
  8663. cat >>confdefs.h <<\_ACEOF
  8664. #define PAGEA4 1
  8665. _ACEOF
  8666. fi
  8667. echo "$as_me:$LINENO: result: $PAGE" >&5
  8668. echo "${ECHO_T}$PAGE" >&6
  8669. echo "$as_me:$LINENO: checking for existing troff installation" >&5
  8670. echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
  8671. if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
  8672. echo "$as_me:$LINENO: result: yes" >&5
  8673. echo "${ECHO_T}yes" >&6
  8674. g=g
  8675. else
  8676. echo "$as_me:$LINENO: result: no" >&5
  8677. echo "${ECHO_T}no" >&6
  8678. g=
  8679. fi
  8680. echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
  8681. echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
  8682. sys_tmac_prefix=
  8683. sys_tmac_file_prefix=
  8684. for d in /usr/share/lib/tmac /usr/lib/tmac; do
  8685. for t in "" tmac.; do
  8686. for m in an s m; do
  8687. f=$d/$t$m
  8688. if test -z "$sys_tmac_prefix" \
  8689. && test -f $f \
  8690. && grep '^\.if' $f >/dev/null 2>&1; then
  8691. sys_tmac_prefix=$d/$t
  8692. sys_tmac_file_prefix=$t
  8693. fi
  8694. done
  8695. done
  8696. done
  8697. echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
  8698. echo "${ECHO_T}$sys_tmac_prefix" >&6
  8699. echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
  8700. echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
  8701. tmac_wrap=
  8702. if test "x$sys_tmac_file_prefix" = "xtmac."; then
  8703. for f in $sys_tmac_prefix*; do
  8704. suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
  8705. case "$suff" in
  8706. e)
  8707. ;;
  8708. *)
  8709. grep "Copyright.*Free Software Foundation" $f >/dev/null \
  8710. || tmac_wrap="$tmac_wrap $suff" ;;
  8711. esac
  8712. done
  8713. elif test -n "$sys_tmac_prefix"; then
  8714. files=`echo $sys_tmac_prefix*`
  8715. grep "\\.so" $files >conftest.sol
  8716. for f in $files; do
  8717. case "$f" in
  8718. ${sys_tmac_prefix}e)
  8719. ;;
  8720. *.me)
  8721. ;;
  8722. */ms.*)
  8723. ;;
  8724. *)
  8725. b=`basename $f`
  8726. if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
  8727. || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
  8728. :
  8729. else
  8730. suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
  8731. case "$suff" in
  8732. tmac.*)
  8733. ;;
  8734. *)
  8735. tmac_wrap="$tmac_wrap $suff" ;;
  8736. esac
  8737. fi
  8738. esac
  8739. done
  8740. rm -f conftest.sol
  8741. fi
  8742. echo "$as_me:$LINENO: result: $tmac_wrap" >&5
  8743. echo "${ECHO_T}$tmac_wrap" >&6
  8744. echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
  8745. echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
  8746. cp ${srcdir}/src/include/nonposix.h conftest.h
  8747. cat >conftest.$ac_ext <<_ACEOF
  8748. /* confdefs.h. */
  8749. _ACEOF
  8750. cat confdefs.h >>conftest.$ac_ext
  8751. cat >>conftest.$ac_ext <<_ACEOF
  8752. /* end confdefs.h. */
  8753. #include <ctype.h>
  8754. #include "conftest.h"
  8755. int
  8756. main ()
  8757. {
  8758. #if PATH_SEP_CHAR == ';'
  8759. make an error "Path separator is ';'"
  8760. #endif
  8761. ;
  8762. return 0;
  8763. }
  8764. _ACEOF
  8765. rm -f conftest.$ac_objext
  8766. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8767. (eval $ac_compile) 2>conftest.er1
  8768. ac_status=$?
  8769. grep -v '^ *+' conftest.er1 >conftest.err
  8770. rm -f conftest.er1
  8771. cat conftest.err >&5
  8772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8773. (exit $ac_status); } &&
  8774. { ac_try='test -z "$ac_c_werror_flag"
  8775. || test ! -s conftest.err'
  8776. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8777. (eval $ac_try) 2>&5
  8778. ac_status=$?
  8779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8780. (exit $ac_status); }; } &&
  8781. { ac_try='test -s conftest.$ac_objext'
  8782. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8783. (eval $ac_try) 2>&5
  8784. ac_status=$?
  8785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8786. (exit $ac_status); }; }; then
  8787. GROFF_PATH_SEPARATOR=":"
  8788. else
  8789. echo "$as_me: failed program was:" >&5
  8790. sed 's/^/| /' conftest.$ac_ext >&5
  8791. GROFF_PATH_SEPARATOR=";"
  8792. fi
  8793. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8794. echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
  8795. echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
  8796. # Check whether --with-alt-gs or --without-alt-gs was given.
  8797. if test "${with_alt_gs+set}" = set; then
  8798. withval="$with_alt_gs"
  8799. ALT_GHOSTSCRIPT_PROGS="$withval"
  8800. else
  8801. ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
  8802. fi;
  8803. # Check whether --with-gs or --without-gs was given.
  8804. if test "${with_gs+set}" = set; then
  8805. withval="$with_gs"
  8806. GHOSTSCRIPT=$withval
  8807. else
  8808. if test -n "$ac_tool_prefix"; then
  8809. for ac_prog in $ALT_GHOSTSCRIPT_PROGS
  8810. do
  8811. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8812. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8813. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8814. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8815. if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
  8816. echo $ECHO_N "(cached) $ECHO_C" >&6
  8817. else
  8818. if test -n "$GHOSTSCRIPT"; then
  8819. ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
  8820. else
  8821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8822. for as_dir in $PATH
  8823. do
  8824. IFS=$as_save_IFS
  8825. test -z "$as_dir" && as_dir=.
  8826. for ac_exec_ext in '' $ac_executable_extensions; do
  8827. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8828. ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
  8829. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8830. break 2
  8831. fi
  8832. done
  8833. done
  8834. fi
  8835. fi
  8836. GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
  8837. if test -n "$GHOSTSCRIPT"; then
  8838. echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
  8839. echo "${ECHO_T}$GHOSTSCRIPT" >&6
  8840. else
  8841. echo "$as_me:$LINENO: result: no" >&5
  8842. echo "${ECHO_T}no" >&6
  8843. fi
  8844. test -n "$GHOSTSCRIPT" && break
  8845. done
  8846. fi
  8847. if test -z "$GHOSTSCRIPT"; then
  8848. ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
  8849. for ac_prog in $ALT_GHOSTSCRIPT_PROGS
  8850. do
  8851. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8852. set dummy $ac_prog; ac_word=$2
  8853. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8854. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8855. if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
  8856. echo $ECHO_N "(cached) $ECHO_C" >&6
  8857. else
  8858. if test -n "$ac_ct_GHOSTSCRIPT"; then
  8859. ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
  8860. else
  8861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8862. for as_dir in $PATH
  8863. do
  8864. IFS=$as_save_IFS
  8865. test -z "$as_dir" && as_dir=.
  8866. for ac_exec_ext in '' $ac_executable_extensions; do
  8867. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8868. ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
  8869. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8870. break 2
  8871. fi
  8872. done
  8873. done
  8874. fi
  8875. fi
  8876. ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
  8877. if test -n "$ac_ct_GHOSTSCRIPT"; then
  8878. echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
  8879. echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6
  8880. else
  8881. echo "$as_me:$LINENO: result: no" >&5
  8882. echo "${ECHO_T}no" >&6
  8883. fi
  8884. test -n "$ac_ct_GHOSTSCRIPT" && break
  8885. done
  8886. if test "x$ac_ct_GHOSTSCRIPT" = x; then
  8887. GHOSTSCRIPT="missing"
  8888. else
  8889. if test "$build" != "$host"; then
  8890. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8891. whose name does not start with the host triplet. If you think this
  8892. configuration is useful to you, please write to autoconf@gnu.org." >&5
  8893. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8894. whose name does not start with the host triplet. If you think this
  8895. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  8896. fi
  8897. GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
  8898. fi
  8899. fi
  8900. fi;
  8901. test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
  8902. make_html=html
  8903. make_install_html=install_html
  8904. missing=
  8905. # Extract the first word of "pnmcut", so it can be a program name with args.
  8906. set dummy pnmcut; ac_word=$2
  8907. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8908. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8909. if test "${ac_cv_prog_pnmcut+set}" = set; then
  8910. echo $ECHO_N "(cached) $ECHO_C" >&6
  8911. else
  8912. if test -n "$pnmcut"; then
  8913. ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
  8914. else
  8915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8916. for as_dir in $PATH
  8917. do
  8918. IFS=$as_save_IFS
  8919. test -z "$as_dir" && as_dir=.
  8920. for ac_exec_ext in '' $ac_executable_extensions; do
  8921. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8922. ac_cv_prog_pnmcut="found"
  8923. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8924. break 2
  8925. fi
  8926. done
  8927. done
  8928. test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
  8929. fi
  8930. fi
  8931. pnmcut=$ac_cv_prog_pnmcut
  8932. if test -n "$pnmcut"; then
  8933. echo "$as_me:$LINENO: result: $pnmcut" >&5
  8934. echo "${ECHO_T}$pnmcut" >&6
  8935. else
  8936. echo "$as_me:$LINENO: result: no" >&5
  8937. echo "${ECHO_T}no" >&6
  8938. fi
  8939. if test $pnmcut = missing; then
  8940. missing="$missing \`pnmcut'"
  8941. fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
  8942. set dummy pnmcrop; ac_word=$2
  8943. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8944. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8945. if test "${ac_cv_prog_pnmcrop+set}" = set; then
  8946. echo $ECHO_N "(cached) $ECHO_C" >&6
  8947. else
  8948. if test -n "$pnmcrop"; then
  8949. ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
  8950. else
  8951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8952. for as_dir in $PATH
  8953. do
  8954. IFS=$as_save_IFS
  8955. test -z "$as_dir" && as_dir=.
  8956. for ac_exec_ext in '' $ac_executable_extensions; do
  8957. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8958. ac_cv_prog_pnmcrop="found"
  8959. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8960. break 2
  8961. fi
  8962. done
  8963. done
  8964. test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
  8965. fi
  8966. fi
  8967. pnmcrop=$ac_cv_prog_pnmcrop
  8968. if test -n "$pnmcrop"; then
  8969. echo "$as_me:$LINENO: result: $pnmcrop" >&5
  8970. echo "${ECHO_T}$pnmcrop" >&6
  8971. else
  8972. echo "$as_me:$LINENO: result: no" >&5
  8973. echo "${ECHO_T}no" >&6
  8974. fi
  8975. if test $pnmcrop = missing; then
  8976. missing="$missing \`pnmcrop'"
  8977. fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
  8978. set dummy pnmtopng; ac_word=$2
  8979. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8980. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8981. if test "${ac_cv_prog_pnmtopng+set}" = set; then
  8982. echo $ECHO_N "(cached) $ECHO_C" >&6
  8983. else
  8984. if test -n "$pnmtopng"; then
  8985. ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
  8986. else
  8987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8988. for as_dir in $PATH
  8989. do
  8990. IFS=$as_save_IFS
  8991. test -z "$as_dir" && as_dir=.
  8992. for ac_exec_ext in '' $ac_executable_extensions; do
  8993. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8994. ac_cv_prog_pnmtopng="found"
  8995. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8996. break 2
  8997. fi
  8998. done
  8999. done
  9000. test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
  9001. fi
  9002. fi
  9003. pnmtopng=$ac_cv_prog_pnmtopng
  9004. if test -n "$pnmtopng"; then
  9005. echo "$as_me:$LINENO: result: $pnmtopng" >&5
  9006. echo "${ECHO_T}$pnmtopng" >&6
  9007. else
  9008. echo "$as_me:$LINENO: result: no" >&5
  9009. echo "${ECHO_T}no" >&6
  9010. fi
  9011. if test $pnmtopng = missing; then
  9012. missing="$missing \`pnmtopng'"
  9013. fi;# Extract the first word of "psselect", so it can be a program name with args.
  9014. set dummy psselect; ac_word=$2
  9015. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9016. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9017. if test "${ac_cv_prog_psselect+set}" = set; then
  9018. echo $ECHO_N "(cached) $ECHO_C" >&6
  9019. else
  9020. if test -n "$psselect"; then
  9021. ac_cv_prog_psselect="$psselect" # Let the user override the test.
  9022. else
  9023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9024. for as_dir in $PATH
  9025. do
  9026. IFS=$as_save_IFS
  9027. test -z "$as_dir" && as_dir=.
  9028. for ac_exec_ext in '' $ac_executable_extensions; do
  9029. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9030. ac_cv_prog_psselect="found"
  9031. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9032. break 2
  9033. fi
  9034. done
  9035. done
  9036. test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
  9037. fi
  9038. fi
  9039. psselect=$ac_cv_prog_psselect
  9040. if test -n "$psselect"; then
  9041. echo "$as_me:$LINENO: result: $psselect" >&5
  9042. echo "${ECHO_T}$psselect" >&6
  9043. else
  9044. echo "$as_me:$LINENO: result: no" >&5
  9045. echo "${ECHO_T}no" >&6
  9046. fi
  9047. if test $psselect = missing; then
  9048. missing="$missing \`psselect'"
  9049. fi;# Extract the first word of "pnmtops", so it can be a program name with args.
  9050. set dummy pnmtops; ac_word=$2
  9051. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9052. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9053. if test "${ac_cv_prog_pnmtops+set}" = set; then
  9054. echo $ECHO_N "(cached) $ECHO_C" >&6
  9055. else
  9056. if test -n "$pnmtops"; then
  9057. ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
  9058. else
  9059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9060. for as_dir in $PATH
  9061. do
  9062. IFS=$as_save_IFS
  9063. test -z "$as_dir" && as_dir=.
  9064. for ac_exec_ext in '' $ac_executable_extensions; do
  9065. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9066. ac_cv_prog_pnmtops="found"
  9067. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9068. break 2
  9069. fi
  9070. done
  9071. done
  9072. test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
  9073. fi
  9074. fi
  9075. pnmtops=$ac_cv_prog_pnmtops
  9076. if test -n "$pnmtops"; then
  9077. echo "$as_me:$LINENO: result: $pnmtops" >&5
  9078. echo "${ECHO_T}$pnmtops" >&6
  9079. else
  9080. echo "$as_me:$LINENO: result: no" >&5
  9081. echo "${ECHO_T}no" >&6
  9082. fi
  9083. if test $pnmtops = missing; then
  9084. missing="$missing \`pnmtops'"
  9085. fi;
  9086. test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'"
  9087. if test -n "$missing"; then
  9088. plural=`set $missing; test $# -gt 1 && echo s`
  9089. missing=`set $missing
  9090. missing=""
  9091. while test $# -gt 0
  9092. do
  9093. case $# in
  9094. 1) missing="$missing$1" ;;
  9095. 2) missing="$missing$1 and " ;;
  9096. *) missing="$missing$1, " ;;
  9097. esac
  9098. shift
  9099. done
  9100. echo $missing`
  9101. make_html=
  9102. make_install_html=
  9103. { echo "$as_me:$LINENO: WARNING: missing program$plural:
  9104. The program$plural
  9105. $missing
  9106. cannot be found in the PATH.
  9107. Consequently, groff's HTML backend (grohtml) will not work properly;
  9108. therefore, it will neither be possible to prepare, nor to install,
  9109. documentation in HTML format.
  9110. " >&5
  9111. echo "$as_me: WARNING: missing program$plural:
  9112. The program$plural
  9113. $missing
  9114. cannot be found in the PATH.
  9115. Consequently, groff's HTML backend (grohtml) will not work properly;
  9116. therefore, it will neither be possible to prepare, nor to install,
  9117. documentation in HTML format.
  9118. " >&2;}
  9119. fi
  9120. # Check whether --with-alt-awk or --without-alt-awk was given.
  9121. if test "${with_alt_awk+set}" = set; then
  9122. withval="$with_alt_awk"
  9123. ALT_AWK_PROGS="$withval"
  9124. else
  9125. ALT_AWK_PROGS="gawk mawk nawk awk"
  9126. fi;
  9127. # Check whether --with-awk or --without-awk was given.
  9128. if test "${with_awk+set}" = set; then
  9129. withval="$with_awk"
  9130. AWK=$withval
  9131. else
  9132. if test -n "$ac_tool_prefix"; then
  9133. for ac_prog in $ALT_AWK_PROGS
  9134. do
  9135. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9136. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9137. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9138. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9139. if test "${ac_cv_prog_AWK+set}" = set; then
  9140. echo $ECHO_N "(cached) $ECHO_C" >&6
  9141. else
  9142. if test -n "$AWK"; then
  9143. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  9144. else
  9145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9146. for as_dir in $PATH
  9147. do
  9148. IFS=$as_save_IFS
  9149. test -z "$as_dir" && as_dir=.
  9150. for ac_exec_ext in '' $ac_executable_extensions; do
  9151. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9152. ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
  9153. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9154. break 2
  9155. fi
  9156. done
  9157. done
  9158. fi
  9159. fi
  9160. AWK=$ac_cv_prog_AWK
  9161. if test -n "$AWK"; then
  9162. echo "$as_me:$LINENO: result: $AWK" >&5
  9163. echo "${ECHO_T}$AWK" >&6
  9164. else
  9165. echo "$as_me:$LINENO: result: no" >&5
  9166. echo "${ECHO_T}no" >&6
  9167. fi
  9168. test -n "$AWK" && break
  9169. done
  9170. fi
  9171. if test -z "$AWK"; then
  9172. ac_ct_AWK=$AWK
  9173. for ac_prog in $ALT_AWK_PROGS
  9174. do
  9175. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9176. set dummy $ac_prog; ac_word=$2
  9177. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9178. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9179. if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
  9180. echo $ECHO_N "(cached) $ECHO_C" >&6
  9181. else
  9182. if test -n "$ac_ct_AWK"; then
  9183. ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
  9184. else
  9185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9186. for as_dir in $PATH
  9187. do
  9188. IFS=$as_save_IFS
  9189. test -z "$as_dir" && as_dir=.
  9190. for ac_exec_ext in '' $ac_executable_extensions; do
  9191. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9192. ac_cv_prog_ac_ct_AWK="$ac_prog"
  9193. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9194. break 2
  9195. fi
  9196. done
  9197. done
  9198. fi
  9199. fi
  9200. ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
  9201. if test -n "$ac_ct_AWK"; then
  9202. echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
  9203. echo "${ECHO_T}$ac_ct_AWK" >&6
  9204. else
  9205. echo "$as_me:$LINENO: result: no" >&5
  9206. echo "${ECHO_T}no" >&6
  9207. fi
  9208. test -n "$ac_ct_AWK" && break
  9209. done
  9210. if test "x$ac_ct_AWK" = x; then
  9211. AWK="missing"
  9212. else
  9213. if test "$build" != "$host"; then
  9214. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  9215. whose name does not start with the host triplet. If you think this
  9216. configuration is useful to you, please write to autoconf@gnu.org." >&5
  9217. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  9218. whose name does not start with the host triplet. If you think this
  9219. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  9220. fi
  9221. AWK=$ac_ct_AWK
  9222. fi
  9223. fi
  9224. fi;
  9225. test "$AWK" = "no" && AWK=missing
  9226. make_pdfdoc=pdfdoc
  9227. make_install_pdfdoc=install_pdfdoc
  9228. missing=""
  9229. test "$AWK" = missing && missing="\`awk'"
  9230. test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
  9231. if test -n "$missing"; then
  9232. plural=`set $missing; test $# -eq 2 && echo s`
  9233. test x$plural = xs \
  9234. && missing=`set $missing; echo "$1 and $2"` \
  9235. || missing=`echo $missing`
  9236. make_pdfdoc=
  9237. make_install_pdfdoc=
  9238. { echo "$as_me:$LINENO: WARNING: missing program$plural:
  9239. The program$plural $missing cannot be found in the PATH.
  9240. Consequently, groff's PDF formatter (pdfroff) will not work properly;
  9241. therefore, it will neither be possible to prepare, nor to install,
  9242. documentation in PDF format.
  9243. " >&5
  9244. echo "$as_me: WARNING: missing program$plural:
  9245. The program$plural $missing cannot be found in the PATH.
  9246. Consequently, groff's PDF formatter (pdfroff) will not work properly;
  9247. therefore, it will neither be possible to prepare, nor to install,
  9248. documentation in PDF format.
  9249. " >&2;}
  9250. fi
  9251. echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
  9252. echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
  9253. if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
  9254. echo "$as_me:$LINENO: result: yes" >&5
  9255. echo "${ECHO_T}yes" >&6
  9256. pnmtops_nosetpage="pnmtops -nosetpage"
  9257. else
  9258. echo "$as_me:$LINENO: result: no" >&5
  9259. echo "${ECHO_T}no" >&6
  9260. pnmtops_nosetpage="pnmtops"
  9261. fi
  9262. ac_config_files="$ac_config_files stamp-h"
  9263. ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
  9264. ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
  9265. ac_config_files="$ac_config_files test-groff"
  9266. cat >confcache <<\_ACEOF
  9267. # This file is a shell script that caches the results of configure
  9268. # tests run on this system so they can be shared between configure
  9269. # scripts and configure runs, see configure's option --config-cache.
  9270. # It is not useful on other systems. If it contains results you don't
  9271. # want to keep, you may remove or edit it.
  9272. #
  9273. # config.status only pays attention to the cache file if you give it
  9274. # the --recheck option to rerun configure.
  9275. #
  9276. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9277. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9278. # following values.
  9279. _ACEOF
  9280. # The following way of writing the cache mishandles newlines in values,
  9281. # but we know of no workaround that is simple, portable, and efficient.
  9282. # So, don't put newlines in cache variables' values.
  9283. # Ultrix sh set writes to stderr and can't be redirected directly,
  9284. # and sets the high bit in the cache file unless we assign to the vars.
  9285. {
  9286. (set) 2>&1 |
  9287. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9288. *ac_space=\ *)
  9289. # `set' does not quote correctly, so add quotes (double-quote
  9290. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9291. sed -n \
  9292. "s/'/'\\\\''/g;
  9293. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9294. ;;
  9295. *)
  9296. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9297. sed -n \
  9298. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9299. ;;
  9300. esac;
  9301. } |
  9302. sed '
  9303. t clear
  9304. : clear
  9305. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9306. t end
  9307. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9308. : end' >>confcache
  9309. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9310. if test -w $cache_file; then
  9311. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  9312. cat confcache >$cache_file
  9313. else
  9314. echo "not updating unwritable cache $cache_file"
  9315. fi
  9316. fi
  9317. rm -f confcache
  9318. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9319. # Let make expand exec_prefix.
  9320. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9321. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9322. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9323. # trailing colons and then remove the whole line if VPATH becomes empty
  9324. # (actually we leave an empty line to preserve line numbers).
  9325. if test "x$srcdir" = x.; then
  9326. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  9327. s/:*\$(srcdir):*/:/;
  9328. s/:*\${srcdir}:*/:/;
  9329. s/:*@srcdir@:*/:/;
  9330. s/^\([^=]*=[ ]*\):*/\1/;
  9331. s/:*$//;
  9332. s/^[^=]*=[ ]*$//;
  9333. }'
  9334. fi
  9335. DEFS=-DHAVE_CONFIG_H
  9336. ac_libobjs=
  9337. ac_ltlibobjs=
  9338. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9339. # 1. Remove the extension, and $U if already installed.
  9340. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9341. ac_i=`echo "$ac_i" | sed "$ac_script"`
  9342. # 2. Add them.
  9343. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  9344. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  9345. done
  9346. LIBOBJS=$ac_libobjs
  9347. LTLIBOBJS=$ac_ltlibobjs
  9348. : ${CONFIG_STATUS=./config.status}
  9349. ac_clean_files_save=$ac_clean_files
  9350. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9351. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9352. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9353. cat >$CONFIG_STATUS <<_ACEOF
  9354. #! $SHELL
  9355. # Generated by $as_me.
  9356. # Run this file to recreate the current configuration.
  9357. # Compiler output produced by configure, useful for debugging
  9358. # configure, is in config.log if it exists.
  9359. debug=false
  9360. ac_cs_recheck=false
  9361. ac_cs_silent=false
  9362. SHELL=\${CONFIG_SHELL-$SHELL}
  9363. _ACEOF
  9364. cat >>$CONFIG_STATUS <<\_ACEOF
  9365. ## --------------------- ##
  9366. ## M4sh Initialization. ##
  9367. ## --------------------- ##
  9368. # Be Bourne compatible
  9369. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9370. emulate sh
  9371. NULLCMD=:
  9372. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  9373. # is contrary to our usage. Disable this feature.
  9374. alias -g '${1+"$@"}'='"$@"'
  9375. setopt NO_GLOB_SUBST
  9376. elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  9377. set -o posix
  9378. fi
  9379. BIN_SH=xpg4; export BIN_SH # for Tru64
  9380. DUALCASE=1; export DUALCASE # for MKS sh
  9381. # PATH needs CR
  9382. # Avoid depending upon Character Ranges.
  9383. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9384. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9385. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9386. as_cr_digits='0123456789'
  9387. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9388. # The user is always right.
  9389. if test "${PATH_SEPARATOR+set}" != set; then
  9390. echo "#! /bin/sh" >conf$$.sh
  9391. echo "exit 0" >>conf$$.sh
  9392. chmod +x conf$$.sh
  9393. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9394. PATH_SEPARATOR=';'
  9395. else
  9396. PATH_SEPARATOR=:
  9397. fi
  9398. rm -f conf$$.sh
  9399. fi
  9400. # Support unset when possible.
  9401. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9402. as_unset=unset
  9403. else
  9404. as_unset=false
  9405. fi
  9406. # Find who we are. Look in the path if we contain no path at all
  9407. # relative or not.
  9408. case $0 in
  9409. *[\\/]* ) as_myself=$0 ;;
  9410. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9411. for as_dir in $PATH
  9412. do
  9413. IFS=$as_save_IFS
  9414. test -z "$as_dir" && as_dir=.
  9415. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9416. done
  9417. ;;
  9418. esac
  9419. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9420. # in which case we are not to be found in the path.
  9421. if test "x$as_myself" = x; then
  9422. as_myself=$0
  9423. fi
  9424. if test ! -f "$as_myself"; then
  9425. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
  9426. echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
  9427. { (exit 1); exit 1; }; }
  9428. fi
  9429. # Work around bugs in pre-3.0 UWIN ksh.
  9430. for as_var in ENV MAIL MAILPATH
  9431. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  9432. done
  9433. PS1='$ '
  9434. PS2='> '
  9435. PS4='+ '
  9436. # NLS nuisances.
  9437. for as_var in \
  9438. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  9439. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  9440. LC_TELEPHONE LC_TIME
  9441. do
  9442. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9443. eval $as_var=C; export $as_var
  9444. else
  9445. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  9446. fi
  9447. done
  9448. # Required to use basename.
  9449. if expr a : '\(a\)' >/dev/null 2>&1; then
  9450. as_expr=expr
  9451. else
  9452. as_expr=false
  9453. fi
  9454. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  9455. as_basename=basename
  9456. else
  9457. as_basename=false
  9458. fi
  9459. # Name of the executable.
  9460. as_me=`$as_basename "$0" ||
  9461. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9462. X"$0" : 'X\(//\)$' \| \
  9463. X"$0" : 'X\(/\)$' \| \
  9464. . : '\(.\)' 2>/dev/null ||
  9465. echo X/"$0" |
  9466. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  9467. /^X\/\(\/\/\)$/{ s//\1/; q; }
  9468. /^X\/\(\/\).*/{ s//\1/; q; }
  9469. s/.*/./; q'`
  9470. as_lineno_1=$LINENO
  9471. as_lineno_2=$LINENO
  9472. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9473. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9474. test "x$as_lineno_3" = "x$as_lineno_2" || {
  9475. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9476. # uniformly replaced by the line number. The first 'sed' inserts a
  9477. # line-number line after each line using $LINENO; the second 'sed'
  9478. # does the real work. The second script uses 'N' to pair each
  9479. # line-number line with the line containing $LINENO, and appends
  9480. # trailing '-' during substitution so that $LINENO is not a special
  9481. # case at line end.
  9482. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9483. # scripts with optimization help from Paolo Bonzini. Blame Lee
  9484. # E. McMahon (1931-1989) for sed's syntax. :-)
  9485. sed -n '
  9486. p
  9487. /[$]LINENO/=
  9488. ' <$as_myself |
  9489. sed '
  9490. s,[$]LINENO.*,&-,
  9491. t lineno
  9492. b
  9493. : lineno
  9494. N
  9495. : loop
  9496. s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
  9497. t loop
  9498. s,-\n.*,,
  9499. ' >$as_me.lineno &&
  9500. chmod +x $as_me.lineno ||
  9501. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  9502. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  9503. { (exit 1); exit 1; }; }
  9504. # Don't try to exec as it changes $[0], causing all sort of problems
  9505. # (the dirname of $[0] is not the place where we might find the
  9506. # original and so on. Autoconf is especially sensible to this).
  9507. . ./$as_me.lineno
  9508. # Exit status is that of the last command.
  9509. exit
  9510. }
  9511. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  9512. *c*,-n*) ECHO_N= ECHO_C='
  9513. ' ECHO_T=' ' ;;
  9514. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  9515. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  9516. esac
  9517. if expr a : '\(a\)' >/dev/null 2>&1; then
  9518. as_expr=expr
  9519. else
  9520. as_expr=false
  9521. fi
  9522. rm -f conf$$ conf$$.exe conf$$.file
  9523. echo >conf$$.file
  9524. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9525. # We could just check for DJGPP; but this test a) works b) is more generic
  9526. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  9527. if test -f conf$$.exe; then
  9528. # Don't use ln at all; we don't have any links
  9529. as_ln_s='cp -p'
  9530. else
  9531. as_ln_s='ln -s'
  9532. fi
  9533. elif ln conf$$.file conf$$ 2>/dev/null; then
  9534. as_ln_s=ln
  9535. else
  9536. as_ln_s='cp -p'
  9537. fi
  9538. rm -f conf$$ conf$$.exe conf$$.file
  9539. if mkdir -p . 2>/dev/null; then
  9540. as_mkdir_p=:
  9541. else
  9542. test -d ./-p && rmdir ./-p
  9543. as_mkdir_p=false
  9544. fi
  9545. as_executable_p="test -f"
  9546. # Sed expression to map a string onto a valid CPP name.
  9547. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9548. # Sed expression to map a string onto a valid variable name.
  9549. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9550. # IFS
  9551. # We need space, tab and new line, in precisely that order.
  9552. as_nl='
  9553. '
  9554. IFS=" $as_nl"
  9555. # CDPATH.
  9556. $as_unset CDPATH
  9557. exec 6>&1
  9558. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  9559. # report actual input values of CONFIG_FILES etc. instead of their
  9560. # values after options handling. Logging --version etc. is OK.
  9561. exec 5>>config.log
  9562. {
  9563. echo
  9564. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9565. ## Running $as_me. ##
  9566. _ASBOX
  9567. } >&5
  9568. cat >&5 <<_CSEOF
  9569. This file was extended by $as_me, which was
  9570. generated by GNU Autoconf 2.59b. Invocation command line was
  9571. CONFIG_FILES = $CONFIG_FILES
  9572. CONFIG_HEADERS = $CONFIG_HEADERS
  9573. CONFIG_LINKS = $CONFIG_LINKS
  9574. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9575. $ $0 $@
  9576. _CSEOF
  9577. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  9578. echo >&5
  9579. _ACEOF
  9580. # Files that config.status was made for.
  9581. if test -n "$ac_config_files"; then
  9582. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  9583. fi
  9584. if test -n "$ac_config_headers"; then
  9585. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  9586. fi
  9587. if test -n "$ac_config_links"; then
  9588. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  9589. fi
  9590. if test -n "$ac_config_commands"; then
  9591. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  9592. fi
  9593. cat >>$CONFIG_STATUS <<\_ACEOF
  9594. ac_cs_usage="\
  9595. \`$as_me' instantiates files from templates according to the
  9596. current configuration.
  9597. Usage: $0 [OPTIONS] [FILE]...
  9598. -h, --help print this help, then exit
  9599. -V, --version print version number, then exit
  9600. -q, --quiet do not print progress messages
  9601. -d, --debug don't remove temporary files
  9602. --recheck update $as_me by reconfiguring in the same conditions
  9603. --file=FILE[:TEMPLATE]
  9604. instantiate the configuration file FILE
  9605. --header=FILE[:TEMPLATE]
  9606. instantiate the configuration header FILE
  9607. Configuration files:
  9608. $config_files
  9609. Configuration headers:
  9610. $config_headers
  9611. Report bugs to <bug-autoconf@gnu.org>."
  9612. _ACEOF
  9613. cat >>$CONFIG_STATUS <<_ACEOF
  9614. ac_cs_version="\\
  9615. config.status
  9616. configured by $0, generated by GNU Autoconf 2.59b,
  9617. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  9618. Copyright (C) 2004 Free Software Foundation, Inc.
  9619. This config.status script is free software; the Free Software Foundation
  9620. gives unlimited permission to copy, distribute and modify it."
  9621. srcdir=$srcdir
  9622. INSTALL="$INSTALL"
  9623. _ACEOF
  9624. cat >>$CONFIG_STATUS <<\_ACEOF
  9625. # If no file are specified by the user, then we need to provide default
  9626. # value. By we need to know if files were specified by the user.
  9627. ac_need_defaults=:
  9628. while test $# != 0
  9629. do
  9630. case $1 in
  9631. --*=*)
  9632. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  9633. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  9634. ac_shift=:
  9635. ;;
  9636. -*)
  9637. ac_option=$1
  9638. ac_optarg=$2
  9639. ac_shift=shift
  9640. ;;
  9641. *) # This is not an option, so the user has probably given explicit
  9642. # arguments.
  9643. ac_option=$1
  9644. ac_need_defaults=false;;
  9645. esac
  9646. case $ac_option in
  9647. # Handling of the options.
  9648. _ACEOF
  9649. cat >>$CONFIG_STATUS <<\_ACEOF
  9650. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9651. ac_cs_recheck=: ;;
  9652. --version | --vers* | -V )
  9653. echo "$ac_cs_version"; exit 0 ;;
  9654. --he | --h)
  9655. # Conflict between --help and --header
  9656. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  9657. Try \`$0 --help' for more information." >&5
  9658. echo "$as_me: error: ambiguous option: $1
  9659. Try \`$0 --help' for more information." >&2;}
  9660. { (exit 1); exit 1; }; };;
  9661. --help | --hel | -h )
  9662. echo "$ac_cs_usage"; exit 0 ;;
  9663. --debug | --d* | -d )
  9664. debug=: ;;
  9665. --file | --fil | --fi | --f )
  9666. $ac_shift
  9667. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  9668. ac_need_defaults=false;;
  9669. --header | --heade | --head | --hea )
  9670. $ac_shift
  9671. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  9672. ac_need_defaults=false;;
  9673. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9674. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9675. ac_cs_silent=: ;;
  9676. # This is an error.
  9677. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  9678. Try \`$0 --help' for more information." >&5
  9679. echo "$as_me: error: unrecognized option: $1
  9680. Try \`$0 --help' for more information." >&2;}
  9681. { (exit 1); exit 1; }; } ;;
  9682. *) ac_config_targets="$ac_config_targets $1" ;;
  9683. esac
  9684. shift
  9685. done
  9686. ac_configure_extra_args=
  9687. if $ac_cs_silent; then
  9688. exec 6>/dev/null
  9689. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9690. fi
  9691. _ACEOF
  9692. cat >>$CONFIG_STATUS <<_ACEOF
  9693. if \$ac_cs_recheck; then
  9694. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  9695. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9696. fi
  9697. _ACEOF
  9698. cat >>$CONFIG_STATUS <<\_ACEOF
  9699. for ac_config_target in $ac_config_targets
  9700. do
  9701. case "$ac_config_target" in
  9702. # Handling of arguments.
  9703. "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
  9704. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9705. "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  9706. "src/utils/xtotroff/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
  9707. "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
  9708. "test-groff" ) CONFIG_FILES="$CONFIG_FILES test-groff" ;;
  9709. "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
  9710. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  9711. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  9712. { (exit 1); exit 1; }; };;
  9713. esac
  9714. done
  9715. # If the user did not use the arguments to specify the items to instantiate,
  9716. # then the envvar interface is used. Set only those that are not.
  9717. # We use the long form for the default assignment because of an extremely
  9718. # bizarre bug on SunOS 4.1.3.
  9719. if $ac_need_defaults; then
  9720. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9721. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9722. fi
  9723. # Have a temporary directory for convenience. Make it in the build tree
  9724. # simply because there is no reason to put it here, and in addition,
  9725. # creating and moving files from /tmp can sometimes cause problems.
  9726. # Create a temporary directory, and hook for its removal unless debugging.
  9727. $debug ||
  9728. {
  9729. trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
  9730. trap '{ (exit 1); exit 1; }' 1 2 13 15
  9731. }
  9732. # Create a (secure) tmp directory for tmp files.
  9733. {
  9734. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  9735. test -n "$tmp" && test -d "$tmp"
  9736. } ||
  9737. {
  9738. tmp=./confstat$$-$RANDOM
  9739. (umask 077 && mkdir $tmp)
  9740. } ||
  9741. {
  9742. echo "$me: cannot create a temporary directory in ." >&2
  9743. { (exit 1); exit 1; }
  9744. }
  9745. _ACEOF
  9746. cat >>$CONFIG_STATUS <<_ACEOF
  9747. #
  9748. # CONFIG_FILES section.
  9749. #
  9750. # No need to generate the scripts if there are no CONFIG_FILES.
  9751. # This happens for instance when ./config.status config.h
  9752. if test -n "\$CONFIG_FILES"; then
  9753. # Protect against being on the right side of a sed subst in config.status.
  9754. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  9755. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  9756. s,@SHELL@,$SHELL,;t t
  9757. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  9758. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  9759. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  9760. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  9761. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  9762. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  9763. s,@exec_prefix@,$exec_prefix,;t t
  9764. s,@prefix@,$prefix,;t t
  9765. s,@program_transform_name@,$program_transform_name,;t t
  9766. s,@bindir@,$bindir,;t t
  9767. s,@sbindir@,$sbindir,;t t
  9768. s,@libexecdir@,$libexecdir,;t t
  9769. s,@datadir@,$datadir,;t t
  9770. s,@sysconfdir@,$sysconfdir,;t t
  9771. s,@sharedstatedir@,$sharedstatedir,;t t
  9772. s,@localstatedir@,$localstatedir,;t t
  9773. s,@libdir@,$libdir,;t t
  9774. s,@includedir@,$includedir,;t t
  9775. s,@oldincludedir@,$oldincludedir,;t t
  9776. s,@infodir@,$infodir,;t t
  9777. s,@mandir@,$mandir,;t t
  9778. s,@build_alias@,$build_alias,;t t
  9779. s,@host_alias@,$host_alias,;t t
  9780. s,@target_alias@,$target_alias,;t t
  9781. s,@DEFS@,$DEFS,;t t
  9782. s,@ECHO_C@,$ECHO_C,;t t
  9783. s,@ECHO_N@,$ECHO_N,;t t
  9784. s,@ECHO_T@,$ECHO_T,;t t
  9785. s,@LIBS@,$LIBS,;t t
  9786. s,@CC@,$CC,;t t
  9787. s,@CFLAGS@,$CFLAGS,;t t
  9788. s,@LDFLAGS@,$LDFLAGS,;t t
  9789. s,@CPPFLAGS@,$CPPFLAGS,;t t
  9790. s,@ac_ct_CC@,$ac_ct_CC,;t t
  9791. s,@EXEEXT@,$EXEEXT,;t t
  9792. s,@OBJEXT@,$OBJEXT,;t t
  9793. s,@CXX@,$CXX,;t t
  9794. s,@CXXFLAGS@,$CXXFLAGS,;t t
  9795. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  9796. s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
  9797. s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
  9798. s,@CPP@,$CPP,;t t
  9799. s,@X_CFLAGS@,$X_CFLAGS,;t t
  9800. s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
  9801. s,@X_LIBS@,$X_LIBS,;t t
  9802. s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
  9803. s,@XDEVDIRS@,$XDEVDIRS,;t t
  9804. s,@XPROGDIRS@,$XPROGDIRS,;t t
  9805. s,@XLIBDIRS@,$XLIBDIRS,;t t
  9806. s,@appresdir@,$appresdir,;t t
  9807. s,@LPR@,$LPR,;t t
  9808. s,@LP@,$LP,;t t
  9809. s,@LPQ@,$LPQ,;t t
  9810. s,@PSPRINT@,$PSPRINT,;t t
  9811. s,@DVIPRINT@,$DVIPRINT,;t t
  9812. s,@PERLPATH@,$PERLPATH,;t t
  9813. s,@YACC@,$YACC,;t t
  9814. s,@RANLIB@,$RANLIB,;t t
  9815. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  9816. s,@INSTALL_INFO@,$INSTALL_INFO,;t t
  9817. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  9818. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  9819. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  9820. s,@LN_S@,$LN_S,;t t
  9821. s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
  9822. s,@GREP@,$GREP,;t t
  9823. s,@EGREP@,$EGREP,;t t
  9824. s,@LIBC@,$LIBC,;t t
  9825. s,@LIBM@,$LIBM,;t t
  9826. s,@LIBOBJS@,$LIBOBJS,;t t
  9827. s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
  9828. s,@PAGE@,$PAGE,;t t
  9829. s,@g@,$g,;t t
  9830. s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
  9831. s,@tmac_wrap@,$tmac_wrap,;t t
  9832. s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
  9833. s,@ALT_GHOSTSCRIPT_PROGS@,$ALT_GHOSTSCRIPT_PROGS,;t t
  9834. s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
  9835. s,@ac_ct_GHOSTSCRIPT@,$ac_ct_GHOSTSCRIPT,;t t
  9836. s,@pnmcut@,$pnmcut,;t t
  9837. s,@pnmcrop@,$pnmcrop,;t t
  9838. s,@pnmtopng@,$pnmtopng,;t t
  9839. s,@psselect@,$psselect,;t t
  9840. s,@pnmtops@,$pnmtops,;t t
  9841. s,@make_html@,$make_html,;t t
  9842. s,@make_install_html@,$make_install_html,;t t
  9843. s,@ALT_AWK_PROGS@,$ALT_AWK_PROGS,;t t
  9844. s,@AWK@,$AWK,;t t
  9845. s,@ac_ct_AWK@,$ac_ct_AWK,;t t
  9846. s,@make_pdfdoc@,$make_pdfdoc,;t t
  9847. s,@make_install_pdfdoc@,$make_install_pdfdoc,;t t
  9848. s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
  9849. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  9850. CEOF
  9851. _ACEOF
  9852. cat >>$CONFIG_STATUS <<\_ACEOF
  9853. # Split the substitutions into bite-sized pieces for seds with
  9854. # small command number limits, like on Digital OSF/1 and HP-UX.
  9855. ac_max_sed_lines=48
  9856. ac_sed_frag=1 # Number of current file.
  9857. ac_beg=1 # First line for current file.
  9858. ac_end=$ac_max_sed_lines # Line after last line for current file.
  9859. ac_more_lines=:
  9860. ac_sed_cmds=
  9861. while $ac_more_lines; do
  9862. if test $ac_beg -gt 1; then
  9863. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9864. else
  9865. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9866. fi
  9867. if test ! -s $tmp/subs.frag; then
  9868. ac_more_lines=false
  9869. else
  9870. # The purpose of the label and of the branching condition is to
  9871. # speed up the sed processing (if there are no `@' at all, there
  9872. # is no need to browse any of the substitutions).
  9873. # These are the two extra sed commands mentioned above.
  9874. (echo ':t
  9875. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  9876. if test -z "$ac_sed_cmds"; then
  9877. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  9878. else
  9879. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  9880. fi
  9881. ac_sed_frag=`expr $ac_sed_frag + 1`
  9882. ac_beg=$ac_end
  9883. ac_end=`expr $ac_end + $ac_max_sed_lines`
  9884. fi
  9885. done
  9886. if test -z "$ac_sed_cmds"; then
  9887. ac_sed_cmds=cat
  9888. fi
  9889. fi # test -n "$CONFIG_FILES"
  9890. _ACEOF
  9891. cat >>$CONFIG_STATUS <<\_ACEOF
  9892. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  9893. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9894. case $ac_file in
  9895. - | *:- | *:-:* ) # input from stdin
  9896. cat >$tmp/stdin
  9897. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9898. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9899. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9900. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9901. * ) ac_file_in=$ac_file.in ;;
  9902. esac
  9903. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  9904. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9905. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9906. X"$ac_file" : 'X\(//\)[^/]' \| \
  9907. X"$ac_file" : 'X\(//\)$' \| \
  9908. X"$ac_file" : 'X\(/\)' \| \
  9909. . : '\(.\)' 2>/dev/null ||
  9910. echo X"$ac_file" |
  9911. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9912. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9913. /^X\(\/\/\)$/{ s//\1/; q; }
  9914. /^X\(\/\).*/{ s//\1/; q; }
  9915. s/.*/./; q'`
  9916. { if $as_mkdir_p; then
  9917. test -d "$ac_dir" || mkdir -p "$ac_dir"
  9918. else
  9919. as_dir="$ac_dir"
  9920. as_dirs=
  9921. while test ! -d "$as_dir"; do
  9922. as_dirs="$as_dir $as_dirs"
  9923. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9924. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9925. X"$as_dir" : 'X\(//\)[^/]' \| \
  9926. X"$as_dir" : 'X\(//\)$' \| \
  9927. X"$as_dir" : 'X\(/\)' \| \
  9928. . : '\(.\)' 2>/dev/null ||
  9929. echo X"$as_dir" |
  9930. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9931. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9932. /^X\(\/\/\)$/{ s//\1/; q; }
  9933. /^X\(\/\).*/{ s//\1/; q; }
  9934. s/.*/./; q'`
  9935. done
  9936. test ! -n "$as_dirs" || mkdir $as_dirs
  9937. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9938. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9939. { (exit 1); exit 1; }; }; }
  9940. ac_builddir=.
  9941. if test "$ac_dir" != .; then
  9942. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9943. # A "../" for each directory in $ac_dir_suffix.
  9944. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9945. else
  9946. ac_dir_suffix= ac_top_builddir=
  9947. fi
  9948. case $srcdir in
  9949. .) # No --srcdir option. We are building in place.
  9950. ac_srcdir=.
  9951. if test -z "$ac_top_builddir"; then
  9952. ac_top_srcdir=.
  9953. else
  9954. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9955. fi ;;
  9956. [\\/]* | ?:[\\/]* ) # Absolute name.
  9957. ac_srcdir=$srcdir$ac_dir_suffix;
  9958. ac_top_srcdir=$srcdir ;;
  9959. *) # Relative name.
  9960. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9961. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9962. esac
  9963. # Do not use `cd foo && pwd` to compute absolute names, because
  9964. # the directories may not exist.
  9965. case `pwd` in
  9966. .) ac_abs_builddir="$ac_dir";;
  9967. *)
  9968. case "$ac_dir" in
  9969. .) ac_abs_builddir=`pwd`;;
  9970. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9971. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9972. esac;;
  9973. esac
  9974. case $ac_abs_builddir in
  9975. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  9976. *)
  9977. case ${ac_top_builddir}. in
  9978. .) ac_abs_top_builddir=$ac_abs_builddir;;
  9979. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9980. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9981. esac;;
  9982. esac
  9983. case $ac_abs_builddir in
  9984. .) ac_abs_srcdir=$ac_srcdir;;
  9985. *)
  9986. case $ac_srcdir in
  9987. .) ac_abs_srcdir=$ac_abs_builddir;;
  9988. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  9989. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  9990. esac;;
  9991. esac
  9992. case $ac_abs_builddir in
  9993. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  9994. *)
  9995. case $ac_top_srcdir in
  9996. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  9997. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  9998. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  9999. esac;;
  10000. esac
  10001. case $INSTALL in
  10002. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10003. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  10004. esac
  10005. if test x"$ac_file" != x-; then
  10006. { echo "$as_me:$LINENO: creating $ac_file" >&5
  10007. echo "$as_me: creating $ac_file" >&6;}
  10008. rm -f "$ac_file"
  10009. fi
  10010. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10011. # use $as_me), people would be surprised to read:
  10012. # /* config.h. Generated by config.status. */
  10013. if test x"$ac_file" = x-; then
  10014. configure_input=
  10015. else
  10016. configure_input="$ac_file. "
  10017. fi
  10018. configure_input=$configure_input"Generated from `echo $ac_file_in |
  10019. sed 's,.*/,,'` by configure."
  10020. # First look for the input files in the build tree, otherwise in the
  10021. # src tree.
  10022. ac_file_inputs=`IFS=:
  10023. for f in $ac_file_in; do
  10024. case $f in
  10025. -) echo $tmp/stdin ;;
  10026. [\\/$]*)
  10027. # Absolute (can't be DOS-style, as IFS=:)
  10028. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10029. echo "$as_me: error: cannot find input file: $f" >&2;}
  10030. { (exit 1); exit 1; }; }
  10031. echo "$f";;
  10032. *) # Relative
  10033. if test -f "$f"; then
  10034. # Build tree
  10035. echo "$f"
  10036. elif test -f "$srcdir/$f"; then
  10037. # Source tree
  10038. echo "$srcdir/$f"
  10039. else
  10040. # /dev/null tree
  10041. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10042. echo "$as_me: error: cannot find input file: $f" >&2;}
  10043. { (exit 1); exit 1; }; }
  10044. fi;;
  10045. esac
  10046. done` || { (exit 1); exit 1; }
  10047. _ACEOF
  10048. cat >>$CONFIG_STATUS <<_ACEOF
  10049. sed "$ac_vpsub
  10050. $extrasub
  10051. _ACEOF
  10052. cat >>$CONFIG_STATUS <<\_ACEOF
  10053. :t
  10054. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10055. s,@configure_input@,$configure_input,;t t
  10056. s,@srcdir@,$ac_srcdir,;t t
  10057. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10058. s,@top_srcdir@,$ac_top_srcdir,;t t
  10059. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10060. s,@builddir@,$ac_builddir,;t t
  10061. s,@abs_builddir@,$ac_abs_builddir,;t t
  10062. s,@top_builddir@,$ac_top_builddir,;t t
  10063. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10064. s,@INSTALL@,$ac_INSTALL,;t t
  10065. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10066. rm -f $tmp/stdin
  10067. if test x"$ac_file" != x-; then
  10068. mv $tmp/out $ac_file
  10069. else
  10070. cat $tmp/out
  10071. rm -f $tmp/out
  10072. fi
  10073. # Run the commands associated with the file.
  10074. case $ac_file in
  10075. stamp-h ) echo timestamp > stamp-h ;;
  10076. contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
  10077. test-groff ) chmod +x test-groff ;;
  10078. esac
  10079. done
  10080. _ACEOF
  10081. cat >>$CONFIG_STATUS <<\_ACEOF
  10082. #
  10083. # CONFIG_HEADER section.
  10084. #
  10085. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  10086. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  10087. #
  10088. # ac_d sets the value in "#define NAME VALUE" lines.
  10089. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  10090. ac_dB='[ ].*$,\1#\2'
  10091. ac_dC=' '
  10092. ac_dD=',;t'
  10093. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  10094. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  10095. ac_uB='$,\1#\2define\3'
  10096. ac_uC=' '
  10097. ac_uD=',;t'
  10098. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  10099. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10100. case $ac_file in
  10101. - | *:- | *:-:* ) # input from stdin
  10102. cat >$tmp/stdin
  10103. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10104. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10105. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10106. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10107. * ) ac_file_in=$ac_file.in ;;
  10108. esac
  10109. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  10110. echo "$as_me: creating $ac_file" >&6;}
  10111. # First look for the input files in the build tree, otherwise in the
  10112. # src tree.
  10113. ac_file_inputs=`IFS=:
  10114. for f in $ac_file_in; do
  10115. case $f in
  10116. -) echo $tmp/stdin ;;
  10117. [\\/$]*)
  10118. # Absolute (can't be DOS-style, as IFS=:)
  10119. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10120. echo "$as_me: error: cannot find input file: $f" >&2;}
  10121. { (exit 1); exit 1; }; }
  10122. # Quote $f, to prevent DOS file names from being IFS'd.
  10123. echo "$f";;
  10124. *) # Relative
  10125. if test -f "$f"; then
  10126. # Build tree
  10127. echo "$f"
  10128. elif test -f "$srcdir/$f"; then
  10129. # Source tree
  10130. echo "$srcdir/$f"
  10131. else
  10132. # /dev/null tree
  10133. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10134. echo "$as_me: error: cannot find input file: $f" >&2;}
  10135. { (exit 1); exit 1; }; }
  10136. fi;;
  10137. esac
  10138. done` || { (exit 1); exit 1; }
  10139. # Remove the trailing spaces.
  10140. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  10141. _ACEOF
  10142. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  10143. # `conftest.undefs', that substitutes the proper values into
  10144. # config.h.in to produce config.h. The first handles `#define'
  10145. # templates, and the second `#undef' templates.
  10146. # And first: Protect against being on the right side of a sed subst in
  10147. # config.status. Protect against being in an unquoted here document
  10148. # in config.status.
  10149. rm -f conftest.defines conftest.undefs
  10150. # Using a here document instead of a string reduces the quoting nightmare.
  10151. # Putting comments in sed scripts is not portable.
  10152. #
  10153. # `end' is used to avoid that the second main sed command (meant for
  10154. # 0-ary CPP macros) applies to n-ary macro definitions.
  10155. # See the Autoconf documentation for `clear'.
  10156. cat >confdef2sed.sed <<\_ACEOF
  10157. s/[\\&,]/\\&/g
  10158. s,[\\$`],\\&,g
  10159. t clear
  10160. : clear
  10161. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  10162. t end
  10163. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  10164. : end
  10165. _ACEOF
  10166. # If some macros were called several times there might be several times
  10167. # the same #defines, which is useless. Nevertheless, we may not want to
  10168. # sort them, since we want the *last* AC-DEFINE to be honored.
  10169. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  10170. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  10171. rm -f confdef2sed.sed
  10172. # This sed command replaces #undef with comments. This is necessary, for
  10173. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10174. # on some systems where configure will not decide to define it.
  10175. cat >>conftest.undefs <<\_ACEOF
  10176. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  10177. _ACEOF
  10178. # Break up conftest.defines because some shells have a limit on the size
  10179. # of here documents, and old seds have small limits too (100 cmds).
  10180. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  10181. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  10182. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  10183. echo ' :' >>$CONFIG_STATUS
  10184. rm -f conftest.tail
  10185. while grep . conftest.defines >/dev/null
  10186. do
  10187. # Write a limited-size here document to $tmp/defines.sed.
  10188. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  10189. # Speed up: don't consider the non `#define' lines.
  10190. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  10191. # Work around the forget-to-reset-the-flag bug.
  10192. echo 't clr' >>$CONFIG_STATUS
  10193. echo ': clr' >>$CONFIG_STATUS
  10194. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  10195. echo 'CEOF
  10196. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  10197. rm -f $tmp/in
  10198. mv $tmp/out $tmp/in
  10199. ' >>$CONFIG_STATUS
  10200. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  10201. rm -f conftest.defines
  10202. mv conftest.tail conftest.defines
  10203. done
  10204. rm -f conftest.defines
  10205. echo ' fi # grep' >>$CONFIG_STATUS
  10206. echo >>$CONFIG_STATUS
  10207. # Break up conftest.undefs because some shells have a limit on the size
  10208. # of here documents, and old seds have small limits too (100 cmds).
  10209. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  10210. rm -f conftest.tail
  10211. while grep . conftest.undefs >/dev/null
  10212. do
  10213. # Write a limited-size here document to $tmp/undefs.sed.
  10214. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  10215. # Speed up: don't consider the non `#undef'
  10216. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  10217. # Work around the forget-to-reset-the-flag bug.
  10218. echo 't clr' >>$CONFIG_STATUS
  10219. echo ': clr' >>$CONFIG_STATUS
  10220. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  10221. echo 'CEOF
  10222. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  10223. rm -f $tmp/in
  10224. mv $tmp/out $tmp/in
  10225. ' >>$CONFIG_STATUS
  10226. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  10227. rm -f conftest.undefs
  10228. mv conftest.tail conftest.undefs
  10229. done
  10230. rm -f conftest.undefs
  10231. cat >>$CONFIG_STATUS <<\_ACEOF
  10232. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10233. # use $as_me), people would be surprised to read:
  10234. # /* config.h. Generated by config.status. */
  10235. if test x"$ac_file" = x-; then
  10236. echo "/* Generated by configure. */" >$tmp/config.h
  10237. else
  10238. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  10239. fi
  10240. cat $tmp/in >>$tmp/config.h
  10241. rm -f $tmp/in
  10242. if test x"$ac_file" != x-; then
  10243. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  10244. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  10245. echo "$as_me: $ac_file is unchanged" >&6;}
  10246. else
  10247. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10248. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10249. X"$ac_file" : 'X\(//\)[^/]' \| \
  10250. X"$ac_file" : 'X\(//\)$' \| \
  10251. X"$ac_file" : 'X\(/\)' \| \
  10252. . : '\(.\)' 2>/dev/null ||
  10253. echo X"$ac_file" |
  10254. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10255. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10256. /^X\(\/\/\)$/{ s//\1/; q; }
  10257. /^X\(\/\).*/{ s//\1/; q; }
  10258. s/.*/./; q'`
  10259. { if $as_mkdir_p; then
  10260. test -d "$ac_dir" || mkdir -p "$ac_dir"
  10261. else
  10262. as_dir="$ac_dir"
  10263. as_dirs=
  10264. while test ! -d "$as_dir"; do
  10265. as_dirs="$as_dir $as_dirs"
  10266. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10267. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10268. X"$as_dir" : 'X\(//\)[^/]' \| \
  10269. X"$as_dir" : 'X\(//\)$' \| \
  10270. X"$as_dir" : 'X\(/\)' \| \
  10271. . : '\(.\)' 2>/dev/null ||
  10272. echo X"$as_dir" |
  10273. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10274. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10275. /^X\(\/\/\)$/{ s//\1/; q; }
  10276. /^X\(\/\).*/{ s//\1/; q; }
  10277. s/.*/./; q'`
  10278. done
  10279. test ! -n "$as_dirs" || mkdir $as_dirs
  10280. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10281. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10282. { (exit 1); exit 1; }; }; }
  10283. rm -f $ac_file
  10284. mv $tmp/config.h $ac_file
  10285. fi
  10286. else
  10287. cat $tmp/config.h
  10288. rm -f $tmp/config.h
  10289. fi
  10290. done
  10291. _ACEOF
  10292. cat >>$CONFIG_STATUS <<\_ACEOF
  10293. { (exit 0); exit 0; }
  10294. _ACEOF
  10295. chmod +x $CONFIG_STATUS
  10296. ac_clean_files=$ac_clean_files_save
  10297. # configure is writing to config.log, and then calls config.status.
  10298. # config.status does its own redirection, appending to config.log.
  10299. # Unfortunately, on DOS this fails, as config.log is still kept open
  10300. # by configure, so config.status won't be able to write to it; its
  10301. # output is simply discarded. So we exec the FD to /dev/null,
  10302. # effectively closing config.log, so it can be properly (re)opened and
  10303. # appended to by config.status. When coming back to configure, we
  10304. # need to make the FD available again.
  10305. if test "$no_create" != yes; then
  10306. ac_cs_success=:
  10307. ac_config_status_args=
  10308. test "$silent" = yes &&
  10309. ac_config_status_args="$ac_config_status_args --quiet"
  10310. exec 5>/dev/null
  10311. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10312. exec 5>>config.log
  10313. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10314. # would make configure fail if this is the last instruction.
  10315. $ac_cs_success || { (exit 1); exit 1; }
  10316. fi
  10317. if test -z "$groff_no_x"; then
  10318. if test "x$with_appresdir" = "x"; then
  10319. { echo "$as_me:$LINENO:
  10320. The application resource file for gxditview will be installed as
  10321. $appresdir/GXditview
  10322. (an existing file will be saved as \`GXditview.old').
  10323. To install it into a different directory, say, \`/etc/gxditview',
  10324. add \`--with-appresdir=/etc/gxditview' to the configure script
  10325. command line options and rerun it. The environment variable
  10326. \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
  10327. omitting the \`gxditview' part which is automatically appended by
  10328. the X11 searching routines for resource files. More details can be
  10329. found in the X(7) manual page.
  10330. " >&5
  10331. echo "$as_me:
  10332. The application resource file for gxditview will be installed as
  10333. $appresdir/GXditview
  10334. (an existing file will be saved as \`GXditview.old').
  10335. To install it into a different directory, say, \`/etc/gxditview',
  10336. add \`--with-appresdir=/etc/gxditview' to the configure script
  10337. command line options and rerun it. The environment variable
  10338. \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
  10339. omitting the \`gxditview' part which is automatically appended by
  10340. the X11 searching routines for resource files. More details can be
  10341. found in the X(7) manual page.
  10342. " >&6;}
  10343. fi
  10344. fi