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.

9449 lines
258KB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in #(
  135. *posix*) :
  136. set -o posix ;; #(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test \$(( 1 + 1 )) = 2 || exit 1"
  162. if (eval "$as_required") 2>/dev/null; then :
  163. as_have_required=yes
  164. else
  165. as_have_required=no
  166. fi
  167. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  168. else
  169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  170. as_found=false
  171. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  172. do
  173. IFS=$as_save_IFS
  174. test -z "$as_dir" && as_dir=.
  175. as_found=:
  176. case $as_dir in #(
  177. /*)
  178. for as_base in sh bash ksh sh5; do
  179. # Try only shells that exist, to save several forks.
  180. as_shell=$as_dir/$as_base
  181. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  182. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  183. CONFIG_SHELL=$as_shell as_have_required=yes
  184. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. break 2
  186. fi
  187. fi
  188. done;;
  189. esac
  190. as_found=false
  191. done
  192. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  193. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  194. CONFIG_SHELL=$SHELL as_have_required=yes
  195. fi; }
  196. IFS=$as_save_IFS
  197. if test "x$CONFIG_SHELL" != x; then :
  198. # We cannot yet assume a decent shell, so we have to provide a
  199. # neutralization value for shells without unset; and this also
  200. # works around shells that cannot unset nonexistent variables.
  201. # Preserve -v and -x to the replacement shell.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. case $- in # ((((
  207. *v*x* | *x*v* ) as_opts=-vx ;;
  208. *v* ) as_opts=-v ;;
  209. *x* ) as_opts=-x ;;
  210. * ) as_opts= ;;
  211. esac
  212. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  213. fi
  214. if test x$as_have_required = xno; then :
  215. $as_echo "$0: This script requires a shell more modern than all"
  216. $as_echo "$0: the shells that I found on your system."
  217. if test x${ZSH_VERSION+set} = xset ; then
  218. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  219. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  220. else
  221. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  222. $0: including any error possibly output before this
  223. $0: message. Then install a modern shell, or manually run
  224. $0: the script under such a shell if you do have one."
  225. fi
  226. exit 1
  227. fi
  228. fi
  229. fi
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. export SHELL
  232. # Unset more variables known to interfere with behavior of common tools.
  233. CLICOLOR_FORCE= GREP_OPTIONS=
  234. unset CLICOLOR_FORCE GREP_OPTIONS
  235. ## --------------------- ##
  236. ## M4sh Shell Functions. ##
  237. ## --------------------- ##
  238. # as_fn_unset VAR
  239. # ---------------
  240. # Portably unset VAR.
  241. as_fn_unset ()
  242. {
  243. { eval $1=; unset $1;}
  244. }
  245. as_unset=as_fn_unset
  246. # as_fn_set_status STATUS
  247. # -----------------------
  248. # Set $? to STATUS, without forking.
  249. as_fn_set_status ()
  250. {
  251. return $1
  252. } # as_fn_set_status
  253. # as_fn_exit STATUS
  254. # -----------------
  255. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  256. as_fn_exit ()
  257. {
  258. set +e
  259. as_fn_set_status $1
  260. exit $1
  261. } # as_fn_exit
  262. # as_fn_mkdir_p
  263. # -------------
  264. # Create "$as_dir" as a directory, including parents if necessary.
  265. as_fn_mkdir_p ()
  266. {
  267. case $as_dir in #(
  268. -*) as_dir=./$as_dir;;
  269. esac
  270. test -d "$as_dir" || eval $as_mkdir_p || {
  271. as_dirs=
  272. while :; do
  273. case $as_dir in #(
  274. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  275. *) as_qdir=$as_dir;;
  276. esac
  277. as_dirs="'$as_qdir' $as_dirs"
  278. as_dir=`$as_dirname -- "$as_dir" ||
  279. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  280. X"$as_dir" : 'X\(//\)[^/]' \| \
  281. X"$as_dir" : 'X\(//\)$' \| \
  282. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  283. $as_echo X"$as_dir" |
  284. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\/\)[^/].*/{
  289. s//\1/
  290. q
  291. }
  292. /^X\(\/\/\)$/{
  293. s//\1/
  294. q
  295. }
  296. /^X\(\/\).*/{
  297. s//\1/
  298. q
  299. }
  300. s/.*/./; q'`
  301. test -d "$as_dir" && break
  302. done
  303. test -z "$as_dirs" || eval "mkdir $as_dirs"
  304. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  305. } # as_fn_mkdir_p
  306. # as_fn_append VAR VALUE
  307. # ----------------------
  308. # Append the text in VALUE to the end of the definition contained in VAR. Take
  309. # advantage of any shell optimizations that allow amortized linear growth over
  310. # repeated appends, instead of the typical quadratic growth present in naive
  311. # implementations.
  312. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  313. eval 'as_fn_append ()
  314. {
  315. eval $1+=\$2
  316. }'
  317. else
  318. as_fn_append ()
  319. {
  320. eval $1=\$$1\$2
  321. }
  322. fi # as_fn_append
  323. # as_fn_arith ARG...
  324. # ------------------
  325. # Perform arithmetic evaluation on the ARGs, and store the result in the
  326. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  327. # must be portable across $(()) and expr.
  328. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  329. eval 'as_fn_arith ()
  330. {
  331. as_val=$(( $* ))
  332. }'
  333. else
  334. as_fn_arith ()
  335. {
  336. as_val=`expr "$@" || test $? -eq 1`
  337. }
  338. fi # as_fn_arith
  339. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  340. # ----------------------------------------
  341. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  342. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  343. # script with STATUS, using 1 if that was 0.
  344. as_fn_error ()
  345. {
  346. as_status=$1; test $as_status -eq 0 && as_status=1
  347. if test "$4"; then
  348. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  349. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  350. fi
  351. $as_echo "$as_me: error: $2" >&2
  352. as_fn_exit $as_status
  353. } # as_fn_error
  354. if expr a : '\(a\)' >/dev/null 2>&1 &&
  355. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  356. as_expr=expr
  357. else
  358. as_expr=false
  359. fi
  360. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  361. as_basename=basename
  362. else
  363. as_basename=false
  364. fi
  365. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  366. as_dirname=dirname
  367. else
  368. as_dirname=false
  369. fi
  370. as_me=`$as_basename -- "$0" ||
  371. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  372. X"$0" : 'X\(//\)$' \| \
  373. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  374. $as_echo X/"$0" |
  375. sed '/^.*\/\([^/][^/]*\)\/*$/{
  376. s//\1/
  377. q
  378. }
  379. /^X\/\(\/\/\)$/{
  380. s//\1/
  381. q
  382. }
  383. /^X\/\(\/\).*/{
  384. s//\1/
  385. q
  386. }
  387. s/.*/./; q'`
  388. # Avoid depending upon Character Ranges.
  389. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  390. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  391. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  392. as_cr_digits='0123456789'
  393. as_cr_alnum=$as_cr_Letters$as_cr_digits
  394. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  395. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  396. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  397. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  398. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  399. sed -n '
  400. p
  401. /[$]LINENO/=
  402. ' <$as_myself |
  403. sed '
  404. s/[$]LINENO.*/&-/
  405. t lineno
  406. b
  407. :lineno
  408. N
  409. :loop
  410. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  411. t loop
  412. s/-\n.*//
  413. ' >$as_me.lineno &&
  414. chmod +x "$as_me.lineno" ||
  415. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  416. # Don't try to exec as it changes $[0], causing all sort of problems
  417. # (the dirname of $[0] is not the place where we might find the
  418. # original and so on. Autoconf is especially sensitive to this).
  419. . "./$as_me.lineno"
  420. # Exit status is that of the last command.
  421. exit
  422. }
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in #(((((
  425. -n*)
  426. case `echo 'xy\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. xy) ECHO_C='\c';;
  429. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  430. ECHO_T=' ';;
  431. esac;;
  432. *)
  433. ECHO_N='-n';;
  434. esac
  435. rm -f conf$$ conf$$.exe conf$$.file
  436. if test -d conf$$.dir; then
  437. rm -f conf$$.dir/conf$$.file
  438. else
  439. rm -f conf$$.dir
  440. mkdir conf$$.dir 2>/dev/null
  441. fi
  442. if (echo >conf$$.file) 2>/dev/null; then
  443. if ln -s conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s='ln -s'
  445. # ... but there are two gotchas:
  446. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  447. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  448. # In both cases, we have to default to `cp -p'.
  449. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  450. as_ln_s='cp -p'
  451. elif ln conf$$.file conf$$ 2>/dev/null; then
  452. as_ln_s=ln
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  460. rmdir conf$$.dir 2>/dev/null
  461. if mkdir -p . 2>/dev/null; then
  462. as_mkdir_p='mkdir -p "$as_dir"'
  463. else
  464. test -d ./-p && rmdir ./-p
  465. as_mkdir_p=false
  466. fi
  467. if test -x / >/dev/null 2>&1; then
  468. as_test_x='test -x'
  469. else
  470. if ls -dL / >/dev/null 2>&1; then
  471. as_ls_L_option=L
  472. else
  473. as_ls_L_option=
  474. fi
  475. as_test_x='
  476. eval sh -c '\''
  477. if test -d "$1"; then
  478. test -d "$1/.";
  479. else
  480. case $1 in #(
  481. -*)set "./$1";;
  482. esac;
  483. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  484. ???[sx]*):;;*)false;;esac;fi
  485. '\'' sh
  486. '
  487. fi
  488. as_executable_p=$as_test_x
  489. # Sed expression to map a string onto a valid CPP name.
  490. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  491. # Sed expression to map a string onto a valid variable name.
  492. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  493. test -n "$DJDIR" || exec 7<&0 </dev/null
  494. exec 6>&1
  495. # Name of the host.
  496. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  497. # so uname gets run too.
  498. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  499. #
  500. # Initializations.
  501. #
  502. ac_default_prefix=/usr/local
  503. ac_clean_files=
  504. ac_config_libobj_dir=.
  505. LIBOBJS=
  506. cross_compiling=no
  507. subdirs=
  508. MFLAGS=
  509. MAKEFLAGS=
  510. # Identity of this package.
  511. PACKAGE_NAME=
  512. PACKAGE_TARNAME=
  513. PACKAGE_VERSION=
  514. PACKAGE_STRING=
  515. PACKAGE_BUGREPORT=
  516. PACKAGE_URL=
  517. ac_unique_file="src/Fl.cxx"
  518. # Factoring default headers for most tests.
  519. ac_includes_default="\
  520. #include <stdio.h>
  521. #ifdef HAVE_SYS_TYPES_H
  522. # include <sys/types.h>
  523. #endif
  524. #ifdef HAVE_SYS_STAT_H
  525. # include <sys/stat.h>
  526. #endif
  527. #ifdef STDC_HEADERS
  528. # include <stdlib.h>
  529. # include <stddef.h>
  530. #else
  531. # ifdef HAVE_STDLIB_H
  532. # include <stdlib.h>
  533. # endif
  534. #endif
  535. #ifdef HAVE_STRING_H
  536. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  537. # include <memory.h>
  538. # endif
  539. # include <string.h>
  540. #endif
  541. #ifdef HAVE_STRINGS_H
  542. # include <strings.h>
  543. #endif
  544. #ifdef HAVE_INTTYPES_H
  545. # include <inttypes.h>
  546. #endif
  547. #ifdef HAVE_STDINT_H
  548. # include <stdint.h>
  549. #endif
  550. #ifdef HAVE_UNISTD_H
  551. # include <unistd.h>
  552. #endif"
  553. ac_subst_vars='LTLIBOBJS
  554. LIBOBJS
  555. MAKEDEPEND
  556. CAT6EXT
  557. CAT3EXT
  558. CAT1EXT
  559. UNINSTALL_DESKTOP
  560. INSTALL_DESKTOP
  561. THREADS
  562. OSX_ONLY
  563. HLINKS
  564. GLLIB
  565. XPROP
  566. FTCONFIG
  567. X_EXTRA_LIBS
  568. X_LIBS
  569. X_PRE_LIBS
  570. X_CFLAGS
  571. XMKMF
  572. PTHREAD_FLAGS
  573. ZLIBINC
  574. ZLIB
  575. PNGINC
  576. PNG
  577. JPEGINC
  578. JPEG
  579. STATICIMAGELIBS
  580. IMAGELIBS
  581. AUDIOLIBS
  582. LARGEFILE
  583. EGREP
  584. GREP
  585. CPP
  586. RC
  587. LIBCOMMAND
  588. AR
  589. RANLIB
  590. DOXYDOC
  591. HTMLDOC
  592. GROFF
  593. NROFF
  594. INSTALL_DATA
  595. INSTALL_SCRIPT
  596. INSTALL_PROGRAM
  597. ac_ct_CXX
  598. CXXFLAGS
  599. CXX
  600. OBJEXT
  601. EXEEXT
  602. ac_ct_CC
  603. CPPFLAGS
  604. LDFLAGS
  605. CFLAGS
  606. CC
  607. FLUID
  608. LINKSHARED
  609. SHAREDSUFFIX
  610. CAIRODSONAME
  611. IMGDSONAME
  612. GLDSONAME
  613. FLDSONAME
  614. DSONAME
  615. DSOLINK
  616. DSOFLAGS
  617. DSOCOMMAND
  618. CAIROLIBBASENAME
  619. IMGLIBBASENAME
  620. GLLIBBASENAME
  621. FLLIBBASENAME
  622. LIBBASENAME
  623. LINKFLTKIMG
  624. LINKFLTKGL
  625. LINKFLTKFORMS
  626. LINKFLTK
  627. LIBNAME
  628. LIBEXT
  629. CAIROLIBNAME
  630. IMGLIBNAME
  631. GLLIBNAME
  632. GLDEMOS
  633. FLLIBNAME
  634. FLTKCAIROOPTION
  635. LINKFLTKCAIRO
  636. CAIROLIBS
  637. CAIROFLAGS
  638. CAIRODIR
  639. OPTIM
  640. ARCHFLAGS
  641. FL_API_VERSION
  642. FL_PATCH_VERSION
  643. FL_MINOR_VERSION
  644. FL_MAJOR_VERSION
  645. USEMMFILES
  646. target_alias
  647. host_alias
  648. build_alias
  649. LIBS
  650. ECHO_T
  651. ECHO_N
  652. ECHO_C
  653. DEFS
  654. mandir
  655. localedir
  656. libdir
  657. psdir
  658. pdfdir
  659. dvidir
  660. htmldir
  661. infodir
  662. docdir
  663. oldincludedir
  664. includedir
  665. localstatedir
  666. sharedstatedir
  667. sysconfdir
  668. datadir
  669. datarootdir
  670. libexecdir
  671. sbindir
  672. bindir
  673. program_transform_name
  674. prefix
  675. exec_prefix
  676. PACKAGE_URL
  677. PACKAGE_BUGREPORT
  678. PACKAGE_STRING
  679. PACKAGE_VERSION
  680. PACKAGE_TARNAME
  681. PACKAGE_NAME
  682. PATH_SEPARATOR
  683. SHELL'
  684. ac_subst_files=''
  685. ac_user_opts='
  686. enable_option_checking
  687. enable_cygwin
  688. enable_x11
  689. enable_cairoext
  690. enable_cairo
  691. enable_debug
  692. enable_cp936
  693. enable_gl
  694. enable_shared
  695. enable_threads
  696. with_optim
  697. with_archflags
  698. enable_largefile
  699. enable_localjpeg
  700. enable_localzlib
  701. enable_localpng
  702. with_links
  703. with_x
  704. enable_xinerama
  705. enable_xft
  706. '
  707. ac_precious_vars='build_alias
  708. host_alias
  709. target_alias
  710. CC
  711. CFLAGS
  712. LDFLAGS
  713. LIBS
  714. CPPFLAGS
  715. CXX
  716. CXXFLAGS
  717. CCC
  718. CPP
  719. XMKMF'
  720. # Initialize some variables set by options.
  721. ac_init_help=
  722. ac_init_version=false
  723. ac_unrecognized_opts=
  724. ac_unrecognized_sep=
  725. # The variables have the same names as the options, with
  726. # dashes changed to underlines.
  727. cache_file=/dev/null
  728. exec_prefix=NONE
  729. no_create=
  730. no_recursion=
  731. prefix=NONE
  732. program_prefix=NONE
  733. program_suffix=NONE
  734. program_transform_name=s,x,x,
  735. silent=
  736. site=
  737. srcdir=
  738. verbose=
  739. x_includes=NONE
  740. x_libraries=NONE
  741. # Installation directory options.
  742. # These are left unexpanded so users can "make install exec_prefix=/foo"
  743. # and all the variables that are supposed to be based on exec_prefix
  744. # by default will actually change.
  745. # Use braces instead of parens because sh, perl, etc. also accept them.
  746. # (The list follows the same order as the GNU Coding Standards.)
  747. bindir='${exec_prefix}/bin'
  748. sbindir='${exec_prefix}/sbin'
  749. libexecdir='${exec_prefix}/libexec'
  750. datarootdir='${prefix}/share'
  751. datadir='${datarootdir}'
  752. sysconfdir='${prefix}/etc'
  753. sharedstatedir='${prefix}/com'
  754. localstatedir='${prefix}/var'
  755. includedir='${prefix}/include'
  756. oldincludedir='/usr/include'
  757. docdir='${datarootdir}/doc/${PACKAGE}'
  758. infodir='${datarootdir}/info'
  759. htmldir='${docdir}'
  760. dvidir='${docdir}'
  761. pdfdir='${docdir}'
  762. psdir='${docdir}'
  763. libdir='${exec_prefix}/lib'
  764. localedir='${datarootdir}/locale'
  765. mandir='${datarootdir}/man'
  766. ac_prev=
  767. ac_dashdash=
  768. for ac_option
  769. do
  770. # If the previous option needs an argument, assign it.
  771. if test -n "$ac_prev"; then
  772. eval $ac_prev=\$ac_option
  773. ac_prev=
  774. continue
  775. fi
  776. case $ac_option in
  777. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  778. *=) ac_optarg= ;;
  779. *) ac_optarg=yes ;;
  780. esac
  781. # Accept the important Cygnus configure options, so we can diagnose typos.
  782. case $ac_dashdash$ac_option in
  783. --)
  784. ac_dashdash=yes ;;
  785. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  786. ac_prev=bindir ;;
  787. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  788. bindir=$ac_optarg ;;
  789. -build | --build | --buil | --bui | --bu)
  790. ac_prev=build_alias ;;
  791. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  792. build_alias=$ac_optarg ;;
  793. -cache-file | --cache-file | --cache-fil | --cache-fi \
  794. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  795. ac_prev=cache_file ;;
  796. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  797. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  798. cache_file=$ac_optarg ;;
  799. --config-cache | -C)
  800. cache_file=config.cache ;;
  801. -datadir | --datadir | --datadi | --datad)
  802. ac_prev=datadir ;;
  803. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  804. datadir=$ac_optarg ;;
  805. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  806. | --dataroo | --dataro | --datar)
  807. ac_prev=datarootdir ;;
  808. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  809. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  810. datarootdir=$ac_optarg ;;
  811. -disable-* | --disable-*)
  812. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  813. # Reject names that are not valid shell variable names.
  814. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  815. as_fn_error $? "invalid feature name: $ac_useropt"
  816. ac_useropt_orig=$ac_useropt
  817. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  818. case $ac_user_opts in
  819. *"
  820. "enable_$ac_useropt"
  821. "*) ;;
  822. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  823. ac_unrecognized_sep=', ';;
  824. esac
  825. eval enable_$ac_useropt=no ;;
  826. -docdir | --docdir | --docdi | --doc | --do)
  827. ac_prev=docdir ;;
  828. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  829. docdir=$ac_optarg ;;
  830. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  831. ac_prev=dvidir ;;
  832. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  833. dvidir=$ac_optarg ;;
  834. -enable-* | --enable-*)
  835. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  836. # Reject names that are not valid shell variable names.
  837. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  838. as_fn_error $? "invalid feature name: $ac_useropt"
  839. ac_useropt_orig=$ac_useropt
  840. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  841. case $ac_user_opts in
  842. *"
  843. "enable_$ac_useropt"
  844. "*) ;;
  845. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  846. ac_unrecognized_sep=', ';;
  847. esac
  848. eval enable_$ac_useropt=\$ac_optarg ;;
  849. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  850. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  851. | --exec | --exe | --ex)
  852. ac_prev=exec_prefix ;;
  853. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  854. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  855. | --exec=* | --exe=* | --ex=*)
  856. exec_prefix=$ac_optarg ;;
  857. -gas | --gas | --ga | --g)
  858. # Obsolete; use --with-gas.
  859. with_gas=yes ;;
  860. -help | --help | --hel | --he | -h)
  861. ac_init_help=long ;;
  862. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  863. ac_init_help=recursive ;;
  864. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  865. ac_init_help=short ;;
  866. -host | --host | --hos | --ho)
  867. ac_prev=host_alias ;;
  868. -host=* | --host=* | --hos=* | --ho=*)
  869. host_alias=$ac_optarg ;;
  870. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  871. ac_prev=htmldir ;;
  872. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  873. | --ht=*)
  874. htmldir=$ac_optarg ;;
  875. -includedir | --includedir | --includedi | --included | --include \
  876. | --includ | --inclu | --incl | --inc)
  877. ac_prev=includedir ;;
  878. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  879. | --includ=* | --inclu=* | --incl=* | --inc=*)
  880. includedir=$ac_optarg ;;
  881. -infodir | --infodir | --infodi | --infod | --info | --inf)
  882. ac_prev=infodir ;;
  883. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  884. infodir=$ac_optarg ;;
  885. -libdir | --libdir | --libdi | --libd)
  886. ac_prev=libdir ;;
  887. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  888. libdir=$ac_optarg ;;
  889. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  890. | --libexe | --libex | --libe)
  891. ac_prev=libexecdir ;;
  892. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  893. | --libexe=* | --libex=* | --libe=*)
  894. libexecdir=$ac_optarg ;;
  895. -localedir | --localedir | --localedi | --localed | --locale)
  896. ac_prev=localedir ;;
  897. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  898. localedir=$ac_optarg ;;
  899. -localstatedir | --localstatedir | --localstatedi | --localstated \
  900. | --localstate | --localstat | --localsta | --localst | --locals)
  901. ac_prev=localstatedir ;;
  902. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  903. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  904. localstatedir=$ac_optarg ;;
  905. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  906. ac_prev=mandir ;;
  907. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  908. mandir=$ac_optarg ;;
  909. -nfp | --nfp | --nf)
  910. # Obsolete; use --without-fp.
  911. with_fp=no ;;
  912. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  913. | --no-cr | --no-c | -n)
  914. no_create=yes ;;
  915. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  916. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  917. no_recursion=yes ;;
  918. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  919. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  920. | --oldin | --oldi | --old | --ol | --o)
  921. ac_prev=oldincludedir ;;
  922. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  923. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  924. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  925. oldincludedir=$ac_optarg ;;
  926. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  927. ac_prev=prefix ;;
  928. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  929. prefix=$ac_optarg ;;
  930. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  931. | --program-pre | --program-pr | --program-p)
  932. ac_prev=program_prefix ;;
  933. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  934. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  935. program_prefix=$ac_optarg ;;
  936. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  937. | --program-suf | --program-su | --program-s)
  938. ac_prev=program_suffix ;;
  939. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  940. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  941. program_suffix=$ac_optarg ;;
  942. -program-transform-name | --program-transform-name \
  943. | --program-transform-nam | --program-transform-na \
  944. | --program-transform-n | --program-transform- \
  945. | --program-transform | --program-transfor \
  946. | --program-transfo | --program-transf \
  947. | --program-trans | --program-tran \
  948. | --progr-tra | --program-tr | --program-t)
  949. ac_prev=program_transform_name ;;
  950. -program-transform-name=* | --program-transform-name=* \
  951. | --program-transform-nam=* | --program-transform-na=* \
  952. | --program-transform-n=* | --program-transform-=* \
  953. | --program-transform=* | --program-transfor=* \
  954. | --program-transfo=* | --program-transf=* \
  955. | --program-trans=* | --program-tran=* \
  956. | --progr-tra=* | --program-tr=* | --program-t=*)
  957. program_transform_name=$ac_optarg ;;
  958. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  959. ac_prev=pdfdir ;;
  960. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  961. pdfdir=$ac_optarg ;;
  962. -psdir | --psdir | --psdi | --psd | --ps)
  963. ac_prev=psdir ;;
  964. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  965. psdir=$ac_optarg ;;
  966. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  967. | -silent | --silent | --silen | --sile | --sil)
  968. silent=yes ;;
  969. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  970. ac_prev=sbindir ;;
  971. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  972. | --sbi=* | --sb=*)
  973. sbindir=$ac_optarg ;;
  974. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  975. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  976. | --sharedst | --shareds | --shared | --share | --shar \
  977. | --sha | --sh)
  978. ac_prev=sharedstatedir ;;
  979. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  980. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  981. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  982. | --sha=* | --sh=*)
  983. sharedstatedir=$ac_optarg ;;
  984. -site | --site | --sit)
  985. ac_prev=site ;;
  986. -site=* | --site=* | --sit=*)
  987. site=$ac_optarg ;;
  988. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  989. ac_prev=srcdir ;;
  990. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  991. srcdir=$ac_optarg ;;
  992. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  993. | --syscon | --sysco | --sysc | --sys | --sy)
  994. ac_prev=sysconfdir ;;
  995. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  996. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  997. sysconfdir=$ac_optarg ;;
  998. -target | --target | --targe | --targ | --tar | --ta | --t)
  999. ac_prev=target_alias ;;
  1000. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1001. target_alias=$ac_optarg ;;
  1002. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1003. verbose=yes ;;
  1004. -version | --version | --versio | --versi | --vers | -V)
  1005. ac_init_version=: ;;
  1006. -with-* | --with-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error $? "invalid package name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "with_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval with_$ac_useropt=\$ac_optarg ;;
  1021. -without-* | --without-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error $? "invalid package name: $ac_useropt"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "with_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=no ;;
  1036. --x)
  1037. # Obsolete; use --with-x.
  1038. with_x=yes ;;
  1039. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1040. | --x-incl | --x-inc | --x-in | --x-i)
  1041. ac_prev=x_includes ;;
  1042. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1043. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1044. x_includes=$ac_optarg ;;
  1045. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1046. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1047. ac_prev=x_libraries ;;
  1048. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1049. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1050. x_libraries=$ac_optarg ;;
  1051. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1052. Try \`$0 --help' for more information"
  1053. ;;
  1054. *=*)
  1055. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1056. # Reject names that are not valid shell variable names.
  1057. case $ac_envvar in #(
  1058. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1059. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1060. esac
  1061. eval $ac_envvar=\$ac_optarg
  1062. export $ac_envvar ;;
  1063. *)
  1064. # FIXME: should be removed in autoconf 3.0.
  1065. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1066. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1067. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1068. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1069. ;;
  1070. esac
  1071. done
  1072. if test -n "$ac_prev"; then
  1073. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1074. as_fn_error $? "missing argument to $ac_option"
  1075. fi
  1076. if test -n "$ac_unrecognized_opts"; then
  1077. case $enable_option_checking in
  1078. no) ;;
  1079. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1080. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1081. esac
  1082. fi
  1083. # Check all directory arguments for consistency.
  1084. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1085. datadir sysconfdir sharedstatedir localstatedir includedir \
  1086. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1087. libdir localedir mandir
  1088. do
  1089. eval ac_val=\$$ac_var
  1090. # Remove trailing slashes.
  1091. case $ac_val in
  1092. */ )
  1093. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1094. eval $ac_var=\$ac_val;;
  1095. esac
  1096. # Be sure to have absolute directory names.
  1097. case $ac_val in
  1098. [\\/$]* | ?:[\\/]* ) continue;;
  1099. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1100. esac
  1101. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1102. done
  1103. # There might be people who depend on the old broken behavior: `$host'
  1104. # used to hold the argument of --host etc.
  1105. # FIXME: To remove some day.
  1106. build=$build_alias
  1107. host=$host_alias
  1108. target=$target_alias
  1109. # FIXME: To remove some day.
  1110. if test "x$host_alias" != x; then
  1111. if test "x$build_alias" = x; then
  1112. cross_compiling=maybe
  1113. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1114. If a cross compiler is detected then cross compile mode will be used" >&2
  1115. elif test "x$build_alias" != "x$host_alias"; then
  1116. cross_compiling=yes
  1117. fi
  1118. fi
  1119. ac_tool_prefix=
  1120. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1121. test "$silent" = yes && exec 6>/dev/null
  1122. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1123. ac_ls_di=`ls -di .` &&
  1124. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1125. as_fn_error $? "working directory cannot be determined"
  1126. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1127. as_fn_error $? "pwd does not report name of working directory"
  1128. # Find the source files, if location was not specified.
  1129. if test -z "$srcdir"; then
  1130. ac_srcdir_defaulted=yes
  1131. # Try the directory containing this script, then the parent directory.
  1132. ac_confdir=`$as_dirname -- "$as_myself" ||
  1133. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1134. X"$as_myself" : 'X\(//\)[^/]' \| \
  1135. X"$as_myself" : 'X\(//\)$' \| \
  1136. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1137. $as_echo X"$as_myself" |
  1138. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1139. s//\1/
  1140. q
  1141. }
  1142. /^X\(\/\/\)[^/].*/{
  1143. s//\1/
  1144. q
  1145. }
  1146. /^X\(\/\/\)$/{
  1147. s//\1/
  1148. q
  1149. }
  1150. /^X\(\/\).*/{
  1151. s//\1/
  1152. q
  1153. }
  1154. s/.*/./; q'`
  1155. srcdir=$ac_confdir
  1156. if test ! -r "$srcdir/$ac_unique_file"; then
  1157. srcdir=..
  1158. fi
  1159. else
  1160. ac_srcdir_defaulted=no
  1161. fi
  1162. if test ! -r "$srcdir/$ac_unique_file"; then
  1163. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1164. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1165. fi
  1166. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1167. ac_abs_confdir=`(
  1168. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1169. pwd)`
  1170. # When building in place, set srcdir=.
  1171. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1172. srcdir=.
  1173. fi
  1174. # Remove unnecessary trailing slashes from srcdir.
  1175. # Double slashes in file names in object file debugging info
  1176. # mess up M-x gdb in Emacs.
  1177. case $srcdir in
  1178. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1179. esac
  1180. for ac_var in $ac_precious_vars; do
  1181. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_env_${ac_var}_value=\$${ac_var}
  1183. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1184. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1185. done
  1186. #
  1187. # Report the --help message.
  1188. #
  1189. if test "$ac_init_help" = "long"; then
  1190. # Omit some internal or obsolete options to make the list less imposing.
  1191. # This message is too long to be a string in the A/UX 3.1 sh.
  1192. cat <<_ACEOF
  1193. \`configure' configures this package to adapt to many kinds of systems.
  1194. Usage: $0 [OPTION]... [VAR=VALUE]...
  1195. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1196. VAR=VALUE. See below for descriptions of some of the useful variables.
  1197. Defaults for the options are specified in brackets.
  1198. Configuration:
  1199. -h, --help display this help and exit
  1200. --help=short display options specific to this package
  1201. --help=recursive display the short help of all the included packages
  1202. -V, --version display version information and exit
  1203. -q, --quiet, --silent do not print \`checking ...' messages
  1204. --cache-file=FILE cache test results in FILE [disabled]
  1205. -C, --config-cache alias for \`--cache-file=config.cache'
  1206. -n, --no-create do not create output files
  1207. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1208. Installation directories:
  1209. --prefix=PREFIX install architecture-independent files in PREFIX
  1210. [$ac_default_prefix]
  1211. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1212. [PREFIX]
  1213. By default, \`make install' will install all the files in
  1214. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1215. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1216. for instance \`--prefix=\$HOME'.
  1217. For better control, use the options below.
  1218. Fine tuning of the installation directories:
  1219. --bindir=DIR user executables [EPREFIX/bin]
  1220. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1221. --libexecdir=DIR program executables [EPREFIX/libexec]
  1222. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1223. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1224. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1225. --libdir=DIR object code libraries [EPREFIX/lib]
  1226. --includedir=DIR C header files [PREFIX/include]
  1227. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1228. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1229. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1230. --infodir=DIR info documentation [DATAROOTDIR/info]
  1231. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1232. --mandir=DIR man documentation [DATAROOTDIR/man]
  1233. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1234. --htmldir=DIR html documentation [DOCDIR]
  1235. --dvidir=DIR dvi documentation [DOCDIR]
  1236. --pdfdir=DIR pdf documentation [DOCDIR]
  1237. --psdir=DIR ps documentation [DOCDIR]
  1238. _ACEOF
  1239. cat <<\_ACEOF
  1240. X features:
  1241. --x-includes=DIR X include files are in DIR
  1242. --x-libraries=DIR X library files are in DIR
  1243. _ACEOF
  1244. fi
  1245. if test -n "$ac_init_help"; then
  1246. cat <<\_ACEOF
  1247. Optional Features:
  1248. --disable-option-checking ignore unrecognized --enable/--with options
  1249. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1250. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1251. --enable-cygwin use the Cygwin libraries (default=no)
  1252. --enable-x11 use Cygwin with X11 (default=no)
  1253. --enable-cairoext use ntk code instrumentation for cairo extended use (default=no)
  1254. --enable-cairo use lib Cairo (default=no)
  1255. --enable-debug turn on debugging default=no
  1256. --enable-cp936 turn on CP936 default=no
  1257. --enable-gl turn on OpenGL support default=yes
  1258. --enable-shared turn on shared libraries default=no
  1259. --enable-threads enable multi-threading support (default=yes)
  1260. --disable-largefile omit support for large files
  1261. --enable-localjpeg use local JPEG library, default=auto
  1262. --enable-localzlib use local ZLIB library, default=auto
  1263. --enable-localpng use local PNG library, default=auto
  1264. --enable-xinerama turn on Xinerama support default=yes
  1265. --enable-xft turn on Xft support default=yes
  1266. Optional Packages:
  1267. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1268. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1269. --with-optim="flags" use custom optimization flags
  1270. --with-archflags="flags"
  1271. use custom architecture flags
  1272. (possible Mac OS X values include -arch i386, -arch x86_64, -arch ppc)
  1273. --with-links make header links for common misspellings (default=no)
  1274. --with-x use the X Window System
  1275. Some influential environment variables:
  1276. CC C compiler command
  1277. CFLAGS C compiler flags
  1278. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1279. nonstandard directory <lib dir>
  1280. LIBS libraries to pass to the linker, e.g. -l<library>
  1281. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1282. you have headers in a nonstandard directory <include dir>
  1283. CXX C++ compiler command
  1284. CXXFLAGS C++ compiler flags
  1285. CPP C preprocessor
  1286. XMKMF Path to xmkmf, Makefile generator for X Window System
  1287. Use these variables to override the choices made by `configure' or to help
  1288. it to find libraries and programs with nonstandard names/locations.
  1289. Report bugs to the package provider.
  1290. _ACEOF
  1291. ac_status=$?
  1292. fi
  1293. if test "$ac_init_help" = "recursive"; then
  1294. # If there are subdirs, report their specific --help.
  1295. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1296. test -d "$ac_dir" ||
  1297. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1298. continue
  1299. ac_builddir=.
  1300. case "$ac_dir" in
  1301. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1302. *)
  1303. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1304. # A ".." for each directory in $ac_dir_suffix.
  1305. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1306. case $ac_top_builddir_sub in
  1307. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1308. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1309. esac ;;
  1310. esac
  1311. ac_abs_top_builddir=$ac_pwd
  1312. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1313. # for backward compatibility:
  1314. ac_top_builddir=$ac_top_build_prefix
  1315. case $srcdir in
  1316. .) # We are building in place.
  1317. ac_srcdir=.
  1318. ac_top_srcdir=$ac_top_builddir_sub
  1319. ac_abs_top_srcdir=$ac_pwd ;;
  1320. [\\/]* | ?:[\\/]* ) # Absolute name.
  1321. ac_srcdir=$srcdir$ac_dir_suffix;
  1322. ac_top_srcdir=$srcdir
  1323. ac_abs_top_srcdir=$srcdir ;;
  1324. *) # Relative name.
  1325. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1326. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1327. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1328. esac
  1329. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1330. cd "$ac_dir" || { ac_status=$?; continue; }
  1331. # Check for guested configure.
  1332. if test -f "$ac_srcdir/configure.gnu"; then
  1333. echo &&
  1334. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1335. elif test -f "$ac_srcdir/configure"; then
  1336. echo &&
  1337. $SHELL "$ac_srcdir/configure" --help=recursive
  1338. else
  1339. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1340. fi || ac_status=$?
  1341. cd "$ac_pwd" || { ac_status=$?; break; }
  1342. done
  1343. fi
  1344. test -n "$ac_init_help" && exit $ac_status
  1345. if $ac_init_version; then
  1346. cat <<\_ACEOF
  1347. configure
  1348. generated by GNU Autoconf 2.68
  1349. Copyright (C) 2010 Free Software Foundation, Inc.
  1350. This configure script is free software; the Free Software Foundation
  1351. gives unlimited permission to copy, distribute and modify it.
  1352. _ACEOF
  1353. exit
  1354. fi
  1355. ## ------------------------ ##
  1356. ## Autoconf initialization. ##
  1357. ## ------------------------ ##
  1358. # ac_fn_c_try_compile LINENO
  1359. # --------------------------
  1360. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1361. ac_fn_c_try_compile ()
  1362. {
  1363. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1364. rm -f conftest.$ac_objext
  1365. if { { ac_try="$ac_compile"
  1366. case "(($ac_try" in
  1367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1368. *) ac_try_echo=$ac_try;;
  1369. esac
  1370. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1371. $as_echo "$ac_try_echo"; } >&5
  1372. (eval "$ac_compile") 2>conftest.err
  1373. ac_status=$?
  1374. if test -s conftest.err; then
  1375. grep -v '^ *+' conftest.err >conftest.er1
  1376. cat conftest.er1 >&5
  1377. mv -f conftest.er1 conftest.err
  1378. fi
  1379. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1380. test $ac_status = 0; } && {
  1381. test -z "$ac_c_werror_flag" ||
  1382. test ! -s conftest.err
  1383. } && test -s conftest.$ac_objext; then :
  1384. ac_retval=0
  1385. else
  1386. $as_echo "$as_me: failed program was:" >&5
  1387. sed 's/^/| /' conftest.$ac_ext >&5
  1388. ac_retval=1
  1389. fi
  1390. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1391. as_fn_set_status $ac_retval
  1392. } # ac_fn_c_try_compile
  1393. # ac_fn_cxx_try_compile LINENO
  1394. # ----------------------------
  1395. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1396. ac_fn_cxx_try_compile ()
  1397. {
  1398. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1399. rm -f conftest.$ac_objext
  1400. if { { ac_try="$ac_compile"
  1401. case "(($ac_try" in
  1402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1403. *) ac_try_echo=$ac_try;;
  1404. esac
  1405. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1406. $as_echo "$ac_try_echo"; } >&5
  1407. (eval "$ac_compile") 2>conftest.err
  1408. ac_status=$?
  1409. if test -s conftest.err; then
  1410. grep -v '^ *+' conftest.err >conftest.er1
  1411. cat conftest.er1 >&5
  1412. mv -f conftest.er1 conftest.err
  1413. fi
  1414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1415. test $ac_status = 0; } && {
  1416. test -z "$ac_cxx_werror_flag" ||
  1417. test ! -s conftest.err
  1418. } && test -s conftest.$ac_objext; then :
  1419. ac_retval=0
  1420. else
  1421. $as_echo "$as_me: failed program was:" >&5
  1422. sed 's/^/| /' conftest.$ac_ext >&5
  1423. ac_retval=1
  1424. fi
  1425. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1426. as_fn_set_status $ac_retval
  1427. } # ac_fn_cxx_try_compile
  1428. # ac_fn_c_try_run LINENO
  1429. # ----------------------
  1430. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1431. # that executables *can* be run.
  1432. ac_fn_c_try_run ()
  1433. {
  1434. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1435. if { { ac_try="$ac_link"
  1436. case "(($ac_try" in
  1437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1438. *) ac_try_echo=$ac_try;;
  1439. esac
  1440. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1441. $as_echo "$ac_try_echo"; } >&5
  1442. (eval "$ac_link") 2>&5
  1443. ac_status=$?
  1444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1445. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1446. { { case "(($ac_try" in
  1447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1448. *) ac_try_echo=$ac_try;;
  1449. esac
  1450. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1451. $as_echo "$ac_try_echo"; } >&5
  1452. (eval "$ac_try") 2>&5
  1453. ac_status=$?
  1454. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1455. test $ac_status = 0; }; }; then :
  1456. ac_retval=0
  1457. else
  1458. $as_echo "$as_me: program exited with status $ac_status" >&5
  1459. $as_echo "$as_me: failed program was:" >&5
  1460. sed 's/^/| /' conftest.$ac_ext >&5
  1461. ac_retval=$ac_status
  1462. fi
  1463. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1464. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1465. as_fn_set_status $ac_retval
  1466. } # ac_fn_c_try_run
  1467. # ac_fn_c_try_cpp LINENO
  1468. # ----------------------
  1469. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1470. ac_fn_c_try_cpp ()
  1471. {
  1472. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1473. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1474. case "(($ac_try" in
  1475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1476. *) ac_try_echo=$ac_try;;
  1477. esac
  1478. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1479. $as_echo "$ac_try_echo"; } >&5
  1480. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1481. ac_status=$?
  1482. if test -s conftest.err; then
  1483. grep -v '^ *+' conftest.err >conftest.er1
  1484. cat conftest.er1 >&5
  1485. mv -f conftest.er1 conftest.err
  1486. fi
  1487. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1488. test $ac_status = 0; } > conftest.i && {
  1489. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1490. test ! -s conftest.err
  1491. }; then :
  1492. ac_retval=0
  1493. else
  1494. $as_echo "$as_me: failed program was:" >&5
  1495. sed 's/^/| /' conftest.$ac_ext >&5
  1496. ac_retval=1
  1497. fi
  1498. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1499. as_fn_set_status $ac_retval
  1500. } # ac_fn_c_try_cpp
  1501. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1502. # -------------------------------------------------------
  1503. # Tests whether HEADER exists and can be compiled using the include files in
  1504. # INCLUDES, setting the cache variable VAR accordingly.
  1505. ac_fn_c_check_header_compile ()
  1506. {
  1507. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1509. $as_echo_n "checking for $2... " >&6; }
  1510. if eval \${$3+:} false; then :
  1511. $as_echo_n "(cached) " >&6
  1512. else
  1513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1514. /* end confdefs.h. */
  1515. $4
  1516. #include <$2>
  1517. _ACEOF
  1518. if ac_fn_c_try_compile "$LINENO"; then :
  1519. eval "$3=yes"
  1520. else
  1521. eval "$3=no"
  1522. fi
  1523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1524. fi
  1525. eval ac_res=\$$3
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1527. $as_echo "$ac_res" >&6; }
  1528. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1529. } # ac_fn_c_check_header_compile
  1530. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1531. # --------------------------------------------
  1532. # Tries to find the compile-time value of EXPR in a program that includes
  1533. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1534. # computed
  1535. ac_fn_c_compute_int ()
  1536. {
  1537. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1538. if test "$cross_compiling" = yes; then
  1539. # Depending upon the size, compute the lo and hi bounds.
  1540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1541. /* end confdefs.h. */
  1542. $4
  1543. int
  1544. main ()
  1545. {
  1546. static int test_array [1 - 2 * !(($2) >= 0)];
  1547. test_array [0] = 0
  1548. ;
  1549. return 0;
  1550. }
  1551. _ACEOF
  1552. if ac_fn_c_try_compile "$LINENO"; then :
  1553. ac_lo=0 ac_mid=0
  1554. while :; do
  1555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1556. /* end confdefs.h. */
  1557. $4
  1558. int
  1559. main ()
  1560. {
  1561. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1562. test_array [0] = 0
  1563. ;
  1564. return 0;
  1565. }
  1566. _ACEOF
  1567. if ac_fn_c_try_compile "$LINENO"; then :
  1568. ac_hi=$ac_mid; break
  1569. else
  1570. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1571. if test $ac_lo -le $ac_mid; then
  1572. ac_lo= ac_hi=
  1573. break
  1574. fi
  1575. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1576. fi
  1577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1578. done
  1579. else
  1580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1581. /* end confdefs.h. */
  1582. $4
  1583. int
  1584. main ()
  1585. {
  1586. static int test_array [1 - 2 * !(($2) < 0)];
  1587. test_array [0] = 0
  1588. ;
  1589. return 0;
  1590. }
  1591. _ACEOF
  1592. if ac_fn_c_try_compile "$LINENO"; then :
  1593. ac_hi=-1 ac_mid=-1
  1594. while :; do
  1595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1596. /* end confdefs.h. */
  1597. $4
  1598. int
  1599. main ()
  1600. {
  1601. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1602. test_array [0] = 0
  1603. ;
  1604. return 0;
  1605. }
  1606. _ACEOF
  1607. if ac_fn_c_try_compile "$LINENO"; then :
  1608. ac_lo=$ac_mid; break
  1609. else
  1610. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1611. if test $ac_mid -le $ac_hi; then
  1612. ac_lo= ac_hi=
  1613. break
  1614. fi
  1615. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1616. fi
  1617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1618. done
  1619. else
  1620. ac_lo= ac_hi=
  1621. fi
  1622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1623. fi
  1624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1625. # Binary search between lo and hi bounds.
  1626. while test "x$ac_lo" != "x$ac_hi"; do
  1627. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1629. /* end confdefs.h. */
  1630. $4
  1631. int
  1632. main ()
  1633. {
  1634. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1635. test_array [0] = 0
  1636. ;
  1637. return 0;
  1638. }
  1639. _ACEOF
  1640. if ac_fn_c_try_compile "$LINENO"; then :
  1641. ac_hi=$ac_mid
  1642. else
  1643. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1644. fi
  1645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1646. done
  1647. case $ac_lo in #((
  1648. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1649. '') ac_retval=1 ;;
  1650. esac
  1651. else
  1652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1653. /* end confdefs.h. */
  1654. $4
  1655. static long int longval () { return $2; }
  1656. static unsigned long int ulongval () { return $2; }
  1657. #include <stdio.h>
  1658. #include <stdlib.h>
  1659. int
  1660. main ()
  1661. {
  1662. FILE *f = fopen ("conftest.val", "w");
  1663. if (! f)
  1664. return 1;
  1665. if (($2) < 0)
  1666. {
  1667. long int i = longval ();
  1668. if (i != ($2))
  1669. return 1;
  1670. fprintf (f, "%ld", i);
  1671. }
  1672. else
  1673. {
  1674. unsigned long int i = ulongval ();
  1675. if (i != ($2))
  1676. return 1;
  1677. fprintf (f, "%lu", i);
  1678. }
  1679. /* Do not output a trailing newline, as this causes \r\n confusion
  1680. on some platforms. */
  1681. return ferror (f) || fclose (f) != 0;
  1682. ;
  1683. return 0;
  1684. }
  1685. _ACEOF
  1686. if ac_fn_c_try_run "$LINENO"; then :
  1687. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1688. else
  1689. ac_retval=1
  1690. fi
  1691. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1692. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1693. rm -f conftest.val
  1694. fi
  1695. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1696. as_fn_set_status $ac_retval
  1697. } # ac_fn_c_compute_int
  1698. # ac_fn_c_try_link LINENO
  1699. # -----------------------
  1700. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1701. ac_fn_c_try_link ()
  1702. {
  1703. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1704. rm -f conftest.$ac_objext conftest$ac_exeext
  1705. if { { ac_try="$ac_link"
  1706. case "(($ac_try" in
  1707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1708. *) ac_try_echo=$ac_try;;
  1709. esac
  1710. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1711. $as_echo "$ac_try_echo"; } >&5
  1712. (eval "$ac_link") 2>conftest.err
  1713. ac_status=$?
  1714. if test -s conftest.err; then
  1715. grep -v '^ *+' conftest.err >conftest.er1
  1716. cat conftest.er1 >&5
  1717. mv -f conftest.er1 conftest.err
  1718. fi
  1719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1720. test $ac_status = 0; } && {
  1721. test -z "$ac_c_werror_flag" ||
  1722. test ! -s conftest.err
  1723. } && test -s conftest$ac_exeext && {
  1724. test "$cross_compiling" = yes ||
  1725. $as_test_x conftest$ac_exeext
  1726. }; then :
  1727. ac_retval=0
  1728. else
  1729. $as_echo "$as_me: failed program was:" >&5
  1730. sed 's/^/| /' conftest.$ac_ext >&5
  1731. ac_retval=1
  1732. fi
  1733. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1734. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1735. # interfere with the next link command; also delete a directory that is
  1736. # left behind by Apple's compiler. We do this before executing the actions.
  1737. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1738. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1739. as_fn_set_status $ac_retval
  1740. } # ac_fn_c_try_link
  1741. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1742. # -------------------------------------------------------
  1743. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1744. # the include files in INCLUDES and setting the cache variable VAR
  1745. # accordingly.
  1746. ac_fn_c_check_header_mongrel ()
  1747. {
  1748. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1749. if eval \${$3+:} false; then :
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1751. $as_echo_n "checking for $2... " >&6; }
  1752. if eval \${$3+:} false; then :
  1753. $as_echo_n "(cached) " >&6
  1754. fi
  1755. eval ac_res=\$$3
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1757. $as_echo "$ac_res" >&6; }
  1758. else
  1759. # Is the header compilable?
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1761. $as_echo_n "checking $2 usability... " >&6; }
  1762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1763. /* end confdefs.h. */
  1764. $4
  1765. #include <$2>
  1766. _ACEOF
  1767. if ac_fn_c_try_compile "$LINENO"; then :
  1768. ac_header_compiler=yes
  1769. else
  1770. ac_header_compiler=no
  1771. fi
  1772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1774. $as_echo "$ac_header_compiler" >&6; }
  1775. # Is the header present?
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1777. $as_echo_n "checking $2 presence... " >&6; }
  1778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1779. /* end confdefs.h. */
  1780. #include <$2>
  1781. _ACEOF
  1782. if ac_fn_c_try_cpp "$LINENO"; then :
  1783. ac_header_preproc=yes
  1784. else
  1785. ac_header_preproc=no
  1786. fi
  1787. rm -f conftest.err conftest.i conftest.$ac_ext
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1789. $as_echo "$ac_header_preproc" >&6; }
  1790. # So? What about this header?
  1791. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1792. yes:no: )
  1793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1794. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1796. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1797. ;;
  1798. no:yes:* )
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1800. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1802. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1804. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1806. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1808. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1809. ;;
  1810. esac
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1812. $as_echo_n "checking for $2... " >&6; }
  1813. if eval \${$3+:} false; then :
  1814. $as_echo_n "(cached) " >&6
  1815. else
  1816. eval "$3=\$ac_header_compiler"
  1817. fi
  1818. eval ac_res=\$$3
  1819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1820. $as_echo "$ac_res" >&6; }
  1821. fi
  1822. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1823. } # ac_fn_c_check_header_mongrel
  1824. # ac_fn_c_check_func LINENO FUNC VAR
  1825. # ----------------------------------
  1826. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1827. ac_fn_c_check_func ()
  1828. {
  1829. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1831. $as_echo_n "checking for $2... " >&6; }
  1832. if eval \${$3+:} false; then :
  1833. $as_echo_n "(cached) " >&6
  1834. else
  1835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1836. /* end confdefs.h. */
  1837. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1838. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1839. #define $2 innocuous_$2
  1840. /* System header to define __stub macros and hopefully few prototypes,
  1841. which can conflict with char $2 (); below.
  1842. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1843. <limits.h> exists even on freestanding compilers. */
  1844. #ifdef __STDC__
  1845. # include <limits.h>
  1846. #else
  1847. # include <assert.h>
  1848. #endif
  1849. #undef $2
  1850. /* Override any GCC internal prototype to avoid an error.
  1851. Use char because int might match the return type of a GCC
  1852. builtin and then its argument prototype would still apply. */
  1853. #ifdef __cplusplus
  1854. extern "C"
  1855. #endif
  1856. char $2 ();
  1857. /* The GNU C library defines this for functions which it implements
  1858. to always fail with ENOSYS. Some functions are actually named
  1859. something starting with __ and the normal name is an alias. */
  1860. #if defined __stub_$2 || defined __stub___$2
  1861. choke me
  1862. #endif
  1863. int
  1864. main ()
  1865. {
  1866. return $2 ();
  1867. ;
  1868. return 0;
  1869. }
  1870. _ACEOF
  1871. if ac_fn_c_try_link "$LINENO"; then :
  1872. eval "$3=yes"
  1873. else
  1874. eval "$3=no"
  1875. fi
  1876. rm -f core conftest.err conftest.$ac_objext \
  1877. conftest$ac_exeext conftest.$ac_ext
  1878. fi
  1879. eval ac_res=\$$3
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1881. $as_echo "$ac_res" >&6; }
  1882. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1883. } # ac_fn_c_check_func
  1884. cat >config.log <<_ACEOF
  1885. This file contains any messages produced by compilers while
  1886. running configure, to aid debugging if configure makes a mistake.
  1887. It was created by $as_me, which was
  1888. generated by GNU Autoconf 2.68. Invocation command line was
  1889. $ $0 $@
  1890. _ACEOF
  1891. exec 5>>config.log
  1892. {
  1893. cat <<_ASUNAME
  1894. ## --------- ##
  1895. ## Platform. ##
  1896. ## --------- ##
  1897. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1898. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1899. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1900. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1901. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1902. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1903. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1904. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1905. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1906. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1907. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1908. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1909. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1910. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1911. _ASUNAME
  1912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1913. for as_dir in $PATH
  1914. do
  1915. IFS=$as_save_IFS
  1916. test -z "$as_dir" && as_dir=.
  1917. $as_echo "PATH: $as_dir"
  1918. done
  1919. IFS=$as_save_IFS
  1920. } >&5
  1921. cat >&5 <<_ACEOF
  1922. ## ----------- ##
  1923. ## Core tests. ##
  1924. ## ----------- ##
  1925. _ACEOF
  1926. # Keep a trace of the command line.
  1927. # Strip out --no-create and --no-recursion so they do not pile up.
  1928. # Strip out --silent because we don't want to record it for future runs.
  1929. # Also quote any args containing shell meta-characters.
  1930. # Make two passes to allow for proper duplicate-argument suppression.
  1931. ac_configure_args=
  1932. ac_configure_args0=
  1933. ac_configure_args1=
  1934. ac_must_keep_next=false
  1935. for ac_pass in 1 2
  1936. do
  1937. for ac_arg
  1938. do
  1939. case $ac_arg in
  1940. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1941. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1942. | -silent | --silent | --silen | --sile | --sil)
  1943. continue ;;
  1944. *\'*)
  1945. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1946. esac
  1947. case $ac_pass in
  1948. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1949. 2)
  1950. as_fn_append ac_configure_args1 " '$ac_arg'"
  1951. if test $ac_must_keep_next = true; then
  1952. ac_must_keep_next=false # Got value, back to normal.
  1953. else
  1954. case $ac_arg in
  1955. *=* | --config-cache | -C | -disable-* | --disable-* \
  1956. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1957. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1958. | -with-* | --with-* | -without-* | --without-* | --x)
  1959. case "$ac_configure_args0 " in
  1960. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1961. esac
  1962. ;;
  1963. -* ) ac_must_keep_next=true ;;
  1964. esac
  1965. fi
  1966. as_fn_append ac_configure_args " '$ac_arg'"
  1967. ;;
  1968. esac
  1969. done
  1970. done
  1971. { ac_configure_args0=; unset ac_configure_args0;}
  1972. { ac_configure_args1=; unset ac_configure_args1;}
  1973. # When interrupted or exit'd, cleanup temporary files, and complete
  1974. # config.log. We remove comments because anyway the quotes in there
  1975. # would cause problems or look ugly.
  1976. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1977. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1978. trap 'exit_status=$?
  1979. # Save into config.log some information that might help in debugging.
  1980. {
  1981. echo
  1982. $as_echo "## ---------------- ##
  1983. ## Cache variables. ##
  1984. ## ---------------- ##"
  1985. echo
  1986. # The following way of writing the cache mishandles newlines in values,
  1987. (
  1988. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1989. eval ac_val=\$$ac_var
  1990. case $ac_val in #(
  1991. *${as_nl}*)
  1992. case $ac_var in #(
  1993. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1994. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1995. esac
  1996. case $ac_var in #(
  1997. _ | IFS | as_nl) ;; #(
  1998. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1999. *) { eval $ac_var=; unset $ac_var;} ;;
  2000. esac ;;
  2001. esac
  2002. done
  2003. (set) 2>&1 |
  2004. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2005. *${as_nl}ac_space=\ *)
  2006. sed -n \
  2007. "s/'\''/'\''\\\\'\'''\''/g;
  2008. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2009. ;; #(
  2010. *)
  2011. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2012. ;;
  2013. esac |
  2014. sort
  2015. )
  2016. echo
  2017. $as_echo "## ----------------- ##
  2018. ## Output variables. ##
  2019. ## ----------------- ##"
  2020. echo
  2021. for ac_var in $ac_subst_vars
  2022. do
  2023. eval ac_val=\$$ac_var
  2024. case $ac_val in
  2025. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2026. esac
  2027. $as_echo "$ac_var='\''$ac_val'\''"
  2028. done | sort
  2029. echo
  2030. if test -n "$ac_subst_files"; then
  2031. $as_echo "## ------------------- ##
  2032. ## File substitutions. ##
  2033. ## ------------------- ##"
  2034. echo
  2035. for ac_var in $ac_subst_files
  2036. do
  2037. eval ac_val=\$$ac_var
  2038. case $ac_val in
  2039. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2040. esac
  2041. $as_echo "$ac_var='\''$ac_val'\''"
  2042. done | sort
  2043. echo
  2044. fi
  2045. if test -s confdefs.h; then
  2046. $as_echo "## ----------- ##
  2047. ## confdefs.h. ##
  2048. ## ----------- ##"
  2049. echo
  2050. cat confdefs.h
  2051. echo
  2052. fi
  2053. test "$ac_signal" != 0 &&
  2054. $as_echo "$as_me: caught signal $ac_signal"
  2055. $as_echo "$as_me: exit $exit_status"
  2056. } >&5
  2057. rm -f core *.core core.conftest.* &&
  2058. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2059. exit $exit_status
  2060. ' 0
  2061. for ac_signal in 1 2 13 15; do
  2062. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2063. done
  2064. ac_signal=0
  2065. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2066. rm -f -r conftest* confdefs.h
  2067. $as_echo "/* confdefs.h */" > confdefs.h
  2068. # Predefined preprocessor variables.
  2069. cat >>confdefs.h <<_ACEOF
  2070. #define PACKAGE_NAME "$PACKAGE_NAME"
  2071. _ACEOF
  2072. cat >>confdefs.h <<_ACEOF
  2073. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2074. _ACEOF
  2075. cat >>confdefs.h <<_ACEOF
  2076. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2077. _ACEOF
  2078. cat >>confdefs.h <<_ACEOF
  2079. #define PACKAGE_STRING "$PACKAGE_STRING"
  2080. _ACEOF
  2081. cat >>confdefs.h <<_ACEOF
  2082. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2083. _ACEOF
  2084. cat >>confdefs.h <<_ACEOF
  2085. #define PACKAGE_URL "$PACKAGE_URL"
  2086. _ACEOF
  2087. # Let the site file select an alternate cache file if it wants to.
  2088. # Prefer an explicitly selected file to automatically selected ones.
  2089. ac_site_file1=NONE
  2090. ac_site_file2=NONE
  2091. if test -n "$CONFIG_SITE"; then
  2092. # We do not want a PATH search for config.site.
  2093. case $CONFIG_SITE in #((
  2094. -*) ac_site_file1=./$CONFIG_SITE;;
  2095. */*) ac_site_file1=$CONFIG_SITE;;
  2096. *) ac_site_file1=./$CONFIG_SITE;;
  2097. esac
  2098. elif test "x$prefix" != xNONE; then
  2099. ac_site_file1=$prefix/share/config.site
  2100. ac_site_file2=$prefix/etc/config.site
  2101. else
  2102. ac_site_file1=$ac_default_prefix/share/config.site
  2103. ac_site_file2=$ac_default_prefix/etc/config.site
  2104. fi
  2105. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2106. do
  2107. test "x$ac_site_file" = xNONE && continue
  2108. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2110. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2111. sed 's/^/| /' "$ac_site_file" >&5
  2112. . "$ac_site_file" \
  2113. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2114. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2115. as_fn_error $? "failed to load site script $ac_site_file
  2116. See \`config.log' for more details" "$LINENO" 5; }
  2117. fi
  2118. done
  2119. if test -r "$cache_file"; then
  2120. # Some versions of bash will fail to source /dev/null (special files
  2121. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2122. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2124. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2125. case $cache_file in
  2126. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2127. *) . "./$cache_file";;
  2128. esac
  2129. fi
  2130. else
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2132. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2133. >$cache_file
  2134. fi
  2135. # Check that the precious variables saved in the cache have kept the same
  2136. # value.
  2137. ac_cache_corrupted=false
  2138. for ac_var in $ac_precious_vars; do
  2139. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2140. eval ac_new_set=\$ac_env_${ac_var}_set
  2141. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2142. eval ac_new_val=\$ac_env_${ac_var}_value
  2143. case $ac_old_set,$ac_new_set in
  2144. set,)
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2146. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2147. ac_cache_corrupted=: ;;
  2148. ,set)
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2150. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2151. ac_cache_corrupted=: ;;
  2152. ,);;
  2153. *)
  2154. if test "x$ac_old_val" != "x$ac_new_val"; then
  2155. # differences in whitespace do not lead to failure.
  2156. ac_old_val_w=`echo x $ac_old_val`
  2157. ac_new_val_w=`echo x $ac_new_val`
  2158. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2160. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2161. ac_cache_corrupted=:
  2162. else
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2164. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2165. eval $ac_var=\$ac_old_val
  2166. fi
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2168. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2170. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2171. fi;;
  2172. esac
  2173. # Pass precious variables to config.status.
  2174. if test "$ac_new_set" = set; then
  2175. case $ac_new_val in
  2176. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2177. *) ac_arg=$ac_var=$ac_new_val ;;
  2178. esac
  2179. case " $ac_configure_args " in
  2180. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2181. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2182. esac
  2183. fi
  2184. done
  2185. if $ac_cache_corrupted; then
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2187. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2189. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2190. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2191. fi
  2192. ## -------------------- ##
  2193. ## Main body of script. ##
  2194. ## -------------------- ##
  2195. ac_ext=c
  2196. ac_cpp='$CPP $CPPFLAGS'
  2197. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2198. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2199. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2200. if test `uname` = Darwin; then
  2201. if test "x$with_archflags" != x ; then
  2202. CFLAGS="$CFLAGS $with_archflags"
  2203. fi
  2204. USEMMFILES="Yes"
  2205. else
  2206. USEMMFILES="No"
  2207. fi
  2208. FL_MAJOR_VERSION=1
  2209. FL_MINOR_VERSION=3
  2210. FL_PATCH_VERSION=0
  2211. FL_API_VERSION=${FL_MAJOR_VERSION}.${FL_MINOR_VERSION}
  2212. uname=`uname`
  2213. uversion=`uname -r | sed -e '1,$s/[^0-9]//g'`
  2214. if test "x$uname" = xIRIX64; then
  2215. uname="IRIX"
  2216. fi
  2217. if test "x$uname" = x; then
  2218. # Older MinGW doesn't provide any output when uname is run, even with "-s".
  2219. # Current MinGW (as of Jan. 2011) however does, so this is not necessary anymore...
  2220. uname="MINGW"
  2221. fi
  2222. ARCHFLAGS="${ARCHFLAGS:=}"
  2223. CFLAGS="${CFLAGS:=}"
  2224. CPPFLAGS="${CPPFLAGS:=}"
  2225. CXXFLAGS="${CXXFLAGS:=}"
  2226. DSOFLAGS="${DSOFLAGS:=}"
  2227. LDFLAGS="${LDFLAGS:=}"
  2228. OPTIM="${OPTIM:=}"
  2229. if test "x$cross_compiling" != xno ; then
  2230. case $host_alias in
  2231. *mingw*)
  2232. uname=MINGW
  2233. ;;
  2234. esac
  2235. fi
  2236. uname_GUI=$uname
  2237. case $uname in
  2238. CYGWIN*)
  2239. # Handle Cygwin option *first*, before all other tests.
  2240. # Check whether --enable-cygwin was given.
  2241. if test "${enable_cygwin+set}" = set; then :
  2242. enableval=$enable_cygwin;
  2243. fi
  2244. # Check whether --enable-x11 was given.
  2245. if test "${enable_x11+set}" = set; then :
  2246. enableval=$enable_x11;
  2247. fi
  2248. if test x$enable_cygwin != xyes; then
  2249. # NOTE: We can't use ARCHFLAGS for this, since it does not work
  2250. # with some of the function tests - Cygwin uses a
  2251. # different C library...
  2252. CFLAGS="$CFLAGS -mno-cygwin"
  2253. CPPFLAGS="$CPPFLAGS -mno-cygwin"
  2254. CXXFLAGS="$CXXFLAGS -mno-cygwin"
  2255. LDFLAGS="$LDFLAGS -mno-cygwin"
  2256. DSOFLAGS="$DSOFLAGS -mno-cygwin"
  2257. else
  2258. # we target Cygwin in combination with X11
  2259. if test x$enable_x11 = xyes; then
  2260. uname_GUI="X11$uname"
  2261. fi
  2262. fi
  2263. ;;
  2264. esac
  2265. LINKFLTK="../lib/libntk.a"
  2266. LINKFLTKFORMS="../lib/libntk_forms.a"
  2267. LINKFLTKGL="../lib/libntk_gl.a"
  2268. LINKFLTKIMG="../lib/libntk_images.a"
  2269. GLDEMOS="gldemos"
  2270. LIBEXT=".a"
  2271. LIBNAME="../lib/libntk.a"
  2272. FLLIBNAME="../lib/libntk_forms.a"
  2273. GLLIBNAME="../lib/libntk_gl.a"
  2274. IMGLIBNAME="../lib/libntk_images.a"
  2275. LIBBASENAME="libntk.a"
  2276. FLLIBBASENAME="libntk_forms.a"
  2277. GLLIBBASENAME="libntk_gl.a"
  2278. IMGLIBBASENAME="libntk_images.a"
  2279. CAIRODIR=""
  2280. CAIROFLAGS=""
  2281. LINKFLTKCAIRO=""
  2282. FLTKCAIROOPTION=""
  2283. CAIROLIBS=""
  2284. # Check whether --enable-cairoext was given.
  2285. if test "${enable_cairoext+set}" = set; then :
  2286. enableval=$enable_cairoext;
  2287. fi
  2288. # Check whether --enable-cairo was given.
  2289. if test "${enable_cairo+set}" = set; then :
  2290. enableval=$enable_cairo;
  2291. fi
  2292. if test x$enable_cairoext = xyes; then
  2293. $as_echo "#define FLTK_USE_CAIRO 1" >>confdefs.h
  2294. $as_echo "#define FLTK_HAVE_CAIRO 1" >>confdefs.h
  2295. CAIRODIR="cairo"
  2296. CAIROFLAGS="`pkg-config --cflags cairo`"
  2297. CAIROLIBS="-lcairo -lpixman-1"
  2298. CXXFLAGS="$CAIROFLAGS $CXXFLAGS"
  2299. LIBS="$CAIROLIBS $LIBS"
  2300. LINKFLTK+=" $LINKFLTKCAIRO"
  2301. else
  2302. if test x$enable_cairo = xyes; then
  2303. $as_echo "#define FLTK_HAVE_CAIRO 1" >>confdefs.h
  2304. CAIRODIR="cairo"
  2305. CAIROFLAGS="`pkg-config --cflags cairo`"
  2306. CAIROLIBS="-lcairo -lpixman-1"
  2307. CXXFLAGS="$CAIROFLAGS $CXXFLAGS"
  2308. fi
  2309. fi
  2310. # Check whether --enable-debug was given.
  2311. if test "${enable_debug+set}" = set; then :
  2312. enableval=$enable_debug;
  2313. fi
  2314. if test x$enable_debug = xyes; then
  2315. DEBUGFLAG="-g "
  2316. else
  2317. DEBUGFLAG=""
  2318. fi
  2319. # Check whether --enable-cp936 was given.
  2320. if test "${enable_cp936+set}" = set; then :
  2321. enableval=$enable_cp936;
  2322. fi
  2323. if test x$enable_cp936 = xyes; then
  2324. CFLAGS="$CFLAGS -DCP936"
  2325. fi
  2326. # Check whether --enable-gl was given.
  2327. if test "${enable_gl+set}" = set; then :
  2328. enableval=$enable_gl;
  2329. fi
  2330. # Check whether --enable-shared was given.
  2331. if test "${enable_shared+set}" = set; then :
  2332. enableval=$enable_shared;
  2333. fi
  2334. if test x$enable_shared = xyes; then
  2335. PICFLAG=1
  2336. SHAREDSUFFIX=""
  2337. FLUID="fluid-shared"
  2338. case $uname in
  2339. Darwin*)
  2340. DSONAME="libntk.$FL_API_VERSION.dylib"
  2341. FLDSONAME="libntk_forms.$FL_API_VERSION.dylib"
  2342. GLDSONAME="libntk_gl.$FL_API_VERSION.dylib"
  2343. IMGDSONAME="libntk_images.$FL_API_VERSION.dylib"
  2344. DSOCOMMAND="\$(CXX) \$(ARCHFLAGS) \$(DSOFLAGS) -dynamiclib -lc -o"
  2345. ;;
  2346. SunOS* | UNIX_S*)
  2347. DSONAME="libntk.so.$FL_API_VERSION"
  2348. FLDSONAME="libntk_forms.so.$FL_API_VERSION"
  2349. GLDSONAME="libntk_gl.so.$FL_API_VERSION"
  2350. IMGDSONAME="libntk_images.so.$FL_API_VERSION"
  2351. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -h \$@ \$(LDLIBS) -G $DEBUGFLAG -o"
  2352. if test "x$libdir" != "x/usr/lib"; then
  2353. DSOLINK="-R$libdir"
  2354. fi
  2355. ;;
  2356. HP-UX*)
  2357. DSONAME="libntk.sl.$FL_API_VERSION"
  2358. FLDSONAME="libntk_forms.sl.$FL_API_VERSION"
  2359. GLDSONAME="libntk_gl.sl.$FL_API_VERSION"
  2360. IMGDSONAME="libntk_images.sl.$FL_API_VERSION"
  2361. DSOCOMMAND="ld \$(DSOFLAGS) -b -z +h \$@ $DEBUGFLAG -o"
  2362. if test "x$libdir" != "x/usr/lib"; then
  2363. DSOLINK="-Wl,-rpath,$libdir"
  2364. fi
  2365. ;;
  2366. IRIX*)
  2367. DSONAME="libntk.so.$FL_API_VERSION"
  2368. FLDSONAME="libntk_forms.so.$FL_API_VERSION"
  2369. GLDSONAME="libntk_gl.so.$FL_API_VERSION"
  2370. IMGDSONAME="libntk_images.so.$FL_API_VERSION"
  2371. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@,-set_version,sgi1.1 \$(LDLIBS) -shared $DEBUGFLAG -o"
  2372. if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib32" -a "x$libdir" != "x/usr/lib64"; then
  2373. DSOLINK="-Wl,-rpath,$libdir"
  2374. fi
  2375. ;;
  2376. OSF1*)
  2377. DSONAME="libntk.so.$FL_API_VERSION"
  2378. FLDSONAME="libntk_forms.so.$FL_API_VERSION"
  2379. GLDSONAME="libntk_gl.so.$FL_API_VERSION"
  2380. IMGDSONAME="libntk_images.so.$FL_API_VERSION"
  2381. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
  2382. if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib32"; then
  2383. DSOLINK="-Wl,-rpath,$libdir"
  2384. fi
  2385. ;;
  2386. Linux* | *BSD*)
  2387. DSONAME="libntk.so.$FL_API_VERSION"
  2388. FLDSONAME="libntk_forms.so.$FL_API_VERSION"
  2389. GLDSONAME="libntk_gl.so.$FL_API_VERSION"
  2390. IMGDSONAME="libntk_images.so.$FL_API_VERSION"
  2391. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared -fPIC $DEBUGFLAG -o"
  2392. if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib64"; then
  2393. DSOLINK="-Wl,-rpath,$libdir"
  2394. fi
  2395. ;;
  2396. AIX*)
  2397. DSONAME="libntk_s.a"
  2398. FLDSONAME="libntk_forms_s.a"
  2399. GLDSONAME="libntk_gl_s.a"
  2400. IMGDSONAME="libntk_images_s.a"
  2401. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-bexpall,-bM:SRE,-bnoentry -o"
  2402. SHAREDSUFFIX="_s"
  2403. ;;
  2404. CYGWIN* | MINGW*)
  2405. PICFLAG=0
  2406. if test x$enable_cygwin != xyes; then
  2407. DSONAME="mgwntknox-$FL_API_VERSION.dll"
  2408. FLDSONAME="mgwntknox_forms-$FL_API_VERSION.dll"
  2409. GLDSONAME="mgwntknox_gl-$FL_API_VERSION.dll"
  2410. IMGDSONAME="mgwntknox_images-$FL_API_VERSION.dll"
  2411. CAIRODSONAME="mgwntknox_cairo-$FL_API_VERSION.dll"
  2412. else
  2413. if test x$enable_x11 = xyes; then
  2414. DSONAME="cygntk-$FL_API_VERSION.dll"
  2415. FLDSONAME="cygntk_forms-$FL_API_VERSION.dll"
  2416. GLDSONAME="cygntk_gl-$FL_API_VERSION.dll"
  2417. IMGDSONAME="cygntk_images-$FL_API_VERSION.dll"
  2418. else
  2419. DSONAME="cygntknox-$FL_API_VERSION.dll"
  2420. FLDSONAME="cygntknox_forms-$FL_API_VERSION.dll"
  2421. GLDSONAME="cygntknox_gl-$FL_API_VERSION.dll"
  2422. IMGDSONAME="cygntknox_images-$FL_API_VERSION.dll"
  2423. CAIRODSONAME="cygntknox_cairo-$FL_API_VERSION.dll"
  2424. fi
  2425. fi
  2426. #-----------------------------------------------------------
  2427. # -Wl,--enable-runtime-pseudo-reloc: See str 1585
  2428. # appears to be necessary for older binutils versions < 2.16
  2429. #-----------------------------------------------------------
  2430. LDFLAGS="$LDFLAGS -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc"
  2431. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -shared \
  2432. -Wl,--whole-archive -Wl,--export-all-symbols \
  2433. -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-import \
  2434. -Wl,--enable-auto-image-base -o \$@"
  2435. ;;
  2436. *)
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Shared libraries may not be supported. Trying -shared option with compiler." >&5
  2438. $as_echo "$as_me: WARNING: Shared libraries may not be supported. Trying -shared option with compiler." >&2;}
  2439. DSONAME="libntk.so.$FL_API_VERSION"
  2440. FLDSONAME="libntk_forms.so.$FL_API_VERSION"
  2441. GLDSONAME="libntk_gl.so.$FL_API_VERSION"
  2442. IMGDSONAME="libntk_images.so.$FL_API_VERSION"
  2443. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
  2444. ;;
  2445. esac
  2446. LINKSHARED="-L../src $FLTKCAIROOPTION -lntk_images$SHAREDSUFFIX -lntk_forms$SHAREDSUFFIX -lntk$SHAREDSUFFIX"
  2447. else
  2448. DSOCOMMAND="echo"
  2449. DSOLINK=""
  2450. DSONAME=""
  2451. FLDSONAME=""
  2452. GLDSONAME=""
  2453. IMGDSONAME=""
  2454. CAIRODSONAME=""
  2455. PICFLAG=0
  2456. SHAREDSUFFIX=""
  2457. FLUID="fluid"
  2458. LINKSHARED="$LINKFLTKCAIRO ../lib/libntk_images.a ../lib/libntk_forms.a ../lib/libntk.a"
  2459. fi
  2460. # Check whether --enable-threads was given.
  2461. if test "${enable_threads+set}" = set; then :
  2462. enableval=$enable_threads;
  2463. fi
  2464. # Check whether --with-optim was given.
  2465. if test "${with_optim+set}" = set; then :
  2466. withval=$with_optim;
  2467. fi
  2468. # Check whether --with-archflags was given.
  2469. if test "${with_archflags+set}" = set; then :
  2470. withval=$with_archflags; ARCHFLAGS="$withval"
  2471. fi
  2472. case $uname in
  2473. Darwin*)
  2474. # QD is not supported anymore since 1.3
  2475. $as_echo "#define __APPLE_QUARTZ__ 1" >>confdefs.h
  2476. ;;
  2477. esac
  2478. ac_ext=c
  2479. ac_cpp='$CPP $CPPFLAGS'
  2480. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2481. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2482. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2483. if test -n "$ac_tool_prefix"; then
  2484. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2485. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2487. $as_echo_n "checking for $ac_word... " >&6; }
  2488. if ${ac_cv_prog_CC+:} false; then :
  2489. $as_echo_n "(cached) " >&6
  2490. else
  2491. if test -n "$CC"; then
  2492. ac_cv_prog_CC="$CC" # Let the user override the test.
  2493. else
  2494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2495. for as_dir in $PATH
  2496. do
  2497. IFS=$as_save_IFS
  2498. test -z "$as_dir" && as_dir=.
  2499. for ac_exec_ext in '' $ac_executable_extensions; do
  2500. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2501. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2503. break 2
  2504. fi
  2505. done
  2506. done
  2507. IFS=$as_save_IFS
  2508. fi
  2509. fi
  2510. CC=$ac_cv_prog_CC
  2511. if test -n "$CC"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2513. $as_echo "$CC" >&6; }
  2514. else
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2516. $as_echo "no" >&6; }
  2517. fi
  2518. fi
  2519. if test -z "$ac_cv_prog_CC"; then
  2520. ac_ct_CC=$CC
  2521. # Extract the first word of "gcc", so it can be a program name with args.
  2522. set dummy gcc; ac_word=$2
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2524. $as_echo_n "checking for $ac_word... " >&6; }
  2525. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2526. $as_echo_n "(cached) " >&6
  2527. else
  2528. if test -n "$ac_ct_CC"; then
  2529. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2530. else
  2531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2532. for as_dir in $PATH
  2533. do
  2534. IFS=$as_save_IFS
  2535. test -z "$as_dir" && as_dir=.
  2536. for ac_exec_ext in '' $ac_executable_extensions; do
  2537. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2538. ac_cv_prog_ac_ct_CC="gcc"
  2539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2540. break 2
  2541. fi
  2542. done
  2543. done
  2544. IFS=$as_save_IFS
  2545. fi
  2546. fi
  2547. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2548. if test -n "$ac_ct_CC"; then
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2550. $as_echo "$ac_ct_CC" >&6; }
  2551. else
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2553. $as_echo "no" >&6; }
  2554. fi
  2555. if test "x$ac_ct_CC" = x; then
  2556. CC=""
  2557. else
  2558. case $cross_compiling:$ac_tool_warned in
  2559. yes:)
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2561. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2562. ac_tool_warned=yes ;;
  2563. esac
  2564. CC=$ac_ct_CC
  2565. fi
  2566. else
  2567. CC="$ac_cv_prog_CC"
  2568. fi
  2569. if test -z "$CC"; then
  2570. if test -n "$ac_tool_prefix"; then
  2571. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2572. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2574. $as_echo_n "checking for $ac_word... " >&6; }
  2575. if ${ac_cv_prog_CC+:} false; then :
  2576. $as_echo_n "(cached) " >&6
  2577. else
  2578. if test -n "$CC"; then
  2579. ac_cv_prog_CC="$CC" # Let the user override the test.
  2580. else
  2581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2582. for as_dir in $PATH
  2583. do
  2584. IFS=$as_save_IFS
  2585. test -z "$as_dir" && as_dir=.
  2586. for ac_exec_ext in '' $ac_executable_extensions; do
  2587. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2588. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2590. break 2
  2591. fi
  2592. done
  2593. done
  2594. IFS=$as_save_IFS
  2595. fi
  2596. fi
  2597. CC=$ac_cv_prog_CC
  2598. if test -n "$CC"; then
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2600. $as_echo "$CC" >&6; }
  2601. else
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2603. $as_echo "no" >&6; }
  2604. fi
  2605. fi
  2606. fi
  2607. if test -z "$CC"; then
  2608. # Extract the first word of "cc", so it can be a program name with args.
  2609. set dummy cc; ac_word=$2
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2611. $as_echo_n "checking for $ac_word... " >&6; }
  2612. if ${ac_cv_prog_CC+:} false; then :
  2613. $as_echo_n "(cached) " >&6
  2614. else
  2615. if test -n "$CC"; then
  2616. ac_cv_prog_CC="$CC" # Let the user override the test.
  2617. else
  2618. ac_prog_rejected=no
  2619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2620. for as_dir in $PATH
  2621. do
  2622. IFS=$as_save_IFS
  2623. test -z "$as_dir" && as_dir=.
  2624. for ac_exec_ext in '' $ac_executable_extensions; do
  2625. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2626. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2627. ac_prog_rejected=yes
  2628. continue
  2629. fi
  2630. ac_cv_prog_CC="cc"
  2631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2632. break 2
  2633. fi
  2634. done
  2635. done
  2636. IFS=$as_save_IFS
  2637. if test $ac_prog_rejected = yes; then
  2638. # We found a bogon in the path, so make sure we never use it.
  2639. set dummy $ac_cv_prog_CC
  2640. shift
  2641. if test $# != 0; then
  2642. # We chose a different compiler from the bogus one.
  2643. # However, it has the same basename, so the bogon will be chosen
  2644. # first if we set CC to just the basename; use the full file name.
  2645. shift
  2646. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2647. fi
  2648. fi
  2649. fi
  2650. fi
  2651. CC=$ac_cv_prog_CC
  2652. if test -n "$CC"; then
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2654. $as_echo "$CC" >&6; }
  2655. else
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2657. $as_echo "no" >&6; }
  2658. fi
  2659. fi
  2660. if test -z "$CC"; then
  2661. if test -n "$ac_tool_prefix"; then
  2662. for ac_prog in cl.exe
  2663. do
  2664. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2665. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2667. $as_echo_n "checking for $ac_word... " >&6; }
  2668. if ${ac_cv_prog_CC+:} false; then :
  2669. $as_echo_n "(cached) " >&6
  2670. else
  2671. if test -n "$CC"; then
  2672. ac_cv_prog_CC="$CC" # Let the user override the test.
  2673. else
  2674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2675. for as_dir in $PATH
  2676. do
  2677. IFS=$as_save_IFS
  2678. test -z "$as_dir" && as_dir=.
  2679. for ac_exec_ext in '' $ac_executable_extensions; do
  2680. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2681. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2683. break 2
  2684. fi
  2685. done
  2686. done
  2687. IFS=$as_save_IFS
  2688. fi
  2689. fi
  2690. CC=$ac_cv_prog_CC
  2691. if test -n "$CC"; then
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2693. $as_echo "$CC" >&6; }
  2694. else
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2696. $as_echo "no" >&6; }
  2697. fi
  2698. test -n "$CC" && break
  2699. done
  2700. fi
  2701. if test -z "$CC"; then
  2702. ac_ct_CC=$CC
  2703. for ac_prog in cl.exe
  2704. do
  2705. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2706. set dummy $ac_prog; ac_word=$2
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2708. $as_echo_n "checking for $ac_word... " >&6; }
  2709. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2710. $as_echo_n "(cached) " >&6
  2711. else
  2712. if test -n "$ac_ct_CC"; then
  2713. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2714. else
  2715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2716. for as_dir in $PATH
  2717. do
  2718. IFS=$as_save_IFS
  2719. test -z "$as_dir" && as_dir=.
  2720. for ac_exec_ext in '' $ac_executable_extensions; do
  2721. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2722. ac_cv_prog_ac_ct_CC="$ac_prog"
  2723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2724. break 2
  2725. fi
  2726. done
  2727. done
  2728. IFS=$as_save_IFS
  2729. fi
  2730. fi
  2731. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2732. if test -n "$ac_ct_CC"; then
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2734. $as_echo "$ac_ct_CC" >&6; }
  2735. else
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2737. $as_echo "no" >&6; }
  2738. fi
  2739. test -n "$ac_ct_CC" && break
  2740. done
  2741. if test "x$ac_ct_CC" = x; then
  2742. CC=""
  2743. else
  2744. case $cross_compiling:$ac_tool_warned in
  2745. yes:)
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2747. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2748. ac_tool_warned=yes ;;
  2749. esac
  2750. CC=$ac_ct_CC
  2751. fi
  2752. fi
  2753. fi
  2754. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2755. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2756. as_fn_error $? "no acceptable C compiler found in \$PATH
  2757. See \`config.log' for more details" "$LINENO" 5; }
  2758. # Provide some information about the compiler.
  2759. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2760. set X $ac_compile
  2761. ac_compiler=$2
  2762. for ac_option in --version -v -V -qversion; do
  2763. { { ac_try="$ac_compiler $ac_option >&5"
  2764. case "(($ac_try" in
  2765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2766. *) ac_try_echo=$ac_try;;
  2767. esac
  2768. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2769. $as_echo "$ac_try_echo"; } >&5
  2770. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2771. ac_status=$?
  2772. if test -s conftest.err; then
  2773. sed '10a\
  2774. ... rest of stderr output deleted ...
  2775. 10q' conftest.err >conftest.er1
  2776. cat conftest.er1 >&5
  2777. fi
  2778. rm -f conftest.er1 conftest.err
  2779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2780. test $ac_status = 0; }
  2781. done
  2782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2783. /* end confdefs.h. */
  2784. int
  2785. main ()
  2786. {
  2787. ;
  2788. return 0;
  2789. }
  2790. _ACEOF
  2791. ac_clean_files_save=$ac_clean_files
  2792. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2793. # Try to create an executable without -o first, disregard a.out.
  2794. # It will help us diagnose broken compilers, and finding out an intuition
  2795. # of exeext.
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2797. $as_echo_n "checking whether the C compiler works... " >&6; }
  2798. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2799. # The possible output files:
  2800. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2801. ac_rmfiles=
  2802. for ac_file in $ac_files
  2803. do
  2804. case $ac_file in
  2805. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2806. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2807. esac
  2808. done
  2809. rm -f $ac_rmfiles
  2810. if { { ac_try="$ac_link_default"
  2811. case "(($ac_try" in
  2812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2813. *) ac_try_echo=$ac_try;;
  2814. esac
  2815. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2816. $as_echo "$ac_try_echo"; } >&5
  2817. (eval "$ac_link_default") 2>&5
  2818. ac_status=$?
  2819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2820. test $ac_status = 0; }; then :
  2821. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2822. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2823. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2824. # so that the user can short-circuit this test for compilers unknown to
  2825. # Autoconf.
  2826. for ac_file in $ac_files ''
  2827. do
  2828. test -f "$ac_file" || continue
  2829. case $ac_file in
  2830. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2831. ;;
  2832. [ab].out )
  2833. # We found the default executable, but exeext='' is most
  2834. # certainly right.
  2835. break;;
  2836. *.* )
  2837. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2838. then :; else
  2839. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2840. fi
  2841. # We set ac_cv_exeext here because the later test for it is not
  2842. # safe: cross compilers may not add the suffix if given an `-o'
  2843. # argument, so we may need to know it at that point already.
  2844. # Even if this section looks crufty: it has the advantage of
  2845. # actually working.
  2846. break;;
  2847. * )
  2848. break;;
  2849. esac
  2850. done
  2851. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2852. else
  2853. ac_file=''
  2854. fi
  2855. if test -z "$ac_file"; then :
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2857. $as_echo "no" >&6; }
  2858. $as_echo "$as_me: failed program was:" >&5
  2859. sed 's/^/| /' conftest.$ac_ext >&5
  2860. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2861. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2862. as_fn_error 77 "C compiler cannot create executables
  2863. See \`config.log' for more details" "$LINENO" 5; }
  2864. else
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2866. $as_echo "yes" >&6; }
  2867. fi
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2869. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2871. $as_echo "$ac_file" >&6; }
  2872. ac_exeext=$ac_cv_exeext
  2873. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2874. ac_clean_files=$ac_clean_files_save
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2876. $as_echo_n "checking for suffix of executables... " >&6; }
  2877. if { { ac_try="$ac_link"
  2878. case "(($ac_try" in
  2879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2880. *) ac_try_echo=$ac_try;;
  2881. esac
  2882. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2883. $as_echo "$ac_try_echo"; } >&5
  2884. (eval "$ac_link") 2>&5
  2885. ac_status=$?
  2886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2887. test $ac_status = 0; }; then :
  2888. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2889. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2890. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2891. # `rm'.
  2892. for ac_file in conftest.exe conftest conftest.*; do
  2893. test -f "$ac_file" || continue
  2894. case $ac_file in
  2895. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2896. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2897. break;;
  2898. * ) break;;
  2899. esac
  2900. done
  2901. else
  2902. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2903. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2904. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2905. See \`config.log' for more details" "$LINENO" 5; }
  2906. fi
  2907. rm -f conftest conftest$ac_cv_exeext
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2909. $as_echo "$ac_cv_exeext" >&6; }
  2910. rm -f conftest.$ac_ext
  2911. EXEEXT=$ac_cv_exeext
  2912. ac_exeext=$EXEEXT
  2913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2914. /* end confdefs.h. */
  2915. #include <stdio.h>
  2916. int
  2917. main ()
  2918. {
  2919. FILE *f = fopen ("conftest.out", "w");
  2920. return ferror (f) || fclose (f) != 0;
  2921. ;
  2922. return 0;
  2923. }
  2924. _ACEOF
  2925. ac_clean_files="$ac_clean_files conftest.out"
  2926. # Check that the compiler produces executables we can run. If not, either
  2927. # the compiler is broken, or we cross compile.
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2929. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2930. if test "$cross_compiling" != yes; then
  2931. { { ac_try="$ac_link"
  2932. case "(($ac_try" in
  2933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2934. *) ac_try_echo=$ac_try;;
  2935. esac
  2936. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2937. $as_echo "$ac_try_echo"; } >&5
  2938. (eval "$ac_link") 2>&5
  2939. ac_status=$?
  2940. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2941. test $ac_status = 0; }
  2942. if { ac_try='./conftest$ac_cv_exeext'
  2943. { { case "(($ac_try" in
  2944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2945. *) ac_try_echo=$ac_try;;
  2946. esac
  2947. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2948. $as_echo "$ac_try_echo"; } >&5
  2949. (eval "$ac_try") 2>&5
  2950. ac_status=$?
  2951. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2952. test $ac_status = 0; }; }; then
  2953. cross_compiling=no
  2954. else
  2955. if test "$cross_compiling" = maybe; then
  2956. cross_compiling=yes
  2957. else
  2958. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2959. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2960. as_fn_error $? "cannot run C compiled programs.
  2961. If you meant to cross compile, use \`--host'.
  2962. See \`config.log' for more details" "$LINENO" 5; }
  2963. fi
  2964. fi
  2965. fi
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2967. $as_echo "$cross_compiling" >&6; }
  2968. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2969. ac_clean_files=$ac_clean_files_save
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2971. $as_echo_n "checking for suffix of object files... " >&6; }
  2972. if ${ac_cv_objext+:} false; then :
  2973. $as_echo_n "(cached) " >&6
  2974. else
  2975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2976. /* end confdefs.h. */
  2977. int
  2978. main ()
  2979. {
  2980. ;
  2981. return 0;
  2982. }
  2983. _ACEOF
  2984. rm -f conftest.o conftest.obj
  2985. if { { ac_try="$ac_compile"
  2986. case "(($ac_try" in
  2987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2988. *) ac_try_echo=$ac_try;;
  2989. esac
  2990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2991. $as_echo "$ac_try_echo"; } >&5
  2992. (eval "$ac_compile") 2>&5
  2993. ac_status=$?
  2994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2995. test $ac_status = 0; }; then :
  2996. for ac_file in conftest.o conftest.obj conftest.*; do
  2997. test -f "$ac_file" || continue;
  2998. case $ac_file in
  2999. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3000. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3001. break;;
  3002. esac
  3003. done
  3004. else
  3005. $as_echo "$as_me: failed program was:" >&5
  3006. sed 's/^/| /' conftest.$ac_ext >&5
  3007. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3008. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3009. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3010. See \`config.log' for more details" "$LINENO" 5; }
  3011. fi
  3012. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3013. fi
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3015. $as_echo "$ac_cv_objext" >&6; }
  3016. OBJEXT=$ac_cv_objext
  3017. ac_objext=$OBJEXT
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3019. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3020. if ${ac_cv_c_compiler_gnu+:} false; then :
  3021. $as_echo_n "(cached) " >&6
  3022. else
  3023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3024. /* end confdefs.h. */
  3025. int
  3026. main ()
  3027. {
  3028. #ifndef __GNUC__
  3029. choke me
  3030. #endif
  3031. ;
  3032. return 0;
  3033. }
  3034. _ACEOF
  3035. if ac_fn_c_try_compile "$LINENO"; then :
  3036. ac_compiler_gnu=yes
  3037. else
  3038. ac_compiler_gnu=no
  3039. fi
  3040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3041. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3042. fi
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3044. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3045. if test $ac_compiler_gnu = yes; then
  3046. GCC=yes
  3047. else
  3048. GCC=
  3049. fi
  3050. ac_test_CFLAGS=${CFLAGS+set}
  3051. ac_save_CFLAGS=$CFLAGS
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3053. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3054. if ${ac_cv_prog_cc_g+:} false; then :
  3055. $as_echo_n "(cached) " >&6
  3056. else
  3057. ac_save_c_werror_flag=$ac_c_werror_flag
  3058. ac_c_werror_flag=yes
  3059. ac_cv_prog_cc_g=no
  3060. CFLAGS="-g"
  3061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3062. /* end confdefs.h. */
  3063. int
  3064. main ()
  3065. {
  3066. ;
  3067. return 0;
  3068. }
  3069. _ACEOF
  3070. if ac_fn_c_try_compile "$LINENO"; then :
  3071. ac_cv_prog_cc_g=yes
  3072. else
  3073. CFLAGS=""
  3074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3075. /* end confdefs.h. */
  3076. int
  3077. main ()
  3078. {
  3079. ;
  3080. return 0;
  3081. }
  3082. _ACEOF
  3083. if ac_fn_c_try_compile "$LINENO"; then :
  3084. else
  3085. ac_c_werror_flag=$ac_save_c_werror_flag
  3086. CFLAGS="-g"
  3087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3088. /* end confdefs.h. */
  3089. int
  3090. main ()
  3091. {
  3092. ;
  3093. return 0;
  3094. }
  3095. _ACEOF
  3096. if ac_fn_c_try_compile "$LINENO"; then :
  3097. ac_cv_prog_cc_g=yes
  3098. fi
  3099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3100. fi
  3101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3102. fi
  3103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3104. ac_c_werror_flag=$ac_save_c_werror_flag
  3105. fi
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3107. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3108. if test "$ac_test_CFLAGS" = set; then
  3109. CFLAGS=$ac_save_CFLAGS
  3110. elif test $ac_cv_prog_cc_g = yes; then
  3111. if test "$GCC" = yes; then
  3112. CFLAGS="-g -O2"
  3113. else
  3114. CFLAGS="-g"
  3115. fi
  3116. else
  3117. if test "$GCC" = yes; then
  3118. CFLAGS="-O2"
  3119. else
  3120. CFLAGS=
  3121. fi
  3122. fi
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3124. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3125. if ${ac_cv_prog_cc_c89+:} false; then :
  3126. $as_echo_n "(cached) " >&6
  3127. else
  3128. ac_cv_prog_cc_c89=no
  3129. ac_save_CC=$CC
  3130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3131. /* end confdefs.h. */
  3132. #include <stdarg.h>
  3133. #include <stdio.h>
  3134. #include <sys/types.h>
  3135. #include <sys/stat.h>
  3136. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3137. struct buf { int x; };
  3138. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3139. static char *e (p, i)
  3140. char **p;
  3141. int i;
  3142. {
  3143. return p[i];
  3144. }
  3145. static char *f (char * (*g) (char **, int), char **p, ...)
  3146. {
  3147. char *s;
  3148. va_list v;
  3149. va_start (v,p);
  3150. s = g (p, va_arg (v,int));
  3151. va_end (v);
  3152. return s;
  3153. }
  3154. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3155. function prototypes and stuff, but not '\xHH' hex character constants.
  3156. These don't provoke an error unfortunately, instead are silently treated
  3157. as 'x'. The following induces an error, until -std is added to get
  3158. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3159. array size at least. It's necessary to write '\x00'==0 to get something
  3160. that's true only with -std. */
  3161. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3162. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3163. inside strings and character constants. */
  3164. #define FOO(x) 'x'
  3165. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3166. int test (int i, double x);
  3167. struct s1 {int (*f) (int a);};
  3168. struct s2 {int (*f) (double a);};
  3169. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3170. int argc;
  3171. char **argv;
  3172. int
  3173. main ()
  3174. {
  3175. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3176. ;
  3177. return 0;
  3178. }
  3179. _ACEOF
  3180. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3181. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3182. do
  3183. CC="$ac_save_CC $ac_arg"
  3184. if ac_fn_c_try_compile "$LINENO"; then :
  3185. ac_cv_prog_cc_c89=$ac_arg
  3186. fi
  3187. rm -f core conftest.err conftest.$ac_objext
  3188. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3189. done
  3190. rm -f conftest.$ac_ext
  3191. CC=$ac_save_CC
  3192. fi
  3193. # AC_CACHE_VAL
  3194. case "x$ac_cv_prog_cc_c89" in
  3195. x)
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3197. $as_echo "none needed" >&6; } ;;
  3198. xno)
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3200. $as_echo "unsupported" >&6; } ;;
  3201. *)
  3202. CC="$CC $ac_cv_prog_cc_c89"
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3204. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3205. esac
  3206. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3207. fi
  3208. ac_ext=c
  3209. ac_cpp='$CPP $CPPFLAGS'
  3210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3213. ac_ext=cpp
  3214. ac_cpp='$CXXCPP $CPPFLAGS'
  3215. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3216. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3217. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3218. if test -z "$CXX"; then
  3219. if test -n "$CCC"; then
  3220. CXX=$CCC
  3221. else
  3222. if test -n "$ac_tool_prefix"; then
  3223. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3224. do
  3225. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3226. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3228. $as_echo_n "checking for $ac_word... " >&6; }
  3229. if ${ac_cv_prog_CXX+:} false; then :
  3230. $as_echo_n "(cached) " >&6
  3231. else
  3232. if test -n "$CXX"; then
  3233. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3234. else
  3235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3236. for as_dir in $PATH
  3237. do
  3238. IFS=$as_save_IFS
  3239. test -z "$as_dir" && as_dir=.
  3240. for ac_exec_ext in '' $ac_executable_extensions; do
  3241. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3242. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3244. break 2
  3245. fi
  3246. done
  3247. done
  3248. IFS=$as_save_IFS
  3249. fi
  3250. fi
  3251. CXX=$ac_cv_prog_CXX
  3252. if test -n "$CXX"; then
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3254. $as_echo "$CXX" >&6; }
  3255. else
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3257. $as_echo "no" >&6; }
  3258. fi
  3259. test -n "$CXX" && break
  3260. done
  3261. fi
  3262. if test -z "$CXX"; then
  3263. ac_ct_CXX=$CXX
  3264. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3265. do
  3266. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3267. set dummy $ac_prog; ac_word=$2
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3269. $as_echo_n "checking for $ac_word... " >&6; }
  3270. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3271. $as_echo_n "(cached) " >&6
  3272. else
  3273. if test -n "$ac_ct_CXX"; then
  3274. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3275. else
  3276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3277. for as_dir in $PATH
  3278. do
  3279. IFS=$as_save_IFS
  3280. test -z "$as_dir" && as_dir=.
  3281. for ac_exec_ext in '' $ac_executable_extensions; do
  3282. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3283. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3284. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3285. break 2
  3286. fi
  3287. done
  3288. done
  3289. IFS=$as_save_IFS
  3290. fi
  3291. fi
  3292. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3293. if test -n "$ac_ct_CXX"; then
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3295. $as_echo "$ac_ct_CXX" >&6; }
  3296. else
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3298. $as_echo "no" >&6; }
  3299. fi
  3300. test -n "$ac_ct_CXX" && break
  3301. done
  3302. if test "x$ac_ct_CXX" = x; then
  3303. CXX="g++"
  3304. else
  3305. case $cross_compiling:$ac_tool_warned in
  3306. yes:)
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3308. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3309. ac_tool_warned=yes ;;
  3310. esac
  3311. CXX=$ac_ct_CXX
  3312. fi
  3313. fi
  3314. fi
  3315. fi
  3316. # Provide some information about the compiler.
  3317. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3318. set X $ac_compile
  3319. ac_compiler=$2
  3320. for ac_option in --version -v -V -qversion; do
  3321. { { ac_try="$ac_compiler $ac_option >&5"
  3322. case "(($ac_try" in
  3323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3324. *) ac_try_echo=$ac_try;;
  3325. esac
  3326. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3327. $as_echo "$ac_try_echo"; } >&5
  3328. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3329. ac_status=$?
  3330. if test -s conftest.err; then
  3331. sed '10a\
  3332. ... rest of stderr output deleted ...
  3333. 10q' conftest.err >conftest.er1
  3334. cat conftest.er1 >&5
  3335. fi
  3336. rm -f conftest.er1 conftest.err
  3337. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3338. test $ac_status = 0; }
  3339. done
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3341. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3342. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3343. $as_echo_n "(cached) " >&6
  3344. else
  3345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3346. /* end confdefs.h. */
  3347. int
  3348. main ()
  3349. {
  3350. #ifndef __GNUC__
  3351. choke me
  3352. #endif
  3353. ;
  3354. return 0;
  3355. }
  3356. _ACEOF
  3357. if ac_fn_cxx_try_compile "$LINENO"; then :
  3358. ac_compiler_gnu=yes
  3359. else
  3360. ac_compiler_gnu=no
  3361. fi
  3362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3363. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3364. fi
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3366. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3367. if test $ac_compiler_gnu = yes; then
  3368. GXX=yes
  3369. else
  3370. GXX=
  3371. fi
  3372. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3373. ac_save_CXXFLAGS=$CXXFLAGS
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3375. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3376. if ${ac_cv_prog_cxx_g+:} false; then :
  3377. $as_echo_n "(cached) " >&6
  3378. else
  3379. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3380. ac_cxx_werror_flag=yes
  3381. ac_cv_prog_cxx_g=no
  3382. CXXFLAGS="-g"
  3383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3384. /* end confdefs.h. */
  3385. int
  3386. main ()
  3387. {
  3388. ;
  3389. return 0;
  3390. }
  3391. _ACEOF
  3392. if ac_fn_cxx_try_compile "$LINENO"; then :
  3393. ac_cv_prog_cxx_g=yes
  3394. else
  3395. CXXFLAGS=""
  3396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3397. /* end confdefs.h. */
  3398. int
  3399. main ()
  3400. {
  3401. ;
  3402. return 0;
  3403. }
  3404. _ACEOF
  3405. if ac_fn_cxx_try_compile "$LINENO"; then :
  3406. else
  3407. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3408. CXXFLAGS="-g"
  3409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3410. /* end confdefs.h. */
  3411. int
  3412. main ()
  3413. {
  3414. ;
  3415. return 0;
  3416. }
  3417. _ACEOF
  3418. if ac_fn_cxx_try_compile "$LINENO"; then :
  3419. ac_cv_prog_cxx_g=yes
  3420. fi
  3421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3422. fi
  3423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3424. fi
  3425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3426. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3427. fi
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3429. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3430. if test "$ac_test_CXXFLAGS" = set; then
  3431. CXXFLAGS=$ac_save_CXXFLAGS
  3432. elif test $ac_cv_prog_cxx_g = yes; then
  3433. if test "$GXX" = yes; then
  3434. CXXFLAGS="-g -O2"
  3435. else
  3436. CXXFLAGS="-g"
  3437. fi
  3438. else
  3439. if test "$GXX" = yes; then
  3440. CXXFLAGS="-O2"
  3441. else
  3442. CXXFLAGS=
  3443. fi
  3444. fi
  3445. ac_ext=c
  3446. ac_cpp='$CPP $CPPFLAGS'
  3447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3450. ac_aux_dir=
  3451. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3452. if test -f "$ac_dir/install-sh"; then
  3453. ac_aux_dir=$ac_dir
  3454. ac_install_sh="$ac_aux_dir/install-sh -c"
  3455. break
  3456. elif test -f "$ac_dir/install.sh"; then
  3457. ac_aux_dir=$ac_dir
  3458. ac_install_sh="$ac_aux_dir/install.sh -c"
  3459. break
  3460. elif test -f "$ac_dir/shtool"; then
  3461. ac_aux_dir=$ac_dir
  3462. ac_install_sh="$ac_aux_dir/shtool install -c"
  3463. break
  3464. fi
  3465. done
  3466. if test -z "$ac_aux_dir"; then
  3467. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3468. fi
  3469. # These three variables are undocumented and unsupported,
  3470. # and are intended to be withdrawn in a future Autoconf release.
  3471. # They can cause serious problems if a builder's source tree is in a directory
  3472. # whose full name contains unusual characters.
  3473. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3474. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3475. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3476. # Find a good install program. We prefer a C program (faster),
  3477. # so one script is as good as another. But avoid the broken or
  3478. # incompatible versions:
  3479. # SysV /etc/install, /usr/sbin/install
  3480. # SunOS /usr/etc/install
  3481. # IRIX /sbin/install
  3482. # AIX /bin/install
  3483. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3484. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3485. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3486. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3487. # OS/2's system install, which has a completely different semantic
  3488. # ./install, which can be erroneously created by make from ./install.sh.
  3489. # Reject install programs that cannot install multiple files.
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3491. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3492. if test -z "$INSTALL"; then
  3493. if ${ac_cv_path_install+:} false; then :
  3494. $as_echo_n "(cached) " >&6
  3495. else
  3496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3497. for as_dir in $PATH
  3498. do
  3499. IFS=$as_save_IFS
  3500. test -z "$as_dir" && as_dir=.
  3501. # Account for people who put trailing slashes in PATH elements.
  3502. case $as_dir/ in #((
  3503. ./ | .// | /[cC]/* | \
  3504. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3505. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3506. /usr/ucb/* ) ;;
  3507. *)
  3508. # OSF1 and SCO ODT 3.0 have their own names for install.
  3509. # Don't use installbsd from OSF since it installs stuff as root
  3510. # by default.
  3511. for ac_prog in ginstall scoinst install; do
  3512. for ac_exec_ext in '' $ac_executable_extensions; do
  3513. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3514. if test $ac_prog = install &&
  3515. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3516. # AIX install. It has an incompatible calling convention.
  3517. :
  3518. elif test $ac_prog = install &&
  3519. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3520. # program-specific install script used by HP pwplus--don't use.
  3521. :
  3522. else
  3523. rm -rf conftest.one conftest.two conftest.dir
  3524. echo one > conftest.one
  3525. echo two > conftest.two
  3526. mkdir conftest.dir
  3527. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3528. test -s conftest.one && test -s conftest.two &&
  3529. test -s conftest.dir/conftest.one &&
  3530. test -s conftest.dir/conftest.two
  3531. then
  3532. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3533. break 3
  3534. fi
  3535. fi
  3536. fi
  3537. done
  3538. done
  3539. ;;
  3540. esac
  3541. done
  3542. IFS=$as_save_IFS
  3543. rm -rf conftest.one conftest.two conftest.dir
  3544. fi
  3545. if test "${ac_cv_path_install+set}" = set; then
  3546. INSTALL=$ac_cv_path_install
  3547. else
  3548. # As a last resort, use the slow shell script. Don't cache a
  3549. # value for INSTALL within a source directory, because that will
  3550. # break other packages using the cache if that directory is
  3551. # removed, or if the value is a relative name.
  3552. INSTALL=$ac_install_sh
  3553. fi
  3554. fi
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3556. $as_echo "$INSTALL" >&6; }
  3557. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3558. # It thinks the first close brace ends the variable substitution.
  3559. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3560. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3561. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3562. case $uname in
  3563. OSF1*)
  3564. INSTALL="`pwd`/install-sh -c"
  3565. ;;
  3566. esac
  3567. if test "$INSTALL" = "$ac_install_sh"; then
  3568. # Use full path to install-sh script...
  3569. INSTALL="`pwd`/install-sh -c"
  3570. fi
  3571. # Extract the first word of "nroff", so it can be a program name with args.
  3572. set dummy nroff; ac_word=$2
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3574. $as_echo_n "checking for $ac_word... " >&6; }
  3575. if ${ac_cv_path_NROFF+:} false; then :
  3576. $as_echo_n "(cached) " >&6
  3577. else
  3578. case $NROFF in
  3579. [\\/]* | ?:[\\/]*)
  3580. ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  3581. ;;
  3582. *)
  3583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3584. for as_dir in $PATH
  3585. do
  3586. IFS=$as_save_IFS
  3587. test -z "$as_dir" && as_dir=.
  3588. for ac_exec_ext in '' $ac_executable_extensions; do
  3589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3590. ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
  3591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3592. break 2
  3593. fi
  3594. done
  3595. done
  3596. IFS=$as_save_IFS
  3597. ;;
  3598. esac
  3599. fi
  3600. NROFF=$ac_cv_path_NROFF
  3601. if test -n "$NROFF"; then
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
  3603. $as_echo "$NROFF" >&6; }
  3604. else
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3606. $as_echo "no" >&6; }
  3607. fi
  3608. if test "x$NROFF" = "x:"; then
  3609. # Try groff instead of nroff...
  3610. # Extract the first word of "groff", so it can be a program name with args.
  3611. set dummy groff; ac_word=$2
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3613. $as_echo_n "checking for $ac_word... " >&6; }
  3614. if ${ac_cv_path_GROFF+:} false; then :
  3615. $as_echo_n "(cached) " >&6
  3616. else
  3617. case $GROFF in
  3618. [\\/]* | ?:[\\/]*)
  3619. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  3620. ;;
  3621. *)
  3622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3623. for as_dir in $PATH
  3624. do
  3625. IFS=$as_save_IFS
  3626. test -z "$as_dir" && as_dir=.
  3627. for ac_exec_ext in '' $ac_executable_extensions; do
  3628. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3629. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  3630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3631. break 2
  3632. fi
  3633. done
  3634. done
  3635. IFS=$as_save_IFS
  3636. ;;
  3637. esac
  3638. fi
  3639. GROFF=$ac_cv_path_GROFF
  3640. if test -n "$GROFF"; then
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  3642. $as_echo "$GROFF" >&6; }
  3643. else
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3645. $as_echo "no" >&6; }
  3646. fi
  3647. if test "x$GROFF" = "x:"; then
  3648. NROFF="echo"
  3649. else
  3650. NROFF="$GROFF -T ascii"
  3651. fi
  3652. fi
  3653. # Extract the first word of "htmldoc", so it can be a program name with args.
  3654. set dummy htmldoc; ac_word=$2
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3656. $as_echo_n "checking for $ac_word... " >&6; }
  3657. if ${ac_cv_path_HTMLDOC+:} false; then :
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. case $HTMLDOC in
  3661. [\\/]* | ?:[\\/]*)
  3662. ac_cv_path_HTMLDOC="$HTMLDOC" # Let the user override the test with a path.
  3663. ;;
  3664. *)
  3665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3666. for as_dir in $PATH
  3667. do
  3668. IFS=$as_save_IFS
  3669. test -z "$as_dir" && as_dir=.
  3670. for ac_exec_ext in '' $ac_executable_extensions; do
  3671. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3672. ac_cv_path_HTMLDOC="$as_dir/$ac_word$ac_exec_ext"
  3673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3674. break 2
  3675. fi
  3676. done
  3677. done
  3678. IFS=$as_save_IFS
  3679. ;;
  3680. esac
  3681. fi
  3682. HTMLDOC=$ac_cv_path_HTMLDOC
  3683. if test -n "$HTMLDOC"; then
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDOC" >&5
  3685. $as_echo "$HTMLDOC" >&6; }
  3686. else
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3688. $as_echo "no" >&6; }
  3689. fi
  3690. # Extract the first word of "doxygen", so it can be a program name with args.
  3691. set dummy doxygen; ac_word=$2
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3693. $as_echo_n "checking for $ac_word... " >&6; }
  3694. if ${ac_cv_path_DOXYDOC+:} false; then :
  3695. $as_echo_n "(cached) " >&6
  3696. else
  3697. case $DOXYDOC in
  3698. [\\/]* | ?:[\\/]*)
  3699. ac_cv_path_DOXYDOC="$DOXYDOC" # Let the user override the test with a path.
  3700. ;;
  3701. *)
  3702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703. for as_dir in $PATH
  3704. do
  3705. IFS=$as_save_IFS
  3706. test -z "$as_dir" && as_dir=.
  3707. for ac_exec_ext in '' $ac_executable_extensions; do
  3708. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3709. ac_cv_path_DOXYDOC="$as_dir/$ac_word$ac_exec_ext"
  3710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3711. break 2
  3712. fi
  3713. done
  3714. done
  3715. IFS=$as_save_IFS
  3716. ;;
  3717. esac
  3718. fi
  3719. DOXYDOC=$ac_cv_path_DOXYDOC
  3720. if test -n "$DOXYDOC"; then
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYDOC" >&5
  3722. $as_echo "$DOXYDOC" >&6; }
  3723. else
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3725. $as_echo "no" >&6; }
  3726. fi
  3727. if test -n "$ac_tool_prefix"; then
  3728. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3729. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3731. $as_echo_n "checking for $ac_word... " >&6; }
  3732. if ${ac_cv_prog_RANLIB+:} false; then :
  3733. $as_echo_n "(cached) " >&6
  3734. else
  3735. if test -n "$RANLIB"; then
  3736. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3737. else
  3738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3739. for as_dir in $PATH
  3740. do
  3741. IFS=$as_save_IFS
  3742. test -z "$as_dir" && as_dir=.
  3743. for ac_exec_ext in '' $ac_executable_extensions; do
  3744. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3745. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3747. break 2
  3748. fi
  3749. done
  3750. done
  3751. IFS=$as_save_IFS
  3752. fi
  3753. fi
  3754. RANLIB=$ac_cv_prog_RANLIB
  3755. if test -n "$RANLIB"; then
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3757. $as_echo "$RANLIB" >&6; }
  3758. else
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3760. $as_echo "no" >&6; }
  3761. fi
  3762. fi
  3763. if test -z "$ac_cv_prog_RANLIB"; then
  3764. ac_ct_RANLIB=$RANLIB
  3765. # Extract the first word of "ranlib", so it can be a program name with args.
  3766. set dummy ranlib; ac_word=$2
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3768. $as_echo_n "checking for $ac_word... " >&6; }
  3769. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  3770. $as_echo_n "(cached) " >&6
  3771. else
  3772. if test -n "$ac_ct_RANLIB"; then
  3773. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3774. else
  3775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3776. for as_dir in $PATH
  3777. do
  3778. IFS=$as_save_IFS
  3779. test -z "$as_dir" && as_dir=.
  3780. for ac_exec_ext in '' $ac_executable_extensions; do
  3781. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3782. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3784. break 2
  3785. fi
  3786. done
  3787. done
  3788. IFS=$as_save_IFS
  3789. fi
  3790. fi
  3791. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3792. if test -n "$ac_ct_RANLIB"; then
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3794. $as_echo "$ac_ct_RANLIB" >&6; }
  3795. else
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3797. $as_echo "no" >&6; }
  3798. fi
  3799. if test "x$ac_ct_RANLIB" = x; then
  3800. RANLIB=":"
  3801. else
  3802. case $cross_compiling:$ac_tool_warned in
  3803. yes:)
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3805. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3806. ac_tool_warned=yes ;;
  3807. esac
  3808. RANLIB=$ac_ct_RANLIB
  3809. fi
  3810. else
  3811. RANLIB="$ac_cv_prog_RANLIB"
  3812. fi
  3813. if test -n "$ac_tool_prefix"; then
  3814. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3815. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3817. $as_echo_n "checking for $ac_word... " >&6; }
  3818. if ${ac_cv_path_AR+:} false; then :
  3819. $as_echo_n "(cached) " >&6
  3820. else
  3821. case $AR in
  3822. [\\/]* | ?:[\\/]*)
  3823. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  3824. ;;
  3825. *)
  3826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3827. for as_dir in $PATH
  3828. do
  3829. IFS=$as_save_IFS
  3830. test -z "$as_dir" && as_dir=.
  3831. for ac_exec_ext in '' $ac_executable_extensions; do
  3832. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3833. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  3834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3835. break 2
  3836. fi
  3837. done
  3838. done
  3839. IFS=$as_save_IFS
  3840. ;;
  3841. esac
  3842. fi
  3843. AR=$ac_cv_path_AR
  3844. if test -n "$AR"; then
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3846. $as_echo "$AR" >&6; }
  3847. else
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3849. $as_echo "no" >&6; }
  3850. fi
  3851. fi
  3852. if test -z "$ac_cv_path_AR"; then
  3853. ac_pt_AR=$AR
  3854. # Extract the first word of "ar", so it can be a program name with args.
  3855. set dummy ar; ac_word=$2
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3857. $as_echo_n "checking for $ac_word... " >&6; }
  3858. if ${ac_cv_path_ac_pt_AR+:} false; then :
  3859. $as_echo_n "(cached) " >&6
  3860. else
  3861. case $ac_pt_AR in
  3862. [\\/]* | ?:[\\/]*)
  3863. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  3864. ;;
  3865. *)
  3866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3867. for as_dir in $PATH
  3868. do
  3869. IFS=$as_save_IFS
  3870. test -z "$as_dir" && as_dir=.
  3871. for ac_exec_ext in '' $ac_executable_extensions; do
  3872. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3873. ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
  3874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3875. break 2
  3876. fi
  3877. done
  3878. done
  3879. IFS=$as_save_IFS
  3880. ;;
  3881. esac
  3882. fi
  3883. ac_pt_AR=$ac_cv_path_ac_pt_AR
  3884. if test -n "$ac_pt_AR"; then
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
  3886. $as_echo "$ac_pt_AR" >&6; }
  3887. else
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3889. $as_echo "no" >&6; }
  3890. fi
  3891. if test "x$ac_pt_AR" = x; then
  3892. AR=""
  3893. else
  3894. case $cross_compiling:$ac_tool_warned in
  3895. yes:)
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3897. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3898. ac_tool_warned=yes ;;
  3899. esac
  3900. AR=$ac_pt_AR
  3901. fi
  3902. else
  3903. AR="$ac_cv_path_AR"
  3904. fi
  3905. if test "x$AR" = "x:"; then
  3906. as_fn_error aborting. "Configure could not find the library archiver" "$LINENO" 5
  3907. fi
  3908. if test "x$RANLIB" != "x:"; then
  3909. LIBCOMMAND="$AR cr"
  3910. else
  3911. LIBCOMMAND="$AR crs"
  3912. fi
  3913. if test -n "$ac_tool_prefix"; then
  3914. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  3915. set dummy ${ac_tool_prefix}windres; ac_word=$2
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3917. $as_echo_n "checking for $ac_word... " >&6; }
  3918. if ${ac_cv_path_RC+:} false; then :
  3919. $as_echo_n "(cached) " >&6
  3920. else
  3921. case $RC in
  3922. [\\/]* | ?:[\\/]*)
  3923. ac_cv_path_RC="$RC" # Let the user override the test with a path.
  3924. ;;
  3925. *)
  3926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3927. for as_dir in $PATH
  3928. do
  3929. IFS=$as_save_IFS
  3930. test -z "$as_dir" && as_dir=.
  3931. for ac_exec_ext in '' $ac_executable_extensions; do
  3932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3933. ac_cv_path_RC="$as_dir/$ac_word$ac_exec_ext"
  3934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3935. break 2
  3936. fi
  3937. done
  3938. done
  3939. IFS=$as_save_IFS
  3940. ;;
  3941. esac
  3942. fi
  3943. RC=$ac_cv_path_RC
  3944. if test -n "$RC"; then
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  3946. $as_echo "$RC" >&6; }
  3947. else
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3949. $as_echo "no" >&6; }
  3950. fi
  3951. fi
  3952. if test -z "$ac_cv_path_RC"; then
  3953. ac_pt_RC=$RC
  3954. # Extract the first word of "windres", so it can be a program name with args.
  3955. set dummy windres; ac_word=$2
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3957. $as_echo_n "checking for $ac_word... " >&6; }
  3958. if ${ac_cv_path_ac_pt_RC+:} false; then :
  3959. $as_echo_n "(cached) " >&6
  3960. else
  3961. case $ac_pt_RC in
  3962. [\\/]* | ?:[\\/]*)
  3963. ac_cv_path_ac_pt_RC="$ac_pt_RC" # Let the user override the test with a path.
  3964. ;;
  3965. *)
  3966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3967. for as_dir in $PATH
  3968. do
  3969. IFS=$as_save_IFS
  3970. test -z "$as_dir" && as_dir=.
  3971. for ac_exec_ext in '' $ac_executable_extensions; do
  3972. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3973. ac_cv_path_ac_pt_RC="$as_dir/$ac_word$ac_exec_ext"
  3974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3975. break 2
  3976. fi
  3977. done
  3978. done
  3979. IFS=$as_save_IFS
  3980. ;;
  3981. esac
  3982. fi
  3983. ac_pt_RC=$ac_cv_path_ac_pt_RC
  3984. if test -n "$ac_pt_RC"; then
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RC" >&5
  3986. $as_echo "$ac_pt_RC" >&6; }
  3987. else
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3989. $as_echo "no" >&6; }
  3990. fi
  3991. if test "x$ac_pt_RC" = x; then
  3992. RC=""
  3993. else
  3994. case $cross_compiling:$ac_tool_warned in
  3995. yes:)
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3997. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3998. ac_tool_warned=yes ;;
  3999. esac
  4000. RC=$ac_pt_RC
  4001. fi
  4002. else
  4003. RC="$ac_cv_path_RC"
  4004. fi
  4005. if test "$uname" != Darwin; then
  4006. ac_ext=c
  4007. ac_cpp='$CPP $CPPFLAGS'
  4008. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4009. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4010. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4012. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4013. # On Suns, sometimes $CPP names a directory.
  4014. if test -n "$CPP" && test -d "$CPP"; then
  4015. CPP=
  4016. fi
  4017. if test -z "$CPP"; then
  4018. if ${ac_cv_prog_CPP+:} false; then :
  4019. $as_echo_n "(cached) " >&6
  4020. else
  4021. # Double quotes because CPP needs to be expanded
  4022. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4023. do
  4024. ac_preproc_ok=false
  4025. for ac_c_preproc_warn_flag in '' yes
  4026. do
  4027. # Use a header file that comes with gcc, so configuring glibc
  4028. # with a fresh cross-compiler works.
  4029. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4030. # <limits.h> exists even on freestanding compilers.
  4031. # On the NeXT, cc -E runs the code through the compiler's parser,
  4032. # not just through cpp. "Syntax error" is here to catch this case.
  4033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4034. /* end confdefs.h. */
  4035. #ifdef __STDC__
  4036. # include <limits.h>
  4037. #else
  4038. # include <assert.h>
  4039. #endif
  4040. Syntax error
  4041. _ACEOF
  4042. if ac_fn_c_try_cpp "$LINENO"; then :
  4043. else
  4044. # Broken: fails on valid input.
  4045. continue
  4046. fi
  4047. rm -f conftest.err conftest.i conftest.$ac_ext
  4048. # OK, works on sane cases. Now check whether nonexistent headers
  4049. # can be detected and how.
  4050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4051. /* end confdefs.h. */
  4052. #include <ac_nonexistent.h>
  4053. _ACEOF
  4054. if ac_fn_c_try_cpp "$LINENO"; then :
  4055. # Broken: success on invalid input.
  4056. continue
  4057. else
  4058. # Passes both tests.
  4059. ac_preproc_ok=:
  4060. break
  4061. fi
  4062. rm -f conftest.err conftest.i conftest.$ac_ext
  4063. done
  4064. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4065. rm -f conftest.i conftest.err conftest.$ac_ext
  4066. if $ac_preproc_ok; then :
  4067. break
  4068. fi
  4069. done
  4070. ac_cv_prog_CPP=$CPP
  4071. fi
  4072. CPP=$ac_cv_prog_CPP
  4073. else
  4074. ac_cv_prog_CPP=$CPP
  4075. fi
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4077. $as_echo "$CPP" >&6; }
  4078. ac_preproc_ok=false
  4079. for ac_c_preproc_warn_flag in '' yes
  4080. do
  4081. # Use a header file that comes with gcc, so configuring glibc
  4082. # with a fresh cross-compiler works.
  4083. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4084. # <limits.h> exists even on freestanding compilers.
  4085. # On the NeXT, cc -E runs the code through the compiler's parser,
  4086. # not just through cpp. "Syntax error" is here to catch this case.
  4087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4088. /* end confdefs.h. */
  4089. #ifdef __STDC__
  4090. # include <limits.h>
  4091. #else
  4092. # include <assert.h>
  4093. #endif
  4094. Syntax error
  4095. _ACEOF
  4096. if ac_fn_c_try_cpp "$LINENO"; then :
  4097. else
  4098. # Broken: fails on valid input.
  4099. continue
  4100. fi
  4101. rm -f conftest.err conftest.i conftest.$ac_ext
  4102. # OK, works on sane cases. Now check whether nonexistent headers
  4103. # can be detected and how.
  4104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4105. /* end confdefs.h. */
  4106. #include <ac_nonexistent.h>
  4107. _ACEOF
  4108. if ac_fn_c_try_cpp "$LINENO"; then :
  4109. # Broken: success on invalid input.
  4110. continue
  4111. else
  4112. # Passes both tests.
  4113. ac_preproc_ok=:
  4114. break
  4115. fi
  4116. rm -f conftest.err conftest.i conftest.$ac_ext
  4117. done
  4118. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4119. rm -f conftest.i conftest.err conftest.$ac_ext
  4120. if $ac_preproc_ok; then :
  4121. else
  4122. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4123. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4124. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4125. See \`config.log' for more details" "$LINENO" 5; }
  4126. fi
  4127. ac_ext=c
  4128. ac_cpp='$CPP $CPPFLAGS'
  4129. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4130. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4131. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4133. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4134. if ${ac_cv_path_GREP+:} false; then :
  4135. $as_echo_n "(cached) " >&6
  4136. else
  4137. if test -z "$GREP"; then
  4138. ac_path_GREP_found=false
  4139. # Loop through the user's path and test for each of PROGNAME-LIST
  4140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4141. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4142. do
  4143. IFS=$as_save_IFS
  4144. test -z "$as_dir" && as_dir=.
  4145. for ac_prog in grep ggrep; do
  4146. for ac_exec_ext in '' $ac_executable_extensions; do
  4147. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4148. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4149. # Check for GNU ac_path_GREP and select it if it is found.
  4150. # Check for GNU $ac_path_GREP
  4151. case `"$ac_path_GREP" --version 2>&1` in
  4152. *GNU*)
  4153. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4154. *)
  4155. ac_count=0
  4156. $as_echo_n 0123456789 >"conftest.in"
  4157. while :
  4158. do
  4159. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4160. mv "conftest.tmp" "conftest.in"
  4161. cp "conftest.in" "conftest.nl"
  4162. $as_echo 'GREP' >> "conftest.nl"
  4163. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4164. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4165. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4166. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4167. # Best one so far, save it but keep looking for a better one
  4168. ac_cv_path_GREP="$ac_path_GREP"
  4169. ac_path_GREP_max=$ac_count
  4170. fi
  4171. # 10*(2^10) chars as input seems more than enough
  4172. test $ac_count -gt 10 && break
  4173. done
  4174. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4175. esac
  4176. $ac_path_GREP_found && break 3
  4177. done
  4178. done
  4179. done
  4180. IFS=$as_save_IFS
  4181. if test -z "$ac_cv_path_GREP"; then
  4182. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4183. fi
  4184. else
  4185. ac_cv_path_GREP=$GREP
  4186. fi
  4187. fi
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4189. $as_echo "$ac_cv_path_GREP" >&6; }
  4190. GREP="$ac_cv_path_GREP"
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4192. $as_echo_n "checking for egrep... " >&6; }
  4193. if ${ac_cv_path_EGREP+:} false; then :
  4194. $as_echo_n "(cached) " >&6
  4195. else
  4196. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4197. then ac_cv_path_EGREP="$GREP -E"
  4198. else
  4199. if test -z "$EGREP"; then
  4200. ac_path_EGREP_found=false
  4201. # Loop through the user's path and test for each of PROGNAME-LIST
  4202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4203. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4204. do
  4205. IFS=$as_save_IFS
  4206. test -z "$as_dir" && as_dir=.
  4207. for ac_prog in egrep; do
  4208. for ac_exec_ext in '' $ac_executable_extensions; do
  4209. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4210. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4211. # Check for GNU ac_path_EGREP and select it if it is found.
  4212. # Check for GNU $ac_path_EGREP
  4213. case `"$ac_path_EGREP" --version 2>&1` in
  4214. *GNU*)
  4215. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4216. *)
  4217. ac_count=0
  4218. $as_echo_n 0123456789 >"conftest.in"
  4219. while :
  4220. do
  4221. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4222. mv "conftest.tmp" "conftest.in"
  4223. cp "conftest.in" "conftest.nl"
  4224. $as_echo 'EGREP' >> "conftest.nl"
  4225. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4226. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4227. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4228. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4229. # Best one so far, save it but keep looking for a better one
  4230. ac_cv_path_EGREP="$ac_path_EGREP"
  4231. ac_path_EGREP_max=$ac_count
  4232. fi
  4233. # 10*(2^10) chars as input seems more than enough
  4234. test $ac_count -gt 10 && break
  4235. done
  4236. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4237. esac
  4238. $ac_path_EGREP_found && break 3
  4239. done
  4240. done
  4241. done
  4242. IFS=$as_save_IFS
  4243. if test -z "$ac_cv_path_EGREP"; then
  4244. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4245. fi
  4246. else
  4247. ac_cv_path_EGREP=$EGREP
  4248. fi
  4249. fi
  4250. fi
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4252. $as_echo "$ac_cv_path_EGREP" >&6; }
  4253. EGREP="$ac_cv_path_EGREP"
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4255. $as_echo_n "checking for ANSI C header files... " >&6; }
  4256. if ${ac_cv_header_stdc+:} false; then :
  4257. $as_echo_n "(cached) " >&6
  4258. else
  4259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4260. /* end confdefs.h. */
  4261. #include <stdlib.h>
  4262. #include <stdarg.h>
  4263. #include <string.h>
  4264. #include <float.h>
  4265. int
  4266. main ()
  4267. {
  4268. ;
  4269. return 0;
  4270. }
  4271. _ACEOF
  4272. if ac_fn_c_try_compile "$LINENO"; then :
  4273. ac_cv_header_stdc=yes
  4274. else
  4275. ac_cv_header_stdc=no
  4276. fi
  4277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4278. if test $ac_cv_header_stdc = yes; then
  4279. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4281. /* end confdefs.h. */
  4282. #include <string.h>
  4283. _ACEOF
  4284. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4285. $EGREP "memchr" >/dev/null 2>&1; then :
  4286. else
  4287. ac_cv_header_stdc=no
  4288. fi
  4289. rm -f conftest*
  4290. fi
  4291. if test $ac_cv_header_stdc = yes; then
  4292. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4294. /* end confdefs.h. */
  4295. #include <stdlib.h>
  4296. _ACEOF
  4297. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4298. $EGREP "free" >/dev/null 2>&1; then :
  4299. else
  4300. ac_cv_header_stdc=no
  4301. fi
  4302. rm -f conftest*
  4303. fi
  4304. if test $ac_cv_header_stdc = yes; then
  4305. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4306. if test "$cross_compiling" = yes; then :
  4307. :
  4308. else
  4309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4310. /* end confdefs.h. */
  4311. #include <ctype.h>
  4312. #include <stdlib.h>
  4313. #if ((' ' & 0x0FF) == 0x020)
  4314. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4315. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4316. #else
  4317. # define ISLOWER(c) \
  4318. (('a' <= (c) && (c) <= 'i') \
  4319. || ('j' <= (c) && (c) <= 'r') \
  4320. || ('s' <= (c) && (c) <= 'z'))
  4321. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4322. #endif
  4323. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4324. int
  4325. main ()
  4326. {
  4327. int i;
  4328. for (i = 0; i < 256; i++)
  4329. if (XOR (islower (i), ISLOWER (i))
  4330. || toupper (i) != TOUPPER (i))
  4331. return 2;
  4332. return 0;
  4333. }
  4334. _ACEOF
  4335. if ac_fn_c_try_run "$LINENO"; then :
  4336. else
  4337. ac_cv_header_stdc=no
  4338. fi
  4339. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4340. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4341. fi
  4342. fi
  4343. fi
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4345. $as_echo "$ac_cv_header_stdc" >&6; }
  4346. if test $ac_cv_header_stdc = yes; then
  4347. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4348. fi
  4349. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4350. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4351. inttypes.h stdint.h unistd.h
  4352. do :
  4353. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4354. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4355. "
  4356. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4357. cat >>confdefs.h <<_ACEOF
  4358. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4359. _ACEOF
  4360. fi
  4361. done
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4363. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4364. if ${ac_cv_c_bigendian+:} false; then :
  4365. $as_echo_n "(cached) " >&6
  4366. else
  4367. ac_cv_c_bigendian=unknown
  4368. # See if we're dealing with a universal compiler.
  4369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4370. /* end confdefs.h. */
  4371. #ifndef __APPLE_CC__
  4372. not a universal capable compiler
  4373. #endif
  4374. typedef int dummy;
  4375. _ACEOF
  4376. if ac_fn_c_try_compile "$LINENO"; then :
  4377. # Check for potential -arch flags. It is not universal unless
  4378. # there are at least two -arch flags with different values.
  4379. ac_arch=
  4380. ac_prev=
  4381. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4382. if test -n "$ac_prev"; then
  4383. case $ac_word in
  4384. i?86 | x86_64 | ppc | ppc64)
  4385. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4386. ac_arch=$ac_word
  4387. else
  4388. ac_cv_c_bigendian=universal
  4389. break
  4390. fi
  4391. ;;
  4392. esac
  4393. ac_prev=
  4394. elif test "x$ac_word" = "x-arch"; then
  4395. ac_prev=arch
  4396. fi
  4397. done
  4398. fi
  4399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4400. if test $ac_cv_c_bigendian = unknown; then
  4401. # See if sys/param.h defines the BYTE_ORDER macro.
  4402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4403. /* end confdefs.h. */
  4404. #include <sys/types.h>
  4405. #include <sys/param.h>
  4406. int
  4407. main ()
  4408. {
  4409. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4410. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4411. && LITTLE_ENDIAN)
  4412. bogus endian macros
  4413. #endif
  4414. ;
  4415. return 0;
  4416. }
  4417. _ACEOF
  4418. if ac_fn_c_try_compile "$LINENO"; then :
  4419. # It does; now see whether it defined to BIG_ENDIAN or not.
  4420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4421. /* end confdefs.h. */
  4422. #include <sys/types.h>
  4423. #include <sys/param.h>
  4424. int
  4425. main ()
  4426. {
  4427. #if BYTE_ORDER != BIG_ENDIAN
  4428. not big endian
  4429. #endif
  4430. ;
  4431. return 0;
  4432. }
  4433. _ACEOF
  4434. if ac_fn_c_try_compile "$LINENO"; then :
  4435. ac_cv_c_bigendian=yes
  4436. else
  4437. ac_cv_c_bigendian=no
  4438. fi
  4439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4440. fi
  4441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4442. fi
  4443. if test $ac_cv_c_bigendian = unknown; then
  4444. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4446. /* end confdefs.h. */
  4447. #include <limits.h>
  4448. int
  4449. main ()
  4450. {
  4451. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4452. bogus endian macros
  4453. #endif
  4454. ;
  4455. return 0;
  4456. }
  4457. _ACEOF
  4458. if ac_fn_c_try_compile "$LINENO"; then :
  4459. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4461. /* end confdefs.h. */
  4462. #include <limits.h>
  4463. int
  4464. main ()
  4465. {
  4466. #ifndef _BIG_ENDIAN
  4467. not big endian
  4468. #endif
  4469. ;
  4470. return 0;
  4471. }
  4472. _ACEOF
  4473. if ac_fn_c_try_compile "$LINENO"; then :
  4474. ac_cv_c_bigendian=yes
  4475. else
  4476. ac_cv_c_bigendian=no
  4477. fi
  4478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4479. fi
  4480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4481. fi
  4482. if test $ac_cv_c_bigendian = unknown; then
  4483. # Compile a test program.
  4484. if test "$cross_compiling" = yes; then :
  4485. # Try to guess by grepping values from an object file.
  4486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4487. /* end confdefs.h. */
  4488. short int ascii_mm[] =
  4489. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4490. short int ascii_ii[] =
  4491. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4492. int use_ascii (int i) {
  4493. return ascii_mm[i] + ascii_ii[i];
  4494. }
  4495. short int ebcdic_ii[] =
  4496. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4497. short int ebcdic_mm[] =
  4498. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4499. int use_ebcdic (int i) {
  4500. return ebcdic_mm[i] + ebcdic_ii[i];
  4501. }
  4502. extern int foo;
  4503. int
  4504. main ()
  4505. {
  4506. return use_ascii (foo) == use_ebcdic (foo);
  4507. ;
  4508. return 0;
  4509. }
  4510. _ACEOF
  4511. if ac_fn_c_try_compile "$LINENO"; then :
  4512. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4513. ac_cv_c_bigendian=yes
  4514. fi
  4515. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4516. if test "$ac_cv_c_bigendian" = unknown; then
  4517. ac_cv_c_bigendian=no
  4518. else
  4519. # finding both strings is unlikely to happen, but who knows?
  4520. ac_cv_c_bigendian=unknown
  4521. fi
  4522. fi
  4523. fi
  4524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4525. else
  4526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4527. /* end confdefs.h. */
  4528. $ac_includes_default
  4529. int
  4530. main ()
  4531. {
  4532. /* Are we little or big endian? From Harbison&Steele. */
  4533. union
  4534. {
  4535. long int l;
  4536. char c[sizeof (long int)];
  4537. } u;
  4538. u.l = 1;
  4539. return u.c[sizeof (long int) - 1] == 1;
  4540. ;
  4541. return 0;
  4542. }
  4543. _ACEOF
  4544. if ac_fn_c_try_run "$LINENO"; then :
  4545. ac_cv_c_bigendian=no
  4546. else
  4547. ac_cv_c_bigendian=yes
  4548. fi
  4549. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4550. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4551. fi
  4552. fi
  4553. fi
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4555. $as_echo "$ac_cv_c_bigendian" >&6; }
  4556. case $ac_cv_c_bigendian in #(
  4557. yes)
  4558. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4559. ;; #(
  4560. no)
  4561. ;; #(
  4562. universal)
  4563. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4564. ;; #(
  4565. *)
  4566. as_fn_error $? "unknown endianness
  4567. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4568. esac
  4569. fi
  4570. # The cast to long int works around a bug in the HP C Compiler
  4571. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4572. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4573. # This bug is HP SR number 8606223364.
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  4575. $as_echo_n "checking size of short... " >&6; }
  4576. if ${ac_cv_sizeof_short+:} false; then :
  4577. $as_echo_n "(cached) " >&6
  4578. else
  4579. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  4580. else
  4581. if test "$ac_cv_type_short" = yes; then
  4582. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4583. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4584. as_fn_error 77 "cannot compute sizeof (short)
  4585. See \`config.log' for more details" "$LINENO" 5; }
  4586. else
  4587. ac_cv_sizeof_short=0
  4588. fi
  4589. fi
  4590. fi
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  4592. $as_echo "$ac_cv_sizeof_short" >&6; }
  4593. cat >>confdefs.h <<_ACEOF
  4594. #define SIZEOF_SHORT $ac_cv_sizeof_short
  4595. _ACEOF
  4596. # The cast to long int works around a bug in the HP C Compiler
  4597. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4598. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4599. # This bug is HP SR number 8606223364.
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  4601. $as_echo_n "checking size of int... " >&6; }
  4602. if ${ac_cv_sizeof_int+:} false; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  4606. else
  4607. if test "$ac_cv_type_int" = yes; then
  4608. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4609. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4610. as_fn_error 77 "cannot compute sizeof (int)
  4611. See \`config.log' for more details" "$LINENO" 5; }
  4612. else
  4613. ac_cv_sizeof_int=0
  4614. fi
  4615. fi
  4616. fi
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  4618. $as_echo "$ac_cv_sizeof_int" >&6; }
  4619. cat >>confdefs.h <<_ACEOF
  4620. #define SIZEOF_INT $ac_cv_sizeof_int
  4621. _ACEOF
  4622. # The cast to long int works around a bug in the HP C Compiler
  4623. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4624. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4625. # This bug is HP SR number 8606223364.
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  4627. $as_echo_n "checking size of long... " >&6; }
  4628. if ${ac_cv_sizeof_long+:} false; then :
  4629. $as_echo_n "(cached) " >&6
  4630. else
  4631. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  4632. else
  4633. if test "$ac_cv_type_long" = yes; then
  4634. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4635. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4636. as_fn_error 77 "cannot compute sizeof (long)
  4637. See \`config.log' for more details" "$LINENO" 5; }
  4638. else
  4639. ac_cv_sizeof_long=0
  4640. fi
  4641. fi
  4642. fi
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  4644. $as_echo "$ac_cv_sizeof_long" >&6; }
  4645. cat >>confdefs.h <<_ACEOF
  4646. #define SIZEOF_LONG $ac_cv_sizeof_long
  4647. _ACEOF
  4648. if test $ac_cv_sizeof_short -eq 2; then
  4649. $as_echo "#define U16 unsigned short" >>confdefs.h
  4650. fi
  4651. if test $ac_cv_sizeof_int -eq 4; then
  4652. $as_echo "#define U32 unsigned" >>confdefs.h
  4653. else
  4654. if test $ac_cv_sizeof_long -eq 4; then
  4655. $as_echo "#define U32 unsigned long" >>confdefs.h
  4656. fi
  4657. fi
  4658. if test "$uname" != Darwin; then
  4659. if test $ac_cv_sizeof_int -eq 8; then
  4660. $as_echo "#define U64 unsigned" >>confdefs.h
  4661. else
  4662. if test $ac_cv_sizeof_long -eq 8; then
  4663. $as_echo "#define U64 unsigned long" >>confdefs.h
  4664. fi
  4665. fi
  4666. fi
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
  4668. $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
  4669. if ${ac_cv_cxx_bool+:} false; then :
  4670. $as_echo_n "(cached) " >&6
  4671. else
  4672. ac_ext=cpp
  4673. ac_cpp='$CXXCPP $CPPFLAGS'
  4674. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4675. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4676. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4678. /* end confdefs.h. */
  4679. int f(int x){return 1;}
  4680. int f(char x){return 1;}
  4681. int f(bool x){return 1;}
  4682. int
  4683. main ()
  4684. {
  4685. bool b = true;
  4686. return f(b);
  4687. ;
  4688. return 0;
  4689. }
  4690. _ACEOF
  4691. if ac_fn_cxx_try_compile "$LINENO"; then :
  4692. ac_cv_cxx_bool=yes
  4693. else
  4694. ac_cv_cxx_bool=no
  4695. fi
  4696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4697. ac_ext=c
  4698. ac_cpp='$CPP $CPPFLAGS'
  4699. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4700. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4701. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4702. fi
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_bool" >&5
  4704. $as_echo "$ac_cv_cxx_bool" >&6; }
  4705. if test "$ac_cv_cxx_bool" != yes; then
  4706. CXXFLAGS="-Dbool=char -Dfalse=0 -Dtrue=1 $CXXFLAGS"
  4707. fi
  4708. ac_header_dirent=no
  4709. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4710. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4712. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4713. if eval \${$as_ac_Header+:} false; then :
  4714. $as_echo_n "(cached) " >&6
  4715. else
  4716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4717. /* end confdefs.h. */
  4718. #include <sys/types.h>
  4719. #include <$ac_hdr>
  4720. int
  4721. main ()
  4722. {
  4723. if ((DIR *) 0)
  4724. return 0;
  4725. ;
  4726. return 0;
  4727. }
  4728. _ACEOF
  4729. if ac_fn_c_try_compile "$LINENO"; then :
  4730. eval "$as_ac_Header=yes"
  4731. else
  4732. eval "$as_ac_Header=no"
  4733. fi
  4734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4735. fi
  4736. eval ac_res=\$$as_ac_Header
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4738. $as_echo "$ac_res" >&6; }
  4739. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4740. cat >>confdefs.h <<_ACEOF
  4741. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4742. _ACEOF
  4743. ac_header_dirent=$ac_hdr; break
  4744. fi
  4745. done
  4746. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4747. if test $ac_header_dirent = dirent.h; then
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4749. $as_echo_n "checking for library containing opendir... " >&6; }
  4750. if ${ac_cv_search_opendir+:} false; then :
  4751. $as_echo_n "(cached) " >&6
  4752. else
  4753. ac_func_search_save_LIBS=$LIBS
  4754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4755. /* end confdefs.h. */
  4756. /* Override any GCC internal prototype to avoid an error.
  4757. Use char because int might match the return type of a GCC
  4758. builtin and then its argument prototype would still apply. */
  4759. #ifdef __cplusplus
  4760. extern "C"
  4761. #endif
  4762. char opendir ();
  4763. int
  4764. main ()
  4765. {
  4766. return opendir ();
  4767. ;
  4768. return 0;
  4769. }
  4770. _ACEOF
  4771. for ac_lib in '' dir; do
  4772. if test -z "$ac_lib"; then
  4773. ac_res="none required"
  4774. else
  4775. ac_res=-l$ac_lib
  4776. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4777. fi
  4778. if ac_fn_c_try_link "$LINENO"; then :
  4779. ac_cv_search_opendir=$ac_res
  4780. fi
  4781. rm -f core conftest.err conftest.$ac_objext \
  4782. conftest$ac_exeext
  4783. if ${ac_cv_search_opendir+:} false; then :
  4784. break
  4785. fi
  4786. done
  4787. if ${ac_cv_search_opendir+:} false; then :
  4788. else
  4789. ac_cv_search_opendir=no
  4790. fi
  4791. rm conftest.$ac_ext
  4792. LIBS=$ac_func_search_save_LIBS
  4793. fi
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4795. $as_echo "$ac_cv_search_opendir" >&6; }
  4796. ac_res=$ac_cv_search_opendir
  4797. if test "$ac_res" != no; then :
  4798. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4799. fi
  4800. else
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4802. $as_echo_n "checking for library containing opendir... " >&6; }
  4803. if ${ac_cv_search_opendir+:} false; then :
  4804. $as_echo_n "(cached) " >&6
  4805. else
  4806. ac_func_search_save_LIBS=$LIBS
  4807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4808. /* end confdefs.h. */
  4809. /* Override any GCC internal prototype to avoid an error.
  4810. Use char because int might match the return type of a GCC
  4811. builtin and then its argument prototype would still apply. */
  4812. #ifdef __cplusplus
  4813. extern "C"
  4814. #endif
  4815. char opendir ();
  4816. int
  4817. main ()
  4818. {
  4819. return opendir ();
  4820. ;
  4821. return 0;
  4822. }
  4823. _ACEOF
  4824. for ac_lib in '' x; do
  4825. if test -z "$ac_lib"; then
  4826. ac_res="none required"
  4827. else
  4828. ac_res=-l$ac_lib
  4829. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4830. fi
  4831. if ac_fn_c_try_link "$LINENO"; then :
  4832. ac_cv_search_opendir=$ac_res
  4833. fi
  4834. rm -f core conftest.err conftest.$ac_objext \
  4835. conftest$ac_exeext
  4836. if ${ac_cv_search_opendir+:} false; then :
  4837. break
  4838. fi
  4839. done
  4840. if ${ac_cv_search_opendir+:} false; then :
  4841. else
  4842. ac_cv_search_opendir=no
  4843. fi
  4844. rm conftest.$ac_ext
  4845. LIBS=$ac_func_search_save_LIBS
  4846. fi
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4848. $as_echo "$ac_cv_search_opendir" >&6; }
  4849. ac_res=$ac_cv_search_opendir
  4850. if test "$ac_res" != no; then :
  4851. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4852. fi
  4853. fi
  4854. ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
  4855. if test "x$ac_cv_header_sys_select_h" = xyes; then :
  4856. $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  4857. fi
  4858. ac_fn_c_check_header_mongrel "$LINENO" "sys/stdtypes.h" "ac_cv_header_sys_stdtypes_h" "$ac_includes_default"
  4859. if test "x$ac_cv_header_sys_stdtypes_h" = xyes; then :
  4860. $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  4861. fi
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have the POSIX compatible scandir() prototype" >&5
  4863. $as_echo_n "checking whether we have the POSIX compatible scandir() prototype... " >&6; }
  4864. if ${ac_cv_cxx_scandir_posix+:} false; then :
  4865. $as_echo_n "(cached) " >&6
  4866. else
  4867. ac_ext=cpp
  4868. ac_cpp='$CXXCPP $CPPFLAGS'
  4869. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4870. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4871. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4873. /* end confdefs.h. */
  4874. #include <dirent.h>
  4875. int func (const char *d, dirent ***list, void *sort) {
  4876. int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
  4877. }
  4878. int
  4879. main ()
  4880. {
  4881. ;
  4882. return 0;
  4883. }
  4884. _ACEOF
  4885. if ac_fn_cxx_try_compile "$LINENO"; then :
  4886. ac_cv_cxx_scandir_posix=yes
  4887. else
  4888. ac_cv_cxx_scandir_posix=no
  4889. fi
  4890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4891. ac_ext=c
  4892. ac_cpp='$CPP $CPPFLAGS'
  4893. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4894. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4895. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4896. fi
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_scandir_posix" >&5
  4898. $as_echo "$ac_cv_cxx_scandir_posix" >&6; }
  4899. if test "$ac_cv_cxx_scandir_posix" = yes; then
  4900. $as_echo "#define HAVE_SCANDIR 1" >>confdefs.h
  4901. $as_echo "#define HAVE_SCANDIR_POSIX 1" >>confdefs.h
  4902. else
  4903. ac_fn_c_check_func "$LINENO" "scandir" "ac_cv_func_scandir"
  4904. if test "x$ac_cv_func_scandir" = xyes; then :
  4905. if test "x$uname" = xSunOS -o "x$uname" = xQNX; then
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using $uname scandir emulation function." >&5
  4907. $as_echo "$as_me: WARNING: Not using $uname scandir emulation function." >&2;}
  4908. else
  4909. $as_echo "#define HAVE_SCANDIR 1" >>confdefs.h
  4910. fi
  4911. fi
  4912. fi
  4913. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  4914. if test "x$ac_cv_func_vsnprintf" = xyes; then :
  4915. case "$uname" in
  4916. HP-UX*)
  4917. if test "$uversion" = "1020"; then
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using built-in vsnprintf function because you are running HP-UX 10.20." >&5
  4919. $as_echo "$as_me: WARNING: Not using built-in vsnprintf function because you are running HP-UX 10.20." >&2;}
  4920. else
  4921. $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
  4922. fi
  4923. ;;
  4924. OSF1*)
  4925. if test "$uversion" = "40"; then
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using built-in vsnprintf function because you are running Tru64 4.0." >&5
  4927. $as_echo "$as_me: WARNING: Not using built-in vsnprintf function because you are running Tru64 4.0." >&2;}
  4928. else
  4929. $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
  4930. fi
  4931. ;;
  4932. *)
  4933. $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
  4934. ;;
  4935. esac
  4936. fi
  4937. ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  4938. if test "x$ac_cv_func_snprintf" = xyes; then :
  4939. case "$uname" in
  4940. HP-UX*)
  4941. if test "$uversion" = "1020"; then
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using built-in snprintf function because you are running HP-UX 10.20." >&5
  4943. $as_echo "$as_me: WARNING: Not using built-in snprintf function because you are running HP-UX 10.20." >&2;}
  4944. else
  4945. $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
  4946. fi
  4947. ;;
  4948. OSF1*)
  4949. if test "$uversion" = "40"; then
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using built-in snprintf function because you are running Tru64 4.0." >&5
  4951. $as_echo "$as_me: WARNING: Not using built-in snprintf function because you are running Tru64 4.0." >&2;}
  4952. else
  4953. $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
  4954. fi
  4955. ;;
  4956. *)
  4957. $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
  4958. ;;
  4959. esac
  4960. fi
  4961. ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  4962. if test "x$ac_cv_header_strings_h" = xyes; then :
  4963. $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
  4964. fi
  4965. for ac_func in strcasecmp strlcat strlcpy
  4966. do :
  4967. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4968. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4969. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4970. cat >>confdefs.h <<_ACEOF
  4971. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4972. _ACEOF
  4973. fi
  4974. done
  4975. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  4976. if test "x$ac_cv_header_locale_h" = xyes; then :
  4977. $as_echo "#define HAVE_LOCALE_H 1" >>confdefs.h
  4978. fi
  4979. for ac_func in localeconv
  4980. do :
  4981. ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
  4982. if test "x$ac_cv_func_localeconv" = xyes; then :
  4983. cat >>confdefs.h <<_ACEOF
  4984. #define HAVE_LOCALECONV 1
  4985. _ACEOF
  4986. fi
  4987. done
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
  4989. $as_echo_n "checking for library containing pow... " >&6; }
  4990. if ${ac_cv_search_pow+:} false; then :
  4991. $as_echo_n "(cached) " >&6
  4992. else
  4993. ac_func_search_save_LIBS=$LIBS
  4994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4995. /* end confdefs.h. */
  4996. /* Override any GCC internal prototype to avoid an error.
  4997. Use char because int might match the return type of a GCC
  4998. builtin and then its argument prototype would still apply. */
  4999. #ifdef __cplusplus
  5000. extern "C"
  5001. #endif
  5002. char pow ();
  5003. int
  5004. main ()
  5005. {
  5006. return pow ();
  5007. ;
  5008. return 0;
  5009. }
  5010. _ACEOF
  5011. for ac_lib in '' m; do
  5012. if test -z "$ac_lib"; then
  5013. ac_res="none required"
  5014. else
  5015. ac_res=-l$ac_lib
  5016. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5017. fi
  5018. if ac_fn_c_try_link "$LINENO"; then :
  5019. ac_cv_search_pow=$ac_res
  5020. fi
  5021. rm -f core conftest.err conftest.$ac_objext \
  5022. conftest$ac_exeext
  5023. if ${ac_cv_search_pow+:} false; then :
  5024. break
  5025. fi
  5026. done
  5027. if ${ac_cv_search_pow+:} false; then :
  5028. else
  5029. ac_cv_search_pow=no
  5030. fi
  5031. rm conftest.$ac_ext
  5032. LIBS=$ac_func_search_save_LIBS
  5033. fi
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
  5035. $as_echo "$ac_cv_search_pow" >&6; }
  5036. ac_res=$ac_cv_search_pow
  5037. if test "$ac_res" != no; then :
  5038. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5039. fi
  5040. # Check whether --enable-largefile was given.
  5041. if test "${enable_largefile+set}" = set; then :
  5042. enableval=$enable_largefile;
  5043. fi
  5044. if test "$enable_largefile" != no; then
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  5046. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  5047. if ${ac_cv_sys_largefile_CC+:} false; then :
  5048. $as_echo_n "(cached) " >&6
  5049. else
  5050. ac_cv_sys_largefile_CC=no
  5051. if test "$GCC" != yes; then
  5052. ac_save_CC=$CC
  5053. while :; do
  5054. # IRIX 6.2 and later do not support large files by default,
  5055. # so use the C compiler's -n32 option if that helps.
  5056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5057. /* end confdefs.h. */
  5058. #include <sys/types.h>
  5059. /* Check that off_t can represent 2**63 - 1 correctly.
  5060. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5061. since some C++ compilers masquerading as C compilers
  5062. incorrectly reject 9223372036854775807. */
  5063. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5064. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5065. && LARGE_OFF_T % 2147483647 == 1)
  5066. ? 1 : -1];
  5067. int
  5068. main ()
  5069. {
  5070. ;
  5071. return 0;
  5072. }
  5073. _ACEOF
  5074. if ac_fn_c_try_compile "$LINENO"; then :
  5075. break
  5076. fi
  5077. rm -f core conftest.err conftest.$ac_objext
  5078. CC="$CC -n32"
  5079. if ac_fn_c_try_compile "$LINENO"; then :
  5080. ac_cv_sys_largefile_CC=' -n32'; break
  5081. fi
  5082. rm -f core conftest.err conftest.$ac_objext
  5083. break
  5084. done
  5085. CC=$ac_save_CC
  5086. rm -f conftest.$ac_ext
  5087. fi
  5088. fi
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  5090. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  5091. if test "$ac_cv_sys_largefile_CC" != no; then
  5092. CC=$CC$ac_cv_sys_largefile_CC
  5093. fi
  5094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  5095. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  5096. if ${ac_cv_sys_file_offset_bits+:} false; then :
  5097. $as_echo_n "(cached) " >&6
  5098. else
  5099. while :; do
  5100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5101. /* end confdefs.h. */
  5102. #include <sys/types.h>
  5103. /* Check that off_t can represent 2**63 - 1 correctly.
  5104. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5105. since some C++ compilers masquerading as C compilers
  5106. incorrectly reject 9223372036854775807. */
  5107. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5108. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5109. && LARGE_OFF_T % 2147483647 == 1)
  5110. ? 1 : -1];
  5111. int
  5112. main ()
  5113. {
  5114. ;
  5115. return 0;
  5116. }
  5117. _ACEOF
  5118. if ac_fn_c_try_compile "$LINENO"; then :
  5119. ac_cv_sys_file_offset_bits=no; break
  5120. fi
  5121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5123. /* end confdefs.h. */
  5124. #define _FILE_OFFSET_BITS 64
  5125. #include <sys/types.h>
  5126. /* Check that off_t can represent 2**63 - 1 correctly.
  5127. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5128. since some C++ compilers masquerading as C compilers
  5129. incorrectly reject 9223372036854775807. */
  5130. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5131. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5132. && LARGE_OFF_T % 2147483647 == 1)
  5133. ? 1 : -1];
  5134. int
  5135. main ()
  5136. {
  5137. ;
  5138. return 0;
  5139. }
  5140. _ACEOF
  5141. if ac_fn_c_try_compile "$LINENO"; then :
  5142. ac_cv_sys_file_offset_bits=64; break
  5143. fi
  5144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5145. ac_cv_sys_file_offset_bits=unknown
  5146. break
  5147. done
  5148. fi
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  5150. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  5151. case $ac_cv_sys_file_offset_bits in #(
  5152. no | unknown) ;;
  5153. *)
  5154. cat >>confdefs.h <<_ACEOF
  5155. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  5156. _ACEOF
  5157. ;;
  5158. esac
  5159. rm -rf conftest*
  5160. if test $ac_cv_sys_file_offset_bits = unknown; then
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  5162. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  5163. if ${ac_cv_sys_large_files+:} false; then :
  5164. $as_echo_n "(cached) " >&6
  5165. else
  5166. while :; do
  5167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5168. /* end confdefs.h. */
  5169. #include <sys/types.h>
  5170. /* Check that off_t can represent 2**63 - 1 correctly.
  5171. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5172. since some C++ compilers masquerading as C compilers
  5173. incorrectly reject 9223372036854775807. */
  5174. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5175. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5176. && LARGE_OFF_T % 2147483647 == 1)
  5177. ? 1 : -1];
  5178. int
  5179. main ()
  5180. {
  5181. ;
  5182. return 0;
  5183. }
  5184. _ACEOF
  5185. if ac_fn_c_try_compile "$LINENO"; then :
  5186. ac_cv_sys_large_files=no; break
  5187. fi
  5188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5190. /* end confdefs.h. */
  5191. #define _LARGE_FILES 1
  5192. #include <sys/types.h>
  5193. /* Check that off_t can represent 2**63 - 1 correctly.
  5194. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5195. since some C++ compilers masquerading as C compilers
  5196. incorrectly reject 9223372036854775807. */
  5197. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5198. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5199. && LARGE_OFF_T % 2147483647 == 1)
  5200. ? 1 : -1];
  5201. int
  5202. main ()
  5203. {
  5204. ;
  5205. return 0;
  5206. }
  5207. _ACEOF
  5208. if ac_fn_c_try_compile "$LINENO"; then :
  5209. ac_cv_sys_large_files=1; break
  5210. fi
  5211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5212. ac_cv_sys_large_files=unknown
  5213. break
  5214. done
  5215. fi
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  5217. $as_echo "$ac_cv_sys_large_files" >&6; }
  5218. case $ac_cv_sys_large_files in #(
  5219. no | unknown) ;;
  5220. *)
  5221. cat >>confdefs.h <<_ACEOF
  5222. #define _LARGE_FILES $ac_cv_sys_large_files
  5223. _ACEOF
  5224. ;;
  5225. esac
  5226. rm -rf conftest*
  5227. fi
  5228. fi
  5229. LARGEFILE=""
  5230. if test x$enable_largefile != xno; then
  5231. LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
  5232. if test x$ac_cv_sys_large_files = x1; then
  5233. LARGEFILE="$LARGEFILE -D_LARGE_FILES"
  5234. fi
  5235. if test x$ac_cv_sys_file_offset_bits = x64; then
  5236. LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
  5237. fi
  5238. fi
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  5240. $as_echo_n "checking for long long int... " >&6; }
  5241. if ${ac_cv_c_long_long+:} false; then :
  5242. $as_echo_n "(cached) " >&6
  5243. else
  5244. if test "$GCC" = yes; then
  5245. ac_cv_c_long_long=yes
  5246. else
  5247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5248. /* end confdefs.h. */
  5249. int
  5250. main ()
  5251. {
  5252. long long int i;
  5253. ;
  5254. return 0;
  5255. }
  5256. _ACEOF
  5257. if ac_fn_c_try_compile "$LINENO"; then :
  5258. ac_cv_c_long_long=yes
  5259. else
  5260. ac_cv_c_long_long=no
  5261. fi
  5262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5263. fi
  5264. fi
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
  5266. $as_echo "$ac_cv_c_long_long" >&6; }
  5267. if test $ac_cv_c_long_long = yes; then
  5268. $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
  5269. fi
  5270. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  5271. if test "x$ac_cv_func_strtoll" = xyes; then :
  5272. $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
  5273. fi
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
  5275. $as_echo_n "checking for library containing dlsym... " >&6; }
  5276. if ${ac_cv_search_dlsym+:} false; then :
  5277. $as_echo_n "(cached) " >&6
  5278. else
  5279. ac_func_search_save_LIBS=$LIBS
  5280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5281. /* end confdefs.h. */
  5282. /* Override any GCC internal prototype to avoid an error.
  5283. Use char because int might match the return type of a GCC
  5284. builtin and then its argument prototype would still apply. */
  5285. #ifdef __cplusplus
  5286. extern "C"
  5287. #endif
  5288. char dlsym ();
  5289. int
  5290. main ()
  5291. {
  5292. return dlsym ();
  5293. ;
  5294. return 0;
  5295. }
  5296. _ACEOF
  5297. for ac_lib in '' dl; do
  5298. if test -z "$ac_lib"; then
  5299. ac_res="none required"
  5300. else
  5301. ac_res=-l$ac_lib
  5302. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5303. fi
  5304. if ac_fn_c_try_link "$LINENO"; then :
  5305. ac_cv_search_dlsym=$ac_res
  5306. fi
  5307. rm -f core conftest.err conftest.$ac_objext \
  5308. conftest$ac_exeext
  5309. if ${ac_cv_search_dlsym+:} false; then :
  5310. break
  5311. fi
  5312. done
  5313. if ${ac_cv_search_dlsym+:} false; then :
  5314. else
  5315. ac_cv_search_dlsym=no
  5316. fi
  5317. rm conftest.$ac_ext
  5318. LIBS=$ac_func_search_save_LIBS
  5319. fi
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
  5321. $as_echo "$ac_cv_search_dlsym" >&6; }
  5322. ac_res=$ac_cv_search_dlsym
  5323. if test "$ac_res" != no; then :
  5324. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5325. $as_echo "#define HAVE_DLSYM 1" >>confdefs.h
  5326. fi
  5327. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  5328. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  5329. $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
  5330. fi
  5331. AUDIOLIBS=""
  5332. case $uname in
  5333. CYGWIN* | MINGW*)
  5334. AUDIOLIBS="-lwinmm"
  5335. ;;
  5336. Darwin*)
  5337. AUDIOLIBS="-framework CoreAudio"
  5338. ;;
  5339. *)
  5340. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  5341. if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
  5342. $as_echo "#define HAVE_ALSA_ASOUNDLIB_H 1" >>confdefs.h
  5343. AUDIOLIBS="-lasound"
  5344. fi
  5345. ;;
  5346. esac
  5347. SAVELIBS="$LIBS"
  5348. IMAGELIBS=""
  5349. STATICIMAGELIBS=""
  5350. # Handle the JPEG lib linking mode (use ntk local or system lib)
  5351. # If --enable-(resp. --disable-)localjpeg parameter is not set by user
  5352. # Then we check the JPEG lib usability, with result in sysjpeglib_ok variable
  5353. # Check whether --enable-localjpeg was given.
  5354. if test "${enable_localjpeg+set}" = set; then :
  5355. enableval=$enable_localjpeg;
  5356. fi
  5357. # Check for System lib use if automatic mode or --disable-localjpeg is requested
  5358. sysjpeglib_ok=no
  5359. sysjpeginc_ok=no
  5360. if test x$enable_localjpeg != xyes; then
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateCompress in -ljpeg" >&5
  5362. $as_echo_n "checking for jpeg_CreateCompress in -ljpeg... " >&6; }
  5363. if ${ac_cv_lib_jpeg_jpeg_CreateCompress+:} false; then :
  5364. $as_echo_n "(cached) " >&6
  5365. else
  5366. ac_check_lib_save_LIBS=$LIBS
  5367. LIBS="-ljpeg $LIBS"
  5368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5369. /* end confdefs.h. */
  5370. /* Override any GCC internal prototype to avoid an error.
  5371. Use char because int might match the return type of a GCC
  5372. builtin and then its argument prototype would still apply. */
  5373. #ifdef __cplusplus
  5374. extern "C"
  5375. #endif
  5376. char jpeg_CreateCompress ();
  5377. int
  5378. main ()
  5379. {
  5380. return jpeg_CreateCompress ();
  5381. ;
  5382. return 0;
  5383. }
  5384. _ACEOF
  5385. if ac_fn_c_try_link "$LINENO"; then :
  5386. ac_cv_lib_jpeg_jpeg_CreateCompress=yes
  5387. else
  5388. ac_cv_lib_jpeg_jpeg_CreateCompress=no
  5389. fi
  5390. rm -f core conftest.err conftest.$ac_objext \
  5391. conftest$ac_exeext conftest.$ac_ext
  5392. LIBS=$ac_check_lib_save_LIBS
  5393. fi
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5
  5395. $as_echo "$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6; }
  5396. if test "x$ac_cv_lib_jpeg_jpeg_CreateCompress" = xyes; then :
  5397. ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
  5398. if test "x$ac_cv_header_jpeglib_h" = xyes; then :
  5399. sysjpeginc_ok=yes
  5400. fi
  5401. if test x$sysjpeginc_ok = xyes; then
  5402. sysjpeglib_ok=yes
  5403. fi
  5404. fi
  5405. fi
  5406. # Now set the jpeg lib and include flags according to the requested mode and availability
  5407. if test x$enable_localjpeg = xyes -o x$sysjpeglib_ok = xno; then
  5408. JPEGINC="-I../jpeg"
  5409. JPEG="jpeg"
  5410. IMAGELIBS="-lntk_jpeg $IMAGELIBS"
  5411. STATICIMAGELIBS="\$libdir/libntk_jpeg.a $STATICIMAGELIBS"
  5412. $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
  5413. #ac_cv_lib_jpeg_jpeg_CreateCompress=no # from ima: should not be necessary
  5414. # Finally, warn user if system lib was requested but not found
  5415. if test x$enable_localjpeg = xno; then
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find system jpeg lib or header: choosing the local lib mode." >&5
  5417. $as_echo "$as_me: WARNING: Cannot find system jpeg lib or header: choosing the local lib mode." >&2;}
  5418. fi
  5419. else
  5420. JPEGINC=""
  5421. JPEG=""
  5422. IMAGELIBS="-ljpeg $IMAGELIBS"
  5423. STATICIMAGELIBS="-ljpeg $STATICIMAGELIBS"
  5424. $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
  5425. fi
  5426. # Handle the ZLIB lib linking mode (use ntk local or system lib)
  5427. # If --enable-(resp. --disable-)localzlib parameter is not set by user
  5428. # Then we check the ZLIB lib usability, with result in syszlib_ok variable
  5429. # Check whether --enable-localzlib was given.
  5430. if test "${enable_localzlib+set}" = set; then :
  5431. enableval=$enable_localzlib;
  5432. fi
  5433. # Check for System lib use if automatic mode or --disable-localzlib is requested
  5434. syszlib_ok=no
  5435. syszinc_ok=no
  5436. if test x$enable_localzlib != xyes; then
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
  5438. $as_echo_n "checking for gzgets in -lz... " >&6; }
  5439. if ${ac_cv_lib_z_gzgets+:} false; then :
  5440. $as_echo_n "(cached) " >&6
  5441. else
  5442. ac_check_lib_save_LIBS=$LIBS
  5443. LIBS="-lz $LIBS"
  5444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5445. /* end confdefs.h. */
  5446. /* Override any GCC internal prototype to avoid an error.
  5447. Use char because int might match the return type of a GCC
  5448. builtin and then its argument prototype would still apply. */
  5449. #ifdef __cplusplus
  5450. extern "C"
  5451. #endif
  5452. char gzgets ();
  5453. int
  5454. main ()
  5455. {
  5456. return gzgets ();
  5457. ;
  5458. return 0;
  5459. }
  5460. _ACEOF
  5461. if ac_fn_c_try_link "$LINENO"; then :
  5462. ac_cv_lib_z_gzgets=yes
  5463. else
  5464. ac_cv_lib_z_gzgets=no
  5465. fi
  5466. rm -f core conftest.err conftest.$ac_objext \
  5467. conftest$ac_exeext conftest.$ac_ext
  5468. LIBS=$ac_check_lib_save_LIBS
  5469. fi
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
  5471. $as_echo "$ac_cv_lib_z_gzgets" >&6; }
  5472. if test "x$ac_cv_lib_z_gzgets" = xyes; then :
  5473. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5474. if test "x$ac_cv_header_zlib_h" = xyes; then :
  5475. syszinc_ok=yes
  5476. fi
  5477. if test x$syszinc_ok = xyes; then
  5478. syszlib_ok=yes
  5479. fi
  5480. fi
  5481. fi
  5482. # Now set the Z lib and include flags according to the requested mode and availability
  5483. if test x$enable_localzlib = xyes -o x$syszlib_ok = xno ; then
  5484. ZLIBINC="-I../zlib"
  5485. ZLIB="zlib"
  5486. LIBS="-lntk_z $LIBS"
  5487. IMAGELIBS="-lntk_z $IMAGELIBS"
  5488. STATICIMAGELIBS="\$libdir/libntk_z.a $STATICIMAGELIBS"
  5489. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  5490. ac_cv_lib_z_gzgets=no # fc: is still necessary ?
  5491. # Finally, warn user if system lib was requested but not found
  5492. if test x$enable_localzlib = xno; then
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find system z lib or header: choosing the local lib mode." >&5
  5494. $as_echo "$as_me: WARNING: Cannot find system z lib or header: choosing the local lib mode." >&2;}
  5495. fi
  5496. else
  5497. ZLIBINC=""
  5498. ZLIB=""
  5499. LIBS="-lz $LIBS"
  5500. IMAGELIBS="-lz $IMAGELIBS"
  5501. STATICIMAGELIBS="-lz $STATICIMAGELIBS"
  5502. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  5503. fi
  5504. # Handle the PNG lib linking mode (use ntk local or system lib)
  5505. # If --enable-(resp. --disable-)localpng parameter is not set by user
  5506. # Then we check the png lib usability with result in syspng_lib variable
  5507. # Check whether --enable-localpng was given.
  5508. if test "${enable_localpng+set}" = set; then :
  5509. enableval=$enable_localpng;
  5510. fi
  5511. # Now check if system lib is usable, we check Lib AND include availability with inc variant,
  5512. # but only, if the builtin lib is not requested
  5513. syspnglib_ok=no
  5514. syspnginc_ok=no
  5515. if test x$enable_localpng != xyes; then
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_info in -lpng" >&5
  5517. $as_echo_n "checking for png_read_info in -lpng... " >&6; }
  5518. if ${ac_cv_lib_png_png_read_info+:} false; then :
  5519. $as_echo_n "(cached) " >&6
  5520. else
  5521. ac_check_lib_save_LIBS=$LIBS
  5522. LIBS="-lpng $LIBS"
  5523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5524. /* end confdefs.h. */
  5525. /* Override any GCC internal prototype to avoid an error.
  5526. Use char because int might match the return type of a GCC
  5527. builtin and then its argument prototype would still apply. */
  5528. #ifdef __cplusplus
  5529. extern "C"
  5530. #endif
  5531. char png_read_info ();
  5532. int
  5533. main ()
  5534. {
  5535. return png_read_info ();
  5536. ;
  5537. return 0;
  5538. }
  5539. _ACEOF
  5540. if ac_fn_c_try_link "$LINENO"; then :
  5541. ac_cv_lib_png_png_read_info=yes
  5542. else
  5543. ac_cv_lib_png_png_read_info=no
  5544. fi
  5545. rm -f core conftest.err conftest.$ac_objext \
  5546. conftest$ac_exeext conftest.$ac_ext
  5547. LIBS=$ac_check_lib_save_LIBS
  5548. fi
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_info" >&5
  5550. $as_echo "$ac_cv_lib_png_png_read_info" >&6; }
  5551. if test "x$ac_cv_lib_png_png_read_info" = xyes; then :
  5552. ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
  5553. if test "x$ac_cv_header_png_h" = xyes; then :
  5554. $as_echo "#define HAVE_PNG_H 1" >>confdefs.h
  5555. syspnginc_ok=yes
  5556. fi
  5557. ac_fn_c_check_header_mongrel "$LINENO" "libpng/png.h" "ac_cv_header_libpng_png_h" "$ac_includes_default"
  5558. if test "x$ac_cv_header_libpng_png_h" = xyes; then :
  5559. $as_echo "#define HAVE_LIBPNG_PNG_H 1" >>confdefs.h
  5560. syspnginc_ok=yes
  5561. fi
  5562. if test x$syspnginc_ok = xyes; then
  5563. syspnglib_ok=yes
  5564. fi
  5565. fi
  5566. fi
  5567. # The following is executed if the lib was not found usable or if local lib is required explicitly
  5568. if test x$enable_localpng = xyes -o x$syspnglib_ok = xno ; then
  5569. PNGINC="-I../png"
  5570. PNG="png"
  5571. IMAGELIBS="-lntk_png $IMAGELIBS"
  5572. STATICIMAGELIBS="\$libdir/libntk_png.a $STATICIMAGELIBS"
  5573. $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
  5574. $as_echo "#define HAVE_PNG_H 1" >>confdefs.h
  5575. $as_echo "#define HAVE_PNG_GET_VALID 1" >>confdefs.h
  5576. $as_echo "#define HAVE_PNG_SET_TRNS_TO_ALPHA 1" >>confdefs.h
  5577. # Finally, warn user if system lib was requested but not found
  5578. if test x$enable_localpng = xno; then
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find system png lib or header: choosing the local lib mode." >&5
  5580. $as_echo "$as_me: WARNING: Cannot find system png lib or header: choosing the local lib mode." >&2;}
  5581. fi
  5582. else
  5583. PNGINC=""
  5584. PNG=""
  5585. IMAGELIBS="-lpng $IMAGELIBS"
  5586. STATICIMAGELIBS="-lpng $STATICIMAGELIBS"
  5587. $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_valid in -lpng" >&5
  5589. $as_echo_n "checking for png_get_valid in -lpng... " >&6; }
  5590. if ${ac_cv_lib_png_png_get_valid+:} false; then :
  5591. $as_echo_n "(cached) " >&6
  5592. else
  5593. ac_check_lib_save_LIBS=$LIBS
  5594. LIBS="-lpng $LIBS"
  5595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5596. /* end confdefs.h. */
  5597. /* Override any GCC internal prototype to avoid an error.
  5598. Use char because int might match the return type of a GCC
  5599. builtin and then its argument prototype would still apply. */
  5600. #ifdef __cplusplus
  5601. extern "C"
  5602. #endif
  5603. char png_get_valid ();
  5604. int
  5605. main ()
  5606. {
  5607. return png_get_valid ();
  5608. ;
  5609. return 0;
  5610. }
  5611. _ACEOF
  5612. if ac_fn_c_try_link "$LINENO"; then :
  5613. ac_cv_lib_png_png_get_valid=yes
  5614. else
  5615. ac_cv_lib_png_png_get_valid=no
  5616. fi
  5617. rm -f core conftest.err conftest.$ac_objext \
  5618. conftest$ac_exeext conftest.$ac_ext
  5619. LIBS=$ac_check_lib_save_LIBS
  5620. fi
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_valid" >&5
  5622. $as_echo "$ac_cv_lib_png_png_get_valid" >&6; }
  5623. if test "x$ac_cv_lib_png_png_get_valid" = xyes; then :
  5624. $as_echo "#define HAVE_PNG_GET_VALID 1" >>confdefs.h
  5625. fi
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_tRNS_to_alpha in -lpng" >&5
  5627. $as_echo_n "checking for png_set_tRNS_to_alpha in -lpng... " >&6; }
  5628. if ${ac_cv_lib_png_png_set_tRNS_to_alpha+:} false; then :
  5629. $as_echo_n "(cached) " >&6
  5630. else
  5631. ac_check_lib_save_LIBS=$LIBS
  5632. LIBS="-lpng $LIBS"
  5633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5634. /* end confdefs.h. */
  5635. /* Override any GCC internal prototype to avoid an error.
  5636. Use char because int might match the return type of a GCC
  5637. builtin and then its argument prototype would still apply. */
  5638. #ifdef __cplusplus
  5639. extern "C"
  5640. #endif
  5641. char png_set_tRNS_to_alpha ();
  5642. int
  5643. main ()
  5644. {
  5645. return png_set_tRNS_to_alpha ();
  5646. ;
  5647. return 0;
  5648. }
  5649. _ACEOF
  5650. if ac_fn_c_try_link "$LINENO"; then :
  5651. ac_cv_lib_png_png_set_tRNS_to_alpha=yes
  5652. else
  5653. ac_cv_lib_png_png_set_tRNS_to_alpha=no
  5654. fi
  5655. rm -f core conftest.err conftest.$ac_objext \
  5656. conftest$ac_exeext conftest.$ac_ext
  5657. LIBS=$ac_check_lib_save_LIBS
  5658. fi
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_tRNS_to_alpha" >&5
  5660. $as_echo "$ac_cv_lib_png_png_set_tRNS_to_alpha" >&6; }
  5661. if test "x$ac_cv_lib_png_png_set_tRNS_to_alpha" = xyes; then :
  5662. $as_echo "#define HAVE_PNG_SET_TRNS_TO_ALPHA 1" >>confdefs.h
  5663. fi
  5664. fi
  5665. LIBS="$SAVELIBS"
  5666. have_pthread=no
  5667. PTHREAD_FLAGS=""
  5668. check_pthread=yes
  5669. case $uname in
  5670. MINGW*)
  5671. check_pthread=no
  5672. ;;
  5673. CYGWIN*)
  5674. if test "x$enable_cygwin" != xyes; then
  5675. check_pthread=no
  5676. fi
  5677. ;;
  5678. *)
  5679. ;;
  5680. esac
  5681. if test "x$enable_threads" != xno -a x$check_pthread = xyes; then
  5682. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  5683. if test "x$ac_cv_header_pthread_h" = xyes; then :
  5684. $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
  5685. fi
  5686. if test x$ac_cv_header_pthread_h = xyes; then
  5687. for flag in -lpthreads -lpthread -pthread; do
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
  5689. $as_echo_n "checking for pthread_create using $flag... " >&6; }
  5690. SAVELIBS="$LIBS"
  5691. LIBS="$flag $LIBS"
  5692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5693. /* end confdefs.h. */
  5694. #include <pthread.h>
  5695. int
  5696. main ()
  5697. {
  5698. pthread_create(0, 0, 0, 0);
  5699. ;
  5700. return 0;
  5701. }
  5702. _ACEOF
  5703. if ac_fn_c_try_link "$LINENO"; then :
  5704. have_pthread=yes
  5705. else
  5706. LIBS="$SAVELIBS"
  5707. fi
  5708. rm -f core conftest.err conftest.$ac_objext \
  5709. conftest$ac_exeext conftest.$ac_ext
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
  5711. $as_echo "$have_pthread" >&6; }
  5712. if test $have_pthread = yes; then
  5713. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  5714. PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
  5715. # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
  5716. # be POSIX-compliant... :(
  5717. if test $uname = SunOS; then
  5718. PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
  5719. fi
  5720. break
  5721. fi
  5722. done
  5723. fi
  5724. fi
  5725. HLINKS=
  5726. OSX_ONLY=:
  5727. THREADS=
  5728. # Check whether --with-links was given.
  5729. if test "${with_links+set}" = set; then :
  5730. withval=$with_links;
  5731. fi
  5732. INSTALL_DESKTOP=""
  5733. UNINSTALL_DESKTOP=""
  5734. case $uname_GUI in
  5735. CYGWIN* | MINGW*)
  5736. # Recent versions of Cygwin are seriously broken and the size
  5737. # checks don't work because the shell puts out \r\n instead of
  5738. # \n. Here we just force U32 to be defined to "unsigned"...
  5739. $as_echo "#define U32 unsigned" >>confdefs.h
  5740. CFLAGS="-mwindows -DWIN32 -DUSE_OPENGL32 $CFLAGS"
  5741. CXXFLAGS="-mwindows -DWIN32 -DUSE_OPENGL32 $CXXFLAGS"
  5742. LDFLAGS="-mwindows $LDFLAGS"
  5743. DSOFLAGS="-mwindows $DSOFLAGS"
  5744. LIBS="$LIBS -lole32 -luuid -lcomctl32"
  5745. if test "x$with_optim" = x; then
  5746. with_optim="-O3"
  5747. fi
  5748. if test x$enable_gl != xno; then
  5749. ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
  5750. if test "x$ac_cv_header_GL_gl_h" = xyes; then :
  5751. $as_echo "#define HAVE_GL 1" >>confdefs.h
  5752. GLLIB="-lopengl32"
  5753. fi
  5754. ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
  5755. if test "x$ac_cv_header_GL_glu_h" = xyes; then :
  5756. $as_echo "#define HAVE_GL_GLU_H 1" >>confdefs.h
  5757. GLLIB="-lglu32 $GLLIB"
  5758. fi
  5759. else
  5760. LINKFLTKGL=""
  5761. GLLIBNAME=""
  5762. GLDSONAME=""
  5763. GLDEMOS=""
  5764. fi
  5765. if test "x$enable_threads" != xno; then
  5766. if test x$have_pthread = xyes; then
  5767. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  5768. fi
  5769. fi
  5770. THREADS="threads$EXEEXT"
  5771. # Don't make symlinks since Windows is not case sensitive.
  5772. if test "x$with_links" != xyes; then
  5773. HLINKS="#"
  5774. fi
  5775. ;;
  5776. Darwin*)
  5777. # MacOS X uses Cocoa for graphics.
  5778. LIBS="$LIBS -framework Cocoa"
  5779. if test x$have_pthread = xyes; then
  5780. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  5781. THREADS="threads$EXEEXT"
  5782. fi
  5783. if test x$enable_gl != xno; then
  5784. $as_echo "#define HAVE_GL 1" >>confdefs.h
  5785. $as_echo "#define HAVE_GL_GLU_H 1" >>confdefs.h
  5786. GLLIB="-framework AGL -framework OpenGL -framework ApplicationServices"
  5787. else
  5788. LINKFLTKGL=""
  5789. GLLIBNAME=""
  5790. GLDSONAME=""
  5791. GLDEMOS=""
  5792. fi
  5793. # Don't make symlinks because HFS+ is not case sensitive...
  5794. if test "x$with_links" != xyes; then
  5795. HLINKS="#"
  5796. fi
  5797. # Some steps are only done for OS X package management
  5798. OSX_ONLY=
  5799. # Install/Uninstall FLUID application
  5800. INSTALL_DESKTOP="install-osx"
  5801. UNINSTALL_DESKTOP="uninstall-osx"
  5802. ;;
  5803. *)
  5804. # All others are UNIX/X11...
  5805. # This includes Cygwin target combined with X11
  5806. if test x$have_pthread = xyes; then
  5807. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  5808. THREADS="threads$EXEEXT"
  5809. fi
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  5811. $as_echo_n "checking for X... " >&6; }
  5812. # Check whether --with-x was given.
  5813. if test "${with_x+set}" = set; then :
  5814. withval=$with_x;
  5815. fi
  5816. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  5817. if test "x$with_x" = xno; then
  5818. # The user explicitly disabled X.
  5819. have_x=disabled
  5820. else
  5821. case $x_includes,$x_libraries in #(
  5822. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  5823. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  5824. $as_echo_n "(cached) " >&6
  5825. else
  5826. # One or both of the vars are not set, and there is no cached value.
  5827. ac_x_includes=no ac_x_libraries=no
  5828. rm -f -r conftest.dir
  5829. if mkdir conftest.dir; then
  5830. cd conftest.dir
  5831. cat >Imakefile <<'_ACEOF'
  5832. incroot:
  5833. @echo incroot='${INCROOT}'
  5834. usrlibdir:
  5835. @echo usrlibdir='${USRLIBDIR}'
  5836. libdir:
  5837. @echo libdir='${LIBDIR}'
  5838. _ACEOF
  5839. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  5840. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  5841. for ac_var in incroot usrlibdir libdir; do
  5842. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  5843. done
  5844. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  5845. for ac_extension in a so sl dylib la dll; do
  5846. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  5847. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  5848. ac_im_usrlibdir=$ac_im_libdir; break
  5849. fi
  5850. done
  5851. # Screen out bogus values from the imake configuration. They are
  5852. # bogus both because they are the default anyway, and because
  5853. # using them would break gcc on systems where it needs fixed includes.
  5854. case $ac_im_incroot in
  5855. /usr/include) ac_x_includes= ;;
  5856. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  5857. esac
  5858. case $ac_im_usrlibdir in
  5859. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  5860. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  5861. esac
  5862. fi
  5863. cd ..
  5864. rm -f -r conftest.dir
  5865. fi
  5866. # Standard set of common directories for X headers.
  5867. # Check X11 before X11Rn because it is often a symlink to the current release.
  5868. ac_x_header_dirs='
  5869. /usr/X11/include
  5870. /usr/X11R7/include
  5871. /usr/X11R6/include
  5872. /usr/X11R5/include
  5873. /usr/X11R4/include
  5874. /usr/include/X11
  5875. /usr/include/X11R7
  5876. /usr/include/X11R6
  5877. /usr/include/X11R5
  5878. /usr/include/X11R4
  5879. /usr/local/X11/include
  5880. /usr/local/X11R7/include
  5881. /usr/local/X11R6/include
  5882. /usr/local/X11R5/include
  5883. /usr/local/X11R4/include
  5884. /usr/local/include/X11
  5885. /usr/local/include/X11R7
  5886. /usr/local/include/X11R6
  5887. /usr/local/include/X11R5
  5888. /usr/local/include/X11R4
  5889. /usr/X386/include
  5890. /usr/x386/include
  5891. /usr/XFree86/include/X11
  5892. /usr/include
  5893. /usr/local/include
  5894. /usr/unsupported/include
  5895. /usr/athena/include
  5896. /usr/local/x11r5/include
  5897. /usr/lpp/Xamples/include
  5898. /usr/openwin/include
  5899. /usr/openwin/share/include'
  5900. if test "$ac_x_includes" = no; then
  5901. # Guess where to find include files, by looking for Xlib.h.
  5902. # First, try using that file with no special directory specified.
  5903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5904. /* end confdefs.h. */
  5905. #include <X11/Xlib.h>
  5906. _ACEOF
  5907. if ac_fn_c_try_cpp "$LINENO"; then :
  5908. # We can compile using X headers with no special include directory.
  5909. ac_x_includes=
  5910. else
  5911. for ac_dir in $ac_x_header_dirs; do
  5912. if test -r "$ac_dir/X11/Xlib.h"; then
  5913. ac_x_includes=$ac_dir
  5914. break
  5915. fi
  5916. done
  5917. fi
  5918. rm -f conftest.err conftest.i conftest.$ac_ext
  5919. fi # $ac_x_includes = no
  5920. if test "$ac_x_libraries" = no; then
  5921. # Check for the libraries.
  5922. # See if we find them without any special options.
  5923. # Don't add to $LIBS permanently.
  5924. ac_save_LIBS=$LIBS
  5925. LIBS="-lX11 $LIBS"
  5926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5927. /* end confdefs.h. */
  5928. #include <X11/Xlib.h>
  5929. int
  5930. main ()
  5931. {
  5932. XrmInitialize ()
  5933. ;
  5934. return 0;
  5935. }
  5936. _ACEOF
  5937. if ac_fn_c_try_link "$LINENO"; then :
  5938. LIBS=$ac_save_LIBS
  5939. # We can link X programs with no special library path.
  5940. ac_x_libraries=
  5941. else
  5942. LIBS=$ac_save_LIBS
  5943. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  5944. do
  5945. # Don't even attempt the hair of trying to link an X program!
  5946. for ac_extension in a so sl dylib la dll; do
  5947. if test -r "$ac_dir/libX11.$ac_extension"; then
  5948. ac_x_libraries=$ac_dir
  5949. break 2
  5950. fi
  5951. done
  5952. done
  5953. fi
  5954. rm -f core conftest.err conftest.$ac_objext \
  5955. conftest$ac_exeext conftest.$ac_ext
  5956. fi # $ac_x_libraries = no
  5957. case $ac_x_includes,$ac_x_libraries in #(
  5958. no,* | *,no | *\'*)
  5959. # Didn't find X, or a directory has "'" in its name.
  5960. ac_cv_have_x="have_x=no";; #(
  5961. *)
  5962. # Record where we found X for the cache.
  5963. ac_cv_have_x="have_x=yes\
  5964. ac_x_includes='$ac_x_includes'\
  5965. ac_x_libraries='$ac_x_libraries'"
  5966. esac
  5967. fi
  5968. ;; #(
  5969. *) have_x=yes;;
  5970. esac
  5971. eval "$ac_cv_have_x"
  5972. fi # $with_x != no
  5973. if test "$have_x" != yes; then
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  5975. $as_echo "$have_x" >&6; }
  5976. no_x=yes
  5977. else
  5978. # If each of the values was on the command line, it overrides each guess.
  5979. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  5980. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  5981. # Update the cache value to reflect the command line values.
  5982. ac_cv_have_x="have_x=yes\
  5983. ac_x_includes='$x_includes'\
  5984. ac_x_libraries='$x_libraries'"
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  5986. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  5987. fi
  5988. if test "$no_x" = yes; then
  5989. # Not all programs may use this symbol, but it does not hurt to define it.
  5990. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  5991. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  5992. else
  5993. if test -n "$x_includes"; then
  5994. X_CFLAGS="$X_CFLAGS -I$x_includes"
  5995. fi
  5996. # It would also be nice to do this for all -L options, not just this one.
  5997. if test -n "$x_libraries"; then
  5998. X_LIBS="$X_LIBS -L$x_libraries"
  5999. # For Solaris; some versions of Sun CC require a space after -R and
  6000. # others require no space. Words are not sufficient . . . .
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  6002. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  6003. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  6004. ac_xsave_c_werror_flag=$ac_c_werror_flag
  6005. ac_c_werror_flag=yes
  6006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6007. /* end confdefs.h. */
  6008. int
  6009. main ()
  6010. {
  6011. ;
  6012. return 0;
  6013. }
  6014. _ACEOF
  6015. if ac_fn_c_try_link "$LINENO"; then :
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6017. $as_echo "no" >&6; }
  6018. X_LIBS="$X_LIBS -R$x_libraries"
  6019. else
  6020. LIBS="$ac_xsave_LIBS -R $x_libraries"
  6021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6022. /* end confdefs.h. */
  6023. int
  6024. main ()
  6025. {
  6026. ;
  6027. return 0;
  6028. }
  6029. _ACEOF
  6030. if ac_fn_c_try_link "$LINENO"; then :
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6032. $as_echo "yes" >&6; }
  6033. X_LIBS="$X_LIBS -R $x_libraries"
  6034. else
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  6036. $as_echo "neither works" >&6; }
  6037. fi
  6038. rm -f core conftest.err conftest.$ac_objext \
  6039. conftest$ac_exeext conftest.$ac_ext
  6040. fi
  6041. rm -f core conftest.err conftest.$ac_objext \
  6042. conftest$ac_exeext conftest.$ac_ext
  6043. ac_c_werror_flag=$ac_xsave_c_werror_flag
  6044. LIBS=$ac_xsave_LIBS
  6045. fi
  6046. # Check for system-dependent libraries X programs must link with.
  6047. # Do this before checking for the system-independent R6 libraries
  6048. # (-lICE), since we may need -lsocket or whatever for X linking.
  6049. if test "$ISC" = yes; then
  6050. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  6051. else
  6052. # Martyn Johnson says this is needed for Ultrix, if the X
  6053. # libraries were built with DECnet support. And Karl Berry says
  6054. # the Alpha needs dnet_stub (dnet does not exist).
  6055. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  6056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6057. /* end confdefs.h. */
  6058. /* Override any GCC internal prototype to avoid an error.
  6059. Use char because int might match the return type of a GCC
  6060. builtin and then its argument prototype would still apply. */
  6061. #ifdef __cplusplus
  6062. extern "C"
  6063. #endif
  6064. char XOpenDisplay ();
  6065. int
  6066. main ()
  6067. {
  6068. return XOpenDisplay ();
  6069. ;
  6070. return 0;
  6071. }
  6072. _ACEOF
  6073. if ac_fn_c_try_link "$LINENO"; then :
  6074. else
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  6076. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  6077. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  6078. $as_echo_n "(cached) " >&6
  6079. else
  6080. ac_check_lib_save_LIBS=$LIBS
  6081. LIBS="-ldnet $LIBS"
  6082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6083. /* end confdefs.h. */
  6084. /* Override any GCC internal prototype to avoid an error.
  6085. Use char because int might match the return type of a GCC
  6086. builtin and then its argument prototype would still apply. */
  6087. #ifdef __cplusplus
  6088. extern "C"
  6089. #endif
  6090. char dnet_ntoa ();
  6091. int
  6092. main ()
  6093. {
  6094. return dnet_ntoa ();
  6095. ;
  6096. return 0;
  6097. }
  6098. _ACEOF
  6099. if ac_fn_c_try_link "$LINENO"; then :
  6100. ac_cv_lib_dnet_dnet_ntoa=yes
  6101. else
  6102. ac_cv_lib_dnet_dnet_ntoa=no
  6103. fi
  6104. rm -f core conftest.err conftest.$ac_objext \
  6105. conftest$ac_exeext conftest.$ac_ext
  6106. LIBS=$ac_check_lib_save_LIBS
  6107. fi
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  6109. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  6110. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  6111. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  6112. fi
  6113. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  6115. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  6116. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  6117. $as_echo_n "(cached) " >&6
  6118. else
  6119. ac_check_lib_save_LIBS=$LIBS
  6120. LIBS="-ldnet_stub $LIBS"
  6121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6122. /* end confdefs.h. */
  6123. /* Override any GCC internal prototype to avoid an error.
  6124. Use char because int might match the return type of a GCC
  6125. builtin and then its argument prototype would still apply. */
  6126. #ifdef __cplusplus
  6127. extern "C"
  6128. #endif
  6129. char dnet_ntoa ();
  6130. int
  6131. main ()
  6132. {
  6133. return dnet_ntoa ();
  6134. ;
  6135. return 0;
  6136. }
  6137. _ACEOF
  6138. if ac_fn_c_try_link "$LINENO"; then :
  6139. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  6140. else
  6141. ac_cv_lib_dnet_stub_dnet_ntoa=no
  6142. fi
  6143. rm -f core conftest.err conftest.$ac_objext \
  6144. conftest$ac_exeext conftest.$ac_ext
  6145. LIBS=$ac_check_lib_save_LIBS
  6146. fi
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  6148. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  6149. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  6150. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  6151. fi
  6152. fi
  6153. fi
  6154. rm -f core conftest.err conftest.$ac_objext \
  6155. conftest$ac_exeext conftest.$ac_ext
  6156. LIBS="$ac_xsave_LIBS"
  6157. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  6158. # to get the SysV transport functions.
  6159. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  6160. # needs -lnsl.
  6161. # The nsl library prevents programs from opening the X display
  6162. # on Irix 5.2, according to T.E. Dickey.
  6163. # The functions gethostbyname, getservbyname, and inet_addr are
  6164. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  6165. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  6166. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  6167. fi
  6168. if test $ac_cv_func_gethostbyname = no; then
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  6170. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  6171. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  6172. $as_echo_n "(cached) " >&6
  6173. else
  6174. ac_check_lib_save_LIBS=$LIBS
  6175. LIBS="-lnsl $LIBS"
  6176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6177. /* end confdefs.h. */
  6178. /* Override any GCC internal prototype to avoid an error.
  6179. Use char because int might match the return type of a GCC
  6180. builtin and then its argument prototype would still apply. */
  6181. #ifdef __cplusplus
  6182. extern "C"
  6183. #endif
  6184. char gethostbyname ();
  6185. int
  6186. main ()
  6187. {
  6188. return gethostbyname ();
  6189. ;
  6190. return 0;
  6191. }
  6192. _ACEOF
  6193. if ac_fn_c_try_link "$LINENO"; then :
  6194. ac_cv_lib_nsl_gethostbyname=yes
  6195. else
  6196. ac_cv_lib_nsl_gethostbyname=no
  6197. fi
  6198. rm -f core conftest.err conftest.$ac_objext \
  6199. conftest$ac_exeext conftest.$ac_ext
  6200. LIBS=$ac_check_lib_save_LIBS
  6201. fi
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  6203. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  6204. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  6205. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  6206. fi
  6207. if test $ac_cv_lib_nsl_gethostbyname = no; then
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  6209. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  6210. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  6211. $as_echo_n "(cached) " >&6
  6212. else
  6213. ac_check_lib_save_LIBS=$LIBS
  6214. LIBS="-lbsd $LIBS"
  6215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6216. /* end confdefs.h. */
  6217. /* Override any GCC internal prototype to avoid an error.
  6218. Use char because int might match the return type of a GCC
  6219. builtin and then its argument prototype would still apply. */
  6220. #ifdef __cplusplus
  6221. extern "C"
  6222. #endif
  6223. char gethostbyname ();
  6224. int
  6225. main ()
  6226. {
  6227. return gethostbyname ();
  6228. ;
  6229. return 0;
  6230. }
  6231. _ACEOF
  6232. if ac_fn_c_try_link "$LINENO"; then :
  6233. ac_cv_lib_bsd_gethostbyname=yes
  6234. else
  6235. ac_cv_lib_bsd_gethostbyname=no
  6236. fi
  6237. rm -f core conftest.err conftest.$ac_objext \
  6238. conftest$ac_exeext conftest.$ac_ext
  6239. LIBS=$ac_check_lib_save_LIBS
  6240. fi
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  6242. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  6243. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  6244. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  6245. fi
  6246. fi
  6247. fi
  6248. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  6249. # socket/setsockopt and other routines are undefined under SCO ODT
  6250. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  6251. # on later versions), says Simon Leinen: it contains gethostby*
  6252. # variants that don't use the name server (or something). -lsocket
  6253. # must be given before -lnsl if both are needed. We assume that
  6254. # if connect needs -lnsl, so does gethostbyname.
  6255. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  6256. if test "x$ac_cv_func_connect" = xyes; then :
  6257. fi
  6258. if test $ac_cv_func_connect = no; then
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  6260. $as_echo_n "checking for connect in -lsocket... " >&6; }
  6261. if ${ac_cv_lib_socket_connect+:} false; then :
  6262. $as_echo_n "(cached) " >&6
  6263. else
  6264. ac_check_lib_save_LIBS=$LIBS
  6265. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  6266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6267. /* end confdefs.h. */
  6268. /* Override any GCC internal prototype to avoid an error.
  6269. Use char because int might match the return type of a GCC
  6270. builtin and then its argument prototype would still apply. */
  6271. #ifdef __cplusplus
  6272. extern "C"
  6273. #endif
  6274. char connect ();
  6275. int
  6276. main ()
  6277. {
  6278. return connect ();
  6279. ;
  6280. return 0;
  6281. }
  6282. _ACEOF
  6283. if ac_fn_c_try_link "$LINENO"; then :
  6284. ac_cv_lib_socket_connect=yes
  6285. else
  6286. ac_cv_lib_socket_connect=no
  6287. fi
  6288. rm -f core conftest.err conftest.$ac_objext \
  6289. conftest$ac_exeext conftest.$ac_ext
  6290. LIBS=$ac_check_lib_save_LIBS
  6291. fi
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  6293. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  6294. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  6295. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  6296. fi
  6297. fi
  6298. # Guillermo Gomez says -lposix is necessary on A/UX.
  6299. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  6300. if test "x$ac_cv_func_remove" = xyes; then :
  6301. fi
  6302. if test $ac_cv_func_remove = no; then
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  6304. $as_echo_n "checking for remove in -lposix... " >&6; }
  6305. if ${ac_cv_lib_posix_remove+:} false; then :
  6306. $as_echo_n "(cached) " >&6
  6307. else
  6308. ac_check_lib_save_LIBS=$LIBS
  6309. LIBS="-lposix $LIBS"
  6310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6311. /* end confdefs.h. */
  6312. /* Override any GCC internal prototype to avoid an error.
  6313. Use char because int might match the return type of a GCC
  6314. builtin and then its argument prototype would still apply. */
  6315. #ifdef __cplusplus
  6316. extern "C"
  6317. #endif
  6318. char remove ();
  6319. int
  6320. main ()
  6321. {
  6322. return remove ();
  6323. ;
  6324. return 0;
  6325. }
  6326. _ACEOF
  6327. if ac_fn_c_try_link "$LINENO"; then :
  6328. ac_cv_lib_posix_remove=yes
  6329. else
  6330. ac_cv_lib_posix_remove=no
  6331. fi
  6332. rm -f core conftest.err conftest.$ac_objext \
  6333. conftest$ac_exeext conftest.$ac_ext
  6334. LIBS=$ac_check_lib_save_LIBS
  6335. fi
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  6337. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  6338. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  6339. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  6340. fi
  6341. fi
  6342. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  6343. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  6344. if test "x$ac_cv_func_shmat" = xyes; then :
  6345. fi
  6346. if test $ac_cv_func_shmat = no; then
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  6348. $as_echo_n "checking for shmat in -lipc... " >&6; }
  6349. if ${ac_cv_lib_ipc_shmat+:} false; then :
  6350. $as_echo_n "(cached) " >&6
  6351. else
  6352. ac_check_lib_save_LIBS=$LIBS
  6353. LIBS="-lipc $LIBS"
  6354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6355. /* end confdefs.h. */
  6356. /* Override any GCC internal prototype to avoid an error.
  6357. Use char because int might match the return type of a GCC
  6358. builtin and then its argument prototype would still apply. */
  6359. #ifdef __cplusplus
  6360. extern "C"
  6361. #endif
  6362. char shmat ();
  6363. int
  6364. main ()
  6365. {
  6366. return shmat ();
  6367. ;
  6368. return 0;
  6369. }
  6370. _ACEOF
  6371. if ac_fn_c_try_link "$LINENO"; then :
  6372. ac_cv_lib_ipc_shmat=yes
  6373. else
  6374. ac_cv_lib_ipc_shmat=no
  6375. fi
  6376. rm -f core conftest.err conftest.$ac_objext \
  6377. conftest$ac_exeext conftest.$ac_ext
  6378. LIBS=$ac_check_lib_save_LIBS
  6379. fi
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  6381. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  6382. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  6383. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  6384. fi
  6385. fi
  6386. fi
  6387. # Check for libraries that X11R6 Xt/Xaw programs need.
  6388. ac_save_LDFLAGS=$LDFLAGS
  6389. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  6390. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  6391. # check for ICE first), but we must link in the order -lSM -lICE or
  6392. # we get undefined symbols. So assume we have SM if we have ICE.
  6393. # These have to be linked with before -lX11, unlike the other
  6394. # libraries we check for below, so use a different variable.
  6395. # John Interrante, Karl Berry
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  6397. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  6398. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  6399. $as_echo_n "(cached) " >&6
  6400. else
  6401. ac_check_lib_save_LIBS=$LIBS
  6402. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  6403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6404. /* end confdefs.h. */
  6405. /* Override any GCC internal prototype to avoid an error.
  6406. Use char because int might match the return type of a GCC
  6407. builtin and then its argument prototype would still apply. */
  6408. #ifdef __cplusplus
  6409. extern "C"
  6410. #endif
  6411. char IceConnectionNumber ();
  6412. int
  6413. main ()
  6414. {
  6415. return IceConnectionNumber ();
  6416. ;
  6417. return 0;
  6418. }
  6419. _ACEOF
  6420. if ac_fn_c_try_link "$LINENO"; then :
  6421. ac_cv_lib_ICE_IceConnectionNumber=yes
  6422. else
  6423. ac_cv_lib_ICE_IceConnectionNumber=no
  6424. fi
  6425. rm -f core conftest.err conftest.$ac_objext \
  6426. conftest$ac_exeext conftest.$ac_ext
  6427. LIBS=$ac_check_lib_save_LIBS
  6428. fi
  6429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  6430. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  6431. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  6432. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  6433. fi
  6434. LDFLAGS=$ac_save_LDFLAGS
  6435. fi
  6436. if test x$no_x = xyes; then
  6437. as_fn_error aborting. "Configure could not find required X11 libraries" "$LINENO" 5
  6438. fi
  6439. if test "x$X_PRE_LIBS" != x; then
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring libraries \"$X_PRE_LIBS\" requested by configure." >&5
  6441. $as_echo "$as_me: WARNING: Ignoring libraries \"$X_PRE_LIBS\" requested by configure." >&2;}
  6442. fi
  6443. LIBS="$LIBS -lX11 $X_EXTRA_LIBS"
  6444. CFLAGS="$CFLAGS $X_CFLAGS"
  6445. CXXFLAGS="$CXXFLAGS $X_CFLAGS"
  6446. LDFLAGS="$X_LIBS $LDFLAGS"
  6447. DSOFLAGS="$X_LIBS $DSOFLAGS"
  6448. $as_echo "#define USE_X11 1" >>confdefs.h
  6449. if test "x$x_includes" != x; then
  6450. ac_cpp="$ac_cpp -I$x_includes"
  6451. fi
  6452. GLLIB=
  6453. if test x$enable_gl != xno; then
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  6455. $as_echo_n "checking for library containing dlopen... " >&6; }
  6456. if ${ac_cv_search_dlopen+:} false; then :
  6457. $as_echo_n "(cached) " >&6
  6458. else
  6459. ac_func_search_save_LIBS=$LIBS
  6460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6461. /* end confdefs.h. */
  6462. /* Override any GCC internal prototype to avoid an error.
  6463. Use char because int might match the return type of a GCC
  6464. builtin and then its argument prototype would still apply. */
  6465. #ifdef __cplusplus
  6466. extern "C"
  6467. #endif
  6468. char dlopen ();
  6469. int
  6470. main ()
  6471. {
  6472. return dlopen ();
  6473. ;
  6474. return 0;
  6475. }
  6476. _ACEOF
  6477. for ac_lib in '' dl; do
  6478. if test -z "$ac_lib"; then
  6479. ac_res="none required"
  6480. else
  6481. ac_res=-l$ac_lib
  6482. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6483. fi
  6484. if ac_fn_c_try_link "$LINENO"; then :
  6485. ac_cv_search_dlopen=$ac_res
  6486. fi
  6487. rm -f core conftest.err conftest.$ac_objext \
  6488. conftest$ac_exeext
  6489. if ${ac_cv_search_dlopen+:} false; then :
  6490. break
  6491. fi
  6492. done
  6493. if ${ac_cv_search_dlopen+:} false; then :
  6494. else
  6495. ac_cv_search_dlopen=no
  6496. fi
  6497. rm conftest.$ac_ext
  6498. LIBS=$ac_func_search_save_LIBS
  6499. fi
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  6501. $as_echo "$ac_cv_search_dlopen" >&6; }
  6502. ac_res=$ac_cv_search_dlopen
  6503. if test "$ac_res" != no; then :
  6504. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6505. fi
  6506. ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
  6507. if test "x$ac_cv_header_GL_gl_h" = xyes; then :
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXMakeCurrent in -lGL" >&5
  6509. $as_echo_n "checking for glXMakeCurrent in -lGL... " >&6; }
  6510. if ${ac_cv_lib_GL_glXMakeCurrent+:} false; then :
  6511. $as_echo_n "(cached) " >&6
  6512. else
  6513. ac_check_lib_save_LIBS=$LIBS
  6514. LIBS="-lGL -lm $LIBS"
  6515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6516. /* end confdefs.h. */
  6517. /* Override any GCC internal prototype to avoid an error.
  6518. Use char because int might match the return type of a GCC
  6519. builtin and then its argument prototype would still apply. */
  6520. #ifdef __cplusplus
  6521. extern "C"
  6522. #endif
  6523. char glXMakeCurrent ();
  6524. int
  6525. main ()
  6526. {
  6527. return glXMakeCurrent ();
  6528. ;
  6529. return 0;
  6530. }
  6531. _ACEOF
  6532. if ac_fn_c_try_link "$LINENO"; then :
  6533. ac_cv_lib_GL_glXMakeCurrent=yes
  6534. else
  6535. ac_cv_lib_GL_glXMakeCurrent=no
  6536. fi
  6537. rm -f core conftest.err conftest.$ac_objext \
  6538. conftest$ac_exeext conftest.$ac_ext
  6539. LIBS=$ac_check_lib_save_LIBS
  6540. fi
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXMakeCurrent" >&5
  6542. $as_echo "$ac_cv_lib_GL_glXMakeCurrent" >&6; }
  6543. if test "x$ac_cv_lib_GL_glXMakeCurrent" = xyes; then :
  6544. $as_echo "#define HAVE_GL 1" >>confdefs.h
  6545. GLLIB="-lGL"
  6546. else
  6547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXMakeCurrent in -lMesaGL" >&5
  6548. $as_echo_n "checking for glXMakeCurrent in -lMesaGL... " >&6; }
  6549. if ${ac_cv_lib_MesaGL_glXMakeCurrent+:} false; then :
  6550. $as_echo_n "(cached) " >&6
  6551. else
  6552. ac_check_lib_save_LIBS=$LIBS
  6553. LIBS="-lMesaGL -lm $LIBS"
  6554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6555. /* end confdefs.h. */
  6556. /* Override any GCC internal prototype to avoid an error.
  6557. Use char because int might match the return type of a GCC
  6558. builtin and then its argument prototype would still apply. */
  6559. #ifdef __cplusplus
  6560. extern "C"
  6561. #endif
  6562. char glXMakeCurrent ();
  6563. int
  6564. main ()
  6565. {
  6566. return glXMakeCurrent ();
  6567. ;
  6568. return 0;
  6569. }
  6570. _ACEOF
  6571. if ac_fn_c_try_link "$LINENO"; then :
  6572. ac_cv_lib_MesaGL_glXMakeCurrent=yes
  6573. else
  6574. ac_cv_lib_MesaGL_glXMakeCurrent=no
  6575. fi
  6576. rm -f core conftest.err conftest.$ac_objext \
  6577. conftest$ac_exeext conftest.$ac_ext
  6578. LIBS=$ac_check_lib_save_LIBS
  6579. fi
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGL_glXMakeCurrent" >&5
  6581. $as_echo "$ac_cv_lib_MesaGL_glXMakeCurrent" >&6; }
  6582. if test "x$ac_cv_lib_MesaGL_glXMakeCurrent" = xyes; then :
  6583. $as_echo "#define HAVE_GL 1" >>confdefs.h
  6584. GLLIB=" -lMesaGL"
  6585. fi
  6586. fi
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXGetProcAddressARB in -lGL" >&5
  6588. $as_echo_n "checking for glXGetProcAddressARB in -lGL... " >&6; }
  6589. if ${ac_cv_lib_GL_glXGetProcAddressARB+:} false; then :
  6590. $as_echo_n "(cached) " >&6
  6591. else
  6592. ac_check_lib_save_LIBS=$LIBS
  6593. LIBS="-lGL -lm $LIBS"
  6594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6595. /* end confdefs.h. */
  6596. /* Override any GCC internal prototype to avoid an error.
  6597. Use char because int might match the return type of a GCC
  6598. builtin and then its argument prototype would still apply. */
  6599. #ifdef __cplusplus
  6600. extern "C"
  6601. #endif
  6602. char glXGetProcAddressARB ();
  6603. int
  6604. main ()
  6605. {
  6606. return glXGetProcAddressARB ();
  6607. ;
  6608. return 0;
  6609. }
  6610. _ACEOF
  6611. if ac_fn_c_try_link "$LINENO"; then :
  6612. ac_cv_lib_GL_glXGetProcAddressARB=yes
  6613. else
  6614. ac_cv_lib_GL_glXGetProcAddressARB=no
  6615. fi
  6616. rm -f core conftest.err conftest.$ac_objext \
  6617. conftest$ac_exeext conftest.$ac_ext
  6618. LIBS=$ac_check_lib_save_LIBS
  6619. fi
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
  6621. $as_echo "$ac_cv_lib_GL_glXGetProcAddressARB" >&6; }
  6622. if test "x$ac_cv_lib_GL_glXGetProcAddressARB" = xyes; then :
  6623. $as_echo "#define HAVE_GLXGETPROCADDRESSARB 1" >>confdefs.h
  6624. fi
  6625. fi
  6626. ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
  6627. if test "x$ac_cv_header_GL_glu_h" = xyes; then :
  6628. $as_echo "#define HAVE_GL_GLU_H 1" >>confdefs.h
  6629. if test x$ac_cv_lib_GL_glXMakeCurrent = xyes; then
  6630. GLLIB="-lGLU $GLLIB"
  6631. fi
  6632. if test x$ac_cv_lib_MesaGL_glXMakeCurrent = xyes; then
  6633. GLLIB="-lMesaGLU $GLLIB"
  6634. fi
  6635. fi
  6636. if test x$ac_cv_lib_GL_glXMakeCurrent != xyes -a x$ac_cv_lib_MesaGL_glXMakeCurrent != xyes; then
  6637. LINKFLTKGL=""
  6638. GLLIBNAME=""
  6639. GLDSONAME=""
  6640. GLDEMOS=""
  6641. fi
  6642. else
  6643. LINKFLTKGL=""
  6644. GLLIBNAME=""
  6645. GLDSONAME=""
  6646. GLDEMOS=""
  6647. fi
  6648. # Check whether --enable-xinerama was given.
  6649. if test "${enable_xinerama+set}" = set; then :
  6650. enableval=$enable_xinerama;
  6651. fi
  6652. if test x$enable_xinerama != xno; then
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaIsActive in -lXinerama" >&5
  6654. $as_echo_n "checking for XineramaIsActive in -lXinerama... " >&6; }
  6655. if ${ac_cv_lib_Xinerama_XineramaIsActive+:} false; then :
  6656. $as_echo_n "(cached) " >&6
  6657. else
  6658. ac_check_lib_save_LIBS=$LIBS
  6659. LIBS="-lXinerama $LIBS"
  6660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6661. /* end confdefs.h. */
  6662. /* Override any GCC internal prototype to avoid an error.
  6663. Use char because int might match the return type of a GCC
  6664. builtin and then its argument prototype would still apply. */
  6665. #ifdef __cplusplus
  6666. extern "C"
  6667. #endif
  6668. char XineramaIsActive ();
  6669. int
  6670. main ()
  6671. {
  6672. return XineramaIsActive ();
  6673. ;
  6674. return 0;
  6675. }
  6676. _ACEOF
  6677. if ac_fn_c_try_link "$LINENO"; then :
  6678. ac_cv_lib_Xinerama_XineramaIsActive=yes
  6679. else
  6680. ac_cv_lib_Xinerama_XineramaIsActive=no
  6681. fi
  6682. rm -f core conftest.err conftest.$ac_objext \
  6683. conftest$ac_exeext conftest.$ac_ext
  6684. LIBS=$ac_check_lib_save_LIBS
  6685. fi
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaIsActive" >&5
  6687. $as_echo "$ac_cv_lib_Xinerama_XineramaIsActive" >&6; }
  6688. if test "x$ac_cv_lib_Xinerama_XineramaIsActive" = xyes; then :
  6689. $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
  6690. LIBS="-lXinerama $LIBS"
  6691. fi
  6692. fi
  6693. # Check whether --enable-xft was given.
  6694. if test "${enable_xft+set}" = set; then :
  6695. enableval=$enable_xft;
  6696. fi
  6697. if test x$enable_xft != xno; then
  6698. # Extract the first word of "freetype-config", so it can be a program name with args.
  6699. set dummy freetype-config; ac_word=$2
  6700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6701. $as_echo_n "checking for $ac_word... " >&6; }
  6702. if ${ac_cv_path_FTCONFIG+:} false; then :
  6703. $as_echo_n "(cached) " >&6
  6704. else
  6705. case $FTCONFIG in
  6706. [\\/]* | ?:[\\/]*)
  6707. ac_cv_path_FTCONFIG="$FTCONFIG" # Let the user override the test with a path.
  6708. ;;
  6709. *)
  6710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6711. for as_dir in $PATH
  6712. do
  6713. IFS=$as_save_IFS
  6714. test -z "$as_dir" && as_dir=.
  6715. for ac_exec_ext in '' $ac_executable_extensions; do
  6716. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6717. ac_cv_path_FTCONFIG="$as_dir/$ac_word$ac_exec_ext"
  6718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6719. break 2
  6720. fi
  6721. done
  6722. done
  6723. IFS=$as_save_IFS
  6724. ;;
  6725. esac
  6726. fi
  6727. FTCONFIG=$ac_cv_path_FTCONFIG
  6728. if test -n "$FTCONFIG"; then
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FTCONFIG" >&5
  6730. $as_echo "$FTCONFIG" >&6; }
  6731. else
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6733. $as_echo "no" >&6; }
  6734. fi
  6735. if test "x$FTCONFIG" != x; then
  6736. CPPFLAGS="`$FTCONFIG --cflags` $CPPFLAGS"
  6737. CXXFLAGS="`$FTCONFIG --cflags` $CXXFLAGS"
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternCreate in -lfontconfig" >&5
  6739. $as_echo_n "checking for FcPatternCreate in -lfontconfig... " >&6; }
  6740. if ${ac_cv_lib_fontconfig_FcPatternCreate+:} false; then :
  6741. $as_echo_n "(cached) " >&6
  6742. else
  6743. ac_check_lib_save_LIBS=$LIBS
  6744. LIBS="-lfontconfig $LIBS"
  6745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6746. /* end confdefs.h. */
  6747. /* Override any GCC internal prototype to avoid an error.
  6748. Use char because int might match the return type of a GCC
  6749. builtin and then its argument prototype would still apply. */
  6750. #ifdef __cplusplus
  6751. extern "C"
  6752. #endif
  6753. char FcPatternCreate ();
  6754. int
  6755. main ()
  6756. {
  6757. return FcPatternCreate ();
  6758. ;
  6759. return 0;
  6760. }
  6761. _ACEOF
  6762. if ac_fn_c_try_link "$LINENO"; then :
  6763. ac_cv_lib_fontconfig_FcPatternCreate=yes
  6764. else
  6765. ac_cv_lib_fontconfig_FcPatternCreate=no
  6766. fi
  6767. rm -f core conftest.err conftest.$ac_objext \
  6768. conftest$ac_exeext conftest.$ac_ext
  6769. LIBS=$ac_check_lib_save_LIBS
  6770. fi
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternCreate" >&5
  6772. $as_echo "$ac_cv_lib_fontconfig_FcPatternCreate" >&6; }
  6773. if test "x$ac_cv_lib_fontconfig_FcPatternCreate" = xyes; then :
  6774. cat >>confdefs.h <<_ACEOF
  6775. #define HAVE_LIBFONTCONFIG 1
  6776. _ACEOF
  6777. LIBS="-lfontconfig $LIBS"
  6778. fi
  6779. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
  6780. if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawCreate in -lXft" >&5
  6782. $as_echo_n "checking for XftDrawCreate in -lXft... " >&6; }
  6783. if ${ac_cv_lib_Xft_XftDrawCreate+:} false; then :
  6784. $as_echo_n "(cached) " >&6
  6785. else
  6786. ac_check_lib_save_LIBS=$LIBS
  6787. LIBS="-lXft $LIBS"
  6788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6789. /* end confdefs.h. */
  6790. /* Override any GCC internal prototype to avoid an error.
  6791. Use char because int might match the return type of a GCC
  6792. builtin and then its argument prototype would still apply. */
  6793. #ifdef __cplusplus
  6794. extern "C"
  6795. #endif
  6796. char XftDrawCreate ();
  6797. int
  6798. main ()
  6799. {
  6800. return XftDrawCreate ();
  6801. ;
  6802. return 0;
  6803. }
  6804. _ACEOF
  6805. if ac_fn_c_try_link "$LINENO"; then :
  6806. ac_cv_lib_Xft_XftDrawCreate=yes
  6807. else
  6808. ac_cv_lib_Xft_XftDrawCreate=no
  6809. fi
  6810. rm -f core conftest.err conftest.$ac_objext \
  6811. conftest$ac_exeext conftest.$ac_ext
  6812. LIBS=$ac_check_lib_save_LIBS
  6813. fi
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawCreate" >&5
  6815. $as_echo "$ac_cv_lib_Xft_XftDrawCreate" >&6; }
  6816. if test "x$ac_cv_lib_Xft_XftDrawCreate" = xyes; then :
  6817. $as_echo "#define USE_XFT 1" >>confdefs.h
  6818. LIBS="-lXft $LIBS"
  6819. fi
  6820. fi
  6821. fi
  6822. fi
  6823. # Extract the first word of "xprop", so it can be a program name with args.
  6824. set dummy xprop; ac_word=$2
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6826. $as_echo_n "checking for $ac_word... " >&6; }
  6827. if ${ac_cv_path_XPROP+:} false; then :
  6828. $as_echo_n "(cached) " >&6
  6829. else
  6830. case $XPROP in
  6831. [\\/]* | ?:[\\/]*)
  6832. ac_cv_path_XPROP="$XPROP" # Let the user override the test with a path.
  6833. ;;
  6834. *)
  6835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6836. for as_dir in $PATH
  6837. do
  6838. IFS=$as_save_IFS
  6839. test -z "$as_dir" && as_dir=.
  6840. for ac_exec_ext in '' $ac_executable_extensions; do
  6841. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6842. ac_cv_path_XPROP="$as_dir/$ac_word$ac_exec_ext"
  6843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6844. break 2
  6845. fi
  6846. done
  6847. done
  6848. IFS=$as_save_IFS
  6849. ;;
  6850. esac
  6851. fi
  6852. XPROP=$ac_cv_path_XPROP
  6853. if test -n "$XPROP"; then
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPROP" >&5
  6855. $as_echo "$XPROP" >&6; }
  6856. else
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6858. $as_echo "no" >&6; }
  6859. fi
  6860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X overlay visuals" >&5
  6861. $as_echo_n "checking for X overlay visuals... " >&6; }
  6862. if ${ac_cv_have_overlay+:} false; then :
  6863. $as_echo_n "(cached) " >&6
  6864. else
  6865. if test "x$XPROP" != x; then
  6866. if $XPROP -root 2>/dev/null | grep -c "SERVER_OVERLAY_VISUALS" >/dev/null; then
  6867. ac_cv_have_overlay=yes
  6868. else
  6869. ac_cv_have_overlay=no
  6870. fi
  6871. else
  6872. ac_cv_have_overlay=no
  6873. fi
  6874. fi
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_overlay" >&5
  6876. $as_echo "$ac_cv_have_overlay" >&6; }
  6877. if test x$ac_cv_have_overlay = xyes; then
  6878. $as_echo "#define HAVE_OVERLAY 1" >>confdefs.h
  6879. fi
  6880. # Make symlinks since UNIX/Linux is case sensitive,
  6881. # but Cygwin in general not.
  6882. case $uname in
  6883. CYGWIN*)
  6884. HLINKS="#"
  6885. ;;
  6886. *)
  6887. ;;
  6888. esac
  6889. # Make symlinks since UNIX/Linux is case sensitive,
  6890. # but only if explicitly configured (default=no)
  6891. if test "x$with_links" != xyes; then
  6892. HLINKS="#"
  6893. fi
  6894. # Install/Uninstall FLUID application support files
  6895. INSTALL_DESKTOP="install-linux"
  6896. UNINSTALL_DESKTOP="uninstall-linux"
  6897. ;;
  6898. esac
  6899. case "$uname" in
  6900. *BSD* | Darwin*)
  6901. # *BSD
  6902. CAT1EXT=0
  6903. CAT3EXT=0
  6904. CAT6EXT=0
  6905. ;;
  6906. IRIX*)
  6907. # SGI IRIX
  6908. CAT1EXT=z
  6909. CAT3EXT=z
  6910. CAT6EXT=z
  6911. ;;
  6912. *)
  6913. # All others
  6914. CAT1EXT=1
  6915. CAT3EXT=3
  6916. CAT6EXT=6
  6917. ;;
  6918. esac
  6919. if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/usr"; then
  6920. case "$uname" in
  6921. *BSD* | Darwin* | Linux*)
  6922. # *BSD, Darwin, and Linux
  6923. mandir="\${prefix}/share/man"
  6924. ;;
  6925. IRIX*)
  6926. # SGI IRIX
  6927. mandir="\${prefix}/share/catman"
  6928. ;;
  6929. esac
  6930. fi
  6931. if test "$prefix" = NONE; then
  6932. prefix=/usr/local
  6933. fi
  6934. if test "$exec_prefix" = NONE; then
  6935. exec_prefix="\${prefix}"
  6936. fi
  6937. if test "$uname" = "IRIX" -a $uversion -ge 62 -a "$libdir" = "\${exec_prefix}/lib" -a "$exec_prefix" = "\${prefix}" -a "$prefix" = "/usr"; then
  6938. libdir="/usr/lib32"
  6939. fi
  6940. MAKEDEPEND="\$(CXX) -M"
  6941. if test -n "$GCC"; then
  6942. # Show all standard warnings + unused variables, conversion errors,
  6943. # and inlining problems when compiling...
  6944. OPTIM="-Wall -Wunused -Wno-format-y2k $OPTIM"
  6945. # The following additional warnings are useful for tracking down problems...
  6946. #OPTIM="-Wshadow -Wconversion $OPTIM"
  6947. # We know that Carbon is deprecated on OS X 10.4. To avoid hundreds of warnings
  6948. # we will temporarily disable 'deprecated' warnings on OS X.
  6949. if test "$uname" = "Darwin" -a $uversion -ge 800; then
  6950. OPTIM="-Wno-deprecated-declarations $OPTIM"
  6951. fi
  6952. # Set the default compiler optimizations...
  6953. if test -z "$DEBUGFLAG"; then
  6954. #
  6955. # Note: Can't use -fomit-frame-pointer - prevents tools like
  6956. # libsafe from working!
  6957. #
  6958. # Don't use -fforce-mem, -fforce-addr, or -fcaller-saves.
  6959. # They all seem to make either no difference or enlarge
  6960. # the code by a few hundred bytes.
  6961. #
  6962. # "-Os" seems to be the best compromise between speed and
  6963. # code size. "-O3" and higher seem to make no effective
  6964. # difference in the speed of the code, but does bloat the
  6965. # library 10+%.
  6966. #
  6967. if test "x$with_optim" != x; then
  6968. OPTIM="$with_optim $OPTIM"
  6969. else
  6970. OPTIM="-Os $OPTIM"
  6971. fi
  6972. fi
  6973. # Generate position-independent code when needed...
  6974. if test $PICFLAG = 1; then
  6975. OPTIM="$OPTIM -fPIC"
  6976. fi
  6977. # See if GCC supports -fno-exceptions...
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fno-exceptions" >&5
  6979. $as_echo_n "checking if GCC supports -fno-exceptions... " >&6; }
  6980. OLDCFLAGS="$CFLAGS"
  6981. CFLAGS="$CFLAGS -fno-exceptions"
  6982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6983. /* end confdefs.h. */
  6984. int
  6985. main ()
  6986. {
  6987. ;
  6988. return 0;
  6989. }
  6990. _ACEOF
  6991. if ac_fn_c_try_compile "$LINENO"; then :
  6992. OPTIM="$OPTIM -fno-exceptions"
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6994. $as_echo "yes" >&6; }
  6995. else
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6997. $as_echo "no" >&6; }
  6998. fi
  6999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7000. CFLAGS="$OLDCFLAGS"
  7001. # See if GCC supports -fno-strict-aliasing...
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fno-strict-aliasing" >&5
  7003. $as_echo_n "checking if GCC supports -fno-strict-aliasing... " >&6; }
  7004. OLDCFLAGS="$CFLAGS"
  7005. CFLAGS="$CFLAGS -fno-strict-aliasing"
  7006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7007. /* end confdefs.h. */
  7008. int
  7009. main ()
  7010. {
  7011. ;
  7012. return 0;
  7013. }
  7014. _ACEOF
  7015. if ac_fn_c_try_compile "$LINENO"; then :
  7016. OPTIM="$OPTIM -fno-strict-aliasing"
  7017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7018. $as_echo "yes" >&6; }
  7019. else
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7021. $as_echo "no" >&6; }
  7022. fi
  7023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7024. CFLAGS="$OLDCFLAGS"
  7025. # See if we are running Solaris; if so, try the -fpermissive option...
  7026. # This option is required on some versions of Solaris to work around
  7027. # bugs in the X headers up through Solaris 7.
  7028. #
  7029. # Unlike the other compiler/optimization settings, this one is placed
  7030. # in CFLAGS and CXXFLAGS so that ntk-config will provide the option
  7031. # to clients - otherwise client apps will not compile properly...
  7032. if test "$uname" = SunOS; then
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fpermissive" >&5
  7034. $as_echo_n "checking if GCC supports -fpermissive... " >&6; }
  7035. OLDCFLAGS="$CFLAGS"
  7036. CFLAGS="$CFLAGS -fpermissive"
  7037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7038. /* end confdefs.h. */
  7039. int
  7040. main ()
  7041. {
  7042. ;
  7043. return 0;
  7044. }
  7045. _ACEOF
  7046. if ac_fn_c_try_compile "$LINENO"; then :
  7047. CXXFLAGS="$CXXFLAGS -fpermissive"
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7049. $as_echo "yes" >&6; }
  7050. else
  7051. CFLAGS="$OLDCFLAGS"
  7052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7053. $as_echo "no" >&6; }
  7054. fi
  7055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7056. fi
  7057. else
  7058. case "$uname" in
  7059. IRIX*)
  7060. # Running some flavor of IRIX; see which version and
  7061. # set things up according...
  7062. if test "$uversion" -ge 62; then
  7063. # We are running IRIX 6.2 or higher; uncomment the following
  7064. # lines if you don't have IDO 7.2 or higher:
  7065. #
  7066. # CXX="CC -n32 -mips3"
  7067. # CC="cc -n32 -mips3"
  7068. # LD="ld -n32 -mips3"
  7069. # MAKEDEPEND="CC -M"
  7070. if test "x`grep abi=n32 /etc/compiler.defaults`" = x; then
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FOR BEST RESULTS BEFORE COMPILING: setenv SGI_ABI \"-n32 -mips3\"" >&5
  7072. $as_echo "$as_me: WARNING: FOR BEST RESULTS BEFORE COMPILING: setenv SGI_ABI \"-n32 -mips3\"" >&2;}
  7073. fi
  7074. OPTIM="-fullwarn $OPTIM"
  7075. fi
  7076. if test -z "$DEBUGFLAG"; then
  7077. if test "x$with_optim" != x; then
  7078. OPTIM="$with_optim $OPTIM"
  7079. else
  7080. OPTIM="-O2 $OPTIM"
  7081. if test $uversion -gt 62; then
  7082. OPTIM="-OPT:Olimit=4000 $OPTIM"
  7083. fi
  7084. fi
  7085. fi
  7086. ;;
  7087. HP-UX*)
  7088. # Running HP-UX; these options should work for the HP compilers.
  7089. if test -z "$DEBUGFLAG"; then
  7090. if test "x$with_optim" != x; then
  7091. OPTIM="$with_optim $OPTIM"
  7092. else
  7093. OPTIM="+O2 $OPTIM"
  7094. fi
  7095. fi
  7096. if test $PICFLAG = 1; then
  7097. OPTIM="+z $OPTIM"
  7098. fi
  7099. CXXFLAGS="$CXXFLAGS +W336,501,736,740,749,829"
  7100. ;;
  7101. OSF1*)
  7102. # Running Digital/Tru64 UNIX; these options should work for the
  7103. # Digital/Compaq/NewHP compilers.
  7104. if test -z "$DEBUGFLAG"; then
  7105. if test "x$with_optim" != x; then
  7106. OPTIM="$with_optim $OPTIM"
  7107. else
  7108. OPTIM="-O2 $OPTIM"
  7109. fi
  7110. fi
  7111. ;;
  7112. SunOS*)
  7113. # Solaris
  7114. if test -z "$DEBUGFLAG"; then
  7115. if test "x$with_optim" != x; then
  7116. OPTIM="$with_optim $OPTIM"
  7117. else
  7118. OPTIM="-xO3 $OPTIM"
  7119. fi
  7120. fi
  7121. if test $PICFLAG = 1; then
  7122. OPTIM="-KPIC $OPTIM"
  7123. fi
  7124. ;;
  7125. AIX*)
  7126. if test -z "$DEBUGFLAG"; then
  7127. if test "x$with_optim" != x; then
  7128. OPTIM="$with_optim $OPTIM"
  7129. else
  7130. OPTIM="-O2 $OPTIM"
  7131. fi
  7132. fi
  7133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The AIX C and C++ compilers are known not to correctly compile the FLTK library." >&5
  7134. $as_echo "$as_me: WARNING: The AIX C and C++ compilers are known not to correctly compile the FLTK library." >&2;}
  7135. ;;
  7136. *)
  7137. # Running some other operating system; inform the user they
  7138. # should contribute the necessary options via the STR form..
  7139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building FLTK with default compiler optimizations" >&5
  7140. $as_echo "$as_me: WARNING: Building FLTK with default compiler optimizations" >&2;}
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Send the FLTK developers your uname and compiler options via http://www.ntk.org/str.php" >&5
  7142. $as_echo "$as_me: WARNING: Send the FLTK developers your uname and compiler options via http://www.ntk.org/str.php" >&2;}
  7143. ;;
  7144. esac
  7145. fi
  7146. OPTIM="$DEBUGFLAG $OPTIM"
  7147. if test `uname` = Darwin; then
  7148. if test "x$with_archflags" != x ; then
  7149. CFLAGS="`echo $CFLAGS | sed -e "s/$with_archflags//g"`"
  7150. fi
  7151. fi
  7152. case $uname in
  7153. MINGW*)
  7154. # Determine the path where MSys has /usr installed
  7155. msyspath=`mount | grep '\/usr' | grep -v '\/usr\/bin' | cut -d ' ' -f -1 | sed -e 's/\\\/\// g'`
  7156. # Then substitute that in the WIN32 path instead of /usr
  7157. cat >>confdefs.h <<_ACEOF
  7158. #define FLTK_DOCDIR "$msyspath/local/share/doc/ntk"
  7159. _ACEOF
  7160. ;;
  7161. *)
  7162. if test x$prefix = xNONE; then
  7163. cat >>confdefs.h <<_ACEOF
  7164. #define FLTK_DOCDIR "/usr/local/share/doc/ntk"
  7165. _ACEOF
  7166. else
  7167. cat >>confdefs.h <<_ACEOF
  7168. #define FLTK_DOCDIR "$prefix/share/doc/ntk"
  7169. _ACEOF
  7170. fi
  7171. ;;
  7172. esac
  7173. if test x$prefix = xNONE; then
  7174. cat >>confdefs.h <<_ACEOF
  7175. #define FLTK_DATADIR "/usr/local/share/ntk"
  7176. _ACEOF
  7177. else
  7178. cat >>confdefs.h <<_ACEOF
  7179. #define FLTK_DATADIR "$prefix/share/ntk"
  7180. _ACEOF
  7181. fi
  7182. echo ""
  7183. echo "Configuration Summary"
  7184. echo "-------------------------------------------------------------------------"
  7185. case $uname_GUI in
  7186. CYGWIN* | MINGW*)
  7187. graphics="GDI"
  7188. ;;
  7189. Darwin*)
  7190. graphics="Quartz"
  7191. ;;
  7192. *)
  7193. graphics="X11"
  7194. if test x$enable_xft != xno; then
  7195. graphics="$graphics+Xft"
  7196. fi
  7197. if test x$enable_xinerama != xno; then
  7198. graphics="$graphics+Xinerama"
  7199. fi
  7200. ;;
  7201. esac
  7202. echo " Directories: prefix=$prefix"
  7203. echo " bindir=$bindir"
  7204. echo " datadir=$datadir"
  7205. echo " datarootdir=$datarootdir"
  7206. echo " exec_prefix=$exec_prefix"
  7207. echo " includedir=$includedir"
  7208. echo " libdir=$libdir"
  7209. echo " mandir=$mandir"
  7210. case $uname in
  7211. MINGW*)
  7212. echo " MSys docpath=$msyspath/local/share/doc/ntk"
  7213. ;;
  7214. esac
  7215. echo " Graphics: $graphics"
  7216. if test x$JPEG = x; then
  7217. echo "Image Libraries: JPEG=System"
  7218. else
  7219. echo "Image Libraries: JPEG=Builtin"
  7220. fi
  7221. if test x$PNG = x; then
  7222. echo " PNG=System"
  7223. else
  7224. echo " PNG=Builtin"
  7225. fi
  7226. if test x$ZLIB = x; then
  7227. echo " ZLIB=System"
  7228. else
  7229. echo " ZLIB=Builtin"
  7230. fi
  7231. if test x$enable_cairo = xyes; then
  7232. echo " CAIRO=lib"
  7233. fi
  7234. if test x$enable_cairoext = xyes; then
  7235. echo " CAIRO=internal_use"
  7236. fi
  7237. if test x$enable_largefile != xno; then
  7238. echo " Large Files: YES"
  7239. else
  7240. echo " Large Files: NO"
  7241. fi
  7242. if test x$GLDEMOS = x; then
  7243. echo " OpenGL: NO"
  7244. else
  7245. echo " OpenGL: YES"
  7246. fi
  7247. if test x$THREADS = x; then
  7248. echo " Threads: NO"
  7249. else
  7250. echo " Threads: YES"
  7251. fi
  7252. ac_config_headers="$ac_config_headers config.h:configh.in"
  7253. ac_config_files="$ac_config_files makeinclude ntk.list ntk-config ntk.spec FL/Makefile"
  7254. cat >confcache <<\_ACEOF
  7255. # This file is a shell script that caches the results of configure
  7256. # tests run on this system so they can be shared between configure
  7257. # scripts and configure runs, see configure's option --config-cache.
  7258. # It is not useful on other systems. If it contains results you don't
  7259. # want to keep, you may remove or edit it.
  7260. #
  7261. # config.status only pays attention to the cache file if you give it
  7262. # the --recheck option to rerun configure.
  7263. #
  7264. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7265. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7266. # following values.
  7267. _ACEOF
  7268. # The following way of writing the cache mishandles newlines in values,
  7269. # but we know of no workaround that is simple, portable, and efficient.
  7270. # So, we kill variables containing newlines.
  7271. # Ultrix sh set writes to stderr and can't be redirected directly,
  7272. # and sets the high bit in the cache file unless we assign to the vars.
  7273. (
  7274. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7275. eval ac_val=\$$ac_var
  7276. case $ac_val in #(
  7277. *${as_nl}*)
  7278. case $ac_var in #(
  7279. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7280. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7281. esac
  7282. case $ac_var in #(
  7283. _ | IFS | as_nl) ;; #(
  7284. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7285. *) { eval $ac_var=; unset $ac_var;} ;;
  7286. esac ;;
  7287. esac
  7288. done
  7289. (set) 2>&1 |
  7290. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7291. *${as_nl}ac_space=\ *)
  7292. # `set' does not quote correctly, so add quotes: double-quote
  7293. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7294. sed -n \
  7295. "s/'/'\\\\''/g;
  7296. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7297. ;; #(
  7298. *)
  7299. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7300. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7301. ;;
  7302. esac |
  7303. sort
  7304. ) |
  7305. sed '
  7306. /^ac_cv_env_/b end
  7307. t clear
  7308. :clear
  7309. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7310. t end
  7311. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7312. :end' >>confcache
  7313. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7314. if test -w "$cache_file"; then
  7315. if test "x$cache_file" != "x/dev/null"; then
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7317. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7318. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7319. cat confcache >"$cache_file"
  7320. else
  7321. case $cache_file in #(
  7322. */* | ?:*)
  7323. mv -f confcache "$cache_file"$$ &&
  7324. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7325. *)
  7326. mv -f confcache "$cache_file" ;;
  7327. esac
  7328. fi
  7329. fi
  7330. else
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7332. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7333. fi
  7334. fi
  7335. rm -f confcache
  7336. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7337. # Let make expand exec_prefix.
  7338. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7339. DEFS=-DHAVE_CONFIG_H
  7340. ac_libobjs=
  7341. ac_ltlibobjs=
  7342. U=
  7343. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7344. # 1. Remove the extension, and $U if already installed.
  7345. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7346. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7347. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7348. # will be set to the directory where LIBOBJS objects are built.
  7349. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7350. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7351. done
  7352. LIBOBJS=$ac_libobjs
  7353. LTLIBOBJS=$ac_ltlibobjs
  7354. : "${CONFIG_STATUS=./config.status}"
  7355. ac_write_fail=0
  7356. ac_clean_files_save=$ac_clean_files
  7357. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7359. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7360. as_write_fail=0
  7361. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7362. #! $SHELL
  7363. # Generated by $as_me.
  7364. # Run this file to recreate the current configuration.
  7365. # Compiler output produced by configure, useful for debugging
  7366. # configure, is in config.log if it exists.
  7367. debug=false
  7368. ac_cs_recheck=false
  7369. ac_cs_silent=false
  7370. SHELL=\${CONFIG_SHELL-$SHELL}
  7371. export SHELL
  7372. _ASEOF
  7373. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7374. ## -------------------- ##
  7375. ## M4sh Initialization. ##
  7376. ## -------------------- ##
  7377. # Be more Bourne compatible
  7378. DUALCASE=1; export DUALCASE # for MKS sh
  7379. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7380. emulate sh
  7381. NULLCMD=:
  7382. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7383. # is contrary to our usage. Disable this feature.
  7384. alias -g '${1+"$@"}'='"$@"'
  7385. setopt NO_GLOB_SUBST
  7386. else
  7387. case `(set -o) 2>/dev/null` in #(
  7388. *posix*) :
  7389. set -o posix ;; #(
  7390. *) :
  7391. ;;
  7392. esac
  7393. fi
  7394. as_nl='
  7395. '
  7396. export as_nl
  7397. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7398. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7399. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7400. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7401. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7402. # but without wasting forks for bash or zsh.
  7403. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7404. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7405. as_echo='print -r --'
  7406. as_echo_n='print -rn --'
  7407. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7408. as_echo='printf %s\n'
  7409. as_echo_n='printf %s'
  7410. else
  7411. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7412. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7413. as_echo_n='/usr/ucb/echo -n'
  7414. else
  7415. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7416. as_echo_n_body='eval
  7417. arg=$1;
  7418. case $arg in #(
  7419. *"$as_nl"*)
  7420. expr "X$arg" : "X\\(.*\\)$as_nl";
  7421. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7422. esac;
  7423. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7424. '
  7425. export as_echo_n_body
  7426. as_echo_n='sh -c $as_echo_n_body as_echo'
  7427. fi
  7428. export as_echo_body
  7429. as_echo='sh -c $as_echo_body as_echo'
  7430. fi
  7431. # The user is always right.
  7432. if test "${PATH_SEPARATOR+set}" != set; then
  7433. PATH_SEPARATOR=:
  7434. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7435. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7436. PATH_SEPARATOR=';'
  7437. }
  7438. fi
  7439. # IFS
  7440. # We need space, tab and new line, in precisely that order. Quoting is
  7441. # there to prevent editors from complaining about space-tab.
  7442. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7443. # splitting by setting IFS to empty value.)
  7444. IFS=" "" $as_nl"
  7445. # Find who we are. Look in the path if we contain no directory separator.
  7446. as_myself=
  7447. case $0 in #((
  7448. *[\\/]* ) as_myself=$0 ;;
  7449. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7450. for as_dir in $PATH
  7451. do
  7452. IFS=$as_save_IFS
  7453. test -z "$as_dir" && as_dir=.
  7454. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7455. done
  7456. IFS=$as_save_IFS
  7457. ;;
  7458. esac
  7459. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7460. # in which case we are not to be found in the path.
  7461. if test "x$as_myself" = x; then
  7462. as_myself=$0
  7463. fi
  7464. if test ! -f "$as_myself"; then
  7465. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7466. exit 1
  7467. fi
  7468. # Unset variables that we do not need and which cause bugs (e.g. in
  7469. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7470. # suppresses any "Segmentation fault" message there. '((' could
  7471. # trigger a bug in pdksh 5.2.14.
  7472. for as_var in BASH_ENV ENV MAIL MAILPATH
  7473. do eval test x\${$as_var+set} = xset \
  7474. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7475. done
  7476. PS1='$ '
  7477. PS2='> '
  7478. PS4='+ '
  7479. # NLS nuisances.
  7480. LC_ALL=C
  7481. export LC_ALL
  7482. LANGUAGE=C
  7483. export LANGUAGE
  7484. # CDPATH.
  7485. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7486. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  7487. # ----------------------------------------
  7488. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7489. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7490. # script with STATUS, using 1 if that was 0.
  7491. as_fn_error ()
  7492. {
  7493. as_status=$1; test $as_status -eq 0 && as_status=1
  7494. if test "$4"; then
  7495. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7496. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  7497. fi
  7498. $as_echo "$as_me: error: $2" >&2
  7499. as_fn_exit $as_status
  7500. } # as_fn_error
  7501. # as_fn_set_status STATUS
  7502. # -----------------------
  7503. # Set $? to STATUS, without forking.
  7504. as_fn_set_status ()
  7505. {
  7506. return $1
  7507. } # as_fn_set_status
  7508. # as_fn_exit STATUS
  7509. # -----------------
  7510. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7511. as_fn_exit ()
  7512. {
  7513. set +e
  7514. as_fn_set_status $1
  7515. exit $1
  7516. } # as_fn_exit
  7517. # as_fn_unset VAR
  7518. # ---------------
  7519. # Portably unset VAR.
  7520. as_fn_unset ()
  7521. {
  7522. { eval $1=; unset $1;}
  7523. }
  7524. as_unset=as_fn_unset
  7525. # as_fn_append VAR VALUE
  7526. # ----------------------
  7527. # Append the text in VALUE to the end of the definition contained in VAR. Take
  7528. # advantage of any shell optimizations that allow amortized linear growth over
  7529. # repeated appends, instead of the typical quadratic growth present in naive
  7530. # implementations.
  7531. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7532. eval 'as_fn_append ()
  7533. {
  7534. eval $1+=\$2
  7535. }'
  7536. else
  7537. as_fn_append ()
  7538. {
  7539. eval $1=\$$1\$2
  7540. }
  7541. fi # as_fn_append
  7542. # as_fn_arith ARG...
  7543. # ------------------
  7544. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7545. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7546. # must be portable across $(()) and expr.
  7547. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7548. eval 'as_fn_arith ()
  7549. {
  7550. as_val=$(( $* ))
  7551. }'
  7552. else
  7553. as_fn_arith ()
  7554. {
  7555. as_val=`expr "$@" || test $? -eq 1`
  7556. }
  7557. fi # as_fn_arith
  7558. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7559. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7560. as_expr=expr
  7561. else
  7562. as_expr=false
  7563. fi
  7564. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7565. as_basename=basename
  7566. else
  7567. as_basename=false
  7568. fi
  7569. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7570. as_dirname=dirname
  7571. else
  7572. as_dirname=false
  7573. fi
  7574. as_me=`$as_basename -- "$0" ||
  7575. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7576. X"$0" : 'X\(//\)$' \| \
  7577. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7578. $as_echo X/"$0" |
  7579. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7580. s//\1/
  7581. q
  7582. }
  7583. /^X\/\(\/\/\)$/{
  7584. s//\1/
  7585. q
  7586. }
  7587. /^X\/\(\/\).*/{
  7588. s//\1/
  7589. q
  7590. }
  7591. s/.*/./; q'`
  7592. # Avoid depending upon Character Ranges.
  7593. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7594. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7595. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7596. as_cr_digits='0123456789'
  7597. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7598. ECHO_C= ECHO_N= ECHO_T=
  7599. case `echo -n x` in #(((((
  7600. -n*)
  7601. case `echo 'xy\c'` in
  7602. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7603. xy) ECHO_C='\c';;
  7604. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7605. ECHO_T=' ';;
  7606. esac;;
  7607. *)
  7608. ECHO_N='-n';;
  7609. esac
  7610. rm -f conf$$ conf$$.exe conf$$.file
  7611. if test -d conf$$.dir; then
  7612. rm -f conf$$.dir/conf$$.file
  7613. else
  7614. rm -f conf$$.dir
  7615. mkdir conf$$.dir 2>/dev/null
  7616. fi
  7617. if (echo >conf$$.file) 2>/dev/null; then
  7618. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7619. as_ln_s='ln -s'
  7620. # ... but there are two gotchas:
  7621. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7622. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7623. # In both cases, we have to default to `cp -p'.
  7624. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7625. as_ln_s='cp -p'
  7626. elif ln conf$$.file conf$$ 2>/dev/null; then
  7627. as_ln_s=ln
  7628. else
  7629. as_ln_s='cp -p'
  7630. fi
  7631. else
  7632. as_ln_s='cp -p'
  7633. fi
  7634. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7635. rmdir conf$$.dir 2>/dev/null
  7636. # as_fn_mkdir_p
  7637. # -------------
  7638. # Create "$as_dir" as a directory, including parents if necessary.
  7639. as_fn_mkdir_p ()
  7640. {
  7641. case $as_dir in #(
  7642. -*) as_dir=./$as_dir;;
  7643. esac
  7644. test -d "$as_dir" || eval $as_mkdir_p || {
  7645. as_dirs=
  7646. while :; do
  7647. case $as_dir in #(
  7648. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7649. *) as_qdir=$as_dir;;
  7650. esac
  7651. as_dirs="'$as_qdir' $as_dirs"
  7652. as_dir=`$as_dirname -- "$as_dir" ||
  7653. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7654. X"$as_dir" : 'X\(//\)[^/]' \| \
  7655. X"$as_dir" : 'X\(//\)$' \| \
  7656. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7657. $as_echo X"$as_dir" |
  7658. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7659. s//\1/
  7660. q
  7661. }
  7662. /^X\(\/\/\)[^/].*/{
  7663. s//\1/
  7664. q
  7665. }
  7666. /^X\(\/\/\)$/{
  7667. s//\1/
  7668. q
  7669. }
  7670. /^X\(\/\).*/{
  7671. s//\1/
  7672. q
  7673. }
  7674. s/.*/./; q'`
  7675. test -d "$as_dir" && break
  7676. done
  7677. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7678. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7679. } # as_fn_mkdir_p
  7680. if mkdir -p . 2>/dev/null; then
  7681. as_mkdir_p='mkdir -p "$as_dir"'
  7682. else
  7683. test -d ./-p && rmdir ./-p
  7684. as_mkdir_p=false
  7685. fi
  7686. if test -x / >/dev/null 2>&1; then
  7687. as_test_x='test -x'
  7688. else
  7689. if ls -dL / >/dev/null 2>&1; then
  7690. as_ls_L_option=L
  7691. else
  7692. as_ls_L_option=
  7693. fi
  7694. as_test_x='
  7695. eval sh -c '\''
  7696. if test -d "$1"; then
  7697. test -d "$1/.";
  7698. else
  7699. case $1 in #(
  7700. -*)set "./$1";;
  7701. esac;
  7702. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  7703. ???[sx]*):;;*)false;;esac;fi
  7704. '\'' sh
  7705. '
  7706. fi
  7707. as_executable_p=$as_test_x
  7708. # Sed expression to map a string onto a valid CPP name.
  7709. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7710. # Sed expression to map a string onto a valid variable name.
  7711. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7712. exec 6>&1
  7713. ## ----------------------------------- ##
  7714. ## Main body of $CONFIG_STATUS script. ##
  7715. ## ----------------------------------- ##
  7716. _ASEOF
  7717. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7718. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7719. # Save the log message, to keep $0 and so on meaningful, and to
  7720. # report actual input values of CONFIG_FILES etc. instead of their
  7721. # values after options handling.
  7722. ac_log="
  7723. This file was extended by $as_me, which was
  7724. generated by GNU Autoconf 2.68. Invocation command line was
  7725. CONFIG_FILES = $CONFIG_FILES
  7726. CONFIG_HEADERS = $CONFIG_HEADERS
  7727. CONFIG_LINKS = $CONFIG_LINKS
  7728. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7729. $ $0 $@
  7730. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7731. "
  7732. _ACEOF
  7733. case $ac_config_files in *"
  7734. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7735. esac
  7736. case $ac_config_headers in *"
  7737. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  7738. esac
  7739. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7740. # Files that config.status was made for.
  7741. config_files="$ac_config_files"
  7742. config_headers="$ac_config_headers"
  7743. _ACEOF
  7744. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7745. ac_cs_usage="\
  7746. \`$as_me' instantiates files and other configuration actions
  7747. from templates according to the current configuration. Unless the files
  7748. and actions are specified as TAGs, all are instantiated by default.
  7749. Usage: $0 [OPTION]... [TAG]...
  7750. -h, --help print this help, then exit
  7751. -V, --version print version number and configuration settings, then exit
  7752. --config print configuration, then exit
  7753. -q, --quiet, --silent
  7754. do not print progress messages
  7755. -d, --debug don't remove temporary files
  7756. --recheck update $as_me by reconfiguring in the same conditions
  7757. --file=FILE[:TEMPLATE]
  7758. instantiate the configuration file FILE
  7759. --header=FILE[:TEMPLATE]
  7760. instantiate the configuration header FILE
  7761. Configuration files:
  7762. $config_files
  7763. Configuration headers:
  7764. $config_headers
  7765. Report bugs to the package provider."
  7766. _ACEOF
  7767. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7768. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7769. ac_cs_version="\\
  7770. config.status
  7771. configured by $0, generated by GNU Autoconf 2.68,
  7772. with options \\"\$ac_cs_config\\"
  7773. Copyright (C) 2010 Free Software Foundation, Inc.
  7774. This config.status script is free software; the Free Software Foundation
  7775. gives unlimited permission to copy, distribute and modify it."
  7776. ac_pwd='$ac_pwd'
  7777. srcdir='$srcdir'
  7778. INSTALL='$INSTALL'
  7779. test -n "\$AWK" || AWK=awk
  7780. _ACEOF
  7781. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7782. # The default lists apply if the user does not specify any file.
  7783. ac_need_defaults=:
  7784. while test $# != 0
  7785. do
  7786. case $1 in
  7787. --*=?*)
  7788. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7789. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7790. ac_shift=:
  7791. ;;
  7792. --*=)
  7793. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7794. ac_optarg=
  7795. ac_shift=:
  7796. ;;
  7797. *)
  7798. ac_option=$1
  7799. ac_optarg=$2
  7800. ac_shift=shift
  7801. ;;
  7802. esac
  7803. case $ac_option in
  7804. # Handling of the options.
  7805. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7806. ac_cs_recheck=: ;;
  7807. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7808. $as_echo "$ac_cs_version"; exit ;;
  7809. --config | --confi | --conf | --con | --co | --c )
  7810. $as_echo "$ac_cs_config"; exit ;;
  7811. --debug | --debu | --deb | --de | --d | -d )
  7812. debug=: ;;
  7813. --file | --fil | --fi | --f )
  7814. $ac_shift
  7815. case $ac_optarg in
  7816. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7817. '') as_fn_error $? "missing file argument" ;;
  7818. esac
  7819. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7820. ac_need_defaults=false;;
  7821. --header | --heade | --head | --hea )
  7822. $ac_shift
  7823. case $ac_optarg in
  7824. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7825. esac
  7826. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7827. ac_need_defaults=false;;
  7828. --he | --h)
  7829. # Conflict between --help and --header
  7830. as_fn_error $? "ambiguous option: \`$1'
  7831. Try \`$0 --help' for more information.";;
  7832. --help | --hel | -h )
  7833. $as_echo "$ac_cs_usage"; exit ;;
  7834. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7835. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7836. ac_cs_silent=: ;;
  7837. # This is an error.
  7838. -*) as_fn_error $? "unrecognized option: \`$1'
  7839. Try \`$0 --help' for more information." ;;
  7840. *) as_fn_append ac_config_targets " $1"
  7841. ac_need_defaults=false ;;
  7842. esac
  7843. shift
  7844. done
  7845. ac_configure_extra_args=
  7846. if $ac_cs_silent; then
  7847. exec 6>/dev/null
  7848. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7849. fi
  7850. _ACEOF
  7851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7852. if \$ac_cs_recheck; then
  7853. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7854. shift
  7855. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7856. CONFIG_SHELL='$SHELL'
  7857. export CONFIG_SHELL
  7858. exec "\$@"
  7859. fi
  7860. _ACEOF
  7861. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7862. exec 5>>config.log
  7863. {
  7864. echo
  7865. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7866. ## Running $as_me. ##
  7867. _ASBOX
  7868. $as_echo "$ac_log"
  7869. } >&5
  7870. _ACEOF
  7871. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7872. _ACEOF
  7873. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7874. # Handling of arguments.
  7875. for ac_config_target in $ac_config_targets
  7876. do
  7877. case $ac_config_target in
  7878. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;;
  7879. "makeinclude") CONFIG_FILES="$CONFIG_FILES makeinclude" ;;
  7880. "ntk.list") CONFIG_FILES="$CONFIG_FILES ntk.list" ;;
  7881. "ntk-config") CONFIG_FILES="$CONFIG_FILES ntk-config" ;;
  7882. "ntk.spec") CONFIG_FILES="$CONFIG_FILES ntk.spec" ;;
  7883. "FL/Makefile") CONFIG_FILES="$CONFIG_FILES FL/Makefile" ;;
  7884. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7885. esac
  7886. done
  7887. # If the user did not use the arguments to specify the items to instantiate,
  7888. # then the envvar interface is used. Set only those that are not.
  7889. # We use the long form for the default assignment because of an extremely
  7890. # bizarre bug on SunOS 4.1.3.
  7891. if $ac_need_defaults; then
  7892. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7893. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7894. fi
  7895. # Have a temporary directory for convenience. Make it in the build tree
  7896. # simply because there is no reason against having it here, and in addition,
  7897. # creating and moving files from /tmp can sometimes cause problems.
  7898. # Hook for its removal unless debugging.
  7899. # Note that there is a small window in which the directory will not be cleaned:
  7900. # after its creation but before its name has been assigned to `$tmp'.
  7901. $debug ||
  7902. {
  7903. tmp= ac_tmp=
  7904. trap 'exit_status=$?
  7905. : "${ac_tmp:=$tmp}"
  7906. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  7907. ' 0
  7908. trap 'as_fn_exit 1' 1 2 13 15
  7909. }
  7910. # Create a (secure) tmp directory for tmp files.
  7911. {
  7912. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7913. test -d "$tmp"
  7914. } ||
  7915. {
  7916. tmp=./conf$$-$RANDOM
  7917. (umask 077 && mkdir "$tmp")
  7918. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7919. ac_tmp=$tmp
  7920. # Set up the scripts for CONFIG_FILES section.
  7921. # No need to generate them if there are no CONFIG_FILES.
  7922. # This happens for instance with `./config.status config.h'.
  7923. if test -n "$CONFIG_FILES"; then
  7924. ac_cr=`echo X | tr X '\015'`
  7925. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7926. # But we know of no other shell where ac_cr would be empty at this
  7927. # point, so we can use a bashism as a fallback.
  7928. if test "x$ac_cr" = x; then
  7929. eval ac_cr=\$\'\\r\'
  7930. fi
  7931. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7932. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7933. ac_cs_awk_cr='\\r'
  7934. else
  7935. ac_cs_awk_cr=$ac_cr
  7936. fi
  7937. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  7938. _ACEOF
  7939. {
  7940. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7941. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7942. echo "_ACEOF"
  7943. } >conf$$subs.sh ||
  7944. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7945. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7946. ac_delim='%!_!# '
  7947. for ac_last_try in false false false false false :; do
  7948. . ./conf$$subs.sh ||
  7949. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7950. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7951. if test $ac_delim_n = $ac_delim_num; then
  7952. break
  7953. elif $ac_last_try; then
  7954. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7955. else
  7956. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7957. fi
  7958. done
  7959. rm -f conf$$subs.sh
  7960. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7961. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  7962. _ACEOF
  7963. sed -n '
  7964. h
  7965. s/^/S["/; s/!.*/"]=/
  7966. p
  7967. g
  7968. s/^[^!]*!//
  7969. :repl
  7970. t repl
  7971. s/'"$ac_delim"'$//
  7972. t delim
  7973. :nl
  7974. h
  7975. s/\(.\{148\}\)..*/\1/
  7976. t more1
  7977. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7978. p
  7979. n
  7980. b repl
  7981. :more1
  7982. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7983. p
  7984. g
  7985. s/.\{148\}//
  7986. t nl
  7987. :delim
  7988. h
  7989. s/\(.\{148\}\)..*/\1/
  7990. t more2
  7991. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7992. p
  7993. b
  7994. :more2
  7995. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7996. p
  7997. g
  7998. s/.\{148\}//
  7999. t delim
  8000. ' <conf$$subs.awk | sed '
  8001. /^[^""]/{
  8002. N
  8003. s/\n//
  8004. }
  8005. ' >>$CONFIG_STATUS || ac_write_fail=1
  8006. rm -f conf$$subs.awk
  8007. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8008. _ACAWK
  8009. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8010. for (key in S) S_is_set[key] = 1
  8011. FS = ""
  8012. }
  8013. {
  8014. line = $ 0
  8015. nfields = split(line, field, "@")
  8016. substed = 0
  8017. len = length(field[1])
  8018. for (i = 2; i < nfields; i++) {
  8019. key = field[i]
  8020. keylen = length(key)
  8021. if (S_is_set[key]) {
  8022. value = S[key]
  8023. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8024. len += length(value) + length(field[++i])
  8025. substed = 1
  8026. } else
  8027. len += 1 + keylen
  8028. }
  8029. print line
  8030. }
  8031. _ACAWK
  8032. _ACEOF
  8033. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8034. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8035. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8036. else
  8037. cat
  8038. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8039. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8040. _ACEOF
  8041. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8042. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8043. # trailing colons and then remove the whole line if VPATH becomes empty
  8044. # (actually we leave an empty line to preserve line numbers).
  8045. if test "x$srcdir" = x.; then
  8046. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8047. h
  8048. s///
  8049. s/^/:/
  8050. s/[ ]*$/:/
  8051. s/:\$(srcdir):/:/g
  8052. s/:\${srcdir}:/:/g
  8053. s/:@srcdir@:/:/g
  8054. s/^:*//
  8055. s/:*$//
  8056. x
  8057. s/\(=[ ]*\).*/\1/
  8058. G
  8059. s/\n//
  8060. s/^[^=]*=[ ]*$//
  8061. }'
  8062. fi
  8063. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8064. fi # test -n "$CONFIG_FILES"
  8065. # Set up the scripts for CONFIG_HEADERS section.
  8066. # No need to generate them if there are no CONFIG_HEADERS.
  8067. # This happens for instance with `./config.status Makefile'.
  8068. if test -n "$CONFIG_HEADERS"; then
  8069. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8070. BEGIN {
  8071. _ACEOF
  8072. # Transform confdefs.h into an awk script `defines.awk', embedded as
  8073. # here-document in config.status, that substitutes the proper values into
  8074. # config.h.in to produce config.h.
  8075. # Create a delimiter string that does not exist in confdefs.h, to ease
  8076. # handling of long lines.
  8077. ac_delim='%!_!# '
  8078. for ac_last_try in false false :; do
  8079. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  8080. if test -z "$ac_tt"; then
  8081. break
  8082. elif $ac_last_try; then
  8083. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8084. else
  8085. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8086. fi
  8087. done
  8088. # For the awk script, D is an array of macro values keyed by name,
  8089. # likewise P contains macro parameters if any. Preserve backslash
  8090. # newline sequences.
  8091. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8092. sed -n '
  8093. s/.\{148\}/&'"$ac_delim"'/g
  8094. t rset
  8095. :rset
  8096. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8097. t def
  8098. d
  8099. :def
  8100. s/\\$//
  8101. t bsnl
  8102. s/["\\]/\\&/g
  8103. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8104. D["\1"]=" \3"/p
  8105. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8106. d
  8107. :bsnl
  8108. s/["\\]/\\&/g
  8109. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8110. D["\1"]=" \3\\\\\\n"\\/p
  8111. t cont
  8112. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8113. t cont
  8114. d
  8115. :cont
  8116. n
  8117. s/.\{148\}/&'"$ac_delim"'/g
  8118. t clear
  8119. :clear
  8120. s/\\$//
  8121. t bsnlc
  8122. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8123. d
  8124. :bsnlc
  8125. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8126. b cont
  8127. ' <confdefs.h | sed '
  8128. s/'"$ac_delim"'/"\\\
  8129. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8130. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8131. for (key in D) D_is_set[key] = 1
  8132. FS = ""
  8133. }
  8134. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8135. line = \$ 0
  8136. split(line, arg, " ")
  8137. if (arg[1] == "#") {
  8138. defundef = arg[2]
  8139. mac1 = arg[3]
  8140. } else {
  8141. defundef = substr(arg[1], 2)
  8142. mac1 = arg[2]
  8143. }
  8144. split(mac1, mac2, "(") #)
  8145. macro = mac2[1]
  8146. prefix = substr(line, 1, index(line, defundef) - 1)
  8147. if (D_is_set[macro]) {
  8148. # Preserve the white space surrounding the "#".
  8149. print prefix "define", macro P[macro] D[macro]
  8150. next
  8151. } else {
  8152. # Replace #undef with comments. This is necessary, for example,
  8153. # in the case of _POSIX_SOURCE, which is predefined and required
  8154. # on some systems where configure will not decide to define it.
  8155. if (defundef == "undef") {
  8156. print "/*", prefix defundef, macro, "*/"
  8157. next
  8158. }
  8159. }
  8160. }
  8161. { print }
  8162. _ACAWK
  8163. _ACEOF
  8164. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8165. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8166. fi # test -n "$CONFIG_HEADERS"
  8167. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8168. shift
  8169. for ac_tag
  8170. do
  8171. case $ac_tag in
  8172. :[FHLC]) ac_mode=$ac_tag; continue;;
  8173. esac
  8174. case $ac_mode$ac_tag in
  8175. :[FHL]*:*);;
  8176. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8177. :[FH]-) ac_tag=-:-;;
  8178. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8179. esac
  8180. ac_save_IFS=$IFS
  8181. IFS=:
  8182. set x $ac_tag
  8183. IFS=$ac_save_IFS
  8184. shift
  8185. ac_file=$1
  8186. shift
  8187. case $ac_mode in
  8188. :L) ac_source=$1;;
  8189. :[FH])
  8190. ac_file_inputs=
  8191. for ac_f
  8192. do
  8193. case $ac_f in
  8194. -) ac_f="$ac_tmp/stdin";;
  8195. *) # Look for the file first in the build tree, then in the source tree
  8196. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8197. # because $ac_f cannot contain `:'.
  8198. test -f "$ac_f" ||
  8199. case $ac_f in
  8200. [\\/$]*) false;;
  8201. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8202. esac ||
  8203. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8204. esac
  8205. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8206. as_fn_append ac_file_inputs " '$ac_f'"
  8207. done
  8208. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8209. # use $as_me), people would be surprised to read:
  8210. # /* config.h. Generated by config.status. */
  8211. configure_input='Generated from '`
  8212. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8213. `' by configure.'
  8214. if test x"$ac_file" != x-; then
  8215. configure_input="$ac_file. $configure_input"
  8216. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8217. $as_echo "$as_me: creating $ac_file" >&6;}
  8218. fi
  8219. # Neutralize special characters interpreted by sed in replacement strings.
  8220. case $configure_input in #(
  8221. *\&* | *\|* | *\\* )
  8222. ac_sed_conf_input=`$as_echo "$configure_input" |
  8223. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8224. *) ac_sed_conf_input=$configure_input;;
  8225. esac
  8226. case $ac_tag in
  8227. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8228. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8229. esac
  8230. ;;
  8231. esac
  8232. ac_dir=`$as_dirname -- "$ac_file" ||
  8233. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8234. X"$ac_file" : 'X\(//\)[^/]' \| \
  8235. X"$ac_file" : 'X\(//\)$' \| \
  8236. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8237. $as_echo X"$ac_file" |
  8238. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8239. s//\1/
  8240. q
  8241. }
  8242. /^X\(\/\/\)[^/].*/{
  8243. s//\1/
  8244. q
  8245. }
  8246. /^X\(\/\/\)$/{
  8247. s//\1/
  8248. q
  8249. }
  8250. /^X\(\/\).*/{
  8251. s//\1/
  8252. q
  8253. }
  8254. s/.*/./; q'`
  8255. as_dir="$ac_dir"; as_fn_mkdir_p
  8256. ac_builddir=.
  8257. case "$ac_dir" in
  8258. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8259. *)
  8260. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8261. # A ".." for each directory in $ac_dir_suffix.
  8262. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8263. case $ac_top_builddir_sub in
  8264. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8265. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8266. esac ;;
  8267. esac
  8268. ac_abs_top_builddir=$ac_pwd
  8269. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8270. # for backward compatibility:
  8271. ac_top_builddir=$ac_top_build_prefix
  8272. case $srcdir in
  8273. .) # We are building in place.
  8274. ac_srcdir=.
  8275. ac_top_srcdir=$ac_top_builddir_sub
  8276. ac_abs_top_srcdir=$ac_pwd ;;
  8277. [\\/]* | ?:[\\/]* ) # Absolute name.
  8278. ac_srcdir=$srcdir$ac_dir_suffix;
  8279. ac_top_srcdir=$srcdir
  8280. ac_abs_top_srcdir=$srcdir ;;
  8281. *) # Relative name.
  8282. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8283. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8284. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8285. esac
  8286. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8287. case $ac_mode in
  8288. :F)
  8289. #
  8290. # CONFIG_FILE
  8291. #
  8292. case $INSTALL in
  8293. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8294. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  8295. esac
  8296. _ACEOF
  8297. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8298. # If the template does not know about datarootdir, expand it.
  8299. # FIXME: This hack should be removed a few years after 2.60.
  8300. ac_datarootdir_hack=; ac_datarootdir_seen=
  8301. ac_sed_dataroot='
  8302. /datarootdir/ {
  8303. p
  8304. q
  8305. }
  8306. /@datadir@/p
  8307. /@docdir@/p
  8308. /@infodir@/p
  8309. /@localedir@/p
  8310. /@mandir@/p'
  8311. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8312. *datarootdir*) ac_datarootdir_seen=yes;;
  8313. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8314. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8315. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8316. _ACEOF
  8317. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8318. ac_datarootdir_hack='
  8319. s&@datadir@&$datadir&g
  8320. s&@docdir@&$docdir&g
  8321. s&@infodir@&$infodir&g
  8322. s&@localedir@&$localedir&g
  8323. s&@mandir@&$mandir&g
  8324. s&\\\${datarootdir}&$datarootdir&g' ;;
  8325. esac
  8326. _ACEOF
  8327. # Neutralize VPATH when `$srcdir' = `.'.
  8328. # Shell code in configure.ac might set extrasub.
  8329. # FIXME: do we really want to maintain this feature?
  8330. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8331. ac_sed_extra="$ac_vpsub
  8332. $extrasub
  8333. _ACEOF
  8334. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8335. :t
  8336. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8337. s|@configure_input@|$ac_sed_conf_input|;t t
  8338. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8339. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8340. s&@srcdir@&$ac_srcdir&;t t
  8341. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8342. s&@top_srcdir@&$ac_top_srcdir&;t t
  8343. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8344. s&@builddir@&$ac_builddir&;t t
  8345. s&@abs_builddir@&$ac_abs_builddir&;t t
  8346. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8347. s&@INSTALL@&$ac_INSTALL&;t t
  8348. $ac_datarootdir_hack
  8349. "
  8350. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8351. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8352. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8353. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8354. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8355. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8357. which seems to be undefined. Please make sure it is defined" >&5
  8358. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8359. which seems to be undefined. Please make sure it is defined" >&2;}
  8360. rm -f "$ac_tmp/stdin"
  8361. case $ac_file in
  8362. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8363. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8364. esac \
  8365. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8366. ;;
  8367. :H)
  8368. #
  8369. # CONFIG_HEADER
  8370. #
  8371. if test x"$ac_file" != x-; then
  8372. {
  8373. $as_echo "/* $configure_input */" \
  8374. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8375. } >"$ac_tmp/config.h" \
  8376. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8377. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8378. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8379. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8380. else
  8381. rm -f "$ac_file"
  8382. mv "$ac_tmp/config.h" "$ac_file" \
  8383. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8384. fi
  8385. else
  8386. $as_echo "/* $configure_input */" \
  8387. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8388. || as_fn_error $? "could not create -" "$LINENO" 5
  8389. fi
  8390. ;;
  8391. esac
  8392. done # for ac_tag
  8393. as_fn_exit 0
  8394. _ACEOF
  8395. ac_clean_files=$ac_clean_files_save
  8396. test $ac_write_fail = 0 ||
  8397. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8398. # configure is writing to config.log, and then calls config.status.
  8399. # config.status does its own redirection, appending to config.log.
  8400. # Unfortunately, on DOS this fails, as config.log is still kept open
  8401. # by configure, so config.status won't be able to write to it; its
  8402. # output is simply discarded. So we exec the FD to /dev/null,
  8403. # effectively closing config.log, so it can be properly (re)opened and
  8404. # appended to by config.status. When coming back to configure, we
  8405. # need to make the FD available again.
  8406. if test "$no_create" != yes; then
  8407. ac_cs_success=:
  8408. ac_config_status_args=
  8409. test "$silent" = yes &&
  8410. ac_config_status_args="$ac_config_status_args --quiet"
  8411. exec 5>/dev/null
  8412. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8413. exec 5>>config.log
  8414. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8415. # would make configure fail if this is the last instruction.
  8416. $ac_cs_success || as_fn_exit 1
  8417. fi
  8418. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  8419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  8420. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  8421. fi
  8422. chmod +x ntk-config