Posted to tcl by de at Thu May 17 22:38:56 GMT 2018view raw

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for tdom 0.9.1.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14.  
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18. emulate sh
  19. NULLCMD=:
  20. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in #(
  26. *posix*) :
  27. set -o posix ;; #(
  28. *) :
  29. ;;
  30. esac
  31. fi
  32.  
  33.  
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71.  
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80.  
  81.  
  82. # IFS
  83. # We need space, tab and new line, in precisely that order. Quoting is
  84. # there to prevent editors from complaining about space-tab.
  85. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  86. # splitting by setting IFS to empty value.)
  87. IFS=" "" $as_nl"
  88.  
  89. # Find who we are. Look in the path if we contain no directory separator.
  90. as_myself=
  91. case $0 in #((
  92. *[\\/]* ) as_myself=$0 ;;
  93. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  94. for as_dir in $PATH
  95. do
  96. IFS=$as_save_IFS
  97. test -z "$as_dir" && as_dir=.
  98. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  99. done
  100. IFS=$as_save_IFS
  101.  
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  111. exit 1
  112. fi
  113.  
  114. # Unset variables that we do not need and which cause bugs (e.g. in
  115. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  116. # suppresses any "Segmentation fault" message there. '((' could
  117. # trigger a bug in pdksh 5.2.14.
  118. for as_var in BASH_ENV ENV MAIL MAILPATH
  119. do eval test x\${$as_var+set} = xset \
  120. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  121. done
  122. PS1='$ '
  123. PS2='> '
  124. PS4='+ '
  125.  
  126. # NLS nuisances.
  127. LC_ALL=C
  128. export LC_ALL
  129. LANGUAGE=C
  130. export LANGUAGE
  131.  
  132. # CDPATH.
  133. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  134.  
  135. # Use a proper internal environment variable to ensure we don't fall
  136. # into an infinite loop, continuously re-executing ourselves.
  137. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  138. _as_can_reexec=no; export _as_can_reexec;
  139. # We cannot yet assume a decent shell, so we have to provide a
  140. # neutralization value for shells without unset; and this also
  141. # works around shells that cannot unset nonexistent variables.
  142. # Preserve -v and -x to the replacement shell.
  143. BASH_ENV=/dev/null
  144. ENV=/dev/null
  145. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  146. case $- in # ((((
  147. *v*x* | *x*v* ) as_opts=-vx ;;
  148. *v* ) as_opts=-v ;;
  149. *x* ) as_opts=-x ;;
  150. * ) as_opts= ;;
  151. esac
  152. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  153. # Admittedly, this is quite paranoid, since all the known shells bail
  154. # out after a failed `exec'.
  155. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  156. as_fn_exit 255
  157. fi
  158. # We don't want this to propagate to other subprocesses.
  159. { _as_can_reexec=; unset _as_can_reexec;}
  160. if test "x$CONFIG_SHELL" = x; then
  161. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  162. emulate sh
  163. NULLCMD=:
  164. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  165. # is contrary to our usage. Disable this feature.
  166. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  167. setopt NO_GLOB_SUBST
  168. else
  169. case \`(set -o) 2>/dev/null\` in #(
  170. *posix*) :
  171. set -o posix ;; #(
  172. *) :
  173. ;;
  174. esac
  175. fi
  176. "
  177. as_required="as_fn_return () { (exit \$1); }
  178. as_fn_success () { as_fn_return 0; }
  179. as_fn_failure () { as_fn_return 1; }
  180. as_fn_ret_success () { return 0; }
  181. as_fn_ret_failure () { return 1; }
  182.  
  183. exitcode=0
  184. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  185. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  186. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  187. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  188. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  189.  
  190. else
  191. exitcode=1; echo positional parameters were not saved.
  192. fi
  193. test x\$exitcode = x0 || exit 1
  194. test -x / || exit 1"
  195. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  196. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  197. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  198. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  199. test \$(( 1 + 1 )) = 2 || exit 1"
  200. if (eval "$as_required") 2>/dev/null; then :
  201. as_have_required=yes
  202. else
  203. as_have_required=no
  204. fi
  205. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  206.  
  207. else
  208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  209. as_found=false
  210. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  211. do
  212. IFS=$as_save_IFS
  213. test -z "$as_dir" && as_dir=.
  214. as_found=:
  215. case $as_dir in #(
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. # Try only shells that exist, to save several forks.
  219. as_shell=$as_dir/$as_base
  220. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  221. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  222. CONFIG_SHELL=$as_shell as_have_required=yes
  223. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  224. break 2
  225. fi
  226. fi
  227. done;;
  228. esac
  229. as_found=false
  230. done
  231. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  232. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  233. CONFIG_SHELL=$SHELL as_have_required=yes
  234. fi; }
  235. IFS=$as_save_IFS
  236.  
  237.  
  238. if test "x$CONFIG_SHELL" != x; then :
  239. export CONFIG_SHELL
  240. # We cannot yet assume a decent shell, so we have to provide a
  241. # neutralization value for shells without unset; and this also
  242. # works around shells that cannot unset nonexistent variables.
  243. # Preserve -v and -x to the replacement shell.
  244. BASH_ENV=/dev/null
  245. ENV=/dev/null
  246. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  247. case $- in # ((((
  248. *v*x* | *x*v* ) as_opts=-vx ;;
  249. *v* ) as_opts=-v ;;
  250. *x* ) as_opts=-x ;;
  251. * ) as_opts= ;;
  252. esac
  253. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  254. # Admittedly, this is quite paranoid, since all the known shells bail
  255. # out after a failed `exec'.
  256. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  257. exit 255
  258. fi
  259.  
  260. if test x$as_have_required = xno; then :
  261. $as_echo "$0: This script requires a shell more modern than all"
  262. $as_echo "$0: the shells that I found on your system."
  263. if test x${ZSH_VERSION+set} = xset ; then
  264. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  265. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  266. else
  267. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  268. $0: including any error possibly output before this
  269. $0: message. Then install a modern shell, or manually run
  270. $0: the script under such a shell if you do have one."
  271. fi
  272. exit 1
  273. fi
  274. fi
  275. fi
  276. SHELL=${CONFIG_SHELL-/bin/sh}
  277. export SHELL
  278. # Unset more variables known to interfere with behavior of common tools.
  279. CLICOLOR_FORCE= GREP_OPTIONS=
  280. unset CLICOLOR_FORCE GREP_OPTIONS
  281.  
  282. ## --------------------- ##
  283. ## M4sh Shell Functions. ##
  284. ## --------------------- ##
  285. # as_fn_unset VAR
  286. # ---------------
  287. # Portably unset VAR.
  288. as_fn_unset ()
  289. {
  290. { eval $1=; unset $1;}
  291. }
  292. as_unset=as_fn_unset
  293.  
  294. # as_fn_set_status STATUS
  295. # -----------------------
  296. # Set $? to STATUS, without forking.
  297. as_fn_set_status ()
  298. {
  299. return $1
  300. } # as_fn_set_status
  301.  
  302. # as_fn_exit STATUS
  303. # -----------------
  304. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  305. as_fn_exit ()
  306. {
  307. set +e
  308. as_fn_set_status $1
  309. exit $1
  310. } # as_fn_exit
  311.  
  312. # as_fn_mkdir_p
  313. # -------------
  314. # Create "$as_dir" as a directory, including parents if necessary.
  315. as_fn_mkdir_p ()
  316. {
  317.  
  318. case $as_dir in #(
  319. -*) as_dir=./$as_dir;;
  320. esac
  321. test -d "$as_dir" || eval $as_mkdir_p || {
  322. as_dirs=
  323. while :; do
  324. case $as_dir in #(
  325. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  326. *) as_qdir=$as_dir;;
  327. esac
  328. as_dirs="'$as_qdir' $as_dirs"
  329. as_dir=`$as_dirname -- "$as_dir" ||
  330. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  331. X"$as_dir" : 'X\(//\)[^/]' \| \
  332. X"$as_dir" : 'X\(//\)$' \| \
  333. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  334. $as_echo X"$as_dir" |
  335. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  336. s//\1/
  337. q
  338. }
  339. /^X\(\/\/\)[^/].*/{
  340. s//\1/
  341. q
  342. }
  343. /^X\(\/\/\)$/{
  344. s//\1/
  345. q
  346. }
  347. /^X\(\/\).*/{
  348. s//\1/
  349. q
  350. }
  351. s/.*/./; q'`
  352. test -d "$as_dir" && break
  353. done
  354. test -z "$as_dirs" || eval "mkdir $as_dirs"
  355. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  356.  
  357.  
  358. } # as_fn_mkdir_p
  359.  
  360. # as_fn_executable_p FILE
  361. # -----------------------
  362. # Test if FILE is an executable regular file.
  363. as_fn_executable_p ()
  364. {
  365. test -f "$1" && test -x "$1"
  366. } # as_fn_executable_p
  367. # as_fn_append VAR VALUE
  368. # ----------------------
  369. # Append the text in VALUE to the end of the definition contained in VAR. Take
  370. # advantage of any shell optimizations that allow amortized linear growth over
  371. # repeated appends, instead of the typical quadratic growth present in naive
  372. # implementations.
  373. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  374. eval 'as_fn_append ()
  375. {
  376. eval $1+=\$2
  377. }'
  378. else
  379. as_fn_append ()
  380. {
  381. eval $1=\$$1\$2
  382. }
  383. fi # as_fn_append
  384.  
  385. # as_fn_arith ARG...
  386. # ------------------
  387. # Perform arithmetic evaluation on the ARGs, and store the result in the
  388. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  389. # must be portable across $(()) and expr.
  390. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  391. eval 'as_fn_arith ()
  392. {
  393. as_val=$(( $* ))
  394. }'
  395. else
  396. as_fn_arith ()
  397. {
  398. as_val=`expr "$@" || test $? -eq 1`
  399. }
  400. fi # as_fn_arith
  401.  
  402.  
  403. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  404. # ----------------------------------------
  405. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  406. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  407. # script with STATUS, using 1 if that was 0.
  408. as_fn_error ()
  409. {
  410. as_status=$1; test $as_status -eq 0 && as_status=1
  411. if test "$4"; then
  412. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  413. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  414. fi
  415. $as_echo "$as_me: error: $2" >&2
  416. as_fn_exit $as_status
  417. } # as_fn_error
  418.  
  419. if expr a : '\(a\)' >/dev/null 2>&1 &&
  420. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  421. as_expr=expr
  422. else
  423. as_expr=false
  424. fi
  425.  
  426. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  427. as_basename=basename
  428. else
  429. as_basename=false
  430. fi
  431.  
  432. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  433. as_dirname=dirname
  434. else
  435. as_dirname=false
  436. fi
  437.  
  438. as_me=`$as_basename -- "$0" ||
  439. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  440. X"$0" : 'X\(//\)$' \| \
  441. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  442. $as_echo X/"$0" |
  443. sed '/^.*\/\([^/][^/]*\)\/*$/{
  444. s//\1/
  445. q
  446. }
  447. /^X\/\(\/\/\)$/{
  448. s//\1/
  449. q
  450. }
  451. /^X\/\(\/\).*/{
  452. s//\1/
  453. q
  454. }
  455. s/.*/./; q'`
  456.  
  457. # Avoid depending upon Character Ranges.
  458. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  459. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  460. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  461. as_cr_digits='0123456789'
  462. as_cr_alnum=$as_cr_Letters$as_cr_digits
  463.  
  464.  
  465. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  466. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  467. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  468. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  469. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  470. sed -n '
  471. p
  472. /[$]LINENO/=
  473. ' <$as_myself |
  474. sed '
  475. s/[$]LINENO.*/&-/
  476. t lineno
  477. b
  478. :lineno
  479. N
  480. :loop
  481. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  482. t loop
  483. s/-\n.*//
  484. ' >$as_me.lineno &&
  485. chmod +x "$as_me.lineno" ||
  486. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  487.  
  488. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  489. # already done that, so ensure we don't try to do so again and fall
  490. # in an infinite loop. This has already happened in practice.
  491. _as_can_reexec=no; export _as_can_reexec
  492. # Don't try to exec as it changes $[0], causing all sort of problems
  493. # (the dirname of $[0] is not the place where we might find the
  494. # original and so on. Autoconf is especially sensitive to this).
  495. . "./$as_me.lineno"
  496. # Exit status is that of the last command.
  497. exit
  498. }
  499.  
  500. ECHO_C= ECHO_N= ECHO_T=
  501. case `echo -n x` in #(((((
  502. -n*)
  503. case `echo 'xy\c'` in
  504. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  505. xy) ECHO_C='\c';;
  506. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  507. ECHO_T=' ';;
  508. esac;;
  509. *)
  510. ECHO_N='-n';;
  511. esac
  512.  
  513. rm -f conf$$ conf$$.exe conf$$.file
  514. if test -d conf$$.dir; then
  515. rm -f conf$$.dir/conf$$.file
  516. else
  517. rm -f conf$$.dir
  518. mkdir conf$$.dir 2>/dev/null
  519. fi
  520. if (echo >conf$$.file) 2>/dev/null; then
  521. if ln -s conf$$.file conf$$ 2>/dev/null; then
  522. as_ln_s='ln -s'
  523. # ... but there are two gotchas:
  524. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  525. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  526. # In both cases, we have to default to `cp -pR'.
  527. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  528. as_ln_s='cp -pR'
  529. elif ln conf$$.file conf$$ 2>/dev/null; then
  530. as_ln_s=ln
  531. else
  532. as_ln_s='cp -pR'
  533. fi
  534. else
  535. as_ln_s='cp -pR'
  536. fi
  537. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  538. rmdir conf$$.dir 2>/dev/null
  539.  
  540. if mkdir -p . 2>/dev/null; then
  541. as_mkdir_p='mkdir -p "$as_dir"'
  542. else
  543. test -d ./-p && rmdir ./-p
  544. as_mkdir_p=false
  545. fi
  546.  
  547. as_test_x='test -x'
  548. as_executable_p=as_fn_executable_p
  549.  
  550. # Sed expression to map a string onto a valid CPP name.
  551. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  552.  
  553. # Sed expression to map a string onto a valid variable name.
  554. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  555.  
  556.  
  557. test -n "$DJDIR" || exec 7<&0 </dev/null
  558. exec 6>&1
  559.  
  560. # Name of the host.
  561. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  562. # so uname gets run too.
  563. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  564.  
  565. #
  566. # Initializations.
  567. #
  568. ac_default_prefix=/usr/local
  569. ac_clean_files=
  570. ac_config_libobj_dir=.
  571. LIBOBJS=
  572. cross_compiling=no
  573. subdirs=
  574. MFLAGS=
  575. MAKEFLAGS=
  576.  
  577. # Identity of this package.
  578. PACKAGE_NAME='tdom'
  579. PACKAGE_TARNAME='tdom'
  580. PACKAGE_VERSION='0.9.1'
  581. PACKAGE_STRING='tdom 0.9.1'
  582. PACKAGE_BUGREPORT=''
  583. PACKAGE_URL=''
  584.  
  585. # Factoring default headers for most tests.
  586. ac_includes_default="\
  587. #include <stdio.h>
  588. #ifdef HAVE_SYS_TYPES_H
  589. # include <sys/types.h>
  590. #endif
  591. #ifdef HAVE_SYS_STAT_H
  592. # include <sys/stat.h>
  593. #endif
  594. #ifdef STDC_HEADERS
  595. # include <stdlib.h>
  596. # include <stddef.h>
  597. #else
  598. # ifdef HAVE_STDLIB_H
  599. # include <stdlib.h>
  600. # endif
  601. #endif
  602. #ifdef HAVE_STRING_H
  603. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  604. # include <memory.h>
  605. # endif
  606. # include <string.h>
  607. #endif
  608. #ifdef HAVE_STRINGS_H
  609. # include <strings.h>
  610. #endif
  611. #ifdef HAVE_INTTYPES_H
  612. # include <inttypes.h>
  613. #endif
  614. #ifdef HAVE_STDINT_H
  615. # include <stdint.h>
  616. #endif
  617. #ifdef HAVE_UNISTD_H
  618. # include <unistd.h>
  619. #endif"
  620.  
  621. ac_subst_vars='LTLIBOBJS
  622. LIBOBJS
  623. PKG_STUB_LIB_PATH
  624. PKG_BUILD_STUB_LIB_PATH
  625. PKG_STUB_LIB_SPEC
  626. PKG_BUILD_STUB_LIB_SPEC
  627. TDOMSHELL
  628. TCLSH_PROG
  629. VC_MANIFEST_EMBED_EXE
  630. VC_MANIFEST_EMBED_DLL
  631. RANLIB_STUB
  632. MAKE_STUB_LIB
  633. MAKE_STATIC_LIB
  634. MAKE_SHARED_LIB
  635. MAKE_LIB
  636. TCL_DBGX
  637. LDFLAGS_DEFAULT
  638. CFLAGS_DEFAULT
  639. TDOM_LD_SEARCH_FLAGS
  640. LD_LIBRARY_PATH_VAR
  641. SHLIB_CFLAGS
  642. SHLIB_LD_LIBS
  643. SHLIB_LD
  644. STLIB_LD
  645. CFLAGS_WARNING
  646. CFLAGS_OPTIMIZE
  647. CFLAGS_DEBUG
  648. RC
  649. CELIB_DIR
  650. AR
  651. STUBS_BUILD
  652. SHARED_BUILD
  653. TCL_THREADS
  654. TCL_INCLUDES
  655. PKG_OBJECTS
  656. PKG_SOURCES
  657. MATH_LIBS
  658. EGREP
  659. GREP
  660. RANLIB
  661. SET_MAKE
  662. INSTALL_LIBRARY
  663. INSTALL_SCRIPT
  664. INSTALL_PROGRAM
  665. INSTALL_DATA
  666. INSTALL_DATA_DIR
  667. INSTALL
  668. CPP
  669. TCL_SHLIB_LD_LIBS
  670. TCL_LD_FLAGS
  671. TCL_EXTRA_CFLAGS
  672. TCL_DEFS
  673. TCL_LIBS
  674. CLEANFILES
  675. OBJEXT
  676. ac_ct_CC
  677. CPPFLAGS
  678. LDFLAGS
  679. CFLAGS
  680. CC
  681. TCL_STUB_LIB_SPEC
  682. TCL_STUB_LIB_FLAG
  683. TCL_STUB_LIB_FILE
  684. TCL_LIB_SPEC
  685. TCL_LIB_FLAG
  686. TCL_LIB_FILE
  687. TCL_SRC_DIR
  688. TCL_BIN_DIR
  689. TCL_PATCH_LEVEL
  690. TCL_VERSION
  691. PKG_CFLAGS
  692. PKG_LIBS
  693. PKG_INCLUDES
  694. PKG_HEADERS
  695. PKG_TCL_SOURCES
  696. PKG_STUB_OBJECTS
  697. PKG_STUB_SOURCES
  698. PKG_STUB_LIB_FILE
  699. PKG_LIB_FILE
  700. EXEEXT
  701. CYGPATH
  702. target_alias
  703. host_alias
  704. build_alias
  705. LIBS
  706. ECHO_T
  707. ECHO_N
  708. ECHO_C
  709. DEFS
  710. mandir
  711. localedir
  712. libdir
  713. psdir
  714. pdfdir
  715. dvidir
  716. htmldir
  717. infodir
  718. docdir
  719. oldincludedir
  720. includedir
  721. localstatedir
  722. sharedstatedir
  723. sysconfdir
  724. datadir
  725. datarootdir
  726. libexecdir
  727. sbindir
  728. bindir
  729. program_transform_name
  730. prefix
  731. exec_prefix
  732. PACKAGE_URL
  733. PACKAGE_BUGREPORT
  734. PACKAGE_STRING
  735. PACKAGE_VERSION
  736. PACKAGE_TARNAME
  737. PACKAGE_NAME
  738. PATH_SEPARATOR
  739. SHELL'
  740. ac_subst_files=''
  741. ac_user_opts='
  742. enable_option_checking
  743. with_tcl
  744. with_aol
  745. with_expat
  746. enable_html5
  747. with_tclinclude
  748. enable_threads
  749. enable_shared
  750. enable_stubs
  751. enable_64bit
  752. enable_64bit_vis
  753. enable_rpath
  754. enable_wince
  755. with_celib
  756. enable_symbols
  757. enable_dtd
  758. enable_ns
  759. enable_ucmd
  760. enable_tdomalloc
  761. enable_lessns
  762. with_entropy
  763. '
  764. ac_precious_vars='build_alias
  765. host_alias
  766. target_alias
  767. CC
  768. CFLAGS
  769. LDFLAGS
  770. LIBS
  771. CPPFLAGS
  772. CPP'
  773.  
  774.  
  775. # Initialize some variables set by options.
  776. ac_init_help=
  777. ac_init_version=false
  778. ac_unrecognized_opts=
  779. ac_unrecognized_sep=
  780. # The variables have the same names as the options, with
  781. # dashes changed to underlines.
  782. cache_file=/dev/null
  783. exec_prefix=NONE
  784. no_create=
  785. no_recursion=
  786. prefix=NONE
  787. program_prefix=NONE
  788. program_suffix=NONE
  789. program_transform_name=s,x,x,
  790. silent=
  791. site=
  792. srcdir=
  793. verbose=
  794. x_includes=NONE
  795. x_libraries=NONE
  796.  
  797. # Installation directory options.
  798. # These are left unexpanded so users can "make install exec_prefix=/foo"
  799. # and all the variables that are supposed to be based on exec_prefix
  800. # by default will actually change.
  801. # Use braces instead of parens because sh, perl, etc. also accept them.
  802. # (The list follows the same order as the GNU Coding Standards.)
  803. bindir='${exec_prefix}/bin'
  804. sbindir='${exec_prefix}/sbin'
  805. libexecdir='${exec_prefix}/libexec'
  806. datarootdir='${prefix}/share'
  807. datadir='${datarootdir}'
  808. sysconfdir='${prefix}/etc'
  809. sharedstatedir='${prefix}/com'
  810. localstatedir='${prefix}/var'
  811. includedir='${prefix}/include'
  812. oldincludedir='/usr/include'
  813. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  814. infodir='${datarootdir}/info'
  815. htmldir='${docdir}'
  816. dvidir='${docdir}'
  817. pdfdir='${docdir}'
  818. psdir='${docdir}'
  819. libdir='${exec_prefix}/lib'
  820. localedir='${datarootdir}/locale'
  821. mandir='${datarootdir}/man'
  822.  
  823. ac_prev=
  824. ac_dashdash=
  825. for ac_option
  826. do
  827. # If the previous option needs an argument, assign it.
  828. if test -n "$ac_prev"; then
  829. eval $ac_prev=\$ac_option
  830. ac_prev=
  831. continue
  832. fi
  833.  
  834. case $ac_option in
  835. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  836. *=) ac_optarg= ;;
  837. *) ac_optarg=yes ;;
  838. esac
  839.  
  840. # Accept the important Cygnus configure options, so we can diagnose typos.
  841.  
  842. case $ac_dashdash$ac_option in
  843. --)
  844. ac_dashdash=yes ;;
  845.  
  846. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  847. ac_prev=bindir ;;
  848. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  849. bindir=$ac_optarg ;;
  850.  
  851. -build | --build | --buil | --bui | --bu)
  852. ac_prev=build_alias ;;
  853. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  854. build_alias=$ac_optarg ;;
  855.  
  856. -cache-file | --cache-file | --cache-fil | --cache-fi \
  857. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  858. ac_prev=cache_file ;;
  859. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  860. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  861. cache_file=$ac_optarg ;;
  862.  
  863. --config-cache | -C)
  864. cache_file=config.cache ;;
  865.  
  866. -datadir | --datadir | --datadi | --datad)
  867. ac_prev=datadir ;;
  868. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  869. datadir=$ac_optarg ;;
  870.  
  871. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  872. | --dataroo | --dataro | --datar)
  873. ac_prev=datarootdir ;;
  874. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  875. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  876. datarootdir=$ac_optarg ;;
  877.  
  878. -disable-* | --disable-*)
  879. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  880. # Reject names that are not valid shell variable names.
  881. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  882. as_fn_error $? "invalid feature name: $ac_useropt"
  883. ac_useropt_orig=$ac_useropt
  884. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  885. case $ac_user_opts in
  886. *"
  887. "enable_$ac_useropt"
  888. "*) ;;
  889. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  890. ac_unrecognized_sep=', ';;
  891. esac
  892. eval enable_$ac_useropt=no ;;
  893.  
  894. -docdir | --docdir | --docdi | --doc | --do)
  895. ac_prev=docdir ;;
  896. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  897. docdir=$ac_optarg ;;
  898.  
  899. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  900. ac_prev=dvidir ;;
  901. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  902. dvidir=$ac_optarg ;;
  903.  
  904. -enable-* | --enable-*)
  905. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  906. # Reject names that are not valid shell variable names.
  907. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  908. as_fn_error $? "invalid feature name: $ac_useropt"
  909. ac_useropt_orig=$ac_useropt
  910. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  911. case $ac_user_opts in
  912. *"
  913. "enable_$ac_useropt"
  914. "*) ;;
  915. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  916. ac_unrecognized_sep=', ';;
  917. esac
  918. eval enable_$ac_useropt=\$ac_optarg ;;
  919.  
  920. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  921. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  922. | --exec | --exe | --ex)
  923. ac_prev=exec_prefix ;;
  924. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  925. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  926. | --exec=* | --exe=* | --ex=*)
  927. exec_prefix=$ac_optarg ;;
  928.  
  929. -gas | --gas | --ga | --g)
  930. # Obsolete; use --with-gas.
  931. with_gas=yes ;;
  932.  
  933. -help | --help | --hel | --he | -h)
  934. ac_init_help=long ;;
  935. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  936. ac_init_help=recursive ;;
  937. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  938. ac_init_help=short ;;
  939.  
  940. -host | --host | --hos | --ho)
  941. ac_prev=host_alias ;;
  942. -host=* | --host=* | --hos=* | --ho=*)
  943. host_alias=$ac_optarg ;;
  944.  
  945. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  946. ac_prev=htmldir ;;
  947. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  948. | --ht=*)
  949. htmldir=$ac_optarg ;;
  950.  
  951. -includedir | --includedir | --includedi | --included | --include \
  952. | --includ | --inclu | --incl | --inc)
  953. ac_prev=includedir ;;
  954. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  955. | --includ=* | --inclu=* | --incl=* | --inc=*)
  956. includedir=$ac_optarg ;;
  957.  
  958. -infodir | --infodir | --infodi | --infod | --info | --inf)
  959. ac_prev=infodir ;;
  960. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  961. infodir=$ac_optarg ;;
  962.  
  963. -libdir | --libdir | --libdi | --libd)
  964. ac_prev=libdir ;;
  965. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  966. libdir=$ac_optarg ;;
  967.  
  968. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  969. | --libexe | --libex | --libe)
  970. ac_prev=libexecdir ;;
  971. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  972. | --libexe=* | --libex=* | --libe=*)
  973. libexecdir=$ac_optarg ;;
  974.  
  975. -localedir | --localedir | --localedi | --localed | --locale)
  976. ac_prev=localedir ;;
  977. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  978. localedir=$ac_optarg ;;
  979.  
  980. -localstatedir | --localstatedir | --localstatedi | --localstated \
  981. | --localstate | --localstat | --localsta | --localst | --locals)
  982. ac_prev=localstatedir ;;
  983. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  984. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  985. localstatedir=$ac_optarg ;;
  986.  
  987. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  988. ac_prev=mandir ;;
  989. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  990. mandir=$ac_optarg ;;
  991.  
  992. -nfp | --nfp | --nf)
  993. # Obsolete; use --without-fp.
  994. with_fp=no ;;
  995.  
  996. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  997. | --no-cr | --no-c | -n)
  998. no_create=yes ;;
  999.  
  1000. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1001. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1002. no_recursion=yes ;;
  1003.  
  1004. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1005. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1006. | --oldin | --oldi | --old | --ol | --o)
  1007. ac_prev=oldincludedir ;;
  1008. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1009. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1010. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1011. oldincludedir=$ac_optarg ;;
  1012.  
  1013. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1014. ac_prev=prefix ;;
  1015. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1016. prefix=$ac_optarg ;;
  1017.  
  1018. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1019. | --program-pre | --program-pr | --program-p)
  1020. ac_prev=program_prefix ;;
  1021. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1022. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1023. program_prefix=$ac_optarg ;;
  1024.  
  1025. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1026. | --program-suf | --program-su | --program-s)
  1027. ac_prev=program_suffix ;;
  1028. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1029. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1030. program_suffix=$ac_optarg ;;
  1031.  
  1032. -program-transform-name | --program-transform-name \
  1033. | --program-transform-nam | --program-transform-na \
  1034. | --program-transform-n | --program-transform- \
  1035. | --program-transform | --program-transfor \
  1036. | --program-transfo | --program-transf \
  1037. | --program-trans | --program-tran \
  1038. | --progr-tra | --program-tr | --program-t)
  1039. ac_prev=program_transform_name ;;
  1040. -program-transform-name=* | --program-transform-name=* \
  1041. | --program-transform-nam=* | --program-transform-na=* \
  1042. | --program-transform-n=* | --program-transform-=* \
  1043. | --program-transform=* | --program-transfor=* \
  1044. | --program-transfo=* | --program-transf=* \
  1045. | --program-trans=* | --program-tran=* \
  1046. | --progr-tra=* | --program-tr=* | --program-t=*)
  1047. program_transform_name=$ac_optarg ;;
  1048.  
  1049. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1050. ac_prev=pdfdir ;;
  1051. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1052. pdfdir=$ac_optarg ;;
  1053.  
  1054. -psdir | --psdir | --psdi | --psd | --ps)
  1055. ac_prev=psdir ;;
  1056. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1057. psdir=$ac_optarg ;;
  1058.  
  1059. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1060. | -silent | --silent | --silen | --sile | --sil)
  1061. silent=yes ;;
  1062.  
  1063. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1064. ac_prev=sbindir ;;
  1065. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1066. | --sbi=* | --sb=*)
  1067. sbindir=$ac_optarg ;;
  1068.  
  1069. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1070. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1071. | --sharedst | --shareds | --shared | --share | --shar \
  1072. | --sha | --sh)
  1073. ac_prev=sharedstatedir ;;
  1074. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1075. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1076. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1077. | --sha=* | --sh=*)
  1078. sharedstatedir=$ac_optarg ;;
  1079.  
  1080. -site | --site | --sit)
  1081. ac_prev=site ;;
  1082. -site=* | --site=* | --sit=*)
  1083. site=$ac_optarg ;;
  1084.  
  1085. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1086. ac_prev=srcdir ;;
  1087. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1088. srcdir=$ac_optarg ;;
  1089.  
  1090. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1091. | --syscon | --sysco | --sysc | --sys | --sy)
  1092. ac_prev=sysconfdir ;;
  1093. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1094. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1095. sysconfdir=$ac_optarg ;;
  1096.  
  1097. -target | --target | --targe | --targ | --tar | --ta | --t)
  1098. ac_prev=target_alias ;;
  1099. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1100. target_alias=$ac_optarg ;;
  1101.  
  1102. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1103. verbose=yes ;;
  1104.  
  1105. -version | --version | --versio | --versi | --vers | -V)
  1106. ac_init_version=: ;;
  1107.  
  1108. -with-* | --with-*)
  1109. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1110. # Reject names that are not valid shell variable names.
  1111. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1112. as_fn_error $? "invalid package name: $ac_useropt"
  1113. ac_useropt_orig=$ac_useropt
  1114. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1115. case $ac_user_opts in
  1116. *"
  1117. "with_$ac_useropt"
  1118. "*) ;;
  1119. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1120. ac_unrecognized_sep=', ';;
  1121. esac
  1122. eval with_$ac_useropt=\$ac_optarg ;;
  1123.  
  1124. -without-* | --without-*)
  1125. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1126. # Reject names that are not valid shell variable names.
  1127. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1128. as_fn_error $? "invalid package name: $ac_useropt"
  1129. ac_useropt_orig=$ac_useropt
  1130. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1131. case $ac_user_opts in
  1132. *"
  1133. "with_$ac_useropt"
  1134. "*) ;;
  1135. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1136. ac_unrecognized_sep=', ';;
  1137. esac
  1138. eval with_$ac_useropt=no ;;
  1139.  
  1140. --x)
  1141. # Obsolete; use --with-x.
  1142. with_x=yes ;;
  1143.  
  1144. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1145. | --x-incl | --x-inc | --x-in | --x-i)
  1146. ac_prev=x_includes ;;
  1147. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1148. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1149. x_includes=$ac_optarg ;;
  1150.  
  1151. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1152. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1153. ac_prev=x_libraries ;;
  1154. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1155. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1156. x_libraries=$ac_optarg ;;
  1157.  
  1158. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1159. Try \`$0 --help' for more information"
  1160. ;;
  1161.  
  1162. *=*)
  1163. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1164. # Reject names that are not valid shell variable names.
  1165. case $ac_envvar in #(
  1166. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1167. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1168. esac
  1169. eval $ac_envvar=\$ac_optarg
  1170. export $ac_envvar ;;
  1171.  
  1172. *)
  1173. # FIXME: should be removed in autoconf 3.0.
  1174. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1175. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1176. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1177. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1178. ;;
  1179.  
  1180. esac
  1181. done
  1182.  
  1183. if test -n "$ac_prev"; then
  1184. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1185. as_fn_error $? "missing argument to $ac_option"
  1186. fi
  1187.  
  1188. if test -n "$ac_unrecognized_opts"; then
  1189. case $enable_option_checking in
  1190. no) ;;
  1191. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1192. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1193. esac
  1194. fi
  1195.  
  1196. # Check all directory arguments for consistency.
  1197. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1198. datadir sysconfdir sharedstatedir localstatedir includedir \
  1199. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1200. libdir localedir mandir
  1201. do
  1202. eval ac_val=\$$ac_var
  1203. # Remove trailing slashes.
  1204. case $ac_val in
  1205. */ )
  1206. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1207. eval $ac_var=\$ac_val;;
  1208. esac
  1209. # Be sure to have absolute directory names.
  1210. case $ac_val in
  1211. [\\/$]* | ?:[\\/]* ) continue;;
  1212. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1213. esac
  1214. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1215. done
  1216.  
  1217. # There might be people who depend on the old broken behavior: `$host'
  1218. # used to hold the argument of --host etc.
  1219. # FIXME: To remove some day.
  1220. build=$build_alias
  1221. host=$host_alias
  1222. target=$target_alias
  1223.  
  1224. # FIXME: To remove some day.
  1225. if test "x$host_alias" != x; then
  1226. if test "x$build_alias" = x; then
  1227. cross_compiling=maybe
  1228. elif test "x$build_alias" != "x$host_alias"; then
  1229. cross_compiling=yes
  1230. fi
  1231. fi
  1232.  
  1233. ac_tool_prefix=
  1234. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1235.  
  1236. test "$silent" = yes && exec 6>/dev/null
  1237.  
  1238.  
  1239. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1240. ac_ls_di=`ls -di .` &&
  1241. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1242. as_fn_error $? "working directory cannot be determined"
  1243. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1244. as_fn_error $? "pwd does not report name of working directory"
  1245.  
  1246.  
  1247. # Find the source files, if location was not specified.
  1248. if test -z "$srcdir"; then
  1249. ac_srcdir_defaulted=yes
  1250. # Try the directory containing this script, then the parent directory.
  1251. ac_confdir=`$as_dirname -- "$as_myself" ||
  1252. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1253. X"$as_myself" : 'X\(//\)[^/]' \| \
  1254. X"$as_myself" : 'X\(//\)$' \| \
  1255. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1256. $as_echo X"$as_myself" |
  1257. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1258. s//\1/
  1259. q
  1260. }
  1261. /^X\(\/\/\)[^/].*/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\/\)$/{
  1266. s//\1/
  1267. q
  1268. }
  1269. /^X\(\/\).*/{
  1270. s//\1/
  1271. q
  1272. }
  1273. s/.*/./; q'`
  1274. srcdir=$ac_confdir
  1275. if test ! -r "$srcdir/$ac_unique_file"; then
  1276. srcdir=..
  1277. fi
  1278. else
  1279. ac_srcdir_defaulted=no
  1280. fi
  1281. if test ! -r "$srcdir/$ac_unique_file"; then
  1282. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1283. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1284. fi
  1285. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1286. ac_abs_confdir=`(
  1287. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1288. pwd)`
  1289. # When building in place, set srcdir=.
  1290. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1291. srcdir=.
  1292. fi
  1293. # Remove unnecessary trailing slashes from srcdir.
  1294. # Double slashes in file names in object file debugging info
  1295. # mess up M-x gdb in Emacs.
  1296. case $srcdir in
  1297. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1298. esac
  1299. for ac_var in $ac_precious_vars; do
  1300. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1301. eval ac_env_${ac_var}_value=\$${ac_var}
  1302. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1303. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1304. done
  1305.  
  1306. #
  1307. # Report the --help message.
  1308. #
  1309. if test "$ac_init_help" = "long"; then
  1310. # Omit some internal or obsolete options to make the list less imposing.
  1311. # This message is too long to be a string in the A/UX 3.1 sh.
  1312. cat <<_ACEOF
  1313. \`configure' configures tdom 0.9.1 to adapt to many kinds of systems.
  1314.  
  1315. Usage: $0 [OPTION]... [VAR=VALUE]...
  1316.  
  1317. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1318. VAR=VALUE. See below for descriptions of some of the useful variables.
  1319.  
  1320. Defaults for the options are specified in brackets.
  1321.  
  1322. Configuration:
  1323. -h, --help display this help and exit
  1324. --help=short display options specific to this package
  1325. --help=recursive display the short help of all the included packages
  1326. -V, --version display version information and exit
  1327. -q, --quiet, --silent do not print \`checking ...' messages
  1328. --cache-file=FILE cache test results in FILE [disabled]
  1329. -C, --config-cache alias for \`--cache-file=config.cache'
  1330. -n, --no-create do not create output files
  1331. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1332.  
  1333. Installation directories:
  1334. --prefix=PREFIX install architecture-independent files in PREFIX
  1335. [$ac_default_prefix]
  1336. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1337. [PREFIX]
  1338.  
  1339. By default, \`make install' will install all the files in
  1340. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1341. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1342. for instance \`--prefix=\$HOME'.
  1343.  
  1344. For better control, use the options below.
  1345.  
  1346. Fine tuning of the installation directories:
  1347. --bindir=DIR user executables [EPREFIX/bin]
  1348. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1349. --libexecdir=DIR program executables [EPREFIX/libexec]
  1350. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1351. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1352. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1353. --libdir=DIR object code libraries [EPREFIX/lib]
  1354. --includedir=DIR C header files [PREFIX/include]
  1355. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1356. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1357. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1358. --infodir=DIR info documentation [DATAROOTDIR/info]
  1359. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1360. --mandir=DIR man documentation [DATAROOTDIR/man]
  1361. --docdir=DIR documentation root [DATAROOTDIR/doc/tdom]
  1362. --htmldir=DIR html documentation [DOCDIR]
  1363. --dvidir=DIR dvi documentation [DOCDIR]
  1364. --pdfdir=DIR pdf documentation [DOCDIR]
  1365. --psdir=DIR ps documentation [DOCDIR]
  1366. _ACEOF
  1367.  
  1368. cat <<\_ACEOF
  1369. _ACEOF
  1370. fi
  1371.  
  1372. if test -n "$ac_init_help"; then
  1373. case $ac_init_help in
  1374. short | recursive ) echo "Configuration of tdom 0.9.1:";;
  1375. esac
  1376. cat <<\_ACEOF
  1377.  
  1378. Optional Features:
  1379. --disable-option-checking ignore unrecognized --enable/--with options
  1380. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1381. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1382. --enable-html5 build with HTML5 parsing support (default: no)
  1383. --enable-threads build with threads
  1384. --enable-shared build and link with shared libraries (default: on)
  1385. --enable-stubs build and link with stub libraries. Always true for
  1386. shared builds (default: on)
  1387. --enable-64bit enable 64bit support (default: off)
  1388. --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
  1389. --disable-rpath disable rpath support (default: on)
  1390. --enable-wince enable Win/CE support (where applicable)
  1391. --enable-symbols build with debugging symbols (default: off)
  1392. --enable-dtd build with dtd support (default: on)
  1393. --enable-ns build with XML namespace support (default: on)
  1394. --enable-unknown enable built-in unknown command (default: off)
  1395. --enable-tdomalloc build with the tDOM allocator (default: off)
  1396. --enable-lessns build with lower limit for XML ns declarations
  1397. (default: off)
  1398.  
  1399. Optional Packages:
  1400. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1401. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1402. --with-tcl directory containing tcl configuration
  1403. (tclConfig.sh)
  1404. --with-aolserver directory with AOLserver distribution
  1405. --with-expat directory with expat installation
  1406. --with-tclinclude directory containing the public Tcl header files
  1407. --with-celib=DIR use Windows/CE support library from DIR
  1408. --with-entropy source of entropy to use
  1409.  
  1410. Some influential environment variables:
  1411. CC C compiler command
  1412. CFLAGS C compiler flags
  1413. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1414. nonstandard directory <lib dir>
  1415. LIBS libraries to pass to the linker, e.g. -l<library>
  1416. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1417. you have headers in a nonstandard directory <include dir>
  1418. CPP C preprocessor
  1419.  
  1420. Use these variables to override the choices made by `configure' or to help
  1421. it to find libraries and programs with nonstandard names/locations.
  1422.  
  1423. Report bugs to the package provider.
  1424. _ACEOF
  1425. ac_status=$?
  1426. fi
  1427.  
  1428. if test "$ac_init_help" = "recursive"; then
  1429. # If there are subdirs, report their specific --help.
  1430. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1431. test -d "$ac_dir" ||
  1432. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1433. continue
  1434. ac_builddir=.
  1435.  
  1436. case "$ac_dir" in
  1437. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1438. *)
  1439. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1440. # A ".." for each directory in $ac_dir_suffix.
  1441. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1442. case $ac_top_builddir_sub in
  1443. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1444. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1445. esac ;;
  1446. esac
  1447. ac_abs_top_builddir=$ac_pwd
  1448. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1449. # for backward compatibility:
  1450. ac_top_builddir=$ac_top_build_prefix
  1451.  
  1452. case $srcdir in
  1453. .) # We are building in place.
  1454. ac_srcdir=.
  1455. ac_top_srcdir=$ac_top_builddir_sub
  1456. ac_abs_top_srcdir=$ac_pwd ;;
  1457. [\\/]* | ?:[\\/]* ) # Absolute name.
  1458. ac_srcdir=$srcdir$ac_dir_suffix;
  1459. ac_top_srcdir=$srcdir
  1460. ac_abs_top_srcdir=$srcdir ;;
  1461. *) # Relative name.
  1462. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1463. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1464. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1465. esac
  1466. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1467.  
  1468. cd "$ac_dir" || { ac_status=$?; continue; }
  1469. # Check for guested configure.
  1470. if test -f "$ac_srcdir/configure.gnu"; then
  1471. echo &&
  1472. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1473. elif test -f "$ac_srcdir/configure"; then
  1474. echo &&
  1475. $SHELL "$ac_srcdir/configure" --help=recursive
  1476. else
  1477. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1478. fi || ac_status=$?
  1479. cd "$ac_pwd" || { ac_status=$?; break; }
  1480. done
  1481. fi
  1482.  
  1483. test -n "$ac_init_help" && exit $ac_status
  1484. if $ac_init_version; then
  1485. cat <<\_ACEOF
  1486. tdom configure 0.9.1
  1487. generated by GNU Autoconf 2.69
  1488.  
  1489. Copyright (C) 2012 Free Software Foundation, Inc.
  1490. This configure script is free software; the Free Software Foundation
  1491. gives unlimited permission to copy, distribute and modify it.
  1492. _ACEOF
  1493. exit
  1494. fi
  1495.  
  1496. ## ------------------------ ##
  1497. ## Autoconf initialization. ##
  1498. ## ------------------------ ##
  1499.  
  1500. # ac_fn_c_try_compile LINENO
  1501. # --------------------------
  1502. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1503. ac_fn_c_try_compile ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. rm -f conftest.$ac_objext
  1507. if { { ac_try="$ac_compile"
  1508. case "(($ac_try" in
  1509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1510. *) ac_try_echo=$ac_try;;
  1511. esac
  1512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1513. $as_echo "$ac_try_echo"; } >&5
  1514. (eval "$ac_compile") 2>conftest.err
  1515. ac_status=$?
  1516. if test -s conftest.err; then
  1517. grep -v '^ *+' conftest.err >conftest.er1
  1518. cat conftest.er1 >&5
  1519. mv -f conftest.er1 conftest.err
  1520. fi
  1521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1522. test $ac_status = 0; } && {
  1523. test -z "$ac_c_werror_flag" ||
  1524. test ! -s conftest.err
  1525. } && test -s conftest.$ac_objext; then :
  1526. ac_retval=0
  1527. else
  1528. $as_echo "$as_me: failed program was:" >&5
  1529. sed 's/^/| /' conftest.$ac_ext >&5
  1530.  
  1531. ac_retval=1
  1532. fi
  1533. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1534. as_fn_set_status $ac_retval
  1535.  
  1536. } # ac_fn_c_try_compile
  1537.  
  1538. # ac_fn_c_try_cpp LINENO
  1539. # ----------------------
  1540. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1541. ac_fn_c_try_cpp ()
  1542. {
  1543. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1544. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1545. case "(($ac_try" in
  1546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1547. *) ac_try_echo=$ac_try;;
  1548. esac
  1549. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1550. $as_echo "$ac_try_echo"; } >&5
  1551. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1552. ac_status=$?
  1553. if test -s conftest.err; then
  1554. grep -v '^ *+' conftest.err >conftest.er1
  1555. cat conftest.er1 >&5
  1556. mv -f conftest.er1 conftest.err
  1557. fi
  1558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1559. test $ac_status = 0; } > conftest.i && {
  1560. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1561. test ! -s conftest.err
  1562. }; then :
  1563. ac_retval=0
  1564. else
  1565. $as_echo "$as_me: failed program was:" >&5
  1566. sed 's/^/| /' conftest.$ac_ext >&5
  1567.  
  1568. ac_retval=1
  1569. fi
  1570. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1571. as_fn_set_status $ac_retval
  1572.  
  1573. } # ac_fn_c_try_cpp
  1574.  
  1575. # ac_fn_c_try_run LINENO
  1576. # ----------------------
  1577. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1578. # that executables *can* be run.
  1579. ac_fn_c_try_run ()
  1580. {
  1581. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1582. if { { ac_try="$ac_link"
  1583. case "(($ac_try" in
  1584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1585. *) ac_try_echo=$ac_try;;
  1586. esac
  1587. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1588. $as_echo "$ac_try_echo"; } >&5
  1589. (eval "$ac_link") 2>&5
  1590. ac_status=$?
  1591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1592. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1593. { { case "(($ac_try" in
  1594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1595. *) ac_try_echo=$ac_try;;
  1596. esac
  1597. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1598. $as_echo "$ac_try_echo"; } >&5
  1599. (eval "$ac_try") 2>&5
  1600. ac_status=$?
  1601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1602. test $ac_status = 0; }; }; then :
  1603. ac_retval=0
  1604. else
  1605. $as_echo "$as_me: program exited with status $ac_status" >&5
  1606. $as_echo "$as_me: failed program was:" >&5
  1607. sed 's/^/| /' conftest.$ac_ext >&5
  1608.  
  1609. ac_retval=$ac_status
  1610. fi
  1611. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1612. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1613. as_fn_set_status $ac_retval
  1614.  
  1615. } # ac_fn_c_try_run
  1616.  
  1617. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1618. # -------------------------------------------------------
  1619. # Tests whether HEADER exists and can be compiled using the include files in
  1620. # INCLUDES, setting the cache variable VAR accordingly.
  1621. ac_fn_c_check_header_compile ()
  1622. {
  1623. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1625. $as_echo_n "checking for $2... " >&6; }
  1626. if eval \${$3+:} false; then :
  1627. $as_echo_n "(cached) " >&6
  1628. else
  1629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1630. /* end confdefs.h. */
  1631. $4
  1632. #include <$2>
  1633. _ACEOF
  1634. if ac_fn_c_try_compile "$LINENO"; then :
  1635. eval "$3=yes"
  1636. else
  1637. eval "$3=no"
  1638. fi
  1639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1640. fi
  1641. eval ac_res=\$$3
  1642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1643. $as_echo "$ac_res" >&6; }
  1644. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1645.  
  1646. } # ac_fn_c_check_header_compile
  1647.  
  1648. # ac_fn_c_try_link LINENO
  1649. # -----------------------
  1650. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1651. ac_fn_c_try_link ()
  1652. {
  1653. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1654. rm -f conftest.$ac_objext conftest$ac_exeext
  1655. if { { ac_try="$ac_link"
  1656. case "(($ac_try" in
  1657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1658. *) ac_try_echo=$ac_try;;
  1659. esac
  1660. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1661. $as_echo "$ac_try_echo"; } >&5
  1662. (eval "$ac_link") 2>conftest.err
  1663. ac_status=$?
  1664. if test -s conftest.err; then
  1665. grep -v '^ *+' conftest.err >conftest.er1
  1666. cat conftest.er1 >&5
  1667. mv -f conftest.er1 conftest.err
  1668. fi
  1669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1670. test $ac_status = 0; } && {
  1671. test -z "$ac_c_werror_flag" ||
  1672. test ! -s conftest.err
  1673. } && test -s conftest$ac_exeext && {
  1674. test "$cross_compiling" = yes ||
  1675. test -x conftest$ac_exeext
  1676. }; then :
  1677. ac_retval=0
  1678. else
  1679. $as_echo "$as_me: failed program was:" >&5
  1680. sed 's/^/| /' conftest.$ac_ext >&5
  1681.  
  1682. ac_retval=1
  1683. fi
  1684. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1685. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1686. # interfere with the next link command; also delete a directory that is
  1687. # left behind by Apple's compiler. We do this before executing the actions.
  1688. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1689. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1690. as_fn_set_status $ac_retval
  1691.  
  1692. } # ac_fn_c_try_link
  1693.  
  1694. # ac_fn_c_check_func LINENO FUNC VAR
  1695. # ----------------------------------
  1696. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1697. ac_fn_c_check_func ()
  1698. {
  1699. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1701. $as_echo_n "checking for $2... " >&6; }
  1702. if eval \${$3+:} false; then :
  1703. $as_echo_n "(cached) " >&6
  1704. else
  1705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1706. /* end confdefs.h. */
  1707. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1708. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1709. #define $2 innocuous_$2
  1710.  
  1711. /* System header to define __stub macros and hopefully few prototypes,
  1712. which can conflict with char $2 (); below.
  1713. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1714. <limits.h> exists even on freestanding compilers. */
  1715.  
  1716. #ifdef __STDC__
  1717. # include <limits.h>
  1718. #else
  1719. # include <assert.h>
  1720. #endif
  1721.  
  1722. #undef $2
  1723.  
  1724. /* Override any GCC internal prototype to avoid an error.
  1725. Use char because int might match the return type of a GCC
  1726. builtin and then its argument prototype would still apply. */
  1727. #ifdef __cplusplus
  1728. extern "C"
  1729. #endif
  1730. char $2 ();
  1731. /* The GNU C library defines this for functions which it implements
  1732. to always fail with ENOSYS. Some functions are actually named
  1733. something starting with __ and the normal name is an alias. */
  1734. #if defined __stub_$2 || defined __stub___$2
  1735. choke me
  1736. #endif
  1737.  
  1738. int
  1739. main ()
  1740. {
  1741. return $2 ();
  1742. ;
  1743. return 0;
  1744. }
  1745. _ACEOF
  1746. if ac_fn_c_try_link "$LINENO"; then :
  1747. eval "$3=yes"
  1748. else
  1749. eval "$3=no"
  1750. fi
  1751. rm -f core conftest.err conftest.$ac_objext \
  1752. conftest$ac_exeext conftest.$ac_ext
  1753. fi
  1754. eval ac_res=\$$3
  1755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1756. $as_echo "$ac_res" >&6; }
  1757. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1758.  
  1759. } # ac_fn_c_check_func
  1760.  
  1761. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1762. # -------------------------------------------------------
  1763. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1764. # the include files in INCLUDES and setting the cache variable VAR
  1765. # accordingly.
  1766. ac_fn_c_check_header_mongrel ()
  1767. {
  1768. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1769. if eval \${$3+:} false; then :
  1770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1771. $as_echo_n "checking for $2... " >&6; }
  1772. if eval \${$3+:} false; then :
  1773. $as_echo_n "(cached) " >&6
  1774. fi
  1775. eval ac_res=\$$3
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1777. $as_echo "$ac_res" >&6; }
  1778. else
  1779. # Is the header compilable?
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1781. $as_echo_n "checking $2 usability... " >&6; }
  1782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1783. /* end confdefs.h. */
  1784. $4
  1785. #include <$2>
  1786. _ACEOF
  1787. if ac_fn_c_try_compile "$LINENO"; then :
  1788. ac_header_compiler=yes
  1789. else
  1790. ac_header_compiler=no
  1791. fi
  1792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1794. $as_echo "$ac_header_compiler" >&6; }
  1795.  
  1796. # Is the header present?
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1798. $as_echo_n "checking $2 presence... " >&6; }
  1799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1800. /* end confdefs.h. */
  1801. #include <$2>
  1802. _ACEOF
  1803. if ac_fn_c_try_cpp "$LINENO"; then :
  1804. ac_header_preproc=yes
  1805. else
  1806. ac_header_preproc=no
  1807. fi
  1808. rm -f conftest.err conftest.i conftest.$ac_ext
  1809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1810. $as_echo "$ac_header_preproc" >&6; }
  1811.  
  1812. # So? What about this header?
  1813. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1814. yes:no: )
  1815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1816. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1818. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1819. ;;
  1820. no:yes:* )
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1822. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1824. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1826. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1828. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1830. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1831. ;;
  1832. esac
  1833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1834. $as_echo_n "checking for $2... " >&6; }
  1835. if eval \${$3+:} false; then :
  1836. $as_echo_n "(cached) " >&6
  1837. else
  1838. eval "$3=\$ac_header_compiler"
  1839. fi
  1840. eval ac_res=\$$3
  1841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1842. $as_echo "$ac_res" >&6; }
  1843. fi
  1844. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1845.  
  1846. } # ac_fn_c_check_header_mongrel
  1847. cat >config.log <<_ACEOF
  1848. This file contains any messages produced by compilers while
  1849. running configure, to aid debugging if configure makes a mistake.
  1850.  
  1851. It was created by tdom $as_me 0.9.1, which was
  1852. generated by GNU Autoconf 2.69. Invocation command line was
  1853.  
  1854. $ $0 $@
  1855.  
  1856. _ACEOF
  1857. exec 5>>config.log
  1858. {
  1859. cat <<_ASUNAME
  1860. ## --------- ##
  1861. ## Platform. ##
  1862. ## --------- ##
  1863.  
  1864. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1865. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1866. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1867. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1868. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1869.  
  1870. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1871. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1872.  
  1873. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1874. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1875. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1876. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1877. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1878. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1879. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1880.  
  1881. _ASUNAME
  1882.  
  1883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1884. for as_dir in $PATH
  1885. do
  1886. IFS=$as_save_IFS
  1887. test -z "$as_dir" && as_dir=.
  1888. $as_echo "PATH: $as_dir"
  1889. done
  1890. IFS=$as_save_IFS
  1891.  
  1892. } >&5
  1893.  
  1894. cat >&5 <<_ACEOF
  1895.  
  1896.  
  1897. ## ----------- ##
  1898. ## Core tests. ##
  1899. ## ----------- ##
  1900.  
  1901. _ACEOF
  1902.  
  1903.  
  1904. # Keep a trace of the command line.
  1905. # Strip out --no-create and --no-recursion so they do not pile up.
  1906. # Strip out --silent because we don't want to record it for future runs.
  1907. # Also quote any args containing shell meta-characters.
  1908. # Make two passes to allow for proper duplicate-argument suppression.
  1909. ac_configure_args=
  1910. ac_configure_args0=
  1911. ac_configure_args1=
  1912. ac_must_keep_next=false
  1913. for ac_pass in 1 2
  1914. do
  1915. for ac_arg
  1916. do
  1917. case $ac_arg in
  1918. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1919. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1920. | -silent | --silent | --silen | --sile | --sil)
  1921. continue ;;
  1922. *\'*)
  1923. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1924. esac
  1925. case $ac_pass in
  1926. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1927. 2)
  1928. as_fn_append ac_configure_args1 " '$ac_arg'"
  1929. if test $ac_must_keep_next = true; then
  1930. ac_must_keep_next=false # Got value, back to normal.
  1931. else
  1932. case $ac_arg in
  1933. *=* | --config-cache | -C | -disable-* | --disable-* \
  1934. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1935. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1936. | -with-* | --with-* | -without-* | --without-* | --x)
  1937. case "$ac_configure_args0 " in
  1938. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1939. esac
  1940. ;;
  1941. -* ) ac_must_keep_next=true ;;
  1942. esac
  1943. fi
  1944. as_fn_append ac_configure_args " '$ac_arg'"
  1945. ;;
  1946. esac
  1947. done
  1948. done
  1949. { ac_configure_args0=; unset ac_configure_args0;}
  1950. { ac_configure_args1=; unset ac_configure_args1;}
  1951.  
  1952. # When interrupted or exit'd, cleanup temporary files, and complete
  1953. # config.log. We remove comments because anyway the quotes in there
  1954. # would cause problems or look ugly.
  1955. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1956. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1957. trap 'exit_status=$?
  1958. # Save into config.log some information that might help in debugging.
  1959. {
  1960. echo
  1961.  
  1962. $as_echo "## ---------------- ##
  1963. ## Cache variables. ##
  1964. ## ---------------- ##"
  1965. echo
  1966. # The following way of writing the cache mishandles newlines in values,
  1967. (
  1968. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1969. eval ac_val=\$$ac_var
  1970. case $ac_val in #(
  1971. *${as_nl}*)
  1972. case $ac_var in #(
  1973. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1974. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1975. esac
  1976. case $ac_var in #(
  1977. _ | IFS | as_nl) ;; #(
  1978. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1979. *) { eval $ac_var=; unset $ac_var;} ;;
  1980. esac ;;
  1981. esac
  1982. done
  1983. (set) 2>&1 |
  1984. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1985. *${as_nl}ac_space=\ *)
  1986. sed -n \
  1987. "s/'\''/'\''\\\\'\'''\''/g;
  1988. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1989. ;; #(
  1990. *)
  1991. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1992. ;;
  1993. esac |
  1994. sort
  1995. )
  1996. echo
  1997.  
  1998. $as_echo "## ----------------- ##
  1999. ## Output variables. ##
  2000. ## ----------------- ##"
  2001. echo
  2002. for ac_var in $ac_subst_vars
  2003. do
  2004. eval ac_val=\$$ac_var
  2005. case $ac_val in
  2006. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2007. esac
  2008. $as_echo "$ac_var='\''$ac_val'\''"
  2009. done | sort
  2010. echo
  2011.  
  2012. if test -n "$ac_subst_files"; then
  2013. $as_echo "## ------------------- ##
  2014. ## File substitutions. ##
  2015. ## ------------------- ##"
  2016. echo
  2017. for ac_var in $ac_subst_files
  2018. do
  2019. eval ac_val=\$$ac_var
  2020. case $ac_val in
  2021. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2022. esac
  2023. $as_echo "$ac_var='\''$ac_val'\''"
  2024. done | sort
  2025. echo
  2026. fi
  2027.  
  2028. if test -s confdefs.h; then
  2029. $as_echo "## ----------- ##
  2030. ## confdefs.h. ##
  2031. ## ----------- ##"
  2032. echo
  2033. cat confdefs.h
  2034. echo
  2035. fi
  2036. test "$ac_signal" != 0 &&
  2037. $as_echo "$as_me: caught signal $ac_signal"
  2038. $as_echo "$as_me: exit $exit_status"
  2039. } >&5
  2040. rm -f core *.core core.conftest.* &&
  2041. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2042. exit $exit_status
  2043. ' 0
  2044. for ac_signal in 1 2 13 15; do
  2045. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2046. done
  2047. ac_signal=0
  2048.  
  2049. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2050. rm -f -r conftest* confdefs.h
  2051.  
  2052. $as_echo "/* confdefs.h */" > confdefs.h
  2053.  
  2054. # Predefined preprocessor variables.
  2055.  
  2056. cat >>confdefs.h <<_ACEOF
  2057. #define PACKAGE_NAME "$PACKAGE_NAME"
  2058. _ACEOF
  2059.  
  2060. cat >>confdefs.h <<_ACEOF
  2061. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2062. _ACEOF
  2063.  
  2064. cat >>confdefs.h <<_ACEOF
  2065. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2066. _ACEOF
  2067.  
  2068. cat >>confdefs.h <<_ACEOF
  2069. #define PACKAGE_STRING "$PACKAGE_STRING"
  2070. _ACEOF
  2071.  
  2072. cat >>confdefs.h <<_ACEOF
  2073. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2074. _ACEOF
  2075.  
  2076. cat >>confdefs.h <<_ACEOF
  2077. #define PACKAGE_URL "$PACKAGE_URL"
  2078. _ACEOF
  2079.  
  2080.  
  2081. # Let the site file select an alternate cache file if it wants to.
  2082. # Prefer an explicitly selected file to automatically selected ones.
  2083. ac_site_file1=NONE
  2084. ac_site_file2=NONE
  2085. if test -n "$CONFIG_SITE"; then
  2086. # We do not want a PATH search for config.site.
  2087. case $CONFIG_SITE in #((
  2088. -*) ac_site_file1=./$CONFIG_SITE;;
  2089. */*) ac_site_file1=$CONFIG_SITE;;
  2090. *) ac_site_file1=./$CONFIG_SITE;;
  2091. esac
  2092. elif test "x$prefix" != xNONE; then
  2093. ac_site_file1=$prefix/share/config.site
  2094. ac_site_file2=$prefix/etc/config.site
  2095. else
  2096. ac_site_file1=$ac_default_prefix/share/config.site
  2097. ac_site_file2=$ac_default_prefix/etc/config.site
  2098. fi
  2099. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2100. do
  2101. test "x$ac_site_file" = xNONE && continue
  2102. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2104. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2105. sed 's/^/| /' "$ac_site_file" >&5
  2106. . "$ac_site_file" \
  2107. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2108. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2109. as_fn_error $? "failed to load site script $ac_site_file
  2110. See \`config.log' for more details" "$LINENO" 5; }
  2111. fi
  2112. done
  2113.  
  2114. if test -r "$cache_file"; then
  2115. # Some versions of bash will fail to source /dev/null (special files
  2116. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2117. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2119. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2120. case $cache_file in
  2121. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2122. *) . "./$cache_file";;
  2123. esac
  2124. fi
  2125. else
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2127. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2128. >$cache_file
  2129. fi
  2130.  
  2131. # Check that the precious variables saved in the cache have kept the same
  2132. # value.
  2133. ac_cache_corrupted=false
  2134. for ac_var in $ac_precious_vars; do
  2135. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2136. eval ac_new_set=\$ac_env_${ac_var}_set
  2137. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2138. eval ac_new_val=\$ac_env_${ac_var}_value
  2139. case $ac_old_set,$ac_new_set in
  2140. set,)
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2142. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2143. ac_cache_corrupted=: ;;
  2144. ,set)
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2146. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2147. ac_cache_corrupted=: ;;
  2148. ,);;
  2149. *)
  2150. if test "x$ac_old_val" != "x$ac_new_val"; then
  2151. # differences in whitespace do not lead to failure.
  2152. ac_old_val_w=`echo x $ac_old_val`
  2153. ac_new_val_w=`echo x $ac_new_val`
  2154. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2156. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2157. ac_cache_corrupted=:
  2158. else
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2160. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2161. eval $ac_var=\$ac_old_val
  2162. fi
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2164. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2166. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2167. fi;;
  2168. esac
  2169. # Pass precious variables to config.status.
  2170. if test "$ac_new_set" = set; then
  2171. case $ac_new_val in
  2172. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2173. *) ac_arg=$ac_var=$ac_new_val ;;
  2174. esac
  2175. case " $ac_configure_args " in
  2176. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2177. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2178. esac
  2179. fi
  2180. done
  2181. if $ac_cache_corrupted; then
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2183. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2185. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2186. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2187. fi
  2188. ## -------------------- ##
  2189. ## Main body of script. ##
  2190. ## -------------------- ##
  2191.  
  2192. ac_ext=c
  2193. ac_cpp='$CPP $CPPFLAGS'
  2194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2197.  
  2198.  
  2199.  
  2200. #--------------------------------------------------------------------
  2201. # Call TEA_INIT as the first TEA_ macro to set up initial vars.
  2202. # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
  2203. # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
  2204. #--------------------------------------------------------------------
  2205.  
  2206.  
  2207. # TEA extensions pass this us the version of TEA they think they
  2208. # are compatible with.
  2209. TEA_VERSION="3.10"
  2210.  
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct TEA configuration" >&5
  2212. $as_echo_n "checking for correct TEA configuration... " >&6; }
  2213. if test x"${PACKAGE_NAME}" = x ; then
  2214. as_fn_error $? "
  2215. The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5
  2216. fi
  2217. if test x"3.10" = x ; then
  2218. as_fn_error $? "
  2219. TEA version not specified." "$LINENO" 5
  2220. elif test "3.10" != "${TEA_VERSION}" ; then
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: warning: requested TEA version \"3.10\", have \"${TEA_VERSION}\"" >&5
  2222. $as_echo "warning: requested TEA version \"3.10\", have \"${TEA_VERSION}\"" >&6; }
  2223. else
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
  2225. $as_echo "ok (TEA ${TEA_VERSION})" >&6; }
  2226. fi
  2227.  
  2228. # If the user did not set CFLAGS, set it now to keep macros
  2229. # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
  2230. if test "${CFLAGS+set}" != "set" ; then
  2231. CFLAGS=""
  2232. fi
  2233.  
  2234. case "`uname -s`" in
  2235. *win32*|*WIN32*|*MINGW32_*)
  2236. # Extract the first word of "cygpath", so it can be a program name with args.
  2237. set dummy cygpath; ac_word=$2
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2239. $as_echo_n "checking for $ac_word... " >&6; }
  2240. if ${ac_cv_prog_CYGPATH+:} false; then :
  2241. $as_echo_n "(cached) " >&6
  2242. else
  2243. if test -n "$CYGPATH"; then
  2244. ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
  2245. else
  2246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2247. for as_dir in $PATH
  2248. do
  2249. IFS=$as_save_IFS
  2250. test -z "$as_dir" && as_dir=.
  2251. for ac_exec_ext in '' $ac_executable_extensions; do
  2252. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2253. ac_cv_prog_CYGPATH="cygpath -m"
  2254. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2255. break 2
  2256. fi
  2257. done
  2258. done
  2259. IFS=$as_save_IFS
  2260.  
  2261. test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
  2262. fi
  2263. fi
  2264. CYGPATH=$ac_cv_prog_CYGPATH
  2265. if test -n "$CYGPATH"; then
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
  2267. $as_echo "$CYGPATH" >&6; }
  2268. else
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2270. $as_echo "no" >&6; }
  2271. fi
  2272.  
  2273.  
  2274. EXEEXT=".exe"
  2275. TEA_PLATFORM="windows"
  2276. ;;
  2277. *CYGWIN_*)
  2278. EXEEXT=".exe"
  2279. # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG
  2280. ;;
  2281. *)
  2282. CYGPATH=echo
  2283. # Maybe we are cross-compiling....
  2284. case ${host_alias} in
  2285. *mingw32*)
  2286. EXEEXT=".exe"
  2287. TEA_PLATFORM="windows"
  2288. ;;
  2289. *)
  2290. EXEEXT=""
  2291. TEA_PLATFORM="unix"
  2292. ;;
  2293. esac
  2294. ;;
  2295. esac
  2296.  
  2297. # Check if exec_prefix is set. If not use fall back to prefix.
  2298. # Note when adjusted, so that TEA_PREFIX can correct for this.
  2299. # This is needed for recursive configures, since autoconf propagates
  2300. # $prefix, but not $exec_prefix (doh!).
  2301. if test x$exec_prefix = xNONE ; then
  2302. exec_prefix_default=yes
  2303. exec_prefix=$prefix
  2304. fi
  2305.  
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
  2307. $as_echo "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
  2308.  
  2309.  
  2310.  
  2311.  
  2312. # This package name must be replaced statically for AC_SUBST to work
  2313.  
  2314. # Substitute STUB_LIB_FILE in case package creates a stub library too.
  2315.  
  2316.  
  2317. # We AC_SUBST these here to ensure they are subst'ed,
  2318. # in case the user doesn't call TEA_ADD_...
  2319.  
  2320.  
  2321.  
  2322.  
  2323.  
  2324.  
  2325.  
  2326.  
  2327.  
  2328. ac_aux_dir=
  2329. for ac_dir in tclconfig "$srcdir"/tclconfig; do
  2330. if test -f "$ac_dir/install-sh"; then
  2331. ac_aux_dir=$ac_dir
  2332. ac_install_sh="$ac_aux_dir/install-sh -c"
  2333. break
  2334. elif test -f "$ac_dir/install.sh"; then
  2335. ac_aux_dir=$ac_dir
  2336. ac_install_sh="$ac_aux_dir/install.sh -c"
  2337. break
  2338. elif test -f "$ac_dir/shtool"; then
  2339. ac_aux_dir=$ac_dir
  2340. ac_install_sh="$ac_aux_dir/shtool install -c"
  2341. break
  2342. fi
  2343. done
  2344. if test -z "$ac_aux_dir"; then
  2345. as_fn_error $? "cannot find install-sh, install.sh, or shtool in tclconfig \"$srcdir\"/tclconfig" "$LINENO" 5
  2346. fi
  2347.  
  2348. # These three variables are undocumented and unsupported,
  2349. # and are intended to be withdrawn in a future Autoconf release.
  2350. # They can cause serious problems if a builder's source tree is in a directory
  2351. # whose full name contains unusual characters.
  2352. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2353. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2354. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2355.  
  2356.  
  2357.  
  2358. #--------------------------------------------------------------------
  2359. # Load the tclConfig.sh file
  2360. #--------------------------------------------------------------------
  2361.  
  2362.  
  2363.  
  2364. #
  2365. # Ok, lets find the tcl configuration
  2366. # First, look for one uninstalled.
  2367. # the alternative search directory is invoked by --with-tcl
  2368. #
  2369.  
  2370. if test x"${no_tcl}" = x ; then
  2371. # we reset no_tcl in case something fails here
  2372. no_tcl=true
  2373.  
  2374. # Check whether --with-tcl was given.
  2375. if test "${with_tcl+set}" = set; then :
  2376. withval=$with_tcl; with_tclconfig="${withval}"
  2377. fi
  2378.  
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
  2380. $as_echo_n "checking for Tcl configuration... " >&6; }
  2381. if ${ac_cv_c_tclconfig+:} false; then :
  2382. $as_echo_n "(cached) " >&6
  2383. else
  2384.  
  2385.  
  2386. # First check to see if --with-tcl was specified.
  2387. if test x"${with_tclconfig}" != x ; then
  2388. case "${with_tclconfig}" in
  2389. */tclConfig.sh )
  2390. if test -f "${with_tclconfig}"; then
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
  2392. $as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
  2393. with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
  2394. fi ;;
  2395. esac
  2396. if test -f "${with_tclconfig}/tclConfig.sh" ; then
  2397. ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
  2398. else
  2399. as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
  2400. fi
  2401. fi
  2402.  
  2403. # then check for a private Tcl installation
  2404. if test x"${ac_cv_c_tclconfig}" = x ; then
  2405. for i in \
  2406. ../tcl \
  2407. `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  2408. `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
  2409. `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
  2410. ../../tcl \
  2411. `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  2412. `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
  2413. `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
  2414. ../../../tcl \
  2415. `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  2416. `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
  2417. `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
  2418. if test "${TEA_PLATFORM}" = "windows" \
  2419. -a -f "$i/win/tclConfig.sh" ; then
  2420. ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
  2421. break
  2422. fi
  2423. if test -f "$i/unix/tclConfig.sh" ; then
  2424. ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
  2425. break
  2426. fi
  2427. done
  2428. fi
  2429.  
  2430. # on Darwin, check in Framework installation locations
  2431. if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
  2432. for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
  2433. `ls -d /Library/Frameworks 2>/dev/null` \
  2434. `ls -d /Network/Library/Frameworks 2>/dev/null` \
  2435. `ls -d /System/Library/Frameworks 2>/dev/null` \
  2436. ; do
  2437. if test -f "$i/Tcl.framework/tclConfig.sh" ; then
  2438. ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
  2439. break
  2440. fi
  2441. done
  2442. fi
  2443.  
  2444. # TEA specific: on Windows, check in common installation locations
  2445. if test "${TEA_PLATFORM}" = "windows" \
  2446. -a x"${ac_cv_c_tclconfig}" = x ; then
  2447. for i in `ls -d C:/Tcl/lib 2>/dev/null` \
  2448. `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
  2449. ; do
  2450. if test -f "$i/tclConfig.sh" ; then
  2451. ac_cv_c_tclconfig="`(cd $i; pwd)`"
  2452. break
  2453. fi
  2454. done
  2455. fi
  2456.  
  2457. # check in a few common install locations
  2458. if test x"${ac_cv_c_tclconfig}" = x ; then
  2459. for i in `ls -d ${libdir} 2>/dev/null` \
  2460. `ls -d ${exec_prefix}/lib 2>/dev/null` \
  2461. `ls -d ${prefix}/lib 2>/dev/null` \
  2462. `ls -d /usr/contrib/lib 2>/dev/null` \
  2463. `ls -d /usr/local/lib 2>/dev/null` \
  2464. `ls -d /usr/pkg/lib 2>/dev/null` \
  2465. `ls -d /usr/lib 2>/dev/null` \
  2466. `ls -d /usr/lib64 2>/dev/null` \
  2467. `ls -d /usr/lib/tcl8.6 2>/dev/null` \
  2468. `ls -d /usr/lib/tcl8.5 2>/dev/null` \
  2469. ; do
  2470. if test -f "$i/tclConfig.sh" ; then
  2471. ac_cv_c_tclconfig="`(cd $i; pwd)`"
  2472. break
  2473. fi
  2474. done
  2475. fi
  2476.  
  2477. # check in a few other private locations
  2478. if test x"${ac_cv_c_tclconfig}" = x ; then
  2479. for i in \
  2480. ${srcdir}/../tcl \
  2481. `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  2482. `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
  2483. `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
  2484. if test "${TEA_PLATFORM}" = "windows" \
  2485. -a -f "$i/win/tclConfig.sh" ; then
  2486. ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
  2487. break
  2488. fi
  2489. if test -f "$i/unix/tclConfig.sh" ; then
  2490. ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
  2491. break
  2492. fi
  2493. done
  2494. fi
  2495.  
  2496. fi
  2497.  
  2498.  
  2499. if test x"${ac_cv_c_tclconfig}" = x ; then
  2500. TCL_BIN_DIR="# no Tcl configs found"
  2501. as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
  2502. else
  2503. no_tcl=
  2504. TCL_BIN_DIR="${ac_cv_c_tclconfig}"
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
  2506. $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
  2507. fi
  2508. fi
  2509.  
  2510. ac_ext=c
  2511. ac_cpp='$CPP $CPPFLAGS'
  2512. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2513. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2514. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2515. if test -n "$ac_tool_prefix"; then
  2516. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2517. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2519. $as_echo_n "checking for $ac_word... " >&6; }
  2520. if ${ac_cv_prog_CC+:} false; then :
  2521. $as_echo_n "(cached) " >&6
  2522. else
  2523. if test -n "$CC"; then
  2524. ac_cv_prog_CC="$CC" # Let the user override the test.
  2525. else
  2526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2527. for as_dir in $PATH
  2528. do
  2529. IFS=$as_save_IFS
  2530. test -z "$as_dir" && as_dir=.
  2531. for ac_exec_ext in '' $ac_executable_extensions; do
  2532. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2533. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2534. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2535. break 2
  2536. fi
  2537. done
  2538. done
  2539. IFS=$as_save_IFS
  2540.  
  2541. fi
  2542. fi
  2543. CC=$ac_cv_prog_CC
  2544. if test -n "$CC"; then
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2546. $as_echo "$CC" >&6; }
  2547. else
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2549. $as_echo "no" >&6; }
  2550. fi
  2551.  
  2552.  
  2553. fi
  2554. if test -z "$ac_cv_prog_CC"; then
  2555. ac_ct_CC=$CC
  2556. # Extract the first word of "gcc", so it can be a program name with args.
  2557. set dummy gcc; ac_word=$2
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2559. $as_echo_n "checking for $ac_word... " >&6; }
  2560. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2561. $as_echo_n "(cached) " >&6
  2562. else
  2563. if test -n "$ac_ct_CC"; then
  2564. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2565. else
  2566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2567. for as_dir in $PATH
  2568. do
  2569. IFS=$as_save_IFS
  2570. test -z "$as_dir" && as_dir=.
  2571. for ac_exec_ext in '' $ac_executable_extensions; do
  2572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2573. ac_cv_prog_ac_ct_CC="gcc"
  2574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2575. break 2
  2576. fi
  2577. done
  2578. done
  2579. IFS=$as_save_IFS
  2580.  
  2581. fi
  2582. fi
  2583. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2584. if test -n "$ac_ct_CC"; then
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2586. $as_echo "$ac_ct_CC" >&6; }
  2587. else
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2589. $as_echo "no" >&6; }
  2590. fi
  2591.  
  2592. if test "x$ac_ct_CC" = x; then
  2593. CC=""
  2594. else
  2595. case $cross_compiling:$ac_tool_warned in
  2596. yes:)
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2598. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2599. ac_tool_warned=yes ;;
  2600. esac
  2601. CC=$ac_ct_CC
  2602. fi
  2603. else
  2604. CC="$ac_cv_prog_CC"
  2605. fi
  2606.  
  2607. if test -z "$CC"; then
  2608. if test -n "$ac_tool_prefix"; then
  2609. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2610. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2612. $as_echo_n "checking for $ac_word... " >&6; }
  2613. if ${ac_cv_prog_CC+:} false; then :
  2614. $as_echo_n "(cached) " >&6
  2615. else
  2616. if test -n "$CC"; then
  2617. ac_cv_prog_CC="$CC" # Let the user override the test.
  2618. else
  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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2626. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2628. break 2
  2629. fi
  2630. done
  2631. done
  2632. IFS=$as_save_IFS
  2633.  
  2634. fi
  2635. fi
  2636. CC=$ac_cv_prog_CC
  2637. if test -n "$CC"; then
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2639. $as_echo "$CC" >&6; }
  2640. else
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2642. $as_echo "no" >&6; }
  2643. fi
  2644.  
  2645.  
  2646. fi
  2647. fi
  2648. if test -z "$CC"; then
  2649. # Extract the first word of "cc", so it can be a program name with args.
  2650. set dummy cc; ac_word=$2
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2652. $as_echo_n "checking for $ac_word... " >&6; }
  2653. if ${ac_cv_prog_CC+:} false; then :
  2654. $as_echo_n "(cached) " >&6
  2655. else
  2656. if test -n "$CC"; then
  2657. ac_cv_prog_CC="$CC" # Let the user override the test.
  2658. else
  2659. ac_prog_rejected=no
  2660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2661. for as_dir in $PATH
  2662. do
  2663. IFS=$as_save_IFS
  2664. test -z "$as_dir" && as_dir=.
  2665. for ac_exec_ext in '' $ac_executable_extensions; do
  2666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2667. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2668. ac_prog_rejected=yes
  2669. continue
  2670. fi
  2671. ac_cv_prog_CC="cc"
  2672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2673. break 2
  2674. fi
  2675. done
  2676. done
  2677. IFS=$as_save_IFS
  2678.  
  2679. if test $ac_prog_rejected = yes; then
  2680. # We found a bogon in the path, so make sure we never use it.
  2681. set dummy $ac_cv_prog_CC
  2682. shift
  2683. if test $# != 0; then
  2684. # We chose a different compiler from the bogus one.
  2685. # However, it has the same basename, so the bogon will be chosen
  2686. # first if we set CC to just the basename; use the full file name.
  2687. shift
  2688. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2689. fi
  2690. fi
  2691. fi
  2692. fi
  2693. CC=$ac_cv_prog_CC
  2694. if test -n "$CC"; then
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2696. $as_echo "$CC" >&6; }
  2697. else
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2699. $as_echo "no" >&6; }
  2700. fi
  2701.  
  2702.  
  2703. fi
  2704. if test -z "$CC"; then
  2705. if test -n "$ac_tool_prefix"; then
  2706. for ac_prog in cl.exe
  2707. do
  2708. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2709. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2711. $as_echo_n "checking for $ac_word... " >&6; }
  2712. if ${ac_cv_prog_CC+:} false; then :
  2713. $as_echo_n "(cached) " >&6
  2714. else
  2715. if test -n "$CC"; then
  2716. ac_cv_prog_CC="$CC" # Let the user override the test.
  2717. else
  2718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2719. for as_dir in $PATH
  2720. do
  2721. IFS=$as_save_IFS
  2722. test -z "$as_dir" && as_dir=.
  2723. for ac_exec_ext in '' $ac_executable_extensions; do
  2724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2725. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2727. break 2
  2728. fi
  2729. done
  2730. done
  2731. IFS=$as_save_IFS
  2732.  
  2733. fi
  2734. fi
  2735. CC=$ac_cv_prog_CC
  2736. if test -n "$CC"; then
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2738. $as_echo "$CC" >&6; }
  2739. else
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2741. $as_echo "no" >&6; }
  2742. fi
  2743.  
  2744.  
  2745. test -n "$CC" && break
  2746. done
  2747. fi
  2748. if test -z "$CC"; then
  2749. ac_ct_CC=$CC
  2750. for ac_prog in cl.exe
  2751. do
  2752. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2753. set dummy $ac_prog; ac_word=$2
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2755. $as_echo_n "checking for $ac_word... " >&6; }
  2756. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2757. $as_echo_n "(cached) " >&6
  2758. else
  2759. if test -n "$ac_ct_CC"; then
  2760. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2761. else
  2762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2763. for as_dir in $PATH
  2764. do
  2765. IFS=$as_save_IFS
  2766. test -z "$as_dir" && as_dir=.
  2767. for ac_exec_ext in '' $ac_executable_extensions; do
  2768. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2769. ac_cv_prog_ac_ct_CC="$ac_prog"
  2770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2771. break 2
  2772. fi
  2773. done
  2774. done
  2775. IFS=$as_save_IFS
  2776.  
  2777. fi
  2778. fi
  2779. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2780. if test -n "$ac_ct_CC"; then
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2782. $as_echo "$ac_ct_CC" >&6; }
  2783. else
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2785. $as_echo "no" >&6; }
  2786. fi
  2787.  
  2788.  
  2789. test -n "$ac_ct_CC" && break
  2790. done
  2791.  
  2792. if test "x$ac_ct_CC" = x; then
  2793. CC=""
  2794. else
  2795. case $cross_compiling:$ac_tool_warned in
  2796. yes:)
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2798. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2799. ac_tool_warned=yes ;;
  2800. esac
  2801. CC=$ac_ct_CC
  2802. fi
  2803. fi
  2804.  
  2805. fi
  2806.  
  2807.  
  2808. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2809. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2810. as_fn_error $? "no acceptable C compiler found in \$PATH
  2811. See \`config.log' for more details" "$LINENO" 5; }
  2812.  
  2813. # Provide some information about the compiler.
  2814. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2815. set X $ac_compile
  2816. ac_compiler=$2
  2817. for ac_option in --version -v -V -qversion; do
  2818. { { ac_try="$ac_compiler $ac_option >&5"
  2819. case "(($ac_try" in
  2820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2821. *) ac_try_echo=$ac_try;;
  2822. esac
  2823. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2824. $as_echo "$ac_try_echo"; } >&5
  2825. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2826. ac_status=$?
  2827. if test -s conftest.err; then
  2828. sed '10a\
  2829. ... rest of stderr output deleted ...
  2830. 10q' conftest.err >conftest.er1
  2831. cat conftest.er1 >&5
  2832. fi
  2833. rm -f conftest.er1 conftest.err
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2835. test $ac_status = 0; }
  2836. done
  2837.  
  2838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2839. /* end confdefs.h. */
  2840.  
  2841. int
  2842. main ()
  2843. {
  2844.  
  2845. ;
  2846. return 0;
  2847. }
  2848. _ACEOF
  2849. ac_clean_files_save=$ac_clean_files
  2850. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2851. # Try to create an executable without -o first, disregard a.out.
  2852. # It will help us diagnose broken compilers, and finding out an intuition
  2853. # of exeext.
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2855. $as_echo_n "checking whether the C compiler works... " >&6; }
  2856. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2857.  
  2858. # The possible output files:
  2859. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2860.  
  2861. ac_rmfiles=
  2862. for ac_file in $ac_files
  2863. do
  2864. case $ac_file in
  2865. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2866. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2867. esac
  2868. done
  2869. rm -f $ac_rmfiles
  2870.  
  2871. if { { ac_try="$ac_link_default"
  2872. case "(($ac_try" in
  2873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2874. *) ac_try_echo=$ac_try;;
  2875. esac
  2876. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2877. $as_echo "$ac_try_echo"; } >&5
  2878. (eval "$ac_link_default") 2>&5
  2879. ac_status=$?
  2880. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2881. test $ac_status = 0; }; then :
  2882. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2883. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2884. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2885. # so that the user can short-circuit this test for compilers unknown to
  2886. # Autoconf.
  2887. for ac_file in $ac_files ''
  2888. do
  2889. test -f "$ac_file" || continue
  2890. case $ac_file in
  2891. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2892. ;;
  2893. [ab].out )
  2894. # We found the default executable, but exeext='' is most
  2895. # certainly right.
  2896. break;;
  2897. *.* )
  2898. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2899. then :; else
  2900. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2901. fi
  2902. # We set ac_cv_exeext here because the later test for it is not
  2903. # safe: cross compilers may not add the suffix if given an `-o'
  2904. # argument, so we may need to know it at that point already.
  2905. # Even if this section looks crufty: it has the advantage of
  2906. # actually working.
  2907. break;;
  2908. * )
  2909. break;;
  2910. esac
  2911. done
  2912. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2913.  
  2914. else
  2915. ac_file=''
  2916. fi
  2917. if test -z "$ac_file"; then :
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2919. $as_echo "no" >&6; }
  2920. $as_echo "$as_me: failed program was:" >&5
  2921. sed 's/^/| /' conftest.$ac_ext >&5
  2922.  
  2923. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2924. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2925. as_fn_error 77 "C compiler cannot create executables
  2926. See \`config.log' for more details" "$LINENO" 5; }
  2927. else
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2929. $as_echo "yes" >&6; }
  2930. fi
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2932. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2934. $as_echo "$ac_file" >&6; }
  2935. ac_exeext=$ac_cv_exeext
  2936.  
  2937. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2938. ac_clean_files=$ac_clean_files_save
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2940. $as_echo_n "checking for suffix of executables... " >&6; }
  2941. if { { ac_try="$ac_link"
  2942. case "(($ac_try" in
  2943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2944. *) ac_try_echo=$ac_try;;
  2945. esac
  2946. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2947. $as_echo "$ac_try_echo"; } >&5
  2948. (eval "$ac_link") 2>&5
  2949. ac_status=$?
  2950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2951. test $ac_status = 0; }; then :
  2952. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2953. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2954. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2955. # `rm'.
  2956. for ac_file in conftest.exe conftest conftest.*; do
  2957. test -f "$ac_file" || continue
  2958. case $ac_file in
  2959. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2960. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2961. break;;
  2962. * ) break;;
  2963. esac
  2964. done
  2965. else
  2966. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2967. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2968. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2969. See \`config.log' for more details" "$LINENO" 5; }
  2970. fi
  2971. rm -f conftest conftest$ac_cv_exeext
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2973. $as_echo "$ac_cv_exeext" >&6; }
  2974.  
  2975. rm -f conftest.$ac_ext
  2976. EXEEXT=$ac_cv_exeext
  2977. ac_exeext=$EXEEXT
  2978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2979. /* end confdefs.h. */
  2980. #include <stdio.h>
  2981. int
  2982. main ()
  2983. {
  2984. FILE *f = fopen ("conftest.out", "w");
  2985. return ferror (f) || fclose (f) != 0;
  2986.  
  2987. ;
  2988. return 0;
  2989. }
  2990. _ACEOF
  2991. ac_clean_files="$ac_clean_files conftest.out"
  2992. # Check that the compiler produces executables we can run. If not, either
  2993. # the compiler is broken, or we cross compile.
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2995. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2996. if test "$cross_compiling" != yes; then
  2997. { { ac_try="$ac_link"
  2998. case "(($ac_try" in
  2999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3000. *) ac_try_echo=$ac_try;;
  3001. esac
  3002. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3003. $as_echo "$ac_try_echo"; } >&5
  3004. (eval "$ac_link") 2>&5
  3005. ac_status=$?
  3006. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3007. test $ac_status = 0; }
  3008. if { ac_try='./conftest$ac_cv_exeext'
  3009. { { case "(($ac_try" in
  3010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3011. *) ac_try_echo=$ac_try;;
  3012. esac
  3013. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3014. $as_echo "$ac_try_echo"; } >&5
  3015. (eval "$ac_try") 2>&5
  3016. ac_status=$?
  3017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3018. test $ac_status = 0; }; }; then
  3019. cross_compiling=no
  3020. else
  3021. if test "$cross_compiling" = maybe; then
  3022. cross_compiling=yes
  3023. else
  3024. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3025. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3026. as_fn_error $? "cannot run C compiled programs.
  3027. If you meant to cross compile, use \`--host'.
  3028. See \`config.log' for more details" "$LINENO" 5; }
  3029. fi
  3030. fi
  3031. fi
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3033. $as_echo "$cross_compiling" >&6; }
  3034.  
  3035. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3036. ac_clean_files=$ac_clean_files_save
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3038. $as_echo_n "checking for suffix of object files... " >&6; }
  3039. if ${ac_cv_objext+:} false; then :
  3040. $as_echo_n "(cached) " >&6
  3041. else
  3042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3043. /* end confdefs.h. */
  3044.  
  3045. int
  3046. main ()
  3047. {
  3048.  
  3049. ;
  3050. return 0;
  3051. }
  3052. _ACEOF
  3053. rm -f conftest.o conftest.obj
  3054. if { { ac_try="$ac_compile"
  3055. case "(($ac_try" in
  3056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3057. *) ac_try_echo=$ac_try;;
  3058. esac
  3059. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3060. $as_echo "$ac_try_echo"; } >&5
  3061. (eval "$ac_compile") 2>&5
  3062. ac_status=$?
  3063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3064. test $ac_status = 0; }; then :
  3065. for ac_file in conftest.o conftest.obj conftest.*; do
  3066. test -f "$ac_file" || continue;
  3067. case $ac_file in
  3068. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3069. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3070. break;;
  3071. esac
  3072. done
  3073. else
  3074. $as_echo "$as_me: failed program was:" >&5
  3075. sed 's/^/| /' conftest.$ac_ext >&5
  3076.  
  3077. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3078. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3079. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3080. See \`config.log' for more details" "$LINENO" 5; }
  3081. fi
  3082. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3083. fi
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3085. $as_echo "$ac_cv_objext" >&6; }
  3086. OBJEXT=$ac_cv_objext
  3087. ac_objext=$OBJEXT
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3089. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3090. if ${ac_cv_c_compiler_gnu+:} false; then :
  3091. $as_echo_n "(cached) " >&6
  3092. else
  3093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3094. /* end confdefs.h. */
  3095.  
  3096. int
  3097. main ()
  3098. {
  3099. #ifndef __GNUC__
  3100. choke me
  3101. #endif
  3102.  
  3103. ;
  3104. return 0;
  3105. }
  3106. _ACEOF
  3107. if ac_fn_c_try_compile "$LINENO"; then :
  3108. ac_compiler_gnu=yes
  3109. else
  3110. ac_compiler_gnu=no
  3111. fi
  3112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3113. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3114.  
  3115. fi
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3117. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3118. if test $ac_compiler_gnu = yes; then
  3119. GCC=yes
  3120. else
  3121. GCC=
  3122. fi
  3123. ac_test_CFLAGS=${CFLAGS+set}
  3124. ac_save_CFLAGS=$CFLAGS
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3126. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3127. if ${ac_cv_prog_cc_g+:} false; then :
  3128. $as_echo_n "(cached) " >&6
  3129. else
  3130. ac_save_c_werror_flag=$ac_c_werror_flag
  3131. ac_c_werror_flag=yes
  3132. ac_cv_prog_cc_g=no
  3133. CFLAGS="-g"
  3134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3135. /* end confdefs.h. */
  3136.  
  3137. int
  3138. main ()
  3139. {
  3140.  
  3141. ;
  3142. return 0;
  3143. }
  3144. _ACEOF
  3145. if ac_fn_c_try_compile "$LINENO"; then :
  3146. ac_cv_prog_cc_g=yes
  3147. else
  3148. CFLAGS=""
  3149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3150. /* end confdefs.h. */
  3151.  
  3152. int
  3153. main ()
  3154. {
  3155.  
  3156. ;
  3157. return 0;
  3158. }
  3159. _ACEOF
  3160. if ac_fn_c_try_compile "$LINENO"; then :
  3161.  
  3162. else
  3163. ac_c_werror_flag=$ac_save_c_werror_flag
  3164. CFLAGS="-g"
  3165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3166. /* end confdefs.h. */
  3167.  
  3168. int
  3169. main ()
  3170. {
  3171.  
  3172. ;
  3173. return 0;
  3174. }
  3175. _ACEOF
  3176. if ac_fn_c_try_compile "$LINENO"; then :
  3177. ac_cv_prog_cc_g=yes
  3178. fi
  3179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3180. fi
  3181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3182. fi
  3183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3184. ac_c_werror_flag=$ac_save_c_werror_flag
  3185. fi
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3187. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3188. if test "$ac_test_CFLAGS" = set; then
  3189. CFLAGS=$ac_save_CFLAGS
  3190. elif test $ac_cv_prog_cc_g = yes; then
  3191. if test "$GCC" = yes; then
  3192. CFLAGS="-g -O2"
  3193. else
  3194. CFLAGS="-g"
  3195. fi
  3196. else
  3197. if test "$GCC" = yes; then
  3198. CFLAGS="-O2"
  3199. else
  3200. CFLAGS=
  3201. fi
  3202. fi
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3204. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3205. if ${ac_cv_prog_cc_c89+:} false; then :
  3206. $as_echo_n "(cached) " >&6
  3207. else
  3208. ac_cv_prog_cc_c89=no
  3209. ac_save_CC=$CC
  3210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3211. /* end confdefs.h. */
  3212. #include <stdarg.h>
  3213. #include <stdio.h>
  3214. struct stat;
  3215. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3216. struct buf { int x; };
  3217. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3218. static char *e (p, i)
  3219. char **p;
  3220. int i;
  3221. {
  3222. return p[i];
  3223. }
  3224. static char *f (char * (*g) (char **, int), char **p, ...)
  3225. {
  3226. char *s;
  3227. va_list v;
  3228. va_start (v,p);
  3229. s = g (p, va_arg (v,int));
  3230. va_end (v);
  3231. return s;
  3232. }
  3233.  
  3234. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3235. function prototypes and stuff, but not '\xHH' hex character constants.
  3236. These don't provoke an error unfortunately, instead are silently treated
  3237. as 'x'. The following induces an error, until -std is added to get
  3238. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3239. array size at least. It's necessary to write '\x00'==0 to get something
  3240. that's true only with -std. */
  3241. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3242.  
  3243. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3244. inside strings and character constants. */
  3245. #define FOO(x) 'x'
  3246. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3247.  
  3248. int test (int i, double x);
  3249. struct s1 {int (*f) (int a);};
  3250. struct s2 {int (*f) (double a);};
  3251. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3252. int argc;
  3253. char **argv;
  3254. int
  3255. main ()
  3256. {
  3257. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3258. ;
  3259. return 0;
  3260. }
  3261. _ACEOF
  3262. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3263. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3264. do
  3265. CC="$ac_save_CC $ac_arg"
  3266. if ac_fn_c_try_compile "$LINENO"; then :
  3267. ac_cv_prog_cc_c89=$ac_arg
  3268. fi
  3269. rm -f core conftest.err conftest.$ac_objext
  3270. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3271. done
  3272. rm -f conftest.$ac_ext
  3273. CC=$ac_save_CC
  3274.  
  3275. fi
  3276. # AC_CACHE_VAL
  3277. case "x$ac_cv_prog_cc_c89" in
  3278. x)
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3280. $as_echo "none needed" >&6; } ;;
  3281. xno)
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3283. $as_echo "unsupported" >&6; } ;;
  3284. *)
  3285. CC="$CC $ac_cv_prog_cc_c89"
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3287. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3288. esac
  3289. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3290.  
  3291. fi
  3292.  
  3293. ac_ext=c
  3294. ac_cpp='$CPP $CPPFLAGS'
  3295. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3296. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3297. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3298.  
  3299.  
  3300.  
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
  3302. $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
  3303.  
  3304. if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
  3306. $as_echo "loading" >&6; }
  3307. . "${TCL_BIN_DIR}/tclConfig.sh"
  3308. else
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
  3310. $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
  3311. fi
  3312.  
  3313. # eval is required to do the TCL_DBGX substitution
  3314. eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
  3315. eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
  3316.  
  3317. # If the TCL_BIN_DIR is the build directory (not the install directory),
  3318. # then set the common variable name to the value of the build variables.
  3319. # For example, the variable TCL_LIB_SPEC will be set to the value
  3320. # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
  3321. # instead of TCL_BUILD_LIB_SPEC since it will work with both an
  3322. # installed and uninstalled version of Tcl.
  3323. if test -f "${TCL_BIN_DIR}/Makefile" ; then
  3324. TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
  3325. TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
  3326. TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
  3327. elif test "`uname -s`" = "Darwin"; then
  3328. # If Tcl was built as a framework, attempt to use the libraries
  3329. # from the framework at the given location so that linking works
  3330. # against Tcl.framework installed in an arbitrary location.
  3331. case ${TCL_DEFS} in
  3332. *TCL_FRAMEWORK*)
  3333. if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
  3334. for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
  3335. "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
  3336. if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
  3337. TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
  3338. break
  3339. fi
  3340. done
  3341. fi
  3342. if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
  3343. TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
  3344. TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
  3345. fi
  3346. ;;
  3347. esac
  3348. fi
  3349.  
  3350. # eval is required to do the TCL_DBGX substitution
  3351. eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
  3352. eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
  3353. eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
  3354. eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362.  
  3363.  
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking platform" >&5
  3370. $as_echo_n "checking platform... " >&6; }
  3371. hold_cc=$CC; CC="$TCL_CC"
  3372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3373. /* end confdefs.h. */
  3374.  
  3375. int
  3376. main ()
  3377. {
  3378.  
  3379. #ifdef _WIN32
  3380. #error win32
  3381. #endif
  3382.  
  3383. ;
  3384. return 0;
  3385. }
  3386. _ACEOF
  3387. if ac_fn_c_try_compile "$LINENO"; then :
  3388.  
  3389. TEA_PLATFORM="unix"
  3390. CYGPATH=echo
  3391.  
  3392. else
  3393.  
  3394. TEA_PLATFORM="windows"
  3395. # Extract the first word of "cygpath", so it can be a program name with args.
  3396. set dummy cygpath; ac_word=$2
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3398. $as_echo_n "checking for $ac_word... " >&6; }
  3399. if ${ac_cv_prog_CYGPATH+:} false; then :
  3400. $as_echo_n "(cached) " >&6
  3401. else
  3402. if test -n "$CYGPATH"; then
  3403. ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
  3404. else
  3405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3406. for as_dir in $PATH
  3407. do
  3408. IFS=$as_save_IFS
  3409. test -z "$as_dir" && as_dir=.
  3410. for ac_exec_ext in '' $ac_executable_extensions; do
  3411. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3412. ac_cv_prog_CYGPATH="cygpath -m"
  3413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3414. break 2
  3415. fi
  3416. done
  3417. done
  3418. IFS=$as_save_IFS
  3419.  
  3420. test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
  3421. fi
  3422. fi
  3423. CYGPATH=$ac_cv_prog_CYGPATH
  3424. if test -n "$CYGPATH"; then
  3425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
  3426. $as_echo "$CYGPATH" >&6; }
  3427. else
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3429. $as_echo "no" >&6; }
  3430. fi
  3431.  
  3432.  
  3433.  
  3434. fi
  3435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3436. CC=$hold_cc
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
  3438. $as_echo "$TEA_PLATFORM" >&6; }
  3439.  
  3440. # The BUILD_$pkg is to define the correct extern storage class
  3441. # handling when making this package
  3442.  
  3443. cat >>confdefs.h <<_ACEOF
  3444. #define BUILD_${PACKAGE_NAME} /**/
  3445. _ACEOF
  3446.  
  3447. # Do this here as we have fully defined TEA_PLATFORM now
  3448. if test "${TEA_PLATFORM}" = "windows" ; then
  3449. EXEEXT=".exe"
  3450. CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
  3451. fi
  3452.  
  3453. # TEA specific:
  3454.  
  3455.  
  3456.  
  3457.  
  3458.  
  3459.  
  3460.  
  3461.  
  3462. #--------------------------------------------------------------------
  3463. # Load the tkConfig.sh file if necessary (Tk extension)
  3464. #--------------------------------------------------------------------
  3465.  
  3466. #TEA_PATH_TKCONFIG
  3467. #TEA_LOAD_TKCONFIG
  3468.  
  3469. #-----------------------------------------------------------------------
  3470. # Handle the --prefix=... option by defaulting to what Tcl gave.
  3471. # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
  3472. #-----------------------------------------------------------------------
  3473.  
  3474.  
  3475. if test "${prefix}" = "NONE"; then
  3476. prefix_default=yes
  3477. if test x"${TCL_PREFIX}" != x; then
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
  3479. $as_echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
  3480. prefix=${TCL_PREFIX}
  3481. else
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
  3483. $as_echo "$as_me: --prefix defaulting to /usr/local" >&6;}
  3484. prefix=/usr/local
  3485. fi
  3486. fi
  3487. if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
  3488. -o x"${exec_prefix_default}" = x"yes" ; then
  3489. if test x"${TCL_EXEC_PREFIX}" != x; then
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
  3491. $as_echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
  3492. exec_prefix=${TCL_EXEC_PREFIX}
  3493. else
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
  3495. $as_echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
  3496. exec_prefix=$prefix
  3497. fi
  3498. fi
  3499.  
  3500.  
  3501. #-----------------------------------------------------------------------
  3502. # Standard compiler checks.
  3503. # This sets up CC by using the CC env var, or looks for gcc otherwise.
  3504. # This also calls AC_PROG_CC and a few others to create the basic setup
  3505. # necessary to compile executables.
  3506. #-----------------------------------------------------------------------
  3507.  
  3508.  
  3509. # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
  3510. # in this macro, they need to go into TEA_SETUP_COMPILER instead.
  3511.  
  3512. ac_ext=c
  3513. ac_cpp='$CPP $CPPFLAGS'
  3514. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3515. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3516. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3517. if test -n "$ac_tool_prefix"; then
  3518. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3519. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3521. $as_echo_n "checking for $ac_word... " >&6; }
  3522. if ${ac_cv_prog_CC+:} false; then :
  3523. $as_echo_n "(cached) " >&6
  3524. else
  3525. if test -n "$CC"; then
  3526. ac_cv_prog_CC="$CC" # Let the user override the test.
  3527. else
  3528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3529. for as_dir in $PATH
  3530. do
  3531. IFS=$as_save_IFS
  3532. test -z "$as_dir" && as_dir=.
  3533. for ac_exec_ext in '' $ac_executable_extensions; do
  3534. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3535. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3536. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3537. break 2
  3538. fi
  3539. done
  3540. done
  3541. IFS=$as_save_IFS
  3542.  
  3543. fi
  3544. fi
  3545. CC=$ac_cv_prog_CC
  3546. if test -n "$CC"; then
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3548. $as_echo "$CC" >&6; }
  3549. else
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3551. $as_echo "no" >&6; }
  3552. fi
  3553.  
  3554.  
  3555. fi
  3556. if test -z "$ac_cv_prog_CC"; then
  3557. ac_ct_CC=$CC
  3558. # Extract the first word of "gcc", so it can be a program name with args.
  3559. set dummy gcc; ac_word=$2
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3561. $as_echo_n "checking for $ac_word... " >&6; }
  3562. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3563. $as_echo_n "(cached) " >&6
  3564. else
  3565. if test -n "$ac_ct_CC"; then
  3566. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3567. else
  3568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3569. for as_dir in $PATH
  3570. do
  3571. IFS=$as_save_IFS
  3572. test -z "$as_dir" && as_dir=.
  3573. for ac_exec_ext in '' $ac_executable_extensions; do
  3574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3575. ac_cv_prog_ac_ct_CC="gcc"
  3576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3577. break 2
  3578. fi
  3579. done
  3580. done
  3581. IFS=$as_save_IFS
  3582.  
  3583. fi
  3584. fi
  3585. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3586. if test -n "$ac_ct_CC"; then
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3588. $as_echo "$ac_ct_CC" >&6; }
  3589. else
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3591. $as_echo "no" >&6; }
  3592. fi
  3593.  
  3594. if test "x$ac_ct_CC" = x; then
  3595. CC=""
  3596. else
  3597. case $cross_compiling:$ac_tool_warned in
  3598. yes:)
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3600. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3601. ac_tool_warned=yes ;;
  3602. esac
  3603. CC=$ac_ct_CC
  3604. fi
  3605. else
  3606. CC="$ac_cv_prog_CC"
  3607. fi
  3608.  
  3609. if test -z "$CC"; then
  3610. if test -n "$ac_tool_prefix"; then
  3611. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3612. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3614. $as_echo_n "checking for $ac_word... " >&6; }
  3615. if ${ac_cv_prog_CC+:} false; then :
  3616. $as_echo_n "(cached) " >&6
  3617. else
  3618. if test -n "$CC"; then
  3619. ac_cv_prog_CC="$CC" # Let the user override the test.
  3620. else
  3621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3622. for as_dir in $PATH
  3623. do
  3624. IFS=$as_save_IFS
  3625. test -z "$as_dir" && as_dir=.
  3626. for ac_exec_ext in '' $ac_executable_extensions; do
  3627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3628. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3630. break 2
  3631. fi
  3632. done
  3633. done
  3634. IFS=$as_save_IFS
  3635.  
  3636. fi
  3637. fi
  3638. CC=$ac_cv_prog_CC
  3639. if test -n "$CC"; then
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3641. $as_echo "$CC" >&6; }
  3642. else
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3644. $as_echo "no" >&6; }
  3645. fi
  3646.  
  3647.  
  3648. fi
  3649. fi
  3650. if test -z "$CC"; then
  3651. # Extract the first word of "cc", so it can be a program name with args.
  3652. set dummy cc; ac_word=$2
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3654. $as_echo_n "checking for $ac_word... " >&6; }
  3655. if ${ac_cv_prog_CC+:} false; then :
  3656. $as_echo_n "(cached) " >&6
  3657. else
  3658. if test -n "$CC"; then
  3659. ac_cv_prog_CC="$CC" # Let the user override the test.
  3660. else
  3661. ac_prog_rejected=no
  3662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3663. for as_dir in $PATH
  3664. do
  3665. IFS=$as_save_IFS
  3666. test -z "$as_dir" && as_dir=.
  3667. for ac_exec_ext in '' $ac_executable_extensions; do
  3668. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3669. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3670. ac_prog_rejected=yes
  3671. continue
  3672. fi
  3673. ac_cv_prog_CC="cc"
  3674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3675. break 2
  3676. fi
  3677. done
  3678. done
  3679. IFS=$as_save_IFS
  3680.  
  3681. if test $ac_prog_rejected = yes; then
  3682. # We found a bogon in the path, so make sure we never use it.
  3683. set dummy $ac_cv_prog_CC
  3684. shift
  3685. if test $# != 0; then
  3686. # We chose a different compiler from the bogus one.
  3687. # However, it has the same basename, so the bogon will be chosen
  3688. # first if we set CC to just the basename; use the full file name.
  3689. shift
  3690. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3691. fi
  3692. fi
  3693. fi
  3694. fi
  3695. CC=$ac_cv_prog_CC
  3696. if test -n "$CC"; then
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3698. $as_echo "$CC" >&6; }
  3699. else
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3701. $as_echo "no" >&6; }
  3702. fi
  3703.  
  3704.  
  3705. fi
  3706. if test -z "$CC"; then
  3707. if test -n "$ac_tool_prefix"; then
  3708. for ac_prog in cl.exe
  3709. do
  3710. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3711. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3713. $as_echo_n "checking for $ac_word... " >&6; }
  3714. if ${ac_cv_prog_CC+:} false; then :
  3715. $as_echo_n "(cached) " >&6
  3716. else
  3717. if test -n "$CC"; then
  3718. ac_cv_prog_CC="$CC" # Let the user override the test.
  3719. else
  3720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3721. for as_dir in $PATH
  3722. do
  3723. IFS=$as_save_IFS
  3724. test -z "$as_dir" && as_dir=.
  3725. for ac_exec_ext in '' $ac_executable_extensions; do
  3726. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3727. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3729. break 2
  3730. fi
  3731. done
  3732. done
  3733. IFS=$as_save_IFS
  3734.  
  3735. fi
  3736. fi
  3737. CC=$ac_cv_prog_CC
  3738. if test -n "$CC"; then
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3740. $as_echo "$CC" >&6; }
  3741. else
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3743. $as_echo "no" >&6; }
  3744. fi
  3745.  
  3746.  
  3747. test -n "$CC" && break
  3748. done
  3749. fi
  3750. if test -z "$CC"; then
  3751. ac_ct_CC=$CC
  3752. for ac_prog in cl.exe
  3753. do
  3754. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3755. set dummy $ac_prog; ac_word=$2
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3757. $as_echo_n "checking for $ac_word... " >&6; }
  3758. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3759. $as_echo_n "(cached) " >&6
  3760. else
  3761. if test -n "$ac_ct_CC"; then
  3762. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3763. else
  3764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3765. for as_dir in $PATH
  3766. do
  3767. IFS=$as_save_IFS
  3768. test -z "$as_dir" && as_dir=.
  3769. for ac_exec_ext in '' $ac_executable_extensions; do
  3770. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3771. ac_cv_prog_ac_ct_CC="$ac_prog"
  3772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3773. break 2
  3774. fi
  3775. done
  3776. done
  3777. IFS=$as_save_IFS
  3778.  
  3779. fi
  3780. fi
  3781. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3782. if test -n "$ac_ct_CC"; then
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3784. $as_echo "$ac_ct_CC" >&6; }
  3785. else
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3787. $as_echo "no" >&6; }
  3788. fi
  3789.  
  3790.  
  3791. test -n "$ac_ct_CC" && break
  3792. done
  3793.  
  3794. if test "x$ac_ct_CC" = x; then
  3795. CC=""
  3796. else
  3797. case $cross_compiling:$ac_tool_warned in
  3798. yes:)
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3800. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3801. ac_tool_warned=yes ;;
  3802. esac
  3803. CC=$ac_ct_CC
  3804. fi
  3805. fi
  3806.  
  3807. fi
  3808.  
  3809.  
  3810. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3811. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3812. as_fn_error $? "no acceptable C compiler found in \$PATH
  3813. See \`config.log' for more details" "$LINENO" 5; }
  3814.  
  3815. # Provide some information about the compiler.
  3816. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3817. set X $ac_compile
  3818. ac_compiler=$2
  3819. for ac_option in --version -v -V -qversion; do
  3820. { { ac_try="$ac_compiler $ac_option >&5"
  3821. case "(($ac_try" in
  3822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3823. *) ac_try_echo=$ac_try;;
  3824. esac
  3825. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3826. $as_echo "$ac_try_echo"; } >&5
  3827. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3828. ac_status=$?
  3829. if test -s conftest.err; then
  3830. sed '10a\
  3831. ... rest of stderr output deleted ...
  3832. 10q' conftest.err >conftest.er1
  3833. cat conftest.er1 >&5
  3834. fi
  3835. rm -f conftest.er1 conftest.err
  3836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3837. test $ac_status = 0; }
  3838. done
  3839.  
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3841. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3842. if ${ac_cv_c_compiler_gnu+:} false; then :
  3843. $as_echo_n "(cached) " >&6
  3844. else
  3845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3846. /* end confdefs.h. */
  3847.  
  3848. int
  3849. main ()
  3850. {
  3851. #ifndef __GNUC__
  3852. choke me
  3853. #endif
  3854.  
  3855. ;
  3856. return 0;
  3857. }
  3858. _ACEOF
  3859. if ac_fn_c_try_compile "$LINENO"; then :
  3860. ac_compiler_gnu=yes
  3861. else
  3862. ac_compiler_gnu=no
  3863. fi
  3864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3865. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3866.  
  3867. fi
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3869. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3870. if test $ac_compiler_gnu = yes; then
  3871. GCC=yes
  3872. else
  3873. GCC=
  3874. fi
  3875. ac_test_CFLAGS=${CFLAGS+set}
  3876. ac_save_CFLAGS=$CFLAGS
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3878. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3879. if ${ac_cv_prog_cc_g+:} false; then :
  3880. $as_echo_n "(cached) " >&6
  3881. else
  3882. ac_save_c_werror_flag=$ac_c_werror_flag
  3883. ac_c_werror_flag=yes
  3884. ac_cv_prog_cc_g=no
  3885. CFLAGS="-g"
  3886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3887. /* end confdefs.h. */
  3888.  
  3889. int
  3890. main ()
  3891. {
  3892.  
  3893. ;
  3894. return 0;
  3895. }
  3896. _ACEOF
  3897. if ac_fn_c_try_compile "$LINENO"; then :
  3898. ac_cv_prog_cc_g=yes
  3899. else
  3900. CFLAGS=""
  3901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3902. /* end confdefs.h. */
  3903.  
  3904. int
  3905. main ()
  3906. {
  3907.  
  3908. ;
  3909. return 0;
  3910. }
  3911. _ACEOF
  3912. if ac_fn_c_try_compile "$LINENO"; then :
  3913.  
  3914. else
  3915. ac_c_werror_flag=$ac_save_c_werror_flag
  3916. CFLAGS="-g"
  3917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3918. /* end confdefs.h. */
  3919.  
  3920. int
  3921. main ()
  3922. {
  3923.  
  3924. ;
  3925. return 0;
  3926. }
  3927. _ACEOF
  3928. if ac_fn_c_try_compile "$LINENO"; then :
  3929. ac_cv_prog_cc_g=yes
  3930. fi
  3931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3932. fi
  3933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3934. fi
  3935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3936. ac_c_werror_flag=$ac_save_c_werror_flag
  3937. fi
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3939. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3940. if test "$ac_test_CFLAGS" = set; then
  3941. CFLAGS=$ac_save_CFLAGS
  3942. elif test $ac_cv_prog_cc_g = yes; then
  3943. if test "$GCC" = yes; then
  3944. CFLAGS="-g -O2"
  3945. else
  3946. CFLAGS="-g"
  3947. fi
  3948. else
  3949. if test "$GCC" = yes; then
  3950. CFLAGS="-O2"
  3951. else
  3952. CFLAGS=
  3953. fi
  3954. fi
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3956. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3957. if ${ac_cv_prog_cc_c89+:} false; then :
  3958. $as_echo_n "(cached) " >&6
  3959. else
  3960. ac_cv_prog_cc_c89=no
  3961. ac_save_CC=$CC
  3962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3963. /* end confdefs.h. */
  3964. #include <stdarg.h>
  3965. #include <stdio.h>
  3966. struct stat;
  3967. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3968. struct buf { int x; };
  3969. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3970. static char *e (p, i)
  3971. char **p;
  3972. int i;
  3973. {
  3974. return p[i];
  3975. }
  3976. static char *f (char * (*g) (char **, int), char **p, ...)
  3977. {
  3978. char *s;
  3979. va_list v;
  3980. va_start (v,p);
  3981. s = g (p, va_arg (v,int));
  3982. va_end (v);
  3983. return s;
  3984. }
  3985.  
  3986. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3987. function prototypes and stuff, but not '\xHH' hex character constants.
  3988. These don't provoke an error unfortunately, instead are silently treated
  3989. as 'x'. The following induces an error, until -std is added to get
  3990. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3991. array size at least. It's necessary to write '\x00'==0 to get something
  3992. that's true only with -std. */
  3993. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3994.  
  3995. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3996. inside strings and character constants. */
  3997. #define FOO(x) 'x'
  3998. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3999.  
  4000. int test (int i, double x);
  4001. struct s1 {int (*f) (int a);};
  4002. struct s2 {int (*f) (double a);};
  4003. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4004. int argc;
  4005. char **argv;
  4006. int
  4007. main ()
  4008. {
  4009. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4010. ;
  4011. return 0;
  4012. }
  4013. _ACEOF
  4014. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4015. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4016. do
  4017. CC="$ac_save_CC $ac_arg"
  4018. if ac_fn_c_try_compile "$LINENO"; then :
  4019. ac_cv_prog_cc_c89=$ac_arg
  4020. fi
  4021. rm -f core conftest.err conftest.$ac_objext
  4022. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4023. done
  4024. rm -f conftest.$ac_ext
  4025. CC=$ac_save_CC
  4026.  
  4027. fi
  4028. # AC_CACHE_VAL
  4029. case "x$ac_cv_prog_cc_c89" in
  4030. x)
  4031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4032. $as_echo "none needed" >&6; } ;;
  4033. xno)
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4035. $as_echo "unsupported" >&6; } ;;
  4036. *)
  4037. CC="$CC $ac_cv_prog_cc_c89"
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4039. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4040. esac
  4041. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4042.  
  4043. fi
  4044.  
  4045. ac_ext=c
  4046. ac_cpp='$CPP $CPPFLAGS'
  4047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4050.  
  4051. ac_ext=c
  4052. ac_cpp='$CPP $CPPFLAGS'
  4053. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4054. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4057. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4058. # On Suns, sometimes $CPP names a directory.
  4059. if test -n "$CPP" && test -d "$CPP"; then
  4060. CPP=
  4061. fi
  4062. if test -z "$CPP"; then
  4063. if ${ac_cv_prog_CPP+:} false; then :
  4064. $as_echo_n "(cached) " >&6
  4065. else
  4066. # Double quotes because CPP needs to be expanded
  4067. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4068. do
  4069. ac_preproc_ok=false
  4070. for ac_c_preproc_warn_flag in '' yes
  4071. do
  4072. # Use a header file that comes with gcc, so configuring glibc
  4073. # with a fresh cross-compiler works.
  4074. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4075. # <limits.h> exists even on freestanding compilers.
  4076. # On the NeXT, cc -E runs the code through the compiler's parser,
  4077. # not just through cpp. "Syntax error" is here to catch this case.
  4078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4079. /* end confdefs.h. */
  4080. #ifdef __STDC__
  4081. # include <limits.h>
  4082. #else
  4083. # include <assert.h>
  4084. #endif
  4085. Syntax error
  4086. _ACEOF
  4087. if ac_fn_c_try_cpp "$LINENO"; then :
  4088.  
  4089. else
  4090. # Broken: fails on valid input.
  4091. continue
  4092. fi
  4093. rm -f conftest.err conftest.i conftest.$ac_ext
  4094.  
  4095. # OK, works on sane cases. Now check whether nonexistent headers
  4096. # can be detected and how.
  4097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4098. /* end confdefs.h. */
  4099. #include <ac_nonexistent.h>
  4100. _ACEOF
  4101. if ac_fn_c_try_cpp "$LINENO"; then :
  4102. # Broken: success on invalid input.
  4103. continue
  4104. else
  4105. # Passes both tests.
  4106. ac_preproc_ok=:
  4107. break
  4108. fi
  4109. rm -f conftest.err conftest.i conftest.$ac_ext
  4110.  
  4111. done
  4112. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4113. rm -f conftest.i conftest.err conftest.$ac_ext
  4114. if $ac_preproc_ok; then :
  4115. break
  4116. fi
  4117.  
  4118. done
  4119. ac_cv_prog_CPP=$CPP
  4120.  
  4121. fi
  4122. CPP=$ac_cv_prog_CPP
  4123. else
  4124. ac_cv_prog_CPP=$CPP
  4125. fi
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4127. $as_echo "$CPP" >&6; }
  4128. ac_preproc_ok=false
  4129. for ac_c_preproc_warn_flag in '' yes
  4130. do
  4131. # Use a header file that comes with gcc, so configuring glibc
  4132. # with a fresh cross-compiler works.
  4133. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4134. # <limits.h> exists even on freestanding compilers.
  4135. # On the NeXT, cc -E runs the code through the compiler's parser,
  4136. # not just through cpp. "Syntax error" is here to catch this case.
  4137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4138. /* end confdefs.h. */
  4139. #ifdef __STDC__
  4140. # include <limits.h>
  4141. #else
  4142. # include <assert.h>
  4143. #endif
  4144. Syntax error
  4145. _ACEOF
  4146. if ac_fn_c_try_cpp "$LINENO"; then :
  4147.  
  4148. else
  4149. # Broken: fails on valid input.
  4150. continue
  4151. fi
  4152. rm -f conftest.err conftest.i conftest.$ac_ext
  4153.  
  4154. # OK, works on sane cases. Now check whether nonexistent headers
  4155. # can be detected and how.
  4156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4157. /* end confdefs.h. */
  4158. #include <ac_nonexistent.h>
  4159. _ACEOF
  4160. if ac_fn_c_try_cpp "$LINENO"; then :
  4161. # Broken: success on invalid input.
  4162. continue
  4163. else
  4164. # Passes both tests.
  4165. ac_preproc_ok=:
  4166. break
  4167. fi
  4168. rm -f conftest.err conftest.i conftest.$ac_ext
  4169.  
  4170. done
  4171. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4172. rm -f conftest.i conftest.err conftest.$ac_ext
  4173. if $ac_preproc_ok; then :
  4174.  
  4175. else
  4176. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4177. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4178. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4179. See \`config.log' for more details" "$LINENO" 5; }
  4180. fi
  4181.  
  4182. ac_ext=c
  4183. ac_cpp='$CPP $CPPFLAGS'
  4184. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4185. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4186. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4187.  
  4188.  
  4189. INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
  4190. INSTALL_DATA_DIR='${INSTALL} -d -m 755'
  4191. INSTALL_DATA='${INSTALL} -m 644'
  4192. INSTALL_PROGRAM='${INSTALL}'
  4193. INSTALL_SCRIPT='${INSTALL}'
  4194. INSTALL_LIBRARY='${INSTALL_DATA}'
  4195.  
  4196.  
  4197.  
  4198.  
  4199.  
  4200.  
  4201.  
  4202.  
  4203. #--------------------------------------------------------------------
  4204. # Checks to see if the make program sets the $MAKE variable.
  4205. #--------------------------------------------------------------------
  4206.  
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4208. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4209. set x ${MAKE-make}
  4210. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4211. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4212. $as_echo_n "(cached) " >&6
  4213. else
  4214. cat >conftest.make <<\_ACEOF
  4215. SHELL = /bin/sh
  4216. all:
  4217. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4218. _ACEOF
  4219. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4220. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4221. *@@@%%%=?*=@@@%%%*)
  4222. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4223. *)
  4224. eval ac_cv_prog_make_${ac_make}_set=no;;
  4225. esac
  4226. rm -f conftest.make
  4227. fi
  4228. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4230. $as_echo "yes" >&6; }
  4231. SET_MAKE=
  4232. else
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4234. $as_echo "no" >&6; }
  4235. SET_MAKE="MAKE=${MAKE-make}"
  4236. fi
  4237.  
  4238.  
  4239. #--------------------------------------------------------------------
  4240. # Find ranlib
  4241. #--------------------------------------------------------------------
  4242.  
  4243. if test -n "$ac_tool_prefix"; then
  4244. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4245. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4247. $as_echo_n "checking for $ac_word... " >&6; }
  4248. if ${ac_cv_prog_RANLIB+:} false; then :
  4249. $as_echo_n "(cached) " >&6
  4250. else
  4251. if test -n "$RANLIB"; then
  4252. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4253. else
  4254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4255. for as_dir in $PATH
  4256. do
  4257. IFS=$as_save_IFS
  4258. test -z "$as_dir" && as_dir=.
  4259. for ac_exec_ext in '' $ac_executable_extensions; do
  4260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4261. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4263. break 2
  4264. fi
  4265. done
  4266. done
  4267. IFS=$as_save_IFS
  4268.  
  4269. fi
  4270. fi
  4271. RANLIB=$ac_cv_prog_RANLIB
  4272. if test -n "$RANLIB"; then
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4274. $as_echo "$RANLIB" >&6; }
  4275. else
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4277. $as_echo "no" >&6; }
  4278. fi
  4279.  
  4280.  
  4281. fi
  4282. if test -z "$ac_cv_prog_RANLIB"; then
  4283. ac_ct_RANLIB=$RANLIB
  4284. # Extract the first word of "ranlib", so it can be a program name with args.
  4285. set dummy ranlib; ac_word=$2
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4287. $as_echo_n "checking for $ac_word... " >&6; }
  4288. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4289. $as_echo_n "(cached) " >&6
  4290. else
  4291. if test -n "$ac_ct_RANLIB"; then
  4292. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4293. else
  4294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4295. for as_dir in $PATH
  4296. do
  4297. IFS=$as_save_IFS
  4298. test -z "$as_dir" && as_dir=.
  4299. for ac_exec_ext in '' $ac_executable_extensions; do
  4300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4301. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4303. break 2
  4304. fi
  4305. done
  4306. done
  4307. IFS=$as_save_IFS
  4308.  
  4309. fi
  4310. fi
  4311. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4312. if test -n "$ac_ct_RANLIB"; then
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4314. $as_echo "$ac_ct_RANLIB" >&6; }
  4315. else
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4317. $as_echo "no" >&6; }
  4318. fi
  4319.  
  4320. if test "x$ac_ct_RANLIB" = x; then
  4321. RANLIB=""
  4322. else
  4323. case $cross_compiling:$ac_tool_warned in
  4324. yes:)
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4326. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4327. ac_tool_warned=yes ;;
  4328. esac
  4329. RANLIB=$ac_ct_RANLIB
  4330. fi
  4331. else
  4332. RANLIB="$ac_cv_prog_RANLIB"
  4333. fi
  4334.  
  4335.  
  4336. #--------------------------------------------------------------------
  4337. # Determines the correct binary file extension (.o, .obj, .exe etc.)
  4338. #--------------------------------------------------------------------
  4339.  
  4340.  
  4341.  
  4342.  
  4343.  
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4345. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4346. if ${ac_cv_path_GREP+:} false; then :
  4347. $as_echo_n "(cached) " >&6
  4348. else
  4349. if test -z "$GREP"; then
  4350. ac_path_GREP_found=false
  4351. # Loop through the user's path and test for each of PROGNAME-LIST
  4352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4353. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4354. do
  4355. IFS=$as_save_IFS
  4356. test -z "$as_dir" && as_dir=.
  4357. for ac_prog in grep ggrep; do
  4358. for ac_exec_ext in '' $ac_executable_extensions; do
  4359. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4360. as_fn_executable_p "$ac_path_GREP" || continue
  4361. # Check for GNU ac_path_GREP and select it if it is found.
  4362. # Check for GNU $ac_path_GREP
  4363. case `"$ac_path_GREP" --version 2>&1` in
  4364. *GNU*)
  4365. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4366. *)
  4367. ac_count=0
  4368. $as_echo_n 0123456789 >"conftest.in"
  4369. while :
  4370. do
  4371. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4372. mv "conftest.tmp" "conftest.in"
  4373. cp "conftest.in" "conftest.nl"
  4374. $as_echo 'GREP' >> "conftest.nl"
  4375. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4376. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4377. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4378. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4379. # Best one so far, save it but keep looking for a better one
  4380. ac_cv_path_GREP="$ac_path_GREP"
  4381. ac_path_GREP_max=$ac_count
  4382. fi
  4383. # 10*(2^10) chars as input seems more than enough
  4384. test $ac_count -gt 10 && break
  4385. done
  4386. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4387. esac
  4388.  
  4389. $ac_path_GREP_found && break 3
  4390. done
  4391. done
  4392. done
  4393. IFS=$as_save_IFS
  4394. if test -z "$ac_cv_path_GREP"; then
  4395. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4396. fi
  4397. else
  4398. ac_cv_path_GREP=$GREP
  4399. fi
  4400.  
  4401. fi
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4403. $as_echo "$ac_cv_path_GREP" >&6; }
  4404. GREP="$ac_cv_path_GREP"
  4405.  
  4406.  
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4408. $as_echo_n "checking for egrep... " >&6; }
  4409. if ${ac_cv_path_EGREP+:} false; then :
  4410. $as_echo_n "(cached) " >&6
  4411. else
  4412. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4413. then ac_cv_path_EGREP="$GREP -E"
  4414. else
  4415. if test -z "$EGREP"; then
  4416. ac_path_EGREP_found=false
  4417. # Loop through the user's path and test for each of PROGNAME-LIST
  4418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4419. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4420. do
  4421. IFS=$as_save_IFS
  4422. test -z "$as_dir" && as_dir=.
  4423. for ac_prog in egrep; do
  4424. for ac_exec_ext in '' $ac_executable_extensions; do
  4425. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4426. as_fn_executable_p "$ac_path_EGREP" || continue
  4427. # Check for GNU ac_path_EGREP and select it if it is found.
  4428. # Check for GNU $ac_path_EGREP
  4429. case `"$ac_path_EGREP" --version 2>&1` in
  4430. *GNU*)
  4431. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4432. *)
  4433. ac_count=0
  4434. $as_echo_n 0123456789 >"conftest.in"
  4435. while :
  4436. do
  4437. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4438. mv "conftest.tmp" "conftest.in"
  4439. cp "conftest.in" "conftest.nl"
  4440. $as_echo 'EGREP' >> "conftest.nl"
  4441. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4442. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4443. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4444. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4445. # Best one so far, save it but keep looking for a better one
  4446. ac_cv_path_EGREP="$ac_path_EGREP"
  4447. ac_path_EGREP_max=$ac_count
  4448. fi
  4449. # 10*(2^10) chars as input seems more than enough
  4450. test $ac_count -gt 10 && break
  4451. done
  4452. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4453. esac
  4454.  
  4455. $ac_path_EGREP_found && break 3
  4456. done
  4457. done
  4458. done
  4459. IFS=$as_save_IFS
  4460. if test -z "$ac_cv_path_EGREP"; then
  4461. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4462. fi
  4463. else
  4464. ac_cv_path_EGREP=$EGREP
  4465. fi
  4466.  
  4467. fi
  4468. fi
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4470. $as_echo "$ac_cv_path_EGREP" >&6; }
  4471. EGREP="$ac_cv_path_EGREP"
  4472.  
  4473.  
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4475. $as_echo_n "checking for ANSI C header files... " >&6; }
  4476. if ${ac_cv_header_stdc+:} false; then :
  4477. $as_echo_n "(cached) " >&6
  4478. else
  4479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4480. /* end confdefs.h. */
  4481. #include <stdlib.h>
  4482. #include <stdarg.h>
  4483. #include <string.h>
  4484. #include <float.h>
  4485.  
  4486. int
  4487. main ()
  4488. {
  4489.  
  4490. ;
  4491. return 0;
  4492. }
  4493. _ACEOF
  4494. if ac_fn_c_try_compile "$LINENO"; then :
  4495. ac_cv_header_stdc=yes
  4496. else
  4497. ac_cv_header_stdc=no
  4498. fi
  4499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4500.  
  4501. if test $ac_cv_header_stdc = yes; then
  4502. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4504. /* end confdefs.h. */
  4505. #include <string.h>
  4506.  
  4507. _ACEOF
  4508. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4509. $EGREP "memchr" >/dev/null 2>&1; then :
  4510.  
  4511. else
  4512. ac_cv_header_stdc=no
  4513. fi
  4514. rm -f conftest*
  4515.  
  4516. fi
  4517.  
  4518. if test $ac_cv_header_stdc = yes; then
  4519. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4521. /* end confdefs.h. */
  4522. #include <stdlib.h>
  4523.  
  4524. _ACEOF
  4525. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4526. $EGREP "free" >/dev/null 2>&1; then :
  4527.  
  4528. else
  4529. ac_cv_header_stdc=no
  4530. fi
  4531. rm -f conftest*
  4532.  
  4533. fi
  4534.  
  4535. if test $ac_cv_header_stdc = yes; then
  4536. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4537. if test "$cross_compiling" = yes; then :
  4538. :
  4539. else
  4540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4541. /* end confdefs.h. */
  4542. #include <ctype.h>
  4543. #include <stdlib.h>
  4544. #if ((' ' & 0x0FF) == 0x020)
  4545. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4546. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4547. #else
  4548. # define ISLOWER(c) \
  4549. (('a' <= (c) && (c) <= 'i') \
  4550. || ('j' <= (c) && (c) <= 'r') \
  4551. || ('s' <= (c) && (c) <= 'z'))
  4552. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4553. #endif
  4554.  
  4555. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4556. int
  4557. main ()
  4558. {
  4559. int i;
  4560. for (i = 0; i < 256; i++)
  4561. if (XOR (islower (i), ISLOWER (i))
  4562. || toupper (i) != TOUPPER (i))
  4563. return 2;
  4564. return 0;
  4565. }
  4566. _ACEOF
  4567. if ac_fn_c_try_run "$LINENO"; then :
  4568.  
  4569. else
  4570. ac_cv_header_stdc=no
  4571. fi
  4572. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4573. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4574. fi
  4575.  
  4576. fi
  4577. fi
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4579. $as_echo "$ac_cv_header_stdc" >&6; }
  4580. if test $ac_cv_header_stdc = yes; then
  4581.  
  4582. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4583.  
  4584. fi
  4585.  
  4586. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4587. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4588. inttypes.h stdint.h unistd.h
  4589. do :
  4590. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4591. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4592. "
  4593. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4594. cat >>confdefs.h <<_ACEOF
  4595. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4596. _ACEOF
  4597.  
  4598. fi
  4599.  
  4600. done
  4601.  
  4602.  
  4603.  
  4604. # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
  4605.  
  4606.  
  4607. #------------------------------------------------------------------------
  4608. # If we're using GCC, see if the compiler understands -pipe. If so, use it.
  4609. # It makes compiling go faster. (This is only a performance feature.)
  4610. #------------------------------------------------------------------------
  4611.  
  4612. if test -z "$no_pipe" -a -n "$GCC"; then
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
  4614. $as_echo_n "checking if the compiler understands -pipe... " >&6; }
  4615. if ${tcl_cv_cc_pipe+:} false; then :
  4616. $as_echo_n "(cached) " >&6
  4617. else
  4618.  
  4619. hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
  4620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4621. /* end confdefs.h. */
  4622.  
  4623. int
  4624. main ()
  4625. {
  4626.  
  4627. ;
  4628. return 0;
  4629. }
  4630. _ACEOF
  4631. if ac_fn_c_try_compile "$LINENO"; then :
  4632. tcl_cv_cc_pipe=yes
  4633. else
  4634. tcl_cv_cc_pipe=no
  4635. fi
  4636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4637. CFLAGS=$hold_cflags
  4638. fi
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
  4640. $as_echo "$tcl_cv_cc_pipe" >&6; }
  4641. if test $tcl_cv_cc_pipe = yes; then
  4642. CFLAGS="$CFLAGS -pipe"
  4643. fi
  4644. fi
  4645.  
  4646. #--------------------------------------------------------------------
  4647. # Common compiler flag setup
  4648. #--------------------------------------------------------------------
  4649.  
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4651. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4652. if ${ac_cv_c_bigendian+:} false; then :
  4653. $as_echo_n "(cached) " >&6
  4654. else
  4655. ac_cv_c_bigendian=unknown
  4656. # See if we're dealing with a universal compiler.
  4657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4658. /* end confdefs.h. */
  4659. #ifndef __APPLE_CC__
  4660. not a universal capable compiler
  4661. #endif
  4662. typedef int dummy;
  4663.  
  4664. _ACEOF
  4665. if ac_fn_c_try_compile "$LINENO"; then :
  4666.  
  4667. # Check for potential -arch flags. It is not universal unless
  4668. # there are at least two -arch flags with different values.
  4669. ac_arch=
  4670. ac_prev=
  4671. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4672. if test -n "$ac_prev"; then
  4673. case $ac_word in
  4674. i?86 | x86_64 | ppc | ppc64)
  4675. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4676. ac_arch=$ac_word
  4677. else
  4678. ac_cv_c_bigendian=universal
  4679. break
  4680. fi
  4681. ;;
  4682. esac
  4683. ac_prev=
  4684. elif test "x$ac_word" = "x-arch"; then
  4685. ac_prev=arch
  4686. fi
  4687. done
  4688. fi
  4689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4690. if test $ac_cv_c_bigendian = unknown; then
  4691. # See if sys/param.h defines the BYTE_ORDER macro.
  4692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4693. /* end confdefs.h. */
  4694. #include <sys/types.h>
  4695. #include <sys/param.h>
  4696.  
  4697. int
  4698. main ()
  4699. {
  4700. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4701. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4702. && LITTLE_ENDIAN)
  4703. bogus endian macros
  4704. #endif
  4705.  
  4706. ;
  4707. return 0;
  4708. }
  4709. _ACEOF
  4710. if ac_fn_c_try_compile "$LINENO"; then :
  4711. # It does; now see whether it defined to BIG_ENDIAN or not.
  4712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4713. /* end confdefs.h. */
  4714. #include <sys/types.h>
  4715. #include <sys/param.h>
  4716.  
  4717. int
  4718. main ()
  4719. {
  4720. #if BYTE_ORDER != BIG_ENDIAN
  4721. not big endian
  4722. #endif
  4723.  
  4724. ;
  4725. return 0;
  4726. }
  4727. _ACEOF
  4728. if ac_fn_c_try_compile "$LINENO"; then :
  4729. ac_cv_c_bigendian=yes
  4730. else
  4731. ac_cv_c_bigendian=no
  4732. fi
  4733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4734. fi
  4735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4736. fi
  4737. if test $ac_cv_c_bigendian = unknown; then
  4738. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4740. /* end confdefs.h. */
  4741. #include <limits.h>
  4742.  
  4743. int
  4744. main ()
  4745. {
  4746. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4747. bogus endian macros
  4748. #endif
  4749.  
  4750. ;
  4751. return 0;
  4752. }
  4753. _ACEOF
  4754. if ac_fn_c_try_compile "$LINENO"; then :
  4755. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4757. /* end confdefs.h. */
  4758. #include <limits.h>
  4759.  
  4760. int
  4761. main ()
  4762. {
  4763. #ifndef _BIG_ENDIAN
  4764. not big endian
  4765. #endif
  4766.  
  4767. ;
  4768. return 0;
  4769. }
  4770. _ACEOF
  4771. if ac_fn_c_try_compile "$LINENO"; then :
  4772. ac_cv_c_bigendian=yes
  4773. else
  4774. ac_cv_c_bigendian=no
  4775. fi
  4776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4777. fi
  4778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4779. fi
  4780. if test $ac_cv_c_bigendian = unknown; then
  4781. # Compile a test program.
  4782. if test "$cross_compiling" = yes; then :
  4783. # Try to guess by grepping values from an object file.
  4784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4785. /* end confdefs.h. */
  4786. short int ascii_mm[] =
  4787. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4788. short int ascii_ii[] =
  4789. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4790. int use_ascii (int i) {
  4791. return ascii_mm[i] + ascii_ii[i];
  4792. }
  4793. short int ebcdic_ii[] =
  4794. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4795. short int ebcdic_mm[] =
  4796. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4797. int use_ebcdic (int i) {
  4798. return ebcdic_mm[i] + ebcdic_ii[i];
  4799. }
  4800. extern int foo;
  4801.  
  4802. int
  4803. main ()
  4804. {
  4805. return use_ascii (foo) == use_ebcdic (foo);
  4806. ;
  4807. return 0;
  4808. }
  4809. _ACEOF
  4810. if ac_fn_c_try_compile "$LINENO"; then :
  4811. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4812. ac_cv_c_bigendian=yes
  4813. fi
  4814. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4815. if test "$ac_cv_c_bigendian" = unknown; then
  4816. ac_cv_c_bigendian=no
  4817. else
  4818. # finding both strings is unlikely to happen, but who knows?
  4819. ac_cv_c_bigendian=unknown
  4820. fi
  4821. fi
  4822. fi
  4823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4824. else
  4825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4826. /* end confdefs.h. */
  4827. $ac_includes_default
  4828. int
  4829. main ()
  4830. {
  4831.  
  4832. /* Are we little or big endian? From Harbison&Steele. */
  4833. union
  4834. {
  4835. long int l;
  4836. char c[sizeof (long int)];
  4837. } u;
  4838. u.l = 1;
  4839. return u.c[sizeof (long int) - 1] == 1;
  4840.  
  4841. ;
  4842. return 0;
  4843. }
  4844. _ACEOF
  4845. if ac_fn_c_try_run "$LINENO"; then :
  4846. ac_cv_c_bigendian=no
  4847. else
  4848. ac_cv_c_bigendian=yes
  4849. fi
  4850. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4851. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4852. fi
  4853.  
  4854. fi
  4855. fi
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4857. $as_echo "$ac_cv_c_bigendian" >&6; }
  4858. case $ac_cv_c_bigendian in #(
  4859. yes)
  4860. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4861. ;; #(
  4862. no)
  4863. ;; #(
  4864. universal)
  4865.  
  4866. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4867.  
  4868. ;; #(
  4869. *)
  4870. as_fn_error $? "unknown endianness
  4871. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4872. esac
  4873.  
  4874. if test "${TEA_PLATFORM}" = "unix" ; then
  4875.  
  4876. #--------------------------------------------------------------------
  4877. # On a few very rare systems, all of the libm.a stuff is
  4878. # already in libc.a. Set compiler flags accordingly.
  4879. # Also, Linux requires the "ieee" library for math to work
  4880. # right (and it must appear before "-lm").
  4881. #--------------------------------------------------------------------
  4882.  
  4883. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  4884. if test "x$ac_cv_func_sin" = xyes; then :
  4885. MATH_LIBS=""
  4886. else
  4887. MATH_LIBS="-lm"
  4888. fi
  4889.  
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5
  4891. $as_echo_n "checking for main in -lieee... " >&6; }
  4892. if ${ac_cv_lib_ieee_main+:} false; then :
  4893. $as_echo_n "(cached) " >&6
  4894. else
  4895. ac_check_lib_save_LIBS=$LIBS
  4896. LIBS="-lieee $LIBS"
  4897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4898. /* end confdefs.h. */
  4899.  
  4900.  
  4901. int
  4902. main ()
  4903. {
  4904. return main ();
  4905. ;
  4906. return 0;
  4907. }
  4908. _ACEOF
  4909. if ac_fn_c_try_link "$LINENO"; then :
  4910. ac_cv_lib_ieee_main=yes
  4911. else
  4912. ac_cv_lib_ieee_main=no
  4913. fi
  4914. rm -f core conftest.err conftest.$ac_objext \
  4915. conftest$ac_exeext conftest.$ac_ext
  4916. LIBS=$ac_check_lib_save_LIBS
  4917. fi
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5
  4919. $as_echo "$ac_cv_lib_ieee_main" >&6; }
  4920. if test "x$ac_cv_lib_ieee_main" = xyes; then :
  4921. MATH_LIBS="-lieee $MATH_LIBS"
  4922. fi
  4923.  
  4924.  
  4925. #--------------------------------------------------------------------
  4926. # Interactive UNIX requires -linet instead of -lsocket, plus it
  4927. # needs net/errno.h to define the socket-related error codes.
  4928. #--------------------------------------------------------------------
  4929.  
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
  4931. $as_echo_n "checking for main in -linet... " >&6; }
  4932. if ${ac_cv_lib_inet_main+:} false; then :
  4933. $as_echo_n "(cached) " >&6
  4934. else
  4935. ac_check_lib_save_LIBS=$LIBS
  4936. LIBS="-linet $LIBS"
  4937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4938. /* end confdefs.h. */
  4939.  
  4940.  
  4941. int
  4942. main ()
  4943. {
  4944. return main ();
  4945. ;
  4946. return 0;
  4947. }
  4948. _ACEOF
  4949. if ac_fn_c_try_link "$LINENO"; then :
  4950. ac_cv_lib_inet_main=yes
  4951. else
  4952. ac_cv_lib_inet_main=no
  4953. fi
  4954. rm -f core conftest.err conftest.$ac_objext \
  4955. conftest$ac_exeext conftest.$ac_ext
  4956. LIBS=$ac_check_lib_save_LIBS
  4957. fi
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
  4959. $as_echo "$ac_cv_lib_inet_main" >&6; }
  4960. if test "x$ac_cv_lib_inet_main" = xyes; then :
  4961. LIBS="$LIBS -linet"
  4962. fi
  4963.  
  4964. ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
  4965. if test "x$ac_cv_header_net_errno_h" = xyes; then :
  4966.  
  4967.  
  4968. $as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
  4969.  
  4970. fi
  4971.  
  4972.  
  4973.  
  4974. #--------------------------------------------------------------------
  4975. # Check for the existence of the -lsocket and -lnsl libraries.
  4976. # The order here is important, so that they end up in the right
  4977. # order in the command line generated by make. Here are some
  4978. # special considerations:
  4979. # 1. Use "connect" and "accept" to check for -lsocket, and
  4980. # "gethostbyname" to check for -lnsl.
  4981. # 2. Use each function name only once: can't redo a check because
  4982. # autoconf caches the results of the last check and won't redo it.
  4983. # 3. Use -lnsl and -lsocket only if they supply procedures that
  4984. # aren't already present in the normal libraries. This is because
  4985. # IRIX 5.2 has libraries, but they aren't needed and they're
  4986. # bogus: they goof up name resolution if used.
  4987. # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
  4988. # To get around this problem, check for both libraries together
  4989. # if -lsocket doesn't work by itself.
  4990. #--------------------------------------------------------------------
  4991.  
  4992. tcl_checkBoth=0
  4993. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  4994. if test "x$ac_cv_func_connect" = xyes; then :
  4995. tcl_checkSocket=0
  4996. else
  4997. tcl_checkSocket=1
  4998. fi
  4999.  
  5000. if test "$tcl_checkSocket" = 1; then
  5001. ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
  5002. if test "x$ac_cv_func_setsockopt" = xyes; then :
  5003.  
  5004. else
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
  5006. $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
  5007. if ${ac_cv_lib_socket_setsockopt+:} false; then :
  5008. $as_echo_n "(cached) " >&6
  5009. else
  5010. ac_check_lib_save_LIBS=$LIBS
  5011. LIBS="-lsocket $LIBS"
  5012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5013. /* end confdefs.h. */
  5014.  
  5015. /* Override any GCC internal prototype to avoid an error.
  5016. Use char because int might match the return type of a GCC
  5017. builtin and then its argument prototype would still apply. */
  5018. #ifdef __cplusplus
  5019. extern "C"
  5020. #endif
  5021. char setsockopt ();
  5022. int
  5023. main ()
  5024. {
  5025. return setsockopt ();
  5026. ;
  5027. return 0;
  5028. }
  5029. _ACEOF
  5030. if ac_fn_c_try_link "$LINENO"; then :
  5031. ac_cv_lib_socket_setsockopt=yes
  5032. else
  5033. ac_cv_lib_socket_setsockopt=no
  5034. fi
  5035. rm -f core conftest.err conftest.$ac_objext \
  5036. conftest$ac_exeext conftest.$ac_ext
  5037. LIBS=$ac_check_lib_save_LIBS
  5038. fi
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
  5040. $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
  5041. if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
  5042. LIBS="$LIBS -lsocket"
  5043. else
  5044. tcl_checkBoth=1
  5045. fi
  5046.  
  5047. fi
  5048.  
  5049. fi
  5050. if test "$tcl_checkBoth" = 1; then
  5051. tk_oldLibs=$LIBS
  5052. LIBS="$LIBS -lsocket -lnsl"
  5053. ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
  5054. if test "x$ac_cv_func_accept" = xyes; then :
  5055. tcl_checkNsl=0
  5056. else
  5057. LIBS=$tk_oldLibs
  5058. fi
  5059.  
  5060. fi
  5061. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  5062. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  5063.  
  5064. else
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  5066. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  5067. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  5068. $as_echo_n "(cached) " >&6
  5069. else
  5070. ac_check_lib_save_LIBS=$LIBS
  5071. LIBS="-lnsl $LIBS"
  5072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5073. /* end confdefs.h. */
  5074.  
  5075. /* Override any GCC internal prototype to avoid an error.
  5076. Use char because int might match the return type of a GCC
  5077. builtin and then its argument prototype would still apply. */
  5078. #ifdef __cplusplus
  5079. extern "C"
  5080. #endif
  5081. char gethostbyname ();
  5082. int
  5083. main ()
  5084. {
  5085. return gethostbyname ();
  5086. ;
  5087. return 0;
  5088. }
  5089. _ACEOF
  5090. if ac_fn_c_try_link "$LINENO"; then :
  5091. ac_cv_lib_nsl_gethostbyname=yes
  5092. else
  5093. ac_cv_lib_nsl_gethostbyname=no
  5094. fi
  5095. rm -f core conftest.err conftest.$ac_objext \
  5096. conftest$ac_exeext conftest.$ac_ext
  5097. LIBS=$ac_check_lib_save_LIBS
  5098. fi
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  5100. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  5101. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  5102. LIBS="$LIBS -lnsl"
  5103. fi
  5104.  
  5105. fi
  5106.  
  5107.  
  5108. # TEA specific: Don't perform the eval of the libraries here because
  5109. # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS
  5110.  
  5111. TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
  5112.  
  5113.  
  5114.  
  5115.  
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5
  5117. $as_echo_n "checking dirent.h... " >&6; }
  5118. if ${tcl_cv_dirent_h+:} false; then :
  5119. $as_echo_n "(cached) " >&6
  5120. else
  5121.  
  5122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5123. /* end confdefs.h. */
  5124. #include <sys/types.h>
  5125. #include <dirent.h>
  5126. int
  5127. main ()
  5128. {
  5129.  
  5130. #ifndef _POSIX_SOURCE
  5131. # ifdef __Lynx__
  5132. /*
  5133. * Generate compilation error to make the test fail: Lynx headers
  5134. * are only valid if really in the POSIX environment.
  5135. */
  5136.  
  5137. missing_procedure();
  5138. # endif
  5139. #endif
  5140. DIR *d;
  5141. struct dirent *entryPtr;
  5142. char *p;
  5143. d = opendir("foobar");
  5144. entryPtr = readdir(d);
  5145. p = entryPtr->d_name;
  5146. closedir(d);
  5147.  
  5148. ;
  5149. return 0;
  5150. }
  5151. _ACEOF
  5152. if ac_fn_c_try_link "$LINENO"; then :
  5153. tcl_cv_dirent_h=yes
  5154. else
  5155. tcl_cv_dirent_h=no
  5156. fi
  5157. rm -f core conftest.err conftest.$ac_objext \
  5158. conftest$ac_exeext conftest.$ac_ext
  5159. fi
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5
  5161. $as_echo "$tcl_cv_dirent_h" >&6; }
  5162.  
  5163. if test $tcl_cv_dirent_h = no; then
  5164.  
  5165. $as_echo "#define NO_DIRENT_H 1" >>confdefs.h
  5166.  
  5167. fi
  5168.  
  5169. # TEA specific:
  5170. ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
  5171. if test "x$ac_cv_header_errno_h" = xyes; then :
  5172.  
  5173. else
  5174.  
  5175. $as_echo "#define NO_ERRNO_H 1" >>confdefs.h
  5176.  
  5177. fi
  5178.  
  5179.  
  5180. ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  5181. if test "x$ac_cv_header_float_h" = xyes; then :
  5182.  
  5183. else
  5184.  
  5185. $as_echo "#define NO_FLOAT_H 1" >>confdefs.h
  5186.  
  5187. fi
  5188.  
  5189.  
  5190. ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
  5191. if test "x$ac_cv_header_values_h" = xyes; then :
  5192.  
  5193. else
  5194.  
  5195. $as_echo "#define NO_VALUES_H 1" >>confdefs.h
  5196.  
  5197. fi
  5198.  
  5199.  
  5200. ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  5201. if test "x$ac_cv_header_limits_h" = xyes; then :
  5202.  
  5203. $as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h
  5204.  
  5205. else
  5206.  
  5207. $as_echo "#define NO_LIMITS_H 1" >>confdefs.h
  5208.  
  5209. fi
  5210.  
  5211.  
  5212. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  5213. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  5214. tcl_ok=1
  5215. else
  5216. tcl_ok=0
  5217. fi
  5218.  
  5219.  
  5220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5221. /* end confdefs.h. */
  5222. #include <stdlib.h>
  5223.  
  5224. _ACEOF
  5225. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5226. $EGREP "strtol" >/dev/null 2>&1; then :
  5227.  
  5228. else
  5229. tcl_ok=0
  5230. fi
  5231. rm -f conftest*
  5232.  
  5233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5234. /* end confdefs.h. */
  5235. #include <stdlib.h>
  5236.  
  5237. _ACEOF
  5238. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5239. $EGREP "strtoul" >/dev/null 2>&1; then :
  5240.  
  5241. else
  5242. tcl_ok=0
  5243. fi
  5244. rm -f conftest*
  5245.  
  5246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5247. /* end confdefs.h. */
  5248. #include <stdlib.h>
  5249.  
  5250. _ACEOF
  5251. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5252. $EGREP "strtod" >/dev/null 2>&1; then :
  5253.  
  5254. else
  5255. tcl_ok=0
  5256. fi
  5257. rm -f conftest*
  5258.  
  5259. if test $tcl_ok = 0; then
  5260.  
  5261. $as_echo "#define NO_STDLIB_H 1" >>confdefs.h
  5262.  
  5263. fi
  5264. ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  5265. if test "x$ac_cv_header_string_h" = xyes; then :
  5266. tcl_ok=1
  5267. else
  5268. tcl_ok=0
  5269. fi
  5270.  
  5271.  
  5272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5273. /* end confdefs.h. */
  5274. #include <string.h>
  5275.  
  5276. _ACEOF
  5277. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5278. $EGREP "strstr" >/dev/null 2>&1; then :
  5279.  
  5280. else
  5281. tcl_ok=0
  5282. fi
  5283. rm -f conftest*
  5284.  
  5285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5286. /* end confdefs.h. */
  5287. #include <string.h>
  5288.  
  5289. _ACEOF
  5290. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5291. $EGREP "strerror" >/dev/null 2>&1; then :
  5292.  
  5293. else
  5294. tcl_ok=0
  5295. fi
  5296. rm -f conftest*
  5297.  
  5298.  
  5299. # See also memmove check below for a place where NO_STRING_H can be
  5300. # set and why.
  5301.  
  5302. if test $tcl_ok = 0; then
  5303.  
  5304. $as_echo "#define NO_STRING_H 1" >>confdefs.h
  5305.  
  5306. fi
  5307.  
  5308. ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
  5309. if test "x$ac_cv_header_sys_wait_h" = xyes; then :
  5310.  
  5311. else
  5312.  
  5313. $as_echo "#define NO_SYS_WAIT_H 1" >>confdefs.h
  5314.  
  5315. fi
  5316.  
  5317.  
  5318. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  5319. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  5320.  
  5321. else
  5322.  
  5323. $as_echo "#define NO_DLFCN_H 1" >>confdefs.h
  5324.  
  5325. fi
  5326.  
  5327.  
  5328.  
  5329. # OS/390 lacks sys/param.h (and doesn't need it, by chance).
  5330. for ac_header in sys/param.h
  5331. do :
  5332. ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
  5333. if test "x$ac_cv_header_sys_param_h" = xyes; then :
  5334. cat >>confdefs.h <<_ACEOF
  5335. #define HAVE_SYS_PARAM_H 1
  5336. _ACEOF
  5337.  
  5338. fi
  5339.  
  5340. done
  5341.  
  5342.  
  5343. # Let the user call this, because if it triggers, they will
  5344. # need a compat/strtod.c that is correct. Users can also
  5345. # use Tcl_GetDouble(FromObj) instead.
  5346. #TEA_BUGGY_STRTOD
  5347. fi
  5348.  
  5349.  
  5350. #-----------------------------------------------------------------------
  5351. # Those two are needed for compiling expat.
  5352. #-----------------------------------------------------------------------
  5353.  
  5354. for ac_func in memmove bcopy
  5355. do :
  5356. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5357. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5358. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5359. cat >>confdefs.h <<_ACEOF
  5360. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5361. _ACEOF
  5362.  
  5363. fi
  5364. done
  5365.  
  5366.  
  5367. #--------------------------------------------------------------------
  5368. # Add optional AOLserver includes
  5369. #--------------------------------------------------------------------
  5370.  
  5371.  
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AOLserver configuration" >&5
  5373. $as_echo_n "checking for AOLserver configuration... " >&6; }
  5374.  
  5375. # Check whether --with-aol was given.
  5376. if test "${with_aol+set}" = set; then :
  5377. withval=$with_aol; with_aolserver=${withval}
  5378. fi
  5379.  
  5380.  
  5381. if ${ac_cv_c_aolserver+:} false; then :
  5382. $as_echo_n "(cached) " >&6
  5383. else
  5384.  
  5385. if test x"${with_aolserver}" != x ; then
  5386. if test -f "${with_aolserver}/include/ns.h" ; then
  5387. ac_cv_c_aolserver=`(cd ${with_aolserver}; pwd)`
  5388. else
  5389. as_fn_error $? "${with_aolserver} directory doesn't contain ns.h" "$LINENO" 5
  5390. fi
  5391. fi
  5392.  
  5393. fi
  5394.  
  5395. if test x"${ac_cv_c_aolserver}" = x ; then
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
  5397. $as_echo "none found" >&6; }
  5398. else
  5399. AOL_DIR=${ac_cv_c_aolserver}
  5400. AOL_INCLUDES="-I\"${AOL_DIR}/include\""
  5401. if test "`uname -s`" = Darwin ; then
  5402. aollibs=`ls ${AOL_DIR}/lib/libns* 2>/dev/null`
  5403. if test x"$aollibs" != x ; then
  5404. AOL_LIBS="-L\"${AOL_DIR}/lib\" -lnsd -lnsthread"
  5405. fi
  5406. fi
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found AOLserver in $AOL_DIR" >&5
  5408. $as_echo "found AOLserver in $AOL_DIR" >&6; }
  5409. $as_echo "#define NS_AOLSERVER 1" >>confdefs.h
  5410.  
  5411. $as_echo "#define USE_NORMAL_ALLOCATOR 1" >>confdefs.h
  5412.  
  5413. fi
  5414.  
  5415.  
  5416. #--------------------------------------------------------------------
  5417. # Add shared expat includes
  5418. #--------------------------------------------------------------------
  5419.  
  5420.  
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat" >&5
  5422. $as_echo_n "checking for expat... " >&6; }
  5423.  
  5424. # Check whether --with-expat was given.
  5425. if test "${with_expat+set}" = set; then :
  5426. withval=$with_expat;
  5427. else
  5428. with_expat=no
  5429. fi
  5430.  
  5431.  
  5432. if ${ac_cv_c_expat+:} false; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435.  
  5436. case $with_expat in
  5437. no) ;;
  5438. yes)
  5439. for f in /usr/local /usr; do
  5440. if test -f "$f/include/expat.h" ; then
  5441. ac_cv_c_expat=`(cd $f; pwd)`
  5442. break
  5443. fi
  5444. done
  5445. ;;
  5446. *)
  5447. if test -f "$with_expat/include/expat.h"; then
  5448. ac_cv_c_expat=`(cd $with_expat; pwd)`
  5449. else
  5450. as_fn_error $? "${with_expat} directory doesn't contain expat.h" "$LINENO" 5
  5451. fi
  5452. esac
  5453.  
  5454. fi
  5455.  
  5456. if test x"${ac_cv_c_expat}" = x ; then
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using bundled expat distribution" >&5
  5458. $as_echo "Using bundled expat distribution" >&6; }
  5459.  
  5460. vars="expat/xmlrole.c \
  5461. expat/xmltok.c \
  5462. expat/xmlparse.c \
  5463. expat/loadlibrary.c"
  5464. for i in $vars; do
  5465. case $i in
  5466. \$*)
  5467. # allow $-var names
  5468. PKG_SOURCES="$PKG_SOURCES $i"
  5469. PKG_OBJECTS="$PKG_OBJECTS $i"
  5470. ;;
  5471. *)
  5472. # check for existence - allows for generic/win/unix VPATH
  5473. # To add more dirs here (like 'src'), you have to update VPATH
  5474. # in Makefile.in as well
  5475. if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
  5476. -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
  5477. -a ! -f "${srcdir}/macosx/$i" \
  5478. ; then
  5479. as_fn_error $? "could not find source file '$i'" "$LINENO" 5
  5480. fi
  5481. PKG_SOURCES="$PKG_SOURCES $i"
  5482. # this assumes it is in a VPATH dir
  5483. i=`basename $i`
  5484. # handle user calling this before or after TEA_SETUP_COMPILER
  5485. if test x"${OBJEXT}" != x ; then
  5486. j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
  5487. else
  5488. j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
  5489. fi
  5490. PKG_OBJECTS="$PKG_OBJECTS $j"
  5491. ;;
  5492. esac
  5493. done
  5494.  
  5495.  
  5496.  
  5497.  
  5498. vars="-I${srcdir}/expat"
  5499. for i in $vars; do
  5500. PKG_INCLUDES="$PKG_INCLUDES $i"
  5501. done
  5502.  
  5503.  
  5504.  
  5505. $as_echo "#define XML_POOR_ENTROPY 1" >>confdefs.h
  5506.  
  5507. else
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using shared expat found in ${ac_cv_c_expat}" >&5
  5509. $as_echo "Using shared expat found in ${ac_cv_c_expat}" >&6; }
  5510.  
  5511. vars="-I${ac_cv_c_expat}/include"
  5512. for i in $vars; do
  5513. PKG_INCLUDES="$PKG_INCLUDES $i"
  5514. done
  5515.  
  5516.  
  5517.  
  5518. vars="-lexpat"
  5519. for i in $vars; do
  5520. if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
  5521. # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
  5522. i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
  5523. fi
  5524. PKG_LIBS="$PKG_LIBS $i"
  5525. done
  5526.  
  5527.  
  5528. fi
  5529.  
  5530.  
  5531. #--------------------------------------------------------------------
  5532. # Add HTML5 parsing support.
  5533. #--------------------------------------------------------------------
  5534.  
  5535.  
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for HTML5 parsing (using gumbo)" >&5
  5537. $as_echo_n "checking whether to enable support for HTML5 parsing (using gumbo)... " >&6; }
  5538. # Check whether --enable-html5 was given.
  5539. if test "${enable_html5+set}" = set; then :
  5540. enableval=$enable_html5; tcl_ok=$enableval
  5541. else
  5542. tcl_ok=no
  5543. fi
  5544.  
  5545.  
  5546. if test "${enable_html5+set}" = set; then
  5547. enableval="$enable_html5"
  5548. tcl_ok=$enableval
  5549. else
  5550. tcl_ok=no
  5551. fi
  5552. HTML5_LIBS=""
  5553. if test "$tcl_ok" = "yes" ; then
  5554. HAVEGUMBO=`pkg-config --exists gumbo && echo "1"`
  5555. if test "$HAVEGUMBO" = "1" ; then
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5557. $as_echo "yes" >&6; }
  5558. $as_echo "#define TDOM_HAVE_GUMBO 1" >>confdefs.h
  5559.  
  5560. if test "${TEA_PLATFORM}" = "windows" ; then
  5561. HTML5_LIBS="-Wl,-Bstatic `pkg-config --static --cflags --libs gumbo` -Wl,-Bdynamic"
  5562. else
  5563. HTML5_LIBS="`pkg-config --cflags --libs gumbo`"
  5564. fi
  5565. else
  5566. as_fn_error $? "The required lib gumbo not found" "$LINENO" 5
  5567. fi
  5568. else
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5570. $as_echo "no" >&6; }
  5571. fi
  5572.  
  5573.  
  5574. #-----------------------------------------------------------------------
  5575. # __CHANGE__
  5576. # Specify the C source files to compile in TEA_ADD_SOURCES,
  5577. # public headers that need to be installed in TEA_ADD_HEADERS,
  5578. # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
  5579. # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
  5580. # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
  5581. # and PKG_TCL_SOURCES.
  5582. #-----------------------------------------------------------------------
  5583.  
  5584.  
  5585. vars="generic/xmlsimple.c \
  5586. generic/dom.c \
  5587. generic/domhtml.c \
  5588. generic/domhtml5.c \
  5589. generic/domjson.c \
  5590. generic/domxpath.c \
  5591. generic/domxslt.c \
  5592. generic/domlock.c \
  5593. generic/tcldom.c \
  5594. generic/nodecmd.c \
  5595. generic/tdominit.c \
  5596. generic/tclexpat.c \
  5597. generic/tclpull.c \
  5598. generic/tdomStubInit.c"
  5599. for i in $vars; do
  5600. case $i in
  5601. \$*)
  5602. # allow $-var names
  5603. PKG_SOURCES="$PKG_SOURCES $i"
  5604. PKG_OBJECTS="$PKG_OBJECTS $i"
  5605. ;;
  5606. *)
  5607. # check for existence - allows for generic/win/unix VPATH
  5608. # To add more dirs here (like 'src'), you have to update VPATH
  5609. # in Makefile.in as well
  5610. if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
  5611. -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
  5612. -a ! -f "${srcdir}/macosx/$i" \
  5613. ; then
  5614. as_fn_error $? "could not find source file '$i'" "$LINENO" 5
  5615. fi
  5616. PKG_SOURCES="$PKG_SOURCES $i"
  5617. # this assumes it is in a VPATH dir
  5618. i=`basename $i`
  5619. # handle user calling this before or after TEA_SETUP_COMPILER
  5620. if test x"${OBJEXT}" != x ; then
  5621. j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
  5622. else
  5623. j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
  5624. fi
  5625. PKG_OBJECTS="$PKG_OBJECTS $j"
  5626. ;;
  5627. esac
  5628. done
  5629.  
  5630.  
  5631.  
  5632.  
  5633. vars="generic/tdom.h"
  5634. for i in $vars; do
  5635. # check for existence, be strict because it is installed
  5636. if test ! -f "${srcdir}/$i" ; then
  5637. as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
  5638. fi
  5639. PKG_HEADERS="$PKG_HEADERS $i"
  5640. done
  5641.  
  5642.  
  5643.  
  5644. vars="-I${srcdir}/generic ${AOL_INCLUDES}"
  5645. for i in $vars; do
  5646. PKG_INCLUDES="$PKG_INCLUDES $i"
  5647. done
  5648.  
  5649.  
  5650.  
  5651. vars="${AOL_LIBS} ${HTML5_LIBS}"
  5652. for i in $vars; do
  5653. if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
  5654. # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
  5655. i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
  5656. fi
  5657. PKG_LIBS="$PKG_LIBS $i"
  5658. done
  5659.  
  5660.  
  5661.  
  5662. PKG_CFLAGS="$PKG_CFLAGS "
  5663.  
  5664.  
  5665.  
  5666. vars="generic/tdomStubLib.c"
  5667. for i in $vars; do
  5668. # check for existence - allows for generic/win/unix VPATH
  5669. if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
  5670. -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
  5671. -a ! -f "${srcdir}/macosx/$i" \
  5672. ; then
  5673. as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
  5674. fi
  5675. PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
  5676. # this assumes it is in a VPATH dir
  5677. i=`basename $i`
  5678. # handle user calling this before or after TEA_SETUP_COMPILER
  5679. if test x"${OBJEXT}" != x ; then
  5680. j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
  5681. else
  5682. j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
  5683. fi
  5684. PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
  5685. done
  5686.  
  5687.  
  5688.  
  5689.  
  5690. vars="lib/tdom.tcl"
  5691. for i in $vars; do
  5692. # check for existence, be strict because it is installed
  5693. if test ! -f "${srcdir}/$i" ; then
  5694. as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
  5695. fi
  5696. PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
  5697. done
  5698.  
  5699.  
  5700.  
  5701. #--------------------------------------------------------------------
  5702. # __CHANGE__
  5703. #
  5704. # You can add more files to clean if your extension creates any extra
  5705. # files by extending CLEANFILES.
  5706. # Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
  5707. # and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
  5708. #
  5709. # A few miscellaneous platform-specific items:
  5710. # TEA_ADD_* any platform specific compiler/build info here.
  5711. #--------------------------------------------------------------------
  5712.  
  5713. if test "${TEA_PLATFORM}" = "windows" ; then
  5714. CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch"
  5715. #TEA_ADD_SOURCES([win/winFile.c])
  5716. #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
  5717. else
  5718. CLEANFILES="pkgIndex.tcl tdom.tcl tcldomsh"
  5719. #TEA_ADD_SOURCES([unix/unixFile.c])
  5720. #TEA_ADD_LIBS([-lsuperfly])
  5721. fi
  5722.  
  5723.  
  5724. #--------------------------------------------------------------------
  5725. # __CHANGE__
  5726. # Choose which headers you need. Extension authors should try very
  5727. # hard to only rely on the Tcl public header files. Internal headers
  5728. # contain private data structures and are subject to change without
  5729. # notice.
  5730. # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
  5731. #--------------------------------------------------------------------
  5732.  
  5733.  
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
  5735. $as_echo_n "checking for Tcl public headers... " >&6; }
  5736.  
  5737.  
  5738. # Check whether --with-tclinclude was given.
  5739. if test "${with_tclinclude+set}" = set; then :
  5740. withval=$with_tclinclude; with_tclinclude=${withval}
  5741. fi
  5742.  
  5743.  
  5744. if ${ac_cv_c_tclh+:} false; then :
  5745. $as_echo_n "(cached) " >&6
  5746. else
  5747.  
  5748. # Use the value from --with-tclinclude, if it was given
  5749.  
  5750. if test x"${with_tclinclude}" != x ; then
  5751. if test -f "${with_tclinclude}/tcl.h" ; then
  5752. ac_cv_c_tclh=${with_tclinclude}
  5753. else
  5754. as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
  5755. fi
  5756. else
  5757. list=""
  5758. if test "`uname -s`" = "Darwin"; then
  5759. # If Tcl was built as a framework, attempt to use
  5760. # the framework's Headers directory
  5761. case ${TCL_DEFS} in
  5762. *TCL_FRAMEWORK*)
  5763. list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
  5764. ;;
  5765. esac
  5766. fi
  5767.  
  5768. # Look in the source dir only if Tcl is not installed,
  5769. # and in that situation, look there before installed locations.
  5770. if test -f "${TCL_BIN_DIR}/Makefile" ; then
  5771. list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
  5772. fi
  5773.  
  5774. # Check order: pkg --prefix location, Tcl's --prefix location,
  5775. # relative to directory of tclConfig.sh.
  5776.  
  5777. eval "temp_includedir=${includedir}"
  5778. list="$list \
  5779. `ls -d ${temp_includedir} 2>/dev/null` \
  5780. `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
  5781. `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
  5782. if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
  5783. list="$list /usr/local/include /usr/include"
  5784. if test x"${TCL_INCLUDE_SPEC}" != x ; then
  5785. d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
  5786. list="$list `ls -d ${d} 2>/dev/null`"
  5787. fi
  5788. fi
  5789. for i in $list ; do
  5790. if test -f "$i/tcl.h" ; then
  5791. ac_cv_c_tclh=$i
  5792. break
  5793. fi
  5794. done
  5795. fi
  5796.  
  5797. fi
  5798.  
  5799.  
  5800. # Print a message based on how we determined the include path
  5801.  
  5802. if test x"${ac_cv_c_tclh}" = x ; then
  5803. as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
  5804. else
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
  5806. $as_echo "${ac_cv_c_tclh}" >&6; }
  5807. fi
  5808.  
  5809. # Convert to a native path and substitute into the output files.
  5810.  
  5811. INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
  5812.  
  5813. TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
  5814.  
  5815.  
  5816.  
  5817. #TEA_PRIVATE_TCL_HEADERS
  5818.  
  5819. #TEA_PUBLIC_TK_HEADERS
  5820. #TEA_PRIVATE_TK_HEADERS
  5821. #TEA_PATH_X
  5822.  
  5823. #--------------------------------------------------------------------
  5824. # Check whether --enable-threads or --disable-threads was given.
  5825. # This auto-enables if Tcl was compiled threaded.
  5826. #--------------------------------------------------------------------
  5827.  
  5828.  
  5829. # Check whether --enable-threads was given.
  5830. if test "${enable_threads+set}" = set; then :
  5831. enableval=$enable_threads; tcl_ok=$enableval
  5832. else
  5833. tcl_ok=yes
  5834. fi
  5835.  
  5836.  
  5837. if test "${enable_threads+set}" = set; then
  5838. enableval="$enable_threads"
  5839. tcl_ok=$enableval
  5840. else
  5841. tcl_ok=yes
  5842. fi
  5843.  
  5844. if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
  5845. TCL_THREADS=1
  5846.  
  5847. if test "${TEA_PLATFORM}" != "windows" ; then
  5848. # We are always OK on Windows, so check what this platform wants:
  5849.  
  5850. # USE_THREAD_ALLOC tells us to try the special thread-based
  5851. # allocator that significantly reduces lock contention
  5852.  
  5853. $as_echo "#define USE_THREAD_ALLOC 1" >>confdefs.h
  5854.  
  5855.  
  5856. $as_echo "#define _REENTRANT 1" >>confdefs.h
  5857.  
  5858. if test "`uname -s`" = "SunOS" ; then
  5859.  
  5860. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5861.  
  5862. fi
  5863.  
  5864. $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
  5865.  
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
  5867. $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
  5868. if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
  5869. $as_echo_n "(cached) " >&6
  5870. else
  5871. ac_check_lib_save_LIBS=$LIBS
  5872. LIBS="-lpthread $LIBS"
  5873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5874. /* end confdefs.h. */
  5875.  
  5876. /* Override any GCC internal prototype to avoid an error.
  5877. Use char because int might match the return type of a GCC
  5878. builtin and then its argument prototype would still apply. */
  5879. #ifdef __cplusplus
  5880. extern "C"
  5881. #endif
  5882. char pthread_mutex_init ();
  5883. int
  5884. main ()
  5885. {
  5886. return pthread_mutex_init ();
  5887. ;
  5888. return 0;
  5889. }
  5890. _ACEOF
  5891. if ac_fn_c_try_link "$LINENO"; then :
  5892. ac_cv_lib_pthread_pthread_mutex_init=yes
  5893. else
  5894. ac_cv_lib_pthread_pthread_mutex_init=no
  5895. fi
  5896. rm -f core conftest.err conftest.$ac_objext \
  5897. conftest$ac_exeext conftest.$ac_ext
  5898. LIBS=$ac_check_lib_save_LIBS
  5899. fi
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  5901. $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
  5902. if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
  5903. tcl_ok=yes
  5904. else
  5905. tcl_ok=no
  5906. fi
  5907.  
  5908. if test "$tcl_ok" = "no"; then
  5909. # Check a little harder for __pthread_mutex_init in the same
  5910. # library, as some systems hide it there until pthread.h is
  5911. # defined. We could alternatively do an AC_TRY_COMPILE with
  5912. # pthread.h, but that will work with libpthread really doesn't
  5913. # exist, like AIX 4.2. [Bug: 4359]
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
  5915. $as_echo_n "checking for __pthread_mutex_init in -lpthread... " >&6; }
  5916. if ${ac_cv_lib_pthread___pthread_mutex_init+:} false; then :
  5917. $as_echo_n "(cached) " >&6
  5918. else
  5919. ac_check_lib_save_LIBS=$LIBS
  5920. LIBS="-lpthread $LIBS"
  5921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5922. /* end confdefs.h. */
  5923.  
  5924. /* Override any GCC internal prototype to avoid an error.
  5925. Use char because int might match the return type of a GCC
  5926. builtin and then its argument prototype would still apply. */
  5927. #ifdef __cplusplus
  5928. extern "C"
  5929. #endif
  5930. char __pthread_mutex_init ();
  5931. int
  5932. main ()
  5933. {
  5934. return __pthread_mutex_init ();
  5935. ;
  5936. return 0;
  5937. }
  5938. _ACEOF
  5939. if ac_fn_c_try_link "$LINENO"; then :
  5940. ac_cv_lib_pthread___pthread_mutex_init=yes
  5941. else
  5942. ac_cv_lib_pthread___pthread_mutex_init=no
  5943. fi
  5944. rm -f core conftest.err conftest.$ac_objext \
  5945. conftest$ac_exeext conftest.$ac_ext
  5946. LIBS=$ac_check_lib_save_LIBS
  5947. fi
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  5949. $as_echo "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
  5950. if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes; then :
  5951. tcl_ok=yes
  5952. else
  5953. tcl_ok=no
  5954. fi
  5955.  
  5956. fi
  5957.  
  5958. if test "$tcl_ok" = "yes"; then
  5959. # The space is needed
  5960. THREADS_LIBS=" -lpthread"
  5961. else
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
  5963. $as_echo_n "checking for pthread_mutex_init in -lpthreads... " >&6; }
  5964. if ${ac_cv_lib_pthreads_pthread_mutex_init+:} false; then :
  5965. $as_echo_n "(cached) " >&6
  5966. else
  5967. ac_check_lib_save_LIBS=$LIBS
  5968. LIBS="-lpthreads $LIBS"
  5969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5970. /* end confdefs.h. */
  5971.  
  5972. /* Override any GCC internal prototype to avoid an error.
  5973. Use char because int might match the return type of a GCC
  5974. builtin and then its argument prototype would still apply. */
  5975. #ifdef __cplusplus
  5976. extern "C"
  5977. #endif
  5978. char pthread_mutex_init ();
  5979. int
  5980. main ()
  5981. {
  5982. return pthread_mutex_init ();
  5983. ;
  5984. return 0;
  5985. }
  5986. _ACEOF
  5987. if ac_fn_c_try_link "$LINENO"; then :
  5988. ac_cv_lib_pthreads_pthread_mutex_init=yes
  5989. else
  5990. ac_cv_lib_pthreads_pthread_mutex_init=no
  5991. fi
  5992. rm -f core conftest.err conftest.$ac_objext \
  5993. conftest$ac_exeext conftest.$ac_ext
  5994. LIBS=$ac_check_lib_save_LIBS
  5995. fi
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  5997. $as_echo "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
  5998. if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes; then :
  5999. tcl_ok=yes
  6000. else
  6001. tcl_ok=no
  6002. fi
  6003.  
  6004. if test "$tcl_ok" = "yes"; then
  6005. # The space is needed
  6006. THREADS_LIBS=" -lpthreads"
  6007. else
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
  6009. $as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
  6010. if ${ac_cv_lib_c_pthread_mutex_init+:} false; then :
  6011. $as_echo_n "(cached) " >&6
  6012. else
  6013. ac_check_lib_save_LIBS=$LIBS
  6014. LIBS="-lc $LIBS"
  6015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6016. /* end confdefs.h. */
  6017.  
  6018. /* Override any GCC internal prototype to avoid an error.
  6019. Use char because int might match the return type of a GCC
  6020. builtin and then its argument prototype would still apply. */
  6021. #ifdef __cplusplus
  6022. extern "C"
  6023. #endif
  6024. char pthread_mutex_init ();
  6025. int
  6026. main ()
  6027. {
  6028. return pthread_mutex_init ();
  6029. ;
  6030. return 0;
  6031. }
  6032. _ACEOF
  6033. if ac_fn_c_try_link "$LINENO"; then :
  6034. ac_cv_lib_c_pthread_mutex_init=yes
  6035. else
  6036. ac_cv_lib_c_pthread_mutex_init=no
  6037. fi
  6038. rm -f core conftest.err conftest.$ac_objext \
  6039. conftest$ac_exeext conftest.$ac_ext
  6040. LIBS=$ac_check_lib_save_LIBS
  6041. fi
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
  6043. $as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
  6044. if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then :
  6045. tcl_ok=yes
  6046. else
  6047. tcl_ok=no
  6048. fi
  6049.  
  6050. if test "$tcl_ok" = "no"; then
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
  6052. $as_echo_n "checking for pthread_mutex_init in -lc_r... " >&6; }
  6053. if ${ac_cv_lib_c_r_pthread_mutex_init+:} false; then :
  6054. $as_echo_n "(cached) " >&6
  6055. else
  6056. ac_check_lib_save_LIBS=$LIBS
  6057. LIBS="-lc_r $LIBS"
  6058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6059. /* end confdefs.h. */
  6060.  
  6061. /* Override any GCC internal prototype to avoid an error.
  6062. Use char because int might match the return type of a GCC
  6063. builtin and then its argument prototype would still apply. */
  6064. #ifdef __cplusplus
  6065. extern "C"
  6066. #endif
  6067. char pthread_mutex_init ();
  6068. int
  6069. main ()
  6070. {
  6071. return pthread_mutex_init ();
  6072. ;
  6073. return 0;
  6074. }
  6075. _ACEOF
  6076. if ac_fn_c_try_link "$LINENO"; then :
  6077. ac_cv_lib_c_r_pthread_mutex_init=yes
  6078. else
  6079. ac_cv_lib_c_r_pthread_mutex_init=no
  6080. fi
  6081. rm -f core conftest.err conftest.$ac_objext \
  6082. conftest$ac_exeext conftest.$ac_ext
  6083. LIBS=$ac_check_lib_save_LIBS
  6084. fi
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
  6086. $as_echo "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
  6087. if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes; then :
  6088. tcl_ok=yes
  6089. else
  6090. tcl_ok=no
  6091. fi
  6092.  
  6093. if test "$tcl_ok" = "yes"; then
  6094. # The space is needed
  6095. THREADS_LIBS=" -pthread"
  6096. else
  6097. TCL_THREADS=0
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
  6099. $as_echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
  6100. fi
  6101. fi
  6102. fi
  6103. fi
  6104. fi
  6105. else
  6106. TCL_THREADS=0
  6107. fi
  6108. # Do checking message here to not mess up interleaved configure output
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
  6110. $as_echo_n "checking for building with threads... " >&6; }
  6111. if test "${TCL_THREADS}" = 1; then
  6112.  
  6113. $as_echo "#define TCL_THREADS 1" >>confdefs.h
  6114.  
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
  6116. $as_echo "yes (default)" >&6; }
  6117. else
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6119. $as_echo "no" >&6; }
  6120. fi
  6121. # TCL_THREADS sanity checking. See if our request for building with
  6122. # threads is the same as the way Tcl was built. If not, warn the user.
  6123. case ${TCL_DEFS} in
  6124. *THREADS=1*)
  6125. if test "${TCL_THREADS}" = "0"; then
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  6127. Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
  6128. that IS thread-enabled. It is recommended to use --enable-threads." >&5
  6129. $as_echo "$as_me: WARNING:
  6130. Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
  6131. that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
  6132. fi
  6133. ;;
  6134. *)
  6135. if test "${TCL_THREADS}" = "1"; then
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  6137. --enable-threads requested, but building against a Tcl that is NOT
  6138. thread-enabled. This is an OK configuration that will also run in
  6139. a thread-enabled core." >&5
  6140. $as_echo "$as_me: WARNING:
  6141. --enable-threads requested, but building against a Tcl that is NOT
  6142. thread-enabled. This is an OK configuration that will also run in
  6143. a thread-enabled core." >&2;}
  6144. fi
  6145. ;;
  6146. esac
  6147.  
  6148.  
  6149.  
  6150. #--------------------------------------------------------------------
  6151. # The statement below defines a collection of symbols related to
  6152. # building as a shared library instead of a static library.
  6153. #--------------------------------------------------------------------
  6154.  
  6155.  
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
  6157. $as_echo_n "checking how to build libraries... " >&6; }
  6158. # Check whether --enable-shared was given.
  6159. if test "${enable_shared+set}" = set; then :
  6160. enableval=$enable_shared; shared_ok=$enableval
  6161. else
  6162. shared_ok=yes
  6163. fi
  6164.  
  6165.  
  6166. if test "${enable_shared+set}" = set; then
  6167. enableval="$enable_shared"
  6168. shared_ok=$enableval
  6169. else
  6170. shared_ok=yes
  6171. fi
  6172.  
  6173. # Check whether --enable-stubs was given.
  6174. if test "${enable_stubs+set}" = set; then :
  6175. enableval=$enable_stubs; stubs_ok=$enableval
  6176. else
  6177. stubs_ok=yes
  6178. fi
  6179.  
  6180.  
  6181. if test "${enable_stubs+set}" = set; then
  6182. enableval="$enable_stubs"
  6183. stubs_ok=$enableval
  6184. else
  6185. stubs_ok=yes
  6186. fi
  6187.  
  6188. # Stubs are always enabled for shared builds
  6189. if test "$shared_ok" = "yes" ; then
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
  6191. $as_echo "shared" >&6; }
  6192. SHARED_BUILD=1
  6193. STUBS_BUILD=1
  6194. else
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
  6196. $as_echo "static" >&6; }
  6197. SHARED_BUILD=0
  6198.  
  6199. $as_echo "#define STATIC_BUILD 1" >>confdefs.h
  6200.  
  6201. if test "$stubs_ok" = "yes" ; then
  6202. STUBS_BUILD=1
  6203. else
  6204. STUBS_BUILD=0
  6205. fi
  6206. fi
  6207. if test "${STUBS_BUILD}" = "1" ; then
  6208.  
  6209. $as_echo "#define USE_TCL_STUBS 1" >>confdefs.h
  6210.  
  6211.  
  6212. $as_echo "#define USE_TCLOO_STUBS 1" >>confdefs.h
  6213.  
  6214. if test "${TEA_WINDOWINGSYSTEM}" != ""; then
  6215.  
  6216. $as_echo "#define USE_TK_STUBS 1" >>confdefs.h
  6217.  
  6218. fi
  6219. fi
  6220.  
  6221.  
  6222.  
  6223.  
  6224.  
  6225. #--------------------------------------------------------------------
  6226. # This macro figures out what flags to use with the compiler/linker
  6227. # when building shared/static debug/optimized objects. This information
  6228. # can be taken from the tclConfig.sh file, but this figures it all out.
  6229. #--------------------------------------------------------------------
  6230.  
  6231. if test -n "$ac_tool_prefix"; then
  6232. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6233. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6235. $as_echo_n "checking for $ac_word... " >&6; }
  6236. if ${ac_cv_prog_RANLIB+:} false; then :
  6237. $as_echo_n "(cached) " >&6
  6238. else
  6239. if test -n "$RANLIB"; then
  6240. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6241. else
  6242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6243. for as_dir in $PATH
  6244. do
  6245. IFS=$as_save_IFS
  6246. test -z "$as_dir" && as_dir=.
  6247. for ac_exec_ext in '' $ac_executable_extensions; do
  6248. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6249. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6251. break 2
  6252. fi
  6253. done
  6254. done
  6255. IFS=$as_save_IFS
  6256.  
  6257. fi
  6258. fi
  6259. RANLIB=$ac_cv_prog_RANLIB
  6260. if test -n "$RANLIB"; then
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6262. $as_echo "$RANLIB" >&6; }
  6263. else
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6265. $as_echo "no" >&6; }
  6266. fi
  6267.  
  6268.  
  6269. fi
  6270. if test -z "$ac_cv_prog_RANLIB"; then
  6271. ac_ct_RANLIB=$RANLIB
  6272. # Extract the first word of "ranlib", so it can be a program name with args.
  6273. set dummy ranlib; ac_word=$2
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6275. $as_echo_n "checking for $ac_word... " >&6; }
  6276. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6277. $as_echo_n "(cached) " >&6
  6278. else
  6279. if test -n "$ac_ct_RANLIB"; then
  6280. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6281. else
  6282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6283. for as_dir in $PATH
  6284. do
  6285. IFS=$as_save_IFS
  6286. test -z "$as_dir" && as_dir=.
  6287. for ac_exec_ext in '' $ac_executable_extensions; do
  6288. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6289. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6291. break 2
  6292. fi
  6293. done
  6294. done
  6295. IFS=$as_save_IFS
  6296.  
  6297. fi
  6298. fi
  6299. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6300. if test -n "$ac_ct_RANLIB"; then
  6301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6302. $as_echo "$ac_ct_RANLIB" >&6; }
  6303. else
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6305. $as_echo "no" >&6; }
  6306. fi
  6307.  
  6308. if test "x$ac_ct_RANLIB" = x; then
  6309. RANLIB=":"
  6310. else
  6311. case $cross_compiling:$ac_tool_warned in
  6312. yes:)
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6314. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6315. ac_tool_warned=yes ;;
  6316. esac
  6317. RANLIB=$ac_ct_RANLIB
  6318. fi
  6319. else
  6320. RANLIB="$ac_cv_prog_RANLIB"
  6321. fi
  6322.  
  6323.  
  6324.  
  6325.  
  6326. # Step 0.a: Enable 64 bit support?
  6327.  
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
  6329. $as_echo_n "checking if 64bit support is requested... " >&6; }
  6330. # Check whether --enable-64bit was given.
  6331. if test "${enable_64bit+set}" = set; then :
  6332. enableval=$enable_64bit; do64bit=$enableval
  6333. else
  6334. do64bit=no
  6335. fi
  6336.  
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
  6338. $as_echo "$do64bit" >&6; }
  6339.  
  6340. # Step 0.b: Enable Solaris 64 bit VIS support?
  6341.  
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
  6343. $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
  6344. # Check whether --enable-64bit-vis was given.
  6345. if test "${enable_64bit_vis+set}" = set; then :
  6346. enableval=$enable_64bit_vis; do64bitVIS=$enableval
  6347. else
  6348. do64bitVIS=no
  6349. fi
  6350.  
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
  6352. $as_echo "$do64bitVIS" >&6; }
  6353. # Force 64bit on with VIS
  6354. if test "$do64bitVIS" = "yes"; then :
  6355. do64bit=yes
  6356. fi
  6357.  
  6358. # Step 0.c: Check if visibility support is available. Do this here so
  6359. # that platform specific alternatives can be used below if this fails.
  6360.  
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
  6362. $as_echo_n "checking if compiler supports visibility \"hidden\"... " >&6; }
  6363. if ${tcl_cv_cc_visibility_hidden+:} false; then :
  6364. $as_echo_n "(cached) " >&6
  6365. else
  6366.  
  6367. hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
  6368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6369. /* end confdefs.h. */
  6370.  
  6371. extern __attribute__((__visibility__("hidden"))) void f(void);
  6372. void f(void) {}
  6373. int
  6374. main ()
  6375. {
  6376. f();
  6377. ;
  6378. return 0;
  6379. }
  6380. _ACEOF
  6381. if ac_fn_c_try_link "$LINENO"; then :
  6382. tcl_cv_cc_visibility_hidden=yes
  6383. else
  6384. tcl_cv_cc_visibility_hidden=no
  6385. fi
  6386. rm -f core conftest.err conftest.$ac_objext \
  6387. conftest$ac_exeext conftest.$ac_ext
  6388. CFLAGS=$hold_cflags
  6389. fi
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
  6391. $as_echo "$tcl_cv_cc_visibility_hidden" >&6; }
  6392. if test $tcl_cv_cc_visibility_hidden = yes; then :
  6393.  
  6394.  
  6395. $as_echo "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
  6396.  
  6397.  
  6398. $as_echo "#define HAVE_HIDDEN 1" >>confdefs.h
  6399.  
  6400.  
  6401. fi
  6402.  
  6403. # Step 0.d: Disable -rpath support?
  6404.  
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
  6406. $as_echo_n "checking if rpath support is requested... " >&6; }
  6407. # Check whether --enable-rpath was given.
  6408. if test "${enable_rpath+set}" = set; then :
  6409. enableval=$enable_rpath; doRpath=$enableval
  6410. else
  6411. doRpath=yes
  6412. fi
  6413.  
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
  6415. $as_echo "$doRpath" >&6; }
  6416.  
  6417. # TEA specific: Cross-compiling options for Windows/CE builds?
  6418.  
  6419. if test "${TEA_PLATFORM}" = windows; then :
  6420.  
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Windows/CE build is requested" >&5
  6422. $as_echo_n "checking if Windows/CE build is requested... " >&6; }
  6423. # Check whether --enable-wince was given.
  6424. if test "${enable_wince+set}" = set; then :
  6425. enableval=$enable_wince; doWince=$enableval
  6426. else
  6427. doWince=no
  6428. fi
  6429.  
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doWince" >&5
  6431. $as_echo "$doWince" >&6; }
  6432.  
  6433. fi
  6434.  
  6435. # Set the variable "system" to hold the name and version number
  6436. # for the system.
  6437.  
  6438.  
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
  6440. $as_echo_n "checking system version... " >&6; }
  6441. if ${tcl_cv_sys_version+:} false; then :
  6442. $as_echo_n "(cached) " >&6
  6443. else
  6444.  
  6445. # TEA specific:
  6446. if test "${TEA_PLATFORM}" = "windows" ; then
  6447. tcl_cv_sys_version=windows
  6448. else
  6449. tcl_cv_sys_version=`uname -s`-`uname -r`
  6450. if test "$?" -ne 0 ; then
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
  6452. $as_echo "$as_me: WARNING: can't find uname command" >&2;}
  6453. tcl_cv_sys_version=unknown
  6454. else
  6455. if test "`uname -s`" = "AIX" ; then
  6456. tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
  6457. fi
  6458. fi
  6459. fi
  6460.  
  6461. fi
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
  6463. $as_echo "$tcl_cv_sys_version" >&6; }
  6464. system=$tcl_cv_sys_version
  6465.  
  6466.  
  6467. # Require ranlib early so we can override it in special cases below.
  6468.  
  6469.  
  6470.  
  6471. # Set configuration options based on system name and version.
  6472. # This is similar to Tcl's unix/tcl.m4 except that we've added a
  6473. # "windows" case and removed some core-only vars.
  6474.  
  6475. do64bit_ok=no
  6476. # default to '{$LIBS}' and set to "" on per-platform necessary basis
  6477. SHLIB_LD_LIBS='${LIBS}'
  6478. # When ld needs options to work in 64-bit mode, put them in
  6479. # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
  6480. # is disabled by the user. [Bug 1016796]
  6481. LDFLAGS_ARCH=""
  6482. UNSHARED_LIB_SUFFIX=""
  6483. # TEA specific: use PACKAGE_VERSION instead of VERSION
  6484. TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
  6485. ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
  6486. TCL_LIB_VERSIONS_OK=ok
  6487. CFLAGS_DEBUG=-g
  6488. if test "$GCC" = yes; then :
  6489.  
  6490. CFLAGS_OPTIMIZE=-O2
  6491. CFLAGS_WARNING="-Wall"
  6492.  
  6493. else
  6494.  
  6495. CFLAGS_OPTIMIZE=-O
  6496. CFLAGS_WARNING=""
  6497.  
  6498. fi
  6499. if test -n "$ac_tool_prefix"; then
  6500. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6501. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6503. $as_echo_n "checking for $ac_word... " >&6; }
  6504. if ${ac_cv_prog_AR+:} false; then :
  6505. $as_echo_n "(cached) " >&6
  6506. else
  6507. if test -n "$AR"; then
  6508. ac_cv_prog_AR="$AR" # Let the user override the test.
  6509. else
  6510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6511. for as_dir in $PATH
  6512. do
  6513. IFS=$as_save_IFS
  6514. test -z "$as_dir" && as_dir=.
  6515. for ac_exec_ext in '' $ac_executable_extensions; do
  6516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6517. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6519. break 2
  6520. fi
  6521. done
  6522. done
  6523. IFS=$as_save_IFS
  6524.  
  6525. fi
  6526. fi
  6527. AR=$ac_cv_prog_AR
  6528. if test -n "$AR"; then
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6530. $as_echo "$AR" >&6; }
  6531. else
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6533. $as_echo "no" >&6; }
  6534. fi
  6535.  
  6536.  
  6537. fi
  6538. if test -z "$ac_cv_prog_AR"; then
  6539. ac_ct_AR=$AR
  6540. # Extract the first word of "ar", so it can be a program name with args.
  6541. set dummy ar; ac_word=$2
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6543. $as_echo_n "checking for $ac_word... " >&6; }
  6544. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6545. $as_echo_n "(cached) " >&6
  6546. else
  6547. if test -n "$ac_ct_AR"; then
  6548. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6549. else
  6550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6551. for as_dir in $PATH
  6552. do
  6553. IFS=$as_save_IFS
  6554. test -z "$as_dir" && as_dir=.
  6555. for ac_exec_ext in '' $ac_executable_extensions; do
  6556. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6557. ac_cv_prog_ac_ct_AR="ar"
  6558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6559. break 2
  6560. fi
  6561. done
  6562. done
  6563. IFS=$as_save_IFS
  6564.  
  6565. fi
  6566. fi
  6567. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6568. if test -n "$ac_ct_AR"; then
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6570. $as_echo "$ac_ct_AR" >&6; }
  6571. else
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6573. $as_echo "no" >&6; }
  6574. fi
  6575.  
  6576. if test "x$ac_ct_AR" = x; then
  6577. AR=""
  6578. else
  6579. case $cross_compiling:$ac_tool_warned in
  6580. yes:)
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6582. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6583. ac_tool_warned=yes ;;
  6584. esac
  6585. AR=$ac_ct_AR
  6586. fi
  6587. else
  6588. AR="$ac_cv_prog_AR"
  6589. fi
  6590.  
  6591. STLIB_LD='${AR} cr'
  6592. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  6593. if test "x$SHLIB_VERSION" = x; then :
  6594. SHLIB_VERSION=""
  6595. else
  6596. SHLIB_VERSION=".$SHLIB_VERSION"
  6597. fi
  6598. case $system in
  6599. # TEA specific:
  6600. windows)
  6601. # This is a 2-stage check to make sure we have the 64-bit SDK
  6602. # We have to know where the SDK is installed.
  6603. # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
  6604. # MACHINE is IX86 for LINK, but this is used by the manifest,
  6605. # which requires x86|amd64|ia64.
  6606. MACHINE="X86"
  6607. if test "$do64bit" != "no" ; then
  6608. if test "x${MSSDK}x" = "xx" ; then
  6609. MSSDK="C:/Progra~1/Microsoft Platform SDK"
  6610. fi
  6611. MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'`
  6612. PATH64=""
  6613. case "$do64bit" in
  6614. amd64|x64|yes)
  6615. MACHINE="AMD64" ; # default to AMD64 64-bit build
  6616. PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
  6617. ;;
  6618. ia64)
  6619. MACHINE="IA64"
  6620. PATH64="${MSSDK}/Bin/Win64"
  6621. ;;
  6622. esac
  6623. if test "$GCC" != "yes" -a ! -d "${PATH64}" ; then
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5
  6625. $as_echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;}
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ensure latest Platform SDK is installed" >&5
  6627. $as_echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;}
  6628. do64bit="no"
  6629. else
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using 64-bit $MACHINE mode" >&5
  6631. $as_echo " Using 64-bit $MACHINE mode" >&6; }
  6632. do64bit_ok="yes"
  6633. fi
  6634. fi
  6635.  
  6636. if test "$doWince" != "no" ; then
  6637. if test "$do64bit" != "no" ; then
  6638. as_fn_error $? "Windows/CE and 64-bit builds incompatible" "$LINENO" 5
  6639. fi
  6640. if test "$GCC" = "yes" ; then
  6641. as_fn_error $? "Windows/CE and GCC builds incompatible" "$LINENO" 5
  6642. fi
  6643.  
  6644. # First, look for one uninstalled.
  6645. # the alternative search directory is invoked by --with-celib
  6646.  
  6647. if test x"${no_celib}" = x ; then
  6648. # we reset no_celib in case something fails here
  6649. no_celib=true
  6650.  
  6651. # Check whether --with-celib was given.
  6652. if test "${with_celib+set}" = set; then :
  6653. withval=$with_celib; with_celibconfig=${withval}
  6654. fi
  6655.  
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows/CE celib directory" >&5
  6657. $as_echo_n "checking for Windows/CE celib directory... " >&6; }
  6658. if ${ac_cv_c_celibconfig+:} false; then :
  6659. $as_echo_n "(cached) " >&6
  6660. else
  6661.  
  6662. # First check to see if --with-celibconfig was specified.
  6663. if test x"${with_celibconfig}" != x ; then
  6664. if test -d "${with_celibconfig}/inc" ; then
  6665. ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
  6666. else
  6667. as_fn_error $? "${with_celibconfig} directory doesn't contain inc directory" "$LINENO" 5
  6668. fi
  6669. fi
  6670.  
  6671. # then check for a celib library
  6672. if test x"${ac_cv_c_celibconfig}" = x ; then
  6673. for i in \
  6674. ../celib-palm-3.0 \
  6675. ../celib \
  6676. ../../celib-palm-3.0 \
  6677. ../../celib \
  6678. `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
  6679. ${srcdir}/../celib-palm-3.0 \
  6680. ${srcdir}/../celib \
  6681. `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
  6682. ; do
  6683. if test -d "$i/inc" ; then
  6684. ac_cv_c_celibconfig=`(cd $i; pwd)`
  6685. break
  6686. fi
  6687. done
  6688. fi
  6689.  
  6690. fi
  6691.  
  6692. if test x"${ac_cv_c_celibconfig}" = x ; then
  6693. as_fn_error $? "Cannot find celib support library directory" "$LINENO" 5
  6694. else
  6695. no_celib=
  6696. CELIB_DIR=${ac_cv_c_celibconfig}
  6697. CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $CELIB_DIR" >&5
  6699. $as_echo "found $CELIB_DIR" >&6; }
  6700. fi
  6701. fi
  6702.  
  6703. # Set defaults for common evc4/PPC2003 setup
  6704. # Currently Tcl requires 300+, possibly 420+ for sockets
  6705. CEVERSION=420; # could be 211 300 301 400 420 ...
  6706. TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ...
  6707. ARCH=ARM; # could be ARM MIPS X86EM ...
  6708. PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
  6709. if test "$doWince" != "yes"; then
  6710. # If !yes then the user specified something
  6711. # Reset ARCH to allow user to skip specifying it
  6712. ARCH=
  6713. eval `echo $doWince | awk -F, '{ \
  6714. if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
  6715. if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
  6716. if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
  6717. if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
  6718. if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
  6719. }'`
  6720. if test "x${ARCH}" = "x" ; then
  6721. ARCH=$TARGETCPU;
  6722. fi
  6723. fi
  6724. OSVERSION=WCE$CEVERSION;
  6725. if test "x${WCEROOT}" = "x" ; then
  6726. WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
  6727. if test ! -d "${WCEROOT}" ; then
  6728. WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
  6729. fi
  6730. fi
  6731. if test "x${SDKROOT}" = "x" ; then
  6732. SDKROOT="C:/Program Files/Windows CE Tools"
  6733. if test ! -d "${SDKROOT}" ; then
  6734. SDKROOT="C:/Windows CE Tools"
  6735. fi
  6736. fi
  6737. WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
  6738. SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
  6739. if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
  6740. -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
  6741. as_fn_error $? "could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" "$LINENO" 5
  6742. doWince="no"
  6743. else
  6744. # We could PATH_NOSPACE these, but that's not important,
  6745. # as long as we quote them when used.
  6746. CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
  6747. if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
  6748. CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
  6749. fi
  6750. CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
  6751. fi
  6752. fi
  6753.  
  6754. if test "$GCC" != "yes" ; then
  6755. if test "${SHARED_BUILD}" = "0" ; then
  6756. runtime=-MT
  6757. else
  6758. runtime=-MD
  6759. fi
  6760. case "x`echo \${VisualStudioVersion}`" in
  6761. x1[4-9]*)
  6762. lflags="${lflags} -nodefaultlib:libucrt.lib"
  6763.  
  6764. vars="ucrt.lib"
  6765. for i in $vars; do
  6766. if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
  6767. # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
  6768. i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
  6769. fi
  6770. PKG_LIBS="$PKG_LIBS $i"
  6771. done
  6772.  
  6773.  
  6774. ;;
  6775. *)
  6776. ;;
  6777. esac
  6778.  
  6779. if test "$do64bit" != "no" ; then
  6780. # All this magic is necessary for the Win64 SDK RC1 - hobbs
  6781. CC="\"${PATH64}/cl.exe\""
  6782. CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\""
  6783. RC="\"${MSSDK}/bin/rc.exe\""
  6784. lflags="${lflags} -nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
  6785. LINKBIN="\"${PATH64}/link.exe\""
  6786. CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
  6787. CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
  6788. # Avoid 'unresolved external symbol __security_cookie'
  6789. # errors, c.f. http://support.microsoft.com/?id=894573
  6790.  
  6791. vars="bufferoverflowU.lib"
  6792. for i in $vars; do
  6793. if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
  6794. # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
  6795. i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
  6796. fi
  6797. PKG_LIBS="$PKG_LIBS $i"
  6798. done
  6799.  
  6800.  
  6801. elif test "$doWince" != "no" ; then
  6802. CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
  6803. if test "${TARGETCPU}" = "X86"; then
  6804. CC="\"${CEBINROOT}/cl.exe\""
  6805. else
  6806. CC="\"${CEBINROOT}/cl${ARCH}.exe\""
  6807. fi
  6808. CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
  6809. RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
  6810. arch=`echo ${ARCH} | awk '{print tolower($0)}'`
  6811. defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
  6812. if test "${SHARED_BUILD}" = "1" ; then
  6813. # Static CE builds require static celib as well
  6814. defs="${defs} _DLL"
  6815. fi
  6816. for i in $defs ; do
  6817.  
  6818. cat >>confdefs.h <<_ACEOF
  6819. #define $i 1
  6820. _ACEOF
  6821.  
  6822. done
  6823.  
  6824. cat >>confdefs.h <<_ACEOF
  6825. #define _WIN32_WCE $CEVERSION
  6826. _ACEOF
  6827.  
  6828.  
  6829. cat >>confdefs.h <<_ACEOF
  6830. #define UNDER_CE $CEVERSION
  6831. _ACEOF
  6832.  
  6833. CFLAGS_DEBUG="-nologo -Zi -Od"
  6834. CFLAGS_OPTIMIZE="-nologo -Ox"
  6835. lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
  6836. lflags="${lflags} -MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
  6837. LINKBIN="\"${CEBINROOT}/link.exe\""
  6838.  
  6839. else
  6840. RC="rc"
  6841. lflags="${lflags} -nologo"
  6842. LINKBIN="link"
  6843. CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
  6844. CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
  6845. fi
  6846. fi
  6847.  
  6848. if test "$GCC" = "yes"; then
  6849. # mingw gcc mode
  6850. if test -n "$ac_tool_prefix"; then
  6851. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  6852. set dummy ${ac_tool_prefix}windres; ac_word=$2
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6854. $as_echo_n "checking for $ac_word... " >&6; }
  6855. if ${ac_cv_prog_RC+:} false; then :
  6856. $as_echo_n "(cached) " >&6
  6857. else
  6858. if test -n "$RC"; then
  6859. ac_cv_prog_RC="$RC" # Let the user override the test.
  6860. else
  6861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6862. for as_dir in $PATH
  6863. do
  6864. IFS=$as_save_IFS
  6865. test -z "$as_dir" && as_dir=.
  6866. for ac_exec_ext in '' $ac_executable_extensions; do
  6867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6868. ac_cv_prog_RC="${ac_tool_prefix}windres"
  6869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6870. break 2
  6871. fi
  6872. done
  6873. done
  6874. IFS=$as_save_IFS
  6875.  
  6876. fi
  6877. fi
  6878. RC=$ac_cv_prog_RC
  6879. if test -n "$RC"; then
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  6881. $as_echo "$RC" >&6; }
  6882. else
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6884. $as_echo "no" >&6; }
  6885. fi
  6886.  
  6887.  
  6888. fi
  6889. if test -z "$ac_cv_prog_RC"; then
  6890. ac_ct_RC=$RC
  6891. # Extract the first word of "windres", so it can be a program name with args.
  6892. set dummy windres; ac_word=$2
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6894. $as_echo_n "checking for $ac_word... " >&6; }
  6895. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  6896. $as_echo_n "(cached) " >&6
  6897. else
  6898. if test -n "$ac_ct_RC"; then
  6899. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  6900. else
  6901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6902. for as_dir in $PATH
  6903. do
  6904. IFS=$as_save_IFS
  6905. test -z "$as_dir" && as_dir=.
  6906. for ac_exec_ext in '' $ac_executable_extensions; do
  6907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6908. ac_cv_prog_ac_ct_RC="windres"
  6909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6910. break 2
  6911. fi
  6912. done
  6913. done
  6914. IFS=$as_save_IFS
  6915.  
  6916. fi
  6917. fi
  6918. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  6919. if test -n "$ac_ct_RC"; then
  6920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  6921. $as_echo "$ac_ct_RC" >&6; }
  6922. else
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6924. $as_echo "no" >&6; }
  6925. fi
  6926.  
  6927. if test "x$ac_ct_RC" = x; then
  6928. RC=""
  6929. else
  6930. case $cross_compiling:$ac_tool_warned in
  6931. yes:)
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6933. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6934. ac_tool_warned=yes ;;
  6935. esac
  6936. RC=$ac_ct_RC
  6937. fi
  6938. else
  6939. RC="$ac_cv_prog_RC"
  6940. fi
  6941.  
  6942. CFLAGS_DEBUG="-g"
  6943. CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
  6944. SHLIB_LD='${CC} -shared'
  6945. UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
  6946. LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
  6947. LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
  6948.  
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
  6950. $as_echo_n "checking for cross-compile version of gcc... " >&6; }
  6951. if ${ac_cv_cross+:} false; then :
  6952. $as_echo_n "(cached) " >&6
  6953. else
  6954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6955. /* end confdefs.h. */
  6956.  
  6957. #ifdef _WIN32
  6958. #error cross-compiler
  6959. #endif
  6960.  
  6961. int
  6962. main ()
  6963. {
  6964.  
  6965. ;
  6966. return 0;
  6967. }
  6968. _ACEOF
  6969. if ac_fn_c_try_compile "$LINENO"; then :
  6970. ac_cv_cross=yes
  6971. else
  6972. ac_cv_cross=no
  6973. fi
  6974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6975.  
  6976. fi
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
  6978. $as_echo "$ac_cv_cross" >&6; }
  6979. if test "$ac_cv_cross" = "yes"; then
  6980. case "$do64bit" in
  6981. amd64|x64|yes)
  6982. CC="x86_64-w64-mingw32-gcc"
  6983. LD="x86_64-w64-mingw32-ld"
  6984. AR="x86_64-w64-mingw32-ar"
  6985. RANLIB="x86_64-w64-mingw32-ranlib"
  6986. RC="x86_64-w64-mingw32-windres"
  6987. ;;
  6988. *)
  6989. CC="i686-w64-mingw32-gcc"
  6990. LD="i686-w64-mingw32-ld"
  6991. AR="i686-w64-mingw32-ar"
  6992. RANLIB="i686-w64-mingw32-ranlib"
  6993. RC="i686-w64-mingw32-windres"
  6994. ;;
  6995. esac
  6996. fi
  6997.  
  6998. else
  6999. SHLIB_LD="${LINKBIN} -dll ${lflags}"
  7000. # link -lib only works when -lib is the first arg
  7001. STLIB_LD="${LINKBIN} -lib ${lflags}"
  7002. UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
  7003. PATHTYPE=-w
  7004. # For information on what debugtype is most useful, see:
  7005. # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
  7006. # and also
  7007. # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
  7008. # This essentially turns it all on.
  7009. LDFLAGS_DEBUG="-debug -debugtype:cv"
  7010. LDFLAGS_OPTIMIZE="-release"
  7011. if test "$doWince" != "no" ; then
  7012. LDFLAGS_CONSOLE="-link ${lflags}"
  7013. LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
  7014. else
  7015. LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
  7016. LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
  7017. fi
  7018. fi
  7019.  
  7020. SHLIB_SUFFIX=".dll"
  7021. SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
  7022.  
  7023. TCL_LIB_VERSIONS_OK=nodots
  7024. ;;
  7025. AIX-*)
  7026. if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then :
  7027.  
  7028. # AIX requires the _r compiler when gcc isn't being used
  7029. case "${CC}" in
  7030. *_r|*_r\ *)
  7031. # ok ...
  7032. ;;
  7033. *)
  7034. # Make sure only first arg gets _r
  7035. CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
  7036. ;;
  7037. esac
  7038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
  7039. $as_echo "Using $CC for compiling with threads" >&6; }
  7040.  
  7041. fi
  7042. LIBS="$LIBS -lc"
  7043. SHLIB_CFLAGS=""
  7044. SHLIB_SUFFIX=".so"
  7045.  
  7046. LD_LIBRARY_PATH_VAR="LIBPATH"
  7047.  
  7048. # Check to enable 64-bit flags for compiler/linker
  7049. if test "$do64bit" = yes; then :
  7050.  
  7051. if test "$GCC" = yes; then :
  7052.  
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
  7054. $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
  7055.  
  7056. else
  7057.  
  7058. do64bit_ok=yes
  7059. CFLAGS="$CFLAGS -q64"
  7060. LDFLAGS_ARCH="-q64"
  7061. RANLIB="${RANLIB} -X64"
  7062. AR="${AR} -X64"
  7063. SHLIB_LD_FLAGS="-b64"
  7064.  
  7065. fi
  7066.  
  7067. fi
  7068.  
  7069. if test "`uname -m`" = ia64; then :
  7070.  
  7071. # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
  7072. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  7073. if test "$GCC" = yes; then :
  7074.  
  7075. CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  7076.  
  7077. else
  7078.  
  7079. CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
  7080.  
  7081. fi
  7082. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  7083.  
  7084. else
  7085.  
  7086. if test "$GCC" = yes; then :
  7087.  
  7088. SHLIB_LD='${CC} -shared -Wl,-bexpall'
  7089.  
  7090. else
  7091.  
  7092. SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
  7093. LDFLAGS="$LDFLAGS -brtl"
  7094.  
  7095. fi
  7096. SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
  7097. CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
  7098. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  7099.  
  7100. fi
  7101. ;;
  7102. BeOS*)
  7103. SHLIB_CFLAGS="-fPIC"
  7104. SHLIB_LD='${CC} -nostart'
  7105. SHLIB_SUFFIX=".so"
  7106.  
  7107. #-----------------------------------------------------------
  7108. # Check for inet_ntoa in -lbind, for BeOS (which also needs
  7109. # -lsocket, even if the network functions are in -lnet which
  7110. # is always linked to, for compatibility.
  7111. #-----------------------------------------------------------
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
  7113. $as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
  7114. if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
  7115. $as_echo_n "(cached) " >&6
  7116. else
  7117. ac_check_lib_save_LIBS=$LIBS
  7118. LIBS="-lbind $LIBS"
  7119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7120. /* end confdefs.h. */
  7121.  
  7122. /* Override any GCC internal prototype to avoid an error.
  7123. Use char because int might match the return type of a GCC
  7124. builtin and then its argument prototype would still apply. */
  7125. #ifdef __cplusplus
  7126. extern "C"
  7127. #endif
  7128. char inet_ntoa ();
  7129. int
  7130. main ()
  7131. {
  7132. return inet_ntoa ();
  7133. ;
  7134. return 0;
  7135. }
  7136. _ACEOF
  7137. if ac_fn_c_try_link "$LINENO"; then :
  7138. ac_cv_lib_bind_inet_ntoa=yes
  7139. else
  7140. ac_cv_lib_bind_inet_ntoa=no
  7141. fi
  7142. rm -f core conftest.err conftest.$ac_objext \
  7143. conftest$ac_exeext conftest.$ac_ext
  7144. LIBS=$ac_check_lib_save_LIBS
  7145. fi
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
  7147. $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
  7148. if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
  7149. LIBS="$LIBS -lbind -lsocket"
  7150. fi
  7151.  
  7152. ;;
  7153. BSD/OS-4.*)
  7154. SHLIB_CFLAGS="-export-dynamic -fPIC"
  7155. SHLIB_LD='${CC} -shared'
  7156. SHLIB_SUFFIX=".so"
  7157. LDFLAGS="$LDFLAGS -export-dynamic"
  7158. CC_SEARCH_FLAGS=""
  7159. LD_SEARCH_FLAGS=""
  7160. ;;
  7161. CYGWIN_*)
  7162. SHLIB_CFLAGS=""
  7163. SHLIB_LD='${CC} -shared'
  7164. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$@.a"
  7165. SHLIB_SUFFIX=".dll"
  7166. EXEEXT=".exe"
  7167. do64bit_ok=yes
  7168. CC_SEARCH_FLAGS=""
  7169. LD_SEARCH_FLAGS=""
  7170. ;;
  7171. Haiku*)
  7172. LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
  7173. SHLIB_CFLAGS="-fPIC"
  7174. SHLIB_SUFFIX=".so"
  7175. SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
  7177. $as_echo_n "checking for inet_ntoa in -lnetwork... " >&6; }
  7178. if ${ac_cv_lib_network_inet_ntoa+:} false; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. ac_check_lib_save_LIBS=$LIBS
  7182. LIBS="-lnetwork $LIBS"
  7183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7184. /* end confdefs.h. */
  7185.  
  7186. /* Override any GCC internal prototype to avoid an error.
  7187. Use char because int might match the return type of a GCC
  7188. builtin and then its argument prototype would still apply. */
  7189. #ifdef __cplusplus
  7190. extern "C"
  7191. #endif
  7192. char inet_ntoa ();
  7193. int
  7194. main ()
  7195. {
  7196. return inet_ntoa ();
  7197. ;
  7198. return 0;
  7199. }
  7200. _ACEOF
  7201. if ac_fn_c_try_link "$LINENO"; then :
  7202. ac_cv_lib_network_inet_ntoa=yes
  7203. else
  7204. ac_cv_lib_network_inet_ntoa=no
  7205. fi
  7206. rm -f core conftest.err conftest.$ac_objext \
  7207. conftest$ac_exeext conftest.$ac_ext
  7208. LIBS=$ac_check_lib_save_LIBS
  7209. fi
  7210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
  7211. $as_echo "$ac_cv_lib_network_inet_ntoa" >&6; }
  7212. if test "x$ac_cv_lib_network_inet_ntoa" = xyes; then :
  7213. LIBS="$LIBS -lnetwork"
  7214. fi
  7215.  
  7216. ;;
  7217. HP-UX-*.11.*)
  7218. # Use updated header definitions where possible
  7219.  
  7220. $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
  7221.  
  7222. # TEA specific: Needed by Tcl, but not most extensions
  7223. #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
  7224. #LIBS="$LIBS -lxnet" # Use the XOPEN network library
  7225.  
  7226. if test "`uname -m`" = ia64; then :
  7227.  
  7228. SHLIB_SUFFIX=".so"
  7229. # Use newer C++ library for C++ extensions
  7230. #if test "$GCC" != "yes" ; then
  7231. # CPPFLAGS="-AA"
  7232. #fi
  7233.  
  7234. else
  7235.  
  7236. SHLIB_SUFFIX=".sl"
  7237.  
  7238. fi
  7239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  7240. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  7241. if ${ac_cv_lib_dld_shl_load+:} false; then :
  7242. $as_echo_n "(cached) " >&6
  7243. else
  7244. ac_check_lib_save_LIBS=$LIBS
  7245. LIBS="-ldld $LIBS"
  7246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7247. /* end confdefs.h. */
  7248.  
  7249. /* Override any GCC internal prototype to avoid an error.
  7250. Use char because int might match the return type of a GCC
  7251. builtin and then its argument prototype would still apply. */
  7252. #ifdef __cplusplus
  7253. extern "C"
  7254. #endif
  7255. char shl_load ();
  7256. int
  7257. main ()
  7258. {
  7259. return shl_load ();
  7260. ;
  7261. return 0;
  7262. }
  7263. _ACEOF
  7264. if ac_fn_c_try_link "$LINENO"; then :
  7265. ac_cv_lib_dld_shl_load=yes
  7266. else
  7267. ac_cv_lib_dld_shl_load=no
  7268. fi
  7269. rm -f core conftest.err conftest.$ac_objext \
  7270. conftest$ac_exeext conftest.$ac_ext
  7271. LIBS=$ac_check_lib_save_LIBS
  7272. fi
  7273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  7274. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  7275. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  7276. tcl_ok=yes
  7277. else
  7278. tcl_ok=no
  7279. fi
  7280.  
  7281. if test "$tcl_ok" = yes; then :
  7282.  
  7283. LDFLAGS="$LDFLAGS -Wl,-E"
  7284. CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
  7285. LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
  7286. LD_LIBRARY_PATH_VAR="SHLIB_PATH"
  7287.  
  7288. fi
  7289. if test "$GCC" = yes; then :
  7290.  
  7291. SHLIB_LD='${CC} -shared'
  7292. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  7293.  
  7294. else
  7295.  
  7296. CFLAGS="$CFLAGS -z"
  7297. # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
  7298. #CFLAGS="$CFLAGS +DAportable"
  7299. SHLIB_CFLAGS="+z"
  7300. SHLIB_LD="ld -b"
  7301.  
  7302. fi
  7303.  
  7304. # Check to enable 64-bit flags for compiler/linker
  7305. if test "$do64bit" = "yes"; then :
  7306.  
  7307. if test "$GCC" = yes; then :
  7308.  
  7309. case `${CC} -dumpmachine` in
  7310. hppa64*)
  7311. # 64-bit gcc in use. Fix flags for GNU ld.
  7312. do64bit_ok=yes
  7313. SHLIB_LD='${CC} -shared'
  7314. if test $doRpath = yes; then :
  7315.  
  7316. CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  7317. fi
  7318. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  7319. ;;
  7320. *)
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
  7322. $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
  7323. ;;
  7324. esac
  7325.  
  7326. else
  7327.  
  7328. do64bit_ok=yes
  7329. CFLAGS="$CFLAGS +DD64"
  7330. LDFLAGS_ARCH="+DD64"
  7331.  
  7332. fi
  7333.  
  7334. fi ;;
  7335. IRIX-6.*)
  7336. SHLIB_CFLAGS=""
  7337. SHLIB_LD="ld -n32 -shared -rdata_shared"
  7338. SHLIB_SUFFIX=".so"
  7339. if test $doRpath = yes; then :
  7340.  
  7341. CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  7342. LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  7343. fi
  7344. if test "$GCC" = yes; then :
  7345.  
  7346. CFLAGS="$CFLAGS -mabi=n32"
  7347. LDFLAGS="$LDFLAGS -mabi=n32"
  7348.  
  7349. else
  7350.  
  7351. case $system in
  7352. IRIX-6.3)
  7353. # Use to build 6.2 compatible binaries on 6.3.
  7354. CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
  7355. ;;
  7356. *)
  7357. CFLAGS="$CFLAGS -n32"
  7358. ;;
  7359. esac
  7360. LDFLAGS="$LDFLAGS -n32"
  7361.  
  7362. fi
  7363. ;;
  7364. IRIX64-6.*)
  7365. SHLIB_CFLAGS=""
  7366. SHLIB_LD="ld -n32 -shared -rdata_shared"
  7367. SHLIB_SUFFIX=".so"
  7368. if test $doRpath = yes; then :
  7369.  
  7370. CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  7371. LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  7372. fi
  7373.  
  7374. # Check to enable 64-bit flags for compiler/linker
  7375.  
  7376. if test "$do64bit" = yes; then :
  7377.  
  7378. if test "$GCC" = yes; then :
  7379.  
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
  7381. $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
  7382.  
  7383. else
  7384.  
  7385. do64bit_ok=yes
  7386. SHLIB_LD="ld -64 -shared -rdata_shared"
  7387. CFLAGS="$CFLAGS -64"
  7388. LDFLAGS_ARCH="-64"
  7389.  
  7390. fi
  7391.  
  7392. fi
  7393. ;;
  7394. Linux*|GNU*|NetBSD-Debian)
  7395. SHLIB_CFLAGS="-fPIC"
  7396. SHLIB_SUFFIX=".so"
  7397.  
  7398. # TEA specific:
  7399. CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
  7400.  
  7401. # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
  7402. SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}'
  7403. LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
  7404. if test $doRpath = yes; then :
  7405.  
  7406. CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  7407. fi
  7408. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  7409. if test "`uname -m`" = "alpha"; then :
  7410. CFLAGS="$CFLAGS -mieee"
  7411. fi
  7412. if test $do64bit = yes; then :
  7413.  
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
  7415. $as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
  7416. if ${tcl_cv_cc_m64+:} false; then :
  7417. $as_echo_n "(cached) " >&6
  7418. else
  7419.  
  7420. hold_cflags=$CFLAGS
  7421. CFLAGS="$CFLAGS -m64"
  7422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7423. /* end confdefs.h. */
  7424.  
  7425. int
  7426. main ()
  7427. {
  7428.  
  7429. ;
  7430. return 0;
  7431. }
  7432. _ACEOF
  7433. if ac_fn_c_try_link "$LINENO"; then :
  7434. tcl_cv_cc_m64=yes
  7435. else
  7436. tcl_cv_cc_m64=no
  7437. fi
  7438. rm -f core conftest.err conftest.$ac_objext \
  7439. conftest$ac_exeext conftest.$ac_ext
  7440. CFLAGS=$hold_cflags
  7441. fi
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
  7443. $as_echo "$tcl_cv_cc_m64" >&6; }
  7444. if test $tcl_cv_cc_m64 = yes; then :
  7445.  
  7446. CFLAGS="$CFLAGS -m64"
  7447. do64bit_ok=yes
  7448.  
  7449. fi
  7450.  
  7451. fi
  7452.  
  7453. # The combo of gcc + glibc has a bug related to inlining of
  7454. # functions like strtod(). The -fno-builtin flag should address
  7455. # this problem but it does not work. The -fno-inline flag is kind
  7456. # of overkill but it works. Disable inlining only when one of the
  7457. # files in compat/*.c is being linked in.
  7458.  
  7459. if test x"${USE_COMPAT}" != x; then :
  7460. CFLAGS="$CFLAGS -fno-inline"
  7461. fi
  7462. ;;
  7463. Lynx*)
  7464. SHLIB_CFLAGS="-fPIC"
  7465. SHLIB_SUFFIX=".so"
  7466. CFLAGS_OPTIMIZE=-02
  7467. SHLIB_LD='${CC} -shared'
  7468. LD_FLAGS="-Wl,--export-dynamic"
  7469. if test $doRpath = yes; then :
  7470.  
  7471. CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  7472. LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  7473. fi
  7474. ;;
  7475. OpenBSD-*)
  7476. arch=`arch -s`
  7477. case "$arch" in
  7478. alpha|sparc64)
  7479. SHLIB_CFLAGS="-fPIC"
  7480. ;;
  7481. *)
  7482. SHLIB_CFLAGS="-fpic"
  7483. ;;
  7484. esac
  7485. SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
  7486. SHLIB_SUFFIX=".so"
  7487. if test $doRpath = yes; then :
  7488.  
  7489. CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  7490. fi
  7491. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  7492. SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
  7493. LDFLAGS="-Wl,-export-dynamic"
  7494. CFLAGS_OPTIMIZE="-O2"
  7495. if test "${TCL_THREADS}" = "1"; then :
  7496.  
  7497. # On OpenBSD: Compile with -pthread
  7498. # Don't link with -lpthread
  7499. LIBS=`echo $LIBS | sed s/-lpthread//`
  7500. CFLAGS="$CFLAGS -pthread"
  7501.  
  7502. fi
  7503. # OpenBSD doesn't do version numbers with dots.
  7504. UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
  7505. TCL_LIB_VERSIONS_OK=nodots
  7506. ;;
  7507. NetBSD-*)
  7508. # NetBSD has ELF and can use 'cc -shared' to build shared libs
  7509. SHLIB_CFLAGS="-fPIC"
  7510. SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
  7511. SHLIB_SUFFIX=".so"
  7512. LDFLAGS="$LDFLAGS -export-dynamic"
  7513. if test $doRpath = yes; then :
  7514.  
  7515. CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  7516. fi
  7517. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  7518. if test "${TCL_THREADS}" = "1"; then :
  7519.  
  7520. # The -pthread needs to go in the CFLAGS, not LIBS
  7521. LIBS=`echo $LIBS | sed s/-pthread//`
  7522. CFLAGS="$CFLAGS -pthread"
  7523. LDFLAGS="$LDFLAGS -pthread"
  7524.  
  7525. fi
  7526. ;;
  7527. FreeBSD-*)
  7528. # This configuration from FreeBSD Ports.
  7529. SHLIB_CFLAGS="-fPIC"
  7530. SHLIB_LD="${CC} -shared"
  7531. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,-soname,\$@"
  7532. SHLIB_SUFFIX=".so"
  7533. LDFLAGS=""
  7534. if test $doRpath = yes; then :
  7535.  
  7536. CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  7537. LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  7538. fi
  7539. if test "${TCL_THREADS}" = "1"; then :
  7540.  
  7541. # The -pthread needs to go in the LDFLAGS, not LIBS
  7542. LIBS=`echo $LIBS | sed s/-pthread//`
  7543. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7544. LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
  7545. fi
  7546. case $system in
  7547. FreeBSD-3.*)
  7548. # Version numbers are dot-stripped by system policy.
  7549. TCL_TRIM_DOTS=`echo ${PACKAGE_VERSION} | tr -d .`
  7550. UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
  7551. SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
  7552. TCL_LIB_VERSIONS_OK=nodots
  7553. ;;
  7554. esac
  7555. ;;
  7556. Darwin-*)
  7557. CFLAGS_OPTIMIZE="-Os"
  7558. SHLIB_CFLAGS="-fno-common"
  7559. # To avoid discrepancies between what headers configure sees during
  7560. # preprocessing tests and compiling tests, move any -isysroot and
  7561. # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
  7562. CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
  7563. awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
  7564. if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
  7565. CFLAGS="`echo " ${CFLAGS}" | \
  7566. awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
  7567. if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
  7568. if test $do64bit = yes; then :
  7569.  
  7570. case `arch` in
  7571. ppc)
  7572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
  7573. $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
  7574. if ${tcl_cv_cc_arch_ppc64+:} false; then :
  7575. $as_echo_n "(cached) " >&6
  7576. else
  7577.  
  7578. hold_cflags=$CFLAGS
  7579. CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
  7580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7581. /* end confdefs.h. */
  7582.  
  7583. int
  7584. main ()
  7585. {
  7586.  
  7587. ;
  7588. return 0;
  7589. }
  7590. _ACEOF
  7591. if ac_fn_c_try_link "$LINENO"; then :
  7592. tcl_cv_cc_arch_ppc64=yes
  7593. else
  7594. tcl_cv_cc_arch_ppc64=no
  7595. fi
  7596. rm -f core conftest.err conftest.$ac_objext \
  7597. conftest$ac_exeext conftest.$ac_ext
  7598. CFLAGS=$hold_cflags
  7599. fi
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
  7601. $as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
  7602. if test $tcl_cv_cc_arch_ppc64 = yes; then :
  7603.  
  7604. CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
  7605. do64bit_ok=yes
  7606.  
  7607. fi;;
  7608. i386)
  7609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
  7610. $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
  7611. if ${tcl_cv_cc_arch_x86_64+:} false; then :
  7612. $as_echo_n "(cached) " >&6
  7613. else
  7614.  
  7615. hold_cflags=$CFLAGS
  7616. CFLAGS="$CFLAGS -arch x86_64"
  7617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7618. /* end confdefs.h. */
  7619.  
  7620. int
  7621. main ()
  7622. {
  7623.  
  7624. ;
  7625. return 0;
  7626. }
  7627. _ACEOF
  7628. if ac_fn_c_try_link "$LINENO"; then :
  7629. tcl_cv_cc_arch_x86_64=yes
  7630. else
  7631. tcl_cv_cc_arch_x86_64=no
  7632. fi
  7633. rm -f core conftest.err conftest.$ac_objext \
  7634. conftest$ac_exeext conftest.$ac_ext
  7635. CFLAGS=$hold_cflags
  7636. fi
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
  7638. $as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
  7639. if test $tcl_cv_cc_arch_x86_64 = yes; then :
  7640.  
  7641. CFLAGS="$CFLAGS -arch x86_64"
  7642. do64bit_ok=yes
  7643.  
  7644. fi;;
  7645. *)
  7646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
  7647. $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
  7648. esac
  7649.  
  7650. else
  7651.  
  7652. # Check for combined 32-bit and 64-bit fat build
  7653. if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
  7654. && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then :
  7655.  
  7656. fat_32_64=yes
  7657. fi
  7658.  
  7659. fi
  7660. # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
  7661. SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
  7663. $as_echo_n "checking if ld accepts -single_module flag... " >&6; }
  7664. if ${tcl_cv_ld_single_module+:} false; then :
  7665. $as_echo_n "(cached) " >&6
  7666. else
  7667.  
  7668. hold_ldflags=$LDFLAGS
  7669. LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
  7670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7671. /* end confdefs.h. */
  7672.  
  7673. int
  7674. main ()
  7675. {
  7676. int i;
  7677. ;
  7678. return 0;
  7679. }
  7680. _ACEOF
  7681. if ac_fn_c_try_link "$LINENO"; then :
  7682. tcl_cv_ld_single_module=yes
  7683. else
  7684. tcl_cv_ld_single_module=no
  7685. fi
  7686. rm -f core conftest.err conftest.$ac_objext \
  7687. conftest$ac_exeext conftest.$ac_ext
  7688. LDFLAGS=$hold_ldflags
  7689. fi
  7690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
  7691. $as_echo "$tcl_cv_ld_single_module" >&6; }
  7692. if test $tcl_cv_ld_single_module = yes; then :
  7693.  
  7694. SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
  7695.  
  7696. fi
  7697. # TEA specific: link shlib with current and compatibility version flags
  7698. vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
  7699. SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
  7700. SHLIB_SUFFIX=".dylib"
  7701. # Don't use -prebind when building for Mac OS X 10.4 or later only:
  7702. if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
  7703. "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then :
  7704.  
  7705. LDFLAGS="$LDFLAGS -prebind"
  7706. fi
  7707. LDFLAGS="$LDFLAGS -headerpad_max_install_names"
  7708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
  7709. $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
  7710. if ${tcl_cv_ld_search_paths_first+:} false; then :
  7711. $as_echo_n "(cached) " >&6
  7712. else
  7713.  
  7714. hold_ldflags=$LDFLAGS
  7715. LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
  7716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7717. /* end confdefs.h. */
  7718.  
  7719. int
  7720. main ()
  7721. {
  7722. int i;
  7723. ;
  7724. return 0;
  7725. }
  7726. _ACEOF
  7727. if ac_fn_c_try_link "$LINENO"; then :
  7728. tcl_cv_ld_search_paths_first=yes
  7729. else
  7730. tcl_cv_ld_search_paths_first=no
  7731. fi
  7732. rm -f core conftest.err conftest.$ac_objext \
  7733. conftest$ac_exeext conftest.$ac_ext
  7734. LDFLAGS=$hold_ldflags
  7735. fi
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
  7737. $as_echo "$tcl_cv_ld_search_paths_first" >&6; }
  7738. if test $tcl_cv_ld_search_paths_first = yes; then :
  7739.  
  7740. LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
  7741.  
  7742. fi
  7743. if test "$tcl_cv_cc_visibility_hidden" != yes; then :
  7744.  
  7745.  
  7746. $as_echo "#define MODULE_SCOPE __private_extern__" >>confdefs.h
  7747.  
  7748. tcl_cv_cc_visibility_hidden=yes
  7749.  
  7750. fi
  7751. CC_SEARCH_FLAGS=""
  7752. LD_SEARCH_FLAGS=""
  7753. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  7754. # TEA specific: for combined 32 & 64 bit fat builds of Tk
  7755. # extensions, verify that 64-bit build is possible.
  7756. if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then :
  7757.  
  7758. if test "${TEA_WINDOWINGSYSTEM}" = x11; then :
  7759.  
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
  7761. $as_echo_n "checking for 64-bit X11... " >&6; }
  7762. if ${tcl_cv_lib_x11_64+:} false; then :
  7763. $as_echo_n "(cached) " >&6
  7764. else
  7765.  
  7766. for v in CFLAGS CPPFLAGS LDFLAGS; do
  7767. eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
  7768. done
  7769. CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
  7770. LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
  7771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7772. /* end confdefs.h. */
  7773. #include <X11/Xlib.h>
  7774. int
  7775. main ()
  7776. {
  7777. XrmInitialize();
  7778. ;
  7779. return 0;
  7780. }
  7781. _ACEOF
  7782. if ac_fn_c_try_link "$LINENO"; then :
  7783. tcl_cv_lib_x11_64=yes
  7784. else
  7785. tcl_cv_lib_x11_64=no
  7786. fi
  7787. rm -f core conftest.err conftest.$ac_objext \
  7788. conftest$ac_exeext conftest.$ac_ext
  7789. for v in CFLAGS CPPFLAGS LDFLAGS; do
  7790. eval $v'="$hold_'$v'"'
  7791. done
  7792. fi
  7793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
  7794. $as_echo "$tcl_cv_lib_x11_64" >&6; }
  7795.  
  7796. fi
  7797. if test "${TEA_WINDOWINGSYSTEM}" = aqua; then :
  7798.  
  7799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
  7800. $as_echo_n "checking for 64-bit Tk... " >&6; }
  7801. if ${tcl_cv_lib_tk_64+:} false; then :
  7802. $as_echo_n "(cached) " >&6
  7803. else
  7804.  
  7805. for v in CFLAGS CPPFLAGS LDFLAGS; do
  7806. eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
  7807. done
  7808. CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
  7809. LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
  7810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7811. /* end confdefs.h. */
  7812. #include <tk.h>
  7813. int
  7814. main ()
  7815. {
  7816. Tk_InitStubs(NULL, "", 0);
  7817. ;
  7818. return 0;
  7819. }
  7820. _ACEOF
  7821. if ac_fn_c_try_link "$LINENO"; then :
  7822. tcl_cv_lib_tk_64=yes
  7823. else
  7824. tcl_cv_lib_tk_64=no
  7825. fi
  7826. rm -f core conftest.err conftest.$ac_objext \
  7827. conftest$ac_exeext conftest.$ac_ext
  7828. for v in CFLAGS CPPFLAGS LDFLAGS; do
  7829. eval $v'="$hold_'$v'"'
  7830. done
  7831. fi
  7832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
  7833. $as_echo "$tcl_cv_lib_tk_64" >&6; }
  7834.  
  7835. fi
  7836. # remove 64-bit arch flags from CFLAGS et al. if configuration
  7837. # does not support 64-bit.
  7838. if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then :
  7839.  
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
  7841. $as_echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
  7842. for v in CFLAGS CPPFLAGS LDFLAGS; do
  7843. eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
  7844. done
  7845. fi
  7846.  
  7847. fi
  7848. ;;
  7849. OS/390-*)
  7850. CFLAGS_OPTIMIZE="" # Optimizer is buggy
  7851.  
  7852. $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
  7853.  
  7854. ;;
  7855. OSF1-V*)
  7856. # Digital OSF/1
  7857. SHLIB_CFLAGS=""
  7858. if test "$SHARED_BUILD" = 1; then :
  7859.  
  7860. SHLIB_LD='ld -shared -expect_unresolved "*"'
  7861.  
  7862. else
  7863.  
  7864. SHLIB_LD='ld -non_shared -expect_unresolved "*"'
  7865.  
  7866. fi
  7867. SHLIB_SUFFIX=".so"
  7868. if test $doRpath = yes; then :
  7869.  
  7870. CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  7871. LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  7872. fi
  7873. if test "$GCC" = yes; then :
  7874. CFLAGS="$CFLAGS -mieee"
  7875. else
  7876.  
  7877. CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
  7878. fi
  7879. # see pthread_intro(3) for pthread support on osf1, k.furukawa
  7880. if test "${TCL_THREADS}" = 1; then :
  7881.  
  7882. CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
  7883. CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
  7884. LIBS=`echo $LIBS | sed s/-lpthreads//`
  7885. if test "$GCC" = yes; then :
  7886.  
  7887. LIBS="$LIBS -lpthread -lmach -lexc"
  7888.  
  7889. else
  7890.  
  7891. CFLAGS="$CFLAGS -pthread"
  7892. LDFLAGS="$LDFLAGS -pthread"
  7893.  
  7894. fi
  7895.  
  7896. fi
  7897. ;;
  7898. QNX-6*)
  7899. # QNX RTP
  7900. # This may work for all QNX, but it was only reported for v6.
  7901. SHLIB_CFLAGS="-fPIC"
  7902. SHLIB_LD="ld -Bshareable -x"
  7903. SHLIB_LD_LIBS=""
  7904. SHLIB_SUFFIX=".so"
  7905. CC_SEARCH_FLAGS=""
  7906. LD_SEARCH_FLAGS=""
  7907. ;;
  7908. SCO_SV-3.2*)
  7909. if test "$GCC" = yes; then :
  7910.  
  7911. SHLIB_CFLAGS="-fPIC -melf"
  7912. LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
  7913.  
  7914. else
  7915.  
  7916. SHLIB_CFLAGS="-Kpic -belf"
  7917. LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
  7918.  
  7919. fi
  7920. SHLIB_LD="ld -G"
  7921. SHLIB_LD_LIBS=""
  7922. SHLIB_SUFFIX=".so"
  7923. CC_SEARCH_FLAGS=""
  7924. LD_SEARCH_FLAGS=""
  7925. ;;
  7926. SunOS-5.[0-6])
  7927. # Careful to not let 5.10+ fall into this case
  7928.  
  7929. # Note: If _REENTRANT isn't defined, then Solaris
  7930. # won't define thread-safe library routines.
  7931.  
  7932.  
  7933. $as_echo "#define _REENTRANT 1" >>confdefs.h
  7934.  
  7935.  
  7936. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  7937.  
  7938.  
  7939. SHLIB_CFLAGS="-KPIC"
  7940. SHLIB_SUFFIX=".so"
  7941. if test "$GCC" = yes; then :
  7942.  
  7943. SHLIB_LD='${CC} -shared'
  7944. CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  7945. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  7946.  
  7947. else
  7948.  
  7949. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  7950. CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  7951. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  7952.  
  7953. fi
  7954. ;;
  7955. SunOS-5*)
  7956. # Note: If _REENTRANT isn't defined, then Solaris
  7957. # won't define thread-safe library routines.
  7958.  
  7959.  
  7960. $as_echo "#define _REENTRANT 1" >>confdefs.h
  7961.  
  7962.  
  7963. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  7964.  
  7965.  
  7966. SHLIB_CFLAGS="-KPIC"
  7967.  
  7968. # Check to enable 64-bit flags for compiler/linker
  7969. if test "$do64bit" = yes; then :
  7970.  
  7971. arch=`isainfo`
  7972. if test "$arch" = "sparcv9 sparc"; then :
  7973.  
  7974. if test "$GCC" = yes; then :
  7975.  
  7976. if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then :
  7977.  
  7978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
  7979. $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
  7980.  
  7981. else
  7982.  
  7983. do64bit_ok=yes
  7984. CFLAGS="$CFLAGS -m64 -mcpu=v9"
  7985. LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
  7986. SHLIB_CFLAGS="-fPIC"
  7987.  
  7988. fi
  7989.  
  7990. else
  7991.  
  7992. do64bit_ok=yes
  7993. if test "$do64bitVIS" = yes; then :
  7994.  
  7995. CFLAGS="$CFLAGS -xarch=v9a"
  7996. LDFLAGS_ARCH="-xarch=v9a"
  7997.  
  7998. else
  7999.  
  8000. CFLAGS="$CFLAGS -xarch=v9"
  8001. LDFLAGS_ARCH="-xarch=v9"
  8002.  
  8003. fi
  8004. # Solaris 64 uses this as well
  8005. #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
  8006.  
  8007. fi
  8008.  
  8009. else
  8010. if test "$arch" = "amd64 i386"; then :
  8011.  
  8012. if test "$GCC" = yes; then :
  8013.  
  8014. case $system in
  8015. SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
  8016. do64bit_ok=yes
  8017. CFLAGS="$CFLAGS -m64"
  8018. LDFLAGS="$LDFLAGS -m64";;
  8019. *)
  8020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
  8021. $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
  8022. esac
  8023.  
  8024. else
  8025.  
  8026. do64bit_ok=yes
  8027. case $system in
  8028. SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
  8029. CFLAGS="$CFLAGS -m64"
  8030. LDFLAGS="$LDFLAGS -m64";;
  8031. *)
  8032. CFLAGS="$CFLAGS -xarch=amd64"
  8033. LDFLAGS="$LDFLAGS -xarch=amd64";;
  8034. esac
  8035.  
  8036. fi
  8037.  
  8038. else
  8039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
  8040. $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
  8041. fi
  8042. fi
  8043.  
  8044. fi
  8045.  
  8046. SHLIB_SUFFIX=".so"
  8047. if test "$GCC" = yes; then :
  8048.  
  8049. SHLIB_LD='${CC} -shared'
  8050. CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  8051. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  8052. if test "$do64bit_ok" = yes; then :
  8053.  
  8054. if test "$arch" = "sparcv9 sparc"; then :
  8055.  
  8056. # We need to specify -static-libgcc or we need to
  8057. # add the path to the sparv9 libgcc.
  8058. # JH: static-libgcc is necessary for core Tcl, but may
  8059. # not be necessary for extensions.
  8060. SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
  8061. # for finding sparcv9 libgcc, get the regular libgcc
  8062. # path, remove so name and append 'sparcv9'
  8063. #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
  8064. #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
  8065.  
  8066. else
  8067. if test "$arch" = "amd64 i386"; then :
  8068.  
  8069. # JH: static-libgcc is necessary for core Tcl, but may
  8070. # not be necessary for extensions.
  8071. SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
  8072.  
  8073. fi
  8074. fi
  8075.  
  8076. fi
  8077.  
  8078. else
  8079.  
  8080. case $system in
  8081. SunOS-5.[1-9][0-9]*)
  8082. # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
  8083. SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
  8084. *)
  8085. SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
  8086. esac
  8087. CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  8088. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  8089.  
  8090. fi
  8091. ;;
  8092. UNIX_SV* | UnixWare-5*)
  8093. SHLIB_CFLAGS="-KPIC"
  8094. SHLIB_LD='${CC} -G'
  8095. SHLIB_LD_LIBS=""
  8096. SHLIB_SUFFIX=".so"
  8097. # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
  8098. # that don't grok the -Bexport option. Test that it does.
  8099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
  8100. $as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
  8101. if ${tcl_cv_ld_Bexport+:} false; then :
  8102. $as_echo_n "(cached) " >&6
  8103. else
  8104.  
  8105. hold_ldflags=$LDFLAGS
  8106. LDFLAGS="$LDFLAGS -Wl,-Bexport"
  8107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8108. /* end confdefs.h. */
  8109.  
  8110. int
  8111. main ()
  8112. {
  8113. int i;
  8114. ;
  8115. return 0;
  8116. }
  8117. _ACEOF
  8118. if ac_fn_c_try_link "$LINENO"; then :
  8119. tcl_cv_ld_Bexport=yes
  8120. else
  8121. tcl_cv_ld_Bexport=no
  8122. fi
  8123. rm -f core conftest.err conftest.$ac_objext \
  8124. conftest$ac_exeext conftest.$ac_ext
  8125. LDFLAGS=$hold_ldflags
  8126. fi
  8127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
  8128. $as_echo "$tcl_cv_ld_Bexport" >&6; }
  8129. if test $tcl_cv_ld_Bexport = yes; then :
  8130.  
  8131. LDFLAGS="$LDFLAGS -Wl,-Bexport"
  8132.  
  8133. fi
  8134. CC_SEARCH_FLAGS=""
  8135. LD_SEARCH_FLAGS=""
  8136. ;;
  8137. esac
  8138.  
  8139. if test "$do64bit" = yes -a "$do64bit_ok" = no; then :
  8140.  
  8141. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
  8142. $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
  8143.  
  8144. fi
  8145.  
  8146.  
  8147.  
  8148. # Add in the arch flags late to ensure it wasn't removed.
  8149. # Not necessary in TEA, but this is aligned with core
  8150. LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
  8151.  
  8152. # If we're running gcc, then change the C flags for compiling shared
  8153. # libraries to the right flags for gcc, instead of those for the
  8154. # standard manufacturer compiler.
  8155.  
  8156. if test "$GCC" = yes; then :
  8157.  
  8158. case $system in
  8159. AIX-*) ;;
  8160. BSD/OS*) ;;
  8161. CYGWIN_*|MINGW32_*) ;;
  8162. IRIX*) ;;
  8163. NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
  8164. Darwin-*) ;;
  8165. SCO_SV-3.2*) ;;
  8166. windows) ;;
  8167. *) SHLIB_CFLAGS="-fPIC" ;;
  8168. esac
  8169. fi
  8170.  
  8171. if test "$tcl_cv_cc_visibility_hidden" != yes; then :
  8172.  
  8173.  
  8174. $as_echo "#define MODULE_SCOPE extern" >>confdefs.h
  8175.  
  8176.  
  8177. fi
  8178.  
  8179. if test "$SHARED_LIB_SUFFIX" = ""; then :
  8180.  
  8181. # TEA specific: use PACKAGE_VERSION instead of VERSION
  8182. SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
  8183. fi
  8184. if test "$UNSHARED_LIB_SUFFIX" = ""; then :
  8185.  
  8186. # TEA specific: use PACKAGE_VERSION instead of VERSION
  8187. UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
  8188. fi
  8189.  
  8190. if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
  8191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
  8192. $as_echo_n "checking for SEH support in compiler... " >&6; }
  8193. if ${tcl_cv_seh+:} false; then :
  8194. $as_echo_n "(cached) " >&6
  8195. else
  8196. if test "$cross_compiling" = yes; then :
  8197. tcl_cv_seh=no
  8198. else
  8199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8200. /* end confdefs.h. */
  8201.  
  8202. #define WIN32_LEAN_AND_MEAN
  8203. #include <windows.h>
  8204. #undef WIN32_LEAN_AND_MEAN
  8205.  
  8206. int main(int argc, char** argv) {
  8207. int a, b = 0;
  8208. __try {
  8209. a = 666 / b;
  8210. }
  8211. __except (EXCEPTION_EXECUTE_HANDLER) {
  8212. return 0;
  8213. }
  8214. return 1;
  8215. }
  8216.  
  8217. _ACEOF
  8218. if ac_fn_c_try_run "$LINENO"; then :
  8219. tcl_cv_seh=yes
  8220. else
  8221. tcl_cv_seh=no
  8222. fi
  8223. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8224. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8225. fi
  8226.  
  8227.  
  8228. fi
  8229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
  8230. $as_echo "$tcl_cv_seh" >&6; }
  8231. if test "$tcl_cv_seh" = "no" ; then
  8232.  
  8233. $as_echo "#define HAVE_NO_SEH 1" >>confdefs.h
  8234.  
  8235. fi
  8236.  
  8237. #
  8238. # Check to see if the excpt.h include file provided contains the
  8239. # definition for EXCEPTION_DISPOSITION; if not, which is the case
  8240. # with Cygwin's version as of 2002-04-10, define it to be int,
  8241. # sufficient for getting the current code to work.
  8242. #
  8243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
  8244. $as_echo_n "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
  8245. if ${tcl_cv_eh_disposition+:} false; then :
  8246. $as_echo_n "(cached) " >&6
  8247. else
  8248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8249. /* end confdefs.h. */
  8250.  
  8251. # define WIN32_LEAN_AND_MEAN
  8252. # include <windows.h>
  8253. # undef WIN32_LEAN_AND_MEAN
  8254.  
  8255. int
  8256. main ()
  8257. {
  8258.  
  8259. EXCEPTION_DISPOSITION x;
  8260.  
  8261. ;
  8262. return 0;
  8263. }
  8264. _ACEOF
  8265. if ac_fn_c_try_compile "$LINENO"; then :
  8266. tcl_cv_eh_disposition=yes
  8267. else
  8268. tcl_cv_eh_disposition=no
  8269. fi
  8270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8271.  
  8272. fi
  8273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
  8274. $as_echo "$tcl_cv_eh_disposition" >&6; }
  8275. if test "$tcl_cv_eh_disposition" = "no" ; then
  8276.  
  8277. $as_echo "#define EXCEPTION_DISPOSITION int" >>confdefs.h
  8278.  
  8279. fi
  8280.  
  8281. # Check to see if winnt.h defines CHAR, SHORT, and LONG
  8282. # even if VOID has already been #defined. The win32api
  8283. # used by mingw and cygwin is known to do this.
  8284.  
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
  8286. $as_echo_n "checking for winnt.h that ignores VOID define... " >&6; }
  8287. if ${tcl_cv_winnt_ignore_void+:} false; then :
  8288. $as_echo_n "(cached) " >&6
  8289. else
  8290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8291. /* end confdefs.h. */
  8292.  
  8293. #define VOID void
  8294. #define WIN32_LEAN_AND_MEAN
  8295. #include <windows.h>
  8296. #undef WIN32_LEAN_AND_MEAN
  8297.  
  8298. int
  8299. main ()
  8300. {
  8301.  
  8302. CHAR c;
  8303. SHORT s;
  8304. LONG l;
  8305.  
  8306. ;
  8307. return 0;
  8308. }
  8309. _ACEOF
  8310. if ac_fn_c_try_compile "$LINENO"; then :
  8311. tcl_cv_winnt_ignore_void=yes
  8312. else
  8313. tcl_cv_winnt_ignore_void=no
  8314. fi
  8315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8316.  
  8317. fi
  8318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
  8319. $as_echo "$tcl_cv_winnt_ignore_void" >&6; }
  8320. if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
  8321.  
  8322. $as_echo "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
  8323.  
  8324. fi
  8325. fi
  8326.  
  8327. # See if the compiler supports casting to a union type.
  8328. # This is used to stop gcc from printing a compiler
  8329. # warning when initializing a union member.
  8330.  
  8331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
  8332. $as_echo_n "checking for cast to union support... " >&6; }
  8333. if ${tcl_cv_cast_to_union+:} false; then :
  8334. $as_echo_n "(cached) " >&6
  8335. else
  8336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8337. /* end confdefs.h. */
  8338.  
  8339. int
  8340. main ()
  8341. {
  8342.  
  8343. union foo { int i; double d; };
  8344. union foo f = (union foo) (int) 0;
  8345.  
  8346. ;
  8347. return 0;
  8348. }
  8349. _ACEOF
  8350. if ac_fn_c_try_compile "$LINENO"; then :
  8351. tcl_cv_cast_to_union=yes
  8352. else
  8353. tcl_cv_cast_to_union=no
  8354. fi
  8355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8356.  
  8357. fi
  8358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
  8359. $as_echo "$tcl_cv_cast_to_union" >&6; }
  8360. if test "$tcl_cv_cast_to_union" = "yes"; then
  8361.  
  8362. $as_echo "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
  8363.  
  8364. fi
  8365.  
  8366.  
  8367.  
  8368.  
  8369.  
  8370.  
  8371.  
  8372.  
  8373.  
  8374.  
  8375.  
  8376.  
  8377.  
  8378. # These must be called after we do the basic CFLAGS checks and
  8379. # verify any possible 64-bit or similar switches are necessary
  8380.  
  8381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
  8382. $as_echo_n "checking for required early compiler flags... " >&6; }
  8383. tcl_flags=""
  8384.  
  8385. if ${tcl_cv_flag__isoc99_source+:} false; then :
  8386. $as_echo_n "(cached) " >&6
  8387. else
  8388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8389. /* end confdefs.h. */
  8390. #include <stdlib.h>
  8391. int
  8392. main ()
  8393. {
  8394. char *p = (char *)strtoll; char *q = (char *)strtoull;
  8395. ;
  8396. return 0;
  8397. }
  8398. _ACEOF
  8399. if ac_fn_c_try_compile "$LINENO"; then :
  8400. tcl_cv_flag__isoc99_source=no
  8401. else
  8402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8403. /* end confdefs.h. */
  8404. #define _ISOC99_SOURCE 1
  8405. #include <stdlib.h>
  8406. int
  8407. main ()
  8408. {
  8409. char *p = (char *)strtoll; char *q = (char *)strtoull;
  8410. ;
  8411. return 0;
  8412. }
  8413. _ACEOF
  8414. if ac_fn_c_try_compile "$LINENO"; then :
  8415. tcl_cv_flag__isoc99_source=yes
  8416. else
  8417. tcl_cv_flag__isoc99_source=no
  8418. fi
  8419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8420. fi
  8421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8422. fi
  8423.  
  8424. if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
  8425.  
  8426. $as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h
  8427.  
  8428. tcl_flags="$tcl_flags _ISOC99_SOURCE"
  8429. fi
  8430.  
  8431.  
  8432. if ${tcl_cv_flag__largefile64_source+:} false; then :
  8433. $as_echo_n "(cached) " >&6
  8434. else
  8435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8436. /* end confdefs.h. */
  8437. #include <sys/stat.h>
  8438. int
  8439. main ()
  8440. {
  8441. struct stat64 buf; int i = stat64("/", &buf);
  8442. ;
  8443. return 0;
  8444. }
  8445. _ACEOF
  8446. if ac_fn_c_try_compile "$LINENO"; then :
  8447. tcl_cv_flag__largefile64_source=no
  8448. else
  8449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8450. /* end confdefs.h. */
  8451. #define _LARGEFILE64_SOURCE 1
  8452. #include <sys/stat.h>
  8453. int
  8454. main ()
  8455. {
  8456. struct stat64 buf; int i = stat64("/", &buf);
  8457. ;
  8458. return 0;
  8459. }
  8460. _ACEOF
  8461. if ac_fn_c_try_compile "$LINENO"; then :
  8462. tcl_cv_flag__largefile64_source=yes
  8463. else
  8464. tcl_cv_flag__largefile64_source=no
  8465. fi
  8466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8467. fi
  8468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8469. fi
  8470.  
  8471. if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
  8472.  
  8473. $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
  8474.  
  8475. tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
  8476. fi
  8477.  
  8478.  
  8479. if ${tcl_cv_flag__largefile_source64+:} false; then :
  8480. $as_echo_n "(cached) " >&6
  8481. else
  8482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8483. /* end confdefs.h. */
  8484. #include <sys/stat.h>
  8485. int
  8486. main ()
  8487. {
  8488. char *p = (char *)open64;
  8489. ;
  8490. return 0;
  8491. }
  8492. _ACEOF
  8493. if ac_fn_c_try_compile "$LINENO"; then :
  8494. tcl_cv_flag__largefile_source64=no
  8495. else
  8496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8497. /* end confdefs.h. */
  8498. #define _LARGEFILE_SOURCE64 1
  8499. #include <sys/stat.h>
  8500. int
  8501. main ()
  8502. {
  8503. char *p = (char *)open64;
  8504. ;
  8505. return 0;
  8506. }
  8507. _ACEOF
  8508. if ac_fn_c_try_compile "$LINENO"; then :
  8509. tcl_cv_flag__largefile_source64=yes
  8510. else
  8511. tcl_cv_flag__largefile_source64=no
  8512. fi
  8513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8514. fi
  8515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8516. fi
  8517.  
  8518. if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
  8519.  
  8520. $as_echo "#define _LARGEFILE_SOURCE64 1" >>confdefs.h
  8521.  
  8522. tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
  8523. fi
  8524.  
  8525. if test "x${tcl_flags}" = "x" ; then
  8526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  8527. $as_echo "none" >&6; }
  8528. else
  8529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
  8530. $as_echo "${tcl_flags}" >&6; }
  8531. fi
  8532.  
  8533.  
  8534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
  8535. $as_echo_n "checking for 64-bit integer type... " >&6; }
  8536. if ${tcl_cv_type_64bit+:} false; then :
  8537. $as_echo_n "(cached) " >&6
  8538. else
  8539.  
  8540. tcl_cv_type_64bit=none
  8541. # See if the compiler knows natively about __int64
  8542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8543. /* end confdefs.h. */
  8544.  
  8545. int
  8546. main ()
  8547. {
  8548. __int64 value = (__int64) 0;
  8549. ;
  8550. return 0;
  8551. }
  8552. _ACEOF
  8553. if ac_fn_c_try_compile "$LINENO"; then :
  8554. tcl_type_64bit=__int64
  8555. else
  8556. tcl_type_64bit="long long"
  8557. fi
  8558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8559. # See if we should use long anyway Note that we substitute in the
  8560. # type that is our current guess for a 64-bit type inside this check
  8561. # program, so it should be modified only carefully...
  8562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8563. /* end confdefs.h. */
  8564.  
  8565. int
  8566. main ()
  8567. {
  8568. switch (0) {
  8569. case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
  8570. }
  8571. ;
  8572. return 0;
  8573. }
  8574. _ACEOF
  8575. if ac_fn_c_try_compile "$LINENO"; then :
  8576. tcl_cv_type_64bit=${tcl_type_64bit}
  8577. fi
  8578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8579. fi
  8580.  
  8581. if test "${tcl_cv_type_64bit}" = none ; then
  8582.  
  8583. $as_echo "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
  8584.  
  8585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using long" >&5
  8586. $as_echo "using long" >&6; }
  8587. elif test "${tcl_cv_type_64bit}" = "__int64" \
  8588. -a "${TEA_PLATFORM}" = "windows" ; then
  8589. # TEA specific: We actually want to use the default tcl.h checks in
  8590. # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
  8591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
  8592. $as_echo "using Tcl header defaults" >&6; }
  8593. else
  8594.  
  8595. cat >>confdefs.h <<_ACEOF
  8596. #define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
  8597. _ACEOF
  8598.  
  8599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
  8600. $as_echo "${tcl_cv_type_64bit}" >&6; }
  8601.  
  8602. # Now check for auxiliary declarations
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
  8604. $as_echo_n "checking for struct dirent64... " >&6; }
  8605. if ${tcl_cv_struct_dirent64+:} false; then :
  8606. $as_echo_n "(cached) " >&6
  8607. else
  8608.  
  8609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8610. /* end confdefs.h. */
  8611. #include <sys/types.h>
  8612. #include <dirent.h>
  8613. int
  8614. main ()
  8615. {
  8616. struct dirent64 p;
  8617. ;
  8618. return 0;
  8619. }
  8620. _ACEOF
  8621. if ac_fn_c_try_compile "$LINENO"; then :
  8622. tcl_cv_struct_dirent64=yes
  8623. else
  8624. tcl_cv_struct_dirent64=no
  8625. fi
  8626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8627. fi
  8628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
  8629. $as_echo "$tcl_cv_struct_dirent64" >&6; }
  8630. if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
  8631.  
  8632. $as_echo "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
  8633.  
  8634. fi
  8635.  
  8636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
  8637. $as_echo_n "checking for struct stat64... " >&6; }
  8638. if ${tcl_cv_struct_stat64+:} false; then :
  8639. $as_echo_n "(cached) " >&6
  8640. else
  8641.  
  8642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8643. /* end confdefs.h. */
  8644. #include <sys/stat.h>
  8645. int
  8646. main ()
  8647. {
  8648. struct stat64 p;
  8649.  
  8650. ;
  8651. return 0;
  8652. }
  8653. _ACEOF
  8654. if ac_fn_c_try_compile "$LINENO"; then :
  8655. tcl_cv_struct_stat64=yes
  8656. else
  8657. tcl_cv_struct_stat64=no
  8658. fi
  8659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8660. fi
  8661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
  8662. $as_echo "$tcl_cv_struct_stat64" >&6; }
  8663. if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
  8664.  
  8665. $as_echo "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
  8666.  
  8667. fi
  8668.  
  8669. for ac_func in open64 lseek64
  8670. do :
  8671. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8672. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  8673. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  8674. cat >>confdefs.h <<_ACEOF
  8675. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8676. _ACEOF
  8677.  
  8678. fi
  8679. done
  8680.  
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
  8682. $as_echo_n "checking for off64_t... " >&6; }
  8683. if ${tcl_cv_type_off64_t+:} false; then :
  8684. $as_echo_n "(cached) " >&6
  8685. else
  8686.  
  8687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8688. /* end confdefs.h. */
  8689. #include <sys/types.h>
  8690. int
  8691. main ()
  8692. {
  8693. off64_t offset;
  8694.  
  8695. ;
  8696. return 0;
  8697. }
  8698. _ACEOF
  8699. if ac_fn_c_try_compile "$LINENO"; then :
  8700. tcl_cv_type_off64_t=yes
  8701. else
  8702. tcl_cv_type_off64_t=no
  8703. fi
  8704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8705. fi
  8706.  
  8707. if test "x${tcl_cv_type_off64_t}" = "xyes" && \
  8708. test "x${ac_cv_func_lseek64}" = "xyes" && \
  8709. test "x${ac_cv_func_open64}" = "xyes" ; then
  8710.  
  8711. $as_echo "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
  8712.  
  8713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8714. $as_echo "yes" >&6; }
  8715. else
  8716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8717. $as_echo "no" >&6; }
  8718. fi
  8719. fi
  8720.  
  8721.  
  8722.  
  8723. TDOM_LD_SEARCH_FLAGS=${LD_SEARCH_FLAGS}
  8724.  
  8725.  
  8726. #--------------------------------------------------------------------
  8727. # Set the default compiler switches based on the --enable-symbols option.
  8728. #--------------------------------------------------------------------
  8729.  
  8730.  
  8731.  
  8732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
  8733. $as_echo_n "checking for build with symbols... " >&6; }
  8734. # Check whether --enable-symbols was given.
  8735. if test "${enable_symbols+set}" = set; then :
  8736. enableval=$enable_symbols; tcl_ok=$enableval
  8737. else
  8738. tcl_ok=no
  8739. fi
  8740.  
  8741. DBGX=""
  8742. if test "$tcl_ok" = "no"; then
  8743. CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
  8744. LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
  8745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8746. $as_echo "no" >&6; }
  8747. else
  8748. CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
  8749. LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
  8750. if test "$tcl_ok" = "yes"; then
  8751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
  8752. $as_echo "yes (standard debugging)" >&6; }
  8753. fi
  8754. fi
  8755. # TEA specific:
  8756. if test "${TEA_PLATFORM}" != "windows" ; then
  8757. LDFLAGS_DEFAULT="${LDFLAGS}"
  8758. fi
  8759.  
  8760.  
  8761.  
  8762.  
  8763. if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
  8764.  
  8765. $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
  8766.  
  8767. fi
  8768.  
  8769. if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
  8770. if test "$tcl_ok" = "all"; then
  8771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
  8772. $as_echo "enabled symbols mem debugging" >&6; }
  8773. else
  8774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
  8775. $as_echo "enabled $tcl_ok debugging" >&6; }
  8776. fi
  8777. fi
  8778.  
  8779.  
  8780. #--------------------------------------------------------------------
  8781. # Everyone should be linking against the Tcl stub library. If you
  8782. # can't for some reason, remove this definition. If you aren't using
  8783. # stubs, you also need to modify the SHLIB_LD_LIBS setting below to
  8784. # link against the non-stubbed Tcl library. Add Tk too if necessary.
  8785. #--------------------------------------------------------------------
  8786.  
  8787.  
  8788. $as_echo "#define USE_TCL_STUBS 1" >>confdefs.h
  8789.  
  8790. #AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs])
  8791.  
  8792. #--------------------------------------------------------------------
  8793. # This macro generates a line to use when building a library. It
  8794. # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
  8795. # and TEA_LOAD_TCLCONFIG macros above.
  8796. #--------------------------------------------------------------------
  8797.  
  8798.  
  8799. if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
  8800. MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
  8801. MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)"
  8802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8803. /* end confdefs.h. */
  8804.  
  8805. #if defined(_MSC_VER) && _MSC_VER >= 1400
  8806. print("manifest needed")
  8807. #endif
  8808.  
  8809. _ACEOF
  8810. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8811. $EGREP "manifest needed" >/dev/null 2>&1; then :
  8812.  
  8813. # Could do a CHECK_PROG for mt, but should always be with MSVC8+
  8814. VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2 ; fi"
  8815. VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1 ; fi"
  8816. MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
  8817.  
  8818. CLEANFILES="$CLEANFILES *.manifest"
  8819.  
  8820.  
  8821. fi
  8822. rm -f conftest*
  8823.  
  8824. MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
  8825. else
  8826. MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
  8827. MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
  8828. MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
  8829. fi
  8830.  
  8831. if test "${SHARED_BUILD}" = "1" ; then
  8832. MAKE_LIB="${MAKE_SHARED_LIB} "
  8833. else
  8834. MAKE_LIB="${MAKE_STATIC_LIB} "
  8835. fi
  8836.  
  8837. #--------------------------------------------------------------------
  8838. # Shared libraries and static libraries have different names.
  8839. # Use the double eval to make sure any variables in the suffix is
  8840. # substituted. (@@@ Might not be necessary anymore)
  8841. #--------------------------------------------------------------------
  8842.  
  8843. if test "${TEA_PLATFORM}" = "windows" ; then
  8844. if test "${SHARED_BUILD}" = "1" ; then
  8845. # We force the unresolved linking of symbols that are really in
  8846. # the private libraries of Tcl and Tk.
  8847. if test x"${TK_BIN_DIR}" != x ; then
  8848. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
  8849. fi
  8850. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
  8851. if test "$GCC" = "yes"; then
  8852. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
  8853. fi
  8854. eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
  8855. else
  8856. eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
  8857. if test "$GCC" = "yes"; then
  8858. PKG_LIB_FILE=lib${PKG_LIB_FILE}
  8859. fi
  8860. fi
  8861. # Some packages build their own stubs libraries
  8862. eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
  8863. if test "$GCC" = "yes"; then
  8864. PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
  8865. fi
  8866. # These aren't needed on Windows (either MSVC or gcc)
  8867. RANLIB=:
  8868. RANLIB_STUB=:
  8869. else
  8870. RANLIB_STUB="${RANLIB}"
  8871. if test "${SHARED_BUILD}" = "1" ; then
  8872. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
  8873. if test x"${TK_BIN_DIR}" != x ; then
  8874. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
  8875. fi
  8876. eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
  8877. RANLIB=:
  8878. else
  8879. eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
  8880. fi
  8881. # Some packages build their own stubs libraries
  8882. eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
  8883. fi
  8884.  
  8885. # These are escaped so that only CFLAGS is picked up at configure time.
  8886. # The other values will be substituted at make time.
  8887. CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
  8888. if test "${SHARED_BUILD}" = "1" ; then
  8889. CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
  8890. fi
  8891.  
  8892.  
  8893.  
  8894.  
  8895.  
  8896.  
  8897.  
  8898.  
  8899.  
  8900.  
  8901. #--------------------------------------------------------------------
  8902. # Determine the name of the tclsh and/or wish executables in the
  8903. # Tcl and Tk build directories or the location they were installed
  8904. # into. These paths are used to support running test cases only,
  8905. # the Makefile should not be making use of these paths to generate
  8906. # a pkgIndex.tcl file or anything else at extension build time.
  8907. #--------------------------------------------------------------------
  8908.  
  8909.  
  8910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
  8911. $as_echo_n "checking for tclsh... " >&6; }
  8912. if test -f "${TCL_BIN_DIR}/Makefile" ; then
  8913. # tclConfig.sh is in Tcl build directory
  8914. if test "${TEA_PLATFORM}" = "windows"; then
  8915. if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" ; then
  8916. TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
  8917. elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}s${EXEEXT}" ; then
  8918. TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}s${EXEEXT}"
  8919. elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}t${EXEEXT}" ; then
  8920. TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}t${EXEEXT}"
  8921. elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}st${EXEEXT}" ; then
  8922. TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}st${EXEEXT}"
  8923. fi
  8924. else
  8925. TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
  8926. fi
  8927. else
  8928. # tclConfig.sh is in install location
  8929. if test "${TEA_PLATFORM}" = "windows"; then
  8930. TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
  8931. else
  8932. TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}"
  8933. fi
  8934. list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
  8935. `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
  8936. `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
  8937. for i in $list ; do
  8938. if test -f "$i/${TCLSH_PROG}" ; then
  8939. REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
  8940. break
  8941. fi
  8942. done
  8943. TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
  8944. fi
  8945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
  8946. $as_echo "${TCLSH_PROG}" >&6; }
  8947.  
  8948.  
  8949. #TEA_PROG_WISH
  8950.  
  8951. #--------------------------------------------------------------------
  8952. # Add some private preprocessor options
  8953. #--------------------------------------------------------------------
  8954.  
  8955.  
  8956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dtd support" >&5
  8957. $as_echo_n "checking whether to enable dtd support... " >&6; }
  8958. # Check whether --enable-dtd was given.
  8959. if test "${enable_dtd+set}" = set; then :
  8960. enableval=$enable_dtd; tcl_ok=$enableval
  8961. else
  8962. tcl_ok=yes
  8963. fi
  8964.  
  8965.  
  8966. if test "${enable_dtd+set}" = set; then
  8967. enableval="$enable_dtd"
  8968. tcl_ok=$enableval
  8969. else
  8970. tcl_ok=yes
  8971. fi
  8972.  
  8973. if test "$tcl_ok" = "yes" ; then
  8974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8975. $as_echo "yes" >&6; }
  8976. $as_echo "#define XML_DTD 1" >>confdefs.h
  8977.  
  8978. else
  8979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8980. $as_echo "no" >&6; }
  8981. fi
  8982.  
  8983.  
  8984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable namespace support" >&5
  8985. $as_echo_n "checking whether to enable namespace support... " >&6; }
  8986. # Check whether --enable-ns was given.
  8987. if test "${enable_ns+set}" = set; then :
  8988. enableval=$enable_ns; tcl_ok=$enableval
  8989. else
  8990. tcl_ok=yes
  8991. fi
  8992.  
  8993.  
  8994. if test "${enable_ns+set}" = set; then
  8995. enableval="$enable_ns"
  8996. tcl_ok=$enableval
  8997. else
  8998. tcl_ok=yes
  8999. fi
  9000.  
  9001. if test "$tcl_ok" = "yes" ; then
  9002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9003. $as_echo "yes" >&6; }
  9004. $as_echo "#define XML_NS 1" >>confdefs.h
  9005.  
  9006. else
  9007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9008. $as_echo "no" >&6; }
  9009. fi
  9010.  
  9011.  
  9012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable built-in unknown command" >&5
  9013. $as_echo_n "checking whether to enable built-in unknown command... " >&6; }
  9014. # Check whether --enable-ucmd was given.
  9015. if test "${enable_ucmd+set}" = set; then :
  9016. enableval=$enable_ucmd; tcl_ok=$enableval
  9017. else
  9018. tcl_ok=no
  9019. fi
  9020.  
  9021.  
  9022. if test "${enable_unknown+set}" = set; then
  9023. enableval="$enable_unknown"
  9024. tcl_ok=$enableval
  9025. else
  9026. tcl_ok=no
  9027. fi
  9028.  
  9029. if test "$tcl_ok" = "no" ; then
  9030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9031. $as_echo "no" >&6; }
  9032. $as_echo "#define TDOM_NO_UNKNOWN_CMD 1" >>confdefs.h
  9033.  
  9034. else
  9035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9036. $as_echo "yes" >&6; }
  9037. fi
  9038.  
  9039.  
  9040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tDOMs block allocator" >&5
  9041. $as_echo_n "checking whether to enable tDOMs block allocator... " >&6; }
  9042. # Check whether --enable-tdomalloc was given.
  9043. if test "${enable_tdomalloc+set}" = set; then :
  9044. enableval=$enable_tdomalloc; tcl_ok=$enableval
  9045. else
  9046. tcl_ok=no
  9047. fi
  9048.  
  9049.  
  9050. if test "${enable_tdomalloc+set}" = set; then
  9051. enableval="$enable_tdomalloc"
  9052. tcl_ok=$enableval
  9053. else
  9054. tcl_ok=no
  9055. fi
  9056.  
  9057. if test "$tcl_ok" = "yes" ; then
  9058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9059. $as_echo "yes" >&6; }
  9060.  
  9061. vars="generic/domalloc.c"
  9062. for i in $vars; do
  9063. case $i in
  9064. \$*)
  9065. # allow $-var names
  9066. PKG_SOURCES="$PKG_SOURCES $i"
  9067. PKG_OBJECTS="$PKG_OBJECTS $i"
  9068. ;;
  9069. *)
  9070. # check for existence - allows for generic/win/unix VPATH
  9071. # To add more dirs here (like 'src'), you have to update VPATH
  9072. # in Makefile.in as well
  9073. if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
  9074. -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
  9075. -a ! -f "${srcdir}/macosx/$i" \
  9076. ; then
  9077. as_fn_error $? "could not find source file '$i'" "$LINENO" 5
  9078. fi
  9079. PKG_SOURCES="$PKG_SOURCES $i"
  9080. # this assumes it is in a VPATH dir
  9081. i=`basename $i`
  9082. # handle user calling this before or after TEA_SETUP_COMPILER
  9083. if test x"${OBJEXT}" != x ; then
  9084. j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
  9085. else
  9086. j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
  9087. fi
  9088. PKG_OBJECTS="$PKG_OBJECTS $j"
  9089. ;;
  9090. esac
  9091. done
  9092.  
  9093.  
  9094.  
  9095. else
  9096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9097. $as_echo "no" >&6; }
  9098. $as_echo "#define USE_NORMAL_ALLOCATOR 1" >>confdefs.h
  9099.  
  9100. fi
  9101.  
  9102.  
  9103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lower limit for XML ns declarations per document" >&5
  9104. $as_echo_n "checking whether to enable lower limit for XML ns declarations per document... " >&6; }
  9105. # Check whether --enable-lessns was given.
  9106. if test "${enable_lessns+set}" = set; then :
  9107. enableval=$enable_lessns; tcl_ok=$enableval
  9108. else
  9109. tcl_ok=no
  9110. fi
  9111.  
  9112.  
  9113. if test "${enable_lessns+set}" = set; then
  9114. enableval="$enable_lessns"
  9115. tcl_ok=$enableval
  9116. else
  9117. tcl_ok=no
  9118. fi
  9119.  
  9120. if test "$tcl_ok" = "yes" ; then
  9121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9122. $as_echo "yes" >&6; }
  9123. $as_echo "#define TDOM_LESS_NS 1" >>confdefs.h
  9124.  
  9125. else
  9126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9127. $as_echo "no" >&6; }
  9128. fi
  9129.  
  9130.  
  9131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which source of entropy to use" >&5
  9132. $as_echo "$as_me: checking which source of entropy to use" >&6;}
  9133.  
  9134. # Check whether --with-entropy was given.
  9135. if test "${with_entropy+set}" = set; then :
  9136. withval=$with_entropy;
  9137. else
  9138. with_entropy=auto
  9139. fi
  9140.  
  9141.  
  9142. case $with_entropy in
  9143. auto)
  9144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
  9145. $as_echo_n "checking for arc4random_buf (BSD or libbsd)... " >&6; }
  9146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9147. /* end confdefs.h. */
  9148.  
  9149. #include <stdlib.h> /* for arc4random_buf on BSD, for NULL */
  9150. #if defined(HAVE_LIBBSD)
  9151. # include <bsd/stdlib.h>
  9152. #endif
  9153. int main() {
  9154. arc4random_buf(NULL, 0U);
  9155. return 0;
  9156. }
  9157.  
  9158. _ACEOF
  9159. if ac_fn_c_try_link "$LINENO"; then :
  9160.  
  9161.  
  9162. $as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
  9163.  
  9164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9165. $as_echo "yes" >&6; }
  9166.  
  9167. else
  9168.  
  9169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9170. $as_echo "no" >&6; }
  9171.  
  9172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS or libbsd)" >&5
  9173. $as_echo_n "checking for arc4random (BSD, macOS or libbsd)... " >&6; }
  9174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9175. /* end confdefs.h. */
  9176.  
  9177. #if defined(HAVE_LIBBSD)
  9178. # include <bsd/stdlib.h>
  9179. #else
  9180. # include <stdlib.h>
  9181. #endif
  9182. int main() {
  9183. arc4random();
  9184. return 0;
  9185. }
  9186.  
  9187. _ACEOF
  9188. if ac_fn_c_try_link "$LINENO"; then :
  9189.  
  9190.  
  9191. $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
  9192.  
  9193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9194. $as_echo "yes" >&6; }
  9195.  
  9196. else
  9197.  
  9198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9199. $as_echo "no" >&6; }
  9200.  
  9201. fi
  9202. rm -f core conftest.err conftest.$ac_objext \
  9203. conftest$ac_exeext conftest.$ac_ext
  9204.  
  9205. fi
  9206. rm -f core conftest.err conftest.$ac_objext \
  9207. conftest$ac_exeext conftest.$ac_ext
  9208.  
  9209.  
  9210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
  9211. $as_echo_n "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
  9212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9213. /* end confdefs.h. */
  9214.  
  9215. #include <stdlib.h> /* for NULL */
  9216. #include <sys/random.h>
  9217. int main() {
  9218. return getrandom(NULL, 0U, 0U);
  9219. }
  9220.  
  9221. _ACEOF
  9222. if ac_fn_c_try_link "$LINENO"; then :
  9223.  
  9224.  
  9225. $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
  9226.  
  9227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9228. $as_echo "yes" >&6; }
  9229.  
  9230. else
  9231.  
  9232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9233. $as_echo "no" >&6; }
  9234.  
  9235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
  9236. $as_echo_n "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
  9237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9238. /* end confdefs.h. */
  9239.  
  9240. #include <stdlib.h> /* for NULL */
  9241. #include <unistd.h> /* for syscall */
  9242. #include <sys/syscall.h> /* for SYS_getrandom */
  9243. int main() {
  9244. syscall(SYS_getrandom, NULL, 0, 0);
  9245. return 0;
  9246. }
  9247.  
  9248. _ACEOF
  9249. if ac_fn_c_try_link "$LINENO"; then :
  9250.  
  9251.  
  9252. $as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
  9253.  
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9255. $as_echo "yes" >&6; }
  9256.  
  9257. else
  9258.  
  9259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9260. $as_echo "no" >&6; }
  9261.  
  9262. fi
  9263. rm -f core conftest.err conftest.$ac_objext \
  9264. conftest$ac_exeext conftest.$ac_ext
  9265.  
  9266. fi
  9267. rm -f core conftest.err conftest.$ac_objext \
  9268. conftest$ac_exeext conftest.$ac_ext
  9269.  
  9270. $as_echo "#define XML_DEV_URANDOM 1" >>confdefs.h
  9271.  
  9272.  
  9273. $as_echo "#define XML_POOR_ENTROPY 1" >>confdefs.h
  9274.  
  9275. ;;
  9276. HAVE_GETRANDOM)
  9277.  
  9278. $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
  9279.  
  9280. ;;
  9281. HAVE_SYSCALL_GETRANDOM)
  9282.  
  9283. $as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
  9284.  
  9285. ;;
  9286. HAVE_ARC4RANDOM_BUF)
  9287.  
  9288. $as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
  9289.  
  9290. ;;
  9291. HAVE_ARC4RANDOM)
  9292.  
  9293. $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
  9294.  
  9295. ;;
  9296. XML_DEV_URANDOM)
  9297.  
  9298. $as_echo "#define XML_DEV_URANDOM 1" >>confdefs.h
  9299.  
  9300. ;;
  9301. XML_POOR_ENTROPY)
  9302.  
  9303. $as_echo "#define XML_POOR_ENTROPY 1" >>confdefs.h
  9304.  
  9305. ;;
  9306. *)
  9307. as_fn_error $? "${with_entropy} not known." "$LINENO" 5
  9308. esac
  9309.  
  9310.  
  9311. TDOMSHELL=tcldomsh
  9312.  
  9313.  
  9314.  
  9315. #--------------------------------------------------------------------
  9316. # These are for ${PACKAGE_NAME}Config.sh
  9317. #--------------------------------------------------------------------
  9318.  
  9319. # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib)
  9320. eval pkglibdir="${libdir}/${PACKAGE_NAME}${PACKAGE_VERSION}"
  9321. if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
  9322. eval PKG_STUB_LIB_FLAG="-l${PACKAGE_NAME}stub${PACKAGE_VERSION}"
  9323. else
  9324. eval PKG_STUB_LIB_FLAG="-l${PACKAGE_NAME}stub`echo ${PACKAGE_VERSION} | tr -d .`"
  9325. fi
  9326. PKG_BUILD_STUB_LIB_SPEC="-L`pwd` ${PKG_STUB_LIB_FLAG}"
  9327. PKG_STUB_LIB_SPEC="-L${pkglibdir} ${PKG_STUB_LIB_FLAG}"
  9328. PKG_BUILD_STUB_LIB_PATH="`pwd`/${PKG_STUB_LIB_FILE}"
  9329. PKG_STUB_LIB_PATH="${pkglibdir}/${PKG_STUB_LIB_FILE}"
  9330.  
  9331.  
  9332.  
  9333.  
  9334.  
  9335.  
  9336.  
  9337. #--------------------------------------------------------------------
  9338. # Finally, substitute all of the various values into the Makefile.
  9339. # You may alternatively have a special pkgIndex.tcl.in or other files
  9340. # which require substituting th AC variables in. Include these here.
  9341. #--------------------------------------------------------------------
  9342.  
  9343. ac_config_files="$ac_config_files Makefile tdomConfig.sh"
  9344.  
  9345. cat >confcache <<\_ACEOF
  9346. # This file is a shell script that caches the results of configure
  9347. # tests run on this system so they can be shared between configure
  9348. # scripts and configure runs, see configure's option --config-cache.
  9349. # It is not useful on other systems. If it contains results you don't
  9350. # want to keep, you may remove or edit it.
  9351. #
  9352. # config.status only pays attention to the cache file if you give it
  9353. # the --recheck option to rerun configure.
  9354. #
  9355. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9356. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9357. # following values.
  9358.  
  9359. _ACEOF
  9360.  
  9361. # The following way of writing the cache mishandles newlines in values,
  9362. # but we know of no workaround that is simple, portable, and efficient.
  9363. # So, we kill variables containing newlines.
  9364. # Ultrix sh set writes to stderr and can't be redirected directly,
  9365. # and sets the high bit in the cache file unless we assign to the vars.
  9366. (
  9367. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9368. eval ac_val=\$$ac_var
  9369. case $ac_val in #(
  9370. *${as_nl}*)
  9371. case $ac_var in #(
  9372. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9373. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9374. esac
  9375. case $ac_var in #(
  9376. _ | IFS | as_nl) ;; #(
  9377. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9378. *) { eval $ac_var=; unset $ac_var;} ;;
  9379. esac ;;
  9380. esac
  9381. done
  9382.  
  9383. (set) 2>&1 |
  9384. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9385. *${as_nl}ac_space=\ *)
  9386. # `set' does not quote correctly, so add quotes: double-quote
  9387. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9388. sed -n \
  9389. "s/'/'\\\\''/g;
  9390. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9391. ;; #(
  9392. *)
  9393. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9394. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9395. ;;
  9396. esac |
  9397. sort
  9398. ) |
  9399. sed '
  9400. /^ac_cv_env_/b end
  9401. t clear
  9402. :clear
  9403. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9404. t end
  9405. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9406. :end' >>confcache
  9407. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9408. if test -w "$cache_file"; then
  9409. if test "x$cache_file" != "x/dev/null"; then
  9410. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9411. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9412. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9413. cat confcache >"$cache_file"
  9414. else
  9415. case $cache_file in #(
  9416. */* | ?:*)
  9417. mv -f confcache "$cache_file"$$ &&
  9418. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9419. *)
  9420. mv -f confcache "$cache_file" ;;
  9421. esac
  9422. fi
  9423. fi
  9424. else
  9425. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9426. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9427. fi
  9428. fi
  9429. rm -f confcache
  9430.  
  9431. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9432. # Let make expand exec_prefix.
  9433. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9434.  
  9435. # Transform confdefs.h into DEFS.
  9436. # Protect against shell expansion while executing Makefile rules.
  9437. # Protect against Makefile macro expansion.
  9438. #
  9439. # If the first sed substitution is executed (which looks for macros that
  9440. # take arguments), then branch to the quote section. Otherwise,
  9441. # look for a macro that doesn't take arguments.
  9442. ac_script='
  9443. :mline
  9444. /\\$/{
  9445. N
  9446. s,\\\n,,
  9447. b mline
  9448. }
  9449. t clear
  9450. :clear
  9451. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  9452. t quote
  9453. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  9454. t quote
  9455. b any
  9456. :quote
  9457. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  9458. s/\[/\\&/g
  9459. s/\]/\\&/g
  9460. s/\$/$$/g
  9461. H
  9462. :any
  9463. ${
  9464. g
  9465. s/^\n//
  9466. s/\n/ /g
  9467. p
  9468. }
  9469. '
  9470. DEFS=`sed -n "$ac_script" confdefs.h`
  9471.  
  9472.  
  9473. ac_libobjs=
  9474. ac_ltlibobjs=
  9475. U=
  9476. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9477. # 1. Remove the extension, and $U if already installed.
  9478. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9479. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9480. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9481. # will be set to the directory where LIBOBJS objects are built.
  9482. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9483. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9484. done
  9485. LIBOBJS=$ac_libobjs
  9486.  
  9487. LTLIBOBJS=$ac_ltlibobjs
  9488.  
  9489.  
  9490.  
  9491. CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
  9492.  
  9493. : "${CONFIG_STATUS=./config.status}"
  9494. ac_write_fail=0
  9495. ac_clean_files_save=$ac_clean_files
  9496. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9498. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9499. as_write_fail=0
  9500. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9501. #! $SHELL
  9502. # Generated by $as_me.
  9503. # Run this file to recreate the current configuration.
  9504. # Compiler output produced by configure, useful for debugging
  9505. # configure, is in config.log if it exists.
  9506.  
  9507. debug=false
  9508. ac_cs_recheck=false
  9509. ac_cs_silent=false
  9510.  
  9511. SHELL=\${CONFIG_SHELL-$SHELL}
  9512. export SHELL
  9513. _ASEOF
  9514. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9515. ## -------------------- ##
  9516. ## M4sh Initialization. ##
  9517. ## -------------------- ##
  9518.  
  9519. # Be more Bourne compatible
  9520. DUALCASE=1; export DUALCASE # for MKS sh
  9521. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9522. emulate sh
  9523. NULLCMD=:
  9524. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9525. # is contrary to our usage. Disable this feature.
  9526. alias -g '${1+"$@"}'='"$@"'
  9527. setopt NO_GLOB_SUBST
  9528. else
  9529. case `(set -o) 2>/dev/null` in #(
  9530. *posix*) :
  9531. set -o posix ;; #(
  9532. *) :
  9533. ;;
  9534. esac
  9535. fi
  9536.  
  9537.  
  9538. as_nl='
  9539. '
  9540. export as_nl
  9541. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9542. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9543. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9544. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9545. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9546. # but without wasting forks for bash or zsh.
  9547. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9548. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9549. as_echo='print -r --'
  9550. as_echo_n='print -rn --'
  9551. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9552. as_echo='printf %s\n'
  9553. as_echo_n='printf %s'
  9554. else
  9555. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9556. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9557. as_echo_n='/usr/ucb/echo -n'
  9558. else
  9559. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9560. as_echo_n_body='eval
  9561. arg=$1;
  9562. case $arg in #(
  9563. *"$as_nl"*)
  9564. expr "X$arg" : "X\\(.*\\)$as_nl";
  9565. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9566. esac;
  9567. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9568. '
  9569. export as_echo_n_body
  9570. as_echo_n='sh -c $as_echo_n_body as_echo'
  9571. fi
  9572. export as_echo_body
  9573. as_echo='sh -c $as_echo_body as_echo'
  9574. fi
  9575.  
  9576. # The user is always right.
  9577. if test "${PATH_SEPARATOR+set}" != set; then
  9578. PATH_SEPARATOR=:
  9579. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9580. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9581. PATH_SEPARATOR=';'
  9582. }
  9583. fi
  9584.  
  9585.  
  9586. # IFS
  9587. # We need space, tab and new line, in precisely that order. Quoting is
  9588. # there to prevent editors from complaining about space-tab.
  9589. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9590. # splitting by setting IFS to empty value.)
  9591. IFS=" "" $as_nl"
  9592.  
  9593. # Find who we are. Look in the path if we contain no directory separator.
  9594. as_myself=
  9595. case $0 in #((
  9596. *[\\/]* ) as_myself=$0 ;;
  9597. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9598. for as_dir in $PATH
  9599. do
  9600. IFS=$as_save_IFS
  9601. test -z "$as_dir" && as_dir=.
  9602. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9603. done
  9604. IFS=$as_save_IFS
  9605.  
  9606. ;;
  9607. esac
  9608. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9609. # in which case we are not to be found in the path.
  9610. if test "x$as_myself" = x; then
  9611. as_myself=$0
  9612. fi
  9613. if test ! -f "$as_myself"; then
  9614. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9615. exit 1
  9616. fi
  9617.  
  9618. # Unset variables that we do not need and which cause bugs (e.g. in
  9619. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9620. # suppresses any "Segmentation fault" message there. '((' could
  9621. # trigger a bug in pdksh 5.2.14.
  9622. for as_var in BASH_ENV ENV MAIL MAILPATH
  9623. do eval test x\${$as_var+set} = xset \
  9624. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9625. done
  9626. PS1='$ '
  9627. PS2='> '
  9628. PS4='+ '
  9629.  
  9630. # NLS nuisances.
  9631. LC_ALL=C
  9632. export LC_ALL
  9633. LANGUAGE=C
  9634. export LANGUAGE
  9635.  
  9636. # CDPATH.
  9637. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9638.  
  9639.  
  9640. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9641. # ----------------------------------------
  9642. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9643. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9644. # script with STATUS, using 1 if that was 0.
  9645. as_fn_error ()
  9646. {
  9647. as_status=$1; test $as_status -eq 0 && as_status=1
  9648. if test "$4"; then
  9649. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9650. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9651. fi
  9652. $as_echo "$as_me: error: $2" >&2
  9653. as_fn_exit $as_status
  9654. } # as_fn_error
  9655.  
  9656.  
  9657. # as_fn_set_status STATUS
  9658. # -----------------------
  9659. # Set $? to STATUS, without forking.
  9660. as_fn_set_status ()
  9661. {
  9662. return $1
  9663. } # as_fn_set_status
  9664.  
  9665. # as_fn_exit STATUS
  9666. # -----------------
  9667. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9668. as_fn_exit ()
  9669. {
  9670. set +e
  9671. as_fn_set_status $1
  9672. exit $1
  9673. } # as_fn_exit
  9674.  
  9675. # as_fn_unset VAR
  9676. # ---------------
  9677. # Portably unset VAR.
  9678. as_fn_unset ()
  9679. {
  9680. { eval $1=; unset $1;}
  9681. }
  9682. as_unset=as_fn_unset
  9683. # as_fn_append VAR VALUE
  9684. # ----------------------
  9685. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9686. # advantage of any shell optimizations that allow amortized linear growth over
  9687. # repeated appends, instead of the typical quadratic growth present in naive
  9688. # implementations.
  9689. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9690. eval 'as_fn_append ()
  9691. {
  9692. eval $1+=\$2
  9693. }'
  9694. else
  9695. as_fn_append ()
  9696. {
  9697. eval $1=\$$1\$2
  9698. }
  9699. fi # as_fn_append
  9700.  
  9701. # as_fn_arith ARG...
  9702. # ------------------
  9703. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9704. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9705. # must be portable across $(()) and expr.
  9706. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9707. eval 'as_fn_arith ()
  9708. {
  9709. as_val=$(( $* ))
  9710. }'
  9711. else
  9712. as_fn_arith ()
  9713. {
  9714. as_val=`expr "$@" || test $? -eq 1`
  9715. }
  9716. fi # as_fn_arith
  9717.  
  9718.  
  9719. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9720. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9721. as_expr=expr
  9722. else
  9723. as_expr=false
  9724. fi
  9725.  
  9726. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9727. as_basename=basename
  9728. else
  9729. as_basename=false
  9730. fi
  9731.  
  9732. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9733. as_dirname=dirname
  9734. else
  9735. as_dirname=false
  9736. fi
  9737.  
  9738. as_me=`$as_basename -- "$0" ||
  9739. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9740. X"$0" : 'X\(//\)$' \| \
  9741. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9742. $as_echo X/"$0" |
  9743. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9744. s//\1/
  9745. q
  9746. }
  9747. /^X\/\(\/\/\)$/{
  9748. s//\1/
  9749. q
  9750. }
  9751. /^X\/\(\/\).*/{
  9752. s//\1/
  9753. q
  9754. }
  9755. s/.*/./; q'`
  9756.  
  9757. # Avoid depending upon Character Ranges.
  9758. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9759. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9760. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9761. as_cr_digits='0123456789'
  9762. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9763.  
  9764. ECHO_C= ECHO_N= ECHO_T=
  9765. case `echo -n x` in #(((((
  9766. -n*)
  9767. case `echo 'xy\c'` in
  9768. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9769. xy) ECHO_C='\c';;
  9770. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9771. ECHO_T=' ';;
  9772. esac;;
  9773. *)
  9774. ECHO_N='-n';;
  9775. esac
  9776.  
  9777. rm -f conf$$ conf$$.exe conf$$.file
  9778. if test -d conf$$.dir; then
  9779. rm -f conf$$.dir/conf$$.file
  9780. else
  9781. rm -f conf$$.dir
  9782. mkdir conf$$.dir 2>/dev/null
  9783. fi
  9784. if (echo >conf$$.file) 2>/dev/null; then
  9785. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9786. as_ln_s='ln -s'
  9787. # ... but there are two gotchas:
  9788. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9789. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9790. # In both cases, we have to default to `cp -pR'.
  9791. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9792. as_ln_s='cp -pR'
  9793. elif ln conf$$.file conf$$ 2>/dev/null; then
  9794. as_ln_s=ln
  9795. else
  9796. as_ln_s='cp -pR'
  9797. fi
  9798. else
  9799. as_ln_s='cp -pR'
  9800. fi
  9801. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9802. rmdir conf$$.dir 2>/dev/null
  9803.  
  9804.  
  9805. # as_fn_mkdir_p
  9806. # -------------
  9807. # Create "$as_dir" as a directory, including parents if necessary.
  9808. as_fn_mkdir_p ()
  9809. {
  9810.  
  9811. case $as_dir in #(
  9812. -*) as_dir=./$as_dir;;
  9813. esac
  9814. test -d "$as_dir" || eval $as_mkdir_p || {
  9815. as_dirs=
  9816. while :; do
  9817. case $as_dir in #(
  9818. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9819. *) as_qdir=$as_dir;;
  9820. esac
  9821. as_dirs="'$as_qdir' $as_dirs"
  9822. as_dir=`$as_dirname -- "$as_dir" ||
  9823. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9824. X"$as_dir" : 'X\(//\)[^/]' \| \
  9825. X"$as_dir" : 'X\(//\)$' \| \
  9826. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9827. $as_echo X"$as_dir" |
  9828. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9829. s//\1/
  9830. q
  9831. }
  9832. /^X\(\/\/\)[^/].*/{
  9833. s//\1/
  9834. q
  9835. }
  9836. /^X\(\/\/\)$/{
  9837. s//\1/
  9838. q
  9839. }
  9840. /^X\(\/\).*/{
  9841. s//\1/
  9842. q
  9843. }
  9844. s/.*/./; q'`
  9845. test -d "$as_dir" && break
  9846. done
  9847. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9848. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9849.  
  9850.  
  9851. } # as_fn_mkdir_p
  9852. if mkdir -p . 2>/dev/null; then
  9853. as_mkdir_p='mkdir -p "$as_dir"'
  9854. else
  9855. test -d ./-p && rmdir ./-p
  9856. as_mkdir_p=false
  9857. fi
  9858.  
  9859.  
  9860. # as_fn_executable_p FILE
  9861. # -----------------------
  9862. # Test if FILE is an executable regular file.
  9863. as_fn_executable_p ()
  9864. {
  9865. test -f "$1" && test -x "$1"
  9866. } # as_fn_executable_p
  9867. as_test_x='test -x'
  9868. as_executable_p=as_fn_executable_p
  9869.  
  9870. # Sed expression to map a string onto a valid CPP name.
  9871. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9872.  
  9873. # Sed expression to map a string onto a valid variable name.
  9874. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9875.  
  9876.  
  9877. exec 6>&1
  9878. ## ----------------------------------- ##
  9879. ## Main body of $CONFIG_STATUS script. ##
  9880. ## ----------------------------------- ##
  9881. _ASEOF
  9882. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9883.  
  9884. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9885. # Save the log message, to keep $0 and so on meaningful, and to
  9886. # report actual input values of CONFIG_FILES etc. instead of their
  9887. # values after options handling.
  9888. ac_log="
  9889. This file was extended by tdom $as_me 0.9.1, which was
  9890. generated by GNU Autoconf 2.69. Invocation command line was
  9891.  
  9892. CONFIG_FILES = $CONFIG_FILES
  9893. CONFIG_HEADERS = $CONFIG_HEADERS
  9894. CONFIG_LINKS = $CONFIG_LINKS
  9895. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9896. $ $0 $@
  9897.  
  9898. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9899. "
  9900.  
  9901. _ACEOF
  9902.  
  9903. case $ac_config_files in *"
  9904. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9905. esac
  9906.  
  9907.  
  9908.  
  9909. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9910. # Files that config.status was made for.
  9911. config_files="$ac_config_files"
  9912.  
  9913. _ACEOF
  9914.  
  9915. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9916. ac_cs_usage="\
  9917. \`$as_me' instantiates files and other configuration actions
  9918. from templates according to the current configuration. Unless the files
  9919. and actions are specified as TAGs, all are instantiated by default.
  9920.  
  9921. Usage: $0 [OPTION]... [TAG]...
  9922.  
  9923. -h, --help print this help, then exit
  9924. -V, --version print version number and configuration settings, then exit
  9925. --config print configuration, then exit
  9926. -q, --quiet, --silent
  9927. do not print progress messages
  9928. -d, --debug don't remove temporary files
  9929. --recheck update $as_me by reconfiguring in the same conditions
  9930. --file=FILE[:TEMPLATE]
  9931. instantiate the configuration file FILE
  9932.  
  9933. Configuration files:
  9934. $config_files
  9935.  
  9936. Report bugs to the package provider."
  9937.  
  9938. _ACEOF
  9939. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9940. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9941. ac_cs_version="\\
  9942. tdom config.status 0.9.1
  9943. configured by $0, generated by GNU Autoconf 2.69,
  9944. with options \\"\$ac_cs_config\\"
  9945.  
  9946. Copyright (C) 2012 Free Software Foundation, Inc.
  9947. This config.status script is free software; the Free Software Foundation
  9948. gives unlimited permission to copy, distribute and modify it."
  9949.  
  9950. ac_pwd='$ac_pwd'
  9951. srcdir='$srcdir'
  9952. test -n "\$AWK" || AWK=awk
  9953. _ACEOF
  9954.  
  9955. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9956. # The default lists apply if the user does not specify any file.
  9957. ac_need_defaults=:
  9958. while test $# != 0
  9959. do
  9960. case $1 in
  9961. --*=?*)
  9962. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9963. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9964. ac_shift=:
  9965. ;;
  9966. --*=)
  9967. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9968. ac_optarg=
  9969. ac_shift=:
  9970. ;;
  9971. *)
  9972. ac_option=$1
  9973. ac_optarg=$2
  9974. ac_shift=shift
  9975. ;;
  9976. esac
  9977.  
  9978. case $ac_option in
  9979. # Handling of the options.
  9980. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9981. ac_cs_recheck=: ;;
  9982. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9983. $as_echo "$ac_cs_version"; exit ;;
  9984. --config | --confi | --conf | --con | --co | --c )
  9985. $as_echo "$ac_cs_config"; exit ;;
  9986. --debug | --debu | --deb | --de | --d | -d )
  9987. debug=: ;;
  9988. --file | --fil | --fi | --f )
  9989. $ac_shift
  9990. case $ac_optarg in
  9991. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9992. '') as_fn_error $? "missing file argument" ;;
  9993. esac
  9994. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9995. ac_need_defaults=false;;
  9996. --he | --h | --help | --hel | -h )
  9997. $as_echo "$ac_cs_usage"; exit ;;
  9998. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9999. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10000. ac_cs_silent=: ;;
  10001.  
  10002. # This is an error.
  10003. -*) as_fn_error $? "unrecognized option: \`$1'
  10004. Try \`$0 --help' for more information." ;;
  10005.  
  10006. *) as_fn_append ac_config_targets " $1"
  10007. ac_need_defaults=false ;;
  10008.  
  10009. esac
  10010. shift
  10011. done
  10012.  
  10013. ac_configure_extra_args=
  10014.  
  10015. if $ac_cs_silent; then
  10016. exec 6>/dev/null
  10017. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10018. fi
  10019.  
  10020. _ACEOF
  10021. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10022. if \$ac_cs_recheck; then
  10023. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10024. shift
  10025. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10026. CONFIG_SHELL='$SHELL'
  10027. export CONFIG_SHELL
  10028. exec "\$@"
  10029. fi
  10030.  
  10031. _ACEOF
  10032. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10033. exec 5>>config.log
  10034. {
  10035. echo
  10036. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10037. ## Running $as_me. ##
  10038. _ASBOX
  10039. $as_echo "$ac_log"
  10040. } >&5
  10041.  
  10042. _ACEOF
  10043. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10044. _ACEOF
  10045.  
  10046. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10047.  
  10048. # Handling of arguments.
  10049. for ac_config_target in $ac_config_targets
  10050. do
  10051. case $ac_config_target in
  10052. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10053. "tdomConfig.sh") CONFIG_FILES="$CONFIG_FILES tdomConfig.sh" ;;
  10054.  
  10055. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10056. esac
  10057. done
  10058.  
  10059.  
  10060. # If the user did not use the arguments to specify the items to instantiate,
  10061. # then the envvar interface is used. Set only those that are not.
  10062. # We use the long form for the default assignment because of an extremely
  10063. # bizarre bug on SunOS 4.1.3.
  10064. if $ac_need_defaults; then
  10065. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10066. fi
  10067.  
  10068. # Have a temporary directory for convenience. Make it in the build tree
  10069. # simply because there is no reason against having it here, and in addition,
  10070. # creating and moving files from /tmp can sometimes cause problems.
  10071. # Hook for its removal unless debugging.
  10072. # Note that there is a small window in which the directory will not be cleaned:
  10073. # after its creation but before its name has been assigned to `$tmp'.
  10074. $debug ||
  10075. {
  10076. tmp= ac_tmp=
  10077. trap 'exit_status=$?
  10078. : "${ac_tmp:=$tmp}"
  10079. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10080. ' 0
  10081. trap 'as_fn_exit 1' 1 2 13 15
  10082. }
  10083. # Create a (secure) tmp directory for tmp files.
  10084.  
  10085. {
  10086. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10087. test -d "$tmp"
  10088. } ||
  10089. {
  10090. tmp=./conf$$-$RANDOM
  10091. (umask 077 && mkdir "$tmp")
  10092. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10093. ac_tmp=$tmp
  10094.  
  10095. # Set up the scripts for CONFIG_FILES section.
  10096. # No need to generate them if there are no CONFIG_FILES.
  10097. # This happens for instance with `./config.status config.h'.
  10098. if test -n "$CONFIG_FILES"; then
  10099.  
  10100.  
  10101. ac_cr=`echo X | tr X '\015'`
  10102. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10103. # But we know of no other shell where ac_cr would be empty at this
  10104. # point, so we can use a bashism as a fallback.
  10105. if test "x$ac_cr" = x; then
  10106. eval ac_cr=\$\'\\r\'
  10107. fi
  10108. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10109. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10110. ac_cs_awk_cr='\\r'
  10111. else
  10112. ac_cs_awk_cr=$ac_cr
  10113. fi
  10114.  
  10115. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10116. _ACEOF
  10117.  
  10118.  
  10119. {
  10120. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10121. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10122. echo "_ACEOF"
  10123. } >conf$$subs.sh ||
  10124. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10125. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10126. ac_delim='%!_!# '
  10127. for ac_last_try in false false false false false :; do
  10128. . ./conf$$subs.sh ||
  10129. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10130.  
  10131. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10132. if test $ac_delim_n = $ac_delim_num; then
  10133. break
  10134. elif $ac_last_try; then
  10135. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10136. else
  10137. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10138. fi
  10139. done
  10140. rm -f conf$$subs.sh
  10141.  
  10142. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10143. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10144. _ACEOF
  10145. sed -n '
  10146. h
  10147. s/^/S["/; s/!.*/"]=/
  10148. p
  10149. g
  10150. s/^[^!]*!//
  10151. :repl
  10152. t repl
  10153. s/'"$ac_delim"'$//
  10154. t delim
  10155. :nl
  10156. h
  10157. s/\(.\{148\}\)..*/\1/
  10158. t more1
  10159. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10160. p
  10161. n
  10162. b repl
  10163. :more1
  10164. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10165. p
  10166. g
  10167. s/.\{148\}//
  10168. t nl
  10169. :delim
  10170. h
  10171. s/\(.\{148\}\)..*/\1/
  10172. t more2
  10173. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10174. p
  10175. b
  10176. :more2
  10177. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10178. p
  10179. g
  10180. s/.\{148\}//
  10181. t delim
  10182. ' <conf$$subs.awk | sed '
  10183. /^[^""]/{
  10184. N
  10185. s/\n//
  10186. }
  10187. ' >>$CONFIG_STATUS || ac_write_fail=1
  10188. rm -f conf$$subs.awk
  10189. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10190. _ACAWK
  10191. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10192. for (key in S) S_is_set[key] = 1
  10193. FS = ""
  10194.  
  10195. }
  10196. {
  10197. line = $ 0
  10198. nfields = split(line, field, "@")
  10199. substed = 0
  10200. len = length(field[1])
  10201. for (i = 2; i < nfields; i++) {
  10202. key = field[i]
  10203. keylen = length(key)
  10204. if (S_is_set[key]) {
  10205. value = S[key]
  10206. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10207. len += length(value) + length(field[++i])
  10208. substed = 1
  10209. } else
  10210. len += 1 + keylen
  10211. }
  10212.  
  10213. print line
  10214. }
  10215.  
  10216. _ACAWK
  10217. _ACEOF
  10218. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10219. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10220. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10221. else
  10222. cat
  10223. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10224. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10225. _ACEOF
  10226.  
  10227. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10228. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10229. # trailing colons and then remove the whole line if VPATH becomes empty
  10230. # (actually we leave an empty line to preserve line numbers).
  10231. if test "x$srcdir" = x.; then
  10232. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10233. h
  10234. s///
  10235. s/^/:/
  10236. s/[ ]*$/:/
  10237. s/:\$(srcdir):/:/g
  10238. s/:\${srcdir}:/:/g
  10239. s/:@srcdir@:/:/g
  10240. s/^:*//
  10241. s/:*$//
  10242. x
  10243. s/\(=[ ]*\).*/\1/
  10244. G
  10245. s/\n//
  10246. s/^[^=]*=[ ]*$//
  10247. }'
  10248. fi
  10249.  
  10250. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10251. fi # test -n "$CONFIG_FILES"
  10252.  
  10253.  
  10254. eval set X " :F $CONFIG_FILES "
  10255. shift
  10256. for ac_tag
  10257. do
  10258. case $ac_tag in
  10259. :[FHLC]) ac_mode=$ac_tag; continue;;
  10260. esac
  10261. case $ac_mode$ac_tag in
  10262. :[FHL]*:*);;
  10263. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10264. :[FH]-) ac_tag=-:-;;
  10265. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10266. esac
  10267. ac_save_IFS=$IFS
  10268. IFS=:
  10269. set x $ac_tag
  10270. IFS=$ac_save_IFS
  10271. shift
  10272. ac_file=$1
  10273. shift
  10274.  
  10275. case $ac_mode in
  10276. :L) ac_source=$1;;
  10277. :[FH])
  10278. ac_file_inputs=
  10279. for ac_f
  10280. do
  10281. case $ac_f in
  10282. -) ac_f="$ac_tmp/stdin";;
  10283. *) # Look for the file first in the build tree, then in the source tree
  10284. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10285. # because $ac_f cannot contain `:'.
  10286. test -f "$ac_f" ||
  10287. case $ac_f in
  10288. [\\/$]*) false;;
  10289. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10290. esac ||
  10291. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10292. esac
  10293. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10294. as_fn_append ac_file_inputs " '$ac_f'"
  10295. done
  10296.  
  10297. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10298. # use $as_me), people would be surprised to read:
  10299. # /* config.h. Generated by config.status. */
  10300. configure_input='Generated from '`
  10301. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10302. `' by configure.'
  10303. if test x"$ac_file" != x-; then
  10304. configure_input="$ac_file. $configure_input"
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10306. $as_echo "$as_me: creating $ac_file" >&6;}
  10307. fi
  10308. # Neutralize special characters interpreted by sed in replacement strings.
  10309. case $configure_input in #(
  10310. *\&* | *\|* | *\\* )
  10311. ac_sed_conf_input=`$as_echo "$configure_input" |
  10312. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10313. *) ac_sed_conf_input=$configure_input;;
  10314. esac
  10315.  
  10316. case $ac_tag in
  10317. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10318. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10319. esac
  10320. ;;
  10321. esac
  10322.  
  10323. ac_dir=`$as_dirname -- "$ac_file" ||
  10324. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10325. X"$ac_file" : 'X\(//\)[^/]' \| \
  10326. X"$ac_file" : 'X\(//\)$' \| \
  10327. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10328. $as_echo X"$ac_file" |
  10329. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10330. s//\1/
  10331. q
  10332. }
  10333. /^X\(\/\/\)[^/].*/{
  10334. s//\1/
  10335. q
  10336. }
  10337. /^X\(\/\/\)$/{
  10338. s//\1/
  10339. q
  10340. }
  10341. /^X\(\/\).*/{
  10342. s//\1/
  10343. q
  10344. }
  10345. s/.*/./; q'`
  10346. as_dir="$ac_dir"; as_fn_mkdir_p
  10347. ac_builddir=.
  10348.  
  10349. case "$ac_dir" in
  10350. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10351. *)
  10352. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10353. # A ".." for each directory in $ac_dir_suffix.
  10354. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10355. case $ac_top_builddir_sub in
  10356. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10357. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10358. esac ;;
  10359. esac
  10360. ac_abs_top_builddir=$ac_pwd
  10361. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10362. # for backward compatibility:
  10363. ac_top_builddir=$ac_top_build_prefix
  10364.  
  10365. case $srcdir in
  10366. .) # We are building in place.
  10367. ac_srcdir=.
  10368. ac_top_srcdir=$ac_top_builddir_sub
  10369. ac_abs_top_srcdir=$ac_pwd ;;
  10370. [\\/]* | ?:[\\/]* ) # Absolute name.
  10371. ac_srcdir=$srcdir$ac_dir_suffix;
  10372. ac_top_srcdir=$srcdir
  10373. ac_abs_top_srcdir=$srcdir ;;
  10374. *) # Relative name.
  10375. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10376. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10377. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10378. esac
  10379. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10380.  
  10381.  
  10382. case $ac_mode in
  10383. :F)
  10384. #
  10385. # CONFIG_FILE
  10386. #
  10387.  
  10388. _ACEOF
  10389.  
  10390. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10391. # If the template does not know about datarootdir, expand it.
  10392. # FIXME: This hack should be removed a few years after 2.60.
  10393. ac_datarootdir_hack=; ac_datarootdir_seen=
  10394. ac_sed_dataroot='
  10395. /datarootdir/ {
  10396. p
  10397. q
  10398. }
  10399. /@datadir@/p
  10400. /@docdir@/p
  10401. /@infodir@/p
  10402. /@localedir@/p
  10403. /@mandir@/p'
  10404. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10405. *datarootdir*) ac_datarootdir_seen=yes;;
  10406. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10408. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10409. _ACEOF
  10410. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10411. ac_datarootdir_hack='
  10412. s&@datadir@&$datadir&g
  10413. s&@docdir@&$docdir&g
  10414. s&@infodir@&$infodir&g
  10415. s&@localedir@&$localedir&g
  10416. s&@mandir@&$mandir&g
  10417. s&\\\${datarootdir}&$datarootdir&g' ;;
  10418. esac
  10419. _ACEOF
  10420.  
  10421. # Neutralize VPATH when `$srcdir' = `.'.
  10422. # Shell code in configure.ac might set extrasub.
  10423. # FIXME: do we really want to maintain this feature?
  10424. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10425. ac_sed_extra="$ac_vpsub
  10426. $extrasub
  10427. _ACEOF
  10428. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10429. :t
  10430. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10431. s|@configure_input@|$ac_sed_conf_input|;t t
  10432. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10433. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10434. s&@srcdir@&$ac_srcdir&;t t
  10435. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10436. s&@top_srcdir@&$ac_top_srcdir&;t t
  10437. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10438. s&@builddir@&$ac_builddir&;t t
  10439. s&@abs_builddir@&$ac_abs_builddir&;t t
  10440. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10441. $ac_datarootdir_hack
  10442. "
  10443. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10444. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10445.  
  10446. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10447. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10448. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10449. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10451. which seems to be undefined. Please make sure it is defined" >&5
  10452. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10453. which seems to be undefined. Please make sure it is defined" >&2;}
  10454.  
  10455. rm -f "$ac_tmp/stdin"
  10456. case $ac_file in
  10457. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10458. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10459. esac \
  10460. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10461. ;;
  10462.  
  10463.  
  10464.  
  10465. esac
  10466.  
  10467. done # for ac_tag
  10468.  
  10469.  
  10470. as_fn_exit 0
  10471. _ACEOF
  10472. ac_clean_files=$ac_clean_files_save
  10473.  
  10474. test $ac_write_fail = 0 ||
  10475. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10476.  
  10477.  
  10478. # configure is writing to config.log, and then calls config.status.
  10479. # config.status does its own redirection, appending to config.log.
  10480. # Unfortunately, on DOS this fails, as config.log is still kept open
  10481. # by configure, so config.status won't be able to write to it; its
  10482. # output is simply discarded. So we exec the FD to /dev/null,
  10483. # effectively closing config.log, so it can be properly (re)opened and
  10484. # appended to by config.status. When coming back to configure, we
  10485. # need to make the FD available again.
  10486. if test "$no_create" != yes; then
  10487. ac_cs_success=:
  10488. ac_config_status_args=
  10489. test "$silent" = yes &&
  10490. ac_config_status_args="$ac_config_status_args --quiet"
  10491. exec 5>/dev/null
  10492. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10493. exec 5>>config.log
  10494. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10495. # would make configure fail if this is the last instruction.
  10496. $ac_cs_success || as_fn_exit 1
  10497. fi
  10498. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10500. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10501. fi
  10502.  
  10503.