PageRenderTime 76ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 1ms

/configure

https://bitbucket.org/mike_php_net/mod-domaintree
Shell | 4959 lines | 4171 code | 410 blank | 378 comment | 384 complexity | 75efb2771def1ac2586c5f783708e0e0 MD5 | raw file
Possible License(s): Apache-2.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for mod_domaintree 1.6.
  4. #
  5. # Report bugs to <mike@iworks.at>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='mod_domaintree'
  494. PACKAGE_TARNAME='mod_domaintree'
  495. PACKAGE_VERSION='1.6'
  496. PACKAGE_STRING='mod_domaintree 1.6'
  497. PACKAGE_BUGREPORT='mike@iworks.at'
  498. ac_unique_file="mod_domaintree.c"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. ac_subst_vars='SHELL
  535. PATH_SEPARATOR
  536. PACKAGE_NAME
  537. PACKAGE_TARNAME
  538. PACKAGE_VERSION
  539. PACKAGE_STRING
  540. PACKAGE_BUGREPORT
  541. exec_prefix
  542. prefix
  543. program_transform_name
  544. bindir
  545. sbindir
  546. libexecdir
  547. datarootdir
  548. datadir
  549. sysconfdir
  550. sharedstatedir
  551. localstatedir
  552. includedir
  553. oldincludedir
  554. docdir
  555. infodir
  556. htmldir
  557. dvidir
  558. pdfdir
  559. psdir
  560. libdir
  561. localedir
  562. mandir
  563. DEFS
  564. ECHO_C
  565. ECHO_N
  566. ECHO_T
  567. LIBS
  568. build_alias
  569. host_alias
  570. target_alias
  571. CC
  572. CFLAGS
  573. LDFLAGS
  574. CPPFLAGS
  575. ac_ct_CC
  576. EXEEXT
  577. OBJEXT
  578. CPP
  579. GREP
  580. EGREP
  581. APXS2
  582. LIBOBJS
  583. LTLIBOBJS'
  584. ac_subst_files=''
  585. ac_precious_vars='build_alias
  586. host_alias
  587. target_alias
  588. CC
  589. CFLAGS
  590. LDFLAGS
  591. LIBS
  592. CPPFLAGS
  593. CPP'
  594. # Initialize some variables set by options.
  595. ac_init_help=
  596. ac_init_version=false
  597. # The variables have the same names as the options, with
  598. # dashes changed to underlines.
  599. cache_file=/dev/null
  600. exec_prefix=NONE
  601. no_create=
  602. no_recursion=
  603. prefix=NONE
  604. program_prefix=NONE
  605. program_suffix=NONE
  606. program_transform_name=s,x,x,
  607. silent=
  608. site=
  609. srcdir=
  610. verbose=
  611. x_includes=NONE
  612. x_libraries=NONE
  613. # Installation directory options.
  614. # These are left unexpanded so users can "make install exec_prefix=/foo"
  615. # and all the variables that are supposed to be based on exec_prefix
  616. # by default will actually change.
  617. # Use braces instead of parens because sh, perl, etc. also accept them.
  618. # (The list follows the same order as the GNU Coding Standards.)
  619. bindir='${exec_prefix}/bin'
  620. sbindir='${exec_prefix}/sbin'
  621. libexecdir='${exec_prefix}/libexec'
  622. datarootdir='${prefix}/share'
  623. datadir='${datarootdir}'
  624. sysconfdir='${prefix}/etc'
  625. sharedstatedir='${prefix}/com'
  626. localstatedir='${prefix}/var'
  627. includedir='${prefix}/include'
  628. oldincludedir='/usr/include'
  629. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  630. infodir='${datarootdir}/info'
  631. htmldir='${docdir}'
  632. dvidir='${docdir}'
  633. pdfdir='${docdir}'
  634. psdir='${docdir}'
  635. libdir='${exec_prefix}/lib'
  636. localedir='${datarootdir}/locale'
  637. mandir='${datarootdir}/man'
  638. ac_prev=
  639. ac_dashdash=
  640. for ac_option
  641. do
  642. # If the previous option needs an argument, assign it.
  643. if test -n "$ac_prev"; then
  644. eval $ac_prev=\$ac_option
  645. ac_prev=
  646. continue
  647. fi
  648. case $ac_option in
  649. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  650. *) ac_optarg=yes ;;
  651. esac
  652. # Accept the important Cygnus configure options, so we can diagnose typos.
  653. case $ac_dashdash$ac_option in
  654. --)
  655. ac_dashdash=yes ;;
  656. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  657. ac_prev=bindir ;;
  658. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  659. bindir=$ac_optarg ;;
  660. -build | --build | --buil | --bui | --bu)
  661. ac_prev=build_alias ;;
  662. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  663. build_alias=$ac_optarg ;;
  664. -cache-file | --cache-file | --cache-fil | --cache-fi \
  665. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  666. ac_prev=cache_file ;;
  667. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  668. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  669. cache_file=$ac_optarg ;;
  670. --config-cache | -C)
  671. cache_file=config.cache ;;
  672. -datadir | --datadir | --datadi | --datad)
  673. ac_prev=datadir ;;
  674. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  675. datadir=$ac_optarg ;;
  676. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  677. | --dataroo | --dataro | --datar)
  678. ac_prev=datarootdir ;;
  679. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  680. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  681. datarootdir=$ac_optarg ;;
  682. -disable-* | --disable-*)
  683. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  684. # Reject names that are not valid shell variable names.
  685. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  686. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  687. { (exit 1); exit 1; }; }
  688. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  689. eval enable_$ac_feature=no ;;
  690. -docdir | --docdir | --docdi | --doc | --do)
  691. ac_prev=docdir ;;
  692. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  693. docdir=$ac_optarg ;;
  694. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  695. ac_prev=dvidir ;;
  696. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  697. dvidir=$ac_optarg ;;
  698. -enable-* | --enable-*)
  699. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  700. # Reject names that are not valid shell variable names.
  701. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  702. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  703. { (exit 1); exit 1; }; }
  704. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  705. eval enable_$ac_feature=\$ac_optarg ;;
  706. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  707. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  708. | --exec | --exe | --ex)
  709. ac_prev=exec_prefix ;;
  710. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  711. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  712. | --exec=* | --exe=* | --ex=*)
  713. exec_prefix=$ac_optarg ;;
  714. -gas | --gas | --ga | --g)
  715. # Obsolete; use --with-gas.
  716. with_gas=yes ;;
  717. -help | --help | --hel | --he | -h)
  718. ac_init_help=long ;;
  719. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  720. ac_init_help=recursive ;;
  721. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  722. ac_init_help=short ;;
  723. -host | --host | --hos | --ho)
  724. ac_prev=host_alias ;;
  725. -host=* | --host=* | --hos=* | --ho=*)
  726. host_alias=$ac_optarg ;;
  727. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  728. ac_prev=htmldir ;;
  729. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  730. | --ht=*)
  731. htmldir=$ac_optarg ;;
  732. -includedir | --includedir | --includedi | --included | --include \
  733. | --includ | --inclu | --incl | --inc)
  734. ac_prev=includedir ;;
  735. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  736. | --includ=* | --inclu=* | --incl=* | --inc=*)
  737. includedir=$ac_optarg ;;
  738. -infodir | --infodir | --infodi | --infod | --info | --inf)
  739. ac_prev=infodir ;;
  740. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  741. infodir=$ac_optarg ;;
  742. -libdir | --libdir | --libdi | --libd)
  743. ac_prev=libdir ;;
  744. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  745. libdir=$ac_optarg ;;
  746. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  747. | --libexe | --libex | --libe)
  748. ac_prev=libexecdir ;;
  749. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  750. | --libexe=* | --libex=* | --libe=*)
  751. libexecdir=$ac_optarg ;;
  752. -localedir | --localedir | --localedi | --localed | --locale)
  753. ac_prev=localedir ;;
  754. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  755. localedir=$ac_optarg ;;
  756. -localstatedir | --localstatedir | --localstatedi | --localstated \
  757. | --localstate | --localstat | --localsta | --localst | --locals)
  758. ac_prev=localstatedir ;;
  759. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  760. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  761. localstatedir=$ac_optarg ;;
  762. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  763. ac_prev=mandir ;;
  764. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  765. mandir=$ac_optarg ;;
  766. -nfp | --nfp | --nf)
  767. # Obsolete; use --without-fp.
  768. with_fp=no ;;
  769. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  770. | --no-cr | --no-c | -n)
  771. no_create=yes ;;
  772. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  773. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  774. no_recursion=yes ;;
  775. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  776. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  777. | --oldin | --oldi | --old | --ol | --o)
  778. ac_prev=oldincludedir ;;
  779. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  780. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  781. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  782. oldincludedir=$ac_optarg ;;
  783. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  784. ac_prev=prefix ;;
  785. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  786. prefix=$ac_optarg ;;
  787. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  788. | --program-pre | --program-pr | --program-p)
  789. ac_prev=program_prefix ;;
  790. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  791. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  792. program_prefix=$ac_optarg ;;
  793. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  794. | --program-suf | --program-su | --program-s)
  795. ac_prev=program_suffix ;;
  796. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  797. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  798. program_suffix=$ac_optarg ;;
  799. -program-transform-name | --program-transform-name \
  800. | --program-transform-nam | --program-transform-na \
  801. | --program-transform-n | --program-transform- \
  802. | --program-transform | --program-transfor \
  803. | --program-transfo | --program-transf \
  804. | --program-trans | --program-tran \
  805. | --progr-tra | --program-tr | --program-t)
  806. ac_prev=program_transform_name ;;
  807. -program-transform-name=* | --program-transform-name=* \
  808. | --program-transform-nam=* | --program-transform-na=* \
  809. | --program-transform-n=* | --program-transform-=* \
  810. | --program-transform=* | --program-transfor=* \
  811. | --program-transfo=* | --program-transf=* \
  812. | --program-trans=* | --program-tran=* \
  813. | --progr-tra=* | --program-tr=* | --program-t=*)
  814. program_transform_name=$ac_optarg ;;
  815. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  816. ac_prev=pdfdir ;;
  817. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  818. pdfdir=$ac_optarg ;;
  819. -psdir | --psdir | --psdi | --psd | --ps)
  820. ac_prev=psdir ;;
  821. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  822. psdir=$ac_optarg ;;
  823. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  824. | -silent | --silent | --silen | --sile | --sil)
  825. silent=yes ;;
  826. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  827. ac_prev=sbindir ;;
  828. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  829. | --sbi=* | --sb=*)
  830. sbindir=$ac_optarg ;;
  831. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  832. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  833. | --sharedst | --shareds | --shared | --share | --shar \
  834. | --sha | --sh)
  835. ac_prev=sharedstatedir ;;
  836. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  837. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  838. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  839. | --sha=* | --sh=*)
  840. sharedstatedir=$ac_optarg ;;
  841. -site | --site | --sit)
  842. ac_prev=site ;;
  843. -site=* | --site=* | --sit=*)
  844. site=$ac_optarg ;;
  845. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  846. ac_prev=srcdir ;;
  847. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  848. srcdir=$ac_optarg ;;
  849. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  850. | --syscon | --sysco | --sysc | --sys | --sy)
  851. ac_prev=sysconfdir ;;
  852. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  853. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  854. sysconfdir=$ac_optarg ;;
  855. -target | --target | --targe | --targ | --tar | --ta | --t)
  856. ac_prev=target_alias ;;
  857. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  858. target_alias=$ac_optarg ;;
  859. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  860. verbose=yes ;;
  861. -version | --version | --versio | --versi | --vers | -V)
  862. ac_init_version=: ;;
  863. -with-* | --with-*)
  864. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  865. # Reject names that are not valid shell variable names.
  866. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  867. { echo "$as_me: error: invalid package name: $ac_package" >&2
  868. { (exit 1); exit 1; }; }
  869. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  870. eval with_$ac_package=\$ac_optarg ;;
  871. -without-* | --without-*)
  872. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  873. # Reject names that are not valid shell variable names.
  874. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  875. { echo "$as_me: error: invalid package name: $ac_package" >&2
  876. { (exit 1); exit 1; }; }
  877. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  878. eval with_$ac_package=no ;;
  879. --x)
  880. # Obsolete; use --with-x.
  881. with_x=yes ;;
  882. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  883. | --x-incl | --x-inc | --x-in | --x-i)
  884. ac_prev=x_includes ;;
  885. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  886. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  887. x_includes=$ac_optarg ;;
  888. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  889. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  890. ac_prev=x_libraries ;;
  891. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  892. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  893. x_libraries=$ac_optarg ;;
  894. -*) { echo "$as_me: error: unrecognized option: $ac_option
  895. Try \`$0 --help' for more information." >&2
  896. { (exit 1); exit 1; }; }
  897. ;;
  898. *=*)
  899. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  900. # Reject names that are not valid shell variable names.
  901. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  902. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  903. { (exit 1); exit 1; }; }
  904. eval $ac_envvar=\$ac_optarg
  905. export $ac_envvar ;;
  906. *)
  907. # FIXME: should be removed in autoconf 3.0.
  908. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  909. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  910. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  911. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  912. ;;
  913. esac
  914. done
  915. if test -n "$ac_prev"; then
  916. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  917. { echo "$as_me: error: missing argument to $ac_option" >&2
  918. { (exit 1); exit 1; }; }
  919. fi
  920. # Be sure to have absolute directory names.
  921. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  922. datadir sysconfdir sharedstatedir localstatedir includedir \
  923. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  924. libdir localedir mandir
  925. do
  926. eval ac_val=\$$ac_var
  927. case $ac_val in
  928. [\\/$]* | ?:[\\/]* ) continue;;
  929. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  930. esac
  931. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  932. { (exit 1); exit 1; }; }
  933. done
  934. # There might be people who depend on the old broken behavior: `$host'
  935. # used to hold the argument of --host etc.
  936. # FIXME: To remove some day.
  937. build=$build_alias
  938. host=$host_alias
  939. target=$target_alias
  940. # FIXME: To remove some day.
  941. if test "x$host_alias" != x; then
  942. if test "x$build_alias" = x; then
  943. cross_compiling=maybe
  944. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  945. If a cross compiler is detected then cross compile mode will be used." >&2
  946. elif test "x$build_alias" != "x$host_alias"; then
  947. cross_compiling=yes
  948. fi
  949. fi
  950. ac_tool_prefix=
  951. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  952. test "$silent" = yes && exec 6>/dev/null
  953. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  954. ac_ls_di=`ls -di .` &&
  955. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  956. { echo "$as_me: error: Working directory cannot be determined" >&2
  957. { (exit 1); exit 1; }; }
  958. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  959. { echo "$as_me: error: pwd does not report name of working directory" >&2
  960. { (exit 1); exit 1; }; }
  961. # Find the source files, if location was not specified.
  962. if test -z "$srcdir"; then
  963. ac_srcdir_defaulted=yes
  964. # Try the directory containing this script, then the parent directory.
  965. ac_confdir=`$as_dirname -- "$0" ||
  966. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  967. X"$0" : 'X\(//\)[^/]' \| \
  968. X"$0" : 'X\(//\)$' \| \
  969. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  970. echo X"$0" |
  971. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  972. s//\1/
  973. q
  974. }
  975. /^X\(\/\/\)[^/].*/{
  976. s//\1/
  977. q
  978. }
  979. /^X\(\/\/\)$/{
  980. s//\1/
  981. q
  982. }
  983. /^X\(\/\).*/{
  984. s//\1/
  985. q
  986. }
  987. s/.*/./; q'`
  988. srcdir=$ac_confdir
  989. if test ! -r "$srcdir/$ac_unique_file"; then
  990. srcdir=..
  991. fi
  992. else
  993. ac_srcdir_defaulted=no
  994. fi
  995. if test ! -r "$srcdir/$ac_unique_file"; then
  996. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  997. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  998. { (exit 1); exit 1; }; }
  999. fi
  1000. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1001. ac_abs_confdir=`(
  1002. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1003. { (exit 1); exit 1; }; }
  1004. pwd)`
  1005. # When building in place, set srcdir=.
  1006. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1007. srcdir=.
  1008. fi
  1009. # Remove unnecessary trailing slashes from srcdir.
  1010. # Double slashes in file names in object file debugging info
  1011. # mess up M-x gdb in Emacs.
  1012. case $srcdir in
  1013. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1014. esac
  1015. for ac_var in $ac_precious_vars; do
  1016. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1017. eval ac_env_${ac_var}_value=\$${ac_var}
  1018. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1019. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1020. done
  1021. #
  1022. # Report the --help message.
  1023. #
  1024. if test "$ac_init_help" = "long"; then
  1025. # Omit some internal or obsolete options to make the list less imposing.
  1026. # This message is too long to be a string in the A/UX 3.1 sh.
  1027. cat <<_ACEOF
  1028. \`configure' configures mod_domaintree 1.6 to adapt to many kinds of systems.
  1029. Usage: $0 [OPTION]... [VAR=VALUE]...
  1030. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1031. VAR=VALUE. See below for descriptions of some of the useful variables.
  1032. Defaults for the options are specified in brackets.
  1033. Configuration:
  1034. -h, --help display this help and exit
  1035. --help=short display options specific to this package
  1036. --help=recursive display the short help of all the included packages
  1037. -V, --version display version information and exit
  1038. -q, --quiet, --silent do not print \`checking...' messages
  1039. --cache-file=FILE cache test results in FILE [disabled]
  1040. -C, --config-cache alias for \`--cache-file=config.cache'
  1041. -n, --no-create do not create output files
  1042. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1043. Installation directories:
  1044. --prefix=PREFIX install architecture-independent files in PREFIX
  1045. [$ac_default_prefix]
  1046. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1047. [PREFIX]
  1048. By default, \`make install' will install all the files in
  1049. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1050. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1051. for instance \`--prefix=\$HOME'.
  1052. For better control, use the options below.
  1053. Fine tuning of the installation directories:
  1054. --bindir=DIR user executables [EPREFIX/bin]
  1055. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1056. --libexecdir=DIR program executables [EPREFIX/libexec]
  1057. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1058. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1059. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1060. --libdir=DIR object code libraries [EPREFIX/lib]
  1061. --includedir=DIR C header files [PREFIX/include]
  1062. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1063. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1064. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1065. --infodir=DIR info documentation [DATAROOTDIR/info]
  1066. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1067. --mandir=DIR man documentation [DATAROOTDIR/man]
  1068. --docdir=DIR documentation root [DATAROOTDIR/doc/mod_domaintree]
  1069. --htmldir=DIR html documentation [DOCDIR]
  1070. --dvidir=DIR dvi documentation [DOCDIR]
  1071. --pdfdir=DIR pdf documentation [DOCDIR]
  1072. --psdir=DIR ps documentation [DOCDIR]
  1073. _ACEOF
  1074. cat <<\_ACEOF
  1075. _ACEOF
  1076. fi
  1077. if test -n "$ac_init_help"; then
  1078. case $ac_init_help in
  1079. short | recursive ) echo "Configuration of mod_domaintree 1.6:";;
  1080. esac
  1081. cat <<\_ACEOF
  1082. Optional Packages:
  1083. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1084. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1085. --with-apxs2 where the apxs2 tool is located
  1086. Some influential environment variables:
  1087. CC C compiler command
  1088. CFLAGS C compiler flags
  1089. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1090. nonstandard directory <lib dir>
  1091. LIBS libraries to pass to the linker, e.g. -l<library>
  1092. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1093. you have headers in a nonstandard directory <include dir>
  1094. CPP C preprocessor
  1095. Use these variables to override the choices made by `configure' or to help
  1096. it to find libraries and programs with nonstandard names/locations.
  1097. Report bugs to <mike@iworks.at>.
  1098. _ACEOF
  1099. ac_status=$?
  1100. fi
  1101. if test "$ac_init_help" = "recursive"; then
  1102. # If there are subdirs, report their specific --help.
  1103. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1104. test -d "$ac_dir" || continue
  1105. ac_builddir=.
  1106. case "$ac_dir" in
  1107. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1108. *)
  1109. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1110. # A ".." for each directory in $ac_dir_suffix.
  1111. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1112. case $ac_top_builddir_sub in
  1113. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1114. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1115. esac ;;
  1116. esac
  1117. ac_abs_top_builddir=$ac_pwd
  1118. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1119. # for backward compatibility:
  1120. ac_top_builddir=$ac_top_build_prefix
  1121. case $srcdir in
  1122. .) # We are building in place.
  1123. ac_srcdir=.
  1124. ac_top_srcdir=$ac_top_builddir_sub
  1125. ac_abs_top_srcdir=$ac_pwd ;;
  1126. [\\/]* | ?:[\\/]* ) # Absolute name.
  1127. ac_srcdir=$srcdir$ac_dir_suffix;
  1128. ac_top_srcdir=$srcdir
  1129. ac_abs_top_srcdir=$srcdir ;;
  1130. *) # Relative name.
  1131. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1132. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1133. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1134. esac
  1135. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1136. cd "$ac_dir" || { ac_status=$?; continue; }
  1137. # Check for guested configure.
  1138. if test -f "$ac_srcdir/configure.gnu"; then
  1139. echo &&
  1140. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1141. elif test -f "$ac_srcdir/configure"; then
  1142. echo &&
  1143. $SHELL "$ac_srcdir/configure" --help=recursive
  1144. else
  1145. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1146. fi || ac_status=$?
  1147. cd "$ac_pwd" || { ac_status=$?; break; }
  1148. done
  1149. fi
  1150. test -n "$ac_init_help" && exit $ac_status
  1151. if $ac_init_version; then
  1152. cat <<\_ACEOF
  1153. mod_domaintree configure 1.6
  1154. generated by GNU Autoconf 2.61
  1155. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1156. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1157. This configure script is free software; the Free Software Foundation
  1158. gives unlimited permission to copy, distribute and modify it.
  1159. _ACEOF
  1160. exit
  1161. fi
  1162. cat >config.log <<_ACEOF
  1163. This file contains any messages produced by compilers while
  1164. running configure, to aid debugging if configure makes a mistake.
  1165. It was created by mod_domaintree $as_me 1.6, which was
  1166. generated by GNU Autoconf 2.61. Invocation command line was
  1167. $ $0 $@
  1168. _ACEOF
  1169. exec 5>>config.log
  1170. {
  1171. cat <<_ASUNAME
  1172. ## --------- ##
  1173. ## Platform. ##
  1174. ## --------- ##
  1175. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1176. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1177. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1178. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1179. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1180. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1181. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1182. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1183. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1184. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1185. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1186. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1187. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1188. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1189. _ASUNAME
  1190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1191. for as_dir in $PATH
  1192. do
  1193. IFS=$as_save_IFS
  1194. test -z "$as_dir" && as_dir=.
  1195. echo "PATH: $as_dir"
  1196. done
  1197. IFS=$as_save_IFS
  1198. } >&5
  1199. cat >&5 <<_ACEOF
  1200. ## ----------- ##
  1201. ## Core tests. ##
  1202. ## ----------- ##
  1203. _ACEOF
  1204. # Keep a trace of the command line.
  1205. # Strip out --no-create and --no-recursion so they do not pile up.
  1206. # Strip out --silent because we don't want to record it for future runs.
  1207. # Also quote any args containing shell meta-characters.
  1208. # Make two passes to allow for proper duplicate-argument suppression.
  1209. ac_configure_args=
  1210. ac_configure_args0=
  1211. ac_configure_args1=
  1212. ac_must_keep_next=false
  1213. for ac_pass in 1 2
  1214. do
  1215. for ac_arg
  1216. do
  1217. case $ac_arg in
  1218. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1219. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1220. | -silent | --silent | --silen | --sile | --sil)
  1221. continue ;;
  1222. *\'*)
  1223. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1224. esac
  1225. case $ac_pass in
  1226. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1227. 2)
  1228. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1229. if test $ac_must_keep_next = true; then
  1230. ac_must_keep_next=false # Got value, back to normal.
  1231. else
  1232. case $ac_arg in
  1233. *=* | --config-cache | -C | -disable-* | --disable-* \
  1234. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1235. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1236. | -with-* | --with-* | -without-* | --without-* | --x)
  1237. case "$ac_configure_args0 " in
  1238. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1239. esac
  1240. ;;
  1241. -* ) ac_must_keep_next=true ;;
  1242. esac
  1243. fi
  1244. ac_configure_args="$ac_configure_args '$ac_arg'"
  1245. ;;
  1246. esac
  1247. done
  1248. done
  1249. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1250. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1251. # When interrupted or exit'd, cleanup temporary files, and complete
  1252. # config.log. We remove comments because anyway the quotes in there
  1253. # would cause problems or look ugly.
  1254. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1255. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1256. trap 'exit_status=$?
  1257. # Save into config.log some information that might help in debugging.
  1258. {
  1259. echo
  1260. cat <<\_ASBOX
  1261. ## ---------------- ##
  1262. ## Cache variables. ##
  1263. ## ---------------- ##
  1264. _ASBOX
  1265. echo
  1266. # The following way of writing the cache mishandles newlines in values,
  1267. (
  1268. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1269. eval ac_val=\$$ac_var
  1270. case $ac_val in #(
  1271. *${as_nl}*)
  1272. case $ac_var in #(
  1273. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1274. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1275. esac
  1276. case $ac_var in #(
  1277. _ | IFS | as_nl) ;; #(
  1278. *) $as_unset $ac_var ;;
  1279. esac ;;
  1280. esac
  1281. done
  1282. (set) 2>&1 |
  1283. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1284. *${as_nl}ac_space=\ *)
  1285. sed -n \
  1286. "s/'\''/'\''\\\\'\'''\''/g;
  1287. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1288. ;; #(
  1289. *)
  1290. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1291. ;;
  1292. esac |
  1293. sort
  1294. )
  1295. echo
  1296. cat <<\_ASBOX
  1297. ## ----------------- ##
  1298. ## Output variables. ##
  1299. ## ----------------- ##
  1300. _ASBOX
  1301. echo
  1302. for ac_var in $ac_subst_vars
  1303. do
  1304. eval ac_val=\$$ac_var
  1305. case $ac_val in
  1306. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1307. esac
  1308. echo "$ac_var='\''$ac_val'\''"
  1309. done | sort
  1310. echo
  1311. if test -n "$ac_subst_files"; then
  1312. cat <<\_ASBOX
  1313. ## ------------------- ##
  1314. ## File substitutions. ##
  1315. ## ------------------- ##
  1316. _ASBOX
  1317. echo
  1318. for ac_var in $ac_subst_files
  1319. do
  1320. eval ac_val=\$$ac_var
  1321. case $ac_val in
  1322. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1323. esac
  1324. echo "$ac_var='\''$ac_val'\''"
  1325. done | sort
  1326. echo
  1327. fi
  1328. if test -s confdefs.h; then
  1329. cat <<\_ASBOX
  1330. ## ----------- ##
  1331. ## confdefs.h. ##
  1332. ## ----------- ##
  1333. _ASBOX
  1334. echo
  1335. cat confdefs.h
  1336. echo
  1337. fi
  1338. test "$ac_signal" != 0 &&
  1339. echo "$as_me: caught signal $ac_signal"
  1340. echo "$as_me: exit $exit_status"
  1341. } >&5
  1342. rm -f core *.core core.conftest.* &&
  1343. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1344. exit $exit_status
  1345. ' 0
  1346. for ac_signal in 1 2 13 15; do
  1347. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1348. done
  1349. ac_signal=0
  1350. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1351. rm -f -r conftest* confdefs.h
  1352. # Predefined preprocessor variables.
  1353. cat >>confdefs.h <<_ACEOF
  1354. #define PACKAGE_NAME "$PACKAGE_NAME"
  1355. _ACEOF
  1356. cat >>confdefs.h <<_ACEOF
  1357. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1358. _ACEOF
  1359. cat >>confdefs.h <<_ACEOF
  1360. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1361. _ACEOF
  1362. cat >>confdefs.h <<_ACEOF
  1363. #define PACKAGE_STRING "$PACKAGE_STRING"
  1364. _ACEOF
  1365. cat >>confdefs.h <<_ACEOF
  1366. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1367. _ACEOF
  1368. # Let the site file select an alternate cache file if it wants to.
  1369. # Prefer explicitly selected file to automatically selected ones.
  1370. if test -n "$CONFIG_SITE"; then
  1371. set x "$CONFIG_SITE"
  1372. elif test "x$prefix" != xNONE; then
  1373. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1374. else
  1375. set x "$ac_default_prefix/share/config.site" \
  1376. "$ac_default_prefix/etc/config.site"
  1377. fi
  1378. shift
  1379. for ac_site_file
  1380. do
  1381. if test -r "$ac_site_file"; then
  1382. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1383. echo "$as_me: loading site script $ac_site_file" >&6;}
  1384. sed 's/^/| /' "$ac_site_file" >&5
  1385. . "$ac_site_file"
  1386. fi
  1387. done
  1388. if test -r "$cache_file"; then
  1389. # Some versions of bash will fail to source /dev/null (special
  1390. # files actually), so we avoid doing that.
  1391. if test -f "$cache_file"; then
  1392. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1393. echo "$as_me: loading cache $cache_file" >&6;}
  1394. case $cache_file in
  1395. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1396. *) . "./$cache_file";;
  1397. esac
  1398. fi
  1399. else
  1400. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1401. echo "$as_me: creating cache $cache_file" >&6;}
  1402. >$cache_file
  1403. fi
  1404. # Check that the precious variables saved in the cache have kept the same
  1405. # value.
  1406. ac_cache_corrupted=false
  1407. for ac_var in $ac_precious_vars; do
  1408. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1409. eval ac_new_set=\$ac_env_${ac_var}_set
  1410. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1411. eval ac_new_val=\$ac_env_${ac_var}_value
  1412. case $ac_old_set,$ac_new_set in
  1413. set,)
  1414. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1415. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1416. ac_cache_corrupted=: ;;
  1417. ,set)
  1418. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1419. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1420. ac_cache_corrupted=: ;;
  1421. ,);;
  1422. *)
  1423. if test "x$ac_old_val" != "x$ac_new_val"; then
  1424. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1425. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1426. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1427. echo "$as_me: former value: $ac_old_val" >&2;}
  1428. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1429. echo "$as_me: current value: $ac_new_val" >&2;}
  1430. ac_cache_corrupted=:
  1431. fi;;
  1432. esac
  1433. # Pass precious variables to config.status.
  1434. if test "$ac_new_set" = set; then
  1435. case $ac_new_val in
  1436. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1437. *) ac_arg=$ac_var=$ac_new_val ;;
  1438. esac
  1439. case " $ac_configure_args " in
  1440. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1441. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1442. esac
  1443. fi
  1444. done
  1445. if $ac_cache_corrupted; then
  1446. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1447. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1448. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1449. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1450. { (exit 1); exit 1; }; }
  1451. fi
  1452. ac_ext=c
  1453. ac_cpp='$CPP $CPPFLAGS'
  1454. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1455. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1456. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1457. ac_config_headers="$ac_config_headers config.h"
  1458. ac_ext=c
  1459. ac_cpp='$CPP $CPPFLAGS'
  1460. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1461. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1462. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1463. if test -n "$ac_tool_prefix"; then
  1464. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1465. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1466. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1467. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1468. if test "${ac_cv_prog_CC+set}" = set; then
  1469. echo $ECHO_N "(cached) $ECHO_C" >&6
  1470. else
  1471. if test -n "$CC"; then
  1472. ac_cv_prog_CC="$CC" # Let the user override the test.
  1473. else
  1474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1475. for as_dir in $PATH
  1476. do
  1477. IFS=$as_save_IFS
  1478. test -z "$as_dir" && as_dir=.
  1479. for ac_exec_ext in '' $ac_executable_extensions; do
  1480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1481. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1482. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1483. break 2
  1484. fi
  1485. done
  1486. done
  1487. IFS=$as_save_IFS
  1488. fi
  1489. fi
  1490. CC=$ac_cv_prog_CC
  1491. if test -n "$CC"; then
  1492. { echo "$as_me:$LINENO: result: $CC" >&5
  1493. echo "${ECHO_T}$CC" >&6; }
  1494. else
  1495. { echo "$as_me:$LINENO: result: no" >&5
  1496. echo "${ECHO_T}no" >&6; }
  1497. fi
  1498. fi
  1499. if test -z "$ac_cv_prog_CC"; then
  1500. ac_ct_CC=$CC
  1501. # Extract the first word of "gcc", so it can be a program name with args.
  1502. set dummy gcc; ac_word=$2
  1503. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1504. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1505. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1506. echo $ECHO_N "(cached) $ECHO_C" >&6
  1507. else
  1508. if test -n "$ac_ct_CC"; then
  1509. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1510. else
  1511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1512. for as_dir in $PATH
  1513. do
  1514. IFS=$as_save_IFS
  1515. test -z "$as_dir" && as_dir=.
  1516. for ac_exec_ext in '' $ac_executable_extensions; do
  1517. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1518. ac_cv_prog_ac_ct_CC="gcc"
  1519. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1520. break 2
  1521. fi
  1522. done
  1523. done
  1524. IFS=$as_save_IFS
  1525. fi
  1526. fi
  1527. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1528. if test -n "$ac_ct_CC"; then
  1529. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1530. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1531. else
  1532. { echo "$as_me:$LINENO: result: no" >&5
  1533. echo "${ECHO_T}no" >&6; }
  1534. fi
  1535. if test "x$ac_ct_CC" = x; then
  1536. CC=""
  1537. else
  1538. case $cross_compiling:$ac_tool_warned in
  1539. yes:)
  1540. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1541. whose name does not start with the host triplet. If you think this
  1542. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1543. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1544. whose name does not start with the host triplet. If you think this
  1545. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1546. ac_tool_warned=yes ;;
  1547. esac
  1548. CC=$ac_ct_CC
  1549. fi
  1550. else
  1551. CC="$ac_cv_prog_CC"
  1552. fi
  1553. if test -z "$CC"; then
  1554. if test -n "$ac_tool_prefix"; then
  1555. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1556. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1557. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1558. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1559. if test "${ac_cv_prog_CC+set}" = set; then
  1560. echo $ECHO_N "(cached) $ECHO_C" >&6
  1561. else
  1562. if test -n "$CC"; then
  1563. ac_cv_prog_CC="$CC" # Let the user override the test.
  1564. else
  1565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1566. for as_dir in $PATH
  1567. do
  1568. IFS=$as_save_IFS
  1569. test -z "$as_dir" && as_dir=.
  1570. for ac_exec_ext in '' $ac_executable_extensions; do
  1571. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1572. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1573. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1574. break 2
  1575. fi
  1576. done
  1577. done
  1578. IFS=$as_save_IFS
  1579. fi
  1580. fi
  1581. CC=$ac_cv_prog_CC
  1582. if test -n "$CC"; then
  1583. { echo "$as_me:$LINENO: result: $CC" >&5
  1584. echo "${ECHO_T}$CC" >&6; }
  1585. else
  1586. { echo "$as_me:$LINENO: result: no" >&5
  1587. echo "${ECHO_T}no" >&6; }
  1588. fi
  1589. fi
  1590. fi
  1591. if test -z "$CC"; then
  1592. # Extract the first word of "cc", so it can be a program name with args.
  1593. set dummy cc; ac_word=$2
  1594. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1595. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1596. if test "${ac_cv_prog_CC+set}" = set; then
  1597. echo $ECHO_N "(cached) $ECHO_C" >&6
  1598. else
  1599. if test -n "$CC"; then
  1600. ac_cv_prog_CC="$CC" # Let the user override the test.
  1601. else
  1602. ac_prog_rejected=no
  1603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1604. for as_dir in $PATH
  1605. do
  1606. IFS=$as_save_IFS
  1607. test -z "$as_dir" && as_dir=.
  1608. for ac_exec_ext in '' $ac_executable_extensions; do
  1609. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1610. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1611. ac_prog_rejected=yes
  1612. continue
  1613. fi
  1614. ac_cv_prog_CC="cc"
  1615. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1616. break 2
  1617. fi
  1618. done
  1619. done
  1620. IFS=$as_save_IFS
  1621. if test $ac_prog_rejected = yes; then
  1622. # We found a bogon in the path, so make sure we never use it.
  1623. set dummy $ac_cv_prog_CC
  1624. shift
  1625. if test $# != 0; then
  1626. # We chose a different compiler from the bogus one.
  1627. # However, it has the same basename, so the bogon will be chosen
  1628. # first if we set CC to just the basename; use the full file name.
  1629. shift
  1630. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1631. fi
  1632. fi
  1633. fi
  1634. fi
  1635. CC=$ac_cv_prog_CC
  1636. if test -n "$CC"; then
  1637. { echo "$as_me:$LINENO: result: $CC" >&5
  1638. echo "${ECHO_T}$CC" >&6; }
  1639. else
  1640. { echo "$as_me:$LINENO: result: no" >&5
  1641. echo "${ECHO_T}no" >&6; }
  1642. fi
  1643. fi
  1644. if test -z "$CC"; then
  1645. if test -n "$ac_tool_prefix"; then
  1646. for ac_prog in cl.exe
  1647. do
  1648. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1649. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1650. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1651. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1652. if test "${ac_cv_prog_CC+set}" = set; then
  1653. echo $ECHO_N "(cached) $ECHO_C" >&6
  1654. else
  1655. if test -n "$CC"; then
  1656. ac_cv_prog_CC="$CC" # Let the user override the test.
  1657. else
  1658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1659. for as_dir in $PATH
  1660. do
  1661. IFS=$as_save_IFS
  1662. test -z "$as_dir" && as_dir=.
  1663. for ac_exec_ext in '' $ac_executable_extensions; do
  1664. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1665. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1666. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1667. break 2
  1668. fi
  1669. done
  1670. done
  1671. IFS=$as_save_IFS
  1672. fi
  1673. fi
  1674. CC=$ac_cv_prog_CC
  1675. if test -n "$CC"; then
  1676. { echo "$as_me:$LINENO: result: $CC" >&5
  1677. echo "${ECHO_T}$CC" >&6; }
  1678. else
  1679. { echo "$as_me:$LINENO: result: no" >&5
  1680. echo "${ECHO_T}no" >&6; }
  1681. fi
  1682. test -n "$CC" && break
  1683. done
  1684. fi
  1685. if test -z "$CC"; then
  1686. ac_ct_CC=$CC
  1687. for ac_prog in cl.exe
  1688. do
  1689. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1690. set dummy $ac_prog; ac_word=$2
  1691. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1692. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1693. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1694. echo $ECHO_N "(cached) $ECHO_C" >&6
  1695. else
  1696. if test -n "$ac_ct_CC"; then
  1697. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1698. else
  1699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1700. for as_dir in $PATH
  1701. do
  1702. IFS=$as_save_IFS
  1703. test -z "$as_dir" && as_dir=.
  1704. for ac_exec_ext in '' $ac_executable_extensions; do
  1705. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1706. ac_cv_prog_ac_ct_CC="$ac_prog"
  1707. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1708. break 2
  1709. fi
  1710. done
  1711. done
  1712. IFS=$as_save_IFS
  1713. fi
  1714. fi
  1715. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1716. if test -n "$ac_ct_CC"; then
  1717. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1718. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1719. else
  1720. { echo "$as_me:$LINENO: result: no" >&5
  1721. echo "${ECHO_T}no" >&6; }
  1722. fi
  1723. test -n "$ac_ct_CC" && break
  1724. done
  1725. if test "x$ac_ct_CC" = x; then
  1726. CC=""
  1727. else
  1728. case $cross_compiling:$ac_tool_warned in
  1729. yes:)
  1730. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1731. whose name does not start with the host triplet. If you think this
  1732. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1733. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1734. whose name does not start with the host triplet. If you think this
  1735. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1736. ac_tool_warned=yes ;;
  1737. esac
  1738. CC=$ac_ct_CC
  1739. fi
  1740. fi
  1741. fi
  1742. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1743. See \`config.log' for more details." >&5
  1744. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1745. See \`config.log' for more details." >&2;}
  1746. { (exit 1); exit 1; }; }
  1747. # Provide some information about the compiler.
  1748. echo "$as_me:$LINENO: checking for C compiler version" >&5
  1749. ac_compiler=`set X $ac_compile; echo $2`
  1750. { (ac_try="$ac_compiler --version >&5"
  1751. case "(($ac_try" in
  1752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1753. *) ac_try_echo=$ac_try;;
  1754. esac
  1755. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1756. (eval "$ac_compiler --version >&5") 2>&5
  1757. ac_status=$?
  1758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1759. (exit $ac_status); }
  1760. { (ac_try="$ac_compiler -v >&5"
  1761. case "(($ac_try" in
  1762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1763. *) ac_try_echo=$ac_try;;
  1764. esac
  1765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1766. (eval "$ac_compiler -v >&5") 2>&5
  1767. ac_status=$?
  1768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1769. (exit $ac_status); }
  1770. { (ac_try="$ac_compiler -V >&5"
  1771. case "(($ac_try" in
  1772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1773. *) ac_try_echo=$ac_try;;
  1774. esac
  1775. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1776. (eval "$ac_compiler -V >&5") 2>&5
  1777. ac_status=$?
  1778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1779. (exit $ac_status); }
  1780. cat >conftest.$ac_ext <<_ACEOF
  1781. /* confdefs.h. */
  1782. _ACEOF
  1783. cat confdefs.h >>conftest.$ac_ext
  1784. cat >>conftest.$ac_ext <<_ACEOF
  1785. /* end confdefs.h. */
  1786. int
  1787. main ()
  1788. {
  1789. ;
  1790. return 0;
  1791. }
  1792. _ACEOF
  1793. ac_clean_files_save=$ac_clean_files
  1794. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1795. # Try to create an executable without -o first, disregard a.out.
  1796. # It will help us diagnose broken compilers, and finding out an intuition
  1797. # of exeext.
  1798. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1799. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  1800. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1801. #
  1802. # List of possible output files, starting from the most likely.
  1803. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1804. # only as a last resort. b.out is created by i960 compilers.
  1805. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1806. #
  1807. # The IRIX 6 linker writes into existing files which may not be
  1808. # executable, retaining their permissions. Remove them first so a
  1809. # subsequent execution test works.
  1810. ac_rmfiles=
  1811. for ac_file in $ac_files
  1812. do
  1813. case $ac_file in
  1814. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1815. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1816. esac
  1817. done
  1818. rm -f $ac_rmfiles
  1819. if { (ac_try="$ac_link_default"
  1820. case "(($ac_try" in
  1821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1822. *) ac_try_echo=$ac_try;;
  1823. esac
  1824. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1825. (eval "$ac_link_default") 2>&5
  1826. ac_status=$?
  1827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1828. (exit $ac_status); }; then
  1829. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1830. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1831. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1832. # so that the user can short-circuit this test for compilers unknown to
  1833. # Autoconf.
  1834. for ac_file in $ac_files ''
  1835. do
  1836. test -f "$ac_file" || continue
  1837. case $ac_file in
  1838. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1839. ;;
  1840. [ab].out )
  1841. # We found the default executable, but exeext='' is most
  1842. # certainly right.
  1843. break;;
  1844. *.* )
  1845. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1846. then :; else
  1847. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1848. fi
  1849. # We set ac_cv_exeext here because the later test for it is not
  1850. # safe: cross compilers may not add the suffix if given an `-o'
  1851. # argument, so we may need to know it at that point already.
  1852. # Even if this section looks crufty: it has the advantage of
  1853. # actually working.
  1854. break;;
  1855. * )
  1856. break;;
  1857. esac
  1858. done
  1859. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1860. else
  1861. ac_file=''
  1862. fi
  1863. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1864. echo "${ECHO_T}$ac_file" >&6; }
  1865. if test -z "$ac_file"; then
  1866. echo "$as_me: failed program was:" >&5
  1867. sed 's/^/| /' conftest.$ac_ext >&5
  1868. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1869. See \`config.log' for more details." >&5
  1870. echo "$as_me: error: C compiler cannot create executables
  1871. See \`config.log' for more details." >&2;}
  1872. { (exit 77); exit 77; }; }
  1873. fi
  1874. ac_exeext=$ac_cv_exeext
  1875. # Check that the compiler produces executables we can run. If not, either
  1876. # the compiler is broken, or we cross compile.
  1877. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1878. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  1879. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1880. # If not cross compiling, check that we can run a simple program.
  1881. if test "$cross_compiling" != yes; then
  1882. if { ac_try='./$ac_file'
  1883. { (case "(($ac_try" in
  1884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1885. *) ac_try_echo=$ac_try;;
  1886. esac
  1887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1888. (eval "$ac_try") 2>&5
  1889. ac_status=$?
  1890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1891. (exit $ac_status); }; }; then
  1892. cross_compiling=no
  1893. else
  1894. if test "$cross_compiling" = maybe; then
  1895. cross_compiling=yes
  1896. else
  1897. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1898. If you meant to cross compile, use \`--host'.
  1899. See \`config.log' for more details." >&5
  1900. echo "$as_me: error: cannot run C compiled programs.
  1901. If you meant to cross compile, use \`--host'.
  1902. See \`config.log' for more details." >&2;}
  1903. { (exit 1); exit 1; }; }
  1904. fi
  1905. fi
  1906. fi
  1907. { echo "$as_me:$LINENO: result: yes" >&5
  1908. echo "${ECHO_T}yes" >&6; }
  1909. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1910. ac_clean_files=$ac_clean_files_save
  1911. # Check that the compiler produces executables we can run. If not, either
  1912. # the compiler is broken, or we cross compile.
  1913. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1914. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1915. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1916. echo "${ECHO_T}$cross_compiling" >&6; }
  1917. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1918. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1919. if { (ac_try="$ac_link"
  1920. case "(($ac_try" in
  1921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1922. *) ac_try_echo=$ac_try;;
  1923. esac
  1924. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1925. (eval "$ac_link") 2>&5
  1926. ac_status=$?
  1927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1928. (exit $ac_status); }; then
  1929. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1930. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1931. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1932. # `rm'.
  1933. for ac_file in conftest.exe conftest conftest.*; do
  1934. test -f "$ac_file" || continue
  1935. case $ac_file in
  1936. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1937. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1938. break;;
  1939. * ) break;;
  1940. esac
  1941. done
  1942. else
  1943. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1944. See \`config.log' for more details." >&5
  1945. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1946. See \`config.log' for more details." >&2;}
  1947. { (exit 1); exit 1; }; }
  1948. fi
  1949. rm -f conftest$ac_cv_exeext
  1950. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1951. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  1952. rm -f conftest.$ac_ext
  1953. EXEEXT=$ac_cv_exeext
  1954. ac_exeext=$EXEEXT
  1955. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1956. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  1957. if test "${ac_cv_objext+set}" = set; then
  1958. echo $ECHO_N "(cached) $ECHO_C" >&6
  1959. else
  1960. cat >conftest.$ac_ext <<_ACEOF
  1961. /* confdefs.h. */
  1962. _ACEOF
  1963. cat confdefs.h >>conftest.$ac_ext
  1964. cat >>conftest.$ac_ext <<_ACEOF
  1965. /* end confdefs.h. */
  1966. int
  1967. main ()
  1968. {
  1969. ;
  1970. return 0;
  1971. }
  1972. _ACEOF
  1973. rm -f conftest.o conftest.obj
  1974. if { (ac_try="$ac_compile"
  1975. case "(($ac_try" in
  1976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1977. *) ac_try_echo=$ac_try;;
  1978. esac
  1979. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1980. (eval "$ac_compile") 2>&5
  1981. ac_status=$?
  1982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1983. (exit $ac_status); }; then
  1984. for ac_file in conftest.o conftest.obj conftest.*; do
  1985. test -f "$ac_file" || continue;
  1986. case $ac_file in
  1987. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  1988. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1989. break;;
  1990. esac
  1991. done
  1992. else
  1993. echo "$as_me: failed program was:" >&5
  1994. sed 's/^/| /' conftest.$ac_ext >&5
  1995. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1996. See \`config.log' for more details." >&5
  1997. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1998. See \`config.log' for more details." >&2;}
  1999. { (exit 1); exit 1; }; }
  2000. fi
  2001. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2002. fi
  2003. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2004. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2005. OBJEXT=$ac_cv_objext
  2006. ac_objext=$OBJEXT
  2007. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2008. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2009. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2010. echo $ECHO_N "(cached) $ECHO_C" >&6
  2011. else
  2012. cat >conftest.$ac_ext <<_ACEOF
  2013. /* confdefs.h. */
  2014. _ACEOF
  2015. cat confdefs.h >>conftest.$ac_ext
  2016. cat >>conftest.$ac_ext <<_ACEOF
  2017. /* end confdefs.h. */
  2018. int
  2019. main ()
  2020. {
  2021. #ifndef __GNUC__
  2022. choke me
  2023. #endif
  2024. ;
  2025. return 0;
  2026. }
  2027. _ACEOF
  2028. rm -f conftest.$ac_objext
  2029. if { (ac_try="$ac_compile"
  2030. case "(($ac_try" in
  2031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2032. *) ac_try_echo=$ac_try;;
  2033. esac
  2034. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2035. (eval "$ac_compile") 2>conftest.er1
  2036. ac_status=$?
  2037. grep -v '^ *+' conftest.er1 >conftest.err
  2038. rm -f conftest.er1
  2039. cat conftest.err >&5
  2040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2041. (exit $ac_status); } && {
  2042. test -z "$ac_c_werror_flag" ||
  2043. test ! -s conftest.err
  2044. } && test -s conftest.$ac_objext; then
  2045. ac_compiler_gnu=yes
  2046. else
  2047. echo "$as_me: failed program was:" >&5
  2048. sed 's/^/| /' conftest.$ac_ext >&5
  2049. ac_compiler_gnu=no
  2050. fi
  2051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2052. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2053. fi
  2054. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2055. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2056. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2057. ac_test_CFLAGS=${CFLAGS+set}
  2058. ac_save_CFLAGS=$CFLAGS
  2059. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2060. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2061. if test "${ac_cv_prog_cc_g+set}" = set; then
  2062. echo $ECHO_N "(cached) $ECHO_C" >&6
  2063. else
  2064. ac_save_c_werror_flag=$ac_c_werror_flag
  2065. ac_c_werror_flag=yes
  2066. ac_cv_prog_cc_g=no
  2067. CFLAGS="-g"
  2068. cat >conftest.$ac_ext <<_ACEOF
  2069. /* confdefs.h. */
  2070. _ACEOF
  2071. cat confdefs.h >>conftest.$ac_ext
  2072. cat >>conftest.$ac_ext <<_ACEOF
  2073. /* end confdefs.h. */
  2074. int
  2075. main ()
  2076. {
  2077. ;
  2078. return 0;
  2079. }
  2080. _ACEOF
  2081. rm -f conftest.$ac_objext
  2082. if { (ac_try="$ac_compile"
  2083. case "(($ac_try" in
  2084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2085. *) ac_try_echo=$ac_try;;
  2086. esac
  2087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2088. (eval "$ac_compile") 2>conftest.er1
  2089. ac_status=$?
  2090. grep -v '^ *+' conftest.er1 >conftest.err
  2091. rm -f conftest.er1
  2092. cat conftest.err >&5
  2093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2094. (exit $ac_status); } && {
  2095. test -z "$ac_c_werror_flag" ||
  2096. test ! -s conftest.err
  2097. } && test -s conftest.$ac_objext; then
  2098. ac_cv_prog_cc_g=yes
  2099. else
  2100. echo "$as_me: failed program was:" >&5
  2101. sed 's/^/| /' conftest.$ac_ext >&5
  2102. CFLAGS=""
  2103. cat >conftest.$ac_ext <<_ACEOF
  2104. /* confdefs.h. */
  2105. _ACEOF
  2106. cat confdefs.h >>conftest.$ac_ext
  2107. cat >>conftest.$ac_ext <<_ACEOF
  2108. /* end confdefs.h. */
  2109. int
  2110. main ()
  2111. {
  2112. ;
  2113. return 0;
  2114. }
  2115. _ACEOF
  2116. rm -f conftest.$ac_objext
  2117. if { (ac_try="$ac_compile"
  2118. case "(($ac_try" in
  2119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2120. *) ac_try_echo=$ac_try;;
  2121. esac
  2122. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2123. (eval "$ac_compile") 2>conftest.er1
  2124. ac_status=$?
  2125. grep -v '^ *+' conftest.er1 >conftest.err
  2126. rm -f conftest.er1
  2127. cat conftest.err >&5
  2128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2129. (exit $ac_status); } && {
  2130. test -z "$ac_c_werror_flag" ||
  2131. test ! -s conftest.err
  2132. } && test -s conftest.$ac_objext; then
  2133. :
  2134. else
  2135. echo "$as_me: failed program was:" >&5
  2136. sed 's/^/| /' conftest.$ac_ext >&5
  2137. ac_c_werror_flag=$ac_save_c_werror_flag
  2138. CFLAGS="-g"
  2139. cat >conftest.$ac_ext <<_ACEOF
  2140. /* confdefs.h. */
  2141. _ACEOF
  2142. cat confdefs.h >>conftest.$ac_ext
  2143. cat >>conftest.$ac_ext <<_ACEOF
  2144. /* end confdefs.h. */
  2145. int
  2146. main ()
  2147. {
  2148. ;
  2149. return 0;
  2150. }
  2151. _ACEOF
  2152. rm -f conftest.$ac_objext
  2153. if { (ac_try="$ac_compile"
  2154. case "(($ac_try" in
  2155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2156. *) ac_try_echo=$ac_try;;
  2157. esac
  2158. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2159. (eval "$ac_compile") 2>conftest.er1
  2160. ac_status=$?
  2161. grep -v '^ *+' conftest.er1 >conftest.err
  2162. rm -f conftest.er1
  2163. cat conftest.err >&5
  2164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2165. (exit $ac_status); } && {
  2166. test -z "$ac_c_werror_flag" ||
  2167. test ! -s conftest.err
  2168. } && test -s conftest.$ac_objext; then
  2169. ac_cv_prog_cc_g=yes
  2170. else
  2171. echo "$as_me: failed program was:" >&5
  2172. sed 's/^/| /' conftest.$ac_ext >&5
  2173. fi
  2174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2175. fi
  2176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2177. fi
  2178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2179. ac_c_werror_flag=$ac_save_c_werror_flag
  2180. fi
  2181. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2182. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2183. if test "$ac_test_CFLAGS" = set; then
  2184. CFLAGS=$ac_save_CFLAGS
  2185. elif test $ac_cv_prog_cc_g = yes; then
  2186. if test "$GCC" = yes; then
  2187. CFLAGS="-g -O2"
  2188. else
  2189. CFLAGS="-g"
  2190. fi
  2191. else
  2192. if test "$GCC" = yes; then
  2193. CFLAGS="-O2"
  2194. else
  2195. CFLAGS=
  2196. fi
  2197. fi
  2198. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2199. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2200. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2201. echo $ECHO_N "(cached) $ECHO_C" >&6
  2202. else
  2203. ac_cv_prog_cc_c89=no
  2204. ac_save_CC=$CC
  2205. cat >conftest.$ac_ext <<_ACEOF
  2206. /* confdefs.h. */
  2207. _ACEOF
  2208. cat confdefs.h >>conftest.$ac_ext
  2209. cat >>conftest.$ac_ext <<_ACEOF
  2210. /* end confdefs.h. */
  2211. #include <stdarg.h>
  2212. #include <stdio.h>
  2213. #include <sys/types.h>
  2214. #include <sys/stat.h>
  2215. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2216. struct buf { int x; };
  2217. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2218. static char *e (p, i)
  2219. char **p;
  2220. int i;
  2221. {
  2222. return p[i];
  2223. }
  2224. static char *f (char * (*g) (char **, int), char **p, ...)
  2225. {
  2226. char *s;
  2227. va_list v;
  2228. va_start (v,p);
  2229. s = g (p, va_arg (v,int));
  2230. va_end (v);
  2231. return s;
  2232. }
  2233. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2234. function prototypes and stuff, but not '\xHH' hex character constants.
  2235. These don't provoke an error unfortunately, instead are silently treated
  2236. as 'x'. The following induces an error, until -std is added to get
  2237. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2238. array size at least. It's necessary to write '\x00'==0 to get something
  2239. that's true only with -std. */
  2240. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2241. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2242. inside strings and character constants. */
  2243. #define FOO(x) 'x'
  2244. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2245. int test (int i, double x);
  2246. struct s1 {int (*f) (int a);};
  2247. struct s2 {int (*f) (double a);};
  2248. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2249. int argc;
  2250. char **argv;
  2251. int
  2252. main ()
  2253. {
  2254. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2255. ;
  2256. return 0;
  2257. }
  2258. _ACEOF
  2259. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2260. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2261. do
  2262. CC="$ac_save_CC $ac_arg"
  2263. rm -f conftest.$ac_objext
  2264. if { (ac_try="$ac_compile"
  2265. case "(($ac_try" in
  2266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2267. *) ac_try_echo=$ac_try;;
  2268. esac
  2269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2270. (eval "$ac_compile") 2>conftest.er1
  2271. ac_status=$?
  2272. grep -v '^ *+' conftest.er1 >conftest.err
  2273. rm -f conftest.er1
  2274. cat conftest.err >&5
  2275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2276. (exit $ac_status); } && {
  2277. test -z "$ac_c_werror_flag" ||
  2278. test ! -s conftest.err
  2279. } && test -s conftest.$ac_objext; then
  2280. ac_cv_prog_cc_c89=$ac_arg
  2281. else
  2282. echo "$as_me: failed program was:" >&5
  2283. sed 's/^/| /' conftest.$ac_ext >&5
  2284. fi
  2285. rm -f core conftest.err conftest.$ac_objext
  2286. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2287. done
  2288. rm -f conftest.$ac_ext
  2289. CC=$ac_save_CC
  2290. fi
  2291. # AC_CACHE_VAL
  2292. case "x$ac_cv_prog_cc_c89" in
  2293. x)
  2294. { echo "$as_me:$LINENO: result: none needed" >&5
  2295. echo "${ECHO_T}none needed" >&6; } ;;
  2296. xno)
  2297. { echo "$as_me:$LINENO: result: unsupported" >&5
  2298. echo "${ECHO_T}unsupported" >&6; } ;;
  2299. *)
  2300. CC="$CC $ac_cv_prog_cc_c89"
  2301. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2302. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2303. esac
  2304. ac_ext=c
  2305. ac_cpp='$CPP $CPPFLAGS'
  2306. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2307. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2308. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2309. ac_ext=c
  2310. ac_cpp='$CPP $CPPFLAGS'
  2311. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2312. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2313. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2314. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2315. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  2316. # On Suns, sometimes $CPP names a directory.
  2317. if test -n "$CPP" && test -d "$CPP"; then
  2318. CPP=
  2319. fi
  2320. if test -z "$CPP"; then
  2321. if test "${ac_cv_prog_CPP+set}" = set; then
  2322. echo $ECHO_N "(cached) $ECHO_C" >&6
  2323. else
  2324. # Double quotes because CPP needs to be expanded
  2325. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2326. do
  2327. ac_preproc_ok=false
  2328. for ac_c_preproc_warn_flag in '' yes
  2329. do
  2330. # Use a header file that comes with gcc, so configuring glibc
  2331. # with a fresh cross-compiler works.
  2332. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2333. # <limits.h> exists even on freestanding compilers.
  2334. # On the NeXT, cc -E runs the code through the compiler's parser,
  2335. # not just through cpp. "Syntax error" is here to catch this case.
  2336. cat >conftest.$ac_ext <<_ACEOF
  2337. /* confdefs.h. */
  2338. _ACEOF
  2339. cat confdefs.h >>conftest.$ac_ext
  2340. cat >>conftest.$ac_ext <<_ACEOF
  2341. /* end confdefs.h. */
  2342. #ifdef __STDC__
  2343. # include <limits.h>
  2344. #else
  2345. # include <assert.h>
  2346. #endif
  2347. Syntax error
  2348. _ACEOF
  2349. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2350. case "(($ac_try" in
  2351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2352. *) ac_try_echo=$ac_try;;
  2353. esac
  2354. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2355. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2356. ac_status=$?
  2357. grep -v '^ *+' conftest.er1 >conftest.err
  2358. rm -f conftest.er1
  2359. cat conftest.err >&5
  2360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2361. (exit $ac_status); } >/dev/null && {
  2362. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2363. test ! -s conftest.err
  2364. }; then
  2365. :
  2366. else
  2367. echo "$as_me: failed program was:" >&5
  2368. sed 's/^/| /' conftest.$ac_ext >&5
  2369. # Broken: fails on valid input.
  2370. continue
  2371. fi
  2372. rm -f conftest.err conftest.$ac_ext
  2373. # OK, works on sane cases. Now check whether nonexistent headers
  2374. # can be detected and how.
  2375. cat >conftest.$ac_ext <<_ACEOF
  2376. /* confdefs.h. */
  2377. _ACEOF
  2378. cat confdefs.h >>conftest.$ac_ext
  2379. cat >>conftest.$ac_ext <<_ACEOF
  2380. /* end confdefs.h. */
  2381. #include <ac_nonexistent.h>
  2382. _ACEOF
  2383. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2384. case "(($ac_try" in
  2385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2386. *) ac_try_echo=$ac_try;;
  2387. esac
  2388. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2389. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2390. ac_status=$?
  2391. grep -v '^ *+' conftest.er1 >conftest.err
  2392. rm -f conftest.er1
  2393. cat conftest.err >&5
  2394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2395. (exit $ac_status); } >/dev/null && {
  2396. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2397. test ! -s conftest.err
  2398. }; then
  2399. # Broken: success on invalid input.
  2400. continue
  2401. else
  2402. echo "$as_me: failed program was:" >&5
  2403. sed 's/^/| /' conftest.$ac_ext >&5
  2404. # Passes both tests.
  2405. ac_preproc_ok=:
  2406. break
  2407. fi
  2408. rm -f conftest.err conftest.$ac_ext
  2409. done
  2410. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2411. rm -f conftest.err conftest.$ac_ext
  2412. if $ac_preproc_ok; then
  2413. break
  2414. fi
  2415. done
  2416. ac_cv_prog_CPP=$CPP
  2417. fi
  2418. CPP=$ac_cv_prog_CPP
  2419. else
  2420. ac_cv_prog_CPP=$CPP
  2421. fi
  2422. { echo "$as_me:$LINENO: result: $CPP" >&5
  2423. echo "${ECHO_T}$CPP" >&6; }
  2424. ac_preproc_ok=false
  2425. for ac_c_preproc_warn_flag in '' yes
  2426. do
  2427. # Use a header file that comes with gcc, so configuring glibc
  2428. # with a fresh cross-compiler works.
  2429. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2430. # <limits.h> exists even on freestanding compilers.
  2431. # On the NeXT, cc -E runs the code through the compiler's parser,
  2432. # not just through cpp. "Syntax error" is here to catch this case.
  2433. cat >conftest.$ac_ext <<_ACEOF
  2434. /* confdefs.h. */
  2435. _ACEOF
  2436. cat confdefs.h >>conftest.$ac_ext
  2437. cat >>conftest.$ac_ext <<_ACEOF
  2438. /* end confdefs.h. */
  2439. #ifdef __STDC__
  2440. # include <limits.h>
  2441. #else
  2442. # include <assert.h>
  2443. #endif
  2444. Syntax error
  2445. _ACEOF
  2446. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2447. case "(($ac_try" in
  2448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2449. *) ac_try_echo=$ac_try;;
  2450. esac
  2451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2452. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2453. ac_status=$?
  2454. grep -v '^ *+' conftest.er1 >conftest.err
  2455. rm -f conftest.er1
  2456. cat conftest.err >&5
  2457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2458. (exit $ac_status); } >/dev/null && {
  2459. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2460. test ! -s conftest.err
  2461. }; then
  2462. :
  2463. else
  2464. echo "$as_me: failed program was:" >&5
  2465. sed 's/^/| /' conftest.$ac_ext >&5
  2466. # Broken: fails on valid input.
  2467. continue
  2468. fi
  2469. rm -f conftest.err conftest.$ac_ext
  2470. # OK, works on sane cases. Now check whether nonexistent headers
  2471. # can be detected and how.
  2472. cat >conftest.$ac_ext <<_ACEOF
  2473. /* confdefs.h. */
  2474. _ACEOF
  2475. cat confdefs.h >>conftest.$ac_ext
  2476. cat >>conftest.$ac_ext <<_ACEOF
  2477. /* end confdefs.h. */
  2478. #include <ac_nonexistent.h>
  2479. _ACEOF
  2480. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2481. case "(($ac_try" in
  2482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2483. *) ac_try_echo=$ac_try;;
  2484. esac
  2485. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2486. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2487. ac_status=$?
  2488. grep -v '^ *+' conftest.er1 >conftest.err
  2489. rm -f conftest.er1
  2490. cat conftest.err >&5
  2491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2492. (exit $ac_status); } >/dev/null && {
  2493. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2494. test ! -s conftest.err
  2495. }; then
  2496. # Broken: success on invalid input.
  2497. continue
  2498. else
  2499. echo "$as_me: failed program was:" >&5
  2500. sed 's/^/| /' conftest.$ac_ext >&5
  2501. # Passes both tests.
  2502. ac_preproc_ok=:
  2503. break
  2504. fi
  2505. rm -f conftest.err conftest.$ac_ext
  2506. done
  2507. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2508. rm -f conftest.err conftest.$ac_ext
  2509. if $ac_preproc_ok; then
  2510. :
  2511. else
  2512. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2513. See \`config.log' for more details." >&5
  2514. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2515. See \`config.log' for more details." >&2;}
  2516. { (exit 1); exit 1; }; }
  2517. fi
  2518. ac_ext=c
  2519. ac_cpp='$CPP $CPPFLAGS'
  2520. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2521. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2522. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2523. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2524. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2525. if test "${ac_cv_path_GREP+set}" = set; then
  2526. echo $ECHO_N "(cached) $ECHO_C" >&6
  2527. else
  2528. # Extract the first word of "grep ggrep" to use in msg output
  2529. if test -z "$GREP"; then
  2530. set dummy grep ggrep; ac_prog_name=$2
  2531. if test "${ac_cv_path_GREP+set}" = set; then
  2532. echo $ECHO_N "(cached) $ECHO_C" >&6
  2533. else
  2534. ac_path_GREP_found=false
  2535. # Loop through the user's path and test for each of PROGNAME-LIST
  2536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2537. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2538. do
  2539. IFS=$as_save_IFS
  2540. test -z "$as_dir" && as_dir=.
  2541. for ac_prog in grep ggrep; do
  2542. for ac_exec_ext in '' $ac_executable_extensions; do
  2543. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2544. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2545. # Check for GNU ac_path_GREP and select it if it is found.
  2546. # Check for GNU $ac_path_GREP
  2547. case `"$ac_path_GREP" --version 2>&1` in
  2548. *GNU*)
  2549. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2550. *)
  2551. ac_count=0
  2552. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2553. while :
  2554. do
  2555. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2556. mv "conftest.tmp" "conftest.in"
  2557. cp "conftest.in" "conftest.nl"
  2558. echo 'GREP' >> "conftest.nl"
  2559. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2560. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2561. ac_count=`expr $ac_count + 1`
  2562. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2563. # Best one so far, save it but keep looking for a better one
  2564. ac_cv_path_GREP="$ac_path_GREP"
  2565. ac_path_GREP_max=$ac_count
  2566. fi
  2567. # 10*(2^10) chars as input seems more than enough
  2568. test $ac_count -gt 10 && break
  2569. done
  2570. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2571. esac
  2572. $ac_path_GREP_found && break 3
  2573. done
  2574. done
  2575. done
  2576. IFS=$as_save_IFS
  2577. fi
  2578. GREP="$ac_cv_path_GREP"
  2579. if test -z "$GREP"; then
  2580. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2581. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2582. { (exit 1); exit 1; }; }
  2583. fi
  2584. else
  2585. ac_cv_path_GREP=$GREP
  2586. fi
  2587. fi
  2588. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2589. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  2590. GREP="$ac_cv_path_GREP"
  2591. { echo "$as_me:$LINENO: checking for egrep" >&5
  2592. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  2593. if test "${ac_cv_path_EGREP+set}" = set; then
  2594. echo $ECHO_N "(cached) $ECHO_C" >&6
  2595. else
  2596. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2597. then ac_cv_path_EGREP="$GREP -E"
  2598. else
  2599. # Extract the first word of "egrep" to use in msg output
  2600. if test -z "$EGREP"; then
  2601. set dummy egrep; ac_prog_name=$2
  2602. if test "${ac_cv_path_EGREP+set}" = set; then
  2603. echo $ECHO_N "(cached) $ECHO_C" >&6
  2604. else
  2605. ac_path_EGREP_found=false
  2606. # Loop through the user's path and test for each of PROGNAME-LIST
  2607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2608. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2609. do
  2610. IFS=$as_save_IFS
  2611. test -z "$as_dir" && as_dir=.
  2612. for ac_prog in egrep; do
  2613. for ac_exec_ext in '' $ac_executable_extensions; do
  2614. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2615. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2616. # Check for GNU ac_path_EGREP and select it if it is found.
  2617. # Check for GNU $ac_path_EGREP
  2618. case `"$ac_path_EGREP" --version 2>&1` in
  2619. *GNU*)
  2620. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2621. *)
  2622. ac_count=0
  2623. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2624. while :
  2625. do
  2626. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2627. mv "conftest.tmp" "conftest.in"
  2628. cp "conftest.in" "conftest.nl"
  2629. echo 'EGREP' >> "conftest.nl"
  2630. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2631. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2632. ac_count=`expr $ac_count + 1`
  2633. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2634. # Best one so far, save it but keep looking for a better one
  2635. ac_cv_path_EGREP="$ac_path_EGREP"
  2636. ac_path_EGREP_max=$ac_count
  2637. fi
  2638. # 10*(2^10) chars as input seems more than enough
  2639. test $ac_count -gt 10 && break
  2640. done
  2641. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2642. esac
  2643. $ac_path_EGREP_found && break 3
  2644. done
  2645. done
  2646. done
  2647. IFS=$as_save_IFS
  2648. fi
  2649. EGREP="$ac_cv_path_EGREP"
  2650. if test -z "$EGREP"; then
  2651. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2652. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2653. { (exit 1); exit 1; }; }
  2654. fi
  2655. else
  2656. ac_cv_path_EGREP=$EGREP
  2657. fi
  2658. fi
  2659. fi
  2660. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2661. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  2662. EGREP="$ac_cv_path_EGREP"
  2663. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2664. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  2665. if test "${ac_cv_header_stdc+set}" = set; then
  2666. echo $ECHO_N "(cached) $ECHO_C" >&6
  2667. else
  2668. cat >conftest.$ac_ext <<_ACEOF
  2669. /* confdefs.h. */
  2670. _ACEOF
  2671. cat confdefs.h >>conftest.$ac_ext
  2672. cat >>conftest.$ac_ext <<_ACEOF
  2673. /* end confdefs.h. */
  2674. #include <stdlib.h>
  2675. #include <stdarg.h>
  2676. #include <string.h>
  2677. #include <float.h>
  2678. int
  2679. main ()
  2680. {
  2681. ;
  2682. return 0;
  2683. }
  2684. _ACEOF
  2685. rm -f conftest.$ac_objext
  2686. if { (ac_try="$ac_compile"
  2687. case "(($ac_try" in
  2688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2689. *) ac_try_echo=$ac_try;;
  2690. esac
  2691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2692. (eval "$ac_compile") 2>conftest.er1
  2693. ac_status=$?
  2694. grep -v '^ *+' conftest.er1 >conftest.err
  2695. rm -f conftest.er1
  2696. cat conftest.err >&5
  2697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2698. (exit $ac_status); } && {
  2699. test -z "$ac_c_werror_flag" ||
  2700. test ! -s conftest.err
  2701. } && test -s conftest.$ac_objext; then
  2702. ac_cv_header_stdc=yes
  2703. else
  2704. echo "$as_me: failed program was:" >&5
  2705. sed 's/^/| /' conftest.$ac_ext >&5
  2706. ac_cv_header_stdc=no
  2707. fi
  2708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2709. if test $ac_cv_header_stdc = yes; then
  2710. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2711. cat >conftest.$ac_ext <<_ACEOF
  2712. /* confdefs.h. */
  2713. _ACEOF
  2714. cat confdefs.h >>conftest.$ac_ext
  2715. cat >>conftest.$ac_ext <<_ACEOF
  2716. /* end confdefs.h. */
  2717. #include <string.h>
  2718. _ACEOF
  2719. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2720. $EGREP "memchr" >/dev/null 2>&1; then
  2721. :
  2722. else
  2723. ac_cv_header_stdc=no
  2724. fi
  2725. rm -f conftest*
  2726. fi
  2727. if test $ac_cv_header_stdc = yes; then
  2728. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2729. cat >conftest.$ac_ext <<_ACEOF
  2730. /* confdefs.h. */
  2731. _ACEOF
  2732. cat confdefs.h >>conftest.$ac_ext
  2733. cat >>conftest.$ac_ext <<_ACEOF
  2734. /* end confdefs.h. */
  2735. #include <stdlib.h>
  2736. _ACEOF
  2737. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2738. $EGREP "free" >/dev/null 2>&1; then
  2739. :
  2740. else
  2741. ac_cv_header_stdc=no
  2742. fi
  2743. rm -f conftest*
  2744. fi
  2745. if test $ac_cv_header_stdc = yes; then
  2746. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2747. if test "$cross_compiling" = yes; then
  2748. :
  2749. else
  2750. cat >conftest.$ac_ext <<_ACEOF
  2751. /* confdefs.h. */
  2752. _ACEOF
  2753. cat confdefs.h >>conftest.$ac_ext
  2754. cat >>conftest.$ac_ext <<_ACEOF
  2755. /* end confdefs.h. */
  2756. #include <ctype.h>
  2757. #include <stdlib.h>
  2758. #if ((' ' & 0x0FF) == 0x020)
  2759. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2760. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2761. #else
  2762. # define ISLOWER(c) \
  2763. (('a' <= (c) && (c) <= 'i') \
  2764. || ('j' <= (c) && (c) <= 'r') \
  2765. || ('s' <= (c) && (c) <= 'z'))
  2766. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2767. #endif
  2768. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2769. int
  2770. main ()
  2771. {
  2772. int i;
  2773. for (i = 0; i < 256; i++)
  2774. if (XOR (islower (i), ISLOWER (i))
  2775. || toupper (i) != TOUPPER (i))
  2776. return 2;
  2777. return 0;
  2778. }
  2779. _ACEOF
  2780. rm -f conftest$ac_exeext
  2781. if { (ac_try="$ac_link"
  2782. case "(($ac_try" in
  2783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2784. *) ac_try_echo=$ac_try;;
  2785. esac
  2786. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2787. (eval "$ac_link") 2>&5
  2788. ac_status=$?
  2789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2790. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2791. { (case "(($ac_try" in
  2792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2793. *) ac_try_echo=$ac_try;;
  2794. esac
  2795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2796. (eval "$ac_try") 2>&5
  2797. ac_status=$?
  2798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2799. (exit $ac_status); }; }; then
  2800. :
  2801. else
  2802. echo "$as_me: program exited with status $ac_status" >&5
  2803. echo "$as_me: failed program was:" >&5
  2804. sed 's/^/| /' conftest.$ac_ext >&5
  2805. ( exit $ac_status )
  2806. ac_cv_header_stdc=no
  2807. fi
  2808. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2809. fi
  2810. fi
  2811. fi
  2812. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2813. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  2814. if test $ac_cv_header_stdc = yes; then
  2815. cat >>confdefs.h <<\_ACEOF
  2816. #define STDC_HEADERS 1
  2817. _ACEOF
  2818. fi
  2819. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2820. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2821. inttypes.h stdint.h unistd.h
  2822. do
  2823. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2824. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2825. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2826. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2827. echo $ECHO_N "(cached) $ECHO_C" >&6
  2828. else
  2829. cat >conftest.$ac_ext <<_ACEOF
  2830. /* confdefs.h. */
  2831. _ACEOF
  2832. cat confdefs.h >>conftest.$ac_ext
  2833. cat >>conftest.$ac_ext <<_ACEOF
  2834. /* end confdefs.h. */
  2835. $ac_includes_default
  2836. #include <$ac_header>
  2837. _ACEOF
  2838. rm -f conftest.$ac_objext
  2839. if { (ac_try="$ac_compile"
  2840. case "(($ac_try" in
  2841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2842. *) ac_try_echo=$ac_try;;
  2843. esac
  2844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2845. (eval "$ac_compile") 2>conftest.er1
  2846. ac_status=$?
  2847. grep -v '^ *+' conftest.er1 >conftest.err
  2848. rm -f conftest.er1
  2849. cat conftest.err >&5
  2850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2851. (exit $ac_status); } && {
  2852. test -z "$ac_c_werror_flag" ||
  2853. test ! -s conftest.err
  2854. } && test -s conftest.$ac_objext; then
  2855. eval "$as_ac_Header=yes"
  2856. else
  2857. echo "$as_me: failed program was:" >&5
  2858. sed 's/^/| /' conftest.$ac_ext >&5
  2859. eval "$as_ac_Header=no"
  2860. fi
  2861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2862. fi
  2863. ac_res=`eval echo '${'$as_ac_Header'}'`
  2864. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2865. echo "${ECHO_T}$ac_res" >&6; }
  2866. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2867. cat >>confdefs.h <<_ACEOF
  2868. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2869. _ACEOF
  2870. fi
  2871. done
  2872. for ac_header in unistd.h
  2873. do
  2874. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2875. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2876. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2877. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2878. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2879. echo $ECHO_N "(cached) $ECHO_C" >&6
  2880. fi
  2881. ac_res=`eval echo '${'$as_ac_Header'}'`
  2882. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2883. echo "${ECHO_T}$ac_res" >&6; }
  2884. else
  2885. # Is the header compilable?
  2886. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  2887. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  2888. cat >conftest.$ac_ext <<_ACEOF
  2889. /* confdefs.h. */
  2890. _ACEOF
  2891. cat confdefs.h >>conftest.$ac_ext
  2892. cat >>conftest.$ac_ext <<_ACEOF
  2893. /* end confdefs.h. */
  2894. $ac_includes_default
  2895. #include <$ac_header>
  2896. _ACEOF
  2897. rm -f conftest.$ac_objext
  2898. if { (ac_try="$ac_compile"
  2899. case "(($ac_try" in
  2900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2901. *) ac_try_echo=$ac_try;;
  2902. esac
  2903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2904. (eval "$ac_compile") 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. test -z "$ac_c_werror_flag" ||
  2912. test ! -s conftest.err
  2913. } && test -s conftest.$ac_objext; then
  2914. ac_header_compiler=yes
  2915. else
  2916. echo "$as_me: failed program was:" >&5
  2917. sed 's/^/| /' conftest.$ac_ext >&5
  2918. ac_header_compiler=no
  2919. fi
  2920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2921. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2922. echo "${ECHO_T}$ac_header_compiler" >&6; }
  2923. # Is the header present?
  2924. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  2925. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  2926. cat >conftest.$ac_ext <<_ACEOF
  2927. /* confdefs.h. */
  2928. _ACEOF
  2929. cat confdefs.h >>conftest.$ac_ext
  2930. cat >>conftest.$ac_ext <<_ACEOF
  2931. /* end confdefs.h. */
  2932. #include <$ac_header>
  2933. _ACEOF
  2934. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2935. case "(($ac_try" in
  2936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2937. *) ac_try_echo=$ac_try;;
  2938. esac
  2939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2940. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2941. ac_status=$?
  2942. grep -v '^ *+' conftest.er1 >conftest.err
  2943. rm -f conftest.er1
  2944. cat conftest.err >&5
  2945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2946. (exit $ac_status); } >/dev/null && {
  2947. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2948. test ! -s conftest.err
  2949. }; then
  2950. ac_header_preproc=yes
  2951. else
  2952. echo "$as_me: failed program was:" >&5
  2953. sed 's/^/| /' conftest.$ac_ext >&5
  2954. ac_header_preproc=no
  2955. fi
  2956. rm -f conftest.err conftest.$ac_ext
  2957. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2958. echo "${ECHO_T}$ac_header_preproc" >&6; }
  2959. # So? What about this header?
  2960. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2961. yes:no: )
  2962. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  2963. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2964. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  2965. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  2966. ac_header_preproc=yes
  2967. ;;
  2968. no:yes:* )
  2969. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  2970. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  2971. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  2972. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  2973. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  2974. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  2975. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  2976. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  2977. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  2978. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  2979. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  2980. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  2981. ( cat <<\_ASBOX
  2982. ## ----------------------------- ##
  2983. ## Report this to mike@iworks.at ##
  2984. ## ----------------------------- ##
  2985. _ASBOX
  2986. ) | sed "s/^/$as_me: WARNING: /" >&2
  2987. ;;
  2988. esac
  2989. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2990. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2991. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2992. echo $ECHO_N "(cached) $ECHO_C" >&6
  2993. else
  2994. eval "$as_ac_Header=\$ac_header_preproc"
  2995. fi
  2996. ac_res=`eval echo '${'$as_ac_Header'}'`
  2997. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2998. echo "${ECHO_T}$ac_res" >&6; }
  2999. fi
  3000. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3001. cat >>confdefs.h <<_ACEOF
  3002. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3003. _ACEOF
  3004. fi
  3005. done
  3006. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3007. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  3008. if test "${ac_cv_c_const+set}" = set; then
  3009. echo $ECHO_N "(cached) $ECHO_C" >&6
  3010. else
  3011. cat >conftest.$ac_ext <<_ACEOF
  3012. /* confdefs.h. */
  3013. _ACEOF
  3014. cat confdefs.h >>conftest.$ac_ext
  3015. cat >>conftest.$ac_ext <<_ACEOF
  3016. /* end confdefs.h. */
  3017. int
  3018. main ()
  3019. {
  3020. /* FIXME: Include the comments suggested by Paul. */
  3021. #ifndef __cplusplus
  3022. /* Ultrix mips cc rejects this. */
  3023. typedef int charset[2];
  3024. const charset cs;
  3025. /* SunOS 4.1.1 cc rejects this. */
  3026. char const *const *pcpcc;
  3027. char **ppc;
  3028. /* NEC SVR4.0.2 mips cc rejects this. */
  3029. struct point {int x, y;};
  3030. static struct point const zero = {0,0};
  3031. /* AIX XL C 1.02.0.0 rejects this.
  3032. It does not let you subtract one const X* pointer from another in
  3033. an arm of an if-expression whose if-part is not a constant
  3034. expression */
  3035. const char *g = "string";
  3036. pcpcc = &g + (g ? g-g : 0);
  3037. /* HPUX 7.0 cc rejects these. */
  3038. ++pcpcc;
  3039. ppc = (char**) pcpcc;
  3040. pcpcc = (char const *const *) ppc;
  3041. { /* SCO 3.2v4 cc rejects this. */
  3042. char *t;
  3043. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3044. *t++ = 0;
  3045. if (s) return 0;
  3046. }
  3047. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3048. int x[] = {25, 17};
  3049. const int *foo = &x[0];
  3050. ++foo;
  3051. }
  3052. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3053. typedef const int *iptr;
  3054. iptr p = 0;
  3055. ++p;
  3056. }
  3057. { /* AIX XL C 1.02.0.0 rejects this saying
  3058. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3059. struct s { int j; const int *ap[3]; };
  3060. struct s *b; b->j = 5;
  3061. }
  3062. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3063. const int foo = 10;
  3064. if (!foo) return 0;
  3065. }
  3066. return !cs[0] && !zero.x;
  3067. #endif
  3068. ;
  3069. return 0;
  3070. }
  3071. _ACEOF
  3072. rm -f conftest.$ac_objext
  3073. if { (ac_try="$ac_compile"
  3074. case "(($ac_try" in
  3075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3076. *) ac_try_echo=$ac_try;;
  3077. esac
  3078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3079. (eval "$ac_compile") 2>conftest.er1
  3080. ac_status=$?
  3081. grep -v '^ *+' conftest.er1 >conftest.err
  3082. rm -f conftest.er1
  3083. cat conftest.err >&5
  3084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3085. (exit $ac_status); } && {
  3086. test -z "$ac_c_werror_flag" ||
  3087. test ! -s conftest.err
  3088. } && test -s conftest.$ac_objext; then
  3089. ac_cv_c_const=yes
  3090. else
  3091. echo "$as_me: failed program was:" >&5
  3092. sed 's/^/| /' conftest.$ac_ext >&5
  3093. ac_cv_c_const=no
  3094. fi
  3095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3096. fi
  3097. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3098. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  3099. if test $ac_cv_c_const = no; then
  3100. cat >>confdefs.h <<\_ACEOF
  3101. #define const
  3102. _ACEOF
  3103. fi
  3104. { echo "$as_me:$LINENO: checking for size_t" >&5
  3105. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  3106. if test "${ac_cv_type_size_t+set}" = set; then
  3107. echo $ECHO_N "(cached) $ECHO_C" >&6
  3108. else
  3109. cat >conftest.$ac_ext <<_ACEOF
  3110. /* confdefs.h. */
  3111. _ACEOF
  3112. cat confdefs.h >>conftest.$ac_ext
  3113. cat >>conftest.$ac_ext <<_ACEOF
  3114. /* end confdefs.h. */
  3115. $ac_includes_default
  3116. typedef size_t ac__type_new_;
  3117. int
  3118. main ()
  3119. {
  3120. if ((ac__type_new_ *) 0)
  3121. return 0;
  3122. if (sizeof (ac__type_new_))
  3123. return 0;
  3124. ;
  3125. return 0;
  3126. }
  3127. _ACEOF
  3128. rm -f conftest.$ac_objext
  3129. if { (ac_try="$ac_compile"
  3130. case "(($ac_try" in
  3131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3132. *) ac_try_echo=$ac_try;;
  3133. esac
  3134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3135. (eval "$ac_compile") 2>conftest.er1
  3136. ac_status=$?
  3137. grep -v '^ *+' conftest.er1 >conftest.err
  3138. rm -f conftest.er1
  3139. cat conftest.err >&5
  3140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3141. (exit $ac_status); } && {
  3142. test -z "$ac_c_werror_flag" ||
  3143. test ! -s conftest.err
  3144. } && test -s conftest.$ac_objext; then
  3145. ac_cv_type_size_t=yes
  3146. else
  3147. echo "$as_me: failed program was:" >&5
  3148. sed 's/^/| /' conftest.$ac_ext >&5
  3149. ac_cv_type_size_t=no
  3150. fi
  3151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3152. fi
  3153. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  3154. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  3155. if test $ac_cv_type_size_t = yes; then
  3156. :
  3157. else
  3158. cat >>confdefs.h <<_ACEOF
  3159. #define size_t unsigned int
  3160. _ACEOF
  3161. fi
  3162. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3163. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3164. if test "${ac_cv_header_stdc+set}" = set; then
  3165. echo $ECHO_N "(cached) $ECHO_C" >&6
  3166. else
  3167. cat >conftest.$ac_ext <<_ACEOF
  3168. /* confdefs.h. */
  3169. _ACEOF
  3170. cat confdefs.h >>conftest.$ac_ext
  3171. cat >>conftest.$ac_ext <<_ACEOF
  3172. /* end confdefs.h. */
  3173. #include <stdlib.h>
  3174. #include <stdarg.h>
  3175. #include <string.h>
  3176. #include <float.h>
  3177. int
  3178. main ()
  3179. {
  3180. ;
  3181. return 0;
  3182. }
  3183. _ACEOF
  3184. rm -f conftest.$ac_objext
  3185. if { (ac_try="$ac_compile"
  3186. case "(($ac_try" in
  3187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3188. *) ac_try_echo=$ac_try;;
  3189. esac
  3190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3191. (eval "$ac_compile") 2>conftest.er1
  3192. ac_status=$?
  3193. grep -v '^ *+' conftest.er1 >conftest.err
  3194. rm -f conftest.er1
  3195. cat conftest.err >&5
  3196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3197. (exit $ac_status); } && {
  3198. test -z "$ac_c_werror_flag" ||
  3199. test ! -s conftest.err
  3200. } && test -s conftest.$ac_objext; then
  3201. ac_cv_header_stdc=yes
  3202. else
  3203. echo "$as_me: failed program was:" >&5
  3204. sed 's/^/| /' conftest.$ac_ext >&5
  3205. ac_cv_header_stdc=no
  3206. fi
  3207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3208. if test $ac_cv_header_stdc = yes; then
  3209. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3210. cat >conftest.$ac_ext <<_ACEOF
  3211. /* confdefs.h. */
  3212. _ACEOF
  3213. cat confdefs.h >>conftest.$ac_ext
  3214. cat >>conftest.$ac_ext <<_ACEOF
  3215. /* end confdefs.h. */
  3216. #include <string.h>
  3217. _ACEOF
  3218. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3219. $EGREP "memchr" >/dev/null 2>&1; then
  3220. :
  3221. else
  3222. ac_cv_header_stdc=no
  3223. fi
  3224. rm -f conftest*
  3225. fi
  3226. if test $ac_cv_header_stdc = yes; then
  3227. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3228. cat >conftest.$ac_ext <<_ACEOF
  3229. /* confdefs.h. */
  3230. _ACEOF
  3231. cat confdefs.h >>conftest.$ac_ext
  3232. cat >>conftest.$ac_ext <<_ACEOF
  3233. /* end confdefs.h. */
  3234. #include <stdlib.h>
  3235. _ACEOF
  3236. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3237. $EGREP "free" >/dev/null 2>&1; then
  3238. :
  3239. else
  3240. ac_cv_header_stdc=no
  3241. fi
  3242. rm -f conftest*
  3243. fi
  3244. if test $ac_cv_header_stdc = yes; then
  3245. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3246. if test "$cross_compiling" = yes; then
  3247. :
  3248. else
  3249. cat >conftest.$ac_ext <<_ACEOF
  3250. /* confdefs.h. */
  3251. _ACEOF
  3252. cat confdefs.h >>conftest.$ac_ext
  3253. cat >>conftest.$ac_ext <<_ACEOF
  3254. /* end confdefs.h. */
  3255. #include <ctype.h>
  3256. #include <stdlib.h>
  3257. #if ((' ' & 0x0FF) == 0x020)
  3258. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3259. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3260. #else
  3261. # define ISLOWER(c) \
  3262. (('a' <= (c) && (c) <= 'i') \
  3263. || ('j' <= (c) && (c) <= 'r') \
  3264. || ('s' <= (c) && (c) <= 'z'))
  3265. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3266. #endif
  3267. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3268. int
  3269. main ()
  3270. {
  3271. int i;
  3272. for (i = 0; i < 256; i++)
  3273. if (XOR (islower (i), ISLOWER (i))
  3274. || toupper (i) != TOUPPER (i))
  3275. return 2;
  3276. return 0;
  3277. }
  3278. _ACEOF
  3279. rm -f conftest$ac_exeext
  3280. if { (ac_try="$ac_link"
  3281. case "(($ac_try" in
  3282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3283. *) ac_try_echo=$ac_try;;
  3284. esac
  3285. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3286. (eval "$ac_link") 2>&5
  3287. ac_status=$?
  3288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3289. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3290. { (case "(($ac_try" in
  3291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3292. *) ac_try_echo=$ac_try;;
  3293. esac
  3294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3295. (eval "$ac_try") 2>&5
  3296. ac_status=$?
  3297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3298. (exit $ac_status); }; }; then
  3299. :
  3300. else
  3301. echo "$as_me: program exited with status $ac_status" >&5
  3302. echo "$as_me: failed program was:" >&5
  3303. sed 's/^/| /' conftest.$ac_ext >&5
  3304. ( exit $ac_status )
  3305. ac_cv_header_stdc=no
  3306. fi
  3307. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3308. fi
  3309. fi
  3310. fi
  3311. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3312. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  3313. if test $ac_cv_header_stdc = yes; then
  3314. cat >>confdefs.h <<\_ACEOF
  3315. #define STDC_HEADERS 1
  3316. _ACEOF
  3317. fi
  3318. for ac_func in memmove strchr
  3319. do
  3320. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3321. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  3322. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  3323. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  3324. echo $ECHO_N "(cached) $ECHO_C" >&6
  3325. else
  3326. cat >conftest.$ac_ext <<_ACEOF
  3327. /* confdefs.h. */
  3328. _ACEOF
  3329. cat confdefs.h >>conftest.$ac_ext
  3330. cat >>conftest.$ac_ext <<_ACEOF
  3331. /* end confdefs.h. */
  3332. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  3333. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3334. #define $ac_func innocuous_$ac_func
  3335. /* System header to define __stub macros and hopefully few prototypes,
  3336. which can conflict with char $ac_func (); below.
  3337. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3338. <limits.h> exists even on freestanding compilers. */
  3339. #ifdef __STDC__
  3340. # include <limits.h>
  3341. #else
  3342. # include <assert.h>
  3343. #endif
  3344. #undef $ac_func
  3345. /* Override any GCC internal prototype to avoid an error.
  3346. Use char because int might match the return type of a GCC
  3347. builtin and then its argument prototype would still apply. */
  3348. #ifdef __cplusplus
  3349. extern "C"
  3350. #endif
  3351. char $ac_func ();
  3352. /* The GNU C library defines this for functions which it implements
  3353. to always fail with ENOSYS. Some functions are actually named
  3354. something starting with __ and the normal name is an alias. */
  3355. #if defined __stub_$ac_func || defined __stub___$ac_func
  3356. choke me
  3357. #endif
  3358. int
  3359. main ()
  3360. {
  3361. return $ac_func ();
  3362. ;
  3363. return 0;
  3364. }
  3365. _ACEOF
  3366. rm -f conftest.$ac_objext conftest$ac_exeext
  3367. if { (ac_try="$ac_link"
  3368. case "(($ac_try" in
  3369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3370. *) ac_try_echo=$ac_try;;
  3371. esac
  3372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3373. (eval "$ac_link") 2>conftest.er1
  3374. ac_status=$?
  3375. grep -v '^ *+' conftest.er1 >conftest.err
  3376. rm -f conftest.er1
  3377. cat conftest.err >&5
  3378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3379. (exit $ac_status); } && {
  3380. test -z "$ac_c_werror_flag" ||
  3381. test ! -s conftest.err
  3382. } && test -s conftest$ac_exeext &&
  3383. $as_test_x conftest$ac_exeext; then
  3384. eval "$as_ac_var=yes"
  3385. else
  3386. echo "$as_me: failed program was:" >&5
  3387. sed 's/^/| /' conftest.$ac_ext >&5
  3388. eval "$as_ac_var=no"
  3389. fi
  3390. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3391. conftest$ac_exeext conftest.$ac_ext
  3392. fi
  3393. ac_res=`eval echo '${'$as_ac_var'}'`
  3394. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3395. echo "${ECHO_T}$ac_res" >&6; }
  3396. if test `eval echo '${'$as_ac_var'}'` = yes; then
  3397. cat >>confdefs.h <<_ACEOF
  3398. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3399. _ACEOF
  3400. fi
  3401. done
  3402. # Check whether --with-apxs2 was given.
  3403. if test "${with_apxs2+set}" = set; then
  3404. withval=$with_apxs2;
  3405. fi
  3406. { echo "$as_me:$LINENO: checking for apxs2" >&5
  3407. echo $ECHO_N "checking for apxs2... $ECHO_C" >&6; }
  3408. APXS2=apxs2
  3409. if test "$with_apxs2" -a -x "$with_apxs2"; then
  3410. APXS2=$with_apxs2
  3411. { echo "$as_me:$LINENO: result: $APXS2" >&5
  3412. echo "${ECHO_T}$APXS2" >&6; }
  3413. else
  3414. apxs2 >/dev/null 2>&1
  3415. if test $? -eq 1; then
  3416. APXS2=apxs2
  3417. { echo "$as_me:$LINENO: result: in \$PATH" >&5
  3418. echo "${ECHO_T}in \$PATH" >&6; }
  3419. else
  3420. { echo "$as_me:$LINENO: result: " >&5
  3421. echo "${ECHO_T} " >&6; }
  3422. { { echo "$as_me:$LINENO: error: please specify path to the apxs2 tool through --with-apxs2" >&5
  3423. echo "$as_me: error: please specify path to the apxs2 tool through --with-apxs2" >&2;}
  3424. { (exit 1); exit 1; }; }
  3425. fi
  3426. fi
  3427. ac_config_files="$ac_config_files Makefile"
  3428. cat >confcache <<\_ACEOF
  3429. # This file is a shell script that caches the results of configure
  3430. # tests run on this system so they can be shared between configure
  3431. # scripts and configure runs, see configure's option --config-cache.
  3432. # It is not useful on other systems. If it contains results you don't
  3433. # want to keep, you may remove or edit it.
  3434. #
  3435. # config.status only pays attention to the cache file if you give it
  3436. # the --recheck option to rerun configure.
  3437. #
  3438. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3439. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3440. # following values.
  3441. _ACEOF
  3442. # The following way of writing the cache mishandles newlines in values,
  3443. # but we know of no workaround that is simple, portable, and efficient.
  3444. # So, we kill variables containing newlines.
  3445. # Ultrix sh set writes to stderr and can't be redirected directly,
  3446. # and sets the high bit in the cache file unless we assign to the vars.
  3447. (
  3448. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3449. eval ac_val=\$$ac_var
  3450. case $ac_val in #(
  3451. *${as_nl}*)
  3452. case $ac_var in #(
  3453. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3454. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3455. esac
  3456. case $ac_var in #(
  3457. _ | IFS | as_nl) ;; #(
  3458. *) $as_unset $ac_var ;;
  3459. esac ;;
  3460. esac
  3461. done
  3462. (set) 2>&1 |
  3463. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3464. *${as_nl}ac_space=\ *)
  3465. # `set' does not quote correctly, so add quotes (double-quote
  3466. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3467. sed -n \
  3468. "s/'/'\\\\''/g;
  3469. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3470. ;; #(
  3471. *)
  3472. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3473. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3474. ;;
  3475. esac |
  3476. sort
  3477. ) |
  3478. sed '
  3479. /^ac_cv_env_/b end
  3480. t clear
  3481. :clear
  3482. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3483. t end
  3484. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3485. :end' >>confcache
  3486. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3487. if test -w "$cache_file"; then
  3488. test "x$cache_file" != "x/dev/null" &&
  3489. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3490. echo "$as_me: updating cache $cache_file" >&6;}
  3491. cat confcache >$cache_file
  3492. else
  3493. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3494. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3495. fi
  3496. fi
  3497. rm -f confcache
  3498. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3499. # Let make expand exec_prefix.
  3500. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3501. DEFS=-DHAVE_CONFIG_H
  3502. ac_libobjs=
  3503. ac_ltlibobjs=
  3504. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3505. # 1. Remove the extension, and $U if already installed.
  3506. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3507. ac_i=`echo "$ac_i" | sed "$ac_script"`
  3508. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3509. # will be set to the directory where LIBOBJS objects are built.
  3510. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3511. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  3512. done
  3513. LIBOBJS=$ac_libobjs
  3514. LTLIBOBJS=$ac_ltlibobjs
  3515. : ${CONFIG_STATUS=./config.status}
  3516. ac_clean_files_save=$ac_clean_files
  3517. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3518. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  3519. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3520. cat >$CONFIG_STATUS <<_ACEOF
  3521. #! $SHELL
  3522. # Generated by $as_me.
  3523. # Run this file to recreate the current configuration.
  3524. # Compiler output produced by configure, useful for debugging
  3525. # configure, is in config.log if it exists.
  3526. debug=false
  3527. ac_cs_recheck=false
  3528. ac_cs_silent=false
  3529. SHELL=\${CONFIG_SHELL-$SHELL}
  3530. _ACEOF
  3531. cat >>$CONFIG_STATUS <<\_ACEOF
  3532. ## --------------------- ##
  3533. ## M4sh Initialization. ##
  3534. ## --------------------- ##
  3535. # Be more Bourne compatible
  3536. DUALCASE=1; export DUALCASE # for MKS sh
  3537. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  3538. emulate sh
  3539. NULLCMD=:
  3540. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  3541. # is contrary to our usage. Disable this feature.
  3542. alias -g '${1+"$@"}'='"$@"'
  3543. setopt NO_GLOB_SUBST
  3544. else
  3545. case `(set -o) 2>/dev/null` in
  3546. *posix*) set -o posix ;;
  3547. esac
  3548. fi
  3549. # PATH needs CR
  3550. # Avoid depending upon Character Ranges.
  3551. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3552. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3553. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3554. as_cr_digits='0123456789'
  3555. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3556. # The user is always right.
  3557. if test "${PATH_SEPARATOR+set}" != set; then
  3558. echo "#! /bin/sh" >conf$$.sh
  3559. echo "exit 0" >>conf$$.sh
  3560. chmod +x conf$$.sh
  3561. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3562. PATH_SEPARATOR=';'
  3563. else
  3564. PATH_SEPARATOR=:
  3565. fi
  3566. rm -f conf$$.sh
  3567. fi
  3568. # Support unset when possible.
  3569. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3570. as_unset=unset
  3571. else
  3572. as_unset=false
  3573. fi
  3574. # IFS
  3575. # We need space, tab and new line, in precisely that order. Quoting is
  3576. # there to prevent editors from complaining about space-tab.
  3577. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  3578. # splitting by setting IFS to empty value.)
  3579. as_nl='
  3580. '
  3581. IFS=" "" $as_nl"
  3582. # Find who we are. Look in the path if we contain no directory separator.
  3583. case $0 in
  3584. *[\\/]* ) as_myself=$0 ;;
  3585. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3586. for as_dir in $PATH
  3587. do
  3588. IFS=$as_save_IFS
  3589. test -z "$as_dir" && as_dir=.
  3590. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3591. done
  3592. IFS=$as_save_IFS
  3593. ;;
  3594. esac
  3595. # We did not find ourselves, most probably we were run as `sh COMMAND'
  3596. # in which case we are not to be found in the path.
  3597. if test "x$as_myself" = x; then
  3598. as_myself=$0
  3599. fi
  3600. if test ! -f "$as_myself"; then
  3601. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  3602. { (exit 1); exit 1; }
  3603. fi
  3604. # Work around bugs in pre-3.0 UWIN ksh.
  3605. for as_var in ENV MAIL MAILPATH
  3606. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  3607. done
  3608. PS1='$ '
  3609. PS2='> '
  3610. PS4='+ '
  3611. # NLS nuisances.
  3612. for as_var in \
  3613. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  3614. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  3615. LC_TELEPHONE LC_TIME
  3616. do
  3617. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  3618. eval $as_var=C; export $as_var
  3619. else
  3620. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  3621. fi
  3622. done
  3623. # Required to use basename.
  3624. if expr a : '\(a\)' >/dev/null 2>&1 &&
  3625. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  3626. as_expr=expr
  3627. else
  3628. as_expr=false
  3629. fi
  3630. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  3631. as_basename=basename
  3632. else
  3633. as_basename=false
  3634. fi
  3635. # Name of the executable.
  3636. as_me=`$as_basename -- "$0" ||
  3637. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3638. X"$0" : 'X\(//\)$' \| \
  3639. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  3640. echo X/"$0" |
  3641. sed '/^.*\/\([^/][^/]*\)\/*$/{
  3642. s//\1/
  3643. q
  3644. }
  3645. /^X\/\(\/\/\)$/{
  3646. s//\1/
  3647. q
  3648. }
  3649. /^X\/\(\/\).*/{
  3650. s//\1/
  3651. q
  3652. }
  3653. s/.*/./; q'`
  3654. # CDPATH.
  3655. $as_unset CDPATH
  3656. as_lineno_1=$LINENO
  3657. as_lineno_2=$LINENO
  3658. test "x$as_lineno_1" != "x$as_lineno_2" &&
  3659. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  3660. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  3661. # uniformly replaced by the line number. The first 'sed' inserts a
  3662. # line-number line after each line using $LINENO; the second 'sed'
  3663. # does the real work. The second script uses 'N' to pair each
  3664. # line-number line with the line containing $LINENO, and appends
  3665. # trailing '-' during substitution so that $LINENO is not a special
  3666. # case at line end.
  3667. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  3668. # scripts with optimization help from Paolo Bonzini. Blame Lee
  3669. # E. McMahon (1931-1989) for sed's syntax. :-)
  3670. sed -n '
  3671. p
  3672. /[$]LINENO/=
  3673. ' <$as_myself |
  3674. sed '
  3675. s/[$]LINENO.*/&-/
  3676. t lineno
  3677. b
  3678. :lineno
  3679. N
  3680. :loop
  3681. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  3682. t loop
  3683. s/-\n.*//
  3684. ' >$as_me.lineno &&
  3685. chmod +x "$as_me.lineno" ||
  3686. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  3687. { (exit 1); exit 1; }; }
  3688. # Don't try to exec as it changes $[0], causing all sort of problems
  3689. # (the dirname of $[0] is not the place where we might find the
  3690. # original and so on. Autoconf is especially sensitive to this).
  3691. . "./$as_me.lineno"
  3692. # Exit status is that of the last command.
  3693. exit
  3694. }
  3695. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  3696. as_dirname=dirname
  3697. else
  3698. as_dirname=false
  3699. fi
  3700. ECHO_C= ECHO_N= ECHO_T=
  3701. case `echo -n x` in
  3702. -n*)
  3703. case `echo 'x\c'` in
  3704. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  3705. *) ECHO_C='\c';;
  3706. esac;;
  3707. *)
  3708. ECHO_N='-n';;
  3709. esac
  3710. if expr a : '\(a\)' >/dev/null 2>&1 &&
  3711. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  3712. as_expr=expr
  3713. else
  3714. as_expr=false
  3715. fi
  3716. rm -f conf$$ conf$$.exe conf$$.file
  3717. if test -d conf$$.dir; then
  3718. rm -f conf$$.dir/conf$$.file
  3719. else
  3720. rm -f conf$$.dir
  3721. mkdir conf$$.dir
  3722. fi
  3723. echo >conf$$.file
  3724. if ln -s conf$$.file conf$$ 2>/dev/null; then
  3725. as_ln_s='ln -s'
  3726. # ... but there are two gotchas:
  3727. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  3728. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  3729. # In both cases, we have to default to `cp -p'.
  3730. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  3731. as_ln_s='cp -p'
  3732. elif ln conf$$.file conf$$ 2>/dev/null; then
  3733. as_ln_s=ln
  3734. else
  3735. as_ln_s='cp -p'
  3736. fi
  3737. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  3738. rmdir conf$$.dir 2>/dev/null
  3739. if mkdir -p . 2>/dev/null; then
  3740. as_mkdir_p=:
  3741. else
  3742. test -d ./-p && rmdir ./-p
  3743. as_mkdir_p=false
  3744. fi
  3745. if test -x / >/dev/null 2>&1; then
  3746. as_test_x='test -x'
  3747. else
  3748. if ls -dL / >/dev/null 2>&1; then
  3749. as_ls_L_option=L
  3750. else
  3751. as_ls_L_option=
  3752. fi
  3753. as_test_x='
  3754. eval sh -c '\''
  3755. if test -d "$1"; then
  3756. test -d "$1/.";
  3757. else
  3758. case $1 in
  3759. -*)set "./$1";;
  3760. esac;
  3761. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  3762. ???[sx]*):;;*)false;;esac;fi
  3763. '\'' sh
  3764. '
  3765. fi
  3766. as_executable_p=$as_test_x
  3767. # Sed expression to map a string onto a valid CPP name.
  3768. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  3769. # Sed expression to map a string onto a valid variable name.
  3770. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  3771. exec 6>&1
  3772. # Save the log message, to keep $[0] and so on meaningful, and to
  3773. # report actual input values of CONFIG_FILES etc. instead of their
  3774. # values after options handling.
  3775. ac_log="
  3776. This file was extended by mod_domaintree $as_me 1.6, which was
  3777. generated by GNU Autoconf 2.61. Invocation command line was
  3778. CONFIG_FILES = $CONFIG_FILES
  3779. CONFIG_HEADERS = $CONFIG_HEADERS
  3780. CONFIG_LINKS = $CONFIG_LINKS
  3781. CONFIG_COMMANDS = $CONFIG_COMMANDS
  3782. $ $0 $@
  3783. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  3784. "
  3785. _ACEOF
  3786. cat >>$CONFIG_STATUS <<_ACEOF
  3787. # Files that config.status was made for.
  3788. config_files="$ac_config_files"
  3789. config_headers="$ac_config_headers"
  3790. _ACEOF
  3791. cat >>$CONFIG_STATUS <<\_ACEOF
  3792. ac_cs_usage="\
  3793. \`$as_me' instantiates files from templates according to the
  3794. current configuration.
  3795. Usage: $0 [OPTIONS] [FILE]...
  3796. -h, --help print this help, then exit
  3797. -V, --version print version number and configuration settings, then exit
  3798. -q, --quiet do not print progress messages
  3799. -d, --debug don't remove temporary files
  3800. --recheck update $as_me by reconfiguring in the same conditions
  3801. --file=FILE[:TEMPLATE]
  3802. instantiate the configuration file FILE
  3803. --header=FILE[:TEMPLATE]
  3804. instantiate the configuration header FILE
  3805. Configuration files:
  3806. $config_files
  3807. Configuration headers:
  3808. $config_headers
  3809. Report bugs to <bug-autoconf@gnu.org>."
  3810. _ACEOF
  3811. cat >>$CONFIG_STATUS <<_ACEOF
  3812. ac_cs_version="\\
  3813. mod_domaintree config.status 1.6
  3814. configured by $0, generated by GNU Autoconf 2.61,
  3815. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  3816. Copyright (C) 2006 Free Software Foundation, Inc.
  3817. This config.status script is free software; the Free Software Foundation
  3818. gives unlimited permission to copy, distribute and modify it."
  3819. ac_pwd='$ac_pwd'
  3820. srcdir='$srcdir'
  3821. _ACEOF
  3822. cat >>$CONFIG_STATUS <<\_ACEOF
  3823. # If no file are specified by the user, then we need to provide default
  3824. # value. By we need to know if files were specified by the user.
  3825. ac_need_defaults=:
  3826. while test $# != 0
  3827. do
  3828. case $1 in
  3829. --*=*)
  3830. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  3831. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  3832. ac_shift=:
  3833. ;;
  3834. *)
  3835. ac_option=$1
  3836. ac_optarg=$2
  3837. ac_shift=shift
  3838. ;;
  3839. esac
  3840. case $ac_option in
  3841. # Handling of the options.
  3842. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3843. ac_cs_recheck=: ;;
  3844. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  3845. echo "$ac_cs_version"; exit ;;
  3846. --debug | --debu | --deb | --de | --d | -d )
  3847. debug=: ;;
  3848. --file | --fil | --fi | --f )
  3849. $ac_shift
  3850. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  3851. ac_need_defaults=false;;
  3852. --header | --heade | --head | --hea )
  3853. $ac_shift
  3854. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  3855. ac_need_defaults=false;;
  3856. --he | --h)
  3857. # Conflict between --help and --header
  3858. { echo "$as_me: error: ambiguous option: $1
  3859. Try \`$0 --help' for more information." >&2
  3860. { (exit 1); exit 1; }; };;
  3861. --help | --hel | -h )
  3862. echo "$ac_cs_usage"; exit ;;
  3863. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3864. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  3865. ac_cs_silent=: ;;
  3866. # This is an error.
  3867. -*) { echo "$as_me: error: unrecognized option: $1
  3868. Try \`$0 --help' for more information." >&2
  3869. { (exit 1); exit 1; }; } ;;
  3870. *) ac_config_targets="$ac_config_targets $1"
  3871. ac_need_defaults=false ;;
  3872. esac
  3873. shift
  3874. done
  3875. ac_configure_extra_args=
  3876. if $ac_cs_silent; then
  3877. exec 6>/dev/null
  3878. ac_configure_extra_args="$ac_configure_extra_args --silent"
  3879. fi
  3880. _ACEOF
  3881. cat >>$CONFIG_STATUS <<_ACEOF
  3882. if \$ac_cs_recheck; then
  3883. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  3884. CONFIG_SHELL=$SHELL
  3885. export CONFIG_SHELL
  3886. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  3887. fi
  3888. _ACEOF
  3889. cat >>$CONFIG_STATUS <<\_ACEOF
  3890. exec 5>>config.log
  3891. {
  3892. echo
  3893. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  3894. ## Running $as_me. ##
  3895. _ASBOX
  3896. echo "$ac_log"
  3897. } >&5
  3898. _ACEOF
  3899. cat >>$CONFIG_STATUS <<_ACEOF
  3900. _ACEOF
  3901. cat >>$CONFIG_STATUS <<\_ACEOF
  3902. # Handling of arguments.
  3903. for ac_config_target in $ac_config_targets
  3904. do
  3905. case $ac_config_target in
  3906. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  3907. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  3908. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  3909. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  3910. { (exit 1); exit 1; }; };;
  3911. esac
  3912. done
  3913. # If the user did not use the arguments to specify the items to instantiate,
  3914. # then the envvar interface is used. Set only those that are not.
  3915. # We use the long form for the default assignment because of an extremely
  3916. # bizarre bug on SunOS 4.1.3.
  3917. if $ac_need_defaults; then
  3918. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  3919. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  3920. fi
  3921. # Have a temporary directory for convenience. Make it in the build tree
  3922. # simply because there is no reason against having it here, and in addition,
  3923. # creating and moving files from /tmp can sometimes cause problems.
  3924. # Hook for its removal unless debugging.
  3925. # Note that there is a small window in which the directory will not be cleaned:
  3926. # after its creation but before its name has been assigned to `$tmp'.
  3927. $debug ||
  3928. {
  3929. tmp=
  3930. trap 'exit_status=$?
  3931. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  3932. ' 0
  3933. trap '{ (exit 1); exit 1; }' 1 2 13 15
  3934. }
  3935. # Create a (secure) tmp directory for tmp files.
  3936. {
  3937. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  3938. test -n "$tmp" && test -d "$tmp"
  3939. } ||
  3940. {
  3941. tmp=./conf$$-$RANDOM
  3942. (umask 077 && mkdir "$tmp")
  3943. } ||
  3944. {
  3945. echo "$me: cannot create a temporary directory in ." >&2
  3946. { (exit 1); exit 1; }
  3947. }
  3948. #
  3949. # Set up the sed scripts for CONFIG_FILES section.
  3950. #
  3951. # No need to generate the scripts if there are no CONFIG_FILES.
  3952. # This happens for instance when ./config.status config.h
  3953. if test -n "$CONFIG_FILES"; then
  3954. _ACEOF
  3955. ac_delim='%!_!# '
  3956. for ac_last_try in false false false false false :; do
  3957. cat >conf$$subs.sed <<_ACEOF
  3958. SHELL!$SHELL$ac_delim
  3959. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  3960. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  3961. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  3962. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  3963. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  3964. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  3965. exec_prefix!$exec_prefix$ac_delim
  3966. prefix!$prefix$ac_delim
  3967. program_transform_name!$program_transform_name$ac_delim
  3968. bindir!$bindir$ac_delim
  3969. sbindir!$sbindir$ac_delim
  3970. libexecdir!$libexecdir$ac_delim
  3971. datarootdir!$datarootdir$ac_delim
  3972. datadir!$datadir$ac_delim
  3973. sysconfdir!$sysconfdir$ac_delim
  3974. sharedstatedir!$sharedstatedir$ac_delim
  3975. localstatedir!$localstatedir$ac_delim
  3976. includedir!$includedir$ac_delim
  3977. oldincludedir!$oldincludedir$ac_delim
  3978. docdir!$docdir$ac_delim
  3979. infodir!$infodir$ac_delim
  3980. htmldir!$htmldir$ac_delim
  3981. dvidir!$dvidir$ac_delim
  3982. pdfdir!$pdfdir$ac_delim
  3983. psdir!$psdir$ac_delim
  3984. libdir!$libdir$ac_delim
  3985. localedir!$localedir$ac_delim
  3986. mandir!$mandir$ac_delim
  3987. DEFS!$DEFS$ac_delim
  3988. ECHO_C!$ECHO_C$ac_delim
  3989. ECHO_N!$ECHO_N$ac_delim
  3990. ECHO_T!$ECHO_T$ac_delim
  3991. LIBS!$LIBS$ac_delim
  3992. build_alias!$build_alias$ac_delim
  3993. host_alias!$host_alias$ac_delim
  3994. target_alias!$target_alias$ac_delim
  3995. CC!$CC$ac_delim
  3996. CFLAGS!$CFLAGS$ac_delim
  3997. LDFLAGS!$LDFLAGS$ac_delim
  3998. CPPFLAGS!$CPPFLAGS$ac_delim
  3999. ac_ct_CC!$ac_ct_CC$ac_delim
  4000. EXEEXT!$EXEEXT$ac_delim
  4001. OBJEXT!$OBJEXT$ac_delim
  4002. CPP!$CPP$ac_delim
  4003. GREP!$GREP$ac_delim
  4004. EGREP!$EGREP$ac_delim
  4005. APXS2!$APXS2$ac_delim
  4006. LIBOBJS!$LIBOBJS$ac_delim
  4007. LTLIBOBJS!$LTLIBOBJS$ac_delim
  4008. _ACEOF
  4009. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
  4010. break
  4011. elif $ac_last_try; then
  4012. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  4013. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  4014. { (exit 1); exit 1; }; }
  4015. else
  4016. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4017. fi
  4018. done
  4019. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  4020. if test -n "$ac_eof"; then
  4021. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  4022. ac_eof=`expr $ac_eof + 1`
  4023. fi
  4024. cat >>$CONFIG_STATUS <<_ACEOF
  4025. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  4026. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  4027. _ACEOF
  4028. sed '
  4029. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  4030. s/^/s,@/; s/!/@,|#_!!_#|/
  4031. :n
  4032. t n
  4033. s/'"$ac_delim"'$/,g/; t
  4034. s/$/\\/; p
  4035. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  4036. ' >>$CONFIG_STATUS <conf$$subs.sed
  4037. rm -f conf$$subs.sed
  4038. cat >>$CONFIG_STATUS <<_ACEOF
  4039. :end
  4040. s/|#_!!_#|//g
  4041. CEOF$ac_eof
  4042. _ACEOF
  4043. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4044. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4045. # trailing colons and then remove the whole line if VPATH becomes empty
  4046. # (actually we leave an empty line to preserve line numbers).
  4047. if test "x$srcdir" = x.; then
  4048. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  4049. s/:*\$(srcdir):*/:/
  4050. s/:*\${srcdir}:*/:/
  4051. s/:*@srcdir@:*/:/
  4052. s/^\([^=]*=[ ]*\):*/\1/
  4053. s/:*$//
  4054. s/^[^=]*=[ ]*$//
  4055. }'
  4056. fi
  4057. cat >>$CONFIG_STATUS <<\_ACEOF
  4058. fi # test -n "$CONFIG_FILES"
  4059. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
  4060. do
  4061. case $ac_tag in
  4062. :[FHLC]) ac_mode=$ac_tag; continue;;
  4063. esac
  4064. case $ac_mode$ac_tag in
  4065. :[FHL]*:*);;
  4066. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  4067. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  4068. { (exit 1); exit 1; }; };;
  4069. :[FH]-) ac_tag=-:-;;
  4070. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4071. esac
  4072. ac_save_IFS=$IFS
  4073. IFS=:
  4074. set x $ac_tag
  4075. IFS=$ac_save_IFS
  4076. shift
  4077. ac_file=$1
  4078. shift
  4079. case $ac_mode in
  4080. :L) ac_source=$1;;
  4081. :[FH])
  4082. ac_file_inputs=
  4083. for ac_f
  4084. do
  4085. case $ac_f in
  4086. -) ac_f="$tmp/stdin";;
  4087. *) # Look for the file first in the build tree, then in the source tree
  4088. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4089. # because $ac_f cannot contain `:'.
  4090. test -f "$ac_f" ||
  4091. case $ac_f in
  4092. [\\/$]*) false;;
  4093. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4094. esac ||
  4095. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  4096. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  4097. { (exit 1); exit 1; }; };;
  4098. esac
  4099. ac_file_inputs="$ac_file_inputs $ac_f"
  4100. done
  4101. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4102. # use $as_me), people would be surprised to read:
  4103. # /* config.h. Generated by config.status. */
  4104. configure_input="Generated from "`IFS=:
  4105. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  4106. if test x"$ac_file" != x-; then
  4107. configure_input="$ac_file. $configure_input"
  4108. { echo "$as_me:$LINENO: creating $ac_file" >&5
  4109. echo "$as_me: creating $ac_file" >&6;}
  4110. fi
  4111. case $ac_tag in
  4112. *:-:* | *:-) cat >"$tmp/stdin";;
  4113. esac
  4114. ;;
  4115. esac
  4116. ac_dir=`$as_dirname -- "$ac_file" ||
  4117. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4118. X"$ac_file" : 'X\(//\)[^/]' \| \
  4119. X"$ac_file" : 'X\(//\)$' \| \
  4120. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4121. echo X"$ac_file" |
  4122. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4123. s//\1/
  4124. q
  4125. }
  4126. /^X\(\/\/\)[^/].*/{
  4127. s//\1/
  4128. q
  4129. }
  4130. /^X\(\/\/\)$/{
  4131. s//\1/
  4132. q
  4133. }
  4134. /^X\(\/\).*/{
  4135. s//\1/
  4136. q
  4137. }
  4138. s/.*/./; q'`
  4139. { as_dir="$ac_dir"
  4140. case $as_dir in #(
  4141. -*) as_dir=./$as_dir;;
  4142. esac
  4143. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  4144. as_dirs=
  4145. while :; do
  4146. case $as_dir in #(
  4147. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  4148. *) as_qdir=$as_dir;;
  4149. esac
  4150. as_dirs="'$as_qdir' $as_dirs"
  4151. as_dir=`$as_dirname -- "$as_dir" ||
  4152. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4153. X"$as_dir" : 'X\(//\)[^/]' \| \
  4154. X"$as_dir" : 'X\(//\)$' \| \
  4155. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4156. echo X"$as_dir" |
  4157. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4158. s//\1/
  4159. q
  4160. }
  4161. /^X\(\/\/\)[^/].*/{
  4162. s//\1/
  4163. q
  4164. }
  4165. /^X\(\/\/\)$/{
  4166. s//\1/
  4167. q
  4168. }
  4169. /^X\(\/\).*/{
  4170. s//\1/
  4171. q
  4172. }
  4173. s/.*/./; q'`
  4174. test -d "$as_dir" && break
  4175. done
  4176. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4177. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  4178. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  4179. { (exit 1); exit 1; }; }; }
  4180. ac_builddir=.
  4181. case "$ac_dir" in
  4182. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4183. *)
  4184. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  4185. # A ".." for each directory in $ac_dir_suffix.
  4186. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  4187. case $ac_top_builddir_sub in
  4188. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4189. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  4190. esac ;;
  4191. esac
  4192. ac_abs_top_builddir=$ac_pwd
  4193. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  4194. # for backward compatibility:
  4195. ac_top_builddir=$ac_top_build_prefix
  4196. case $srcdir in
  4197. .) # We are building in place.
  4198. ac_srcdir=.
  4199. ac_top_srcdir=$ac_top_builddir_sub
  4200. ac_abs_top_srcdir=$ac_pwd ;;
  4201. [\\/]* | ?:[\\/]* ) # Absolute name.
  4202. ac_srcdir=$srcdir$ac_dir_suffix;
  4203. ac_top_srcdir=$srcdir
  4204. ac_abs_top_srcdir=$srcdir ;;
  4205. *) # Relative name.
  4206. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  4207. ac_top_srcdir=$ac_top_build_prefix$srcdir
  4208. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  4209. esac
  4210. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  4211. case $ac_mode in
  4212. :F)
  4213. #
  4214. # CONFIG_FILE
  4215. #
  4216. _ACEOF
  4217. cat >>$CONFIG_STATUS <<\_ACEOF
  4218. # If the template does not know about datarootdir, expand it.
  4219. # FIXME: This hack should be removed a few years after 2.60.
  4220. ac_datarootdir_hack=; ac_datarootdir_seen=
  4221. case `sed -n '/datarootdir/ {
  4222. p
  4223. q
  4224. }
  4225. /@datadir@/p
  4226. /@docdir@/p
  4227. /@infodir@/p
  4228. /@localedir@/p
  4229. /@mandir@/p
  4230. ' $ac_file_inputs` in
  4231. *datarootdir*) ac_datarootdir_seen=yes;;
  4232. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  4233. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  4234. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  4235. _ACEOF
  4236. cat >>$CONFIG_STATUS <<_ACEOF
  4237. ac_datarootdir_hack='
  4238. s&@datadir@&$datadir&g
  4239. s&@docdir@&$docdir&g
  4240. s&@infodir@&$infodir&g
  4241. s&@localedir@&$localedir&g
  4242. s&@mandir@&$mandir&g
  4243. s&\\\${datarootdir}&$datarootdir&g' ;;
  4244. esac
  4245. _ACEOF
  4246. # Neutralize VPATH when `$srcdir' = `.'.
  4247. # Shell code in configure.ac might set extrasub.
  4248. # FIXME: do we really want to maintain this feature?
  4249. cat >>$CONFIG_STATUS <<_ACEOF
  4250. sed "$ac_vpsub
  4251. $extrasub
  4252. _ACEOF
  4253. cat >>$CONFIG_STATUS <<\_ACEOF
  4254. :t
  4255. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4256. s&@configure_input@&$configure_input&;t t
  4257. s&@top_builddir@&$ac_top_builddir_sub&;t t
  4258. s&@srcdir@&$ac_srcdir&;t t
  4259. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  4260. s&@top_srcdir@&$ac_top_srcdir&;t t
  4261. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  4262. s&@builddir@&$ac_builddir&;t t
  4263. s&@abs_builddir@&$ac_abs_builddir&;t t
  4264. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  4265. $ac_datarootdir_hack
  4266. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  4267. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  4268. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  4269. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  4270. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4271. which seems to be undefined. Please make sure it is defined." >&5
  4272. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4273. which seems to be undefined. Please make sure it is defined." >&2;}
  4274. rm -f "$tmp/stdin"
  4275. case $ac_file in
  4276. -) cat "$tmp/out"; rm -f "$tmp/out";;
  4277. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  4278. esac
  4279. ;;
  4280. :H)
  4281. #
  4282. # CONFIG_HEADER
  4283. #
  4284. _ACEOF
  4285. # Transform confdefs.h into a sed script `conftest.defines', that
  4286. # substitutes the proper values into config.h.in to produce config.h.
  4287. rm -f conftest.defines conftest.tail
  4288. # First, append a space to every undef/define line, to ease matching.
  4289. echo 's/$/ /' >conftest.defines
  4290. # Then, protect against being on the right side of a sed subst, or in
  4291. # an unquoted here document, in config.status. If some macros were
  4292. # called several times there might be several #defines for the same
  4293. # symbol, which is useless. But do not sort them, since the last
  4294. # AC_DEFINE must be honored.
  4295. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  4296. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  4297. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  4298. # PARAMS is the parameter list in the macro definition--in most cases, it's
  4299. # just an empty string.
  4300. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  4301. ac_dB='\\)[ (].*,\\1define\\2'
  4302. ac_dC=' '
  4303. ac_dD=' ,'
  4304. uniq confdefs.h |
  4305. sed -n '
  4306. t rset
  4307. :rset
  4308. s/^[ ]*#[ ]*define[ ][ ]*//
  4309. t ok
  4310. d
  4311. :ok
  4312. s/[\\&,]/\\&/g
  4313. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  4314. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  4315. ' >>conftest.defines
  4316. # Remove the space that was appended to ease matching.
  4317. # Then replace #undef with comments. This is necessary, for
  4318. # example, in the case of _POSIX_SOURCE, which is predefined and required
  4319. # on some systems where configure will not decide to define it.
  4320. # (The regexp can be short, since the line contains either #define or #undef.)
  4321. echo 's/ $//
  4322. s,^[ #]*u.*,/* & */,' >>conftest.defines
  4323. # Break up conftest.defines:
  4324. ac_max_sed_lines=50
  4325. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  4326. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  4327. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  4328. # et cetera.
  4329. ac_in='$ac_file_inputs'
  4330. ac_out='"$tmp/out1"'
  4331. ac_nxt='"$tmp/out2"'
  4332. while :
  4333. do
  4334. # Write a here document:
  4335. cat >>$CONFIG_STATUS <<_ACEOF
  4336. # First, check the format of the line:
  4337. cat >"\$tmp/defines.sed" <<\\CEOF
  4338. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  4339. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  4340. b
  4341. :def
  4342. _ACEOF
  4343. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  4344. echo 'CEOF
  4345. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  4346. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  4347. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  4348. grep . conftest.tail >/dev/null || break
  4349. rm -f conftest.defines
  4350. mv conftest.tail conftest.defines
  4351. done
  4352. rm -f conftest.defines conftest.tail
  4353. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  4354. cat >>$CONFIG_STATUS <<\_ACEOF
  4355. if test x"$ac_file" != x-; then
  4356. echo "/* $configure_input */" >"$tmp/config.h"
  4357. cat "$ac_result" >>"$tmp/config.h"
  4358. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  4359. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  4360. echo "$as_me: $ac_file is unchanged" >&6;}
  4361. else
  4362. rm -f $ac_file
  4363. mv "$tmp/config.h" $ac_file
  4364. fi
  4365. else
  4366. echo "/* $configure_input */"
  4367. cat "$ac_result"
  4368. fi
  4369. rm -f "$tmp/out12"
  4370. ;;
  4371. esac
  4372. done # for ac_tag
  4373. { (exit 0); exit 0; }
  4374. _ACEOF
  4375. chmod +x $CONFIG_STATUS
  4376. ac_clean_files=$ac_clean_files_save
  4377. # configure is writing to config.log, and then calls config.status.
  4378. # config.status does its own redirection, appending to config.log.
  4379. # Unfortunately, on DOS this fails, as config.log is still kept open
  4380. # by configure, so config.status won't be able to write to it; its
  4381. # output is simply discarded. So we exec the FD to /dev/null,
  4382. # effectively closing config.log, so it can be properly (re)opened and
  4383. # appended to by config.status. When coming back to configure, we
  4384. # need to make the FD available again.
  4385. if test "$no_create" != yes; then
  4386. ac_cs_success=:
  4387. ac_config_status_args=
  4388. test "$silent" = yes &&
  4389. ac_config_status_args="$ac_config_status_args --quiet"
  4390. exec 5>/dev/null
  4391. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4392. exec 5>>config.log
  4393. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4394. # would make configure fail if this is the last instruction.
  4395. $ac_cs_success || { (exit 1); exit 1; }
  4396. fi