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

6288 lines
179 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  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. # Pre-4.2 versions of Zsh do 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*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  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. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="Bucket.h"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_subst_vars='LTLIBOBJS
  573. LIBOBJS
  574. WIDGET_OBJS
  575. WIDGET_LIBS
  576. GTK_LIBS
  577. GTK_CFLAGS
  578. PKG_CONFIG_LIBDIR
  579. PKG_CONFIG_PATH
  580. PKG_CONFIG
  581. EGREP
  582. GREP
  583. X_EXTRA_LIBS
  584. X_LIBS
  585. X_PRE_LIBS
  586. X_CFLAGS
  587. XMKMF
  588. RANLIB
  589. SET_MAKE
  590. LN_S
  591. INSTALL_DATA
  592. INSTALL_SCRIPT
  593. INSTALL_PROGRAM
  594. LEXLIB
  595. LEX_OUTPUT_ROOT
  596. LEX
  597. CPP
  598. OBJEXT
  599. EXEEXT
  600. ac_ct_CC
  601. CPPFLAGS
  602. LDFLAGS
  603. CFLAGS
  604. CC
  605. YFLAGS
  606. YACC
  607. target_alias
  608. host_alias
  609. build_alias
  610. LIBS
  611. ECHO_T
  612. ECHO_N
  613. ECHO_C
  614. DEFS
  615. mandir
  616. localedir
  617. libdir
  618. psdir
  619. pdfdir
  620. dvidir
  621. htmldir
  622. infodir
  623. docdir
  624. oldincludedir
  625. includedir
  626. localstatedir
  627. sharedstatedir
  628. sysconfdir
  629. datadir
  630. datarootdir
  631. libexecdir
  632. sbindir
  633. bindir
  634. program_transform_name
  635. prefix
  636. exec_prefix
  637. PACKAGE_URL
  638. PACKAGE_BUGREPORT
  639. PACKAGE_STRING
  640. PACKAGE_VERSION
  641. PACKAGE_TARNAME
  642. PACKAGE_NAME
  643. PATH_SEPARATOR
  644. SHELL'
  645. ac_subst_files=''
  646. ac_user_opts='
  647. enable_option_checking
  648. with_x
  649. enable_motif
  650. enable_athena
  651. enable_gtk
  652. '
  653. ac_precious_vars='build_alias
  654. host_alias
  655. target_alias
  656. YACC
  657. YFLAGS
  658. CC
  659. CFLAGS
  660. LDFLAGS
  661. LIBS
  662. CPPFLAGS
  663. CPP
  664. XMKMF
  665. PKG_CONFIG
  666. PKG_CONFIG_PATH
  667. PKG_CONFIG_LIBDIR
  668. GTK_CFLAGS
  669. GTK_LIBS'
  670. # Initialize some variables set by options.
  671. ac_init_help=
  672. ac_init_version=false
  673. ac_unrecognized_opts=
  674. ac_unrecognized_sep=
  675. # The variables have the same names as the options, with
  676. # dashes changed to underlines.
  677. cache_file=/dev/null
  678. exec_prefix=NONE
  679. no_create=
  680. no_recursion=
  681. prefix=NONE
  682. program_prefix=NONE
  683. program_suffix=NONE
  684. program_transform_name=s,x,x,
  685. silent=
  686. site=
  687. srcdir=
  688. verbose=
  689. x_includes=NONE
  690. x_libraries=NONE
  691. # Installation directory options.
  692. # These are left unexpanded so users can "make install exec_prefix=/foo"
  693. # and all the variables that are supposed to be based on exec_prefix
  694. # by default will actually change.
  695. # Use braces instead of parens because sh, perl, etc. also accept them.
  696. # (The list follows the same order as the GNU Coding Standards.)
  697. bindir='${exec_prefix}/bin'
  698. sbindir='${exec_prefix}/sbin'
  699. libexecdir='${exec_prefix}/libexec'
  700. datarootdir='${prefix}/share'
  701. datadir='${datarootdir}'
  702. sysconfdir='${prefix}/etc'
  703. sharedstatedir='${prefix}/com'
  704. localstatedir='${prefix}/var'
  705. includedir='${prefix}/include'
  706. oldincludedir='/usr/include'
  707. docdir='${datarootdir}/doc/${PACKAGE}'
  708. infodir='${datarootdir}/info'
  709. htmldir='${docdir}'
  710. dvidir='${docdir}'
  711. pdfdir='${docdir}'
  712. psdir='${docdir}'
  713. libdir='${exec_prefix}/lib'
  714. localedir='${datarootdir}/locale'
  715. mandir='${datarootdir}/man'
  716. ac_prev=
  717. ac_dashdash=
  718. for ac_option
  719. do
  720. # If the previous option needs an argument, assign it.
  721. if test -n "$ac_prev"; then
  722. eval $ac_prev=\$ac_option
  723. ac_prev=
  724. continue
  725. fi
  726. case $ac_option in
  727. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  728. *=) ac_optarg= ;;
  729. *) ac_optarg=yes ;;
  730. esac
  731. # Accept the important Cygnus configure options, so we can diagnose typos.
  732. case $ac_dashdash$ac_option in
  733. --)
  734. ac_dashdash=yes ;;
  735. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  736. ac_prev=bindir ;;
  737. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  738. bindir=$ac_optarg ;;
  739. -build | --build | --buil | --bui | --bu)
  740. ac_prev=build_alias ;;
  741. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  742. build_alias=$ac_optarg ;;
  743. -cache-file | --cache-file | --cache-fil | --cache-fi \
  744. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  745. ac_prev=cache_file ;;
  746. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  747. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  748. cache_file=$ac_optarg ;;
  749. --config-cache | -C)
  750. cache_file=config.cache ;;
  751. -datadir | --datadir | --datadi | --datad)
  752. ac_prev=datadir ;;
  753. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  754. datadir=$ac_optarg ;;
  755. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  756. | --dataroo | --dataro | --datar)
  757. ac_prev=datarootdir ;;
  758. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  759. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  760. datarootdir=$ac_optarg ;;
  761. -disable-* | --disable-*)
  762. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  763. # Reject names that are not valid shell variable names.
  764. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  765. as_fn_error $? "invalid feature name: $ac_useropt"
  766. ac_useropt_orig=$ac_useropt
  767. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  768. case $ac_user_opts in
  769. *"
  770. "enable_$ac_useropt"
  771. "*) ;;
  772. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  773. ac_unrecognized_sep=', ';;
  774. esac
  775. eval enable_$ac_useropt=no ;;
  776. -docdir | --docdir | --docdi | --doc | --do)
  777. ac_prev=docdir ;;
  778. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  779. docdir=$ac_optarg ;;
  780. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  781. ac_prev=dvidir ;;
  782. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  783. dvidir=$ac_optarg ;;
  784. -enable-* | --enable-*)
  785. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  786. # Reject names that are not valid shell variable names.
  787. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  788. as_fn_error $? "invalid feature name: $ac_useropt"
  789. ac_useropt_orig=$ac_useropt
  790. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  791. case $ac_user_opts in
  792. *"
  793. "enable_$ac_useropt"
  794. "*) ;;
  795. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  796. ac_unrecognized_sep=', ';;
  797. esac
  798. eval enable_$ac_useropt=\$ac_optarg ;;
  799. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  800. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  801. | --exec | --exe | --ex)
  802. ac_prev=exec_prefix ;;
  803. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  804. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  805. | --exec=* | --exe=* | --ex=*)
  806. exec_prefix=$ac_optarg ;;
  807. -gas | --gas | --ga | --g)
  808. # Obsolete; use --with-gas.
  809. with_gas=yes ;;
  810. -help | --help | --hel | --he | -h)
  811. ac_init_help=long ;;
  812. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  813. ac_init_help=recursive ;;
  814. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  815. ac_init_help=short ;;
  816. -host | --host | --hos | --ho)
  817. ac_prev=host_alias ;;
  818. -host=* | --host=* | --hos=* | --ho=*)
  819. host_alias=$ac_optarg ;;
  820. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  821. ac_prev=htmldir ;;
  822. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  823. | --ht=*)
  824. htmldir=$ac_optarg ;;
  825. -includedir | --includedir | --includedi | --included | --include \
  826. | --includ | --inclu | --incl | --inc)
  827. ac_prev=includedir ;;
  828. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  829. | --includ=* | --inclu=* | --incl=* | --inc=*)
  830. includedir=$ac_optarg ;;
  831. -infodir | --infodir | --infodi | --infod | --info | --inf)
  832. ac_prev=infodir ;;
  833. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  834. infodir=$ac_optarg ;;
  835. -libdir | --libdir | --libdi | --libd)
  836. ac_prev=libdir ;;
  837. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  838. libdir=$ac_optarg ;;
  839. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  840. | --libexe | --libex | --libe)
  841. ac_prev=libexecdir ;;
  842. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  843. | --libexe=* | --libex=* | --libe=*)
  844. libexecdir=$ac_optarg ;;
  845. -localedir | --localedir | --localedi | --localed | --locale)
  846. ac_prev=localedir ;;
  847. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  848. localedir=$ac_optarg ;;
  849. -localstatedir | --localstatedir | --localstatedi | --localstated \
  850. | --localstate | --localstat | --localsta | --localst | --locals)
  851. ac_prev=localstatedir ;;
  852. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  853. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  854. localstatedir=$ac_optarg ;;
  855. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  856. ac_prev=mandir ;;
  857. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  858. mandir=$ac_optarg ;;
  859. -nfp | --nfp | --nf)
  860. # Obsolete; use --without-fp.
  861. with_fp=no ;;
  862. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  863. | --no-cr | --no-c | -n)
  864. no_create=yes ;;
  865. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  866. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  867. no_recursion=yes ;;
  868. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  869. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  870. | --oldin | --oldi | --old | --ol | --o)
  871. ac_prev=oldincludedir ;;
  872. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  873. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  874. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  875. oldincludedir=$ac_optarg ;;
  876. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  877. ac_prev=prefix ;;
  878. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  879. prefix=$ac_optarg ;;
  880. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  881. | --program-pre | --program-pr | --program-p)
  882. ac_prev=program_prefix ;;
  883. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  884. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  885. program_prefix=$ac_optarg ;;
  886. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  887. | --program-suf | --program-su | --program-s)
  888. ac_prev=program_suffix ;;
  889. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  890. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  891. program_suffix=$ac_optarg ;;
  892. -program-transform-name | --program-transform-name \
  893. | --program-transform-nam | --program-transform-na \
  894. | --program-transform-n | --program-transform- \
  895. | --program-transform | --program-transfor \
  896. | --program-transfo | --program-transf \
  897. | --program-trans | --program-tran \
  898. | --progr-tra | --program-tr | --program-t)
  899. ac_prev=program_transform_name ;;
  900. -program-transform-name=* | --program-transform-name=* \
  901. | --program-transform-nam=* | --program-transform-na=* \
  902. | --program-transform-n=* | --program-transform-=* \
  903. | --program-transform=* | --program-transfor=* \
  904. | --program-transfo=* | --program-transf=* \
  905. | --program-trans=* | --program-tran=* \
  906. | --progr-tra=* | --program-tr=* | --program-t=*)
  907. program_transform_name=$ac_optarg ;;
  908. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  909. ac_prev=pdfdir ;;
  910. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  911. pdfdir=$ac_optarg ;;
  912. -psdir | --psdir | --psdi | --psd | --ps)
  913. ac_prev=psdir ;;
  914. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  915. psdir=$ac_optarg ;;
  916. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  917. | -silent | --silent | --silen | --sile | --sil)
  918. silent=yes ;;
  919. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  920. ac_prev=sbindir ;;
  921. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  922. | --sbi=* | --sb=*)
  923. sbindir=$ac_optarg ;;
  924. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  925. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  926. | --sharedst | --shareds | --shared | --share | --shar \
  927. | --sha | --sh)
  928. ac_prev=sharedstatedir ;;
  929. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  930. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  931. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  932. | --sha=* | --sh=*)
  933. sharedstatedir=$ac_optarg ;;
  934. -site | --site | --sit)
  935. ac_prev=site ;;
  936. -site=* | --site=* | --sit=*)
  937. site=$ac_optarg ;;
  938. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  939. ac_prev=srcdir ;;
  940. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  941. srcdir=$ac_optarg ;;
  942. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  943. | --syscon | --sysco | --sysc | --sys | --sy)
  944. ac_prev=sysconfdir ;;
  945. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  946. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  947. sysconfdir=$ac_optarg ;;
  948. -target | --target | --targe | --targ | --tar | --ta | --t)
  949. ac_prev=target_alias ;;
  950. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  951. target_alias=$ac_optarg ;;
  952. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  953. verbose=yes ;;
  954. -version | --version | --versio | --versi | --vers | -V)
  955. ac_init_version=: ;;
  956. -with-* | --with-*)
  957. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  958. # Reject names that are not valid shell variable names.
  959. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  960. as_fn_error $? "invalid package name: $ac_useropt"
  961. ac_useropt_orig=$ac_useropt
  962. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  963. case $ac_user_opts in
  964. *"
  965. "with_$ac_useropt"
  966. "*) ;;
  967. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  968. ac_unrecognized_sep=', ';;
  969. esac
  970. eval with_$ac_useropt=\$ac_optarg ;;
  971. -without-* | --without-*)
  972. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  973. # Reject names that are not valid shell variable names.
  974. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  975. as_fn_error $? "invalid package name: $ac_useropt"
  976. ac_useropt_orig=$ac_useropt
  977. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  978. case $ac_user_opts in
  979. *"
  980. "with_$ac_useropt"
  981. "*) ;;
  982. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  983. ac_unrecognized_sep=', ';;
  984. esac
  985. eval with_$ac_useropt=no ;;
  986. --x)
  987. # Obsolete; use --with-x.
  988. with_x=yes ;;
  989. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  990. | --x-incl | --x-inc | --x-in | --x-i)
  991. ac_prev=x_includes ;;
  992. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  993. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  994. x_includes=$ac_optarg ;;
  995. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  996. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  997. ac_prev=x_libraries ;;
  998. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  999. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1000. x_libraries=$ac_optarg ;;
  1001. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1002. Try \`$0 --help' for more information"
  1003. ;;
  1004. *=*)
  1005. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1006. # Reject names that are not valid shell variable names.
  1007. case $ac_envvar in #(
  1008. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1009. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1010. esac
  1011. eval $ac_envvar=\$ac_optarg
  1012. export $ac_envvar ;;
  1013. *)
  1014. # FIXME: should be removed in autoconf 3.0.
  1015. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1016. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1017. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1018. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1019. ;;
  1020. esac
  1021. done
  1022. if test -n "$ac_prev"; then
  1023. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1024. as_fn_error $? "missing argument to $ac_option"
  1025. fi
  1026. if test -n "$ac_unrecognized_opts"; then
  1027. case $enable_option_checking in
  1028. no) ;;
  1029. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1030. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1031. esac
  1032. fi
  1033. # Check all directory arguments for consistency.
  1034. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1035. datadir sysconfdir sharedstatedir localstatedir includedir \
  1036. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1037. libdir localedir mandir
  1038. do
  1039. eval ac_val=\$$ac_var
  1040. # Remove trailing slashes.
  1041. case $ac_val in
  1042. */ )
  1043. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1044. eval $ac_var=\$ac_val;;
  1045. esac
  1046. # Be sure to have absolute directory names.
  1047. case $ac_val in
  1048. [\\/$]* | ?:[\\/]* ) continue;;
  1049. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1050. esac
  1051. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1052. done
  1053. # There might be people who depend on the old broken behavior: `$host'
  1054. # used to hold the argument of --host etc.
  1055. # FIXME: To remove some day.
  1056. build=$build_alias
  1057. host=$host_alias
  1058. target=$target_alias
  1059. # FIXME: To remove some day.
  1060. if test "x$host_alias" != x; then
  1061. if test "x$build_alias" = x; then
  1062. cross_compiling=maybe
  1063. elif test "x$build_alias" != "x$host_alias"; then
  1064. cross_compiling=yes
  1065. fi
  1066. fi
  1067. ac_tool_prefix=
  1068. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1069. test "$silent" = yes && exec 6>/dev/null
  1070. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1071. ac_ls_di=`ls -di .` &&
  1072. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1073. as_fn_error $? "working directory cannot be determined"
  1074. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1075. as_fn_error $? "pwd does not report name of working directory"
  1076. # Find the source files, if location was not specified.
  1077. if test -z "$srcdir"; then
  1078. ac_srcdir_defaulted=yes
  1079. # Try the directory containing this script, then the parent directory.
  1080. ac_confdir=`$as_dirname -- "$as_myself" ||
  1081. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1082. X"$as_myself" : 'X\(//\)[^/]' \| \
  1083. X"$as_myself" : 'X\(//\)$' \| \
  1084. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1085. $as_echo X"$as_myself" |
  1086. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1087. s//\1/
  1088. q
  1089. }
  1090. /^X\(\/\/\)[^/].*/{
  1091. s//\1/
  1092. q
  1093. }
  1094. /^X\(\/\/\)$/{
  1095. s//\1/
  1096. q
  1097. }
  1098. /^X\(\/\).*/{
  1099. s//\1/
  1100. q
  1101. }
  1102. s/.*/./; q'`
  1103. srcdir=$ac_confdir
  1104. if test ! -r "$srcdir/$ac_unique_file"; then
  1105. srcdir=..
  1106. fi
  1107. else
  1108. ac_srcdir_defaulted=no
  1109. fi
  1110. if test ! -r "$srcdir/$ac_unique_file"; then
  1111. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1112. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1113. fi
  1114. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1115. ac_abs_confdir=`(
  1116. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1117. pwd)`
  1118. # When building in place, set srcdir=.
  1119. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1120. srcdir=.
  1121. fi
  1122. # Remove unnecessary trailing slashes from srcdir.
  1123. # Double slashes in file names in object file debugging info
  1124. # mess up M-x gdb in Emacs.
  1125. case $srcdir in
  1126. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1127. esac
  1128. for ac_var in $ac_precious_vars; do
  1129. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1130. eval ac_env_${ac_var}_value=\$${ac_var}
  1131. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1132. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1133. done
  1134. #
  1135. # Report the --help message.
  1136. #
  1137. if test "$ac_init_help" = "long"; then
  1138. # Omit some internal or obsolete options to make the list less imposing.
  1139. # This message is too long to be a string in the A/UX 3.1 sh.
  1140. cat <<_ACEOF
  1141. \`configure' configures this package to adapt to many kinds of systems.
  1142. Usage: $0 [OPTION]... [VAR=VALUE]...
  1143. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1144. VAR=VALUE. See below for descriptions of some of the useful variables.
  1145. Defaults for the options are specified in brackets.
  1146. Configuration:
  1147. -h, --help display this help and exit
  1148. --help=short display options specific to this package
  1149. --help=recursive display the short help of all the included packages
  1150. -V, --version display version information and exit
  1151. -q, --quiet, --silent do not print \`checking ...' messages
  1152. --cache-file=FILE cache test results in FILE [disabled]
  1153. -C, --config-cache alias for \`--cache-file=config.cache'
  1154. -n, --no-create do not create output files
  1155. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1156. Installation directories:
  1157. --prefix=PREFIX install architecture-independent files in PREFIX
  1158. [$ac_default_prefix]
  1159. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1160. [PREFIX]
  1161. By default, \`make install' will install all the files in
  1162. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1163. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1164. for instance \`--prefix=\$HOME'.
  1165. For better control, use the options below.
  1166. Fine tuning of the installation directories:
  1167. --bindir=DIR user executables [EPREFIX/bin]
  1168. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1169. --libexecdir=DIR program executables [EPREFIX/libexec]
  1170. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1171. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1172. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1173. --libdir=DIR object code libraries [EPREFIX/lib]
  1174. --includedir=DIR C header files [PREFIX/include]
  1175. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1176. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1177. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1178. --infodir=DIR info documentation [DATAROOTDIR/info]
  1179. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1180. --mandir=DIR man documentation [DATAROOTDIR/man]
  1181. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1182. --htmldir=DIR html documentation [DOCDIR]
  1183. --dvidir=DIR dvi documentation [DOCDIR]
  1184. --pdfdir=DIR pdf documentation [DOCDIR]
  1185. --psdir=DIR ps documentation [DOCDIR]
  1186. _ACEOF
  1187. cat <<\_ACEOF
  1188. X features:
  1189. --x-includes=DIR X include files are in DIR
  1190. --x-libraries=DIR X library files are in DIR
  1191. _ACEOF
  1192. fi
  1193. if test -n "$ac_init_help"; then
  1194. cat <<\_ACEOF
  1195. Optional Features:
  1196. --disable-option-checking ignore unrecognized --enable/--with options
  1197. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1198. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1199. --enable-motif build with the Motif widget set
  1200. --enable-athena build with the Athena widget set
  1201. --enable-gtk build with the GTK widget set
  1202. Optional Packages:
  1203. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1204. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1205. --with-x use the X Window System
  1206. Some influential environment variables:
  1207. YACC The `Yet Another Compiler Compiler' implementation to use.
  1208. Defaults to the first program found out of: `bison -y', `byacc',
  1209. `yacc'.
  1210. YFLAGS The list of arguments that will be passed by default to $YACC.
  1211. This script will default YFLAGS to the empty string to avoid a
  1212. default value of `-d' given by some make applications.
  1213. CC C compiler command
  1214. CFLAGS C compiler flags
  1215. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1216. nonstandard directory <lib dir>
  1217. LIBS libraries to pass to the linker, e.g. -l<library>
  1218. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1219. you have headers in a nonstandard directory <include dir>
  1220. CPP C preprocessor
  1221. XMKMF Path to xmkmf, Makefile generator for X Window System
  1222. PKG_CONFIG path to pkg-config utility
  1223. PKG_CONFIG_PATH
  1224. directories to add to pkg-config's search path
  1225. PKG_CONFIG_LIBDIR
  1226. path overriding pkg-config's built-in search path
  1227. GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
  1228. GTK_LIBS linker flags for GTK, overriding pkg-config
  1229. Use these variables to override the choices made by `configure' or to help
  1230. it to find libraries and programs with nonstandard names/locations.
  1231. Report bugs to the package provider.
  1232. _ACEOF
  1233. ac_status=$?
  1234. fi
  1235. if test "$ac_init_help" = "recursive"; then
  1236. # If there are subdirs, report their specific --help.
  1237. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1238. test -d "$ac_dir" ||
  1239. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1240. continue
  1241. ac_builddir=.
  1242. case "$ac_dir" in
  1243. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1244. *)
  1245. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1246. # A ".." for each directory in $ac_dir_suffix.
  1247. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1248. case $ac_top_builddir_sub in
  1249. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1250. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1251. esac ;;
  1252. esac
  1253. ac_abs_top_builddir=$ac_pwd
  1254. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1255. # for backward compatibility:
  1256. ac_top_builddir=$ac_top_build_prefix
  1257. case $srcdir in
  1258. .) # We are building in place.
  1259. ac_srcdir=.
  1260. ac_top_srcdir=$ac_top_builddir_sub
  1261. ac_abs_top_srcdir=$ac_pwd ;;
  1262. [\\/]* | ?:[\\/]* ) # Absolute name.
  1263. ac_srcdir=$srcdir$ac_dir_suffix;
  1264. ac_top_srcdir=$srcdir
  1265. ac_abs_top_srcdir=$srcdir ;;
  1266. *) # Relative name.
  1267. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1268. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1269. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1270. esac
  1271. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1272. cd "$ac_dir" || { ac_status=$?; continue; }
  1273. # Check for guested configure.
  1274. if test -f "$ac_srcdir/configure.gnu"; then
  1275. echo &&
  1276. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1277. elif test -f "$ac_srcdir/configure"; then
  1278. echo &&
  1279. $SHELL "$ac_srcdir/configure" --help=recursive
  1280. else
  1281. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1282. fi || ac_status=$?
  1283. cd "$ac_pwd" || { ac_status=$?; break; }
  1284. done
  1285. fi
  1286. test -n "$ac_init_help" && exit $ac_status
  1287. if $ac_init_version; then
  1288. cat <<\_ACEOF
  1289. configure
  1290. generated by GNU Autoconf 2.69
  1291. Copyright (C) 2012 Free Software Foundation, Inc.
  1292. This configure script is free software; the Free Software Foundation
  1293. gives unlimited permission to copy, distribute and modify it.
  1294. _ACEOF
  1295. exit
  1296. fi
  1297. ## ------------------------ ##
  1298. ## Autoconf initialization. ##
  1299. ## ------------------------ ##
  1300. # ac_fn_c_try_compile LINENO
  1301. # --------------------------
  1302. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1303. ac_fn_c_try_compile ()
  1304. {
  1305. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1306. rm -f conftest.$ac_objext
  1307. if { { ac_try="$ac_compile"
  1308. case "(($ac_try" in
  1309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1310. *) ac_try_echo=$ac_try;;
  1311. esac
  1312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1313. $as_echo "$ac_try_echo"; } >&5
  1314. (eval "$ac_compile") 2>conftest.err
  1315. ac_status=$?
  1316. if test -s conftest.err; then
  1317. grep -v '^ *+' conftest.err >conftest.er1
  1318. cat conftest.er1 >&5
  1319. mv -f conftest.er1 conftest.err
  1320. fi
  1321. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1322. test $ac_status = 0; } && {
  1323. test -z "$ac_c_werror_flag" ||
  1324. test ! -s conftest.err
  1325. } && test -s conftest.$ac_objext; then :
  1326. ac_retval=0
  1327. else
  1328. $as_echo "$as_me: failed program was:" >&5
  1329. sed 's/^/| /' conftest.$ac_ext >&5
  1330. ac_retval=1
  1331. fi
  1332. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1333. as_fn_set_status $ac_retval
  1334. } # ac_fn_c_try_compile
  1335. # ac_fn_c_try_cpp LINENO
  1336. # ----------------------
  1337. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1338. ac_fn_c_try_cpp ()
  1339. {
  1340. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1341. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1342. case "(($ac_try" in
  1343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1344. *) ac_try_echo=$ac_try;;
  1345. esac
  1346. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1347. $as_echo "$ac_try_echo"; } >&5
  1348. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1349. ac_status=$?
  1350. if test -s conftest.err; then
  1351. grep -v '^ *+' conftest.err >conftest.er1
  1352. cat conftest.er1 >&5
  1353. mv -f conftest.er1 conftest.err
  1354. fi
  1355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1356. test $ac_status = 0; } > conftest.i && {
  1357. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1358. test ! -s conftest.err
  1359. }; then :
  1360. ac_retval=0
  1361. else
  1362. $as_echo "$as_me: failed program was:" >&5
  1363. sed 's/^/| /' conftest.$ac_ext >&5
  1364. ac_retval=1
  1365. fi
  1366. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1367. as_fn_set_status $ac_retval
  1368. } # ac_fn_c_try_cpp
  1369. # ac_fn_c_try_link LINENO
  1370. # -----------------------
  1371. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1372. ac_fn_c_try_link ()
  1373. {
  1374. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1375. rm -f conftest.$ac_objext conftest$ac_exeext
  1376. if { { ac_try="$ac_link"
  1377. case "(($ac_try" in
  1378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1379. *) ac_try_echo=$ac_try;;
  1380. esac
  1381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1382. $as_echo "$ac_try_echo"; } >&5
  1383. (eval "$ac_link") 2>conftest.err
  1384. ac_status=$?
  1385. if test -s conftest.err; then
  1386. grep -v '^ *+' conftest.err >conftest.er1
  1387. cat conftest.er1 >&5
  1388. mv -f conftest.er1 conftest.err
  1389. fi
  1390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1391. test $ac_status = 0; } && {
  1392. test -z "$ac_c_werror_flag" ||
  1393. test ! -s conftest.err
  1394. } && test -s conftest$ac_exeext && {
  1395. test "$cross_compiling" = yes ||
  1396. test -x conftest$ac_exeext
  1397. }; then :
  1398. ac_retval=0
  1399. else
  1400. $as_echo "$as_me: failed program was:" >&5
  1401. sed 's/^/| /' conftest.$ac_ext >&5
  1402. ac_retval=1
  1403. fi
  1404. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1405. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1406. # interfere with the next link command; also delete a directory that is
  1407. # left behind by Apple's compiler. We do this before executing the actions.
  1408. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1409. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1410. as_fn_set_status $ac_retval
  1411. } # ac_fn_c_try_link
  1412. # ac_fn_c_check_func LINENO FUNC VAR
  1413. # ----------------------------------
  1414. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1415. ac_fn_c_check_func ()
  1416. {
  1417. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1419. $as_echo_n "checking for $2... " >&6; }
  1420. if eval \${$3+:} false; then :
  1421. $as_echo_n "(cached) " >&6
  1422. else
  1423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1424. /* end confdefs.h. */
  1425. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1426. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1427. #define $2 innocuous_$2
  1428. /* Tell GNU C headers to include stubs. */
  1429. #define __need_GNU_STUBS_H
  1430. /* System header to define __stub macros and hopefully few prototypes,
  1431. which can conflict with char $2 (); below.
  1432. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1433. <limits.h> exists even on freestanding compilers. */
  1434. #ifdef __STDC__
  1435. # include <limits.h>
  1436. #else
  1437. # include <assert.h>
  1438. #endif
  1439. #undef $2
  1440. /* Override any GCC internal prototype to avoid an error.
  1441. Use char because int might match the return type of a GCC
  1442. builtin and then its argument prototype would still apply. */
  1443. #ifdef __cplusplus
  1444. extern "C"
  1445. #endif
  1446. char $2 ();
  1447. /* The GNU C library defines this for functions which it implements
  1448. to always fail with ENOSYS. Some functions are actually named
  1449. something starting with __ and the normal name is an alias. */
  1450. #if defined __stub_$2 || defined __stub___$2
  1451. choke me
  1452. #endif
  1453. int
  1454. main ()
  1455. {
  1456. return $2 ();
  1457. ;
  1458. return 0;
  1459. }
  1460. _ACEOF
  1461. if ac_fn_c_try_link "$LINENO"; then :
  1462. eval "$3=yes"
  1463. else
  1464. if test "$GCC" = yes; then
  1465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1466. /* end confdefs.h. */
  1467. #undef $2
  1468. /* Declare this function with the same prototype as __builtin_$2.
  1469. This removes a warning about conflicting types for built-in function $2 */
  1470. __typeof__(__builtin_$2) $2;
  1471. __typeof__(__builtin_$2) *f = $2;
  1472. int
  1473. main ()
  1474. {
  1475. return f != $2;
  1476. ;
  1477. return 0;
  1478. }
  1479. _ACEOF
  1480. if ac_fn_c_try_link "$LINENO"; then :
  1481. eval "$3=yes"
  1482. else
  1483. eval "$3=no"
  1484. fi
  1485. rm -f core conftest.err conftest.$ac_objext \
  1486. conftest$ac_exeext conftest.$ac_ext
  1487. else
  1488. eval "$3=no"
  1489. fi
  1490. fi
  1491. rm -f core conftest.err conftest.$ac_objext \
  1492. conftest$ac_exeext conftest.$ac_ext
  1493. fi
  1494. eval ac_res=\$$3
  1495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1496. $as_echo "$ac_res" >&6; }
  1497. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1498. } # ac_fn_c_check_func
  1499. # ac_fn_c_try_run LINENO
  1500. # ----------------------
  1501. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1502. # that executables *can* be run.
  1503. ac_fn_c_try_run ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. if { { ac_try="$ac_link"
  1507. case "(($ac_try" in
  1508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1509. *) ac_try_echo=$ac_try;;
  1510. esac
  1511. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1512. $as_echo "$ac_try_echo"; } >&5
  1513. (eval "$ac_link") 2>&5
  1514. ac_status=$?
  1515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1516. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1517. { { case "(($ac_try" in
  1518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1519. *) ac_try_echo=$ac_try;;
  1520. esac
  1521. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1522. $as_echo "$ac_try_echo"; } >&5
  1523. (eval "$ac_try") 2>&5
  1524. ac_status=$?
  1525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1526. test $ac_status = 0; }; }; then :
  1527. ac_retval=0
  1528. else
  1529. $as_echo "$as_me: program exited with status $ac_status" >&5
  1530. $as_echo "$as_me: failed program was:" >&5
  1531. sed 's/^/| /' conftest.$ac_ext >&5
  1532. ac_retval=$ac_status
  1533. fi
  1534. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1535. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1536. as_fn_set_status $ac_retval
  1537. } # ac_fn_c_try_run
  1538. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1539. # -------------------------------------------------------
  1540. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1541. # the include files in INCLUDES and setting the cache variable VAR
  1542. # accordingly.
  1543. ac_fn_c_check_header_mongrel ()
  1544. {
  1545. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1546. if eval \${$3+:} false; then :
  1547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1548. $as_echo_n "checking for $2... " >&6; }
  1549. if eval \${$3+:} false; then :
  1550. $as_echo_n "(cached) " >&6
  1551. fi
  1552. eval ac_res=\$$3
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1554. $as_echo "$ac_res" >&6; }
  1555. else
  1556. # Is the header compilable?
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1558. $as_echo_n "checking $2 usability... " >&6; }
  1559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1560. /* end confdefs.h. */
  1561. $4
  1562. #include <$2>
  1563. _ACEOF
  1564. if ac_fn_c_try_compile "$LINENO"; then :
  1565. ac_header_compiler=yes
  1566. else
  1567. ac_header_compiler=no
  1568. fi
  1569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1571. $as_echo "$ac_header_compiler" >&6; }
  1572. # Is the header present?
  1573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1574. $as_echo_n "checking $2 presence... " >&6; }
  1575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1576. /* end confdefs.h. */
  1577. #include <$2>
  1578. _ACEOF
  1579. if ac_fn_c_try_cpp "$LINENO"; then :
  1580. ac_header_preproc=yes
  1581. else
  1582. ac_header_preproc=no
  1583. fi
  1584. rm -f conftest.err conftest.i conftest.$ac_ext
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1586. $as_echo "$ac_header_preproc" >&6; }
  1587. # So? What about this header?
  1588. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1589. yes:no: )
  1590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1591. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1592. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1593. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1594. ;;
  1595. no:yes:* )
  1596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1597. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1599. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1601. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1603. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1605. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1606. ;;
  1607. esac
  1608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1609. $as_echo_n "checking for $2... " >&6; }
  1610. if eval \${$3+:} false; then :
  1611. $as_echo_n "(cached) " >&6
  1612. else
  1613. eval "$3=\$ac_header_compiler"
  1614. fi
  1615. eval ac_res=\$$3
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1617. $as_echo "$ac_res" >&6; }
  1618. fi
  1619. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1620. } # ac_fn_c_check_header_mongrel
  1621. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1622. # -------------------------------------------------------
  1623. # Tests whether HEADER exists and can be compiled using the include files in
  1624. # INCLUDES, setting the cache variable VAR accordingly.
  1625. ac_fn_c_check_header_compile ()
  1626. {
  1627. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1629. $as_echo_n "checking for $2... " >&6; }
  1630. if eval \${$3+:} false; then :
  1631. $as_echo_n "(cached) " >&6
  1632. else
  1633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1634. /* end confdefs.h. */
  1635. $4
  1636. #include <$2>
  1637. _ACEOF
  1638. if ac_fn_c_try_compile "$LINENO"; then :
  1639. eval "$3=yes"
  1640. else
  1641. eval "$3=no"
  1642. fi
  1643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1644. fi
  1645. eval ac_res=\$$3
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1647. $as_echo "$ac_res" >&6; }
  1648. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1649. } # ac_fn_c_check_header_compile
  1650. cat >config.log <<_ACEOF
  1651. This file contains any messages produced by compilers while
  1652. running configure, to aid debugging if configure makes a mistake.
  1653. It was created by $as_me, which was
  1654. generated by GNU Autoconf 2.69. Invocation command line was
  1655. $ $0 $@
  1656. _ACEOF
  1657. exec 5>>config.log
  1658. {
  1659. cat <<_ASUNAME
  1660. ## --------- ##
  1661. ## Platform. ##
  1662. ## --------- ##
  1663. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1664. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1665. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1666. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1667. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1668. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1669. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1670. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1671. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1672. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1673. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1674. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1675. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1676. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1677. _ASUNAME
  1678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1679. for as_dir in $PATH
  1680. do
  1681. IFS=$as_save_IFS
  1682. test -z "$as_dir" && as_dir=.
  1683. $as_echo "PATH: $as_dir"
  1684. done
  1685. IFS=$as_save_IFS
  1686. } >&5
  1687. cat >&5 <<_ACEOF
  1688. ## ----------- ##
  1689. ## Core tests. ##
  1690. ## ----------- ##
  1691. _ACEOF
  1692. # Keep a trace of the command line.
  1693. # Strip out --no-create and --no-recursion so they do not pile up.
  1694. # Strip out --silent because we don't want to record it for future runs.
  1695. # Also quote any args containing shell meta-characters.
  1696. # Make two passes to allow for proper duplicate-argument suppression.
  1697. ac_configure_args=
  1698. ac_configure_args0=
  1699. ac_configure_args1=
  1700. ac_must_keep_next=false
  1701. for ac_pass in 1 2
  1702. do
  1703. for ac_arg
  1704. do
  1705. case $ac_arg in
  1706. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1707. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1708. | -silent | --silent | --silen | --sile | --sil)
  1709. continue ;;
  1710. *\'*)
  1711. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1712. esac
  1713. case $ac_pass in
  1714. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1715. 2)
  1716. as_fn_append ac_configure_args1 " '$ac_arg'"
  1717. if test $ac_must_keep_next = true; then
  1718. ac_must_keep_next=false # Got value, back to normal.
  1719. else
  1720. case $ac_arg in
  1721. *=* | --config-cache | -C | -disable-* | --disable-* \
  1722. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1723. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1724. | -with-* | --with-* | -without-* | --without-* | --x)
  1725. case "$ac_configure_args0 " in
  1726. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1727. esac
  1728. ;;
  1729. -* ) ac_must_keep_next=true ;;
  1730. esac
  1731. fi
  1732. as_fn_append ac_configure_args " '$ac_arg'"
  1733. ;;
  1734. esac
  1735. done
  1736. done
  1737. { ac_configure_args0=; unset ac_configure_args0;}
  1738. { ac_configure_args1=; unset ac_configure_args1;}
  1739. # When interrupted or exit'd, cleanup temporary files, and complete
  1740. # config.log. We remove comments because anyway the quotes in there
  1741. # would cause problems or look ugly.
  1742. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1743. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1744. trap 'exit_status=$?
  1745. # Sanitize IFS.
  1746. IFS=" "" $as_nl"
  1747. # Save into config.log some information that might help in debugging.
  1748. {
  1749. echo
  1750. $as_echo "## ---------------- ##
  1751. ## Cache variables. ##
  1752. ## ---------------- ##"
  1753. echo
  1754. # The following way of writing the cache mishandles newlines in values,
  1755. (
  1756. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1757. eval ac_val=\$$ac_var
  1758. case $ac_val in #(
  1759. *${as_nl}*)
  1760. case $ac_var in #(
  1761. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1762. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1763. esac
  1764. case $ac_var in #(
  1765. _ | IFS | as_nl) ;; #(
  1766. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1767. *) { eval $ac_var=; unset $ac_var;} ;;
  1768. esac ;;
  1769. esac
  1770. done
  1771. (set) 2>&1 |
  1772. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1773. *${as_nl}ac_space=\ *)
  1774. sed -n \
  1775. "s/'\''/'\''\\\\'\'''\''/g;
  1776. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1777. ;; #(
  1778. *)
  1779. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1780. ;;
  1781. esac |
  1782. sort
  1783. )
  1784. echo
  1785. $as_echo "## ----------------- ##
  1786. ## Output variables. ##
  1787. ## ----------------- ##"
  1788. echo
  1789. for ac_var in $ac_subst_vars
  1790. do
  1791. eval ac_val=\$$ac_var
  1792. case $ac_val in
  1793. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1794. esac
  1795. $as_echo "$ac_var='\''$ac_val'\''"
  1796. done | sort
  1797. echo
  1798. if test -n "$ac_subst_files"; then
  1799. $as_echo "## ------------------- ##
  1800. ## File substitutions. ##
  1801. ## ------------------- ##"
  1802. echo
  1803. for ac_var in $ac_subst_files
  1804. do
  1805. eval ac_val=\$$ac_var
  1806. case $ac_val in
  1807. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1808. esac
  1809. $as_echo "$ac_var='\''$ac_val'\''"
  1810. done | sort
  1811. echo
  1812. fi
  1813. if test -s confdefs.h; then
  1814. $as_echo "## ----------- ##
  1815. ## confdefs.h. ##
  1816. ## ----------- ##"
  1817. echo
  1818. cat confdefs.h
  1819. echo
  1820. fi
  1821. test "$ac_signal" != 0 &&
  1822. $as_echo "$as_me: caught signal $ac_signal"
  1823. $as_echo "$as_me: exit $exit_status"
  1824. } >&5
  1825. rm -f core *.core core.conftest.* &&
  1826. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1827. exit $exit_status
  1828. ' 0
  1829. for ac_signal in 1 2 13 15; do
  1830. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1831. done
  1832. ac_signal=0
  1833. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1834. rm -f -r conftest* confdefs.h
  1835. $as_echo "/* confdefs.h */" > confdefs.h
  1836. # Predefined preprocessor variables.
  1837. cat >>confdefs.h <<_ACEOF
  1838. #define PACKAGE_NAME "$PACKAGE_NAME"
  1839. _ACEOF
  1840. cat >>confdefs.h <<_ACEOF
  1841. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1842. _ACEOF
  1843. cat >>confdefs.h <<_ACEOF
  1844. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1845. _ACEOF
  1846. cat >>confdefs.h <<_ACEOF
  1847. #define PACKAGE_STRING "$PACKAGE_STRING"
  1848. _ACEOF
  1849. cat >>confdefs.h <<_ACEOF
  1850. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1851. _ACEOF
  1852. cat >>confdefs.h <<_ACEOF
  1853. #define PACKAGE_URL "$PACKAGE_URL"
  1854. _ACEOF
  1855. # Let the site file select an alternate cache file if it wants to.
  1856. # Prefer an explicitly selected file to automatically selected ones.
  1857. ac_site_file1=NONE
  1858. ac_site_file2=NONE
  1859. if test -n "$CONFIG_SITE"; then
  1860. # We do not want a PATH search for config.site.
  1861. case $CONFIG_SITE in #((
  1862. -*) ac_site_file1=./$CONFIG_SITE;;
  1863. */*) ac_site_file1=$CONFIG_SITE;;
  1864. *) ac_site_file1=./$CONFIG_SITE;;
  1865. esac
  1866. elif test "x$prefix" != xNONE; then
  1867. ac_site_file1=$prefix/share/config.site
  1868. ac_site_file2=$prefix/etc/config.site
  1869. else
  1870. ac_site_file1=$ac_default_prefix/share/config.site
  1871. ac_site_file2=$ac_default_prefix/etc/config.site
  1872. fi
  1873. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1874. do
  1875. test "x$ac_site_file" = xNONE && continue
  1876. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1877. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1878. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1879. sed 's/^/| /' "$ac_site_file" >&5
  1880. . "$ac_site_file" \
  1881. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1882. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1883. as_fn_error $? "failed to load site script $ac_site_file
  1884. See \`config.log' for more details" "$LINENO" 5; }
  1885. fi
  1886. done
  1887. if test -r "$cache_file"; then
  1888. # Some versions of bash will fail to source /dev/null (special files
  1889. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1890. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1891. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1892. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1893. case $cache_file in
  1894. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1895. *) . "./$cache_file";;
  1896. esac
  1897. fi
  1898. else
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1900. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1901. >$cache_file
  1902. fi
  1903. # Check that the precious variables saved in the cache have kept the same
  1904. # value.
  1905. ac_cache_corrupted=false
  1906. for ac_var in $ac_precious_vars; do
  1907. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1908. eval ac_new_set=\$ac_env_${ac_var}_set
  1909. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1910. eval ac_new_val=\$ac_env_${ac_var}_value
  1911. case $ac_old_set,$ac_new_set in
  1912. set,)
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1914. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1915. ac_cache_corrupted=: ;;
  1916. ,set)
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1918. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1919. ac_cache_corrupted=: ;;
  1920. ,);;
  1921. *)
  1922. if test "x$ac_old_val" != "x$ac_new_val"; then
  1923. # differences in whitespace do not lead to failure.
  1924. ac_old_val_w=`echo x $ac_old_val`
  1925. ac_new_val_w=`echo x $ac_new_val`
  1926. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1928. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1929. ac_cache_corrupted=:
  1930. else
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1932. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1933. eval $ac_var=\$ac_old_val
  1934. fi
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1936. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1938. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1939. fi;;
  1940. esac
  1941. # Pass precious variables to config.status.
  1942. if test "$ac_new_set" = set; then
  1943. case $ac_new_val in
  1944. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1945. *) ac_arg=$ac_var=$ac_new_val ;;
  1946. esac
  1947. case " $ac_configure_args " in
  1948. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1949. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1950. esac
  1951. fi
  1952. done
  1953. if $ac_cache_corrupted; then
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1955. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1957. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1958. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1959. fi
  1960. ## -------------------- ##
  1961. ## Main body of script. ##
  1962. ## -------------------- ##
  1963. ac_ext=c
  1964. ac_cpp='$CPP $CPPFLAGS'
  1965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1968. ac_config_headers="$ac_config_headers config.h"
  1969. for ac_prog in 'bison -y' byacc
  1970. do
  1971. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1972. set dummy $ac_prog; ac_word=$2
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1974. $as_echo_n "checking for $ac_word... " >&6; }
  1975. if ${ac_cv_prog_YACC+:} false; then :
  1976. $as_echo_n "(cached) " >&6
  1977. else
  1978. if test -n "$YACC"; then
  1979. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  1980. else
  1981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1982. for as_dir in $PATH
  1983. do
  1984. IFS=$as_save_IFS
  1985. test -z "$as_dir" && as_dir=.
  1986. for ac_exec_ext in '' $ac_executable_extensions; do
  1987. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1988. ac_cv_prog_YACC="$ac_prog"
  1989. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1990. break 2
  1991. fi
  1992. done
  1993. done
  1994. IFS=$as_save_IFS
  1995. fi
  1996. fi
  1997. YACC=$ac_cv_prog_YACC
  1998. if test -n "$YACC"; then
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  2000. $as_echo "$YACC" >&6; }
  2001. else
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2003. $as_echo "no" >&6; }
  2004. fi
  2005. test -n "$YACC" && break
  2006. done
  2007. test -n "$YACC" || YACC="yacc"
  2008. ac_ext=c
  2009. ac_cpp='$CPP $CPPFLAGS'
  2010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2013. if test -n "$ac_tool_prefix"; then
  2014. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2015. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2017. $as_echo_n "checking for $ac_word... " >&6; }
  2018. if ${ac_cv_prog_CC+:} false; then :
  2019. $as_echo_n "(cached) " >&6
  2020. else
  2021. if test -n "$CC"; then
  2022. ac_cv_prog_CC="$CC" # Let the user override the test.
  2023. else
  2024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2025. for as_dir in $PATH
  2026. do
  2027. IFS=$as_save_IFS
  2028. test -z "$as_dir" && as_dir=.
  2029. for ac_exec_ext in '' $ac_executable_extensions; do
  2030. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2031. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2032. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2033. break 2
  2034. fi
  2035. done
  2036. done
  2037. IFS=$as_save_IFS
  2038. fi
  2039. fi
  2040. CC=$ac_cv_prog_CC
  2041. if test -n "$CC"; then
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2043. $as_echo "$CC" >&6; }
  2044. else
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2046. $as_echo "no" >&6; }
  2047. fi
  2048. fi
  2049. if test -z "$ac_cv_prog_CC"; then
  2050. ac_ct_CC=$CC
  2051. # Extract the first word of "gcc", so it can be a program name with args.
  2052. set dummy gcc; ac_word=$2
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2054. $as_echo_n "checking for $ac_word... " >&6; }
  2055. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2056. $as_echo_n "(cached) " >&6
  2057. else
  2058. if test -n "$ac_ct_CC"; then
  2059. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2060. else
  2061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2062. for as_dir in $PATH
  2063. do
  2064. IFS=$as_save_IFS
  2065. test -z "$as_dir" && as_dir=.
  2066. for ac_exec_ext in '' $ac_executable_extensions; do
  2067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2068. ac_cv_prog_ac_ct_CC="gcc"
  2069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2070. break 2
  2071. fi
  2072. done
  2073. done
  2074. IFS=$as_save_IFS
  2075. fi
  2076. fi
  2077. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2078. if test -n "$ac_ct_CC"; then
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2080. $as_echo "$ac_ct_CC" >&6; }
  2081. else
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2083. $as_echo "no" >&6; }
  2084. fi
  2085. if test "x$ac_ct_CC" = x; then
  2086. CC=""
  2087. else
  2088. case $cross_compiling:$ac_tool_warned in
  2089. yes:)
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2091. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2092. ac_tool_warned=yes ;;
  2093. esac
  2094. CC=$ac_ct_CC
  2095. fi
  2096. else
  2097. CC="$ac_cv_prog_CC"
  2098. fi
  2099. if test -z "$CC"; then
  2100. if test -n "$ac_tool_prefix"; then
  2101. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2102. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2104. $as_echo_n "checking for $ac_word... " >&6; }
  2105. if ${ac_cv_prog_CC+:} false; then :
  2106. $as_echo_n "(cached) " >&6
  2107. else
  2108. if test -n "$CC"; then
  2109. ac_cv_prog_CC="$CC" # Let the user override the test.
  2110. else
  2111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2112. for as_dir in $PATH
  2113. do
  2114. IFS=$as_save_IFS
  2115. test -z "$as_dir" && as_dir=.
  2116. for ac_exec_ext in '' $ac_executable_extensions; do
  2117. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2118. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2119. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2120. break 2
  2121. fi
  2122. done
  2123. done
  2124. IFS=$as_save_IFS
  2125. fi
  2126. fi
  2127. CC=$ac_cv_prog_CC
  2128. if test -n "$CC"; then
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2130. $as_echo "$CC" >&6; }
  2131. else
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2133. $as_echo "no" >&6; }
  2134. fi
  2135. fi
  2136. fi
  2137. if test -z "$CC"; then
  2138. # Extract the first word of "cc", so it can be a program name with args.
  2139. set dummy cc; ac_word=$2
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2141. $as_echo_n "checking for $ac_word... " >&6; }
  2142. if ${ac_cv_prog_CC+:} false; then :
  2143. $as_echo_n "(cached) " >&6
  2144. else
  2145. if test -n "$CC"; then
  2146. ac_cv_prog_CC="$CC" # Let the user override the test.
  2147. else
  2148. ac_prog_rejected=no
  2149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2150. for as_dir in $PATH
  2151. do
  2152. IFS=$as_save_IFS
  2153. test -z "$as_dir" && as_dir=.
  2154. for ac_exec_ext in '' $ac_executable_extensions; do
  2155. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2156. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2157. ac_prog_rejected=yes
  2158. continue
  2159. fi
  2160. ac_cv_prog_CC="cc"
  2161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2162. break 2
  2163. fi
  2164. done
  2165. done
  2166. IFS=$as_save_IFS
  2167. if test $ac_prog_rejected = yes; then
  2168. # We found a bogon in the path, so make sure we never use it.
  2169. set dummy $ac_cv_prog_CC
  2170. shift
  2171. if test $# != 0; then
  2172. # We chose a different compiler from the bogus one.
  2173. # However, it has the same basename, so the bogon will be chosen
  2174. # first if we set CC to just the basename; use the full file name.
  2175. shift
  2176. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2177. fi
  2178. fi
  2179. fi
  2180. fi
  2181. CC=$ac_cv_prog_CC
  2182. if test -n "$CC"; then
  2183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2184. $as_echo "$CC" >&6; }
  2185. else
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2187. $as_echo "no" >&6; }
  2188. fi
  2189. fi
  2190. if test -z "$CC"; then
  2191. if test -n "$ac_tool_prefix"; then
  2192. for ac_prog in cl.exe
  2193. do
  2194. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2195. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2197. $as_echo_n "checking for $ac_word... " >&6; }
  2198. if ${ac_cv_prog_CC+:} false; then :
  2199. $as_echo_n "(cached) " >&6
  2200. else
  2201. if test -n "$CC"; then
  2202. ac_cv_prog_CC="$CC" # Let the user override the test.
  2203. else
  2204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2205. for as_dir in $PATH
  2206. do
  2207. IFS=$as_save_IFS
  2208. test -z "$as_dir" && as_dir=.
  2209. for ac_exec_ext in '' $ac_executable_extensions; do
  2210. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2211. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2212. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2213. break 2
  2214. fi
  2215. done
  2216. done
  2217. IFS=$as_save_IFS
  2218. fi
  2219. fi
  2220. CC=$ac_cv_prog_CC
  2221. if test -n "$CC"; then
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2223. $as_echo "$CC" >&6; }
  2224. else
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2226. $as_echo "no" >&6; }
  2227. fi
  2228. test -n "$CC" && break
  2229. done
  2230. fi
  2231. if test -z "$CC"; then
  2232. ac_ct_CC=$CC
  2233. for ac_prog in cl.exe
  2234. do
  2235. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2236. set dummy $ac_prog; ac_word=$2
  2237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2238. $as_echo_n "checking for $ac_word... " >&6; }
  2239. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2240. $as_echo_n "(cached) " >&6
  2241. else
  2242. if test -n "$ac_ct_CC"; then
  2243. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2244. else
  2245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2246. for as_dir in $PATH
  2247. do
  2248. IFS=$as_save_IFS
  2249. test -z "$as_dir" && as_dir=.
  2250. for ac_exec_ext in '' $ac_executable_extensions; do
  2251. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2252. ac_cv_prog_ac_ct_CC="$ac_prog"
  2253. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2254. break 2
  2255. fi
  2256. done
  2257. done
  2258. IFS=$as_save_IFS
  2259. fi
  2260. fi
  2261. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2262. if test -n "$ac_ct_CC"; then
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2264. $as_echo "$ac_ct_CC" >&6; }
  2265. else
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2267. $as_echo "no" >&6; }
  2268. fi
  2269. test -n "$ac_ct_CC" && break
  2270. done
  2271. if test "x$ac_ct_CC" = x; then
  2272. CC=""
  2273. else
  2274. case $cross_compiling:$ac_tool_warned in
  2275. yes:)
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2277. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2278. ac_tool_warned=yes ;;
  2279. esac
  2280. CC=$ac_ct_CC
  2281. fi
  2282. fi
  2283. fi
  2284. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2285. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2286. as_fn_error $? "no acceptable C compiler found in \$PATH
  2287. See \`config.log' for more details" "$LINENO" 5; }
  2288. # Provide some information about the compiler.
  2289. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2290. set X $ac_compile
  2291. ac_compiler=$2
  2292. for ac_option in --version -v -V -qversion; do
  2293. { { ac_try="$ac_compiler $ac_option >&5"
  2294. case "(($ac_try" in
  2295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2296. *) ac_try_echo=$ac_try;;
  2297. esac
  2298. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2299. $as_echo "$ac_try_echo"; } >&5
  2300. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2301. ac_status=$?
  2302. if test -s conftest.err; then
  2303. sed '10a\
  2304. ... rest of stderr output deleted ...
  2305. 10q' conftest.err >conftest.er1
  2306. cat conftest.er1 >&5
  2307. fi
  2308. rm -f conftest.er1 conftest.err
  2309. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2310. test $ac_status = 0; }
  2311. done
  2312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2313. /* end confdefs.h. */
  2314. int
  2315. main ()
  2316. {
  2317. ;
  2318. return 0;
  2319. }
  2320. _ACEOF
  2321. ac_clean_files_save=$ac_clean_files
  2322. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2323. # Try to create an executable without -o first, disregard a.out.
  2324. # It will help us diagnose broken compilers, and finding out an intuition
  2325. # of exeext.
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2327. $as_echo_n "checking whether the C compiler works... " >&6; }
  2328. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2329. # The possible output files:
  2330. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2331. ac_rmfiles=
  2332. for ac_file in $ac_files
  2333. do
  2334. case $ac_file in
  2335. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2336. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2337. esac
  2338. done
  2339. rm -f $ac_rmfiles
  2340. if { { ac_try="$ac_link_default"
  2341. case "(($ac_try" in
  2342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2343. *) ac_try_echo=$ac_try;;
  2344. esac
  2345. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2346. $as_echo "$ac_try_echo"; } >&5
  2347. (eval "$ac_link_default") 2>&5
  2348. ac_status=$?
  2349. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2350. test $ac_status = 0; }; then :
  2351. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2352. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2353. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2354. # so that the user can short-circuit this test for compilers unknown to
  2355. # Autoconf.
  2356. for ac_file in $ac_files ''
  2357. do
  2358. test -f "$ac_file" || continue
  2359. case $ac_file in
  2360. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2361. ;;
  2362. [ab].out )
  2363. # We found the default executable, but exeext='' is most
  2364. # certainly right.
  2365. break;;
  2366. *.* )
  2367. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2368. then :; else
  2369. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2370. fi
  2371. # We set ac_cv_exeext here because the later test for it is not
  2372. # safe: cross compilers may not add the suffix if given an `-o'
  2373. # argument, so we may need to know it at that point already.
  2374. # Even if this section looks crufty: it has the advantage of
  2375. # actually working.
  2376. break;;
  2377. * )
  2378. break;;
  2379. esac
  2380. done
  2381. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2382. else
  2383. ac_file=''
  2384. fi
  2385. if test -z "$ac_file"; then :
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2387. $as_echo "no" >&6; }
  2388. $as_echo "$as_me: failed program was:" >&5
  2389. sed 's/^/| /' conftest.$ac_ext >&5
  2390. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2391. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2392. as_fn_error 77 "C compiler cannot create executables
  2393. See \`config.log' for more details" "$LINENO" 5; }
  2394. else
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2396. $as_echo "yes" >&6; }
  2397. fi
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2399. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2401. $as_echo "$ac_file" >&6; }
  2402. ac_exeext=$ac_cv_exeext
  2403. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2404. ac_clean_files=$ac_clean_files_save
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2406. $as_echo_n "checking for suffix of executables... " >&6; }
  2407. if { { ac_try="$ac_link"
  2408. case "(($ac_try" in
  2409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2410. *) ac_try_echo=$ac_try;;
  2411. esac
  2412. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2413. $as_echo "$ac_try_echo"; } >&5
  2414. (eval "$ac_link") 2>&5
  2415. ac_status=$?
  2416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2417. test $ac_status = 0; }; then :
  2418. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2419. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2420. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2421. # `rm'.
  2422. for ac_file in conftest.exe conftest conftest.*; do
  2423. test -f "$ac_file" || continue
  2424. case $ac_file in
  2425. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2426. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2427. break;;
  2428. * ) break;;
  2429. esac
  2430. done
  2431. else
  2432. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2433. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2434. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2435. See \`config.log' for more details" "$LINENO" 5; }
  2436. fi
  2437. rm -f conftest conftest$ac_cv_exeext
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2439. $as_echo "$ac_cv_exeext" >&6; }
  2440. rm -f conftest.$ac_ext
  2441. EXEEXT=$ac_cv_exeext
  2442. ac_exeext=$EXEEXT
  2443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2444. /* end confdefs.h. */
  2445. #include <stdio.h>
  2446. int
  2447. main ()
  2448. {
  2449. FILE *f = fopen ("conftest.out", "w");
  2450. return ferror (f) || fclose (f) != 0;
  2451. ;
  2452. return 0;
  2453. }
  2454. _ACEOF
  2455. ac_clean_files="$ac_clean_files conftest.out"
  2456. # Check that the compiler produces executables we can run. If not, either
  2457. # the compiler is broken, or we cross compile.
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2459. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2460. if test "$cross_compiling" != yes; then
  2461. { { ac_try="$ac_link"
  2462. case "(($ac_try" in
  2463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2464. *) ac_try_echo=$ac_try;;
  2465. esac
  2466. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2467. $as_echo "$ac_try_echo"; } >&5
  2468. (eval "$ac_link") 2>&5
  2469. ac_status=$?
  2470. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2471. test $ac_status = 0; }
  2472. if { ac_try='./conftest$ac_cv_exeext'
  2473. { { case "(($ac_try" in
  2474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2475. *) ac_try_echo=$ac_try;;
  2476. esac
  2477. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2478. $as_echo "$ac_try_echo"; } >&5
  2479. (eval "$ac_try") 2>&5
  2480. ac_status=$?
  2481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2482. test $ac_status = 0; }; }; then
  2483. cross_compiling=no
  2484. else
  2485. if test "$cross_compiling" = maybe; then
  2486. cross_compiling=yes
  2487. else
  2488. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2489. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2490. as_fn_error $? "cannot run C compiled programs.
  2491. If you meant to cross compile, use \`--host'.
  2492. See \`config.log' for more details" "$LINENO" 5; }
  2493. fi
  2494. fi
  2495. fi
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2497. $as_echo "$cross_compiling" >&6; }
  2498. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2499. ac_clean_files=$ac_clean_files_save
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2501. $as_echo_n "checking for suffix of object files... " >&6; }
  2502. if ${ac_cv_objext+:} false; then :
  2503. $as_echo_n "(cached) " >&6
  2504. else
  2505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2506. /* end confdefs.h. */
  2507. int
  2508. main ()
  2509. {
  2510. ;
  2511. return 0;
  2512. }
  2513. _ACEOF
  2514. rm -f conftest.o conftest.obj
  2515. if { { ac_try="$ac_compile"
  2516. case "(($ac_try" in
  2517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2518. *) ac_try_echo=$ac_try;;
  2519. esac
  2520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2521. $as_echo "$ac_try_echo"; } >&5
  2522. (eval "$ac_compile") 2>&5
  2523. ac_status=$?
  2524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2525. test $ac_status = 0; }; then :
  2526. for ac_file in conftest.o conftest.obj conftest.*; do
  2527. test -f "$ac_file" || continue;
  2528. case $ac_file in
  2529. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2530. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2531. break;;
  2532. esac
  2533. done
  2534. else
  2535. $as_echo "$as_me: failed program was:" >&5
  2536. sed 's/^/| /' conftest.$ac_ext >&5
  2537. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2538. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2539. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2540. See \`config.log' for more details" "$LINENO" 5; }
  2541. fi
  2542. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2543. fi
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2545. $as_echo "$ac_cv_objext" >&6; }
  2546. OBJEXT=$ac_cv_objext
  2547. ac_objext=$OBJEXT
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2549. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2550. if ${ac_cv_c_compiler_gnu+:} false; then :
  2551. $as_echo_n "(cached) " >&6
  2552. else
  2553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2554. /* end confdefs.h. */
  2555. int
  2556. main ()
  2557. {
  2558. #ifndef __GNUC__
  2559. choke me
  2560. #endif
  2561. ;
  2562. return 0;
  2563. }
  2564. _ACEOF
  2565. if ac_fn_c_try_compile "$LINENO"; then :
  2566. ac_compiler_gnu=yes
  2567. else
  2568. ac_compiler_gnu=no
  2569. fi
  2570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2571. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2572. fi
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2574. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2575. if test $ac_compiler_gnu = yes; then
  2576. GCC=yes
  2577. else
  2578. GCC=
  2579. fi
  2580. ac_test_CFLAGS=${CFLAGS+set}
  2581. ac_save_CFLAGS=$CFLAGS
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2583. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2584. if ${ac_cv_prog_cc_g+:} false; then :
  2585. $as_echo_n "(cached) " >&6
  2586. else
  2587. ac_save_c_werror_flag=$ac_c_werror_flag
  2588. ac_c_werror_flag=yes
  2589. ac_cv_prog_cc_g=no
  2590. CFLAGS="-g"
  2591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2592. /* end confdefs.h. */
  2593. int
  2594. main ()
  2595. {
  2596. ;
  2597. return 0;
  2598. }
  2599. _ACEOF
  2600. if ac_fn_c_try_compile "$LINENO"; then :
  2601. ac_cv_prog_cc_g=yes
  2602. else
  2603. CFLAGS=""
  2604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2605. /* end confdefs.h. */
  2606. int
  2607. main ()
  2608. {
  2609. ;
  2610. return 0;
  2611. }
  2612. _ACEOF
  2613. if ac_fn_c_try_compile "$LINENO"; then :
  2614. else
  2615. ac_c_werror_flag=$ac_save_c_werror_flag
  2616. CFLAGS="-g"
  2617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2618. /* end confdefs.h. */
  2619. int
  2620. main ()
  2621. {
  2622. ;
  2623. return 0;
  2624. }
  2625. _ACEOF
  2626. if ac_fn_c_try_compile "$LINENO"; then :
  2627. ac_cv_prog_cc_g=yes
  2628. fi
  2629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2630. fi
  2631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2632. fi
  2633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2634. ac_c_werror_flag=$ac_save_c_werror_flag
  2635. fi
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2637. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2638. if test "$ac_test_CFLAGS" = set; then
  2639. CFLAGS=$ac_save_CFLAGS
  2640. elif test $ac_cv_prog_cc_g = yes; then
  2641. if test "$GCC" = yes; then
  2642. CFLAGS="-g -O2"
  2643. else
  2644. CFLAGS="-g"
  2645. fi
  2646. else
  2647. if test "$GCC" = yes; then
  2648. CFLAGS="-O2"
  2649. else
  2650. CFLAGS=
  2651. fi
  2652. fi
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2654. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2655. if ${ac_cv_prog_cc_c89+:} false; then :
  2656. $as_echo_n "(cached) " >&6
  2657. else
  2658. ac_cv_prog_cc_c89=no
  2659. ac_save_CC=$CC
  2660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2661. /* end confdefs.h. */
  2662. #include <stdarg.h>
  2663. #include <stdio.h>
  2664. struct stat;
  2665. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2666. struct buf { int x; };
  2667. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2668. static char *e (p, i)
  2669. char **p;
  2670. int i;
  2671. {
  2672. return p[i];
  2673. }
  2674. static char *f (char * (*g) (char **, int), char **p, ...)
  2675. {
  2676. char *s;
  2677. va_list v;
  2678. va_start (v,p);
  2679. s = g (p, va_arg (v,int));
  2680. va_end (v);
  2681. return s;
  2682. }
  2683. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2684. function prototypes and stuff, but not '\xHH' hex character constants.
  2685. These don't provoke an error unfortunately, instead are silently treated
  2686. as 'x'. The following induces an error, until -std is added to get
  2687. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2688. array size at least. It's necessary to write '\x00'==0 to get something
  2689. that's true only with -std. */
  2690. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2691. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2692. inside strings and character constants. */
  2693. #define FOO(x) 'x'
  2694. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2695. int test (int i, double x);
  2696. struct s1 {int (*f) (int a);};
  2697. struct s2 {int (*f) (double a);};
  2698. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2699. int argc;
  2700. char **argv;
  2701. int
  2702. main ()
  2703. {
  2704. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2705. ;
  2706. return 0;
  2707. }
  2708. _ACEOF
  2709. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2710. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2711. do
  2712. CC="$ac_save_CC $ac_arg"
  2713. if ac_fn_c_try_compile "$LINENO"; then :
  2714. ac_cv_prog_cc_c89=$ac_arg
  2715. fi
  2716. rm -f core conftest.err conftest.$ac_objext
  2717. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2718. done
  2719. rm -f conftest.$ac_ext
  2720. CC=$ac_save_CC
  2721. fi
  2722. # AC_CACHE_VAL
  2723. case "x$ac_cv_prog_cc_c89" in
  2724. x)
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2726. $as_echo "none needed" >&6; } ;;
  2727. xno)
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2729. $as_echo "unsupported" >&6; } ;;
  2730. *)
  2731. CC="$CC $ac_cv_prog_cc_c89"
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2733. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2734. esac
  2735. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2736. fi
  2737. ac_ext=c
  2738. ac_cpp='$CPP $CPPFLAGS'
  2739. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2740. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2741. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2742. ac_ext=c
  2743. ac_cpp='$CPP $CPPFLAGS'
  2744. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2745. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2746. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2748. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2749. # On Suns, sometimes $CPP names a directory.
  2750. if test -n "$CPP" && test -d "$CPP"; then
  2751. CPP=
  2752. fi
  2753. if test -z "$CPP"; then
  2754. if ${ac_cv_prog_CPP+:} false; then :
  2755. $as_echo_n "(cached) " >&6
  2756. else
  2757. # Double quotes because CPP needs to be expanded
  2758. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2759. do
  2760. ac_preproc_ok=false
  2761. for ac_c_preproc_warn_flag in '' yes
  2762. do
  2763. # Use a header file that comes with gcc, so configuring glibc
  2764. # with a fresh cross-compiler works.
  2765. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2766. # <limits.h> exists even on freestanding compilers.
  2767. # On the NeXT, cc -E runs the code through the compiler's parser,
  2768. # not just through cpp. "Syntax error" is here to catch this case.
  2769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2770. /* end confdefs.h. */
  2771. #ifdef __STDC__
  2772. # include <limits.h>
  2773. #else
  2774. # include <assert.h>
  2775. #endif
  2776. Syntax error
  2777. _ACEOF
  2778. if ac_fn_c_try_cpp "$LINENO"; then :
  2779. else
  2780. # Broken: fails on valid input.
  2781. continue
  2782. fi
  2783. rm -f conftest.err conftest.i conftest.$ac_ext
  2784. # OK, works on sane cases. Now check whether nonexistent headers
  2785. # can be detected and how.
  2786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2787. /* end confdefs.h. */
  2788. #include <ac_nonexistent.h>
  2789. _ACEOF
  2790. if ac_fn_c_try_cpp "$LINENO"; then :
  2791. # Broken: success on invalid input.
  2792. continue
  2793. else
  2794. # Passes both tests.
  2795. ac_preproc_ok=:
  2796. break
  2797. fi
  2798. rm -f conftest.err conftest.i conftest.$ac_ext
  2799. done
  2800. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2801. rm -f conftest.i conftest.err conftest.$ac_ext
  2802. if $ac_preproc_ok; then :
  2803. break
  2804. fi
  2805. done
  2806. ac_cv_prog_CPP=$CPP
  2807. fi
  2808. CPP=$ac_cv_prog_CPP
  2809. else
  2810. ac_cv_prog_CPP=$CPP
  2811. fi
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2813. $as_echo "$CPP" >&6; }
  2814. ac_preproc_ok=false
  2815. for ac_c_preproc_warn_flag in '' yes
  2816. do
  2817. # Use a header file that comes with gcc, so configuring glibc
  2818. # with a fresh cross-compiler works.
  2819. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2820. # <limits.h> exists even on freestanding compilers.
  2821. # On the NeXT, cc -E runs the code through the compiler's parser,
  2822. # not just through cpp. "Syntax error" is here to catch this case.
  2823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2824. /* end confdefs.h. */
  2825. #ifdef __STDC__
  2826. # include <limits.h>
  2827. #else
  2828. # include <assert.h>
  2829. #endif
  2830. Syntax error
  2831. _ACEOF
  2832. if ac_fn_c_try_cpp "$LINENO"; then :
  2833. else
  2834. # Broken: fails on valid input.
  2835. continue
  2836. fi
  2837. rm -f conftest.err conftest.i conftest.$ac_ext
  2838. # OK, works on sane cases. Now check whether nonexistent headers
  2839. # can be detected and how.
  2840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2841. /* end confdefs.h. */
  2842. #include <ac_nonexistent.h>
  2843. _ACEOF
  2844. if ac_fn_c_try_cpp "$LINENO"; then :
  2845. # Broken: success on invalid input.
  2846. continue
  2847. else
  2848. # Passes both tests.
  2849. ac_preproc_ok=:
  2850. break
  2851. fi
  2852. rm -f conftest.err conftest.i conftest.$ac_ext
  2853. done
  2854. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2855. rm -f conftest.i conftest.err conftest.$ac_ext
  2856. if $ac_preproc_ok; then :
  2857. else
  2858. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2859. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2860. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  2861. See \`config.log' for more details" "$LINENO" 5; }
  2862. fi
  2863. ac_ext=c
  2864. ac_cpp='$CPP $CPPFLAGS'
  2865. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2866. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2867. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2868. for ac_prog in flex lex
  2869. do
  2870. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2871. set dummy $ac_prog; ac_word=$2
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2873. $as_echo_n "checking for $ac_word... " >&6; }
  2874. if ${ac_cv_prog_LEX+:} false; then :
  2875. $as_echo_n "(cached) " >&6
  2876. else
  2877. if test -n "$LEX"; then
  2878. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  2879. else
  2880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2881. for as_dir in $PATH
  2882. do
  2883. IFS=$as_save_IFS
  2884. test -z "$as_dir" && as_dir=.
  2885. for ac_exec_ext in '' $ac_executable_extensions; do
  2886. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2887. ac_cv_prog_LEX="$ac_prog"
  2888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2889. break 2
  2890. fi
  2891. done
  2892. done
  2893. IFS=$as_save_IFS
  2894. fi
  2895. fi
  2896. LEX=$ac_cv_prog_LEX
  2897. if test -n "$LEX"; then
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  2899. $as_echo "$LEX" >&6; }
  2900. else
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2902. $as_echo "no" >&6; }
  2903. fi
  2904. test -n "$LEX" && break
  2905. done
  2906. test -n "$LEX" || LEX=":"
  2907. if test "x$LEX" != "x:"; then
  2908. cat >conftest.l <<_ACEOF
  2909. %%
  2910. a { ECHO; }
  2911. b { REJECT; }
  2912. c { yymore (); }
  2913. d { yyless (1); }
  2914. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  2915. yyless ((input () != 0)); }
  2916. f { unput (yytext[0]); }
  2917. . { BEGIN INITIAL; }
  2918. %%
  2919. #ifdef YYTEXT_POINTER
  2920. extern char *yytext;
  2921. #endif
  2922. int
  2923. main (void)
  2924. {
  2925. return ! yylex () + ! yywrap ();
  2926. }
  2927. _ACEOF
  2928. { { ac_try="$LEX conftest.l"
  2929. case "(($ac_try" in
  2930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2931. *) ac_try_echo=$ac_try;;
  2932. esac
  2933. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2934. $as_echo "$ac_try_echo"; } >&5
  2935. (eval "$LEX conftest.l") 2>&5
  2936. ac_status=$?
  2937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2938. test $ac_status = 0; }
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  2940. $as_echo_n "checking lex output file root... " >&6; }
  2941. if ${ac_cv_prog_lex_root+:} false; then :
  2942. $as_echo_n "(cached) " >&6
  2943. else
  2944. if test -f lex.yy.c; then
  2945. ac_cv_prog_lex_root=lex.yy
  2946. elif test -f lexyy.c; then
  2947. ac_cv_prog_lex_root=lexyy
  2948. else
  2949. as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  2950. fi
  2951. fi
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  2953. $as_echo "$ac_cv_prog_lex_root" >&6; }
  2954. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  2955. if test -z "${LEXLIB+set}"; then
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  2957. $as_echo_n "checking lex library... " >&6; }
  2958. if ${ac_cv_lib_lex+:} false; then :
  2959. $as_echo_n "(cached) " >&6
  2960. else
  2961. ac_save_LIBS=$LIBS
  2962. ac_cv_lib_lex='none needed'
  2963. for ac_lib in '' -lfl -ll; do
  2964. LIBS="$ac_lib $ac_save_LIBS"
  2965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2966. /* end confdefs.h. */
  2967. `cat $LEX_OUTPUT_ROOT.c`
  2968. _ACEOF
  2969. if ac_fn_c_try_link "$LINENO"; then :
  2970. ac_cv_lib_lex=$ac_lib
  2971. fi
  2972. rm -f core conftest.err conftest.$ac_objext \
  2973. conftest$ac_exeext conftest.$ac_ext
  2974. test "$ac_cv_lib_lex" != 'none needed' && break
  2975. done
  2976. LIBS=$ac_save_LIBS
  2977. fi
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  2979. $as_echo "$ac_cv_lib_lex" >&6; }
  2980. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  2981. fi
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  2983. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  2984. if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  2985. $as_echo_n "(cached) " >&6
  2986. else
  2987. # POSIX says lex can declare yytext either as a pointer or an array; the
  2988. # default is implementation-dependent. Figure out which it is, since
  2989. # not all implementations provide the %pointer and %array declarations.
  2990. ac_cv_prog_lex_yytext_pointer=no
  2991. ac_save_LIBS=$LIBS
  2992. LIBS="$LEXLIB $ac_save_LIBS"
  2993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2994. /* end confdefs.h. */
  2995. #define YYTEXT_POINTER 1
  2996. `cat $LEX_OUTPUT_ROOT.c`
  2997. _ACEOF
  2998. if ac_fn_c_try_link "$LINENO"; then :
  2999. ac_cv_prog_lex_yytext_pointer=yes
  3000. fi
  3001. rm -f core conftest.err conftest.$ac_objext \
  3002. conftest$ac_exeext conftest.$ac_ext
  3003. LIBS=$ac_save_LIBS
  3004. fi
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  3006. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  3007. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  3008. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  3009. fi
  3010. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  3011. fi
  3012. ac_aux_dir=
  3013. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3014. if test -f "$ac_dir/install-sh"; then
  3015. ac_aux_dir=$ac_dir
  3016. ac_install_sh="$ac_aux_dir/install-sh -c"
  3017. break
  3018. elif test -f "$ac_dir/install.sh"; then
  3019. ac_aux_dir=$ac_dir
  3020. ac_install_sh="$ac_aux_dir/install.sh -c"
  3021. break
  3022. elif test -f "$ac_dir/shtool"; then
  3023. ac_aux_dir=$ac_dir
  3024. ac_install_sh="$ac_aux_dir/shtool install -c"
  3025. break
  3026. fi
  3027. done
  3028. if test -z "$ac_aux_dir"; then
  3029. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3030. fi
  3031. # These three variables are undocumented and unsupported,
  3032. # and are intended to be withdrawn in a future Autoconf release.
  3033. # They can cause serious problems if a builder's source tree is in a directory
  3034. # whose full name contains unusual characters.
  3035. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3036. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3037. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3038. # Find a good install program. We prefer a C program (faster),
  3039. # so one script is as good as another. But avoid the broken or
  3040. # incompatible versions:
  3041. # SysV /etc/install, /usr/sbin/install
  3042. # SunOS /usr/etc/install
  3043. # IRIX /sbin/install
  3044. # AIX /bin/install
  3045. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3046. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3047. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3048. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3049. # OS/2's system install, which has a completely different semantic
  3050. # ./install, which can be erroneously created by make from ./install.sh.
  3051. # Reject install programs that cannot install multiple files.
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3053. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3054. if test -z "$INSTALL"; then
  3055. if ${ac_cv_path_install+:} false; then :
  3056. $as_echo_n "(cached) " >&6
  3057. else
  3058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3059. for as_dir in $PATH
  3060. do
  3061. IFS=$as_save_IFS
  3062. test -z "$as_dir" && as_dir=.
  3063. # Account for people who put trailing slashes in PATH elements.
  3064. case $as_dir/ in #((
  3065. ./ | .// | /[cC]/* | \
  3066. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3067. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3068. /usr/ucb/* ) ;;
  3069. *)
  3070. # OSF1 and SCO ODT 3.0 have their own names for install.
  3071. # Don't use installbsd from OSF since it installs stuff as root
  3072. # by default.
  3073. for ac_prog in ginstall scoinst install; do
  3074. for ac_exec_ext in '' $ac_executable_extensions; do
  3075. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3076. if test $ac_prog = install &&
  3077. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3078. # AIX install. It has an incompatible calling convention.
  3079. :
  3080. elif test $ac_prog = install &&
  3081. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3082. # program-specific install script used by HP pwplus--don't use.
  3083. :
  3084. else
  3085. rm -rf conftest.one conftest.two conftest.dir
  3086. echo one > conftest.one
  3087. echo two > conftest.two
  3088. mkdir conftest.dir
  3089. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3090. test -s conftest.one && test -s conftest.two &&
  3091. test -s conftest.dir/conftest.one &&
  3092. test -s conftest.dir/conftest.two
  3093. then
  3094. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3095. break 3
  3096. fi
  3097. fi
  3098. fi
  3099. done
  3100. done
  3101. ;;
  3102. esac
  3103. done
  3104. IFS=$as_save_IFS
  3105. rm -rf conftest.one conftest.two conftest.dir
  3106. fi
  3107. if test "${ac_cv_path_install+set}" = set; then
  3108. INSTALL=$ac_cv_path_install
  3109. else
  3110. # As a last resort, use the slow shell script. Don't cache a
  3111. # value for INSTALL within a source directory, because that will
  3112. # break other packages using the cache if that directory is
  3113. # removed, or if the value is a relative name.
  3114. INSTALL=$ac_install_sh
  3115. fi
  3116. fi
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3118. $as_echo "$INSTALL" >&6; }
  3119. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3120. # It thinks the first close brace ends the variable substitution.
  3121. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3122. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3123. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3125. $as_echo_n "checking whether ln -s works... " >&6; }
  3126. LN_S=$as_ln_s
  3127. if test "$LN_S" = "ln -s"; then
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3129. $as_echo "yes" >&6; }
  3130. else
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3132. $as_echo "no, using $LN_S" >&6; }
  3133. fi
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3135. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3136. set x ${MAKE-make}
  3137. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3138. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3139. $as_echo_n "(cached) " >&6
  3140. else
  3141. cat >conftest.make <<\_ACEOF
  3142. SHELL = /bin/sh
  3143. all:
  3144. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3145. _ACEOF
  3146. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3147. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3148. *@@@%%%=?*=@@@%%%*)
  3149. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3150. *)
  3151. eval ac_cv_prog_make_${ac_make}_set=no;;
  3152. esac
  3153. rm -f conftest.make
  3154. fi
  3155. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3157. $as_echo "yes" >&6; }
  3158. SET_MAKE=
  3159. else
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3161. $as_echo "no" >&6; }
  3162. SET_MAKE="MAKE=${MAKE-make}"
  3163. fi
  3164. if test -n "$ac_tool_prefix"; then
  3165. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3166. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3168. $as_echo_n "checking for $ac_word... " >&6; }
  3169. if ${ac_cv_prog_RANLIB+:} false; then :
  3170. $as_echo_n "(cached) " >&6
  3171. else
  3172. if test -n "$RANLIB"; then
  3173. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3174. else
  3175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3176. for as_dir in $PATH
  3177. do
  3178. IFS=$as_save_IFS
  3179. test -z "$as_dir" && as_dir=.
  3180. for ac_exec_ext in '' $ac_executable_extensions; do
  3181. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3182. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3184. break 2
  3185. fi
  3186. done
  3187. done
  3188. IFS=$as_save_IFS
  3189. fi
  3190. fi
  3191. RANLIB=$ac_cv_prog_RANLIB
  3192. if test -n "$RANLIB"; then
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3194. $as_echo "$RANLIB" >&6; }
  3195. else
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3197. $as_echo "no" >&6; }
  3198. fi
  3199. fi
  3200. if test -z "$ac_cv_prog_RANLIB"; then
  3201. ac_ct_RANLIB=$RANLIB
  3202. # Extract the first word of "ranlib", so it can be a program name with args.
  3203. set dummy ranlib; ac_word=$2
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3205. $as_echo_n "checking for $ac_word... " >&6; }
  3206. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  3207. $as_echo_n "(cached) " >&6
  3208. else
  3209. if test -n "$ac_ct_RANLIB"; then
  3210. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3211. else
  3212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3213. for as_dir in $PATH
  3214. do
  3215. IFS=$as_save_IFS
  3216. test -z "$as_dir" && as_dir=.
  3217. for ac_exec_ext in '' $ac_executable_extensions; do
  3218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3219. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3221. break 2
  3222. fi
  3223. done
  3224. done
  3225. IFS=$as_save_IFS
  3226. fi
  3227. fi
  3228. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3229. if test -n "$ac_ct_RANLIB"; then
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3231. $as_echo "$ac_ct_RANLIB" >&6; }
  3232. else
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3234. $as_echo "no" >&6; }
  3235. fi
  3236. if test "x$ac_ct_RANLIB" = x; then
  3237. RANLIB=":"
  3238. else
  3239. case $cross_compiling:$ac_tool_warned in
  3240. yes:)
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3242. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3243. ac_tool_warned=yes ;;
  3244. esac
  3245. RANLIB=$ac_ct_RANLIB
  3246. fi
  3247. else
  3248. RANLIB="$ac_cv_prog_RANLIB"
  3249. fi
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  3251. $as_echo_n "checking for X... " >&6; }
  3252. # Check whether --with-x was given.
  3253. if test "${with_x+set}" = set; then :
  3254. withval=$with_x;
  3255. fi
  3256. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3257. if test "x$with_x" = xno; then
  3258. # The user explicitly disabled X.
  3259. have_x=disabled
  3260. else
  3261. case $x_includes,$x_libraries in #(
  3262. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  3263. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  3264. $as_echo_n "(cached) " >&6
  3265. else
  3266. # One or both of the vars are not set, and there is no cached value.
  3267. ac_x_includes=no ac_x_libraries=no
  3268. rm -f -r conftest.dir
  3269. if mkdir conftest.dir; then
  3270. cd conftest.dir
  3271. cat >Imakefile <<'_ACEOF'
  3272. incroot:
  3273. @echo incroot='${INCROOT}'
  3274. usrlibdir:
  3275. @echo usrlibdir='${USRLIBDIR}'
  3276. libdir:
  3277. @echo libdir='${LIBDIR}'
  3278. _ACEOF
  3279. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  3280. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3281. for ac_var in incroot usrlibdir libdir; do
  3282. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  3283. done
  3284. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3285. for ac_extension in so a sl dylib la dll; do
  3286. if test -f "$ac_im_libdir/libX11.$ac_extension" &&
  3287. test ! -f "$ac_im_usrlibdir/libX11.$ac_extension"; then
  3288. ac_im_usrlibdir=$ac_im_libdir; break
  3289. fi
  3290. done
  3291. # Screen out bogus values from the imake configuration. They are
  3292. # bogus both because they are the default anyway, and because
  3293. # using them would break gcc on systems where it needs fixed includes.
  3294. case $ac_im_incroot in
  3295. /usr/include) ac_x_includes= ;;
  3296. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  3297. esac
  3298. case $ac_im_usrlibdir in
  3299. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  3300. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  3301. esac
  3302. fi
  3303. cd ..
  3304. rm -f -r conftest.dir
  3305. fi
  3306. # Standard set of common directories for X headers.
  3307. # Check X11 before X11Rn because it is often a symlink to the current release.
  3308. ac_x_header_dirs='
  3309. /usr/X11/include
  3310. /usr/X11R7/include
  3311. /usr/X11R6/include
  3312. /usr/X11R5/include
  3313. /usr/X11R4/include
  3314. /usr/include/X11
  3315. /usr/include/X11R7
  3316. /usr/include/X11R6
  3317. /usr/include/X11R5
  3318. /usr/include/X11R4
  3319. /usr/local/X11/include
  3320. /usr/local/X11R7/include
  3321. /usr/local/X11R6/include
  3322. /usr/local/X11R5/include
  3323. /usr/local/X11R4/include
  3324. /usr/local/include/X11
  3325. /usr/local/include/X11R7
  3326. /usr/local/include/X11R6
  3327. /usr/local/include/X11R5
  3328. /usr/local/include/X11R4
  3329. /usr/X386/include
  3330. /usr/x386/include
  3331. /usr/XFree86/include/X11
  3332. /usr/include
  3333. /usr/local/include
  3334. /usr/unsupported/include
  3335. /usr/athena/include
  3336. /usr/local/x11r5/include
  3337. /usr/lpp/Xamples/include
  3338. /usr/openwin/include
  3339. /usr/openwin/share/include'
  3340. if test "$ac_x_includes" = no; then
  3341. # Guess where to find include files, by looking for Xlib.h.
  3342. # First, try using that file with no special directory specified.
  3343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3344. /* end confdefs.h. */
  3345. #include <X11/Xlib.h>
  3346. _ACEOF
  3347. if ac_fn_c_try_cpp "$LINENO"; then :
  3348. # We can compile using X headers with no special include directory.
  3349. ac_x_includes=
  3350. else
  3351. for ac_dir in $ac_x_header_dirs; do
  3352. if test -r "$ac_dir/X11/Xlib.h"; then
  3353. ac_x_includes=$ac_dir
  3354. break
  3355. fi
  3356. done
  3357. fi
  3358. rm -f conftest.err conftest.i conftest.$ac_ext
  3359. fi # $ac_x_includes = no
  3360. if test "$ac_x_libraries" = no; then
  3361. # Check for the libraries.
  3362. # See if we find them without any special options.
  3363. # Don't add to $LIBS permanently.
  3364. ac_save_LIBS=$LIBS
  3365. LIBS="-lX11 $LIBS"
  3366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3367. /* end confdefs.h. */
  3368. #include <X11/Xlib.h>
  3369. int
  3370. main ()
  3371. {
  3372. XrmInitialize ()
  3373. ;
  3374. return 0;
  3375. }
  3376. _ACEOF
  3377. if ac_fn_c_try_link "$LINENO"; then :
  3378. LIBS=$ac_save_LIBS
  3379. # We can link X programs with no special library path.
  3380. ac_x_libraries=
  3381. else
  3382. LIBS=$ac_save_LIBS
  3383. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  3384. do
  3385. # Don't even attempt the hair of trying to link an X program!
  3386. for ac_extension in so a sl dylib la dll; do
  3387. if test -r "$ac_dir/libX11.$ac_extension"; then
  3388. ac_x_libraries=$ac_dir
  3389. break 2
  3390. fi
  3391. done
  3392. done
  3393. fi
  3394. rm -f core conftest.err conftest.$ac_objext \
  3395. conftest$ac_exeext conftest.$ac_ext
  3396. fi # $ac_x_libraries = no
  3397. case $ac_x_includes,$ac_x_libraries in #(
  3398. no,* | *,no | *\'*)
  3399. # Didn't find X, or a directory has "'" in its name.
  3400. ac_cv_have_x="have_x=no";; #(
  3401. *)
  3402. # Record where we found X for the cache.
  3403. ac_cv_have_x="have_x=yes\
  3404. ac_x_includes='$ac_x_includes'\
  3405. ac_x_libraries='$ac_x_libraries'"
  3406. esac
  3407. fi
  3408. ;; #(
  3409. *) have_x=yes;;
  3410. esac
  3411. eval "$ac_cv_have_x"
  3412. fi # $with_x != no
  3413. if test "$have_x" != yes; then
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  3415. $as_echo "$have_x" >&6; }
  3416. no_x=yes
  3417. else
  3418. # If each of the values was on the command line, it overrides each guess.
  3419. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3420. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3421. # Update the cache value to reflect the command line values.
  3422. ac_cv_have_x="have_x=yes\
  3423. ac_x_includes='$x_includes'\
  3424. ac_x_libraries='$x_libraries'"
  3425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  3426. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  3427. fi
  3428. if test "$no_x" = yes; then
  3429. # Not all programs may use this symbol, but it does not hurt to define it.
  3430. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  3431. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3432. else
  3433. if test -n "$x_includes"; then
  3434. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3435. fi
  3436. # It would also be nice to do this for all -L options, not just this one.
  3437. if test -n "$x_libraries"; then
  3438. X_LIBS="$X_LIBS -L$x_libraries"
  3439. # For Solaris; some versions of Sun CC require a space after -R and
  3440. # others require no space. Words are not sufficient . . . .
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  3442. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  3443. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  3444. ac_xsave_c_werror_flag=$ac_c_werror_flag
  3445. ac_c_werror_flag=yes
  3446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3447. /* end confdefs.h. */
  3448. int
  3449. main ()
  3450. {
  3451. ;
  3452. return 0;
  3453. }
  3454. _ACEOF
  3455. if ac_fn_c_try_link "$LINENO"; then :
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3457. $as_echo "no" >&6; }
  3458. X_LIBS="$X_LIBS -R$x_libraries"
  3459. else
  3460. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3462. /* end confdefs.h. */
  3463. int
  3464. main ()
  3465. {
  3466. ;
  3467. return 0;
  3468. }
  3469. _ACEOF
  3470. if ac_fn_c_try_link "$LINENO"; then :
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3472. $as_echo "yes" >&6; }
  3473. X_LIBS="$X_LIBS -R $x_libraries"
  3474. else
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  3476. $as_echo "neither works" >&6; }
  3477. fi
  3478. rm -f core conftest.err conftest.$ac_objext \
  3479. conftest$ac_exeext conftest.$ac_ext
  3480. fi
  3481. rm -f core conftest.err conftest.$ac_objext \
  3482. conftest$ac_exeext conftest.$ac_ext
  3483. ac_c_werror_flag=$ac_xsave_c_werror_flag
  3484. LIBS=$ac_xsave_LIBS
  3485. fi
  3486. # Check for system-dependent libraries X programs must link with.
  3487. # Do this before checking for the system-independent R6 libraries
  3488. # (-lICE), since we may need -lsocket or whatever for X linking.
  3489. if test "$ISC" = yes; then
  3490. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3491. else
  3492. # Martyn Johnson says this is needed for Ultrix, if the X
  3493. # libraries were built with DECnet support. And Karl Berry says
  3494. # the Alpha needs dnet_stub (dnet does not exist).
  3495. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  3496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3497. /* end confdefs.h. */
  3498. /* Override any GCC internal prototype to avoid an error.
  3499. Use char because int might match the return type of a GCC
  3500. builtin and then its argument prototype would still apply. */
  3501. #ifdef __cplusplus
  3502. extern "C"
  3503. #endif
  3504. char XOpenDisplay ();
  3505. int
  3506. main ()
  3507. {
  3508. return XOpenDisplay ();
  3509. ;
  3510. return 0;
  3511. }
  3512. _ACEOF
  3513. if ac_fn_c_try_link "$LINENO"; then :
  3514. else
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  3516. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  3517. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  3518. $as_echo_n "(cached) " >&6
  3519. else
  3520. ac_check_lib_save_LIBS=$LIBS
  3521. LIBS="-ldnet $LIBS"
  3522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3523. /* end confdefs.h. */
  3524. /* Override any GCC internal prototype to avoid an error.
  3525. Use char because int might match the return type of a GCC
  3526. builtin and then its argument prototype would still apply. */
  3527. #ifdef __cplusplus
  3528. extern "C"
  3529. #endif
  3530. char dnet_ntoa ();
  3531. int
  3532. main ()
  3533. {
  3534. return dnet_ntoa ();
  3535. ;
  3536. return 0;
  3537. }
  3538. _ACEOF
  3539. if ac_fn_c_try_link "$LINENO"; then :
  3540. ac_cv_lib_dnet_dnet_ntoa=yes
  3541. else
  3542. ac_cv_lib_dnet_dnet_ntoa=no
  3543. fi
  3544. rm -f core conftest.err conftest.$ac_objext \
  3545. conftest$ac_exeext conftest.$ac_ext
  3546. LIBS=$ac_check_lib_save_LIBS
  3547. fi
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  3549. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  3550. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  3551. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3552. fi
  3553. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  3555. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  3556. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  3557. $as_echo_n "(cached) " >&6
  3558. else
  3559. ac_check_lib_save_LIBS=$LIBS
  3560. LIBS="-ldnet_stub $LIBS"
  3561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3562. /* end confdefs.h. */
  3563. /* Override any GCC internal prototype to avoid an error.
  3564. Use char because int might match the return type of a GCC
  3565. builtin and then its argument prototype would still apply. */
  3566. #ifdef __cplusplus
  3567. extern "C"
  3568. #endif
  3569. char dnet_ntoa ();
  3570. int
  3571. main ()
  3572. {
  3573. return dnet_ntoa ();
  3574. ;
  3575. return 0;
  3576. }
  3577. _ACEOF
  3578. if ac_fn_c_try_link "$LINENO"; then :
  3579. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  3580. else
  3581. ac_cv_lib_dnet_stub_dnet_ntoa=no
  3582. fi
  3583. rm -f core conftest.err conftest.$ac_objext \
  3584. conftest$ac_exeext conftest.$ac_ext
  3585. LIBS=$ac_check_lib_save_LIBS
  3586. fi
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  3588. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  3589. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  3590. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3591. fi
  3592. fi
  3593. fi
  3594. rm -f core conftest.err conftest.$ac_objext \
  3595. conftest$ac_exeext conftest.$ac_ext
  3596. LIBS="$ac_xsave_LIBS"
  3597. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3598. # to get the SysV transport functions.
  3599. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  3600. # needs -lnsl.
  3601. # The nsl library prevents programs from opening the X display
  3602. # on Irix 5.2, according to T.E. Dickey.
  3603. # The functions gethostbyname, getservbyname, and inet_addr are
  3604. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  3605. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  3606. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  3607. fi
  3608. if test $ac_cv_func_gethostbyname = no; then
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  3610. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  3611. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  3612. $as_echo_n "(cached) " >&6
  3613. else
  3614. ac_check_lib_save_LIBS=$LIBS
  3615. LIBS="-lnsl $LIBS"
  3616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3617. /* end confdefs.h. */
  3618. /* Override any GCC internal prototype to avoid an error.
  3619. Use char because int might match the return type of a GCC
  3620. builtin and then its argument prototype would still apply. */
  3621. #ifdef __cplusplus
  3622. extern "C"
  3623. #endif
  3624. char gethostbyname ();
  3625. int
  3626. main ()
  3627. {
  3628. return gethostbyname ();
  3629. ;
  3630. return 0;
  3631. }
  3632. _ACEOF
  3633. if ac_fn_c_try_link "$LINENO"; then :
  3634. ac_cv_lib_nsl_gethostbyname=yes
  3635. else
  3636. ac_cv_lib_nsl_gethostbyname=no
  3637. fi
  3638. rm -f core conftest.err conftest.$ac_objext \
  3639. conftest$ac_exeext conftest.$ac_ext
  3640. LIBS=$ac_check_lib_save_LIBS
  3641. fi
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  3643. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  3644. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  3645. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3646. fi
  3647. if test $ac_cv_lib_nsl_gethostbyname = no; then
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  3649. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  3650. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  3651. $as_echo_n "(cached) " >&6
  3652. else
  3653. ac_check_lib_save_LIBS=$LIBS
  3654. LIBS="-lbsd $LIBS"
  3655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3656. /* end confdefs.h. */
  3657. /* Override any GCC internal prototype to avoid an error.
  3658. Use char because int might match the return type of a GCC
  3659. builtin and then its argument prototype would still apply. */
  3660. #ifdef __cplusplus
  3661. extern "C"
  3662. #endif
  3663. char gethostbyname ();
  3664. int
  3665. main ()
  3666. {
  3667. return gethostbyname ();
  3668. ;
  3669. return 0;
  3670. }
  3671. _ACEOF
  3672. if ac_fn_c_try_link "$LINENO"; then :
  3673. ac_cv_lib_bsd_gethostbyname=yes
  3674. else
  3675. ac_cv_lib_bsd_gethostbyname=no
  3676. fi
  3677. rm -f core conftest.err conftest.$ac_objext \
  3678. conftest$ac_exeext conftest.$ac_ext
  3679. LIBS=$ac_check_lib_save_LIBS
  3680. fi
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  3682. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  3683. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  3684. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  3685. fi
  3686. fi
  3687. fi
  3688. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3689. # socket/setsockopt and other routines are undefined under SCO ODT
  3690. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3691. # on later versions), says Simon Leinen: it contains gethostby*
  3692. # variants that don't use the name server (or something). -lsocket
  3693. # must be given before -lnsl if both are needed. We assume that
  3694. # if connect needs -lnsl, so does gethostbyname.
  3695. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  3696. if test "x$ac_cv_func_connect" = xyes; then :
  3697. fi
  3698. if test $ac_cv_func_connect = no; then
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  3700. $as_echo_n "checking for connect in -lsocket... " >&6; }
  3701. if ${ac_cv_lib_socket_connect+:} false; then :
  3702. $as_echo_n "(cached) " >&6
  3703. else
  3704. ac_check_lib_save_LIBS=$LIBS
  3705. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3707. /* end confdefs.h. */
  3708. /* Override any GCC internal prototype to avoid an error.
  3709. Use char because int might match the return type of a GCC
  3710. builtin and then its argument prototype would still apply. */
  3711. #ifdef __cplusplus
  3712. extern "C"
  3713. #endif
  3714. char connect ();
  3715. int
  3716. main ()
  3717. {
  3718. return connect ();
  3719. ;
  3720. return 0;
  3721. }
  3722. _ACEOF
  3723. if ac_fn_c_try_link "$LINENO"; then :
  3724. ac_cv_lib_socket_connect=yes
  3725. else
  3726. ac_cv_lib_socket_connect=no
  3727. fi
  3728. rm -f core conftest.err conftest.$ac_objext \
  3729. conftest$ac_exeext conftest.$ac_ext
  3730. LIBS=$ac_check_lib_save_LIBS
  3731. fi
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  3733. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  3734. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  3735. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3736. fi
  3737. fi
  3738. # Guillermo Gomez says -lposix is necessary on A/UX.
  3739. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  3740. if test "x$ac_cv_func_remove" = xyes; then :
  3741. fi
  3742. if test $ac_cv_func_remove = no; then
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  3744. $as_echo_n "checking for remove in -lposix... " >&6; }
  3745. if ${ac_cv_lib_posix_remove+:} false; then :
  3746. $as_echo_n "(cached) " >&6
  3747. else
  3748. ac_check_lib_save_LIBS=$LIBS
  3749. LIBS="-lposix $LIBS"
  3750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3751. /* end confdefs.h. */
  3752. /* Override any GCC internal prototype to avoid an error.
  3753. Use char because int might match the return type of a GCC
  3754. builtin and then its argument prototype would still apply. */
  3755. #ifdef __cplusplus
  3756. extern "C"
  3757. #endif
  3758. char remove ();
  3759. int
  3760. main ()
  3761. {
  3762. return remove ();
  3763. ;
  3764. return 0;
  3765. }
  3766. _ACEOF
  3767. if ac_fn_c_try_link "$LINENO"; then :
  3768. ac_cv_lib_posix_remove=yes
  3769. else
  3770. ac_cv_lib_posix_remove=no
  3771. fi
  3772. rm -f core conftest.err conftest.$ac_objext \
  3773. conftest$ac_exeext conftest.$ac_ext
  3774. LIBS=$ac_check_lib_save_LIBS
  3775. fi
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  3777. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  3778. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  3779. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3780. fi
  3781. fi
  3782. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3783. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  3784. if test "x$ac_cv_func_shmat" = xyes; then :
  3785. fi
  3786. if test $ac_cv_func_shmat = no; then
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  3788. $as_echo_n "checking for shmat in -lipc... " >&6; }
  3789. if ${ac_cv_lib_ipc_shmat+:} false; then :
  3790. $as_echo_n "(cached) " >&6
  3791. else
  3792. ac_check_lib_save_LIBS=$LIBS
  3793. LIBS="-lipc $LIBS"
  3794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3795. /* end confdefs.h. */
  3796. /* Override any GCC internal prototype to avoid an error.
  3797. Use char because int might match the return type of a GCC
  3798. builtin and then its argument prototype would still apply. */
  3799. #ifdef __cplusplus
  3800. extern "C"
  3801. #endif
  3802. char shmat ();
  3803. int
  3804. main ()
  3805. {
  3806. return shmat ();
  3807. ;
  3808. return 0;
  3809. }
  3810. _ACEOF
  3811. if ac_fn_c_try_link "$LINENO"; then :
  3812. ac_cv_lib_ipc_shmat=yes
  3813. else
  3814. ac_cv_lib_ipc_shmat=no
  3815. fi
  3816. rm -f core conftest.err conftest.$ac_objext \
  3817. conftest$ac_exeext conftest.$ac_ext
  3818. LIBS=$ac_check_lib_save_LIBS
  3819. fi
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  3821. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  3822. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  3823. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3824. fi
  3825. fi
  3826. fi
  3827. # Check for libraries that X11R6 Xt/Xaw programs need.
  3828. ac_save_LDFLAGS=$LDFLAGS
  3829. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3830. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3831. # check for ICE first), but we must link in the order -lSM -lICE or
  3832. # we get undefined symbols. So assume we have SM if we have ICE.
  3833. # These have to be linked with before -lX11, unlike the other
  3834. # libraries we check for below, so use a different variable.
  3835. # John Interrante, Karl Berry
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  3837. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  3838. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  3839. $as_echo_n "(cached) " >&6
  3840. else
  3841. ac_check_lib_save_LIBS=$LIBS
  3842. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3844. /* end confdefs.h. */
  3845. /* Override any GCC internal prototype to avoid an error.
  3846. Use char because int might match the return type of a GCC
  3847. builtin and then its argument prototype would still apply. */
  3848. #ifdef __cplusplus
  3849. extern "C"
  3850. #endif
  3851. char IceConnectionNumber ();
  3852. int
  3853. main ()
  3854. {
  3855. return IceConnectionNumber ();
  3856. ;
  3857. return 0;
  3858. }
  3859. _ACEOF
  3860. if ac_fn_c_try_link "$LINENO"; then :
  3861. ac_cv_lib_ICE_IceConnectionNumber=yes
  3862. else
  3863. ac_cv_lib_ICE_IceConnectionNumber=no
  3864. fi
  3865. rm -f core conftest.err conftest.$ac_objext \
  3866. conftest$ac_exeext conftest.$ac_ext
  3867. LIBS=$ac_check_lib_save_LIBS
  3868. fi
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  3870. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  3871. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  3872. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3873. fi
  3874. LDFLAGS=$ac_save_LDFLAGS
  3875. fi
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3877. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3878. if ${ac_cv_path_GREP+:} false; then :
  3879. $as_echo_n "(cached) " >&6
  3880. else
  3881. if test -z "$GREP"; then
  3882. ac_path_GREP_found=false
  3883. # Loop through the user's path and test for each of PROGNAME-LIST
  3884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3885. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3886. do
  3887. IFS=$as_save_IFS
  3888. test -z "$as_dir" && as_dir=.
  3889. for ac_prog in grep ggrep; do
  3890. for ac_exec_ext in '' $ac_executable_extensions; do
  3891. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3892. as_fn_executable_p "$ac_path_GREP" || continue
  3893. # Check for GNU ac_path_GREP and select it if it is found.
  3894. # Check for GNU $ac_path_GREP
  3895. case `"$ac_path_GREP" --version 2>&1` in
  3896. *GNU*)
  3897. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3898. *)
  3899. ac_count=0
  3900. $as_echo_n 0123456789 >"conftest.in"
  3901. while :
  3902. do
  3903. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3904. mv "conftest.tmp" "conftest.in"
  3905. cp "conftest.in" "conftest.nl"
  3906. $as_echo 'GREP' >> "conftest.nl"
  3907. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3908. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3909. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3910. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3911. # Best one so far, save it but keep looking for a better one
  3912. ac_cv_path_GREP="$ac_path_GREP"
  3913. ac_path_GREP_max=$ac_count
  3914. fi
  3915. # 10*(2^10) chars as input seems more than enough
  3916. test $ac_count -gt 10 && break
  3917. done
  3918. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3919. esac
  3920. $ac_path_GREP_found && break 3
  3921. done
  3922. done
  3923. done
  3924. IFS=$as_save_IFS
  3925. if test -z "$ac_cv_path_GREP"; then
  3926. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3927. fi
  3928. else
  3929. ac_cv_path_GREP=$GREP
  3930. fi
  3931. fi
  3932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3933. $as_echo "$ac_cv_path_GREP" >&6; }
  3934. GREP="$ac_cv_path_GREP"
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3936. $as_echo_n "checking for egrep... " >&6; }
  3937. if ${ac_cv_path_EGREP+:} false; then :
  3938. $as_echo_n "(cached) " >&6
  3939. else
  3940. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3941. then ac_cv_path_EGREP="$GREP -E"
  3942. else
  3943. if test -z "$EGREP"; then
  3944. ac_path_EGREP_found=false
  3945. # Loop through the user's path and test for each of PROGNAME-LIST
  3946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3947. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3948. do
  3949. IFS=$as_save_IFS
  3950. test -z "$as_dir" && as_dir=.
  3951. for ac_prog in egrep; do
  3952. for ac_exec_ext in '' $ac_executable_extensions; do
  3953. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3954. as_fn_executable_p "$ac_path_EGREP" || continue
  3955. # Check for GNU ac_path_EGREP and select it if it is found.
  3956. # Check for GNU $ac_path_EGREP
  3957. case `"$ac_path_EGREP" --version 2>&1` in
  3958. *GNU*)
  3959. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3960. *)
  3961. ac_count=0
  3962. $as_echo_n 0123456789 >"conftest.in"
  3963. while :
  3964. do
  3965. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3966. mv "conftest.tmp" "conftest.in"
  3967. cp "conftest.in" "conftest.nl"
  3968. $as_echo 'EGREP' >> "conftest.nl"
  3969. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3970. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3971. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3972. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3973. # Best one so far, save it but keep looking for a better one
  3974. ac_cv_path_EGREP="$ac_path_EGREP"
  3975. ac_path_EGREP_max=$ac_count
  3976. fi
  3977. # 10*(2^10) chars as input seems more than enough
  3978. test $ac_count -gt 10 && break
  3979. done
  3980. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3981. esac
  3982. $ac_path_EGREP_found && break 3
  3983. done
  3984. done
  3985. done
  3986. IFS=$as_save_IFS
  3987. if test -z "$ac_cv_path_EGREP"; then
  3988. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3989. fi
  3990. else
  3991. ac_cv_path_EGREP=$EGREP
  3992. fi
  3993. fi
  3994. fi
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3996. $as_echo "$ac_cv_path_EGREP" >&6; }
  3997. EGREP="$ac_cv_path_EGREP"
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3999. $as_echo_n "checking for ANSI C header files... " >&6; }
  4000. if ${ac_cv_header_stdc+:} false; then :
  4001. $as_echo_n "(cached) " >&6
  4002. else
  4003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4004. /* end confdefs.h. */
  4005. #include <stdlib.h>
  4006. #include <stdarg.h>
  4007. #include <string.h>
  4008. #include <float.h>
  4009. int
  4010. main ()
  4011. {
  4012. ;
  4013. return 0;
  4014. }
  4015. _ACEOF
  4016. if ac_fn_c_try_compile "$LINENO"; then :
  4017. ac_cv_header_stdc=yes
  4018. else
  4019. ac_cv_header_stdc=no
  4020. fi
  4021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4022. if test $ac_cv_header_stdc = yes; then
  4023. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4025. /* end confdefs.h. */
  4026. #include <string.h>
  4027. _ACEOF
  4028. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4029. $EGREP "memchr" >/dev/null 2>&1; then :
  4030. else
  4031. ac_cv_header_stdc=no
  4032. fi
  4033. rm -f conftest*
  4034. fi
  4035. if test $ac_cv_header_stdc = yes; then
  4036. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4038. /* end confdefs.h. */
  4039. #include <stdlib.h>
  4040. _ACEOF
  4041. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4042. $EGREP "free" >/dev/null 2>&1; then :
  4043. else
  4044. ac_cv_header_stdc=no
  4045. fi
  4046. rm -f conftest*
  4047. fi
  4048. if test $ac_cv_header_stdc = yes; then
  4049. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4050. if test "$cross_compiling" = yes; then :
  4051. :
  4052. else
  4053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4054. /* end confdefs.h. */
  4055. #include <ctype.h>
  4056. #include <stdlib.h>
  4057. #if ((' ' & 0x0FF) == 0x020)
  4058. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4059. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4060. #else
  4061. # define ISLOWER(c) \
  4062. (('a' <= (c) && (c) <= 'i') \
  4063. || ('j' <= (c) && (c) <= 'r') \
  4064. || ('s' <= (c) && (c) <= 'z'))
  4065. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4066. #endif
  4067. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4068. int
  4069. main ()
  4070. {
  4071. int i;
  4072. for (i = 0; i < 256; i++)
  4073. if (XOR (islower (i), ISLOWER (i))
  4074. || toupper (i) != TOUPPER (i))
  4075. return 2;
  4076. return 0;
  4077. }
  4078. _ACEOF
  4079. if ac_fn_c_try_run "$LINENO"; then :
  4080. else
  4081. ac_cv_header_stdc=no
  4082. fi
  4083. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4084. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4085. fi
  4086. fi
  4087. fi
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4089. $as_echo "$ac_cv_header_stdc" >&6; }
  4090. if test $ac_cv_header_stdc = yes; then
  4091. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4092. fi
  4093. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4094. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4095. inttypes.h stdint.h unistd.h
  4096. do :
  4097. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4098. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4099. "
  4100. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4101. cat >>confdefs.h <<_ACEOF
  4102. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4103. _ACEOF
  4104. fi
  4105. done
  4106. for ac_header in unistd.h
  4107. do :
  4108. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  4109. if test "x$ac_cv_header_unistd_h" = xyes; then :
  4110. cat >>confdefs.h <<_ACEOF
  4111. #define HAVE_UNISTD_H 1
  4112. _ACEOF
  4113. fi
  4114. done
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4116. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4117. if ${ac_cv_c_const+:} false; then :
  4118. $as_echo_n "(cached) " >&6
  4119. else
  4120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4121. /* end confdefs.h. */
  4122. int
  4123. main ()
  4124. {
  4125. #ifndef __cplusplus
  4126. /* Ultrix mips cc rejects this sort of thing. */
  4127. typedef int charset[2];
  4128. const charset cs = { 0, 0 };
  4129. /* SunOS 4.1.1 cc rejects this. */
  4130. char const *const *pcpcc;
  4131. char **ppc;
  4132. /* NEC SVR4.0.2 mips cc rejects this. */
  4133. struct point {int x, y;};
  4134. static struct point const zero = {0,0};
  4135. /* AIX XL C 1.02.0.0 rejects this.
  4136. It does not let you subtract one const X* pointer from another in
  4137. an arm of an if-expression whose if-part is not a constant
  4138. expression */
  4139. const char *g = "string";
  4140. pcpcc = &g + (g ? g-g : 0);
  4141. /* HPUX 7.0 cc rejects these. */
  4142. ++pcpcc;
  4143. ppc = (char**) pcpcc;
  4144. pcpcc = (char const *const *) ppc;
  4145. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4146. char tx;
  4147. char *t = &tx;
  4148. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4149. *t++ = 0;
  4150. if (s) return 0;
  4151. }
  4152. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4153. int x[] = {25, 17};
  4154. const int *foo = &x[0];
  4155. ++foo;
  4156. }
  4157. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4158. typedef const int *iptr;
  4159. iptr p = 0;
  4160. ++p;
  4161. }
  4162. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  4163. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4164. struct s { int j; const int *ap[3]; } bx;
  4165. struct s *b = &bx; b->j = 5;
  4166. }
  4167. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4168. const int foo = 10;
  4169. if (!foo) return 0;
  4170. }
  4171. return !cs[0] && !zero.x;
  4172. #endif
  4173. ;
  4174. return 0;
  4175. }
  4176. _ACEOF
  4177. if ac_fn_c_try_compile "$LINENO"; then :
  4178. ac_cv_c_const=yes
  4179. else
  4180. ac_cv_c_const=no
  4181. fi
  4182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4183. fi
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4185. $as_echo "$ac_cv_c_const" >&6; }
  4186. if test $ac_cv_c_const = no; then
  4187. $as_echo "#define const /**/" >>confdefs.h
  4188. fi
  4189. # Check whether --enable-motif was given.
  4190. if test "${enable_motif+set}" = set; then :
  4191. enableval=$enable_motif;
  4192. fi
  4193. if test "$enable_motif" != "no"; then
  4194. saved_cflags="$CFLAGS"
  4195. saved_libs="$LIBS"
  4196. CFLAGS="$CFLAGS $X_CFLAGS"
  4197. LIBS="$LIBS $X_LIBS $X_PRE_LIBS"
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmGetPixmap in -lXm" >&5
  4199. $as_echo_n "checking for XmGetPixmap in -lXm... " >&6; }
  4200. if ${ac_cv_lib_Xm_XmGetPixmap+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. ac_check_lib_save_LIBS=$LIBS
  4204. LIBS="-lXm -lXt -lX11 $LIBS"
  4205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4206. /* end confdefs.h. */
  4207. /* Override any GCC internal prototype to avoid an error.
  4208. Use char because int might match the return type of a GCC
  4209. builtin and then its argument prototype would still apply. */
  4210. #ifdef __cplusplus
  4211. extern "C"
  4212. #endif
  4213. char XmGetPixmap ();
  4214. int
  4215. main ()
  4216. {
  4217. return XmGetPixmap ();
  4218. ;
  4219. return 0;
  4220. }
  4221. _ACEOF
  4222. if ac_fn_c_try_link "$LINENO"; then :
  4223. ac_cv_lib_Xm_XmGetPixmap=yes
  4224. else
  4225. ac_cv_lib_Xm_XmGetPixmap=no
  4226. fi
  4227. rm -f core conftest.err conftest.$ac_objext \
  4228. conftest$ac_exeext conftest.$ac_ext
  4229. LIBS=$ac_check_lib_save_LIBS
  4230. fi
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_XmGetPixmap" >&5
  4232. $as_echo "$ac_cv_lib_Xm_XmGetPixmap" >&6; }
  4233. if test "x$ac_cv_lib_Xm_XmGetPixmap" = xyes; then :
  4234. motif=yes
  4235. fi
  4236. if test "X$motif" = X"yes"; then
  4237. $as_echo "#define USE_MOTIF 1" >>confdefs.h
  4238. WIDGET_LIBS="$WIDGET_LIBS -lXm"
  4239. if test "X$libxp" = X"yes"; then
  4240. WIDGET_LIBS="$WIDGET_LIBS -lXp -lXext"
  4241. fi
  4242. WIDGET_OBJS="$WIDGET_OBJS x11-motif.o"
  4243. fi
  4244. CFLAGS=$saved_cflags
  4245. LIBS=$saved_libs
  4246. fi
  4247. # Check whether --enable-athena was given.
  4248. if test "${enable_athena+set}" = set; then :
  4249. enableval=$enable_athena;
  4250. fi
  4251. if test "$enable_athena" != "no"; then
  4252. saved_cflags="$CFLAGS"
  4253. saved_libs="$LIBS"
  4254. CFLAGS="$CFLAGS $X_CFLAGS"
  4255. LIBS="$LIBS $X_LIBS $X_PRE_LIBS"
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawInitializeWidgetSet in -lXaw3d" >&5
  4257. $as_echo_n "checking for XawInitializeWidgetSet in -lXaw3d... " >&6; }
  4258. if ${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+:} false; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. ac_check_lib_save_LIBS=$LIBS
  4262. LIBS="-lXaw3d -lXmu -lXt -lX11 $LIBS"
  4263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4264. /* end confdefs.h. */
  4265. /* Override any GCC internal prototype to avoid an error.
  4266. Use char because int might match the return type of a GCC
  4267. builtin and then its argument prototype would still apply. */
  4268. #ifdef __cplusplus
  4269. extern "C"
  4270. #endif
  4271. char XawInitializeWidgetSet ();
  4272. int
  4273. main ()
  4274. {
  4275. return XawInitializeWidgetSet ();
  4276. ;
  4277. return 0;
  4278. }
  4279. _ACEOF
  4280. if ac_fn_c_try_link "$LINENO"; then :
  4281. ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
  4282. else
  4283. ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
  4284. fi
  4285. rm -f core conftest.err conftest.$ac_objext \
  4286. conftest$ac_exeext conftest.$ac_ext
  4287. LIBS=$ac_check_lib_save_LIBS
  4288. fi
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
  4290. $as_echo "$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6; }
  4291. if test "x$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" = xyes; then :
  4292. athena=yes athena3d=yes
  4293. fi
  4294. if test "X$athena" != X"yes"; then
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawInitializeWidgetSet in -lXaw" >&5
  4296. $as_echo_n "checking for XawInitializeWidgetSet in -lXaw... " >&6; }
  4297. if ${ac_cv_lib_Xaw_XawInitializeWidgetSet+:} false; then :
  4298. $as_echo_n "(cached) " >&6
  4299. else
  4300. ac_check_lib_save_LIBS=$LIBS
  4301. LIBS="-lXaw -lXmu -lXt -lX11 $LIBS"
  4302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4303. /* end confdefs.h. */
  4304. /* Override any GCC internal prototype to avoid an error.
  4305. Use char because int might match the return type of a GCC
  4306. builtin and then its argument prototype would still apply. */
  4307. #ifdef __cplusplus
  4308. extern "C"
  4309. #endif
  4310. char XawInitializeWidgetSet ();
  4311. int
  4312. main ()
  4313. {
  4314. return XawInitializeWidgetSet ();
  4315. ;
  4316. return 0;
  4317. }
  4318. _ACEOF
  4319. if ac_fn_c_try_link "$LINENO"; then :
  4320. ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
  4321. else
  4322. ac_cv_lib_Xaw_XawInitializeWidgetSet=no
  4323. fi
  4324. rm -f core conftest.err conftest.$ac_objext \
  4325. conftest$ac_exeext conftest.$ac_ext
  4326. LIBS=$ac_check_lib_save_LIBS
  4327. fi
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
  4329. $as_echo "$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6; }
  4330. if test "x$ac_cv_lib_Xaw_XawInitializeWidgetSet" = xyes; then :
  4331. athena=yes
  4332. fi
  4333. fi
  4334. if test "X$athena" = X"yes"; then
  4335. $as_echo "#define USE_ATHENA 1" >>confdefs.h
  4336. if test "X$athena3d" = X"yes"; then
  4337. xawlib=-lXaw3d
  4338. else
  4339. xawlib=-lXaw
  4340. fi
  4341. WIDGET_LIBS="$WIDGET_LIBS $xawlib -lXmu"
  4342. WIDGET_OBJS="$WIDGET_OBJS x11-athena.o"
  4343. fi
  4344. CFLAGS=$saved_cflags
  4345. LIBS=$saved_libs
  4346. fi
  4347. if test "X$motif" = X"yes" -o "X$athena" = X"yes"; then
  4348. WIDGET_LIBS="$WIDGET_LIBS -lXt -lXpm -lX11"
  4349. WIDGET_OBJS="$WIDGET_OBJS x11.o"
  4350. fi
  4351. # Check whether --enable-gtk was given.
  4352. if test "${enable_gtk+set}" = set; then :
  4353. enableval=$enable_gtk;
  4354. fi
  4355. if test "$enable_gtk" != "no"; then
  4356. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  4357. if test -n "$ac_tool_prefix"; then
  4358. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  4359. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4361. $as_echo_n "checking for $ac_word... " >&6; }
  4362. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  4363. $as_echo_n "(cached) " >&6
  4364. else
  4365. case $PKG_CONFIG in
  4366. [\\/]* | ?:[\\/]*)
  4367. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  4368. ;;
  4369. *)
  4370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4371. for as_dir in $PATH
  4372. do
  4373. IFS=$as_save_IFS
  4374. test -z "$as_dir" && as_dir=.
  4375. for ac_exec_ext in '' $ac_executable_extensions; do
  4376. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4377. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4379. break 2
  4380. fi
  4381. done
  4382. done
  4383. IFS=$as_save_IFS
  4384. ;;
  4385. esac
  4386. fi
  4387. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  4388. if test -n "$PKG_CONFIG"; then
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  4390. $as_echo "$PKG_CONFIG" >&6; }
  4391. else
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4393. $as_echo "no" >&6; }
  4394. fi
  4395. fi
  4396. if test -z "$ac_cv_path_PKG_CONFIG"; then
  4397. ac_pt_PKG_CONFIG=$PKG_CONFIG
  4398. # Extract the first word of "pkg-config", so it can be a program name with args.
  4399. set dummy pkg-config; ac_word=$2
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4401. $as_echo_n "checking for $ac_word... " >&6; }
  4402. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  4403. $as_echo_n "(cached) " >&6
  4404. else
  4405. case $ac_pt_PKG_CONFIG in
  4406. [\\/]* | ?:[\\/]*)
  4407. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  4408. ;;
  4409. *)
  4410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4411. for as_dir in $PATH
  4412. do
  4413. IFS=$as_save_IFS
  4414. test -z "$as_dir" && as_dir=.
  4415. for ac_exec_ext in '' $ac_executable_extensions; do
  4416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4417. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4419. break 2
  4420. fi
  4421. done
  4422. done
  4423. IFS=$as_save_IFS
  4424. ;;
  4425. esac
  4426. fi
  4427. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  4428. if test -n "$ac_pt_PKG_CONFIG"; then
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  4430. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  4431. else
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4433. $as_echo "no" >&6; }
  4434. fi
  4435. if test "x$ac_pt_PKG_CONFIG" = x; then
  4436. PKG_CONFIG=""
  4437. else
  4438. case $cross_compiling:$ac_tool_warned in
  4439. yes:)
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4441. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4442. ac_tool_warned=yes ;;
  4443. esac
  4444. PKG_CONFIG=$ac_pt_PKG_CONFIG
  4445. fi
  4446. else
  4447. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  4448. fi
  4449. fi
  4450. if test -n "$PKG_CONFIG"; then
  4451. _pkg_min_version=0.9.0
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  4453. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  4454. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4456. $as_echo "yes" >&6; }
  4457. else
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4459. $as_echo "no" >&6; }
  4460. PKG_CONFIG=""
  4461. fi
  4462. fi
  4463. pkg_failed=no
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
  4465. $as_echo_n "checking for GTK... " >&6; }
  4466. if test -n "$GTK_CFLAGS"; then
  4467. pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  4468. elif test -n "$PKG_CONFIG"; then
  4469. if test -n "$PKG_CONFIG" && \
  4470. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  4471. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  4472. ac_status=$?
  4473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4474. test $ac_status = 0; }; then
  4475. pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  4476. else
  4477. pkg_failed=yes
  4478. fi
  4479. else
  4480. pkg_failed=untried
  4481. fi
  4482. if test -n "$GTK_LIBS"; then
  4483. pkg_cv_GTK_LIBS="$GTK_LIBS"
  4484. elif test -n "$PKG_CONFIG"; then
  4485. if test -n "$PKG_CONFIG" && \
  4486. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  4487. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  4488. ac_status=$?
  4489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4490. test $ac_status = 0; }; then
  4491. pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  4492. else
  4493. pkg_failed=yes
  4494. fi
  4495. else
  4496. pkg_failed=untried
  4497. fi
  4498. if test $pkg_failed = yes; then
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4500. $as_echo "no" >&6; }
  4501. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  4502. _pkg_short_errors_supported=yes
  4503. else
  4504. _pkg_short_errors_supported=no
  4505. fi
  4506. if test $_pkg_short_errors_supported = yes; then
  4507. GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
  4508. else
  4509. GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
  4510. fi
  4511. # Put the nasty error message in config.log where it belongs
  4512. echo "$GTK_PKG_ERRORS" >&5
  4513. as_fn_error $? "Package requirements (gtk+-2.0) were not met:
  4514. $GTK_PKG_ERRORS
  4515. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  4516. installed software in a non-standard prefix.
  4517. Alternatively, you may set the environment variables GTK_CFLAGS
  4518. and GTK_LIBS to avoid the need to call pkg-config.
  4519. See the pkg-config man page for more details." "$LINENO" 5
  4520. elif test $pkg_failed = untried; then
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4522. $as_echo "no" >&6; }
  4523. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4524. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4525. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  4526. is in your PATH or set the PKG_CONFIG environment variable to the full
  4527. path to pkg-config.
  4528. Alternatively, you may set the environment variables GTK_CFLAGS
  4529. and GTK_LIBS to avoid the need to call pkg-config.
  4530. See the pkg-config man page for more details.
  4531. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  4532. See \`config.log' for more details" "$LINENO" 5; }
  4533. else
  4534. GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  4535. GTK_LIBS=$pkg_cv_GTK_LIBS
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4537. $as_echo "yes" >&6; }
  4538. fi
  4539. if test $pkg_failed = no; then
  4540. $as_echo "#define USE_GTK 1" >>confdefs.h
  4541. WIDGET_LIBS="$WIDGET_LIBS $GTK_LIBS"
  4542. WIDGET_OBJS="$WIDGET_OBJS gtk.o"
  4543. fi
  4544. fi
  4545. ac_config_files="$ac_config_files Makefile"
  4546. cat >confcache <<\_ACEOF
  4547. # This file is a shell script that caches the results of configure
  4548. # tests run on this system so they can be shared between configure
  4549. # scripts and configure runs, see configure's option --config-cache.
  4550. # It is not useful on other systems. If it contains results you don't
  4551. # want to keep, you may remove or edit it.
  4552. #
  4553. # config.status only pays attention to the cache file if you give it
  4554. # the --recheck option to rerun configure.
  4555. #
  4556. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4557. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4558. # following values.
  4559. _ACEOF
  4560. # The following way of writing the cache mishandles newlines in values,
  4561. # but we know of no workaround that is simple, portable, and efficient.
  4562. # So, we kill variables containing newlines.
  4563. # Ultrix sh set writes to stderr and can't be redirected directly,
  4564. # and sets the high bit in the cache file unless we assign to the vars.
  4565. (
  4566. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4567. eval ac_val=\$$ac_var
  4568. case $ac_val in #(
  4569. *${as_nl}*)
  4570. case $ac_var in #(
  4571. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4572. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4573. esac
  4574. case $ac_var in #(
  4575. _ | IFS | as_nl) ;; #(
  4576. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4577. *) { eval $ac_var=; unset $ac_var;} ;;
  4578. esac ;;
  4579. esac
  4580. done
  4581. (set) 2>&1 |
  4582. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4583. *${as_nl}ac_space=\ *)
  4584. # `set' does not quote correctly, so add quotes: double-quote
  4585. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4586. sed -n \
  4587. "s/'/'\\\\''/g;
  4588. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4589. ;; #(
  4590. *)
  4591. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4592. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4593. ;;
  4594. esac |
  4595. sort
  4596. ) |
  4597. sed '
  4598. /^ac_cv_env_/b end
  4599. t clear
  4600. :clear
  4601. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4602. t end
  4603. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4604. :end' >>confcache
  4605. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4606. if test -w "$cache_file"; then
  4607. if test "x$cache_file" != "x/dev/null"; then
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4609. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4610. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4611. cat confcache >"$cache_file"
  4612. else
  4613. case $cache_file in #(
  4614. */* | ?:*)
  4615. mv -f confcache "$cache_file"$$ &&
  4616. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4617. *)
  4618. mv -f confcache "$cache_file" ;;
  4619. esac
  4620. fi
  4621. fi
  4622. else
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4624. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4625. fi
  4626. fi
  4627. rm -f confcache
  4628. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4629. # Let make expand exec_prefix.
  4630. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4631. DEFS=-DHAVE_CONFIG_H
  4632. ac_libobjs=
  4633. ac_ltlibobjs=
  4634. U=
  4635. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4636. # 1. Remove the extension, and $U if already installed.
  4637. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4638. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  4639. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4640. # will be set to the directory where LIBOBJS objects are built.
  4641. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4642. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4643. done
  4644. LIBOBJS=$ac_libobjs
  4645. LTLIBOBJS=$ac_ltlibobjs
  4646. : "${CONFIG_STATUS=./config.status}"
  4647. ac_write_fail=0
  4648. ac_clean_files_save=$ac_clean_files
  4649. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4651. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4652. as_write_fail=0
  4653. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4654. #! $SHELL
  4655. # Generated by $as_me.
  4656. # Run this file to recreate the current configuration.
  4657. # Compiler output produced by configure, useful for debugging
  4658. # configure, is in config.log if it exists.
  4659. debug=false
  4660. ac_cs_recheck=false
  4661. ac_cs_silent=false
  4662. SHELL=\${CONFIG_SHELL-$SHELL}
  4663. export SHELL
  4664. _ASEOF
  4665. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4666. ## -------------------- ##
  4667. ## M4sh Initialization. ##
  4668. ## -------------------- ##
  4669. # Be more Bourne compatible
  4670. DUALCASE=1; export DUALCASE # for MKS sh
  4671. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4672. emulate sh
  4673. NULLCMD=:
  4674. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4675. # is contrary to our usage. Disable this feature.
  4676. alias -g '${1+"$@"}'='"$@"'
  4677. setopt NO_GLOB_SUBST
  4678. else
  4679. case `(set -o) 2>/dev/null` in #(
  4680. *posix*) :
  4681. set -o posix ;; #(
  4682. *) :
  4683. ;;
  4684. esac
  4685. fi
  4686. as_nl='
  4687. '
  4688. export as_nl
  4689. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4690. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4691. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4692. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4693. # Prefer a ksh shell builtin over an external printf program on Solaris,
  4694. # but without wasting forks for bash or zsh.
  4695. if test -z "$BASH_VERSION$ZSH_VERSION" \
  4696. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4697. as_echo='print -r --'
  4698. as_echo_n='print -rn --'
  4699. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4700. as_echo='printf %s\n'
  4701. as_echo_n='printf %s'
  4702. else
  4703. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4704. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4705. as_echo_n='/usr/ucb/echo -n'
  4706. else
  4707. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4708. as_echo_n_body='eval
  4709. arg=$1;
  4710. case $arg in #(
  4711. *"$as_nl"*)
  4712. expr "X$arg" : "X\\(.*\\)$as_nl";
  4713. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4714. esac;
  4715. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4716. '
  4717. export as_echo_n_body
  4718. as_echo_n='sh -c $as_echo_n_body as_echo'
  4719. fi
  4720. export as_echo_body
  4721. as_echo='sh -c $as_echo_body as_echo'
  4722. fi
  4723. # The user is always right.
  4724. if test "${PATH_SEPARATOR+set}" != set; then
  4725. PATH_SEPARATOR=:
  4726. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4727. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4728. PATH_SEPARATOR=';'
  4729. }
  4730. fi
  4731. # IFS
  4732. # We need space, tab and new line, in precisely that order. Quoting is
  4733. # there to prevent editors from complaining about space-tab.
  4734. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4735. # splitting by setting IFS to empty value.)
  4736. IFS=" "" $as_nl"
  4737. # Find who we are. Look in the path if we contain no directory separator.
  4738. as_myself=
  4739. case $0 in #((
  4740. *[\\/]* ) as_myself=$0 ;;
  4741. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4742. for as_dir in $PATH
  4743. do
  4744. IFS=$as_save_IFS
  4745. test -z "$as_dir" && as_dir=.
  4746. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4747. done
  4748. IFS=$as_save_IFS
  4749. ;;
  4750. esac
  4751. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4752. # in which case we are not to be found in the path.
  4753. if test "x$as_myself" = x; then
  4754. as_myself=$0
  4755. fi
  4756. if test ! -f "$as_myself"; then
  4757. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4758. exit 1
  4759. fi
  4760. # Unset variables that we do not need and which cause bugs (e.g. in
  4761. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4762. # suppresses any "Segmentation fault" message there. '((' could
  4763. # trigger a bug in pdksh 5.2.14.
  4764. for as_var in BASH_ENV ENV MAIL MAILPATH
  4765. do eval test x\${$as_var+set} = xset \
  4766. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4767. done
  4768. PS1='$ '
  4769. PS2='> '
  4770. PS4='+ '
  4771. # NLS nuisances.
  4772. LC_ALL=C
  4773. export LC_ALL
  4774. LANGUAGE=C
  4775. export LANGUAGE
  4776. # CDPATH.
  4777. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4778. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  4779. # ----------------------------------------
  4780. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4781. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4782. # script with STATUS, using 1 if that was 0.
  4783. as_fn_error ()
  4784. {
  4785. as_status=$1; test $as_status -eq 0 && as_status=1
  4786. if test "$4"; then
  4787. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4788. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  4789. fi
  4790. $as_echo "$as_me: error: $2" >&2
  4791. as_fn_exit $as_status
  4792. } # as_fn_error
  4793. # as_fn_set_status STATUS
  4794. # -----------------------
  4795. # Set $? to STATUS, without forking.
  4796. as_fn_set_status ()
  4797. {
  4798. return $1
  4799. } # as_fn_set_status
  4800. # as_fn_exit STATUS
  4801. # -----------------
  4802. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4803. as_fn_exit ()
  4804. {
  4805. set +e
  4806. as_fn_set_status $1
  4807. exit $1
  4808. } # as_fn_exit
  4809. # as_fn_unset VAR
  4810. # ---------------
  4811. # Portably unset VAR.
  4812. as_fn_unset ()
  4813. {
  4814. { eval $1=; unset $1;}
  4815. }
  4816. as_unset=as_fn_unset
  4817. # as_fn_append VAR VALUE
  4818. # ----------------------
  4819. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4820. # advantage of any shell optimizations that allow amortized linear growth over
  4821. # repeated appends, instead of the typical quadratic growth present in naive
  4822. # implementations.
  4823. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4824. eval 'as_fn_append ()
  4825. {
  4826. eval $1+=\$2
  4827. }'
  4828. else
  4829. as_fn_append ()
  4830. {
  4831. eval $1=\$$1\$2
  4832. }
  4833. fi # as_fn_append
  4834. # as_fn_arith ARG...
  4835. # ------------------
  4836. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4837. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4838. # must be portable across $(()) and expr.
  4839. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4840. eval 'as_fn_arith ()
  4841. {
  4842. as_val=$(( $* ))
  4843. }'
  4844. else
  4845. as_fn_arith ()
  4846. {
  4847. as_val=`expr "$@" || test $? -eq 1`
  4848. }
  4849. fi # as_fn_arith
  4850. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4851. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4852. as_expr=expr
  4853. else
  4854. as_expr=false
  4855. fi
  4856. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4857. as_basename=basename
  4858. else
  4859. as_basename=false
  4860. fi
  4861. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4862. as_dirname=dirname
  4863. else
  4864. as_dirname=false
  4865. fi
  4866. as_me=`$as_basename -- "$0" ||
  4867. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4868. X"$0" : 'X\(//\)$' \| \
  4869. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4870. $as_echo X/"$0" |
  4871. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4872. s//\1/
  4873. q
  4874. }
  4875. /^X\/\(\/\/\)$/{
  4876. s//\1/
  4877. q
  4878. }
  4879. /^X\/\(\/\).*/{
  4880. s//\1/
  4881. q
  4882. }
  4883. s/.*/./; q'`
  4884. # Avoid depending upon Character Ranges.
  4885. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4886. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4887. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4888. as_cr_digits='0123456789'
  4889. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4890. ECHO_C= ECHO_N= ECHO_T=
  4891. case `echo -n x` in #(((((
  4892. -n*)
  4893. case `echo 'xy\c'` in
  4894. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4895. xy) ECHO_C='\c';;
  4896. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4897. ECHO_T=' ';;
  4898. esac;;
  4899. *)
  4900. ECHO_N='-n';;
  4901. esac
  4902. rm -f conf$$ conf$$.exe conf$$.file
  4903. if test -d conf$$.dir; then
  4904. rm -f conf$$.dir/conf$$.file
  4905. else
  4906. rm -f conf$$.dir
  4907. mkdir conf$$.dir 2>/dev/null
  4908. fi
  4909. if (echo >conf$$.file) 2>/dev/null; then
  4910. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4911. as_ln_s='ln -s'
  4912. # ... but there are two gotchas:
  4913. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4914. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4915. # In both cases, we have to default to `cp -pR'.
  4916. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4917. as_ln_s='cp -pR'
  4918. elif ln conf$$.file conf$$ 2>/dev/null; then
  4919. as_ln_s=ln
  4920. else
  4921. as_ln_s='cp -pR'
  4922. fi
  4923. else
  4924. as_ln_s='cp -pR'
  4925. fi
  4926. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4927. rmdir conf$$.dir 2>/dev/null
  4928. # as_fn_mkdir_p
  4929. # -------------
  4930. # Create "$as_dir" as a directory, including parents if necessary.
  4931. as_fn_mkdir_p ()
  4932. {
  4933. case $as_dir in #(
  4934. -*) as_dir=./$as_dir;;
  4935. esac
  4936. test -d "$as_dir" || eval $as_mkdir_p || {
  4937. as_dirs=
  4938. while :; do
  4939. case $as_dir in #(
  4940. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4941. *) as_qdir=$as_dir;;
  4942. esac
  4943. as_dirs="'$as_qdir' $as_dirs"
  4944. as_dir=`$as_dirname -- "$as_dir" ||
  4945. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4946. X"$as_dir" : 'X\(//\)[^/]' \| \
  4947. X"$as_dir" : 'X\(//\)$' \| \
  4948. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4949. $as_echo X"$as_dir" |
  4950. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4951. s//\1/
  4952. q
  4953. }
  4954. /^X\(\/\/\)[^/].*/{
  4955. s//\1/
  4956. q
  4957. }
  4958. /^X\(\/\/\)$/{
  4959. s//\1/
  4960. q
  4961. }
  4962. /^X\(\/\).*/{
  4963. s//\1/
  4964. q
  4965. }
  4966. s/.*/./; q'`
  4967. test -d "$as_dir" && break
  4968. done
  4969. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4970. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4971. } # as_fn_mkdir_p
  4972. if mkdir -p . 2>/dev/null; then
  4973. as_mkdir_p='mkdir -p "$as_dir"'
  4974. else
  4975. test -d ./-p && rmdir ./-p
  4976. as_mkdir_p=false
  4977. fi
  4978. # as_fn_executable_p FILE
  4979. # -----------------------
  4980. # Test if FILE is an executable regular file.
  4981. as_fn_executable_p ()
  4982. {
  4983. test -f "$1" && test -x "$1"
  4984. } # as_fn_executable_p
  4985. as_test_x='test -x'
  4986. as_executable_p=as_fn_executable_p
  4987. # Sed expression to map a string onto a valid CPP name.
  4988. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4989. # Sed expression to map a string onto a valid variable name.
  4990. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4991. exec 6>&1
  4992. ## ----------------------------------- ##
  4993. ## Main body of $CONFIG_STATUS script. ##
  4994. ## ----------------------------------- ##
  4995. _ASEOF
  4996. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4997. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4998. # Save the log message, to keep $0 and so on meaningful, and to
  4999. # report actual input values of CONFIG_FILES etc. instead of their
  5000. # values after options handling.
  5001. ac_log="
  5002. This file was extended by $as_me, which was
  5003. generated by GNU Autoconf 2.69. Invocation command line was
  5004. CONFIG_FILES = $CONFIG_FILES
  5005. CONFIG_HEADERS = $CONFIG_HEADERS
  5006. CONFIG_LINKS = $CONFIG_LINKS
  5007. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5008. $ $0 $@
  5009. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5010. "
  5011. _ACEOF
  5012. case $ac_config_files in *"
  5013. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  5014. esac
  5015. case $ac_config_headers in *"
  5016. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  5017. esac
  5018. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5019. # Files that config.status was made for.
  5020. config_files="$ac_config_files"
  5021. config_headers="$ac_config_headers"
  5022. _ACEOF
  5023. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5024. ac_cs_usage="\
  5025. \`$as_me' instantiates files and other configuration actions
  5026. from templates according to the current configuration. Unless the files
  5027. and actions are specified as TAGs, all are instantiated by default.
  5028. Usage: $0 [OPTION]... [TAG]...
  5029. -h, --help print this help, then exit
  5030. -V, --version print version number and configuration settings, then exit
  5031. --config print configuration, then exit
  5032. -q, --quiet, --silent
  5033. do not print progress messages
  5034. -d, --debug don't remove temporary files
  5035. --recheck update $as_me by reconfiguring in the same conditions
  5036. --file=FILE[:TEMPLATE]
  5037. instantiate the configuration file FILE
  5038. --header=FILE[:TEMPLATE]
  5039. instantiate the configuration header FILE
  5040. Configuration files:
  5041. $config_files
  5042. Configuration headers:
  5043. $config_headers
  5044. Report bugs to the package provider."
  5045. _ACEOF
  5046. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5047. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  5048. ac_cs_version="\\
  5049. config.status
  5050. configured by $0, generated by GNU Autoconf 2.69,
  5051. with options \\"\$ac_cs_config\\"
  5052. Copyright (C) Free Software Foundation, Inc.
  5053. This config.status script is free software; the Free Software Foundation
  5054. gives unlimited permission to copy, distribute and modify it."
  5055. ac_pwd='$ac_pwd'
  5056. srcdir='$srcdir'
  5057. INSTALL='$INSTALL'
  5058. test -n "\$AWK" || AWK=awk
  5059. _ACEOF
  5060. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5061. # The default lists apply if the user does not specify any file.
  5062. ac_need_defaults=:
  5063. while test $# != 0
  5064. do
  5065. case $1 in
  5066. --*=?*)
  5067. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5068. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5069. ac_shift=:
  5070. ;;
  5071. --*=)
  5072. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5073. ac_optarg=
  5074. ac_shift=:
  5075. ;;
  5076. *)
  5077. ac_option=$1
  5078. ac_optarg=$2
  5079. ac_shift=shift
  5080. ;;
  5081. esac
  5082. case $ac_option in
  5083. # Handling of the options.
  5084. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5085. ac_cs_recheck=: ;;
  5086. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5087. $as_echo "$ac_cs_version"; exit ;;
  5088. --config | --confi | --conf | --con | --co | --c )
  5089. $as_echo "$ac_cs_config"; exit ;;
  5090. --debug | --debu | --deb | --de | --d | -d )
  5091. debug=: ;;
  5092. --file | --fil | --fi | --f )
  5093. $ac_shift
  5094. case $ac_optarg in
  5095. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5096. '') as_fn_error $? "missing file argument" ;;
  5097. esac
  5098. as_fn_append CONFIG_FILES " '$ac_optarg'"
  5099. ac_need_defaults=false;;
  5100. --header | --heade | --head | --hea )
  5101. $ac_shift
  5102. case $ac_optarg in
  5103. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5104. esac
  5105. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  5106. ac_need_defaults=false;;
  5107. --he | --h)
  5108. # Conflict between --help and --header
  5109. as_fn_error $? "ambiguous option: \`$1'
  5110. Try \`$0 --help' for more information.";;
  5111. --help | --hel | -h )
  5112. $as_echo "$ac_cs_usage"; exit ;;
  5113. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5114. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5115. ac_cs_silent=: ;;
  5116. # This is an error.
  5117. -*) as_fn_error $? "unrecognized option: \`$1'
  5118. Try \`$0 --help' for more information." ;;
  5119. *) as_fn_append ac_config_targets " $1"
  5120. ac_need_defaults=false ;;
  5121. esac
  5122. shift
  5123. done
  5124. ac_configure_extra_args=
  5125. if $ac_cs_silent; then
  5126. exec 6>/dev/null
  5127. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5128. fi
  5129. _ACEOF
  5130. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5131. if \$ac_cs_recheck; then
  5132. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5133. shift
  5134. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  5135. CONFIG_SHELL='$SHELL'
  5136. export CONFIG_SHELL
  5137. exec "\$@"
  5138. fi
  5139. _ACEOF
  5140. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5141. exec 5>>config.log
  5142. {
  5143. echo
  5144. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5145. ## Running $as_me. ##
  5146. _ASBOX
  5147. $as_echo "$ac_log"
  5148. } >&5
  5149. _ACEOF
  5150. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5151. _ACEOF
  5152. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5153. # Handling of arguments.
  5154. for ac_config_target in $ac_config_targets
  5155. do
  5156. case $ac_config_target in
  5157. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  5158. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5159. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5160. esac
  5161. done
  5162. # If the user did not use the arguments to specify the items to instantiate,
  5163. # then the envvar interface is used. Set only those that are not.
  5164. # We use the long form for the default assignment because of an extremely
  5165. # bizarre bug on SunOS 4.1.3.
  5166. if $ac_need_defaults; then
  5167. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5168. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5169. fi
  5170. # Have a temporary directory for convenience. Make it in the build tree
  5171. # simply because there is no reason against having it here, and in addition,
  5172. # creating and moving files from /tmp can sometimes cause problems.
  5173. # Hook for its removal unless debugging.
  5174. # Note that there is a small window in which the directory will not be cleaned:
  5175. # after its creation but before its name has been assigned to `$tmp'.
  5176. $debug ||
  5177. {
  5178. tmp= ac_tmp=
  5179. trap 'exit_status=$?
  5180. : "${ac_tmp:=$tmp}"
  5181. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  5182. ' 0
  5183. trap 'as_fn_exit 1' 1 2 13 15
  5184. }
  5185. # Create a (secure) tmp directory for tmp files.
  5186. {
  5187. tmp=`(umask 077 && mktemp -d "./confXXXXXX")` &&
  5188. test -n "$tmp" && test -d "$tmp"
  5189. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  5190. ac_tmp=$tmp
  5191. # Set up the scripts for CONFIG_FILES section.
  5192. # No need to generate them if there are no CONFIG_FILES.
  5193. # This happens for instance with `./config.status config.h'.
  5194. if test -n "$CONFIG_FILES"; then
  5195. ac_cr=`echo X | tr X '\015'`
  5196. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5197. # But we know of no other shell where ac_cr would be empty at this
  5198. # point, so we can use a bashism as a fallback.
  5199. if test "x$ac_cr" = x; then
  5200. eval ac_cr=\$\'\\r\'
  5201. fi
  5202. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5203. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5204. ac_cs_awk_cr='\\r'
  5205. else
  5206. ac_cs_awk_cr=$ac_cr
  5207. fi
  5208. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  5209. _ACEOF
  5210. {
  5211. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5212. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5213. echo "_ACEOF"
  5214. } >conf$$subs.sh ||
  5215. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5216. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  5217. ac_delim='%!_!# '
  5218. for ac_last_try in false false false false false :; do
  5219. . ./conf$$subs.sh ||
  5220. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5221. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5222. if test $ac_delim_n = $ac_delim_num; then
  5223. break
  5224. elif $ac_last_try; then
  5225. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5226. else
  5227. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5228. fi
  5229. done
  5230. rm -f conf$$subs.sh
  5231. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5232. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  5233. _ACEOF
  5234. sed -n '
  5235. h
  5236. s/^/S["/; s/!.*/"]=/
  5237. p
  5238. g
  5239. s/^[^!]*!//
  5240. :repl
  5241. t repl
  5242. s/'"$ac_delim"'$//
  5243. t delim
  5244. :nl
  5245. h
  5246. s/\(.\{148\}\)..*/\1/
  5247. t more1
  5248. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5249. p
  5250. n
  5251. b repl
  5252. :more1
  5253. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5254. p
  5255. g
  5256. s/.\{148\}//
  5257. t nl
  5258. :delim
  5259. h
  5260. s/\(.\{148\}\)..*/\1/
  5261. t more2
  5262. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5263. p
  5264. b
  5265. :more2
  5266. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5267. p
  5268. g
  5269. s/.\{148\}//
  5270. t delim
  5271. ' <conf$$subs.awk | sed '
  5272. /^[^""]/{
  5273. N
  5274. s/\n//
  5275. }
  5276. ' >>$CONFIG_STATUS || ac_write_fail=1
  5277. rm -f conf$$subs.awk
  5278. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5279. _ACAWK
  5280. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  5281. for (key in S) S_is_set[key] = 1
  5282. FS = ""
  5283. }
  5284. {
  5285. line = $ 0
  5286. nfields = split(line, field, "@")
  5287. substed = 0
  5288. len = length(field[1])
  5289. for (i = 2; i < nfields; i++) {
  5290. key = field[i]
  5291. keylen = length(key)
  5292. if (S_is_set[key]) {
  5293. value = S[key]
  5294. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5295. len += length(value) + length(field[++i])
  5296. substed = 1
  5297. } else
  5298. len += 1 + keylen
  5299. }
  5300. print line
  5301. }
  5302. _ACAWK
  5303. _ACEOF
  5304. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5305. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5306. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5307. else
  5308. cat
  5309. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  5310. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  5311. _ACEOF
  5312. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  5313. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5314. # trailing colons and then remove the whole line if VPATH becomes empty
  5315. # (actually we leave an empty line to preserve line numbers).
  5316. if test "x$srcdir" = x.; then
  5317. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5318. h
  5319. s///
  5320. s/^/:/
  5321. s/[ ]*$/:/
  5322. s/:\$(srcdir):/:/g
  5323. s/:\${srcdir}:/:/g
  5324. s/:@srcdir@:/:/g
  5325. s/^:*//
  5326. s/:*$//
  5327. x
  5328. s/\(=[ ]*\).*/\1/
  5329. G
  5330. s/\n//
  5331. s/^[^=]*=[ ]*$//
  5332. }'
  5333. fi
  5334. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5335. fi # test -n "$CONFIG_FILES"
  5336. # Set up the scripts for CONFIG_HEADERS section.
  5337. # No need to generate them if there are no CONFIG_HEADERS.
  5338. # This happens for instance with `./config.status Makefile'.
  5339. if test -n "$CONFIG_HEADERS"; then
  5340. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  5341. BEGIN {
  5342. _ACEOF
  5343. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5344. # here-document in config.status, that substitutes the proper values into
  5345. # config.h.in to produce config.h.
  5346. # Create a delimiter string that does not exist in confdefs.h, to ease
  5347. # handling of long lines.
  5348. ac_delim='%!_!# '
  5349. for ac_last_try in false false :; do
  5350. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  5351. if test -z "$ac_tt"; then
  5352. break
  5353. elif $ac_last_try; then
  5354. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  5355. else
  5356. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5357. fi
  5358. done
  5359. # For the awk script, D is an array of macro values keyed by name,
  5360. # likewise P contains macro parameters if any. Preserve backslash
  5361. # newline sequences.
  5362. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5363. sed -n '
  5364. s/.\{148\}/&'"$ac_delim"'/g
  5365. t rset
  5366. :rset
  5367. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5368. t def
  5369. d
  5370. :def
  5371. s/\\$//
  5372. t bsnl
  5373. s/["\\]/\\&/g
  5374. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5375. D["\1"]=" \3"/p
  5376. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5377. d
  5378. :bsnl
  5379. s/["\\]/\\&/g
  5380. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5381. D["\1"]=" \3\\\\\\n"\\/p
  5382. t cont
  5383. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5384. t cont
  5385. d
  5386. :cont
  5387. n
  5388. s/.\{148\}/&'"$ac_delim"'/g
  5389. t clear
  5390. :clear
  5391. s/\\$//
  5392. t bsnlc
  5393. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5394. d
  5395. :bsnlc
  5396. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5397. b cont
  5398. ' <confdefs.h | sed '
  5399. s/'"$ac_delim"'/"\\\
  5400. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  5401. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5402. for (key in D) D_is_set[key] = 1
  5403. FS = ""
  5404. }
  5405. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  5406. line = \$ 0
  5407. split(line, arg, " ")
  5408. if (arg[1] == "#") {
  5409. defundef = arg[2]
  5410. mac1 = arg[3]
  5411. } else {
  5412. defundef = substr(arg[1], 2)
  5413. mac1 = arg[2]
  5414. }
  5415. split(mac1, mac2, "(") #)
  5416. macro = mac2[1]
  5417. prefix = substr(line, 1, index(line, defundef) - 1)
  5418. if (D_is_set[macro]) {
  5419. # Preserve the white space surrounding the "#".
  5420. print prefix "define", macro P[macro] D[macro]
  5421. next
  5422. } else {
  5423. # Replace #undef with comments. This is necessary, for example,
  5424. # in the case of _POSIX_SOURCE, which is predefined and required
  5425. # on some systems where configure will not decide to define it.
  5426. if (defundef == "undef") {
  5427. print "/*", prefix defundef, macro, "*/"
  5428. next
  5429. }
  5430. }
  5431. }
  5432. { print }
  5433. _ACAWK
  5434. _ACEOF
  5435. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5436. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  5437. fi # test -n "$CONFIG_HEADERS"
  5438. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  5439. shift
  5440. for ac_tag
  5441. do
  5442. case $ac_tag in
  5443. :[FHLC]) ac_mode=$ac_tag; continue;;
  5444. esac
  5445. case $ac_mode$ac_tag in
  5446. :[FHL]*:*);;
  5447. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5448. :[FH]-) ac_tag=-:-;;
  5449. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5450. esac
  5451. ac_save_IFS=$IFS
  5452. IFS=:
  5453. set x $ac_tag
  5454. IFS=$ac_save_IFS
  5455. shift
  5456. ac_file=$1
  5457. shift
  5458. case $ac_mode in
  5459. :L) ac_source=$1;;
  5460. :[FH])
  5461. ac_file_inputs=
  5462. for ac_f
  5463. do
  5464. case $ac_f in
  5465. -) ac_f="$ac_tmp/stdin";;
  5466. *) # Look for the file first in the build tree, then in the source tree
  5467. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5468. # because $ac_f cannot contain `:'.
  5469. test -f "$ac_f" ||
  5470. case $ac_f in
  5471. [\\/$]*) false;;
  5472. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5473. esac ||
  5474. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5475. esac
  5476. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5477. as_fn_append ac_file_inputs " '$ac_f'"
  5478. done
  5479. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5480. # use $as_me), people would be surprised to read:
  5481. # /* config.h. Generated by config.status. */
  5482. configure_input='Generated from '`
  5483. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5484. `' by configure.'
  5485. if test x"$ac_file" != x-; then
  5486. configure_input="$ac_file. $configure_input"
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5488. $as_echo "$as_me: creating $ac_file" >&6;}
  5489. fi
  5490. # Neutralize special characters interpreted by sed in replacement strings.
  5491. case $configure_input in #(
  5492. *\&* | *\|* | *\\* )
  5493. ac_sed_conf_input=`$as_echo "$configure_input" |
  5494. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5495. *) ac_sed_conf_input=$configure_input;;
  5496. esac
  5497. case $ac_tag in
  5498. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5499. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5500. esac
  5501. ;;
  5502. esac
  5503. ac_dir=`$as_dirname -- "$ac_file" ||
  5504. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5505. X"$ac_file" : 'X\(//\)[^/]' \| \
  5506. X"$ac_file" : 'X\(//\)$' \| \
  5507. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5508. $as_echo X"$ac_file" |
  5509. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5510. s//\1/
  5511. q
  5512. }
  5513. /^X\(\/\/\)[^/].*/{
  5514. s//\1/
  5515. q
  5516. }
  5517. /^X\(\/\/\)$/{
  5518. s//\1/
  5519. q
  5520. }
  5521. /^X\(\/\).*/{
  5522. s//\1/
  5523. q
  5524. }
  5525. s/.*/./; q'`
  5526. as_dir="$ac_dir"; as_fn_mkdir_p
  5527. ac_builddir=.
  5528. case "$ac_dir" in
  5529. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5530. *)
  5531. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5532. # A ".." for each directory in $ac_dir_suffix.
  5533. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5534. case $ac_top_builddir_sub in
  5535. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5536. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5537. esac ;;
  5538. esac
  5539. ac_abs_top_builddir=$ac_pwd
  5540. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5541. # for backward compatibility:
  5542. ac_top_builddir=$ac_top_build_prefix
  5543. case $srcdir in
  5544. .) # We are building in place.
  5545. ac_srcdir=.
  5546. ac_top_srcdir=$ac_top_builddir_sub
  5547. ac_abs_top_srcdir=$ac_pwd ;;
  5548. [\\/]* | ?:[\\/]* ) # Absolute name.
  5549. ac_srcdir=$srcdir$ac_dir_suffix;
  5550. ac_top_srcdir=$srcdir
  5551. ac_abs_top_srcdir=$srcdir ;;
  5552. *) # Relative name.
  5553. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5554. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5555. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5556. esac
  5557. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5558. case $ac_mode in
  5559. :F)
  5560. #
  5561. # CONFIG_FILE
  5562. #
  5563. case $INSTALL in
  5564. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5565. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  5566. esac
  5567. _ACEOF
  5568. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5569. # If the template does not know about datarootdir, expand it.
  5570. # FIXME: This hack should be removed a few years after 2.60.
  5571. ac_datarootdir_hack=; ac_datarootdir_seen=
  5572. ac_sed_dataroot='
  5573. /datarootdir/ {
  5574. p
  5575. q
  5576. }
  5577. /@datadir@/p
  5578. /@docdir@/p
  5579. /@infodir@/p
  5580. /@localedir@/p
  5581. /@mandir@/p'
  5582. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5583. *datarootdir*) ac_datarootdir_seen=yes;;
  5584. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5586. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5587. _ACEOF
  5588. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5589. ac_datarootdir_hack='
  5590. s&@datadir@&$datadir&g
  5591. s&@docdir@&$docdir&g
  5592. s&@infodir@&$infodir&g
  5593. s&@localedir@&$localedir&g
  5594. s&@mandir@&$mandir&g
  5595. s&\\\${datarootdir}&$datarootdir&g' ;;
  5596. esac
  5597. _ACEOF
  5598. # Neutralize VPATH when `$srcdir' = `.'.
  5599. # Shell code in configure.ac might set extrasub.
  5600. # FIXME: do we really want to maintain this feature?
  5601. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5602. ac_sed_extra="$ac_vpsub
  5603. $extrasub
  5604. _ACEOF
  5605. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5606. :t
  5607. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5608. s|@configure_input@|$ac_sed_conf_input|;t t
  5609. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5610. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5611. s&@srcdir@&$ac_srcdir&;t t
  5612. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5613. s&@top_srcdir@&$ac_top_srcdir&;t t
  5614. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5615. s&@builddir@&$ac_builddir&;t t
  5616. s&@abs_builddir@&$ac_abs_builddir&;t t
  5617. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5618. s&@INSTALL@&$ac_INSTALL&;t t
  5619. $ac_datarootdir_hack
  5620. "
  5621. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  5622. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5623. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5624. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  5625. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  5626. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5628. which seems to be undefined. Please make sure it is defined" >&5
  5629. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5630. which seems to be undefined. Please make sure it is defined" >&2;}
  5631. rm -f "$ac_tmp/stdin"
  5632. case $ac_file in
  5633. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  5634. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  5635. esac \
  5636. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5637. ;;
  5638. :H)
  5639. #
  5640. # CONFIG_HEADER
  5641. #
  5642. if test x"$ac_file" != x-; then
  5643. {
  5644. $as_echo "/* $configure_input */" \
  5645. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  5646. } >"$ac_tmp/config.h" \
  5647. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5648. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  5650. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  5651. else
  5652. rm -f "$ac_file"
  5653. mv "$ac_tmp/config.h" "$ac_file" \
  5654. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5655. fi
  5656. else
  5657. $as_echo "/* $configure_input */" \
  5658. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  5659. || as_fn_error $? "could not create -" "$LINENO" 5
  5660. fi
  5661. ;;
  5662. esac
  5663. done # for ac_tag
  5664. as_fn_exit 0
  5665. _ACEOF
  5666. ac_clean_files=$ac_clean_files_save
  5667. test $ac_write_fail = 0 ||
  5668. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5669. # configure is writing to config.log, and then calls config.status.
  5670. # config.status does its own redirection, appending to config.log.
  5671. # Unfortunately, on DOS this fails, as config.log is still kept open
  5672. # by configure, so config.status won't be able to write to it; its
  5673. # output is simply discarded. So we exec the FD to /dev/null,
  5674. # effectively closing config.log, so it can be properly (re)opened and
  5675. # appended to by config.status. When coming back to configure, we
  5676. # need to make the FD available again.
  5677. if test "$no_create" != yes; then
  5678. ac_cs_success=:
  5679. ac_config_status_args=
  5680. test "$silent" = yes &&
  5681. ac_config_status_args="$ac_config_status_args --quiet"
  5682. exec 5>/dev/null
  5683. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5684. exec 5>>config.log
  5685. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5686. # would make configure fail if this is the last instruction.
  5687. $ac_cs_success || as_fn_exit 1
  5688. fi
  5689. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5691. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5692. fi