/contrib/tcsh/configure

https://bitbucket.org/freebsd/freebsd-head/ · Shell · 8087 lines · 7212 code · 426 blank · 449 comment · 624 complexity · 53302836b5fe533d6a85e3b8f32a0dea MD5 · raw file

Large files are truncated click here to view the full file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for tcsh 6.18.01.
  4. #
  5. # Report bugs to <http://bugs.gw.com/>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  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. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1"
  164. if (eval "$as_required") 2>/dev/null; then :
  165. as_have_required=yes
  166. else
  167. as_have_required=no
  168. fi
  169. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  170. else
  171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  172. as_found=false
  173. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  174. do
  175. IFS=$as_save_IFS
  176. test -z "$as_dir" && as_dir=.
  177. as_found=:
  178. case $as_dir in #(
  179. /*)
  180. for as_base in sh bash ksh sh5; do
  181. # Try only shells that exist, to save several forks.
  182. as_shell=$as_dir/$as_base
  183. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  184. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. CONFIG_SHELL=$as_shell as_have_required=yes
  186. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. break 2
  188. fi
  189. fi
  190. done;;
  191. esac
  192. as_found=false
  193. done
  194. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  195. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  196. CONFIG_SHELL=$SHELL as_have_required=yes
  197. fi; }
  198. IFS=$as_save_IFS
  199. if test "x$CONFIG_SHELL" != x; then :
  200. # We cannot yet assume a decent shell, so we have to provide a
  201. # neutralization value for shells without unset; and this also
  202. # works around shells that cannot unset nonexistent variables.
  203. # Preserve -v and -x to the replacement shell.
  204. BASH_ENV=/dev/null
  205. ENV=/dev/null
  206. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  207. export CONFIG_SHELL
  208. case $- in # ((((
  209. *v*x* | *x*v* ) as_opts=-vx ;;
  210. *v* ) as_opts=-v ;;
  211. *x* ) as_opts=-x ;;
  212. * ) as_opts= ;;
  213. esac
  214. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  215. fi
  216. if test x$as_have_required = xno; then :
  217. $as_echo "$0: This script requires a shell more modern than all"
  218. $as_echo "$0: the shells that I found on your system."
  219. if test x${ZSH_VERSION+set} = xset ; then
  220. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  221. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  222. else
  223. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  224. $0: http://bugs.gw.com/ about your system, including any
  225. $0: error possibly output before this message. Then install
  226. $0: a modern shell, or manually run the script under such a
  227. $0: shell if you do have one."
  228. fi
  229. exit 1
  230. fi
  231. fi
  232. fi
  233. SHELL=${CONFIG_SHELL-/bin/sh}
  234. export SHELL
  235. # Unset more variables known to interfere with behavior of common tools.
  236. CLICOLOR_FORCE= GREP_OPTIONS=
  237. unset CLICOLOR_FORCE GREP_OPTIONS
  238. ## --------------------- ##
  239. ## M4sh Shell Functions. ##
  240. ## --------------------- ##
  241. # as_fn_unset VAR
  242. # ---------------
  243. # Portably unset VAR.
  244. as_fn_unset ()
  245. {
  246. { eval $1=; unset $1;}
  247. }
  248. as_unset=as_fn_unset
  249. # as_fn_set_status STATUS
  250. # -----------------------
  251. # Set $? to STATUS, without forking.
  252. as_fn_set_status ()
  253. {
  254. return $1
  255. } # as_fn_set_status
  256. # as_fn_exit STATUS
  257. # -----------------
  258. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  259. as_fn_exit ()
  260. {
  261. set +e
  262. as_fn_set_status $1
  263. exit $1
  264. } # as_fn_exit
  265. # as_fn_mkdir_p
  266. # -------------
  267. # Create "$as_dir" as a directory, including parents if necessary.
  268. as_fn_mkdir_p ()
  269. {
  270. case $as_dir in #(
  271. -*) as_dir=./$as_dir;;
  272. esac
  273. test -d "$as_dir" || eval $as_mkdir_p || {
  274. as_dirs=
  275. while :; do
  276. case $as_dir in #(
  277. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  278. *) as_qdir=$as_dir;;
  279. esac
  280. as_dirs="'$as_qdir' $as_dirs"
  281. as_dir=`$as_dirname -- "$as_dir" ||
  282. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  283. X"$as_dir" : 'X\(//\)[^/]' \| \
  284. X"$as_dir" : 'X\(//\)$' \| \
  285. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  286. $as_echo X"$as_dir" |
  287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)[^/].*/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\).*/{
  300. s//\1/
  301. q
  302. }
  303. s/.*/./; q'`
  304. test -d "$as_dir" && break
  305. done
  306. test -z "$as_dirs" || eval "mkdir $as_dirs"
  307. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  308. } # as_fn_mkdir_p
  309. # as_fn_append VAR VALUE
  310. # ----------------------
  311. # Append the text in VALUE to the end of the definition contained in VAR. Take
  312. # advantage of any shell optimizations that allow amortized linear growth over
  313. # repeated appends, instead of the typical quadratic growth present in naive
  314. # implementations.
  315. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  316. eval 'as_fn_append ()
  317. {
  318. eval $1+=\$2
  319. }'
  320. else
  321. as_fn_append ()
  322. {
  323. eval $1=\$$1\$2
  324. }
  325. fi # as_fn_append
  326. # as_fn_arith ARG...
  327. # ------------------
  328. # Perform arithmetic evaluation on the ARGs, and store the result in the
  329. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  330. # must be portable across $(()) and expr.
  331. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  332. eval 'as_fn_arith ()
  333. {
  334. as_val=$(( $* ))
  335. }'
  336. else
  337. as_fn_arith ()
  338. {
  339. as_val=`expr "$@" || test $? -eq 1`
  340. }
  341. fi # as_fn_arith
  342. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  343. # ----------------------------------------
  344. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  345. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  346. # script with STATUS, using 1 if that was 0.
  347. as_fn_error ()
  348. {
  349. as_status=$1; test $as_status -eq 0 && as_status=1
  350. if test "$4"; then
  351. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  352. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  353. fi
  354. $as_echo "$as_me: error: $2" >&2
  355. as_fn_exit $as_status
  356. } # as_fn_error
  357. if expr a : '\(a\)' >/dev/null 2>&1 &&
  358. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  359. as_expr=expr
  360. else
  361. as_expr=false
  362. fi
  363. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  364. as_basename=basename
  365. else
  366. as_basename=false
  367. fi
  368. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  369. as_dirname=dirname
  370. else
  371. as_dirname=false
  372. fi
  373. as_me=`$as_basename -- "$0" ||
  374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  375. X"$0" : 'X\(//\)$' \| \
  376. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  377. $as_echo X/"$0" |
  378. sed '/^.*\/\([^/][^/]*\)\/*$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\/\)$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\).*/{
  387. s//\1/
  388. q
  389. }
  390. s/.*/./; q'`
  391. # Avoid depending upon Character Ranges.
  392. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  393. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  394. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  395. as_cr_digits='0123456789'
  396. as_cr_alnum=$as_cr_Letters$as_cr_digits
  397. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  398. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  399. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  400. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  401. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  402. sed -n '
  403. p
  404. /[$]LINENO/=
  405. ' <$as_myself |
  406. sed '
  407. s/[$]LINENO.*/&-/
  408. t lineno
  409. b
  410. :lineno
  411. N
  412. :loop
  413. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  414. t loop
  415. s/-\n.*//
  416. ' >$as_me.lineno &&
  417. chmod +x "$as_me.lineno" ||
  418. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  419. # Don't try to exec as it changes $[0], causing all sort of problems
  420. # (the dirname of $[0] is not the place where we might find the
  421. # original and so on. Autoconf is especially sensitive to this).
  422. . "./$as_me.lineno"
  423. # Exit status is that of the last command.
  424. exit
  425. }
  426. ECHO_C= ECHO_N= ECHO_T=
  427. case `echo -n x` in #(((((
  428. -n*)
  429. case `echo 'xy\c'` in
  430. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  431. xy) ECHO_C='\c';;
  432. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  433. ECHO_T=' ';;
  434. esac;;
  435. *)
  436. ECHO_N='-n';;
  437. esac
  438. rm -f conf$$ conf$$.exe conf$$.file
  439. if test -d conf$$.dir; then
  440. rm -f conf$$.dir/conf$$.file
  441. else
  442. rm -f conf$$.dir
  443. mkdir conf$$.dir 2>/dev/null
  444. fi
  445. if (echo >conf$$.file) 2>/dev/null; then
  446. if ln -s conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s='ln -s'
  448. # ... but there are two gotchas:
  449. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  450. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  451. # In both cases, we have to default to `cp -p'.
  452. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  453. as_ln_s='cp -p'
  454. elif ln conf$$.file conf$$ 2>/dev/null; then
  455. as_ln_s=ln
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. else
  460. as_ln_s='cp -p'
  461. fi
  462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  463. rmdir conf$$.dir 2>/dev/null
  464. if mkdir -p . 2>/dev/null; then
  465. as_mkdir_p='mkdir -p "$as_dir"'
  466. else
  467. test -d ./-p && rmdir ./-p
  468. as_mkdir_p=false
  469. fi
  470. if test -x / >/dev/null 2>&1; then
  471. as_test_x='test -x'
  472. else
  473. if ls -dL / >/dev/null 2>&1; then
  474. as_ls_L_option=L
  475. else
  476. as_ls_L_option=
  477. fi
  478. as_test_x='
  479. eval sh -c '\''
  480. if test -d "$1"; then
  481. test -d "$1/.";
  482. else
  483. case $1 in #(
  484. -*)set "./$1";;
  485. esac;
  486. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  487. ???[sx]*):;;*)false;;esac;fi
  488. '\'' sh
  489. '
  490. fi
  491. as_executable_p=$as_test_x
  492. # Sed expression to map a string onto a valid CPP name.
  493. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  494. # Sed expression to map a string onto a valid variable name.
  495. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  496. test -n "$DJDIR" || exec 7<&0 </dev/null
  497. exec 6>&1
  498. # Name of the host.
  499. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  500. # so uname gets run too.
  501. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  502. #
  503. # Initializations.
  504. #
  505. ac_default_prefix=/usr/local
  506. ac_clean_files=
  507. ac_config_libobj_dir=.
  508. LIBOBJS=
  509. cross_compiling=no
  510. subdirs=
  511. MFLAGS=
  512. MAKEFLAGS=
  513. # Identity of this package.
  514. PACKAGE_NAME='tcsh'
  515. PACKAGE_TARNAME='tcsh'
  516. PACKAGE_VERSION='6.18.01'
  517. PACKAGE_STRING='tcsh 6.18.01'
  518. PACKAGE_BUGREPORT='http://bugs.gw.com/'
  519. PACKAGE_URL=''
  520. ac_unique_file="tc.vers.c"
  521. # Factoring default headers for most tests.
  522. ac_includes_default="\
  523. #include <stdio.h>
  524. #ifdef HAVE_SYS_TYPES_H
  525. # include <sys/types.h>
  526. #endif
  527. #ifdef HAVE_SYS_STAT_H
  528. # include <sys/stat.h>
  529. #endif
  530. #ifdef STDC_HEADERS
  531. # include <stdlib.h>
  532. # include <stddef.h>
  533. #else
  534. # ifdef HAVE_STDLIB_H
  535. # include <stdlib.h>
  536. # endif
  537. #endif
  538. #ifdef HAVE_STRING_H
  539. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  540. # include <memory.h>
  541. # endif
  542. # include <string.h>
  543. #endif
  544. #ifdef HAVE_STRINGS_H
  545. # include <strings.h>
  546. #endif
  547. #ifdef HAVE_INTTYPES_H
  548. # include <inttypes.h>
  549. #endif
  550. #ifdef HAVE_STDINT_H
  551. # include <stdint.h>
  552. #endif
  553. #ifdef HAVE_UNISTD_H
  554. # include <unistd.h>
  555. #endif"
  556. ac_subst_vars='LTLIBOBJS
  557. LIBOBJS
  558. BUILD_CATALOGS
  559. HESLIB
  560. HESDEF
  561. DFLAGS
  562. LTLIBICONV
  563. LIBICONV
  564. CC_FOR_GETHOST
  565. GENCAT
  566. EGREP
  567. GREP
  568. CPP
  569. OBJEXT
  570. EXEEXT
  571. ac_ct_CC
  572. CPPFLAGS
  573. LDFLAGS
  574. CFLAGS
  575. CC
  576. host_os
  577. host_vendor
  578. host_cpu
  579. host
  580. build_os
  581. build_vendor
  582. build_cpu
  583. build
  584. INSTALL_DATA
  585. INSTALL_SCRIPT
  586. INSTALL_PROGRAM
  587. target_alias
  588. host_alias
  589. build_alias
  590. LIBS
  591. ECHO_T
  592. ECHO_N
  593. ECHO_C
  594. DEFS
  595. mandir
  596. localedir
  597. libdir
  598. psdir
  599. pdfdir
  600. dvidir
  601. htmldir
  602. infodir
  603. docdir
  604. oldincludedir
  605. includedir
  606. localstatedir
  607. sharedstatedir
  608. sysconfdir
  609. datadir
  610. datarootdir
  611. libexecdir
  612. sbindir
  613. bindir
  614. program_transform_name
  615. prefix
  616. exec_prefix
  617. PACKAGE_URL
  618. PACKAGE_BUGREPORT
  619. PACKAGE_STRING
  620. PACKAGE_VERSION
  621. PACKAGE_TARNAME
  622. PACKAGE_NAME
  623. PATH_SEPARATOR
  624. SHELL'
  625. ac_subst_files=''
  626. ac_user_opts='
  627. enable_option_checking
  628. with_gnu_ld
  629. enable_rpath
  630. with_libiconv_prefix
  631. enable_nls
  632. enable_nls_catalogs
  633. with_hesiod
  634. '
  635. ac_precious_vars='build_alias
  636. host_alias
  637. target_alias
  638. CC
  639. CFLAGS
  640. LDFLAGS
  641. LIBS
  642. CPPFLAGS
  643. CPP'
  644. # Initialize some variables set by options.
  645. ac_init_help=
  646. ac_init_version=false
  647. ac_unrecognized_opts=
  648. ac_unrecognized_sep=
  649. # The variables have the same names as the options, with
  650. # dashes changed to underlines.
  651. cache_file=/dev/null
  652. exec_prefix=NONE
  653. no_create=
  654. no_recursion=
  655. prefix=NONE
  656. program_prefix=NONE
  657. program_suffix=NONE
  658. program_transform_name=s,x,x,
  659. silent=
  660. site=
  661. srcdir=
  662. verbose=
  663. x_includes=NONE
  664. x_libraries=NONE
  665. # Installation directory options.
  666. # These are left unexpanded so users can "make install exec_prefix=/foo"
  667. # and all the variables that are supposed to be based on exec_prefix
  668. # by default will actually change.
  669. # Use braces instead of parens because sh, perl, etc. also accept them.
  670. # (The list follows the same order as the GNU Coding Standards.)
  671. bindir='${exec_prefix}/bin'
  672. sbindir='${exec_prefix}/sbin'
  673. libexecdir='${exec_prefix}/libexec'
  674. datarootdir='${prefix}/share'
  675. datadir='${datarootdir}'
  676. sysconfdir='${prefix}/etc'
  677. sharedstatedir='${prefix}/com'
  678. localstatedir='${prefix}/var'
  679. includedir='${prefix}/include'
  680. oldincludedir='/usr/include'
  681. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  682. infodir='${datarootdir}/info'
  683. htmldir='${docdir}'
  684. dvidir='${docdir}'
  685. pdfdir='${docdir}'
  686. psdir='${docdir}'
  687. libdir='${exec_prefix}/lib'
  688. localedir='${datarootdir}/locale'
  689. mandir='${datarootdir}/man'
  690. ac_prev=
  691. ac_dashdash=
  692. for ac_option
  693. do
  694. # If the previous option needs an argument, assign it.
  695. if test -n "$ac_prev"; then
  696. eval $ac_prev=\$ac_option
  697. ac_prev=
  698. continue
  699. fi
  700. case $ac_option in
  701. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  702. *=) ac_optarg= ;;
  703. *) ac_optarg=yes ;;
  704. esac
  705. # Accept the important Cygnus configure options, so we can diagnose typos.
  706. case $ac_dashdash$ac_option in
  707. --)
  708. ac_dashdash=yes ;;
  709. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  710. ac_prev=bindir ;;
  711. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  712. bindir=$ac_optarg ;;
  713. -build | --build | --buil | --bui | --bu)
  714. ac_prev=build_alias ;;
  715. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  716. build_alias=$ac_optarg ;;
  717. -cache-file | --cache-file | --cache-fil | --cache-fi \
  718. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  719. ac_prev=cache_file ;;
  720. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  721. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  722. cache_file=$ac_optarg ;;
  723. --config-cache | -C)
  724. cache_file=config.cache ;;
  725. -datadir | --datadir | --datadi | --datad)
  726. ac_prev=datadir ;;
  727. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  728. datadir=$ac_optarg ;;
  729. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  730. | --dataroo | --dataro | --datar)
  731. ac_prev=datarootdir ;;
  732. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  733. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  734. datarootdir=$ac_optarg ;;
  735. -disable-* | --disable-*)
  736. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  737. # Reject names that are not valid shell variable names.
  738. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  739. as_fn_error $? "invalid feature name: $ac_useropt"
  740. ac_useropt_orig=$ac_useropt
  741. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  742. case $ac_user_opts in
  743. *"
  744. "enable_$ac_useropt"
  745. "*) ;;
  746. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  747. ac_unrecognized_sep=', ';;
  748. esac
  749. eval enable_$ac_useropt=no ;;
  750. -docdir | --docdir | --docdi | --doc | --do)
  751. ac_prev=docdir ;;
  752. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  753. docdir=$ac_optarg ;;
  754. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  755. ac_prev=dvidir ;;
  756. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  757. dvidir=$ac_optarg ;;
  758. -enable-* | --enable-*)
  759. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  760. # Reject names that are not valid shell variable names.
  761. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  762. as_fn_error $? "invalid feature name: $ac_useropt"
  763. ac_useropt_orig=$ac_useropt
  764. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  765. case $ac_user_opts in
  766. *"
  767. "enable_$ac_useropt"
  768. "*) ;;
  769. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  770. ac_unrecognized_sep=', ';;
  771. esac
  772. eval enable_$ac_useropt=\$ac_optarg ;;
  773. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  774. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  775. | --exec | --exe | --ex)
  776. ac_prev=exec_prefix ;;
  777. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  778. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  779. | --exec=* | --exe=* | --ex=*)
  780. exec_prefix=$ac_optarg ;;
  781. -gas | --gas | --ga | --g)
  782. # Obsolete; use --with-gas.
  783. with_gas=yes ;;
  784. -help | --help | --hel | --he | -h)
  785. ac_init_help=long ;;
  786. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  787. ac_init_help=recursive ;;
  788. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  789. ac_init_help=short ;;
  790. -host | --host | --hos | --ho)
  791. ac_prev=host_alias ;;
  792. -host=* | --host=* | --hos=* | --ho=*)
  793. host_alias=$ac_optarg ;;
  794. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  795. ac_prev=htmldir ;;
  796. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  797. | --ht=*)
  798. htmldir=$ac_optarg ;;
  799. -includedir | --includedir | --includedi | --included | --include \
  800. | --includ | --inclu | --incl | --inc)
  801. ac_prev=includedir ;;
  802. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  803. | --includ=* | --inclu=* | --incl=* | --inc=*)
  804. includedir=$ac_optarg ;;
  805. -infodir | --infodir | --infodi | --infod | --info | --inf)
  806. ac_prev=infodir ;;
  807. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  808. infodir=$ac_optarg ;;
  809. -libdir | --libdir | --libdi | --libd)
  810. ac_prev=libdir ;;
  811. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  812. libdir=$ac_optarg ;;
  813. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  814. | --libexe | --libex | --libe)
  815. ac_prev=libexecdir ;;
  816. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  817. | --libexe=* | --libex=* | --libe=*)
  818. libexecdir=$ac_optarg ;;
  819. -localedir | --localedir | --localedi | --localed | --locale)
  820. ac_prev=localedir ;;
  821. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  822. localedir=$ac_optarg ;;
  823. -localstatedir | --localstatedir | --localstatedi | --localstated \
  824. | --localstate | --localstat | --localsta | --localst | --locals)
  825. ac_prev=localstatedir ;;
  826. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  827. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  828. localstatedir=$ac_optarg ;;
  829. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  830. ac_prev=mandir ;;
  831. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  832. mandir=$ac_optarg ;;
  833. -nfp | --nfp | --nf)
  834. # Obsolete; use --without-fp.
  835. with_fp=no ;;
  836. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  837. | --no-cr | --no-c | -n)
  838. no_create=yes ;;
  839. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  840. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  841. no_recursion=yes ;;
  842. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  843. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  844. | --oldin | --oldi | --old | --ol | --o)
  845. ac_prev=oldincludedir ;;
  846. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  847. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  848. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  849. oldincludedir=$ac_optarg ;;
  850. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  851. ac_prev=prefix ;;
  852. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  853. prefix=$ac_optarg ;;
  854. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  855. | --program-pre | --program-pr | --program-p)
  856. ac_prev=program_prefix ;;
  857. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  858. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  859. program_prefix=$ac_optarg ;;
  860. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  861. | --program-suf | --program-su | --program-s)
  862. ac_prev=program_suffix ;;
  863. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  864. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  865. program_suffix=$ac_optarg ;;
  866. -program-transform-name | --program-transform-name \
  867. | --program-transform-nam | --program-transform-na \
  868. | --program-transform-n | --program-transform- \
  869. | --program-transform | --program-transfor \
  870. | --program-transfo | --program-transf \
  871. | --program-trans | --program-tran \
  872. | --progr-tra | --program-tr | --program-t)
  873. ac_prev=program_transform_name ;;
  874. -program-transform-name=* | --program-transform-name=* \
  875. | --program-transform-nam=* | --program-transform-na=* \
  876. | --program-transform-n=* | --program-transform-=* \
  877. | --program-transform=* | --program-transfor=* \
  878. | --program-transfo=* | --program-transf=* \
  879. | --program-trans=* | --program-tran=* \
  880. | --progr-tra=* | --program-tr=* | --program-t=*)
  881. program_transform_name=$ac_optarg ;;
  882. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  883. ac_prev=pdfdir ;;
  884. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  885. pdfdir=$ac_optarg ;;
  886. -psdir | --psdir | --psdi | --psd | --ps)
  887. ac_prev=psdir ;;
  888. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  889. psdir=$ac_optarg ;;
  890. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  891. | -silent | --silent | --silen | --sile | --sil)
  892. silent=yes ;;
  893. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  894. ac_prev=sbindir ;;
  895. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  896. | --sbi=* | --sb=*)
  897. sbindir=$ac_optarg ;;
  898. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  899. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  900. | --sharedst | --shareds | --shared | --share | --shar \
  901. | --sha | --sh)
  902. ac_prev=sharedstatedir ;;
  903. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  904. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  905. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  906. | --sha=* | --sh=*)
  907. sharedstatedir=$ac_optarg ;;
  908. -site | --site | --sit)
  909. ac_prev=site ;;
  910. -site=* | --site=* | --sit=*)
  911. site=$ac_optarg ;;
  912. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  913. ac_prev=srcdir ;;
  914. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  915. srcdir=$ac_optarg ;;
  916. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  917. | --syscon | --sysco | --sysc | --sys | --sy)
  918. ac_prev=sysconfdir ;;
  919. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  920. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  921. sysconfdir=$ac_optarg ;;
  922. -target | --target | --targe | --targ | --tar | --ta | --t)
  923. ac_prev=target_alias ;;
  924. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  925. target_alias=$ac_optarg ;;
  926. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  927. verbose=yes ;;
  928. -version | --version | --versio | --versi | --vers | -V)
  929. ac_init_version=: ;;
  930. -with-* | --with-*)
  931. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  932. # Reject names that are not valid shell variable names.
  933. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  934. as_fn_error $? "invalid package name: $ac_useropt"
  935. ac_useropt_orig=$ac_useropt
  936. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  937. case $ac_user_opts in
  938. *"
  939. "with_$ac_useropt"
  940. "*) ;;
  941. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  942. ac_unrecognized_sep=', ';;
  943. esac
  944. eval with_$ac_useropt=\$ac_optarg ;;
  945. -without-* | --without-*)
  946. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  947. # Reject names that are not valid shell variable names.
  948. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  949. as_fn_error $? "invalid package name: $ac_useropt"
  950. ac_useropt_orig=$ac_useropt
  951. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  952. case $ac_user_opts in
  953. *"
  954. "with_$ac_useropt"
  955. "*) ;;
  956. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  957. ac_unrecognized_sep=', ';;
  958. esac
  959. eval with_$ac_useropt=no ;;
  960. --x)
  961. # Obsolete; use --with-x.
  962. with_x=yes ;;
  963. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  964. | --x-incl | --x-inc | --x-in | --x-i)
  965. ac_prev=x_includes ;;
  966. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  967. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  968. x_includes=$ac_optarg ;;
  969. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  970. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  971. ac_prev=x_libraries ;;
  972. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  973. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  974. x_libraries=$ac_optarg ;;
  975. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  976. Try \`$0 --help' for more information"
  977. ;;
  978. *=*)
  979. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  980. # Reject names that are not valid shell variable names.
  981. case $ac_envvar in #(
  982. '' | [0-9]* | *[!_$as_cr_alnum]* )
  983. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  984. esac
  985. eval $ac_envvar=\$ac_optarg
  986. export $ac_envvar ;;
  987. *)
  988. # FIXME: should be removed in autoconf 3.0.
  989. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  990. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  991. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  992. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  993. ;;
  994. esac
  995. done
  996. if test -n "$ac_prev"; then
  997. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  998. as_fn_error $? "missing argument to $ac_option"
  999. fi
  1000. if test -n "$ac_unrecognized_opts"; then
  1001. case $enable_option_checking in
  1002. no) ;;
  1003. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1004. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1005. esac
  1006. fi
  1007. # Check all directory arguments for consistency.
  1008. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1009. datadir sysconfdir sharedstatedir localstatedir includedir \
  1010. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1011. libdir localedir mandir
  1012. do
  1013. eval ac_val=\$$ac_var
  1014. # Remove trailing slashes.
  1015. case $ac_val in
  1016. */ )
  1017. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1018. eval $ac_var=\$ac_val;;
  1019. esac
  1020. # Be sure to have absolute directory names.
  1021. case $ac_val in
  1022. [\\/$]* | ?:[\\/]* ) continue;;
  1023. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1024. esac
  1025. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1026. done
  1027. # There might be people who depend on the old broken behavior: `$host'
  1028. # used to hold the argument of --host etc.
  1029. # FIXME: To remove some day.
  1030. build=$build_alias
  1031. host=$host_alias
  1032. target=$target_alias
  1033. # FIXME: To remove some day.
  1034. if test "x$host_alias" != x; then
  1035. if test "x$build_alias" = x; then
  1036. cross_compiling=maybe
  1037. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1038. If a cross compiler is detected then cross compile mode will be used" >&2
  1039. elif test "x$build_alias" != "x$host_alias"; then
  1040. cross_compiling=yes
  1041. fi
  1042. fi
  1043. ac_tool_prefix=
  1044. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1045. test "$silent" = yes && exec 6>/dev/null
  1046. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1047. ac_ls_di=`ls -di .` &&
  1048. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1049. as_fn_error $? "working directory cannot be determined"
  1050. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1051. as_fn_error $? "pwd does not report name of working directory"
  1052. # Find the source files, if location was not specified.
  1053. if test -z "$srcdir"; then
  1054. ac_srcdir_defaulted=yes
  1055. # Try the directory containing this script, then the parent directory.
  1056. ac_confdir=`$as_dirname -- "$as_myself" ||
  1057. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1058. X"$as_myself" : 'X\(//\)[^/]' \| \
  1059. X"$as_myself" : 'X\(//\)$' \| \
  1060. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1061. $as_echo X"$as_myself" |
  1062. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1063. s//\1/
  1064. q
  1065. }
  1066. /^X\(\/\/\)[^/].*/{
  1067. s//\1/
  1068. q
  1069. }
  1070. /^X\(\/\/\)$/{
  1071. s//\1/
  1072. q
  1073. }
  1074. /^X\(\/\).*/{
  1075. s//\1/
  1076. q
  1077. }
  1078. s/.*/./; q'`
  1079. srcdir=$ac_confdir
  1080. if test ! -r "$srcdir/$ac_unique_file"; then
  1081. srcdir=..
  1082. fi
  1083. else
  1084. ac_srcdir_defaulted=no
  1085. fi
  1086. if test ! -r "$srcdir/$ac_unique_file"; then
  1087. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1088. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1089. fi
  1090. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1091. ac_abs_confdir=`(
  1092. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1093. pwd)`
  1094. # When building in place, set srcdir=.
  1095. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1096. srcdir=.
  1097. fi
  1098. # Remove unnecessary trailing slashes from srcdir.
  1099. # Double slashes in file names in object file debugging info
  1100. # mess up M-x gdb in Emacs.
  1101. case $srcdir in
  1102. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1103. esac
  1104. for ac_var in $ac_precious_vars; do
  1105. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1106. eval ac_env_${ac_var}_value=\$${ac_var}
  1107. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1108. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1109. done
  1110. #
  1111. # Report the --help message.
  1112. #
  1113. if test "$ac_init_help" = "long"; then
  1114. # Omit some internal or obsolete options to make the list less imposing.
  1115. # This message is too long to be a string in the A/UX 3.1 sh.
  1116. cat <<_ACEOF
  1117. \`configure' configures tcsh 6.18.01 to adapt to many kinds of systems.
  1118. Usage: $0 [OPTION]... [VAR=VALUE]...
  1119. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1120. VAR=VALUE. See below for descriptions of some of the useful variables.
  1121. Defaults for the options are specified in brackets.
  1122. Configuration:
  1123. -h, --help display this help and exit
  1124. --help=short display options specific to this package
  1125. --help=recursive display the short help of all the included packages
  1126. -V, --version display version information and exit
  1127. -q, --quiet, --silent do not print \`checking ...' messages
  1128. --cache-file=FILE cache test results in FILE [disabled]
  1129. -C, --config-cache alias for \`--cache-file=config.cache'
  1130. -n, --no-create do not create output files
  1131. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1132. Installation directories:
  1133. --prefix=PREFIX install architecture-independent files in PREFIX
  1134. [$ac_default_prefix]
  1135. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1136. [PREFIX]
  1137. By default, \`make install' will install all the files in
  1138. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1139. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1140. for instance \`--prefix=\$HOME'.
  1141. For better control, use the options below.
  1142. Fine tuning of the installation directories:
  1143. --bindir=DIR user executables [EPREFIX/bin]
  1144. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1145. --libexecdir=DIR program executables [EPREFIX/libexec]
  1146. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1147. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1148. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1149. --libdir=DIR object code libraries [EPREFIX/lib]
  1150. --includedir=DIR C header files [PREFIX/include]
  1151. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1152. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1153. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1154. --infodir=DIR info documentation [DATAROOTDIR/info]
  1155. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1156. --mandir=DIR man documentation [DATAROOTDIR/man]
  1157. --docdir=DIR documentation root [DATAROOTDIR/doc/tcsh]
  1158. --htmldir=DIR html documentation [DOCDIR]
  1159. --dvidir=DIR dvi documentation [DOCDIR]
  1160. --pdfdir=DIR pdf documentation [DOCDIR]
  1161. --psdir=DIR ps documentation [DOCDIR]
  1162. _ACEOF
  1163. cat <<\_ACEOF
  1164. System types:
  1165. --build=BUILD configure for building on BUILD [guessed]
  1166. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1167. _ACEOF
  1168. fi
  1169. if test -n "$ac_init_help"; then
  1170. case $ac_init_help in
  1171. short | recursive ) echo "Configuration of tcsh 6.18.01:";;
  1172. esac
  1173. cat <<\_ACEOF
  1174. Optional Features:
  1175. --disable-option-checking ignore unrecognized --enable/--with options
  1176. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1177. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1178. --disable-rpath do not hardcode runtime library paths
  1179. --disable-nls Disable NLS support
  1180. --disable-nls-catalogs Disable NLS catalog support
  1181. Optional Packages:
  1182. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1183. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1184. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1185. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1186. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1187. --with-hesiod=PREFIX Use Hesiod lookup for ~ expansion
  1188. Some influential environment variables:
  1189. CC C compiler command
  1190. CFLAGS C compiler flags
  1191. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1192. nonstandard directory <lib dir>
  1193. LIBS libraries to pass to the linker, e.g. -l<library>
  1194. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1195. you have headers in a nonstandard directory <include dir>
  1196. CPP C preprocessor
  1197. Use these variables to override the choices made by `configure' or to help
  1198. it to find libraries and programs with nonstandard names/locations.
  1199. Report bugs to <http://bugs.gw.com/>.
  1200. _ACEOF
  1201. ac_status=$?
  1202. fi
  1203. if test "$ac_init_help" = "recursive"; then
  1204. # If there are subdirs, report their specific --help.
  1205. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1206. test -d "$ac_dir" ||
  1207. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1208. continue
  1209. ac_builddir=.
  1210. case "$ac_dir" in
  1211. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1212. *)
  1213. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1214. # A ".." for each directory in $ac_dir_suffix.
  1215. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1216. case $ac_top_builddir_sub in
  1217. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1218. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1219. esac ;;
  1220. esac
  1221. ac_abs_top_builddir=$ac_pwd
  1222. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1223. # for backward compatibility:
  1224. ac_top_builddir=$ac_top_build_prefix
  1225. case $srcdir in
  1226. .) # We are building in place.
  1227. ac_srcdir=.
  1228. ac_top_srcdir=$ac_top_builddir_sub
  1229. ac_abs_top_srcdir=$ac_pwd ;;
  1230. [\\/]* | ?:[\\/]* ) # Absolute name.
  1231. ac_srcdir=$srcdir$ac_dir_suffix;
  1232. ac_top_srcdir=$srcdir
  1233. ac_abs_top_srcdir=$srcdir ;;
  1234. *) # Relative name.
  1235. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1236. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1237. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1238. esac
  1239. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1240. cd "$ac_dir" || { ac_status=$?; continue; }
  1241. # Check for guested configure.
  1242. if test -f "$ac_srcdir/configure.gnu"; then
  1243. echo &&
  1244. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1245. elif test -f "$ac_srcdir/configure"; then
  1246. echo &&
  1247. $SHELL "$ac_srcdir/configure" --help=recursive
  1248. else
  1249. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1250. fi || ac_status=$?
  1251. cd "$ac_pwd" || { ac_status=$?; break; }
  1252. done
  1253. fi
  1254. test -n "$ac_init_help" && exit $ac_status
  1255. if $ac_init_version; then
  1256. cat <<\_ACEOF
  1257. tcsh configure 6.18.01
  1258. generated by GNU Autoconf 2.68
  1259. Copyright (C) 2010 Free Software Foundation, Inc.
  1260. This configure script is free software; the Free Software Foundation
  1261. gives unlimited permission to copy, distribute and modify it.
  1262. _ACEOF
  1263. exit
  1264. fi
  1265. ## ------------------------ ##
  1266. ## Autoconf initialization. ##
  1267. ## ------------------------ ##
  1268. # ac_fn_c_try_compile LINENO
  1269. # --------------------------
  1270. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1271. ac_fn_c_try_compile ()
  1272. {
  1273. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1274. rm -f conftest.$ac_objext
  1275. if { { ac_try="$ac_compile"
  1276. case "(($ac_try" in
  1277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1278. *) ac_try_echo=$ac_try;;
  1279. esac
  1280. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1281. $as_echo "$ac_try_echo"; } >&5
  1282. (eval "$ac_compile") 2>conftest.err
  1283. ac_status=$?
  1284. if test -s conftest.err; then
  1285. grep -v '^ *+' conftest.err >conftest.er1
  1286. cat conftest.er1 >&5
  1287. mv -f conftest.er1 conftest.err
  1288. fi
  1289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1290. test $ac_status = 0; } && {
  1291. test -z "$ac_c_werror_flag" ||
  1292. test ! -s conftest.err
  1293. } && test -s conftest.$ac_objext; then :
  1294. ac_retval=0
  1295. else
  1296. $as_echo "$as_me: failed program was:" >&5
  1297. sed 's/^/| /' conftest.$ac_ext >&5
  1298. ac_retval=1
  1299. fi
  1300. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1301. as_fn_set_status $ac_retval
  1302. } # ac_fn_c_try_compile
  1303. # ac_fn_c_try_cpp LINENO
  1304. # ----------------------
  1305. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1306. ac_fn_c_try_cpp ()
  1307. {
  1308. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1309. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1310. case "(($ac_try" in
  1311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1312. *) ac_try_echo=$ac_try;;
  1313. esac
  1314. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1315. $as_echo "$ac_try_echo"; } >&5
  1316. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1317. ac_status=$?
  1318. if test -s conftest.err; then
  1319. grep -v '^ *+' conftest.err >conftest.er1
  1320. cat conftest.er1 >&5
  1321. mv -f conftest.er1 conftest.err
  1322. fi
  1323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1324. test $ac_status = 0; } > conftest.i && {
  1325. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1326. test ! -s conftest.err
  1327. }; then :
  1328. ac_retval=0
  1329. else
  1330. $as_echo "$as_me: failed program was:" >&5
  1331. sed 's/^/| /' conftest.$ac_ext >&5
  1332. ac_retval=1
  1333. fi
  1334. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1335. as_fn_set_status $ac_retval
  1336. } # ac_fn_c_try_cpp
  1337. # ac_fn_c_try_link LINENO
  1338. # -----------------------
  1339. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1340. ac_fn_c_try_link ()
  1341. {
  1342. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1343. rm -f conftest.$ac_objext conftest$ac_exeext
  1344. if { { ac_try="$ac_link"
  1345. case "(($ac_try" in
  1346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1347. *) ac_try_echo=$ac_try;;
  1348. esac
  1349. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1350. $as_echo "$ac_try_echo"; } >&5
  1351. (eval "$ac_link") 2>conftest.err
  1352. ac_status=$?
  1353. if test -s conftest.err; then
  1354. grep -v '^ *+' conftest.err >conftest.er1
  1355. cat conftest.er1 >&5
  1356. mv -f conftest.er1 conftest.err
  1357. fi
  1358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1359. test $ac_status = 0; } && {
  1360. test -z "$ac_c_werror_flag" ||
  1361. test ! -s conftest.err
  1362. } && test -s conftest$ac_exeext && {
  1363. test "$cross_compiling" = yes ||
  1364. $as_test_x conftest$ac_exeext
  1365. }; then :
  1366. ac_retval=0
  1367. else
  1368. $as_echo "$as_me: failed program was:" >&5
  1369. sed 's/^/| /' conftest.$ac_ext >&5
  1370. ac_retval=1
  1371. fi
  1372. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1373. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1374. # interfere with the next link command; also delete a directory that is
  1375. # left behind by Apple's compiler. We do this before executing the actions.
  1376. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1377. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1378. as_fn_set_status $ac_retval
  1379. } # ac_fn_c_try_link
  1380. # ac_fn_c_try_run LINENO
  1381. # ----------------------
  1382. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1383. # that executables *can* be run.
  1384. ac_fn_c_try_run ()
  1385. {
  1386. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1387. if { { ac_try="$ac_link"
  1388. case "(($ac_try" in
  1389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1390. *) ac_try_echo=$ac_try;;
  1391. esac
  1392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1393. $as_echo "$ac_try_echo"; } >&5
  1394. (eval "$ac_link") 2>&5
  1395. ac_status=$?
  1396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1397. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1398. { { case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. $as_echo "$ac_try_echo"; } >&5
  1404. (eval "$ac_try") 2>&5
  1405. ac_status=$?
  1406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1407. test $ac_status = 0; }; }; then :
  1408. ac_retval=0
  1409. else
  1410. $as_echo "$as_me: program exited with status $ac_status" >&5
  1411. $as_echo "$as_me: failed program was:" >&5
  1412. sed 's/^/| /' conftest.$ac_ext >&5
  1413. ac_retval=$ac_status
  1414. fi
  1415. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1416. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1417. as_fn_set_status $ac_retval
  1418. } # ac_fn_c_try_run
  1419. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1420. # -------------------------------------------------------
  1421. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1422. # the include files in INCLUDES and setting the cache variable VAR
  1423. # accordingly.
  1424. ac_fn_c_check_header_mongrel ()
  1425. {
  1426. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1427. if eval \${$3+:} false; then :
  1428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1429. $as_echo_n "checking for $2... " >&6; }
  1430. if eval \${$3+:} false; then :
  1431. $as_echo_n "(cached) " >&6
  1432. fi
  1433. eval ac_res=\$$3
  1434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1435. $as_echo "$ac_res" >&6; }
  1436. else
  1437. # Is the header compilable?
  1438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1439. $as_echo_n "checking $2 usability... " >&6; }
  1440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1441. /* end confdefs.h. */
  1442. $4
  1443. #include <$2>
  1444. _ACEOF
  1445. if ac_fn_c_try_compile "$LINENO"; then :
  1446. ac_header_compiler=yes
  1447. else
  1448. ac_header_compiler=no
  1449. fi
  1450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1452. $as_echo "$ac_header_compiler" >&6; }
  1453. # Is the header present?
  1454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1455. $as_echo_n "checking $2 presence... " >&6; }
  1456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1457. /* end confdefs.h. */
  1458. #include <$2>
  1459. _ACEOF
  1460. if ac_fn_c_try_cpp "$LINENO"; then :
  1461. ac_header_preproc=yes
  1462. else
  1463. ac_header_preproc=no
  1464. fi
  1465. rm -f conftest.err conftest.i conftest.$ac_ext
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1467. $as_echo "$ac_header_preproc" >&6; }
  1468. # So? What about this header?
  1469. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1470. yes:no: )
  1471. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1472. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1474. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1475. ;;
  1476. no:yes:* )
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1478. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1480. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1482. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1483. { $as_ec