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

8411 lines
250 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for modemu2k 0.0.6.
  4. #
  5. # Report bugs to <andy400-dev@yahoo.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  252. $0: andy400-dev@yahoo.com about your system, including any
  253. $0: error possibly output before this message. Then install
  254. $0: a modern shell, or manually run the script under such a
  255. $0: shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME='modemu2k'
  534. PACKAGE_TARNAME='modemu2k'
  535. PACKAGE_VERSION='0.0.6'
  536. PACKAGE_STRING='modemu2k 0.0.6'
  537. PACKAGE_BUGREPORT='andy400-dev@yahoo.com'
  538. PACKAGE_URL='https://github.com/theimpossibleastronaut/modemu2k'
  539. gt_needs=
  540. ac_subst_vars='am__EXEEXT_FALSE
  541. am__EXEEXT_TRUE
  542. LTLIBOBJS
  543. LIBOBJS
  544. MAINT
  545. MAINTAINER_MODE_FALSE
  546. MAINTAINER_MODE_TRUE
  547. POSUB
  548. LTLIBINTL
  549. LIBINTL
  550. INTLLIBS
  551. LTLIBICONV
  552. LIBICONV
  553. INTL_MACOSX_LIBS
  554. EGREP
  555. GREP
  556. CPP
  557. host_os
  558. host_vendor
  559. host_cpu
  560. host
  561. build_os
  562. build_vendor
  563. build_cpu
  564. build
  565. XGETTEXT_EXTRA_OPTIONS
  566. MSGMERGE
  567. XGETTEXT_015
  568. XGETTEXT
  569. GMSGFMT_015
  570. MSGFMT_015
  571. GMSGFMT
  572. MSGFMT
  573. GETTEXT_MACRO_VERSION
  574. USE_NLS
  575. SED
  576. LEXLIB
  577. LEX_OUTPUT_ROOT
  578. LEX
  579. ac_ct_AR
  580. AR
  581. RANLIB
  582. OBJEXT
  583. EXEEXT
  584. ac_ct_CC
  585. CPPFLAGS
  586. LDFLAGS
  587. CFLAGS
  588. CC
  589. AM_BACKSLASH
  590. AM_DEFAULT_VERBOSITY
  591. AM_DEFAULT_V
  592. AM_V
  593. am__untar
  594. am__tar
  595. AMTAR
  596. am__leading_dot
  597. SET_MAKE
  598. AWK
  599. mkdir_p
  600. MKDIR_P
  601. INSTALL_STRIP_PROGRAM
  602. STRIP
  603. install_sh
  604. MAKEINFO
  605. AUTOHEADER
  606. AUTOMAKE
  607. AUTOCONF
  608. ACLOCAL
  609. VERSION
  610. PACKAGE
  611. CYGPATH_W
  612. am__isrc
  613. INSTALL_DATA
  614. INSTALL_SCRIPT
  615. INSTALL_PROGRAM
  616. target_alias
  617. host_alias
  618. build_alias
  619. LIBS
  620. ECHO_T
  621. ECHO_N
  622. ECHO_C
  623. DEFS
  624. mandir
  625. localedir
  626. libdir
  627. psdir
  628. pdfdir
  629. dvidir
  630. htmldir
  631. infodir
  632. docdir
  633. oldincludedir
  634. includedir
  635. runstatedir
  636. localstatedir
  637. sharedstatedir
  638. sysconfdir
  639. datadir
  640. datarootdir
  641. libexecdir
  642. sbindir
  643. bindir
  644. program_transform_name
  645. prefix
  646. exec_prefix
  647. PACKAGE_URL
  648. PACKAGE_BUGREPORT
  649. PACKAGE_STRING
  650. PACKAGE_VERSION
  651. PACKAGE_TARNAME
  652. PACKAGE_NAME
  653. PATH_SEPARATOR
  654. SHELL'
  655. ac_subst_files=''
  656. ac_user_opts='
  657. enable_option_checking
  658. enable_silent_rules
  659. enable_debug
  660. enable_nls
  661. with_gnu_ld
  662. enable_rpath
  663. with_libiconv_prefix
  664. with_libintl_prefix
  665. enable_maintainer_mode
  666. '
  667. ac_precious_vars='build_alias
  668. host_alias
  669. target_alias
  670. CC
  671. CFLAGS
  672. LDFLAGS
  673. LIBS
  674. CPPFLAGS
  675. CPP'
  676. # Initialize some variables set by options.
  677. ac_init_help=
  678. ac_init_version=false
  679. ac_unrecognized_opts=
  680. ac_unrecognized_sep=
  681. # The variables have the same names as the options, with
  682. # dashes changed to underlines.
  683. cache_file=/dev/null
  684. exec_prefix=NONE
  685. no_create=
  686. no_recursion=
  687. prefix=NONE
  688. program_prefix=NONE
  689. program_suffix=NONE
  690. program_transform_name=s,x,x,
  691. silent=
  692. site=
  693. srcdir=
  694. verbose=
  695. x_includes=NONE
  696. x_libraries=NONE
  697. # Installation directory options.
  698. # These are left unexpanded so users can "make install exec_prefix=/foo"
  699. # and all the variables that are supposed to be based on exec_prefix
  700. # by default will actually change.
  701. # Use braces instead of parens because sh, perl, etc. also accept them.
  702. # (The list follows the same order as the GNU Coding Standards.)
  703. bindir='${exec_prefix}/bin'
  704. sbindir='${exec_prefix}/sbin'
  705. libexecdir='${exec_prefix}/libexec'
  706. datarootdir='${prefix}/share'
  707. datadir='${datarootdir}'
  708. sysconfdir='${prefix}/etc'
  709. sharedstatedir='${prefix}/com'
  710. localstatedir='${prefix}/var'
  711. runstatedir='${localstatedir}/run'
  712. includedir='${prefix}/include'
  713. oldincludedir='/usr/include'
  714. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  715. infodir='${datarootdir}/info'
  716. htmldir='${docdir}'
  717. dvidir='${docdir}'
  718. pdfdir='${docdir}'
  719. psdir='${docdir}'
  720. libdir='${exec_prefix}/lib'
  721. localedir='${datarootdir}/locale'
  722. mandir='${datarootdir}/man'
  723. ac_prev=
  724. ac_dashdash=
  725. for ac_option
  726. do
  727. # If the previous option needs an argument, assign it.
  728. if test -n "$ac_prev"; then
  729. eval $ac_prev=\$ac_option
  730. ac_prev=
  731. continue
  732. fi
  733. case $ac_option in
  734. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  735. *=) ac_optarg= ;;
  736. *) ac_optarg=yes ;;
  737. esac
  738. # Accept the important Cygnus configure options, so we can diagnose typos.
  739. case $ac_dashdash$ac_option in
  740. --)
  741. ac_dashdash=yes ;;
  742. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  743. ac_prev=bindir ;;
  744. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  745. bindir=$ac_optarg ;;
  746. -build | --build | --buil | --bui | --bu)
  747. ac_prev=build_alias ;;
  748. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  749. build_alias=$ac_optarg ;;
  750. -cache-file | --cache-file | --cache-fil | --cache-fi \
  751. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  752. ac_prev=cache_file ;;
  753. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  754. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  755. cache_file=$ac_optarg ;;
  756. --config-cache | -C)
  757. cache_file=config.cache ;;
  758. -datadir | --datadir | --datadi | --datad)
  759. ac_prev=datadir ;;
  760. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  761. datadir=$ac_optarg ;;
  762. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  763. | --dataroo | --dataro | --datar)
  764. ac_prev=datarootdir ;;
  765. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  766. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  767. datarootdir=$ac_optarg ;;
  768. -disable-* | --disable-*)
  769. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  770. # Reject names that are not valid shell variable names.
  771. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  772. as_fn_error $? "invalid feature name: $ac_useropt"
  773. ac_useropt_orig=$ac_useropt
  774. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  775. case $ac_user_opts in
  776. *"
  777. "enable_$ac_useropt"
  778. "*) ;;
  779. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  780. ac_unrecognized_sep=', ';;
  781. esac
  782. eval enable_$ac_useropt=no ;;
  783. -docdir | --docdir | --docdi | --doc | --do)
  784. ac_prev=docdir ;;
  785. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  786. docdir=$ac_optarg ;;
  787. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  788. ac_prev=dvidir ;;
  789. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  790. dvidir=$ac_optarg ;;
  791. -enable-* | --enable-*)
  792. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  793. # Reject names that are not valid shell variable names.
  794. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  795. as_fn_error $? "invalid feature name: $ac_useropt"
  796. ac_useropt_orig=$ac_useropt
  797. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  798. case $ac_user_opts in
  799. *"
  800. "enable_$ac_useropt"
  801. "*) ;;
  802. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  803. ac_unrecognized_sep=', ';;
  804. esac
  805. eval enable_$ac_useropt=\$ac_optarg ;;
  806. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  807. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  808. | --exec | --exe | --ex)
  809. ac_prev=exec_prefix ;;
  810. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  811. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  812. | --exec=* | --exe=* | --ex=*)
  813. exec_prefix=$ac_optarg ;;
  814. -gas | --gas | --ga | --g)
  815. # Obsolete; use --with-gas.
  816. with_gas=yes ;;
  817. -help | --help | --hel | --he | -h)
  818. ac_init_help=long ;;
  819. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  820. ac_init_help=recursive ;;
  821. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  822. ac_init_help=short ;;
  823. -host | --host | --hos | --ho)
  824. ac_prev=host_alias ;;
  825. -host=* | --host=* | --hos=* | --ho=*)
  826. host_alias=$ac_optarg ;;
  827. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  828. ac_prev=htmldir ;;
  829. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  830. | --ht=*)
  831. htmldir=$ac_optarg ;;
  832. -includedir | --includedir | --includedi | --included | --include \
  833. | --includ | --inclu | --incl | --inc)
  834. ac_prev=includedir ;;
  835. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  836. | --includ=* | --inclu=* | --incl=* | --inc=*)
  837. includedir=$ac_optarg ;;
  838. -infodir | --infodir | --infodi | --infod | --info | --inf)
  839. ac_prev=infodir ;;
  840. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  841. infodir=$ac_optarg ;;
  842. -libdir | --libdir | --libdi | --libd)
  843. ac_prev=libdir ;;
  844. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  845. libdir=$ac_optarg ;;
  846. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  847. | --libexe | --libex | --libe)
  848. ac_prev=libexecdir ;;
  849. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  850. | --libexe=* | --libex=* | --libe=*)
  851. libexecdir=$ac_optarg ;;
  852. -localedir | --localedir | --localedi | --localed | --locale)
  853. ac_prev=localedir ;;
  854. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  855. localedir=$ac_optarg ;;
  856. -localstatedir | --localstatedir | --localstatedi | --localstated \
  857. | --localstate | --localstat | --localsta | --localst | --locals)
  858. ac_prev=localstatedir ;;
  859. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  860. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  861. localstatedir=$ac_optarg ;;
  862. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  863. ac_prev=mandir ;;
  864. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  865. mandir=$ac_optarg ;;
  866. -nfp | --nfp | --nf)
  867. # Obsolete; use --without-fp.
  868. with_fp=no ;;
  869. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  870. | --no-cr | --no-c | -n)
  871. no_create=yes ;;
  872. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  873. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  874. no_recursion=yes ;;
  875. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  876. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  877. | --oldin | --oldi | --old | --ol | --o)
  878. ac_prev=oldincludedir ;;
  879. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  880. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  881. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  882. oldincludedir=$ac_optarg ;;
  883. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  884. ac_prev=prefix ;;
  885. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  886. prefix=$ac_optarg ;;
  887. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  888. | --program-pre | --program-pr | --program-p)
  889. ac_prev=program_prefix ;;
  890. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  891. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  892. program_prefix=$ac_optarg ;;
  893. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  894. | --program-suf | --program-su | --program-s)
  895. ac_prev=program_suffix ;;
  896. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  897. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  898. program_suffix=$ac_optarg ;;
  899. -program-transform-name | --program-transform-name \
  900. | --program-transform-nam | --program-transform-na \
  901. | --program-transform-n | --program-transform- \
  902. | --program-transform | --program-transfor \
  903. | --program-transfo | --program-transf \
  904. | --program-trans | --program-tran \
  905. | --progr-tra | --program-tr | --program-t)
  906. ac_prev=program_transform_name ;;
  907. -program-transform-name=* | --program-transform-name=* \
  908. | --program-transform-nam=* | --program-transform-na=* \
  909. | --program-transform-n=* | --program-transform-=* \
  910. | --program-transform=* | --program-transfor=* \
  911. | --program-transfo=* | --program-transf=* \
  912. | --program-trans=* | --program-tran=* \
  913. | --progr-tra=* | --program-tr=* | --program-t=*)
  914. program_transform_name=$ac_optarg ;;
  915. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  916. ac_prev=pdfdir ;;
  917. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  918. pdfdir=$ac_optarg ;;
  919. -psdir | --psdir | --psdi | --psd | --ps)
  920. ac_prev=psdir ;;
  921. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  922. psdir=$ac_optarg ;;
  923. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  924. | -silent | --silent | --silen | --sile | --sil)
  925. silent=yes ;;
  926. -runstatedir | --runstatedir | --runstatedi | --runstated \
  927. | --runstate | --runstat | --runsta | --runst | --runs \
  928. | --run | --ru | --r)
  929. ac_prev=runstatedir ;;
  930. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  931. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  932. | --run=* | --ru=* | --r=*)
  933. runstatedir=$ac_optarg ;;
  934. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  935. ac_prev=sbindir ;;
  936. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  937. | --sbi=* | --sb=*)
  938. sbindir=$ac_optarg ;;
  939. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  940. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  941. | --sharedst | --shareds | --shared | --share | --shar \
  942. | --sha | --sh)
  943. ac_prev=sharedstatedir ;;
  944. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  945. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  946. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  947. | --sha=* | --sh=*)
  948. sharedstatedir=$ac_optarg ;;
  949. -site | --site | --sit)
  950. ac_prev=site ;;
  951. -site=* | --site=* | --sit=*)
  952. site=$ac_optarg ;;
  953. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  954. ac_prev=srcdir ;;
  955. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  956. srcdir=$ac_optarg ;;
  957. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  958. | --syscon | --sysco | --sysc | --sys | --sy)
  959. ac_prev=sysconfdir ;;
  960. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  961. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  962. sysconfdir=$ac_optarg ;;
  963. -target | --target | --targe | --targ | --tar | --ta | --t)
  964. ac_prev=target_alias ;;
  965. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  966. target_alias=$ac_optarg ;;
  967. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  968. verbose=yes ;;
  969. -version | --version | --versio | --versi | --vers | -V)
  970. ac_init_version=: ;;
  971. -with-* | --with-*)
  972. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  973. # Reject names that are not valid shell variable names.
  974. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  975. as_fn_error $? "invalid package name: $ac_useropt"
  976. ac_useropt_orig=$ac_useropt
  977. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  978. case $ac_user_opts in
  979. *"
  980. "with_$ac_useropt"
  981. "*) ;;
  982. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  983. ac_unrecognized_sep=', ';;
  984. esac
  985. eval with_$ac_useropt=\$ac_optarg ;;
  986. -without-* | --without-*)
  987. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  988. # Reject names that are not valid shell variable names.
  989. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  990. as_fn_error $? "invalid package name: $ac_useropt"
  991. ac_useropt_orig=$ac_useropt
  992. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  993. case $ac_user_opts in
  994. *"
  995. "with_$ac_useropt"
  996. "*) ;;
  997. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  998. ac_unrecognized_sep=', ';;
  999. esac
  1000. eval with_$ac_useropt=no ;;
  1001. --x)
  1002. # Obsolete; use --with-x.
  1003. with_x=yes ;;
  1004. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1005. | --x-incl | --x-inc | --x-in | --x-i)
  1006. ac_prev=x_includes ;;
  1007. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1008. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1009. x_includes=$ac_optarg ;;
  1010. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1011. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1012. ac_prev=x_libraries ;;
  1013. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1014. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1015. x_libraries=$ac_optarg ;;
  1016. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1017. Try \`$0 --help' for more information"
  1018. ;;
  1019. *=*)
  1020. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1021. # Reject names that are not valid shell variable names.
  1022. case $ac_envvar in #(
  1023. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1024. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1025. esac
  1026. eval $ac_envvar=\$ac_optarg
  1027. export $ac_envvar ;;
  1028. *)
  1029. # FIXME: should be removed in autoconf 3.0.
  1030. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1031. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1032. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1033. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1034. ;;
  1035. esac
  1036. done
  1037. if test -n "$ac_prev"; then
  1038. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1039. as_fn_error $? "missing argument to $ac_option"
  1040. fi
  1041. if test -n "$ac_unrecognized_opts"; then
  1042. case $enable_option_checking in
  1043. no) ;;
  1044. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1045. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1046. esac
  1047. fi
  1048. # Check all directory arguments for consistency.
  1049. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1050. datadir sysconfdir sharedstatedir localstatedir includedir \
  1051. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1052. libdir localedir mandir runstatedir
  1053. do
  1054. eval ac_val=\$$ac_var
  1055. # Remove trailing slashes.
  1056. case $ac_val in
  1057. */ )
  1058. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1059. eval $ac_var=\$ac_val;;
  1060. esac
  1061. # Be sure to have absolute directory names.
  1062. case $ac_val in
  1063. [\\/$]* | ?:[\\/]* ) continue;;
  1064. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1065. esac
  1066. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1067. done
  1068. # There might be people who depend on the old broken behavior: `$host'
  1069. # used to hold the argument of --host etc.
  1070. # FIXME: To remove some day.
  1071. build=$build_alias
  1072. host=$host_alias
  1073. target=$target_alias
  1074. # FIXME: To remove some day.
  1075. if test "x$host_alias" != x; then
  1076. if test "x$build_alias" = x; then
  1077. cross_compiling=maybe
  1078. elif test "x$build_alias" != "x$host_alias"; then
  1079. cross_compiling=yes
  1080. fi
  1081. fi
  1082. ac_tool_prefix=
  1083. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1084. test "$silent" = yes && exec 6>/dev/null
  1085. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1086. ac_ls_di=`ls -di .` &&
  1087. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1088. as_fn_error $? "working directory cannot be determined"
  1089. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1090. as_fn_error $? "pwd does not report name of working directory"
  1091. # Find the source files, if location was not specified.
  1092. if test -z "$srcdir"; then
  1093. ac_srcdir_defaulted=yes
  1094. # Try the directory containing this script, then the parent directory.
  1095. ac_confdir=`$as_dirname -- "$as_myself" ||
  1096. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1097. X"$as_myself" : 'X\(//\)[^/]' \| \
  1098. X"$as_myself" : 'X\(//\)$' \| \
  1099. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1100. $as_echo X"$as_myself" |
  1101. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1102. s//\1/
  1103. q
  1104. }
  1105. /^X\(\/\/\)[^/].*/{
  1106. s//\1/
  1107. q
  1108. }
  1109. /^X\(\/\/\)$/{
  1110. s//\1/
  1111. q
  1112. }
  1113. /^X\(\/\).*/{
  1114. s//\1/
  1115. q
  1116. }
  1117. s/.*/./; q'`
  1118. srcdir=$ac_confdir
  1119. if test ! -r "$srcdir/$ac_unique_file"; then
  1120. srcdir=..
  1121. fi
  1122. else
  1123. ac_srcdir_defaulted=no
  1124. fi
  1125. if test ! -r "$srcdir/$ac_unique_file"; then
  1126. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1127. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1128. fi
  1129. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1130. ac_abs_confdir=`(
  1131. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1132. pwd)`
  1133. # When building in place, set srcdir=.
  1134. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1135. srcdir=.
  1136. fi
  1137. # Remove unnecessary trailing slashes from srcdir.
  1138. # Double slashes in file names in object file debugging info
  1139. # mess up M-x gdb in Emacs.
  1140. case $srcdir in
  1141. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1142. esac
  1143. for ac_var in $ac_precious_vars; do
  1144. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1145. eval ac_env_${ac_var}_value=\$${ac_var}
  1146. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1147. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1148. done
  1149. #
  1150. # Report the --help message.
  1151. #
  1152. if test "$ac_init_help" = "long"; then
  1153. # Omit some internal or obsolete options to make the list less imposing.
  1154. # This message is too long to be a string in the A/UX 3.1 sh.
  1155. cat <<_ACEOF
  1156. \`configure' configures modemu2k 0.0.6 to adapt to many kinds of systems.
  1157. Usage: $0 [OPTION]... [VAR=VALUE]...
  1158. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1159. VAR=VALUE. See below for descriptions of some of the useful variables.
  1160. Defaults for the options are specified in brackets.
  1161. Configuration:
  1162. -h, --help display this help and exit
  1163. --help=short display options specific to this package
  1164. --help=recursive display the short help of all the included packages
  1165. -V, --version display version information and exit
  1166. -q, --quiet, --silent do not print \`checking ...' messages
  1167. --cache-file=FILE cache test results in FILE [disabled]
  1168. -C, --config-cache alias for \`--cache-file=config.cache'
  1169. -n, --no-create do not create output files
  1170. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1171. Installation directories:
  1172. --prefix=PREFIX install architecture-independent files in PREFIX
  1173. [$ac_default_prefix]
  1174. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1175. [PREFIX]
  1176. By default, \`make install' will install all the files in
  1177. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1178. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1179. for instance \`--prefix=\$HOME'.
  1180. For better control, use the options below.
  1181. Fine tuning of the installation directories:
  1182. --bindir=DIR user executables [EPREFIX/bin]
  1183. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1184. --libexecdir=DIR program executables [EPREFIX/libexec]
  1185. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1186. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1187. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1188. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1189. --libdir=DIR object code libraries [EPREFIX/lib]
  1190. --includedir=DIR C header files [PREFIX/include]
  1191. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1192. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1193. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1194. --infodir=DIR info documentation [DATAROOTDIR/info]
  1195. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1196. --mandir=DIR man documentation [DATAROOTDIR/man]
  1197. --docdir=DIR documentation root [DATAROOTDIR/doc/modemu2k]
  1198. --htmldir=DIR html documentation [DOCDIR]
  1199. --dvidir=DIR dvi documentation [DOCDIR]
  1200. --pdfdir=DIR pdf documentation [DOCDIR]
  1201. --psdir=DIR ps documentation [DOCDIR]
  1202. _ACEOF
  1203. cat <<\_ACEOF
  1204. Program names:
  1205. --program-prefix=PREFIX prepend PREFIX to installed program names
  1206. --program-suffix=SUFFIX append SUFFIX to installed program names
  1207. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1208. System types:
  1209. --build=BUILD configure for building on BUILD [guessed]
  1210. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1211. _ACEOF
  1212. fi
  1213. if test -n "$ac_init_help"; then
  1214. case $ac_init_help in
  1215. short | recursive ) echo "Configuration of modemu2k 0.0.6:";;
  1216. esac
  1217. cat <<\_ACEOF
  1218. Optional Features:
  1219. --disable-option-checking ignore unrecognized --enable/--with options
  1220. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1221. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1222. --enable-silent-rules less verbose build output (undo: "make V=1")
  1223. --disable-silent-rules verbose build output (undo: "make V=0")
  1224. --enable-debug=[yes/info/profile/no]
  1225. compile with debugging
  1226. --disable-nls do not use Native Language Support
  1227. --disable-rpath do not hardcode runtime library paths
  1228. --enable-maintainer-mode
  1229. enable make rules and dependencies not useful (and
  1230. sometimes confusing) to the casual installer
  1231. Optional Packages:
  1232. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1233. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1234. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1235. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1236. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1237. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1238. --without-libintl-prefix don't search for libintl in includedir and libdir
  1239. Some influential environment variables:
  1240. CC C compiler command
  1241. CFLAGS C compiler flags
  1242. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1243. nonstandard directory <lib dir>
  1244. LIBS libraries to pass to the linker, e.g. -l<library>
  1245. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1246. you have headers in a nonstandard directory <include dir>
  1247. CPP C preprocessor
  1248. Use these variables to override the choices made by `configure' or to help
  1249. it to find libraries and programs with nonstandard names/locations.
  1250. Report bugs to <andy400-dev@yahoo.com>.
  1251. modemu2k home page: <https://github.com/theimpossibleastronaut/modemu2k>.
  1252. _ACEOF
  1253. ac_status=$?
  1254. fi
  1255. if test "$ac_init_help" = "recursive"; then
  1256. # If there are subdirs, report their specific --help.
  1257. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1258. test -d "$ac_dir" ||
  1259. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1260. continue
  1261. ac_builddir=.
  1262. case "$ac_dir" in
  1263. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1264. *)
  1265. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1266. # A ".." for each directory in $ac_dir_suffix.
  1267. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1268. case $ac_top_builddir_sub in
  1269. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1270. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1271. esac ;;
  1272. esac
  1273. ac_abs_top_builddir=$ac_pwd
  1274. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1275. # for backward compatibility:
  1276. ac_top_builddir=$ac_top_build_prefix
  1277. case $srcdir in
  1278. .) # We are building in place.
  1279. ac_srcdir=.
  1280. ac_top_srcdir=$ac_top_builddir_sub
  1281. ac_abs_top_srcdir=$ac_pwd ;;
  1282. [\\/]* | ?:[\\/]* ) # Absolute name.
  1283. ac_srcdir=$srcdir$ac_dir_suffix;
  1284. ac_top_srcdir=$srcdir
  1285. ac_abs_top_srcdir=$srcdir ;;
  1286. *) # Relative name.
  1287. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1288. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1289. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1290. esac
  1291. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1292. cd "$ac_dir" || { ac_status=$?; continue; }
  1293. # Check for guested configure.
  1294. if test -f "$ac_srcdir/configure.gnu"; then
  1295. echo &&
  1296. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1297. elif test -f "$ac_srcdir/configure"; then
  1298. echo &&
  1299. $SHELL "$ac_srcdir/configure" --help=recursive
  1300. else
  1301. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1302. fi || ac_status=$?
  1303. cd "$ac_pwd" || { ac_status=$?; break; }
  1304. done
  1305. fi
  1306. test -n "$ac_init_help" && exit $ac_status
  1307. if $ac_init_version; then
  1308. cat <<\_ACEOF
  1309. modemu2k configure 0.0.6
  1310. generated by GNU Autoconf 2.69
  1311. Copyright (C) 2012 Free Software Foundation, Inc.
  1312. This configure script is free software; the Free Software Foundation
  1313. gives unlimited permission to copy, distribute and modify it.
  1314. _ACEOF
  1315. exit
  1316. fi
  1317. ## ------------------------ ##
  1318. ## Autoconf initialization. ##
  1319. ## ------------------------ ##
  1320. # ac_fn_c_try_compile LINENO
  1321. # --------------------------
  1322. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1323. ac_fn_c_try_compile ()
  1324. {
  1325. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1326. rm -f conftest.$ac_objext
  1327. if { { ac_try="$ac_compile"
  1328. case "(($ac_try" in
  1329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1330. *) ac_try_echo=$ac_try;;
  1331. esac
  1332. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1333. $as_echo "$ac_try_echo"; } >&5
  1334. (eval "$ac_compile") 2>conftest.err
  1335. ac_status=$?
  1336. if test -s conftest.err; then
  1337. grep -v '^ *+' conftest.err >conftest.er1
  1338. cat conftest.er1 >&5
  1339. mv -f conftest.er1 conftest.err
  1340. fi
  1341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1342. test $ac_status = 0; } && {
  1343. test -z "$ac_c_werror_flag" ||
  1344. test ! -s conftest.err
  1345. } && test -s conftest.$ac_objext; then :
  1346. ac_retval=0
  1347. else
  1348. $as_echo "$as_me: failed program was:" >&5
  1349. sed 's/^/| /' conftest.$ac_ext >&5
  1350. ac_retval=1
  1351. fi
  1352. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1353. as_fn_set_status $ac_retval
  1354. } # ac_fn_c_try_compile
  1355. # ac_fn_c_try_link LINENO
  1356. # -----------------------
  1357. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1358. ac_fn_c_try_link ()
  1359. {
  1360. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1361. rm -f conftest.$ac_objext conftest$ac_exeext
  1362. if { { ac_try="$ac_link"
  1363. case "(($ac_try" in
  1364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1365. *) ac_try_echo=$ac_try;;
  1366. esac
  1367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1368. $as_echo "$ac_try_echo"; } >&5
  1369. (eval "$ac_link") 2>conftest.err
  1370. ac_status=$?
  1371. if test -s conftest.err; then
  1372. grep -v '^ *+' conftest.err >conftest.er1
  1373. cat conftest.er1 >&5
  1374. mv -f conftest.er1 conftest.err
  1375. fi
  1376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1377. test $ac_status = 0; } && {
  1378. test -z "$ac_c_werror_flag" ||
  1379. test ! -s conftest.err
  1380. } && test -s conftest$ac_exeext && {
  1381. test "$cross_compiling" = yes ||
  1382. test -x conftest$ac_exeext
  1383. }; then :
  1384. ac_retval=0
  1385. else
  1386. $as_echo "$as_me: failed program was:" >&5
  1387. sed 's/^/| /' conftest.$ac_ext >&5
  1388. ac_retval=1
  1389. fi
  1390. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1391. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1392. # interfere with the next link command; also delete a directory that is
  1393. # left behind by Apple's compiler. We do this before executing the actions.
  1394. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1395. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1396. as_fn_set_status $ac_retval
  1397. } # ac_fn_c_try_link
  1398. # ac_fn_c_try_cpp LINENO
  1399. # ----------------------
  1400. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1401. ac_fn_c_try_cpp ()
  1402. {
  1403. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1404. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1405. case "(($ac_try" in
  1406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1407. *) ac_try_echo=$ac_try;;
  1408. esac
  1409. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1410. $as_echo "$ac_try_echo"; } >&5
  1411. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1412. ac_status=$?
  1413. if test -s conftest.err; then
  1414. grep -v '^ *+' conftest.err >conftest.er1
  1415. cat conftest.er1 >&5
  1416. mv -f conftest.er1 conftest.err
  1417. fi
  1418. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1419. test $ac_status = 0; } > conftest.i && {
  1420. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1421. test ! -s conftest.err
  1422. }; then :
  1423. ac_retval=0
  1424. else
  1425. $as_echo "$as_me: failed program was:" >&5
  1426. sed 's/^/| /' conftest.$ac_ext >&5
  1427. ac_retval=1
  1428. fi
  1429. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1430. as_fn_set_status $ac_retval
  1431. } # ac_fn_c_try_cpp
  1432. # ac_fn_c_try_run LINENO
  1433. # ----------------------
  1434. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1435. # that executables *can* be run.
  1436. ac_fn_c_try_run ()
  1437. {
  1438. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1439. if { { ac_try="$ac_link"
  1440. case "(($ac_try" in
  1441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1442. *) ac_try_echo=$ac_try;;
  1443. esac
  1444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1445. $as_echo "$ac_try_echo"; } >&5
  1446. (eval "$ac_link") 2>&5
  1447. ac_status=$?
  1448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1449. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1450. { { case "(($ac_try" in
  1451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1452. *) ac_try_echo=$ac_try;;
  1453. esac
  1454. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1455. $as_echo "$ac_try_echo"; } >&5
  1456. (eval "$ac_try") 2>&5
  1457. ac_status=$?
  1458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1459. test $ac_status = 0; }; }; then :
  1460. ac_retval=0
  1461. else
  1462. $as_echo "$as_me: program exited with status $ac_status" >&5
  1463. $as_echo "$as_me: failed program was:" >&5
  1464. sed 's/^/| /' conftest.$ac_ext >&5
  1465. ac_retval=$ac_status
  1466. fi
  1467. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1468. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1469. as_fn_set_status $ac_retval
  1470. } # ac_fn_c_try_run
  1471. cat >config.log <<_ACEOF
  1472. This file contains any messages produced by compilers while
  1473. running configure, to aid debugging if configure makes a mistake.
  1474. It was created by modemu2k $as_me 0.0.6, which was
  1475. generated by GNU Autoconf 2.69. Invocation command line was
  1476. $ $0 $@
  1477. _ACEOF
  1478. exec 5>>config.log
  1479. {
  1480. cat <<_ASUNAME
  1481. ## --------- ##
  1482. ## Platform. ##
  1483. ## --------- ##
  1484. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1485. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1486. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1487. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1488. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1489. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1490. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1491. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1492. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1493. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1494. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1495. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1496. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1497. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1498. _ASUNAME
  1499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1500. for as_dir in $PATH
  1501. do
  1502. IFS=$as_save_IFS
  1503. test -z "$as_dir" && as_dir=.
  1504. $as_echo "PATH: $as_dir"
  1505. done
  1506. IFS=$as_save_IFS
  1507. } >&5
  1508. cat >&5 <<_ACEOF
  1509. ## ----------- ##
  1510. ## Core tests. ##
  1511. ## ----------- ##
  1512. _ACEOF
  1513. # Keep a trace of the command line.
  1514. # Strip out --no-create and --no-recursion so they do not pile up.
  1515. # Strip out --silent because we don't want to record it for future runs.
  1516. # Also quote any args containing shell meta-characters.
  1517. # Make two passes to allow for proper duplicate-argument suppression.
  1518. ac_configure_args=
  1519. ac_configure_args0=
  1520. ac_configure_args1=
  1521. ac_must_keep_next=false
  1522. for ac_pass in 1 2
  1523. do
  1524. for ac_arg
  1525. do
  1526. case $ac_arg in
  1527. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1528. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1529. | -silent | --silent | --silen | --sile | --sil)
  1530. continue ;;
  1531. *\'*)
  1532. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1533. esac
  1534. case $ac_pass in
  1535. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1536. 2)
  1537. as_fn_append ac_configure_args1 " '$ac_arg'"
  1538. if test $ac_must_keep_next = true; then
  1539. ac_must_keep_next=false # Got value, back to normal.
  1540. else
  1541. case $ac_arg in
  1542. *=* | --config-cache | -C | -disable-* | --disable-* \
  1543. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1544. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1545. | -with-* | --with-* | -without-* | --without-* | --x)
  1546. case "$ac_configure_args0 " in
  1547. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1548. esac
  1549. ;;
  1550. -* ) ac_must_keep_next=true ;;
  1551. esac
  1552. fi
  1553. as_fn_append ac_configure_args " '$ac_arg'"
  1554. ;;
  1555. esac
  1556. done
  1557. done
  1558. { ac_configure_args0=; unset ac_configure_args0;}
  1559. { ac_configure_args1=; unset ac_configure_args1;}
  1560. # When interrupted or exit'd, cleanup temporary files, and complete
  1561. # config.log. We remove comments because anyway the quotes in there
  1562. # would cause problems or look ugly.
  1563. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1564. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1565. trap 'exit_status=$?
  1566. # Save into config.log some information that might help in debugging.
  1567. {
  1568. echo
  1569. $as_echo "## ---------------- ##
  1570. ## Cache variables. ##
  1571. ## ---------------- ##"
  1572. echo
  1573. # The following way of writing the cache mishandles newlines in values,
  1574. (
  1575. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1576. eval ac_val=\$$ac_var
  1577. case $ac_val in #(
  1578. *${as_nl}*)
  1579. case $ac_var in #(
  1580. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1581. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1582. esac
  1583. case $ac_var in #(
  1584. _ | IFS | as_nl) ;; #(
  1585. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1586. *) { eval $ac_var=; unset $ac_var;} ;;
  1587. esac ;;
  1588. esac
  1589. done
  1590. (set) 2>&1 |
  1591. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1592. *${as_nl}ac_space=\ *)
  1593. sed -n \
  1594. "s/'\''/'\''\\\\'\'''\''/g;
  1595. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1596. ;; #(
  1597. *)
  1598. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1599. ;;
  1600. esac |
  1601. sort
  1602. )
  1603. echo
  1604. $as_echo "## ----------------- ##
  1605. ## Output variables. ##
  1606. ## ----------------- ##"
  1607. echo
  1608. for ac_var in $ac_subst_vars
  1609. do
  1610. eval ac_val=\$$ac_var
  1611. case $ac_val in
  1612. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1613. esac
  1614. $as_echo "$ac_var='\''$ac_val'\''"
  1615. done | sort
  1616. echo
  1617. if test -n "$ac_subst_files"; then
  1618. $as_echo "## ------------------- ##
  1619. ## File substitutions. ##
  1620. ## ------------------- ##"
  1621. echo
  1622. for ac_var in $ac_subst_files
  1623. do
  1624. eval ac_val=\$$ac_var
  1625. case $ac_val in
  1626. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1627. esac
  1628. $as_echo "$ac_var='\''$ac_val'\''"
  1629. done | sort
  1630. echo
  1631. fi
  1632. if test -s confdefs.h; then
  1633. $as_echo "## ----------- ##
  1634. ## confdefs.h. ##
  1635. ## ----------- ##"
  1636. echo
  1637. cat confdefs.h
  1638. echo
  1639. fi
  1640. test "$ac_signal" != 0 &&
  1641. $as_echo "$as_me: caught signal $ac_signal"
  1642. $as_echo "$as_me: exit $exit_status"
  1643. } >&5
  1644. rm -f core *.core core.conftest.* &&
  1645. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1646. exit $exit_status
  1647. ' 0
  1648. for ac_signal in 1 2 13 15; do
  1649. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1650. done
  1651. ac_signal=0
  1652. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1653. rm -f -r conftest* confdefs.h
  1654. $as_echo "/* confdefs.h */" > confdefs.h
  1655. # Predefined preprocessor variables.
  1656. cat >>confdefs.h <<_ACEOF
  1657. #define PACKAGE_NAME "$PACKAGE_NAME"
  1658. _ACEOF
  1659. cat >>confdefs.h <<_ACEOF
  1660. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1661. _ACEOF
  1662. cat >>confdefs.h <<_ACEOF
  1663. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1664. _ACEOF
  1665. cat >>confdefs.h <<_ACEOF
  1666. #define PACKAGE_STRING "$PACKAGE_STRING"
  1667. _ACEOF
  1668. cat >>confdefs.h <<_ACEOF
  1669. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1670. _ACEOF
  1671. cat >>confdefs.h <<_ACEOF
  1672. #define PACKAGE_URL "$PACKAGE_URL"
  1673. _ACEOF
  1674. # Let the site file select an alternate cache file if it wants to.
  1675. # Prefer an explicitly selected file to automatically selected ones.
  1676. ac_site_file1=NONE
  1677. ac_site_file2=NONE
  1678. if test -n "$CONFIG_SITE"; then
  1679. # We do not want a PATH search for config.site.
  1680. case $CONFIG_SITE in #((
  1681. -*) ac_site_file1=./$CONFIG_SITE;;
  1682. */*) ac_site_file1=$CONFIG_SITE;;
  1683. *) ac_site_file1=./$CONFIG_SITE;;
  1684. esac
  1685. elif test "x$prefix" != xNONE; then
  1686. ac_site_file1=$prefix/share/config.site
  1687. ac_site_file2=$prefix/etc/config.site
  1688. else
  1689. ac_site_file1=$ac_default_prefix/share/config.site
  1690. ac_site_file2=$ac_default_prefix/etc/config.site
  1691. fi
  1692. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1693. do
  1694. test "x$ac_site_file" = xNONE && continue
  1695. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1696. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1697. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1698. sed 's/^/| /' "$ac_site_file" >&5
  1699. . "$ac_site_file" \
  1700. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1701. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1702. as_fn_error $? "failed to load site script $ac_site_file
  1703. See \`config.log' for more details" "$LINENO" 5; }
  1704. fi
  1705. done
  1706. if test -r "$cache_file"; then
  1707. # Some versions of bash will fail to source /dev/null (special files
  1708. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1709. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1711. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1712. case $cache_file in
  1713. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1714. *) . "./$cache_file";;
  1715. esac
  1716. fi
  1717. else
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1719. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1720. >$cache_file
  1721. fi
  1722. gt_needs="$gt_needs need-formatstring-macros"
  1723. # Check that the precious variables saved in the cache have kept the same
  1724. # value.
  1725. ac_cache_corrupted=false
  1726. for ac_var in $ac_precious_vars; do
  1727. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1728. eval ac_new_set=\$ac_env_${ac_var}_set
  1729. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1730. eval ac_new_val=\$ac_env_${ac_var}_value
  1731. case $ac_old_set,$ac_new_set in
  1732. set,)
  1733. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1734. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1735. ac_cache_corrupted=: ;;
  1736. ,set)
  1737. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1738. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1739. ac_cache_corrupted=: ;;
  1740. ,);;
  1741. *)
  1742. if test "x$ac_old_val" != "x$ac_new_val"; then
  1743. # differences in whitespace do not lead to failure.
  1744. ac_old_val_w=`echo x $ac_old_val`
  1745. ac_new_val_w=`echo x $ac_new_val`
  1746. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1747. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1748. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1749. ac_cache_corrupted=:
  1750. else
  1751. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1752. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1753. eval $ac_var=\$ac_old_val
  1754. fi
  1755. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1756. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1757. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1758. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1759. fi;;
  1760. esac
  1761. # Pass precious variables to config.status.
  1762. if test "$ac_new_set" = set; then
  1763. case $ac_new_val in
  1764. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1765. *) ac_arg=$ac_var=$ac_new_val ;;
  1766. esac
  1767. case " $ac_configure_args " in
  1768. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1769. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1770. esac
  1771. fi
  1772. done
  1773. if $ac_cache_corrupted; then
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1775. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1777. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1778. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1779. fi
  1780. ## -------------------- ##
  1781. ## Main body of script. ##
  1782. ## -------------------- ##
  1783. ac_ext=c
  1784. ac_cpp='$CPP $CPPFLAGS'
  1785. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1786. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1787. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1788. ac_aux_dir=
  1789. for ac_dir in build-aux "$srcdir"/build-aux; do
  1790. if test -f "$ac_dir/install-sh"; then
  1791. ac_aux_dir=$ac_dir
  1792. ac_install_sh="$ac_aux_dir/install-sh -c"
  1793. break
  1794. elif test -f "$ac_dir/install.sh"; then
  1795. ac_aux_dir=$ac_dir
  1796. ac_install_sh="$ac_aux_dir/install.sh -c"
  1797. break
  1798. elif test -f "$ac_dir/shtool"; then
  1799. ac_aux_dir=$ac_dir
  1800. ac_install_sh="$ac_aux_dir/shtool install -c"
  1801. break
  1802. fi
  1803. done
  1804. if test -z "$ac_aux_dir"; then
  1805. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  1806. fi
  1807. # These three variables are undocumented and unsupported,
  1808. # and are intended to be withdrawn in a future Autoconf release.
  1809. # They can cause serious problems if a builder's source tree is in a directory
  1810. # whose full name contains unusual characters.
  1811. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1812. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1813. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1814. am__api_version='1.16'
  1815. # Find a good install program. We prefer a C program (faster),
  1816. # so one script is as good as another. But avoid the broken or
  1817. # incompatible versions:
  1818. # SysV /etc/install, /usr/sbin/install
  1819. # SunOS /usr/etc/install
  1820. # IRIX /sbin/install
  1821. # AIX /bin/install
  1822. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1823. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1824. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1825. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1826. # OS/2's system install, which has a completely different semantic
  1827. # ./install, which can be erroneously created by make from ./install.sh.
  1828. # Reject install programs that cannot install multiple files.
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  1830. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1831. if test -z "$INSTALL"; then
  1832. if ${ac_cv_path_install+:} false; then :
  1833. $as_echo_n "(cached) " >&6
  1834. else
  1835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1836. for as_dir in $PATH
  1837. do
  1838. IFS=$as_save_IFS
  1839. test -z "$as_dir" && as_dir=.
  1840. # Account for people who put trailing slashes in PATH elements.
  1841. case $as_dir/ in #((
  1842. ./ | .// | /[cC]/* | \
  1843. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1844. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  1845. /usr/ucb/* ) ;;
  1846. *)
  1847. # OSF1 and SCO ODT 3.0 have their own names for install.
  1848. # Don't use installbsd from OSF since it installs stuff as root
  1849. # by default.
  1850. for ac_prog in ginstall scoinst install; do
  1851. for ac_exec_ext in '' $ac_executable_extensions; do
  1852. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1853. if test $ac_prog = install &&
  1854. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1855. # AIX install. It has an incompatible calling convention.
  1856. :
  1857. elif test $ac_prog = install &&
  1858. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1859. # program-specific install script used by HP pwplus--don't use.
  1860. :
  1861. else
  1862. rm -rf conftest.one conftest.two conftest.dir
  1863. echo one > conftest.one
  1864. echo two > conftest.two
  1865. mkdir conftest.dir
  1866. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1867. test -s conftest.one && test -s conftest.two &&
  1868. test -s conftest.dir/conftest.one &&
  1869. test -s conftest.dir/conftest.two
  1870. then
  1871. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1872. break 3
  1873. fi
  1874. fi
  1875. fi
  1876. done
  1877. done
  1878. ;;
  1879. esac
  1880. done
  1881. IFS=$as_save_IFS
  1882. rm -rf conftest.one conftest.two conftest.dir
  1883. fi
  1884. if test "${ac_cv_path_install+set}" = set; then
  1885. INSTALL=$ac_cv_path_install
  1886. else
  1887. # As a last resort, use the slow shell script. Don't cache a
  1888. # value for INSTALL within a source directory, because that will
  1889. # break other packages using the cache if that directory is
  1890. # removed, or if the value is a relative name.
  1891. INSTALL=$ac_install_sh
  1892. fi
  1893. fi
  1894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  1895. $as_echo "$INSTALL" >&6; }
  1896. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1897. # It thinks the first close brace ends the variable substitution.
  1898. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1899. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1900. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  1902. $as_echo_n "checking whether build environment is sane... " >&6; }
  1903. # Reject unsafe characters in $srcdir or the absolute working directory
  1904. # name. Accept space and tab only in the latter.
  1905. am_lf='
  1906. '
  1907. case `pwd` in
  1908. *[\\\"\#\$\&\'\`$am_lf]*)
  1909. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  1910. esac
  1911. case $srcdir in
  1912. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  1913. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  1914. esac
  1915. # Do 'set' in a subshell so we don't clobber the current shell's
  1916. # arguments. Must try -L first in case configure is actually a
  1917. # symlink; some systems play weird games with the mod time of symlinks
  1918. # (eg FreeBSD returns the mod time of the symlink's containing
  1919. # directory).
  1920. if (
  1921. am_has_slept=no
  1922. for am_try in 1 2; do
  1923. echo "timestamp, slept: $am_has_slept" > conftest.file
  1924. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1925. if test "$*" = "X"; then
  1926. # -L didn't work.
  1927. set X `ls -t "$srcdir/configure" conftest.file`
  1928. fi
  1929. if test "$*" != "X $srcdir/configure conftest.file" \
  1930. && test "$*" != "X conftest.file $srcdir/configure"; then
  1931. # If neither matched, then we have a broken ls. This can happen
  1932. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1933. # broken ls alias from the environment. This has actually
  1934. # happened. Such a system could not be considered "sane".
  1935. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  1936. alias in your environment" "$LINENO" 5
  1937. fi
  1938. if test "$2" = conftest.file || test $am_try -eq 2; then
  1939. break
  1940. fi
  1941. # Just in case.
  1942. sleep 1
  1943. am_has_slept=yes
  1944. done
  1945. test "$2" = conftest.file
  1946. )
  1947. then
  1948. # Ok.
  1949. :
  1950. else
  1951. as_fn_error $? "newly created file is older than distributed files!
  1952. Check your system clock" "$LINENO" 5
  1953. fi
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1955. $as_echo "yes" >&6; }
  1956. # If we didn't sleep, we still need to ensure time stamps of config.status and
  1957. # generated files are strictly newer.
  1958. am_sleep_pid=
  1959. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  1960. ( sleep 1 ) &
  1961. am_sleep_pid=$!
  1962. fi
  1963. rm -f conftest.file
  1964. test "$program_prefix" != NONE &&
  1965. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1966. # Use a double $ so make ignores it.
  1967. test "$program_suffix" != NONE &&
  1968. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1969. # Double any \ or $.
  1970. # By default was `s,x,x', remove it if useless.
  1971. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1972. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1973. # Expand $ac_aux_dir to an absolute path.
  1974. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  1975. if test x"${MISSING+set}" != xset; then
  1976. case $am_aux_dir in
  1977. *\ * | *\ *)
  1978. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  1979. *)
  1980. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  1981. esac
  1982. fi
  1983. # Use eval to expand $SHELL
  1984. if eval "$MISSING --is-lightweight"; then
  1985. am_missing_run="$MISSING "
  1986. else
  1987. am_missing_run=
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  1989. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  1990. fi
  1991. if test x"${install_sh+set}" != xset; then
  1992. case $am_aux_dir in
  1993. *\ * | *\ *)
  1994. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  1995. *)
  1996. install_sh="\${SHELL} $am_aux_dir/install-sh"
  1997. esac
  1998. fi
  1999. # Installed binaries are usually stripped using 'strip' when the user
  2000. # run "make install-strip". However 'strip' might not be the right
  2001. # tool to use in cross-compilation environments, therefore Automake
  2002. # will honor the 'STRIP' environment variable to overrule this program.
  2003. if test "$cross_compiling" != no; then
  2004. if test -n "$ac_tool_prefix"; then
  2005. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2006. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2008. $as_echo_n "checking for $ac_word... " >&6; }
  2009. if ${ac_cv_prog_STRIP+:} false; then :
  2010. $as_echo_n "(cached) " >&6
  2011. else
  2012. if test -n "$STRIP"; then
  2013. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2014. else
  2015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2016. for as_dir in $PATH
  2017. do
  2018. IFS=$as_save_IFS
  2019. test -z "$as_dir" && as_dir=.
  2020. for ac_exec_ext in '' $ac_executable_extensions; do
  2021. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2022. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2024. break 2
  2025. fi
  2026. done
  2027. done
  2028. IFS=$as_save_IFS
  2029. fi
  2030. fi
  2031. STRIP=$ac_cv_prog_STRIP
  2032. if test -n "$STRIP"; then
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2034. $as_echo "$STRIP" >&6; }
  2035. else
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2037. $as_echo "no" >&6; }
  2038. fi
  2039. fi
  2040. if test -z "$ac_cv_prog_STRIP"; then
  2041. ac_ct_STRIP=$STRIP
  2042. # Extract the first word of "strip", so it can be a program name with args.
  2043. set dummy strip; ac_word=$2
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2045. $as_echo_n "checking for $ac_word... " >&6; }
  2046. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2047. $as_echo_n "(cached) " >&6
  2048. else
  2049. if test -n "$ac_ct_STRIP"; then
  2050. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2051. else
  2052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2053. for as_dir in $PATH
  2054. do
  2055. IFS=$as_save_IFS
  2056. test -z "$as_dir" && as_dir=.
  2057. for ac_exec_ext in '' $ac_executable_extensions; do
  2058. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2059. ac_cv_prog_ac_ct_STRIP="strip"
  2060. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2061. break 2
  2062. fi
  2063. done
  2064. done
  2065. IFS=$as_save_IFS
  2066. fi
  2067. fi
  2068. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2069. if test -n "$ac_ct_STRIP"; then
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2071. $as_echo "$ac_ct_STRIP" >&6; }
  2072. else
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2074. $as_echo "no" >&6; }
  2075. fi
  2076. if test "x$ac_ct_STRIP" = x; then
  2077. STRIP=":"
  2078. else
  2079. case $cross_compiling:$ac_tool_warned in
  2080. yes:)
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2082. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2083. ac_tool_warned=yes ;;
  2084. esac
  2085. STRIP=$ac_ct_STRIP
  2086. fi
  2087. else
  2088. STRIP="$ac_cv_prog_STRIP"
  2089. fi
  2090. fi
  2091. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2093. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2094. if test -z "$MKDIR_P"; then
  2095. if ${ac_cv_path_mkdir+:} false; then :
  2096. $as_echo_n "(cached) " >&6
  2097. else
  2098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2099. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2100. do
  2101. IFS=$as_save_IFS
  2102. test -z "$as_dir" && as_dir=.
  2103. for ac_prog in mkdir gmkdir; do
  2104. for ac_exec_ext in '' $ac_executable_extensions; do
  2105. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2106. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2107. 'mkdir (GNU coreutils) '* | \
  2108. 'mkdir (coreutils) '* | \
  2109. 'mkdir (fileutils) '4.1*)
  2110. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2111. break 3;;
  2112. esac
  2113. done
  2114. done
  2115. done
  2116. IFS=$as_save_IFS
  2117. fi
  2118. test -d ./--version && rmdir ./--version
  2119. if test "${ac_cv_path_mkdir+set}" = set; then
  2120. MKDIR_P="$ac_cv_path_mkdir -p"
  2121. else
  2122. # As a last resort, use the slow shell script. Don't cache a
  2123. # value for MKDIR_P within a source directory, because that will
  2124. # break other packages using the cache if that directory is
  2125. # removed, or if the value is a relative name.
  2126. MKDIR_P="$ac_install_sh -d"
  2127. fi
  2128. fi
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2130. $as_echo "$MKDIR_P" >&6; }
  2131. for ac_prog in gawk mawk nawk awk
  2132. do
  2133. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2134. set dummy $ac_prog; ac_word=$2
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2136. $as_echo_n "checking for $ac_word... " >&6; }
  2137. if ${ac_cv_prog_AWK+:} false; then :
  2138. $as_echo_n "(cached) " >&6
  2139. else
  2140. if test -n "$AWK"; then
  2141. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2142. else
  2143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2144. for as_dir in $PATH
  2145. do
  2146. IFS=$as_save_IFS
  2147. test -z "$as_dir" && as_dir=.
  2148. for ac_exec_ext in '' $ac_executable_extensions; do
  2149. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2150. ac_cv_prog_AWK="$ac_prog"
  2151. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2152. break 2
  2153. fi
  2154. done
  2155. done
  2156. IFS=$as_save_IFS
  2157. fi
  2158. fi
  2159. AWK=$ac_cv_prog_AWK
  2160. if test -n "$AWK"; then
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2162. $as_echo "$AWK" >&6; }
  2163. else
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2165. $as_echo "no" >&6; }
  2166. fi
  2167. test -n "$AWK" && break
  2168. done
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2170. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2171. set x ${MAKE-make}
  2172. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2173. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2174. $as_echo_n "(cached) " >&6
  2175. else
  2176. cat >conftest.make <<\_ACEOF
  2177. SHELL = /bin/sh
  2178. all:
  2179. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2180. _ACEOF
  2181. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2182. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2183. *@@@%%%=?*=@@@%%%*)
  2184. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2185. *)
  2186. eval ac_cv_prog_make_${ac_make}_set=no;;
  2187. esac
  2188. rm -f conftest.make
  2189. fi
  2190. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2192. $as_echo "yes" >&6; }
  2193. SET_MAKE=
  2194. else
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2196. $as_echo "no" >&6; }
  2197. SET_MAKE="MAKE=${MAKE-make}"
  2198. fi
  2199. rm -rf .tst 2>/dev/null
  2200. mkdir .tst 2>/dev/null
  2201. if test -d .tst; then
  2202. am__leading_dot=.
  2203. else
  2204. am__leading_dot=_
  2205. fi
  2206. rmdir .tst 2>/dev/null
  2207. # Check whether --enable-silent-rules was given.
  2208. if test "${enable_silent_rules+set}" = set; then :
  2209. enableval=$enable_silent_rules;
  2210. fi
  2211. case $enable_silent_rules in # (((
  2212. yes) AM_DEFAULT_VERBOSITY=0;;
  2213. no) AM_DEFAULT_VERBOSITY=1;;
  2214. *) AM_DEFAULT_VERBOSITY=1;;
  2215. esac
  2216. am_make=${MAKE-make}
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2218. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2219. if ${am_cv_make_support_nested_variables+:} false; then :
  2220. $as_echo_n "(cached) " >&6
  2221. else
  2222. if $as_echo 'TRUE=$(BAR$(V))
  2223. BAR0=false
  2224. BAR1=true
  2225. V=1
  2226. am__doit:
  2227. @$(TRUE)
  2228. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2229. am_cv_make_support_nested_variables=yes
  2230. else
  2231. am_cv_make_support_nested_variables=no
  2232. fi
  2233. fi
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2235. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2236. if test $am_cv_make_support_nested_variables = yes; then
  2237. AM_V='$(V)'
  2238. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2239. else
  2240. AM_V=$AM_DEFAULT_VERBOSITY
  2241. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2242. fi
  2243. AM_BACKSLASH='\'
  2244. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2245. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2246. # is not polluted with repeated "-I."
  2247. am__isrc=' -I$(srcdir)'
  2248. # test to see if srcdir already configured
  2249. if test -f $srcdir/config.status; then
  2250. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2251. fi
  2252. fi
  2253. # test whether we have cygpath
  2254. if test -z "$CYGPATH_W"; then
  2255. if (cygpath --version) >/dev/null 2>/dev/null; then
  2256. CYGPATH_W='cygpath -w'
  2257. else
  2258. CYGPATH_W=echo
  2259. fi
  2260. fi
  2261. # Define the identity of the package.
  2262. PACKAGE='modemu2k'
  2263. VERSION='0.0.6'
  2264. cat >>confdefs.h <<_ACEOF
  2265. #define PACKAGE "$PACKAGE"
  2266. _ACEOF
  2267. cat >>confdefs.h <<_ACEOF
  2268. #define VERSION "$VERSION"
  2269. _ACEOF
  2270. # Some tools Automake needs.
  2271. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2272. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2273. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2274. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2275. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2276. # For better backward compatibility. To be removed once Automake 1.9.x
  2277. # dies out for good. For more background, see:
  2278. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2279. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2280. mkdir_p='$(MKDIR_P)'
  2281. # We need awk for the "check" target (and possibly the TAP driver). The
  2282. # system "awk" is bad on some platforms.
  2283. # Always define AMTAR for backward compatibility. Yes, it's still used
  2284. # in the wild :-( We should find a proper way to deprecate it ...
  2285. AMTAR='$${TAR-tar}'
  2286. # We'll loop over all known methods to create a tar archive until one works.
  2287. _am_tools='gnutar pax cpio none'
  2288. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2289. # POSIX will say in a future version that running "rm -f" with no argument
  2290. # is OK; and we want to be able to make that assumption in our Makefile
  2291. # recipes. So use an aggressive probe to check that the usage we want is
  2292. # actually supported "in the wild" to an acceptable degree.
  2293. # See automake bug#10828.
  2294. # To make any issue more visible, cause the running configure to be aborted
  2295. # by default if the 'rm' program in use doesn't match our expectations; the
  2296. # user can still override this though.
  2297. if rm -f && rm -fr && rm -rf; then : OK; else
  2298. cat >&2 <<'END'
  2299. Oops!
  2300. Your 'rm' program seems unable to run without file operands specified
  2301. on the command line, even when the '-f' option is present. This is contrary
  2302. to the behaviour of most rm programs out there, and not conforming with
  2303. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2304. Please tell bug-automake@gnu.org about your system, including the value
  2305. of your $PATH and any error possibly output before this message. This
  2306. can help us improve future automake versions.
  2307. END
  2308. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2309. echo 'Configuration will proceed anyway, since you have set the' >&2
  2310. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2311. echo >&2
  2312. else
  2313. cat >&2 <<'END'
  2314. Aborting the configuration process, to ensure you take notice of the issue.
  2315. You can download and install GNU coreutils to get an 'rm' implementation
  2316. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2317. If you want to complete the configuration process using your problematic
  2318. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2319. to "yes", and re-run configure.
  2320. END
  2321. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2322. fi
  2323. fi
  2324. # Check whether --enable-silent-rules was given.
  2325. if test "${enable_silent_rules+set}" = set; then :
  2326. enableval=$enable_silent_rules;
  2327. fi
  2328. case $enable_silent_rules in # (((
  2329. yes) AM_DEFAULT_VERBOSITY=0;;
  2330. no) AM_DEFAULT_VERBOSITY=1;;
  2331. *) AM_DEFAULT_VERBOSITY=0;;
  2332. esac
  2333. am_make=${MAKE-make}
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2335. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2336. if ${am_cv_make_support_nested_variables+:} false; then :
  2337. $as_echo_n "(cached) " >&6
  2338. else
  2339. if $as_echo 'TRUE=$(BAR$(V))
  2340. BAR0=false
  2341. BAR1=true
  2342. V=1
  2343. am__doit:
  2344. @$(TRUE)
  2345. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2346. am_cv_make_support_nested_variables=yes
  2347. else
  2348. am_cv_make_support_nested_variables=no
  2349. fi
  2350. fi
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2352. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2353. if test $am_cv_make_support_nested_variables = yes; then
  2354. AM_V='$(V)'
  2355. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2356. else
  2357. AM_V=$AM_DEFAULT_VERBOSITY
  2358. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2359. fi
  2360. AM_BACKSLASH='\'
  2361. ac_config_headers="$ac_config_headers src/config.h:config.in"
  2362. # $is_release = (.git directory does not exist)
  2363. if test -d ${srcdir}/.git; then :
  2364. ax_is_release=no
  2365. else
  2366. ax_is_release=yes
  2367. fi
  2368. # Define the variables listed in the second argument if debug is
  2369. # enabled, defaulting to no variables. Defines the variables listed in
  2370. # the third argument if debug is disabled, defaulting to NDEBUG. All
  2371. # lists of variables should be space-separated.
  2372. #
  2373. # A "yes" value will be overridden by the value returned by AX_IS_RELEASE()
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
  2375. $as_echo_n "checking whether to enable debugging... " >&6; }
  2376. ax_enable_debug_default=yes
  2377. ax_enable_debug_is_release=$ax_is_release
  2378. # If this is a release, override the default.
  2379. if test "$ax_enable_debug_is_release" = "yes"; then :
  2380. ax_enable_debug_default="no"
  2381. fi
  2382. # Check whether --enable-debug was given.
  2383. if test "${enable_debug+set}" = set; then :
  2384. enableval=$enable_debug;
  2385. else
  2386. enable_debug=$ax_enable_debug_default
  2387. fi
  2388. # empty mean debug yes
  2389. if test "x$enable_debug" = "x"; then :
  2390. enable_debug="yes"
  2391. fi
  2392. # case of debug
  2393. case $enable_debug in #(
  2394. yes) :
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2396. $as_echo "yes" >&6; }
  2397. CFLAGS="${CFLAGS} -g -O0"
  2398. CXXFLAGS="${CXXFLAGS} -g -O0"
  2399. FFLAGS="${FFLAGS} -g -O0"
  2400. FCFLAGS="${FCFLAGS} -g -O0"
  2401. OBJCFLAGS="${OBJCFLAGS} -g -O0"
  2402. ;; #(
  2403. info) :
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: info" >&5
  2405. $as_echo "info" >&6; }
  2406. CFLAGS="${CFLAGS} -g"
  2407. CXXFLAGS="${CXXFLAGS} -g"
  2408. FFLAGS="${FFLAGS} -g"
  2409. FCFLAGS="${FCFLAGS} -g"
  2410. OBJCFLAGS="${OBJCFLAGS} -g"
  2411. ;; #(
  2412. profile) :
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: profile" >&5
  2414. $as_echo "profile" >&6; }
  2415. CFLAGS="${CFLAGS} -g -pg"
  2416. CXXFLAGS="${CXXFLAGS} -g -pg"
  2417. FFLAGS="${FFLAGS} -g -pg"
  2418. FCFLAGS="${FCFLAGS} -g -pg"
  2419. OBJCFLAGS="${OBJCFLAGS} -g -pg"
  2420. LDFLAGS="${LDFLAGS} -pg"
  2421. ;; #(
  2422. *) :
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2424. $as_echo "no" >&6; }
  2425. if test "x${CFLAGS+set}" != "xset"; then :
  2426. CFLAGS=""
  2427. fi
  2428. if test "x${CXXFLAGS+set}" != "xset"; then :
  2429. CXXFLAGS=""
  2430. fi
  2431. if test "x${FFLAGS+set}" != "xset"; then :
  2432. FFLAGS=""
  2433. fi
  2434. if test "x${FCFLAGS+set}" != "xset"; then :
  2435. FCFLAGS=""
  2436. fi
  2437. if test "x${OBJCFLAGS+set}" != "xset"; then :
  2438. OBJCFLAGS=""
  2439. fi
  2440. ;;
  2441. esac
  2442. if test "x$enable_debug" = "xyes"; then :
  2443. else
  2444. $as_echo "#define NDEBUG /**/" >>confdefs.h
  2445. fi
  2446. ax_enable_debug=$enable_debug
  2447. ac_ext=c
  2448. ac_cpp='$CPP $CPPFLAGS'
  2449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2452. if test -n "$ac_tool_prefix"; then
  2453. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2454. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2456. $as_echo_n "checking for $ac_word... " >&6; }
  2457. if ${ac_cv_prog_CC+:} false; then :
  2458. $as_echo_n "(cached) " >&6
  2459. else
  2460. if test -n "$CC"; then
  2461. ac_cv_prog_CC="$CC" # Let the user override the test.
  2462. else
  2463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2464. for as_dir in $PATH
  2465. do
  2466. IFS=$as_save_IFS
  2467. test -z "$as_dir" && as_dir=.
  2468. for ac_exec_ext in '' $ac_executable_extensions; do
  2469. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2470. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2472. break 2
  2473. fi
  2474. done
  2475. done
  2476. IFS=$as_save_IFS
  2477. fi
  2478. fi
  2479. CC=$ac_cv_prog_CC
  2480. if test -n "$CC"; then
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2482. $as_echo "$CC" >&6; }
  2483. else
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2485. $as_echo "no" >&6; }
  2486. fi
  2487. fi
  2488. if test -z "$ac_cv_prog_CC"; then
  2489. ac_ct_CC=$CC
  2490. # Extract the first word of "gcc", so it can be a program name with args.
  2491. set dummy gcc; ac_word=$2
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2493. $as_echo_n "checking for $ac_word... " >&6; }
  2494. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2495. $as_echo_n "(cached) " >&6
  2496. else
  2497. if test -n "$ac_ct_CC"; then
  2498. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2499. else
  2500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2501. for as_dir in $PATH
  2502. do
  2503. IFS=$as_save_IFS
  2504. test -z "$as_dir" && as_dir=.
  2505. for ac_exec_ext in '' $ac_executable_extensions; do
  2506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2507. ac_cv_prog_ac_ct_CC="gcc"
  2508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2509. break 2
  2510. fi
  2511. done
  2512. done
  2513. IFS=$as_save_IFS
  2514. fi
  2515. fi
  2516. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2517. if test -n "$ac_ct_CC"; then
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2519. $as_echo "$ac_ct_CC" >&6; }
  2520. else
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2522. $as_echo "no" >&6; }
  2523. fi
  2524. if test "x$ac_ct_CC" = x; then
  2525. CC=""
  2526. else
  2527. case $cross_compiling:$ac_tool_warned in
  2528. yes:)
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2530. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2531. ac_tool_warned=yes ;;
  2532. esac
  2533. CC=$ac_ct_CC
  2534. fi
  2535. else
  2536. CC="$ac_cv_prog_CC"
  2537. fi
  2538. if test -z "$CC"; then
  2539. if test -n "$ac_tool_prefix"; then
  2540. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2541. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2543. $as_echo_n "checking for $ac_word... " >&6; }
  2544. if ${ac_cv_prog_CC+:} false; then :
  2545. $as_echo_n "(cached) " >&6
  2546. else
  2547. if test -n "$CC"; then
  2548. ac_cv_prog_CC="$CC" # Let the user override the test.
  2549. else
  2550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2551. for as_dir in $PATH
  2552. do
  2553. IFS=$as_save_IFS
  2554. test -z "$as_dir" && as_dir=.
  2555. for ac_exec_ext in '' $ac_executable_extensions; do
  2556. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2557. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2559. break 2
  2560. fi
  2561. done
  2562. done
  2563. IFS=$as_save_IFS
  2564. fi
  2565. fi
  2566. CC=$ac_cv_prog_CC
  2567. if test -n "$CC"; then
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2569. $as_echo "$CC" >&6; }
  2570. else
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2572. $as_echo "no" >&6; }
  2573. fi
  2574. fi
  2575. fi
  2576. if test -z "$CC"; then
  2577. # Extract the first word of "cc", so it can be a program name with args.
  2578. set dummy cc; ac_word=$2
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2580. $as_echo_n "checking for $ac_word... " >&6; }
  2581. if ${ac_cv_prog_CC+:} false; then :
  2582. $as_echo_n "(cached) " >&6
  2583. else
  2584. if test -n "$CC"; then
  2585. ac_cv_prog_CC="$CC" # Let the user override the test.
  2586. else
  2587. ac_prog_rejected=no
  2588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2589. for as_dir in $PATH
  2590. do
  2591. IFS=$as_save_IFS
  2592. test -z "$as_dir" && as_dir=.
  2593. for ac_exec_ext in '' $ac_executable_extensions; do
  2594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2595. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2596. ac_prog_rejected=yes
  2597. continue
  2598. fi
  2599. ac_cv_prog_CC="cc"
  2600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2601. break 2
  2602. fi
  2603. done
  2604. done
  2605. IFS=$as_save_IFS
  2606. if test $ac_prog_rejected = yes; then
  2607. # We found a bogon in the path, so make sure we never use it.
  2608. set dummy $ac_cv_prog_CC
  2609. shift
  2610. if test $# != 0; then
  2611. # We chose a different compiler from the bogus one.
  2612. # However, it has the same basename, so the bogon will be chosen
  2613. # first if we set CC to just the basename; use the full file name.
  2614. shift
  2615. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2616. fi
  2617. fi
  2618. fi
  2619. fi
  2620. CC=$ac_cv_prog_CC
  2621. if test -n "$CC"; then
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2623. $as_echo "$CC" >&6; }
  2624. else
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2626. $as_echo "no" >&6; }
  2627. fi
  2628. fi
  2629. if test -z "$CC"; then
  2630. if test -n "$ac_tool_prefix"; then
  2631. for ac_prog in cl.exe
  2632. do
  2633. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2634. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2636. $as_echo_n "checking for $ac_word... " >&6; }
  2637. if ${ac_cv_prog_CC+:} false; then :
  2638. $as_echo_n "(cached) " >&6
  2639. else
  2640. if test -n "$CC"; then
  2641. ac_cv_prog_CC="$CC" # Let the user override the test.
  2642. else
  2643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2644. for as_dir in $PATH
  2645. do
  2646. IFS=$as_save_IFS
  2647. test -z "$as_dir" && as_dir=.
  2648. for ac_exec_ext in '' $ac_executable_extensions; do
  2649. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2650. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2652. break 2
  2653. fi
  2654. done
  2655. done
  2656. IFS=$as_save_IFS
  2657. fi
  2658. fi
  2659. CC=$ac_cv_prog_CC
  2660. if test -n "$CC"; then
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2662. $as_echo "$CC" >&6; }
  2663. else
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2665. $as_echo "no" >&6; }
  2666. fi
  2667. test -n "$CC" && break
  2668. done
  2669. fi
  2670. if test -z "$CC"; then
  2671. ac_ct_CC=$CC
  2672. for ac_prog in cl.exe
  2673. do
  2674. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2675. set dummy $ac_prog; ac_word=$2
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2677. $as_echo_n "checking for $ac_word... " >&6; }
  2678. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2679. $as_echo_n "(cached) " >&6
  2680. else
  2681. if test -n "$ac_ct_CC"; then
  2682. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2683. else
  2684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2685. for as_dir in $PATH
  2686. do
  2687. IFS=$as_save_IFS
  2688. test -z "$as_dir" && as_dir=.
  2689. for ac_exec_ext in '' $ac_executable_extensions; do
  2690. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2691. ac_cv_prog_ac_ct_CC="$ac_prog"
  2692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2693. break 2
  2694. fi
  2695. done
  2696. done
  2697. IFS=$as_save_IFS
  2698. fi
  2699. fi
  2700. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2701. if test -n "$ac_ct_CC"; then
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2703. $as_echo "$ac_ct_CC" >&6; }
  2704. else
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2706. $as_echo "no" >&6; }
  2707. fi
  2708. test -n "$ac_ct_CC" && break
  2709. done
  2710. if test "x$ac_ct_CC" = x; then
  2711. CC=""
  2712. else
  2713. case $cross_compiling:$ac_tool_warned in
  2714. yes:)
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2716. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2717. ac_tool_warned=yes ;;
  2718. esac
  2719. CC=$ac_ct_CC
  2720. fi
  2721. fi
  2722. fi
  2723. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2724. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2725. as_fn_error $? "no acceptable C compiler found in \$PATH
  2726. See \`config.log' for more details" "$LINENO" 5; }
  2727. # Provide some information about the compiler.
  2728. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2729. set X $ac_compile
  2730. ac_compiler=$2
  2731. for ac_option in --version -v -V -qversion; do
  2732. { { ac_try="$ac_compiler $ac_option >&5"
  2733. case "(($ac_try" in
  2734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2735. *) ac_try_echo=$ac_try;;
  2736. esac
  2737. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2738. $as_echo "$ac_try_echo"; } >&5
  2739. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2740. ac_status=$?
  2741. if test -s conftest.err; then
  2742. sed '10a\
  2743. ... rest of stderr output deleted ...
  2744. 10q' conftest.err >conftest.er1
  2745. cat conftest.er1 >&5
  2746. fi
  2747. rm -f conftest.er1 conftest.err
  2748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2749. test $ac_status = 0; }
  2750. done
  2751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2752. /* end confdefs.h. */
  2753. int
  2754. main ()
  2755. {
  2756. ;
  2757. return 0;
  2758. }
  2759. _ACEOF
  2760. ac_clean_files_save=$ac_clean_files
  2761. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2762. # Try to create an executable without -o first, disregard a.out.
  2763. # It will help us diagnose broken compilers, and finding out an intuition
  2764. # of exeext.
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2766. $as_echo_n "checking whether the C compiler works... " >&6; }
  2767. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2768. # The possible output files:
  2769. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2770. ac_rmfiles=
  2771. for ac_file in $ac_files
  2772. do
  2773. case $ac_file in
  2774. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2775. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2776. esac
  2777. done
  2778. rm -f $ac_rmfiles
  2779. if { { ac_try="$ac_link_default"
  2780. case "(($ac_try" in
  2781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2782. *) ac_try_echo=$ac_try;;
  2783. esac
  2784. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2785. $as_echo "$ac_try_echo"; } >&5
  2786. (eval "$ac_link_default") 2>&5
  2787. ac_status=$?
  2788. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2789. test $ac_status = 0; }; then :
  2790. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2791. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2792. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2793. # so that the user can short-circuit this test for compilers unknown to
  2794. # Autoconf.
  2795. for ac_file in $ac_files ''
  2796. do
  2797. test -f "$ac_file" || continue
  2798. case $ac_file in
  2799. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2800. ;;
  2801. [ab].out )
  2802. # We found the default executable, but exeext='' is most
  2803. # certainly right.
  2804. break;;
  2805. *.* )
  2806. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2807. then :; else
  2808. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2809. fi
  2810. # We set ac_cv_exeext here because the later test for it is not
  2811. # safe: cross compilers may not add the suffix if given an `-o'
  2812. # argument, so we may need to know it at that point already.
  2813. # Even if this section looks crufty: it has the advantage of
  2814. # actually working.
  2815. break;;
  2816. * )
  2817. break;;
  2818. esac
  2819. done
  2820. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2821. else
  2822. ac_file=''
  2823. fi
  2824. if test -z "$ac_file"; then :
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2826. $as_echo "no" >&6; }
  2827. $as_echo "$as_me: failed program was:" >&5
  2828. sed 's/^/| /' conftest.$ac_ext >&5
  2829. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2830. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2831. as_fn_error 77 "C compiler cannot create executables
  2832. See \`config.log' for more details" "$LINENO" 5; }
  2833. else
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2835. $as_echo "yes" >&6; }
  2836. fi
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2838. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2840. $as_echo "$ac_file" >&6; }
  2841. ac_exeext=$ac_cv_exeext
  2842. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2843. ac_clean_files=$ac_clean_files_save
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2845. $as_echo_n "checking for suffix of executables... " >&6; }
  2846. if { { ac_try="$ac_link"
  2847. case "(($ac_try" in
  2848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2849. *) ac_try_echo=$ac_try;;
  2850. esac
  2851. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2852. $as_echo "$ac_try_echo"; } >&5
  2853. (eval "$ac_link") 2>&5
  2854. ac_status=$?
  2855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2856. test $ac_status = 0; }; then :
  2857. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2858. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2859. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2860. # `rm'.
  2861. for ac_file in conftest.exe conftest conftest.*; do
  2862. test -f "$ac_file" || continue
  2863. case $ac_file in
  2864. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2865. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2866. break;;
  2867. * ) break;;
  2868. esac
  2869. done
  2870. else
  2871. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2872. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2873. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2874. See \`config.log' for more details" "$LINENO" 5; }
  2875. fi
  2876. rm -f conftest conftest$ac_cv_exeext
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2878. $as_echo "$ac_cv_exeext" >&6; }
  2879. rm -f conftest.$ac_ext
  2880. EXEEXT=$ac_cv_exeext
  2881. ac_exeext=$EXEEXT
  2882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2883. /* end confdefs.h. */
  2884. #include <stdio.h>
  2885. int
  2886. main ()
  2887. {
  2888. FILE *f = fopen ("conftest.out", "w");
  2889. return ferror (f) || fclose (f) != 0;
  2890. ;
  2891. return 0;
  2892. }
  2893. _ACEOF
  2894. ac_clean_files="$ac_clean_files conftest.out"
  2895. # Check that the compiler produces executables we can run. If not, either
  2896. # the compiler is broken, or we cross compile.
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2898. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2899. if test "$cross_compiling" != yes; then
  2900. { { ac_try="$ac_link"
  2901. case "(($ac_try" in
  2902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2903. *) ac_try_echo=$ac_try;;
  2904. esac
  2905. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2906. $as_echo "$ac_try_echo"; } >&5
  2907. (eval "$ac_link") 2>&5
  2908. ac_status=$?
  2909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2910. test $ac_status = 0; }
  2911. if { ac_try='./conftest$ac_cv_exeext'
  2912. { { case "(($ac_try" in
  2913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2914. *) ac_try_echo=$ac_try;;
  2915. esac
  2916. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2917. $as_echo "$ac_try_echo"; } >&5
  2918. (eval "$ac_try") 2>&5
  2919. ac_status=$?
  2920. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2921. test $ac_status = 0; }; }; then
  2922. cross_compiling=no
  2923. else
  2924. if test "$cross_compiling" = maybe; then
  2925. cross_compiling=yes
  2926. else
  2927. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2928. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2929. as_fn_error $? "cannot run C compiled programs.
  2930. If you meant to cross compile, use \`--host'.
  2931. See \`config.log' for more details" "$LINENO" 5; }
  2932. fi
  2933. fi
  2934. fi
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2936. $as_echo "$cross_compiling" >&6; }
  2937. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2938. ac_clean_files=$ac_clean_files_save
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2940. $as_echo_n "checking for suffix of object files... " >&6; }
  2941. if ${ac_cv_objext+:} false; then :
  2942. $as_echo_n "(cached) " >&6
  2943. else
  2944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2945. /* end confdefs.h. */
  2946. int
  2947. main ()
  2948. {
  2949. ;
  2950. return 0;
  2951. }
  2952. _ACEOF
  2953. rm -f conftest.o conftest.obj
  2954. if { { ac_try="$ac_compile"
  2955. case "(($ac_try" in
  2956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2957. *) ac_try_echo=$ac_try;;
  2958. esac
  2959. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2960. $as_echo "$ac_try_echo"; } >&5
  2961. (eval "$ac_compile") 2>&5
  2962. ac_status=$?
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2964. test $ac_status = 0; }; then :
  2965. for ac_file in conftest.o conftest.obj conftest.*; do
  2966. test -f "$ac_file" || continue;
  2967. case $ac_file in
  2968. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2969. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2970. break;;
  2971. esac
  2972. done
  2973. else
  2974. $as_echo "$as_me: failed program was:" >&5
  2975. sed 's/^/| /' conftest.$ac_ext >&5
  2976. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2977. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2978. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2979. See \`config.log' for more details" "$LINENO" 5; }
  2980. fi
  2981. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2982. fi
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2984. $as_echo "$ac_cv_objext" >&6; }
  2985. OBJEXT=$ac_cv_objext
  2986. ac_objext=$OBJEXT
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2988. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2989. if ${ac_cv_c_compiler_gnu+:} false; then :
  2990. $as_echo_n "(cached) " >&6
  2991. else
  2992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. /* end confdefs.h. */
  2994. int
  2995. main ()
  2996. {
  2997. #ifndef __GNUC__
  2998. choke me
  2999. #endif
  3000. ;
  3001. return 0;
  3002. }
  3003. _ACEOF
  3004. if ac_fn_c_try_compile "$LINENO"; then :
  3005. ac_compiler_gnu=yes
  3006. else
  3007. ac_compiler_gnu=no
  3008. fi
  3009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3010. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3011. fi
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3013. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3014. if test $ac_compiler_gnu = yes; then
  3015. GCC=yes
  3016. else
  3017. GCC=
  3018. fi
  3019. ac_test_CFLAGS=${CFLAGS+set}
  3020. ac_save_CFLAGS=$CFLAGS
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3022. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3023. if ${ac_cv_prog_cc_g+:} false; then :
  3024. $as_echo_n "(cached) " >&6
  3025. else
  3026. ac_save_c_werror_flag=$ac_c_werror_flag
  3027. ac_c_werror_flag=yes
  3028. ac_cv_prog_cc_g=no
  3029. CFLAGS="-g"
  3030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3031. /* end confdefs.h. */
  3032. int
  3033. main ()
  3034. {
  3035. ;
  3036. return 0;
  3037. }
  3038. _ACEOF
  3039. if ac_fn_c_try_compile "$LINENO"; then :
  3040. ac_cv_prog_cc_g=yes
  3041. else
  3042. CFLAGS=""
  3043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3044. /* end confdefs.h. */
  3045. int
  3046. main ()
  3047. {
  3048. ;
  3049. return 0;
  3050. }
  3051. _ACEOF
  3052. if ac_fn_c_try_compile "$LINENO"; then :
  3053. else
  3054. ac_c_werror_flag=$ac_save_c_werror_flag
  3055. CFLAGS="-g"
  3056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3057. /* end confdefs.h. */
  3058. int
  3059. main ()
  3060. {
  3061. ;
  3062. return 0;
  3063. }
  3064. _ACEOF
  3065. if ac_fn_c_try_compile "$LINENO"; then :
  3066. ac_cv_prog_cc_g=yes
  3067. fi
  3068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3069. fi
  3070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3071. fi
  3072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3073. ac_c_werror_flag=$ac_save_c_werror_flag
  3074. fi
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3076. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3077. if test "$ac_test_CFLAGS" = set; then
  3078. CFLAGS=$ac_save_CFLAGS
  3079. elif test $ac_cv_prog_cc_g = yes; then
  3080. if test "$GCC" = yes; then
  3081. CFLAGS="-g -O2"
  3082. else
  3083. CFLAGS="-g"
  3084. fi
  3085. else
  3086. if test "$GCC" = yes; then
  3087. CFLAGS="-O2"
  3088. else
  3089. CFLAGS=
  3090. fi
  3091. fi
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3093. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3094. if ${ac_cv_prog_cc_c89+:} false; then :
  3095. $as_echo_n "(cached) " >&6
  3096. else
  3097. ac_cv_prog_cc_c89=no
  3098. ac_save_CC=$CC
  3099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3100. /* end confdefs.h. */
  3101. #include <stdarg.h>
  3102. #include <stdio.h>
  3103. struct stat;
  3104. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3105. struct buf { int x; };
  3106. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3107. static char *e (p, i)
  3108. char **p;
  3109. int i;
  3110. {
  3111. return p[i];
  3112. }
  3113. static char *f (char * (*g) (char **, int), char **p, ...)
  3114. {
  3115. char *s;
  3116. va_list v;
  3117. va_start (v,p);
  3118. s = g (p, va_arg (v,int));
  3119. va_end (v);
  3120. return s;
  3121. }
  3122. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3123. function prototypes and stuff, but not '\xHH' hex character constants.
  3124. These don't provoke an error unfortunately, instead are silently treated
  3125. as 'x'. The following induces an error, until -std is added to get
  3126. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3127. array size at least. It's necessary to write '\x00'==0 to get something
  3128. that's true only with -std. */
  3129. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3130. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3131. inside strings and character constants. */
  3132. #define FOO(x) 'x'
  3133. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3134. int test (int i, double x);
  3135. struct s1 {int (*f) (int a);};
  3136. struct s2 {int (*f) (double a);};
  3137. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3138. int argc;
  3139. char **argv;
  3140. int
  3141. main ()
  3142. {
  3143. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3144. ;
  3145. return 0;
  3146. }
  3147. _ACEOF
  3148. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3149. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3150. do
  3151. CC="$ac_save_CC $ac_arg"
  3152. if ac_fn_c_try_compile "$LINENO"; then :
  3153. ac_cv_prog_cc_c89=$ac_arg
  3154. fi
  3155. rm -f core conftest.err conftest.$ac_objext
  3156. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3157. done
  3158. rm -f conftest.$ac_ext
  3159. CC=$ac_save_CC
  3160. fi
  3161. # AC_CACHE_VAL
  3162. case "x$ac_cv_prog_cc_c89" in
  3163. x)
  3164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3165. $as_echo "none needed" >&6; } ;;
  3166. xno)
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3168. $as_echo "unsupported" >&6; } ;;
  3169. *)
  3170. CC="$CC $ac_cv_prog_cc_c89"
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3172. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3173. esac
  3174. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3175. fi
  3176. ac_ext=c
  3177. ac_cpp='$CPP $CPPFLAGS'
  3178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3181. ac_ext=c
  3182. ac_cpp='$CPP $CPPFLAGS'
  3183. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3184. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3185. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3187. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3188. if ${am_cv_prog_cc_c_o+:} false; then :
  3189. $as_echo_n "(cached) " >&6
  3190. else
  3191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3192. /* end confdefs.h. */
  3193. int
  3194. main ()
  3195. {
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. # Make sure it works both with $CC and with simple cc.
  3201. # Following AC_PROG_CC_C_O, we do the test twice because some
  3202. # compilers refuse to overwrite an existing .o file with -o,
  3203. # though they will create one.
  3204. am_cv_prog_cc_c_o=yes
  3205. for am_i in 1 2; do
  3206. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3207. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3208. ac_status=$?
  3209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3210. (exit $ac_status); } \
  3211. && test -f conftest2.$ac_objext; then
  3212. : OK
  3213. else
  3214. am_cv_prog_cc_c_o=no
  3215. break
  3216. fi
  3217. done
  3218. rm -f core conftest*
  3219. unset am_i
  3220. fi
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3222. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3223. if test "$am_cv_prog_cc_c_o" != yes; then
  3224. # Losing compiler, so override with the script.
  3225. # FIXME: It is wrong to rewrite CC.
  3226. # But if we don't then we get into trouble of one sort or another.
  3227. # A longer-term fix would be to have automake use am__CC in this case,
  3228. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3229. CC="$am_aux_dir/compile $CC"
  3230. fi
  3231. ac_ext=c
  3232. ac_cpp='$CPP $CPPFLAGS'
  3233. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3234. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3235. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3236. case $ac_cv_prog_cc_stdc in #(
  3237. no) :
  3238. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3239. *) :
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3241. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3242. if ${ac_cv_prog_cc_c99+:} false; then :
  3243. $as_echo_n "(cached) " >&6
  3244. else
  3245. ac_cv_prog_cc_c99=no
  3246. ac_save_CC=$CC
  3247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3248. /* end confdefs.h. */
  3249. #include <stdarg.h>
  3250. #include <stdbool.h>
  3251. #include <stdlib.h>
  3252. #include <wchar.h>
  3253. #include <stdio.h>
  3254. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3255. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3256. #define showlist(...) puts (#__VA_ARGS__)
  3257. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3258. static void
  3259. test_varargs_macros (void)
  3260. {
  3261. int x = 1234;
  3262. int y = 5678;
  3263. debug ("Flag");
  3264. debug ("X = %d\n", x);
  3265. showlist (The first, second, and third items.);
  3266. report (x>y, "x is %d but y is %d", x, y);
  3267. }
  3268. // Check long long types.
  3269. #define BIG64 18446744073709551615ull
  3270. #define BIG32 4294967295ul
  3271. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3272. #if !BIG_OK
  3273. your preprocessor is broken;
  3274. #endif
  3275. #if BIG_OK
  3276. #else
  3277. your preprocessor is broken;
  3278. #endif
  3279. static long long int bignum = -9223372036854775807LL;
  3280. static unsigned long long int ubignum = BIG64;
  3281. struct incomplete_array
  3282. {
  3283. int datasize;
  3284. double data[];
  3285. };
  3286. struct named_init {
  3287. int number;
  3288. const wchar_t *name;
  3289. double average;
  3290. };
  3291. typedef const char *ccp;
  3292. static inline int
  3293. test_restrict (ccp restrict text)
  3294. {
  3295. // See if C++-style comments work.
  3296. // Iterate through items via the restricted pointer.
  3297. // Also check for declarations in for loops.
  3298. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3299. continue;
  3300. return 0;
  3301. }
  3302. // Check varargs and va_copy.
  3303. static void
  3304. test_varargs (const char *format, ...)
  3305. {
  3306. va_list args;
  3307. va_start (args, format);
  3308. va_list args_copy;
  3309. va_copy (args_copy, args);
  3310. const char *str;
  3311. int number;
  3312. float fnumber;
  3313. while (*format)
  3314. {
  3315. switch (*format++)
  3316. {
  3317. case 's': // string
  3318. str = va_arg (args_copy, const char *);
  3319. break;
  3320. case 'd': // int
  3321. number = va_arg (args_copy, int);
  3322. break;
  3323. case 'f': // float
  3324. fnumber = va_arg (args_copy, double);
  3325. break;
  3326. default:
  3327. break;
  3328. }
  3329. }
  3330. va_end (args_copy);
  3331. va_end (args);
  3332. }
  3333. int
  3334. main ()
  3335. {
  3336. // Check bool.
  3337. _Bool success = false;
  3338. // Check restrict.
  3339. if (test_restrict ("String literal") == 0)
  3340. success = true;
  3341. char *restrict newvar = "Another string";
  3342. // Check varargs.
  3343. test_varargs ("s, d' f .", "string", 65, 34.234);
  3344. test_varargs_macros ();
  3345. // Check flexible array members.
  3346. struct incomplete_array *ia =
  3347. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3348. ia->datasize = 10;
  3349. for (int i = 0; i < ia->datasize; ++i)
  3350. ia->data[i] = i * 1.234;
  3351. // Check named initializers.
  3352. struct named_init ni = {
  3353. .number = 34,
  3354. .name = L"Test wide string",
  3355. .average = 543.34343,
  3356. };
  3357. ni.number = 58;
  3358. int dynamic_array[ni.number];
  3359. dynamic_array[ni.number - 1] = 543;
  3360. // work around unused variable warnings
  3361. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3362. || dynamic_array[ni.number - 1] != 543);
  3363. ;
  3364. return 0;
  3365. }
  3366. _ACEOF
  3367. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3368. do
  3369. CC="$ac_save_CC $ac_arg"
  3370. if ac_fn_c_try_compile "$LINENO"; then :
  3371. ac_cv_prog_cc_c99=$ac_arg
  3372. fi
  3373. rm -f core conftest.err conftest.$ac_objext
  3374. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3375. done
  3376. rm -f conftest.$ac_ext
  3377. CC=$ac_save_CC
  3378. fi
  3379. # AC_CACHE_VAL
  3380. case "x$ac_cv_prog_cc_c99" in
  3381. x)
  3382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3383. $as_echo "none needed" >&6; } ;;
  3384. xno)
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3386. $as_echo "unsupported" >&6; } ;;
  3387. *)
  3388. CC="$CC $ac_cv_prog_cc_c99"
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3390. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3391. esac
  3392. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3393. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3394. else
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3396. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3397. if ${ac_cv_prog_cc_c89+:} false; then :
  3398. $as_echo_n "(cached) " >&6
  3399. else
  3400. ac_cv_prog_cc_c89=no
  3401. ac_save_CC=$CC
  3402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3403. /* end confdefs.h. */
  3404. #include <stdarg.h>
  3405. #include <stdio.h>
  3406. struct stat;
  3407. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3408. struct buf { int x; };
  3409. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3410. static char *e (p, i)
  3411. char **p;
  3412. int i;
  3413. {
  3414. return p[i];
  3415. }
  3416. static char *f (char * (*g) (char **, int), char **p, ...)
  3417. {
  3418. char *s;
  3419. va_list v;
  3420. va_start (v,p);
  3421. s = g (p, va_arg (v,int));
  3422. va_end (v);
  3423. return s;
  3424. }
  3425. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3426. function prototypes and stuff, but not '\xHH' hex character constants.
  3427. These don't provoke an error unfortunately, instead are silently treated
  3428. as 'x'. The following induces an error, until -std is added to get
  3429. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3430. array size at least. It's necessary to write '\x00'==0 to get something
  3431. that's true only with -std. */
  3432. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3433. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3434. inside strings and character constants. */
  3435. #define FOO(x) 'x'
  3436. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3437. int test (int i, double x);
  3438. struct s1 {int (*f) (int a);};
  3439. struct s2 {int (*f) (double a);};
  3440. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3441. int argc;
  3442. char **argv;
  3443. int
  3444. main ()
  3445. {
  3446. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3447. ;
  3448. return 0;
  3449. }
  3450. _ACEOF
  3451. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3452. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3453. do
  3454. CC="$ac_save_CC $ac_arg"
  3455. if ac_fn_c_try_compile "$LINENO"; then :
  3456. ac_cv_prog_cc_c89=$ac_arg
  3457. fi
  3458. rm -f core conftest.err conftest.$ac_objext
  3459. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3460. done
  3461. rm -f conftest.$ac_ext
  3462. CC=$ac_save_CC
  3463. fi
  3464. # AC_CACHE_VAL
  3465. case "x$ac_cv_prog_cc_c89" in
  3466. x)
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3468. $as_echo "none needed" >&6; } ;;
  3469. xno)
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3471. $as_echo "unsupported" >&6; } ;;
  3472. *)
  3473. CC="$CC $ac_cv_prog_cc_c89"
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3475. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3476. esac
  3477. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3478. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3479. else
  3480. ac_cv_prog_cc_stdc=no
  3481. fi
  3482. fi
  3483. ;;
  3484. esac
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  3486. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  3487. if ${ac_cv_prog_cc_stdc+:} false; then :
  3488. $as_echo_n "(cached) " >&6
  3489. fi
  3490. case $ac_cv_prog_cc_stdc in #(
  3491. no) :
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3493. $as_echo "unsupported" >&6; } ;; #(
  3494. '') :
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3496. $as_echo "none needed" >&6; } ;; #(
  3497. *) :
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  3499. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  3500. esac
  3501. ac_ext=c
  3502. ac_cpp='$CPP $CPPFLAGS'
  3503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
  3507. $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
  3508. if ${ac_cv_cflags_warn_all+:} false; then :
  3509. $as_echo_n "(cached) " >&6
  3510. else
  3511. ac_cv_cflags_warn_all="no, unknown"
  3512. ac_save_CFLAGS="$CFLAGS"
  3513. for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
  3514. do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  3515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3516. /* end confdefs.h. */
  3517. int
  3518. main ()
  3519. {
  3520. ;
  3521. return 0;
  3522. }
  3523. _ACEOF
  3524. if ac_fn_c_try_compile "$LINENO"; then :
  3525. ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
  3526. fi
  3527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3528. done
  3529. CFLAGS="$ac_save_CFLAGS"
  3530. fi
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
  3532. $as_echo "$ac_cv_cflags_warn_all" >&6; }
  3533. case ".$ac_cv_cflags_warn_all" in
  3534. .ok|.ok,*) ;;
  3535. .|.no|.no,*) ;;
  3536. *)
  3537. if ${CFLAGS+:} false; then :
  3538. case " $CFLAGS " in #(
  3539. *" $ac_cv_cflags_warn_all "*) :
  3540. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
  3541. (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
  3542. ac_status=$?
  3543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3544. test $ac_status = 0; } ;; #(
  3545. *) :
  3546. as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
  3547. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  3548. (: CFLAGS="$CFLAGS") 2>&5
  3549. ac_status=$?
  3550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3551. test $ac_status = 0; }
  3552. ;;
  3553. esac
  3554. else
  3555. CFLAGS=$ac_cv_cflags_warn_all
  3556. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  3557. (: CFLAGS="$CFLAGS") 2>&5
  3558. ac_status=$?
  3559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3560. test $ac_status = 0; }
  3561. fi
  3562. ;;
  3563. esac
  3564. ac_ext=c
  3565. ac_cpp='$CPP $CPPFLAGS'
  3566. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3567. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3568. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3569. # For creating the static test library
  3570. if test -n "$ac_tool_prefix"; then
  3571. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3572. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3574. $as_echo_n "checking for $ac_word... " >&6; }
  3575. if ${ac_cv_prog_RANLIB+:} false; then :
  3576. $as_echo_n "(cached) " >&6
  3577. else
  3578. if test -n "$RANLIB"; then
  3579. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3580. else
  3581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3582. for as_dir in $PATH
  3583. do
  3584. IFS=$as_save_IFS
  3585. test -z "$as_dir" && as_dir=.
  3586. for ac_exec_ext in '' $ac_executable_extensions; do
  3587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3588. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3590. break 2
  3591. fi
  3592. done
  3593. done
  3594. IFS=$as_save_IFS
  3595. fi
  3596. fi
  3597. RANLIB=$ac_cv_prog_RANLIB
  3598. if test -n "$RANLIB"; then
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3600. $as_echo "$RANLIB" >&6; }
  3601. else
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3603. $as_echo "no" >&6; }
  3604. fi
  3605. fi
  3606. if test -z "$ac_cv_prog_RANLIB"; then
  3607. ac_ct_RANLIB=$RANLIB
  3608. # Extract the first word of "ranlib", so it can be a program name with args.
  3609. set dummy ranlib; ac_word=$2
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3611. $as_echo_n "checking for $ac_word... " >&6; }
  3612. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  3613. $as_echo_n "(cached) " >&6
  3614. else
  3615. if test -n "$ac_ct_RANLIB"; then
  3616. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3617. else
  3618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3619. for as_dir in $PATH
  3620. do
  3621. IFS=$as_save_IFS
  3622. test -z "$as_dir" && as_dir=.
  3623. for ac_exec_ext in '' $ac_executable_extensions; do
  3624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3625. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3627. break 2
  3628. fi
  3629. done
  3630. done
  3631. IFS=$as_save_IFS
  3632. fi
  3633. fi
  3634. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3635. if test -n "$ac_ct_RANLIB"; then
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3637. $as_echo "$ac_ct_RANLIB" >&6; }
  3638. else
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3640. $as_echo "no" >&6; }
  3641. fi
  3642. if test "x$ac_ct_RANLIB" = x; then
  3643. RANLIB=":"
  3644. else
  3645. case $cross_compiling:$ac_tool_warned in
  3646. yes:)
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3648. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3649. ac_tool_warned=yes ;;
  3650. esac
  3651. RANLIB=$ac_ct_RANLIB
  3652. fi
  3653. else
  3654. RANLIB="$ac_cv_prog_RANLIB"
  3655. fi
  3656. if test -n "$ac_tool_prefix"; then
  3657. for ac_prog in ar lib "link -lib"
  3658. do
  3659. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3660. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3662. $as_echo_n "checking for $ac_word... " >&6; }
  3663. if ${ac_cv_prog_AR+:} false; then :
  3664. $as_echo_n "(cached) " >&6
  3665. else
  3666. if test -n "$AR"; then
  3667. ac_cv_prog_AR="$AR" # Let the user override the test.
  3668. else
  3669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3670. for as_dir in $PATH
  3671. do
  3672. IFS=$as_save_IFS
  3673. test -z "$as_dir" && as_dir=.
  3674. for ac_exec_ext in '' $ac_executable_extensions; do
  3675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3676. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  3677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3678. break 2
  3679. fi
  3680. done
  3681. done
  3682. IFS=$as_save_IFS
  3683. fi
  3684. fi
  3685. AR=$ac_cv_prog_AR
  3686. if test -n "$AR"; then
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3688. $as_echo "$AR" >&6; }
  3689. else
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3691. $as_echo "no" >&6; }
  3692. fi
  3693. test -n "$AR" && break
  3694. done
  3695. fi
  3696. if test -z "$AR"; then
  3697. ac_ct_AR=$AR
  3698. for ac_prog in ar lib "link -lib"
  3699. do
  3700. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3701. set dummy $ac_prog; ac_word=$2
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3703. $as_echo_n "checking for $ac_word... " >&6; }
  3704. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  3705. $as_echo_n "(cached) " >&6
  3706. else
  3707. if test -n "$ac_ct_AR"; then
  3708. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3709. else
  3710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3711. for as_dir in $PATH
  3712. do
  3713. IFS=$as_save_IFS
  3714. test -z "$as_dir" && as_dir=.
  3715. for ac_exec_ext in '' $ac_executable_extensions; do
  3716. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3717. ac_cv_prog_ac_ct_AR="$ac_prog"
  3718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3719. break 2
  3720. fi
  3721. done
  3722. done
  3723. IFS=$as_save_IFS
  3724. fi
  3725. fi
  3726. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3727. if test -n "$ac_ct_AR"; then
  3728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3729. $as_echo "$ac_ct_AR" >&6; }
  3730. else
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3732. $as_echo "no" >&6; }
  3733. fi
  3734. test -n "$ac_ct_AR" && break
  3735. done
  3736. if test "x$ac_ct_AR" = x; then
  3737. AR="false"
  3738. else
  3739. case $cross_compiling:$ac_tool_warned in
  3740. yes:)
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3742. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3743. ac_tool_warned=yes ;;
  3744. esac
  3745. AR=$ac_ct_AR
  3746. fi
  3747. fi
  3748. : ${AR=ar}
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  3750. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  3751. if ${am_cv_ar_interface+:} false; then :
  3752. $as_echo_n "(cached) " >&6
  3753. else
  3754. ac_ext=c
  3755. ac_cpp='$CPP $CPPFLAGS'
  3756. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3757. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3758. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3759. am_cv_ar_interface=ar
  3760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3761. /* end confdefs.h. */
  3762. int some_variable = 0;
  3763. _ACEOF
  3764. if ac_fn_c_try_compile "$LINENO"; then :
  3765. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  3766. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3767. (eval $am_ar_try) 2>&5
  3768. ac_status=$?
  3769. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3770. test $ac_status = 0; }
  3771. if test "$ac_status" -eq 0; then
  3772. am_cv_ar_interface=ar
  3773. else
  3774. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  3775. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3776. (eval $am_ar_try) 2>&5
  3777. ac_status=$?
  3778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3779. test $ac_status = 0; }
  3780. if test "$ac_status" -eq 0; then
  3781. am_cv_ar_interface=lib
  3782. else
  3783. am_cv_ar_interface=unknown
  3784. fi
  3785. fi
  3786. rm -f conftest.lib libconftest.a
  3787. fi
  3788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3789. ac_ext=c
  3790. ac_cpp='$CPP $CPPFLAGS'
  3791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3794. fi
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  3796. $as_echo "$am_cv_ar_interface" >&6; }
  3797. case $am_cv_ar_interface in
  3798. ar)
  3799. ;;
  3800. lib)
  3801. # Microsoft lib, so override with the ar-lib wrapper script.
  3802. # FIXME: It is wrong to rewrite AR.
  3803. # But if we don't then we get into trouble of one sort or another.
  3804. # A longer-term fix would be to have automake use am__AR in this case,
  3805. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  3806. # similar.
  3807. AR="$am_aux_dir/ar-lib $AR"
  3808. ;;
  3809. unknown)
  3810. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  3811. ;;
  3812. esac
  3813. for ac_prog in flex lex
  3814. do
  3815. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3816. set dummy $ac_prog; ac_word=$2
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3818. $as_echo_n "checking for $ac_word... " >&6; }
  3819. if ${ac_cv_prog_LEX+:} false; then :
  3820. $as_echo_n "(cached) " >&6
  3821. else
  3822. if test -n "$LEX"; then
  3823. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  3824. else
  3825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3826. for as_dir in $PATH
  3827. do
  3828. IFS=$as_save_IFS
  3829. test -z "$as_dir" && as_dir=.
  3830. for ac_exec_ext in '' $ac_executable_extensions; do
  3831. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3832. ac_cv_prog_LEX="$ac_prog"
  3833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3834. break 2
  3835. fi
  3836. done
  3837. done
  3838. IFS=$as_save_IFS
  3839. fi
  3840. fi
  3841. LEX=$ac_cv_prog_LEX
  3842. if test -n "$LEX"; then
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  3844. $as_echo "$LEX" >&6; }
  3845. else
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3847. $as_echo "no" >&6; }
  3848. fi
  3849. test -n "$LEX" && break
  3850. done
  3851. test -n "$LEX" || LEX=":"
  3852. if test "x$LEX" != "x:"; then
  3853. cat >conftest.l <<_ACEOF
  3854. %%
  3855. a { ECHO; }
  3856. b { REJECT; }
  3857. c { yymore (); }
  3858. d { yyless (1); }
  3859. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  3860. yyless ((input () != 0)); }
  3861. f { unput (yytext[0]); }
  3862. . { BEGIN INITIAL; }
  3863. %%
  3864. #ifdef YYTEXT_POINTER
  3865. extern char *yytext;
  3866. #endif
  3867. int
  3868. main (void)
  3869. {
  3870. return ! yylex () + ! yywrap ();
  3871. }
  3872. _ACEOF
  3873. { { ac_try="$LEX conftest.l"
  3874. case "(($ac_try" in
  3875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3876. *) ac_try_echo=$ac_try;;
  3877. esac
  3878. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3879. $as_echo "$ac_try_echo"; } >&5
  3880. (eval "$LEX conftest.l") 2>&5
  3881. ac_status=$?
  3882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3883. test $ac_status = 0; }
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  3885. $as_echo_n "checking lex output file root... " >&6; }
  3886. if ${ac_cv_prog_lex_root+:} false; then :
  3887. $as_echo_n "(cached) " >&6
  3888. else
  3889. if test -f lex.yy.c; then
  3890. ac_cv_prog_lex_root=lex.yy
  3891. elif test -f lexyy.c; then
  3892. ac_cv_prog_lex_root=lexyy
  3893. else
  3894. as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  3895. fi
  3896. fi
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  3898. $as_echo "$ac_cv_prog_lex_root" >&6; }
  3899. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  3900. if test -z "${LEXLIB+set}"; then
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  3902. $as_echo_n "checking lex library... " >&6; }
  3903. if ${ac_cv_lib_lex+:} false; then :
  3904. $as_echo_n "(cached) " >&6
  3905. else
  3906. ac_save_LIBS=$LIBS
  3907. ac_cv_lib_lex='none needed'
  3908. for ac_lib in '' -lfl -ll; do
  3909. LIBS="$ac_lib $ac_save_LIBS"
  3910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3911. /* end confdefs.h. */
  3912. `cat $LEX_OUTPUT_ROOT.c`
  3913. _ACEOF
  3914. if ac_fn_c_try_link "$LINENO"; then :
  3915. ac_cv_lib_lex=$ac_lib
  3916. fi
  3917. rm -f core conftest.err conftest.$ac_objext \
  3918. conftest$ac_exeext conftest.$ac_ext
  3919. test "$ac_cv_lib_lex" != 'none needed' && break
  3920. done
  3921. LIBS=$ac_save_LIBS
  3922. fi
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  3924. $as_echo "$ac_cv_lib_lex" >&6; }
  3925. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  3926. fi
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  3928. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  3929. if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  3930. $as_echo_n "(cached) " >&6
  3931. else
  3932. # POSIX says lex can declare yytext either as a pointer or an array; the
  3933. # default is implementation-dependent. Figure out which it is, since
  3934. # not all implementations provide the %pointer and %array declarations.
  3935. ac_cv_prog_lex_yytext_pointer=no
  3936. ac_save_LIBS=$LIBS
  3937. LIBS="$LEXLIB $ac_save_LIBS"
  3938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3939. /* end confdefs.h. */
  3940. #define YYTEXT_POINTER 1
  3941. `cat $LEX_OUTPUT_ROOT.c`
  3942. _ACEOF
  3943. if ac_fn_c_try_link "$LINENO"; then :
  3944. ac_cv_prog_lex_yytext_pointer=yes
  3945. fi
  3946. rm -f core conftest.err conftest.$ac_objext \
  3947. conftest$ac_exeext conftest.$ac_ext
  3948. LIBS=$ac_save_LIBS
  3949. fi
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  3951. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  3952. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  3953. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  3954. fi
  3955. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  3956. fi
  3957. if test "$LEX" = :; then
  3958. LEX=${am_missing_run}flex
  3959. fi
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3961. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3962. if ${ac_cv_path_SED+:} false; then :
  3963. $as_echo_n "(cached) " >&6
  3964. else
  3965. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3966. for ac_i in 1 2 3 4 5 6 7; do
  3967. ac_script="$ac_script$as_nl$ac_script"
  3968. done
  3969. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3970. { ac_script=; unset ac_script;}
  3971. if test -z "$SED"; then
  3972. ac_path_SED_found=false
  3973. # Loop through the user's path and test for each of PROGNAME-LIST
  3974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3975. for as_dir in $PATH
  3976. do
  3977. IFS=$as_save_IFS
  3978. test -z "$as_dir" && as_dir=.
  3979. for ac_prog in sed gsed; do
  3980. for ac_exec_ext in '' $ac_executable_extensions; do
  3981. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3982. as_fn_executable_p "$ac_path_SED" || continue
  3983. # Check for GNU ac_path_SED and select it if it is found.
  3984. # Check for GNU $ac_path_SED
  3985. case `"$ac_path_SED" --version 2>&1` in
  3986. *GNU*)
  3987. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3988. *)
  3989. ac_count=0
  3990. $as_echo_n 0123456789 >"conftest.in"
  3991. while :
  3992. do
  3993. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3994. mv "conftest.tmp" "conftest.in"
  3995. cp "conftest.in" "conftest.nl"
  3996. $as_echo '' >> "conftest.nl"
  3997. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3998. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3999. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4000. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4001. # Best one so far, save it but keep looking for a better one
  4002. ac_cv_path_SED="$ac_path_SED"
  4003. ac_path_SED_max=$ac_count
  4004. fi
  4005. # 10*(2^10) chars as input seems more than enough
  4006. test $ac_count -gt 10 && break
  4007. done
  4008. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4009. esac
  4010. $ac_path_SED_found && break 3
  4011. done
  4012. done
  4013. done
  4014. IFS=$as_save_IFS
  4015. if test -z "$ac_cv_path_SED"; then
  4016. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4017. fi
  4018. else
  4019. ac_cv_path_SED=$SED
  4020. fi
  4021. fi
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4023. $as_echo "$ac_cv_path_SED" >&6; }
  4024. SED="$ac_cv_path_SED"
  4025. rm -f conftest.sed
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  4027. $as_echo_n "checking whether NLS is requested... " >&6; }
  4028. # Check whether --enable-nls was given.
  4029. if test "${enable_nls+set}" = set; then :
  4030. enableval=$enable_nls; USE_NLS=$enableval
  4031. else
  4032. USE_NLS=yes
  4033. fi
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  4035. $as_echo "$USE_NLS" >&6; }
  4036. GETTEXT_MACRO_VERSION=0.19
  4037. # Prepare PATH_SEPARATOR.
  4038. # The user is always right.
  4039. if test "${PATH_SEPARATOR+set}" != set; then
  4040. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  4041. # contains only /bin. Note that ksh looks also at the FPATH variable,
  4042. # so we have to set that as well for the test.
  4043. PATH_SEPARATOR=:
  4044. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  4045. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  4046. || PATH_SEPARATOR=';'
  4047. }
  4048. fi
  4049. # Find out how to test for executable files. Don't use a zero-byte file,
  4050. # as systems may use methods other than mode bits to determine executability.
  4051. cat >conf$$.file <<_ASEOF
  4052. #! /bin/sh
  4053. exit 0
  4054. _ASEOF
  4055. chmod +x conf$$.file
  4056. if test -x conf$$.file >/dev/null 2>&1; then
  4057. ac_executable_p="test -x"
  4058. else
  4059. ac_executable_p="test -f"
  4060. fi
  4061. rm -f conf$$.file
  4062. # Extract the first word of "msgfmt", so it can be a program name with args.
  4063. set dummy msgfmt; ac_word=$2
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4065. $as_echo_n "checking for $ac_word... " >&6; }
  4066. if ${ac_cv_path_MSGFMT+:} false; then :
  4067. $as_echo_n "(cached) " >&6
  4068. else
  4069. case "$MSGFMT" in
  4070. [\\/]* | ?:[\\/]*)
  4071. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  4072. ;;
  4073. *)
  4074. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4075. for ac_dir in $PATH; do
  4076. IFS="$ac_save_IFS"
  4077. test -z "$ac_dir" && ac_dir=.
  4078. for ac_exec_ext in '' $ac_executable_extensions; do
  4079. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4080. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  4081. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  4082. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  4083. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  4084. break 2
  4085. fi
  4086. fi
  4087. done
  4088. done
  4089. IFS="$ac_save_IFS"
  4090. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  4091. ;;
  4092. esac
  4093. fi
  4094. MSGFMT="$ac_cv_path_MSGFMT"
  4095. if test "$MSGFMT" != ":"; then
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  4097. $as_echo "$MSGFMT" >&6; }
  4098. else
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4100. $as_echo "no" >&6; }
  4101. fi
  4102. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  4103. set dummy gmsgfmt; ac_word=$2
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4105. $as_echo_n "checking for $ac_word... " >&6; }
  4106. if ${ac_cv_path_GMSGFMT+:} false; then :
  4107. $as_echo_n "(cached) " >&6
  4108. else
  4109. case $GMSGFMT in
  4110. [\\/]* | ?:[\\/]*)
  4111. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  4112. ;;
  4113. *)
  4114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4115. for as_dir in $PATH
  4116. do
  4117. IFS=$as_save_IFS
  4118. test -z "$as_dir" && as_dir=.
  4119. for ac_exec_ext in '' $ac_executable_extensions; do
  4120. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4121. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  4122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4123. break 2
  4124. fi
  4125. done
  4126. done
  4127. IFS=$as_save_IFS
  4128. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  4129. ;;
  4130. esac
  4131. fi
  4132. GMSGFMT=$ac_cv_path_GMSGFMT
  4133. if test -n "$GMSGFMT"; then
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  4135. $as_echo "$GMSGFMT" >&6; }
  4136. else
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4138. $as_echo "no" >&6; }
  4139. fi
  4140. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  4141. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  4142. *) MSGFMT_015=$MSGFMT ;;
  4143. esac
  4144. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  4145. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  4146. *) GMSGFMT_015=$GMSGFMT ;;
  4147. esac
  4148. # Prepare PATH_SEPARATOR.
  4149. # The user is always right.
  4150. if test "${PATH_SEPARATOR+set}" != set; then
  4151. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  4152. # contains only /bin. Note that ksh looks also at the FPATH variable,
  4153. # so we have to set that as well for the test.
  4154. PATH_SEPARATOR=:
  4155. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  4156. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  4157. || PATH_SEPARATOR=';'
  4158. }
  4159. fi
  4160. # Find out how to test for executable files. Don't use a zero-byte file,
  4161. # as systems may use methods other than mode bits to determine executability.
  4162. cat >conf$$.file <<_ASEOF
  4163. #! /bin/sh
  4164. exit 0
  4165. _ASEOF
  4166. chmod +x conf$$.file
  4167. if test -x conf$$.file >/dev/null 2>&1; then
  4168. ac_executable_p="test -x"
  4169. else
  4170. ac_executable_p="test -f"
  4171. fi
  4172. rm -f conf$$.file
  4173. # Extract the first word of "xgettext", so it can be a program name with args.
  4174. set dummy xgettext; ac_word=$2
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4176. $as_echo_n "checking for $ac_word... " >&6; }
  4177. if ${ac_cv_path_XGETTEXT+:} false; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. case "$XGETTEXT" in
  4181. [\\/]* | ?:[\\/]*)
  4182. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  4183. ;;
  4184. *)
  4185. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4186. for ac_dir in $PATH; do
  4187. IFS="$ac_save_IFS"
  4188. test -z "$ac_dir" && ac_dir=.
  4189. for ac_exec_ext in '' $ac_executable_extensions; do
  4190. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4191. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  4192. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  4193. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  4194. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  4195. break 2
  4196. fi
  4197. fi
  4198. done
  4199. done
  4200. IFS="$ac_save_IFS"
  4201. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  4202. ;;
  4203. esac
  4204. fi
  4205. XGETTEXT="$ac_cv_path_XGETTEXT"
  4206. if test "$XGETTEXT" != ":"; then
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  4208. $as_echo "$XGETTEXT" >&6; }
  4209. else
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4211. $as_echo "no" >&6; }
  4212. fi
  4213. rm -f messages.po
  4214. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  4215. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  4216. *) XGETTEXT_015=$XGETTEXT ;;
  4217. esac
  4218. # Prepare PATH_SEPARATOR.
  4219. # The user is always right.
  4220. if test "${PATH_SEPARATOR+set}" != set; then
  4221. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  4222. # contains only /bin. Note that ksh looks also at the FPATH variable,
  4223. # so we have to set that as well for the test.
  4224. PATH_SEPARATOR=:
  4225. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  4226. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  4227. || PATH_SEPARATOR=';'
  4228. }
  4229. fi
  4230. # Find out how to test for executable files. Don't use a zero-byte file,
  4231. # as systems may use methods other than mode bits to determine executability.
  4232. cat >conf$$.file <<_ASEOF
  4233. #! /bin/sh
  4234. exit 0
  4235. _ASEOF
  4236. chmod +x conf$$.file
  4237. if test -x conf$$.file >/dev/null 2>&1; then
  4238. ac_executable_p="test -x"
  4239. else
  4240. ac_executable_p="test -f"
  4241. fi
  4242. rm -f conf$$.file
  4243. # Extract the first word of "msgmerge", so it can be a program name with args.
  4244. set dummy msgmerge; ac_word=$2
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4246. $as_echo_n "checking for $ac_word... " >&6; }
  4247. if ${ac_cv_path_MSGMERGE+:} false; then :
  4248. $as_echo_n "(cached) " >&6
  4249. else
  4250. case "$MSGMERGE" in
  4251. [\\/]* | ?:[\\/]*)
  4252. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  4253. ;;
  4254. *)
  4255. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4256. for ac_dir in $PATH; do
  4257. IFS="$ac_save_IFS"
  4258. test -z "$ac_dir" && ac_dir=.
  4259. for ac_exec_ext in '' $ac_executable_extensions; do
  4260. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4261. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  4262. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  4263. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  4264. break 2
  4265. fi
  4266. fi
  4267. done
  4268. done
  4269. IFS="$ac_save_IFS"
  4270. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  4271. ;;
  4272. esac
  4273. fi
  4274. MSGMERGE="$ac_cv_path_MSGMERGE"
  4275. if test "$MSGMERGE" != ":"; then
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  4277. $as_echo "$MSGMERGE" >&6; }
  4278. else
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4280. $as_echo "no" >&6; }
  4281. fi
  4282. test -n "$localedir" || localedir='${datadir}/locale'
  4283. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  4284. ac_config_commands="$ac_config_commands po-directories"
  4285. if test "X$prefix" = "XNONE"; then
  4286. acl_final_prefix="$ac_default_prefix"
  4287. else
  4288. acl_final_prefix="$prefix"
  4289. fi
  4290. if test "X$exec_prefix" = "XNONE"; then
  4291. acl_final_exec_prefix='${prefix}'
  4292. else
  4293. acl_final_exec_prefix="$exec_prefix"
  4294. fi
  4295. acl_save_prefix="$prefix"
  4296. prefix="$acl_final_prefix"
  4297. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  4298. prefix="$acl_save_prefix"
  4299. # Make sure we can run config.sub.
  4300. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4301. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4303. $as_echo_n "checking build system type... " >&6; }
  4304. if ${ac_cv_build+:} false; then :
  4305. $as_echo_n "(cached) " >&6
  4306. else
  4307. ac_build_alias=$build_alias
  4308. test "x$ac_build_alias" = x &&
  4309. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4310. test "x$ac_build_alias" = x &&
  4311. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4312. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4313. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4314. fi
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4316. $as_echo "$ac_cv_build" >&6; }
  4317. case $ac_cv_build in
  4318. *-*-*) ;;
  4319. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4320. esac
  4321. build=$ac_cv_build
  4322. ac_save_IFS=$IFS; IFS='-'
  4323. set x $ac_cv_build
  4324. shift
  4325. build_cpu=$1
  4326. build_vendor=$2
  4327. shift; shift
  4328. # Remember, the first character of IFS is used to create $*,
  4329. # except with old shells:
  4330. build_os=$*
  4331. IFS=$ac_save_IFS
  4332. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4334. $as_echo_n "checking host system type... " >&6; }
  4335. if ${ac_cv_host+:} false; then :
  4336. $as_echo_n "(cached) " >&6
  4337. else
  4338. if test "x$host_alias" = x; then
  4339. ac_cv_host=$ac_cv_build
  4340. else
  4341. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4342. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4343. fi
  4344. fi
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4346. $as_echo "$ac_cv_host" >&6; }
  4347. case $ac_cv_host in
  4348. *-*-*) ;;
  4349. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4350. esac
  4351. host=$ac_cv_host
  4352. ac_save_IFS=$IFS; IFS='-'
  4353. set x $ac_cv_host
  4354. shift
  4355. host_cpu=$1
  4356. host_vendor=$2
  4357. shift; shift
  4358. # Remember, the first character of IFS is used to create $*,
  4359. # except with old shells:
  4360. host_os=$*
  4361. IFS=$ac_save_IFS
  4362. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4363. # Check whether --with-gnu-ld was given.
  4364. if test "${with_gnu_ld+set}" = set; then :
  4365. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4366. else
  4367. with_gnu_ld=no
  4368. fi
  4369. # Prepare PATH_SEPARATOR.
  4370. # The user is always right.
  4371. if test "${PATH_SEPARATOR+set}" != set; then
  4372. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  4373. # contains only /bin. Note that ksh looks also at the FPATH variable,
  4374. # so we have to set that as well for the test.
  4375. PATH_SEPARATOR=:
  4376. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  4377. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  4378. || PATH_SEPARATOR=';'
  4379. }
  4380. fi
  4381. ac_prog=ld
  4382. if test "$GCC" = yes; then
  4383. # Check if gcc -print-prog-name=ld gives a path.
  4384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4385. $as_echo_n "checking for ld used by $CC... " >&6; }
  4386. case $host in
  4387. *-*-mingw*)
  4388. # gcc leaves a trailing carriage return which upsets mingw
  4389. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4390. *)
  4391. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4392. esac
  4393. case $ac_prog in
  4394. # Accept absolute paths.
  4395. [\\/]* | ?:[\\/]*)
  4396. re_direlt='/[^/][^/]*/\.\./'
  4397. # Canonicalize the pathname of ld
  4398. ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
  4399. while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
  4400. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  4401. done
  4402. test -z "$LD" && LD="$ac_prog"
  4403. ;;
  4404. "")
  4405. # If it fails, then pretend we aren't using GCC.
  4406. ac_prog=ld
  4407. ;;
  4408. *)
  4409. # If it is relative, then search for the first ld in PATH.
  4410. with_gnu_ld=unknown
  4411. ;;
  4412. esac
  4413. elif test "$with_gnu_ld" = yes; then
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4415. $as_echo_n "checking for GNU ld... " >&6; }
  4416. else
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4418. $as_echo_n "checking for non-GNU ld... " >&6; }
  4419. fi
  4420. if ${acl_cv_path_LD+:} false; then :
  4421. $as_echo_n "(cached) " >&6
  4422. else
  4423. if test -z "$LD"; then
  4424. acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4425. for ac_dir in $PATH; do
  4426. IFS="$acl_save_ifs"
  4427. test -z "$ac_dir" && ac_dir=.
  4428. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4429. acl_cv_path_LD="$ac_dir/$ac_prog"
  4430. # Check to see if the program is GNU ld. I'd rather use --version,
  4431. # but apparently some variants of GNU ld only accept -v.
  4432. # Break only if it was the GNU/non-GNU ld that we prefer.
  4433. case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
  4434. *GNU* | *'with BFD'*)
  4435. test "$with_gnu_ld" != no && break
  4436. ;;
  4437. *)
  4438. test "$with_gnu_ld" != yes && break
  4439. ;;
  4440. esac
  4441. fi
  4442. done
  4443. IFS="$acl_save_ifs"
  4444. else
  4445. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  4446. fi
  4447. fi
  4448. LD="$acl_cv_path_LD"
  4449. if test -n "$LD"; then
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4451. $as_echo "$LD" >&6; }
  4452. else
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4454. $as_echo "no" >&6; }
  4455. fi
  4456. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4458. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4459. if ${acl_cv_prog_gnu_ld+:} false; then :
  4460. $as_echo_n "(cached) " >&6
  4461. else
  4462. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4463. case `$LD -v 2>&1 </dev/null` in
  4464. *GNU* | *'with BFD'*)
  4465. acl_cv_prog_gnu_ld=yes
  4466. ;;
  4467. *)
  4468. acl_cv_prog_gnu_ld=no
  4469. ;;
  4470. esac
  4471. fi
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  4473. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  4474. with_gnu_ld=$acl_cv_prog_gnu_ld
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  4476. $as_echo_n "checking for shared library run path origin... " >&6; }
  4477. if ${acl_cv_rpath+:} false; then :
  4478. $as_echo_n "(cached) " >&6
  4479. else
  4480. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  4481. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  4482. . ./conftest.sh
  4483. rm -f ./conftest.sh
  4484. acl_cv_rpath=done
  4485. fi
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  4487. $as_echo "$acl_cv_rpath" >&6; }
  4488. wl="$acl_cv_wl"
  4489. acl_libext="$acl_cv_libext"
  4490. acl_shlibext="$acl_cv_shlibext"
  4491. acl_libname_spec="$acl_cv_libname_spec"
  4492. acl_library_names_spec="$acl_cv_library_names_spec"
  4493. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  4494. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  4495. acl_hardcode_direct="$acl_cv_hardcode_direct"
  4496. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  4497. # Check whether --enable-rpath was given.
  4498. if test "${enable_rpath+set}" = set; then :
  4499. enableval=$enable_rpath; :
  4500. else
  4501. enable_rpath=yes
  4502. fi
  4503. ac_ext=c
  4504. ac_cpp='$CPP $CPPFLAGS'
  4505. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4506. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4507. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4509. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4510. # On Suns, sometimes $CPP names a directory.
  4511. if test -n "$CPP" && test -d "$CPP"; then
  4512. CPP=
  4513. fi
  4514. if test -z "$CPP"; then
  4515. if ${ac_cv_prog_CPP+:} false; then :
  4516. $as_echo_n "(cached) " >&6
  4517. else
  4518. # Double quotes because CPP needs to be expanded
  4519. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4520. do
  4521. ac_preproc_ok=false
  4522. for ac_c_preproc_warn_flag in '' yes
  4523. do
  4524. # Use a header file that comes with gcc, so configuring glibc
  4525. # with a fresh cross-compiler works.
  4526. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4527. # <limits.h> exists even on freestanding compilers.
  4528. # On the NeXT, cc -E runs the code through the compiler's parser,
  4529. # not just through cpp. "Syntax error" is here to catch this case.
  4530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4531. /* end confdefs.h. */
  4532. #ifdef __STDC__
  4533. # include <limits.h>
  4534. #else
  4535. # include <assert.h>
  4536. #endif
  4537. Syntax error
  4538. _ACEOF
  4539. if ac_fn_c_try_cpp "$LINENO"; then :
  4540. else
  4541. # Broken: fails on valid input.
  4542. continue
  4543. fi
  4544. rm -f conftest.err conftest.i conftest.$ac_ext
  4545. # OK, works on sane cases. Now check whether nonexistent headers
  4546. # can be detected and how.
  4547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4548. /* end confdefs.h. */
  4549. #include <ac_nonexistent.h>
  4550. _ACEOF
  4551. if ac_fn_c_try_cpp "$LINENO"; then :
  4552. # Broken: success on invalid input.
  4553. continue
  4554. else
  4555. # Passes both tests.
  4556. ac_preproc_ok=:
  4557. break
  4558. fi
  4559. rm -f conftest.err conftest.i conftest.$ac_ext
  4560. done
  4561. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4562. rm -f conftest.i conftest.err conftest.$ac_ext
  4563. if $ac_preproc_ok; then :
  4564. break
  4565. fi
  4566. done
  4567. ac_cv_prog_CPP=$CPP
  4568. fi
  4569. CPP=$ac_cv_prog_CPP
  4570. else
  4571. ac_cv_prog_CPP=$CPP
  4572. fi
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4574. $as_echo "$CPP" >&6; }
  4575. ac_preproc_ok=false
  4576. for ac_c_preproc_warn_flag in '' yes
  4577. do
  4578. # Use a header file that comes with gcc, so configuring glibc
  4579. # with a fresh cross-compiler works.
  4580. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4581. # <limits.h> exists even on freestanding compilers.
  4582. # On the NeXT, cc -E runs the code through the compiler's parser,
  4583. # not just through cpp. "Syntax error" is here to catch this case.
  4584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4585. /* end confdefs.h. */
  4586. #ifdef __STDC__
  4587. # include <limits.h>
  4588. #else
  4589. # include <assert.h>
  4590. #endif
  4591. Syntax error
  4592. _ACEOF
  4593. if ac_fn_c_try_cpp "$LINENO"; then :
  4594. else
  4595. # Broken: fails on valid input.
  4596. continue
  4597. fi
  4598. rm -f conftest.err conftest.i conftest.$ac_ext
  4599. # OK, works on sane cases. Now check whether nonexistent headers
  4600. # can be detected and how.
  4601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4602. /* end confdefs.h. */
  4603. #include <ac_nonexistent.h>
  4604. _ACEOF
  4605. if ac_fn_c_try_cpp "$LINENO"; then :
  4606. # Broken: success on invalid input.
  4607. continue
  4608. else
  4609. # Passes both tests.
  4610. ac_preproc_ok=:
  4611. break
  4612. fi
  4613. rm -f conftest.err conftest.i conftest.$ac_ext
  4614. done
  4615. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4616. rm -f conftest.i conftest.err conftest.$ac_ext
  4617. if $ac_preproc_ok; then :
  4618. else
  4619. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4620. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4621. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4622. See \`config.log' for more details" "$LINENO" 5; }
  4623. fi
  4624. ac_ext=c
  4625. ac_cpp='$CPP $CPPFLAGS'
  4626. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4627. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4628. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4630. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4631. if ${ac_cv_path_GREP+:} false; then :
  4632. $as_echo_n "(cached) " >&6
  4633. else
  4634. if test -z "$GREP"; then
  4635. ac_path_GREP_found=false
  4636. # Loop through the user's path and test for each of PROGNAME-LIST
  4637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4638. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4639. do
  4640. IFS=$as_save_IFS
  4641. test -z "$as_dir" && as_dir=.
  4642. for ac_prog in grep ggrep; do
  4643. for ac_exec_ext in '' $ac_executable_extensions; do
  4644. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4645. as_fn_executable_p "$ac_path_GREP" || continue
  4646. # Check for GNU ac_path_GREP and select it if it is found.
  4647. # Check for GNU $ac_path_GREP
  4648. case `"$ac_path_GREP" --version 2>&1` in
  4649. *GNU*)
  4650. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4651. *)
  4652. ac_count=0
  4653. $as_echo_n 0123456789 >"conftest.in"
  4654. while :
  4655. do
  4656. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4657. mv "conftest.tmp" "conftest.in"
  4658. cp "conftest.in" "conftest.nl"
  4659. $as_echo 'GREP' >> "conftest.nl"
  4660. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4661. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4662. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4663. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4664. # Best one so far, save it but keep looking for a better one
  4665. ac_cv_path_GREP="$ac_path_GREP"
  4666. ac_path_GREP_max=$ac_count
  4667. fi
  4668. # 10*(2^10) chars as input seems more than enough
  4669. test $ac_count -gt 10 && break
  4670. done
  4671. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4672. esac
  4673. $ac_path_GREP_found && break 3
  4674. done
  4675. done
  4676. done
  4677. IFS=$as_save_IFS
  4678. if test -z "$ac_cv_path_GREP"; then
  4679. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4680. fi
  4681. else
  4682. ac_cv_path_GREP=$GREP
  4683. fi
  4684. fi
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4686. $as_echo "$ac_cv_path_GREP" >&6; }
  4687. GREP="$ac_cv_path_GREP"
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4689. $as_echo_n "checking for egrep... " >&6; }
  4690. if ${ac_cv_path_EGREP+:} false; then :
  4691. $as_echo_n "(cached) " >&6
  4692. else
  4693. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4694. then ac_cv_path_EGREP="$GREP -E"
  4695. else
  4696. if test -z "$EGREP"; then
  4697. ac_path_EGREP_found=false
  4698. # Loop through the user's path and test for each of PROGNAME-LIST
  4699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4700. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4701. do
  4702. IFS=$as_save_IFS
  4703. test -z "$as_dir" && as_dir=.
  4704. for ac_prog in egrep; do
  4705. for ac_exec_ext in '' $ac_executable_extensions; do
  4706. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4707. as_fn_executable_p "$ac_path_EGREP" || continue
  4708. # Check for GNU ac_path_EGREP and select it if it is found.
  4709. # Check for GNU $ac_path_EGREP
  4710. case `"$ac_path_EGREP" --version 2>&1` in
  4711. *GNU*)
  4712. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4713. *)
  4714. ac_count=0
  4715. $as_echo_n 0123456789 >"conftest.in"
  4716. while :
  4717. do
  4718. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4719. mv "conftest.tmp" "conftest.in"
  4720. cp "conftest.in" "conftest.nl"
  4721. $as_echo 'EGREP' >> "conftest.nl"
  4722. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4723. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4724. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4725. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4726. # Best one so far, save it but keep looking for a better one
  4727. ac_cv_path_EGREP="$ac_path_EGREP"
  4728. ac_path_EGREP_max=$ac_count
  4729. fi
  4730. # 10*(2^10) chars as input seems more than enough
  4731. test $ac_count -gt 10 && break
  4732. done
  4733. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4734. esac
  4735. $ac_path_EGREP_found && break 3
  4736. done
  4737. done
  4738. done
  4739. IFS=$as_save_IFS
  4740. if test -z "$ac_cv_path_EGREP"; then
  4741. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4742. fi
  4743. else
  4744. ac_cv_path_EGREP=$EGREP
  4745. fi
  4746. fi
  4747. fi
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4749. $as_echo "$ac_cv_path_EGREP" >&6; }
  4750. EGREP="$ac_cv_path_EGREP"
  4751. acl_libdirstem=lib
  4752. acl_libdirstem2=
  4753. case "$host_os" in
  4754. solaris*)
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
  4756. $as_echo_n "checking for 64-bit host... " >&6; }
  4757. if ${gl_cv_solaris_64bit+:} false; then :
  4758. $as_echo_n "(cached) " >&6
  4759. else
  4760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4761. /* end confdefs.h. */
  4762. #ifdef _LP64
  4763. sixtyfour bits
  4764. #endif
  4765. _ACEOF
  4766. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4767. $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
  4768. gl_cv_solaris_64bit=yes
  4769. else
  4770. gl_cv_solaris_64bit=no
  4771. fi
  4772. rm -f conftest*
  4773. fi
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
  4775. $as_echo "$gl_cv_solaris_64bit" >&6; }
  4776. if test $gl_cv_solaris_64bit = yes; then
  4777. acl_libdirstem=lib/64
  4778. case "$host_cpu" in
  4779. sparc*) acl_libdirstem2=lib/sparcv9 ;;
  4780. i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
  4781. esac
  4782. fi
  4783. ;;
  4784. *)
  4785. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  4786. if test -n "$searchpath"; then
  4787. acl_save_IFS="${IFS= }"; IFS=":"
  4788. for searchdir in $searchpath; do
  4789. if test -d "$searchdir"; then
  4790. case "$searchdir" in
  4791. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  4792. */../ | */.. )
  4793. # Better ignore directories of this form. They are misleading.
  4794. ;;
  4795. *) searchdir=`cd "$searchdir" && pwd`
  4796. case "$searchdir" in
  4797. */lib64 ) acl_libdirstem=lib64 ;;
  4798. esac ;;
  4799. esac
  4800. fi
  4801. done
  4802. IFS="$acl_save_IFS"
  4803. fi
  4804. ;;
  4805. esac
  4806. test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
  4807. use_additional=yes
  4808. acl_save_prefix="$prefix"
  4809. prefix="$acl_final_prefix"
  4810. acl_save_exec_prefix="$exec_prefix"
  4811. exec_prefix="$acl_final_exec_prefix"
  4812. eval additional_includedir=\"$includedir\"
  4813. eval additional_libdir=\"$libdir\"
  4814. exec_prefix="$acl_save_exec_prefix"
  4815. prefix="$acl_save_prefix"
  4816. # Check whether --with-libiconv-prefix was given.
  4817. if test "${with_libiconv_prefix+set}" = set; then :
  4818. withval=$with_libiconv_prefix;
  4819. if test "X$withval" = "Xno"; then
  4820. use_additional=no
  4821. else
  4822. if test "X$withval" = "X"; then
  4823. acl_save_prefix="$prefix"
  4824. prefix="$acl_final_prefix"
  4825. acl_save_exec_prefix="$exec_prefix"
  4826. exec_prefix="$acl_final_exec_prefix"
  4827. eval additional_includedir=\"$includedir\"
  4828. eval additional_libdir=\"$libdir\"
  4829. exec_prefix="$acl_save_exec_prefix"
  4830. prefix="$acl_save_prefix"
  4831. else
  4832. additional_includedir="$withval/include"
  4833. additional_libdir="$withval/$acl_libdirstem"
  4834. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  4835. && ! test -d "$withval/$acl_libdirstem"; then
  4836. additional_libdir="$withval/$acl_libdirstem2"
  4837. fi
  4838. fi
  4839. fi
  4840. fi
  4841. LIBICONV=
  4842. LTLIBICONV=
  4843. INCICONV=
  4844. LIBICONV_PREFIX=
  4845. HAVE_LIBICONV=
  4846. rpathdirs=
  4847. ltrpathdirs=
  4848. names_already_handled=
  4849. names_next_round='iconv '
  4850. while test -n "$names_next_round"; do
  4851. names_this_round="$names_next_round"
  4852. names_next_round=
  4853. for name in $names_this_round; do
  4854. already_handled=
  4855. for n in $names_already_handled; do
  4856. if test "$n" = "$name"; then
  4857. already_handled=yes
  4858. break
  4859. fi
  4860. done
  4861. if test -z "$already_handled"; then
  4862. names_already_handled="$names_already_handled $name"
  4863. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  4864. eval value=\"\$HAVE_LIB$uppername\"
  4865. if test -n "$value"; then
  4866. if test "$value" = yes; then
  4867. eval value=\"\$LIB$uppername\"
  4868. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  4869. eval value=\"\$LTLIB$uppername\"
  4870. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  4871. else
  4872. :
  4873. fi
  4874. else
  4875. found_dir=
  4876. found_la=
  4877. found_so=
  4878. found_a=
  4879. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  4880. if test -n "$acl_shlibext"; then
  4881. shrext=".$acl_shlibext" # typically: shrext=.so
  4882. else
  4883. shrext=
  4884. fi
  4885. if test $use_additional = yes; then
  4886. dir="$additional_libdir"
  4887. if test -n "$acl_shlibext"; then
  4888. if test -f "$dir/$libname$shrext"; then
  4889. found_dir="$dir"
  4890. found_so="$dir/$libname$shrext"
  4891. else
  4892. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  4893. ver=`(cd "$dir" && \
  4894. for f in "$libname$shrext".*; do echo "$f"; done \
  4895. | sed -e "s,^$libname$shrext\\\\.,," \
  4896. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  4897. | sed 1q ) 2>/dev/null`
  4898. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  4899. found_dir="$dir"
  4900. found_so="$dir/$libname$shrext.$ver"
  4901. fi
  4902. else
  4903. eval library_names=\"$acl_library_names_spec\"
  4904. for f in $library_names; do
  4905. if test -f "$dir/$f"; then
  4906. found_dir="$dir"
  4907. found_so="$dir/$f"
  4908. break
  4909. fi
  4910. done
  4911. fi
  4912. fi
  4913. fi
  4914. if test "X$found_dir" = "X"; then
  4915. if test -f "$dir/$libname.$acl_libext"; then
  4916. found_dir="$dir"
  4917. found_a="$dir/$libname.$acl_libext"
  4918. fi
  4919. fi
  4920. if test "X$found_dir" != "X"; then
  4921. if test -f "$dir/$libname.la"; then
  4922. found_la="$dir/$libname.la"
  4923. fi
  4924. fi
  4925. fi
  4926. if test "X$found_dir" = "X"; then
  4927. for x in $LDFLAGS $LTLIBICONV; do
  4928. acl_save_prefix="$prefix"
  4929. prefix="$acl_final_prefix"
  4930. acl_save_exec_prefix="$exec_prefix"
  4931. exec_prefix="$acl_final_exec_prefix"
  4932. eval x=\"$x\"
  4933. exec_prefix="$acl_save_exec_prefix"
  4934. prefix="$acl_save_prefix"
  4935. case "$x" in
  4936. -L*)
  4937. dir=`echo "X$x" | sed -e 's/^X-L//'`
  4938. if test -n "$acl_shlibext"; then
  4939. if test -f "$dir/$libname$shrext"; then
  4940. found_dir="$dir"
  4941. found_so="$dir/$libname$shrext"
  4942. else
  4943. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  4944. ver=`(cd "$dir" && \
  4945. for f in "$libname$shrext".*; do echo "$f"; done \
  4946. | sed -e "s,^$libname$shrext\\\\.,," \
  4947. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  4948. | sed 1q ) 2>/dev/null`
  4949. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  4950. found_dir="$dir"
  4951. found_so="$dir/$libname$shrext.$ver"
  4952. fi
  4953. else
  4954. eval library_names=\"$acl_library_names_spec\"
  4955. for f in $library_names; do
  4956. if test -f "$dir/$f"; then
  4957. found_dir="$dir"
  4958. found_so="$dir/$f"
  4959. break
  4960. fi
  4961. done
  4962. fi
  4963. fi
  4964. fi
  4965. if test "X$found_dir" = "X"; then
  4966. if test -f "$dir/$libname.$acl_libext"; then
  4967. found_dir="$dir"
  4968. found_a="$dir/$libname.$acl_libext"
  4969. fi
  4970. fi
  4971. if test "X$found_dir" != "X"; then
  4972. if test -f "$dir/$libname.la"; then
  4973. found_la="$dir/$libname.la"
  4974. fi
  4975. fi
  4976. ;;
  4977. esac
  4978. if test "X$found_dir" != "X"; then
  4979. break
  4980. fi
  4981. done
  4982. fi
  4983. if test "X$found_dir" != "X"; then
  4984. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  4985. if test "X$found_so" != "X"; then
  4986. if test "$enable_rpath" = no \
  4987. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  4988. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  4989. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  4990. else
  4991. haveit=
  4992. for x in $ltrpathdirs; do
  4993. if test "X$x" = "X$found_dir"; then
  4994. haveit=yes
  4995. break
  4996. fi
  4997. done
  4998. if test -z "$haveit"; then
  4999. ltrpathdirs="$ltrpathdirs $found_dir"
  5000. fi
  5001. if test "$acl_hardcode_direct" = yes; then
  5002. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5003. else
  5004. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  5005. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5006. haveit=
  5007. for x in $rpathdirs; do
  5008. if test "X$x" = "X$found_dir"; then
  5009. haveit=yes
  5010. break
  5011. fi
  5012. done
  5013. if test -z "$haveit"; then
  5014. rpathdirs="$rpathdirs $found_dir"
  5015. fi
  5016. else
  5017. haveit=
  5018. for x in $LDFLAGS $LIBICONV; do
  5019. acl_save_prefix="$prefix"
  5020. prefix="$acl_final_prefix"
  5021. acl_save_exec_prefix="$exec_prefix"
  5022. exec_prefix="$acl_final_exec_prefix"
  5023. eval x=\"$x\"
  5024. exec_prefix="$acl_save_exec_prefix"
  5025. prefix="$acl_save_prefix"
  5026. if test "X$x" = "X-L$found_dir"; then
  5027. haveit=yes
  5028. break
  5029. fi
  5030. done
  5031. if test -z "$haveit"; then
  5032. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  5033. fi
  5034. if test "$acl_hardcode_minus_L" != no; then
  5035. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5036. else
  5037. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  5038. fi
  5039. fi
  5040. fi
  5041. fi
  5042. else
  5043. if test "X$found_a" != "X"; then
  5044. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  5045. else
  5046. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  5047. fi
  5048. fi
  5049. additional_includedir=
  5050. case "$found_dir" in
  5051. */$acl_libdirstem | */$acl_libdirstem/)
  5052. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  5053. if test "$name" = 'iconv'; then
  5054. LIBICONV_PREFIX="$basedir"
  5055. fi
  5056. additional_includedir="$basedir/include"
  5057. ;;
  5058. */$acl_libdirstem2 | */$acl_libdirstem2/)
  5059. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  5060. if test "$name" = 'iconv'; then
  5061. LIBICONV_PREFIX="$basedir"
  5062. fi
  5063. additional_includedir="$basedir/include"
  5064. ;;
  5065. esac
  5066. if test "X$additional_includedir" != "X"; then
  5067. if test "X$additional_includedir" != "X/usr/include"; then
  5068. haveit=
  5069. if test "X$additional_includedir" = "X/usr/local/include"; then
  5070. if test -n "$GCC"; then
  5071. case $host_os in
  5072. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  5073. esac
  5074. fi
  5075. fi
  5076. if test -z "$haveit"; then
  5077. for x in $CPPFLAGS $INCICONV; do
  5078. acl_save_prefix="$prefix"
  5079. prefix="$acl_final_prefix"
  5080. acl_save_exec_prefix="$exec_prefix"
  5081. exec_prefix="$acl_final_exec_prefix"
  5082. eval x=\"$x\"
  5083. exec_prefix="$acl_save_exec_prefix"
  5084. prefix="$acl_save_prefix"
  5085. if test "X$x" = "X-I$additional_includedir"; then
  5086. haveit=yes
  5087. break
  5088. fi
  5089. done
  5090. if test -z "$haveit"; then
  5091. if test -d "$additional_includedir"; then
  5092. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  5093. fi
  5094. fi
  5095. fi
  5096. fi
  5097. fi
  5098. if test -n "$found_la"; then
  5099. save_libdir="$libdir"
  5100. case "$found_la" in
  5101. */* | *\\*) . "$found_la" ;;
  5102. *) . "./$found_la" ;;
  5103. esac
  5104. libdir="$save_libdir"
  5105. for dep in $dependency_libs; do
  5106. case "$dep" in
  5107. -L*)
  5108. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  5109. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  5110. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  5111. haveit=
  5112. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  5113. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  5114. if test -n "$GCC"; then
  5115. case $host_os in
  5116. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  5117. esac
  5118. fi
  5119. fi
  5120. if test -z "$haveit"; then
  5121. haveit=
  5122. for x in $LDFLAGS $LIBICONV; do
  5123. acl_save_prefix="$prefix"
  5124. prefix="$acl_final_prefix"
  5125. acl_save_exec_prefix="$exec_prefix"
  5126. exec_prefix="$acl_final_exec_prefix"
  5127. eval x=\"$x\"
  5128. exec_prefix="$acl_save_exec_prefix"
  5129. prefix="$acl_save_prefix"
  5130. if test "X$x" = "X-L$additional_libdir"; then
  5131. haveit=yes
  5132. break
  5133. fi
  5134. done
  5135. if test -z "$haveit"; then
  5136. if test -d "$additional_libdir"; then
  5137. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  5138. fi
  5139. fi
  5140. haveit=
  5141. for x in $LDFLAGS $LTLIBICONV; do
  5142. acl_save_prefix="$prefix"
  5143. prefix="$acl_final_prefix"
  5144. acl_save_exec_prefix="$exec_prefix"
  5145. exec_prefix="$acl_final_exec_prefix"
  5146. eval x=\"$x\"
  5147. exec_prefix="$acl_save_exec_prefix"
  5148. prefix="$acl_save_prefix"
  5149. if test "X$x" = "X-L$additional_libdir"; then
  5150. haveit=yes
  5151. break
  5152. fi
  5153. done
  5154. if test -z "$haveit"; then
  5155. if test -d "$additional_libdir"; then
  5156. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  5157. fi
  5158. fi
  5159. fi
  5160. fi
  5161. ;;
  5162. -R*)
  5163. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  5164. if test "$enable_rpath" != no; then
  5165. haveit=
  5166. for x in $rpathdirs; do
  5167. if test "X$x" = "X$dir"; then
  5168. haveit=yes
  5169. break
  5170. fi
  5171. done
  5172. if test -z "$haveit"; then
  5173. rpathdirs="$rpathdirs $dir"
  5174. fi
  5175. haveit=
  5176. for x in $ltrpathdirs; do
  5177. if test "X$x" = "X$dir"; then
  5178. haveit=yes
  5179. break
  5180. fi
  5181. done
  5182. if test -z "$haveit"; then
  5183. ltrpathdirs="$ltrpathdirs $dir"
  5184. fi
  5185. fi
  5186. ;;
  5187. -l*)
  5188. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  5189. ;;
  5190. *.la)
  5191. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  5192. ;;
  5193. *)
  5194. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  5195. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  5196. ;;
  5197. esac
  5198. done
  5199. fi
  5200. else
  5201. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  5202. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  5203. fi
  5204. fi
  5205. fi
  5206. done
  5207. done
  5208. if test "X$rpathdirs" != "X"; then
  5209. if test -n "$acl_hardcode_libdir_separator"; then
  5210. alldirs=
  5211. for found_dir in $rpathdirs; do
  5212. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  5213. done
  5214. acl_save_libdir="$libdir"
  5215. libdir="$alldirs"
  5216. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  5217. libdir="$acl_save_libdir"
  5218. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  5219. else
  5220. for found_dir in $rpathdirs; do
  5221. acl_save_libdir="$libdir"
  5222. libdir="$found_dir"
  5223. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  5224. libdir="$acl_save_libdir"
  5225. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  5226. done
  5227. fi
  5228. fi
  5229. if test "X$ltrpathdirs" != "X"; then
  5230. for found_dir in $ltrpathdirs; do
  5231. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  5232. done
  5233. fi
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  5235. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  5236. if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
  5237. $as_echo_n "(cached) " >&6
  5238. else
  5239. gt_save_LIBS="$LIBS"
  5240. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  5241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5242. /* end confdefs.h. */
  5243. #include <CoreFoundation/CFPreferences.h>
  5244. int
  5245. main ()
  5246. {
  5247. CFPreferencesCopyAppValue(NULL, NULL)
  5248. ;
  5249. return 0;
  5250. }
  5251. _ACEOF
  5252. if ac_fn_c_try_link "$LINENO"; then :
  5253. gt_cv_func_CFPreferencesCopyAppValue=yes
  5254. else
  5255. gt_cv_func_CFPreferencesCopyAppValue=no
  5256. fi
  5257. rm -f core conftest.err conftest.$ac_objext \
  5258. conftest$ac_exeext conftest.$ac_ext
  5259. LIBS="$gt_save_LIBS"
  5260. fi
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  5262. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  5263. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  5264. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  5265. fi
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  5267. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  5268. if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
  5269. $as_echo_n "(cached) " >&6
  5270. else
  5271. gt_save_LIBS="$LIBS"
  5272. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  5273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5274. /* end confdefs.h. */
  5275. #include <CoreFoundation/CFLocale.h>
  5276. int
  5277. main ()
  5278. {
  5279. CFLocaleCopyCurrent();
  5280. ;
  5281. return 0;
  5282. }
  5283. _ACEOF
  5284. if ac_fn_c_try_link "$LINENO"; then :
  5285. gt_cv_func_CFLocaleCopyCurrent=yes
  5286. else
  5287. gt_cv_func_CFLocaleCopyCurrent=no
  5288. fi
  5289. rm -f core conftest.err conftest.$ac_objext \
  5290. conftest$ac_exeext conftest.$ac_ext
  5291. LIBS="$gt_save_LIBS"
  5292. fi
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  5294. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  5295. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  5296. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  5297. fi
  5298. INTL_MACOSX_LIBS=
  5299. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  5300. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  5301. fi
  5302. LIBINTL=
  5303. LTLIBINTL=
  5304. POSUB=
  5305. case " $gt_needs " in
  5306. *" need-formatstring-macros "*) gt_api_version=3 ;;
  5307. *" need-ngettext "*) gt_api_version=2 ;;
  5308. *) gt_api_version=1 ;;
  5309. esac
  5310. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  5311. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  5312. if test "$USE_NLS" = "yes"; then
  5313. gt_use_preinstalled_gnugettext=no
  5314. if test $gt_api_version -ge 3; then
  5315. gt_revision_test_code='
  5316. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  5317. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  5318. #endif
  5319. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  5320. '
  5321. else
  5322. gt_revision_test_code=
  5323. fi
  5324. if test $gt_api_version -ge 2; then
  5325. gt_expression_test_code=' + * ngettext ("", "", 0)'
  5326. else
  5327. gt_expression_test_code=
  5328. fi
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  5330. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  5331. if eval \${$gt_func_gnugettext_libc+:} false; then :
  5332. $as_echo_n "(cached) " >&6
  5333. else
  5334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5335. /* end confdefs.h. */
  5336. #include <libintl.h>
  5337. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  5338. extern int _nl_msg_cat_cntr;
  5339. extern int *_nl_domain_bindings;
  5340. #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
  5341. #else
  5342. #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  5343. #endif
  5344. $gt_revision_test_code
  5345. int
  5346. main ()
  5347. {
  5348. bindtextdomain ("", "");
  5349. return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
  5350. ;
  5351. return 0;
  5352. }
  5353. _ACEOF
  5354. if ac_fn_c_try_link "$LINENO"; then :
  5355. eval "$gt_func_gnugettext_libc=yes"
  5356. else
  5357. eval "$gt_func_gnugettext_libc=no"
  5358. fi
  5359. rm -f core conftest.err conftest.$ac_objext \
  5360. conftest$ac_exeext conftest.$ac_ext
  5361. fi
  5362. eval ac_res=\$$gt_func_gnugettext_libc
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5364. $as_echo "$ac_res" >&6; }
  5365. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  5366. am_save_CPPFLAGS="$CPPFLAGS"
  5367. for element in $INCICONV; do
  5368. haveit=
  5369. for x in $CPPFLAGS; do
  5370. acl_save_prefix="$prefix"
  5371. prefix="$acl_final_prefix"
  5372. acl_save_exec_prefix="$exec_prefix"
  5373. exec_prefix="$acl_final_exec_prefix"
  5374. eval x=\"$x\"
  5375. exec_prefix="$acl_save_exec_prefix"
  5376. prefix="$acl_save_prefix"
  5377. if test "X$x" = "X$element"; then
  5378. haveit=yes
  5379. break
  5380. fi
  5381. done
  5382. if test -z "$haveit"; then
  5383. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  5384. fi
  5385. done
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  5387. $as_echo_n "checking for iconv... " >&6; }
  5388. if ${am_cv_func_iconv+:} false; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. am_cv_func_iconv="no, consider installing GNU libiconv"
  5392. am_cv_lib_iconv=no
  5393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5394. /* end confdefs.h. */
  5395. #include <stdlib.h>
  5396. #include <iconv.h>
  5397. int
  5398. main ()
  5399. {
  5400. iconv_t cd = iconv_open("","");
  5401. iconv(cd,NULL,NULL,NULL,NULL);
  5402. iconv_close(cd);
  5403. ;
  5404. return 0;
  5405. }
  5406. _ACEOF
  5407. if ac_fn_c_try_link "$LINENO"; then :
  5408. am_cv_func_iconv=yes
  5409. fi
  5410. rm -f core conftest.err conftest.$ac_objext \
  5411. conftest$ac_exeext conftest.$ac_ext
  5412. if test "$am_cv_func_iconv" != yes; then
  5413. am_save_LIBS="$LIBS"
  5414. LIBS="$LIBS $LIBICONV"
  5415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5416. /* end confdefs.h. */
  5417. #include <stdlib.h>
  5418. #include <iconv.h>
  5419. int
  5420. main ()
  5421. {
  5422. iconv_t cd = iconv_open("","");
  5423. iconv(cd,NULL,NULL,NULL,NULL);
  5424. iconv_close(cd);
  5425. ;
  5426. return 0;
  5427. }
  5428. _ACEOF
  5429. if ac_fn_c_try_link "$LINENO"; then :
  5430. am_cv_lib_iconv=yes
  5431. am_cv_func_iconv=yes
  5432. fi
  5433. rm -f core conftest.err conftest.$ac_objext \
  5434. conftest$ac_exeext conftest.$ac_ext
  5435. LIBS="$am_save_LIBS"
  5436. fi
  5437. fi
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  5439. $as_echo "$am_cv_func_iconv" >&6; }
  5440. if test "$am_cv_func_iconv" = yes; then
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  5442. $as_echo_n "checking for working iconv... " >&6; }
  5443. if ${am_cv_func_iconv_works+:} false; then :
  5444. $as_echo_n "(cached) " >&6
  5445. else
  5446. am_save_LIBS="$LIBS"
  5447. if test $am_cv_lib_iconv = yes; then
  5448. LIBS="$LIBS $LIBICONV"
  5449. fi
  5450. am_cv_func_iconv_works=no
  5451. for ac_iconv_const in '' 'const'; do
  5452. if test "$cross_compiling" = yes; then :
  5453. case "$host_os" in
  5454. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  5455. *) am_cv_func_iconv_works="guessing yes" ;;
  5456. esac
  5457. else
  5458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5459. /* end confdefs.h. */
  5460. #include <iconv.h>
  5461. #include <string.h>
  5462. #ifndef ICONV_CONST
  5463. # define ICONV_CONST $ac_iconv_const
  5464. #endif
  5465. int
  5466. main ()
  5467. {
  5468. int result = 0;
  5469. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  5470. returns. */
  5471. {
  5472. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  5473. if (cd_utf8_to_88591 != (iconv_t)(-1))
  5474. {
  5475. static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
  5476. char buf[10];
  5477. ICONV_CONST char *inptr = input;
  5478. size_t inbytesleft = strlen (input);
  5479. char *outptr = buf;
  5480. size_t outbytesleft = sizeof (buf);
  5481. size_t res = iconv (cd_utf8_to_88591,
  5482. &inptr, &inbytesleft,
  5483. &outptr, &outbytesleft);
  5484. if (res == 0)
  5485. result |= 1;
  5486. iconv_close (cd_utf8_to_88591);
  5487. }
  5488. }
  5489. /* Test against Solaris 10 bug: Failures are not distinguishable from
  5490. successful returns. */
  5491. {
  5492. iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  5493. if (cd_ascii_to_88591 != (iconv_t)(-1))
  5494. {
  5495. static ICONV_CONST char input[] = "\263";
  5496. char buf[10];
  5497. ICONV_CONST char *inptr = input;
  5498. size_t inbytesleft = strlen (input);
  5499. char *outptr = buf;
  5500. size_t outbytesleft = sizeof (buf);
  5501. size_t res = iconv (cd_ascii_to_88591,
  5502. &inptr, &inbytesleft,
  5503. &outptr, &outbytesleft);
  5504. if (res == 0)
  5505. result |= 2;
  5506. iconv_close (cd_ascii_to_88591);
  5507. }
  5508. }
  5509. /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
  5510. {
  5511. iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
  5512. if (cd_88591_to_utf8 != (iconv_t)(-1))
  5513. {
  5514. static ICONV_CONST char input[] = "\304";
  5515. static char buf[2] = { (char)0xDE, (char)0xAD };
  5516. ICONV_CONST char *inptr = input;
  5517. size_t inbytesleft = 1;
  5518. char *outptr = buf;
  5519. size_t outbytesleft = 1;
  5520. size_t res = iconv (cd_88591_to_utf8,
  5521. &inptr, &inbytesleft,
  5522. &outptr, &outbytesleft);
  5523. if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
  5524. result |= 4;
  5525. iconv_close (cd_88591_to_utf8);
  5526. }
  5527. }
  5528. #if 0 /* This bug could be worked around by the caller. */
  5529. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  5530. {
  5531. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  5532. if (cd_88591_to_utf8 != (iconv_t)(-1))
  5533. {
  5534. static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  5535. char buf[50];
  5536. ICONV_CONST char *inptr = input;
  5537. size_t inbytesleft = strlen (input);
  5538. char *outptr = buf;
  5539. size_t outbytesleft = sizeof (buf);
  5540. size_t res = iconv (cd_88591_to_utf8,
  5541. &inptr, &inbytesleft,
  5542. &outptr, &outbytesleft);
  5543. if ((int)res > 0)
  5544. result |= 8;
  5545. iconv_close (cd_88591_to_utf8);
  5546. }
  5547. }
  5548. #endif
  5549. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  5550. provided. */
  5551. if (/* Try standardized names. */
  5552. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  5553. /* Try IRIX, OSF/1 names. */
  5554. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  5555. /* Try AIX names. */
  5556. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  5557. /* Try HP-UX names. */
  5558. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  5559. result |= 16;
  5560. return result;
  5561. ;
  5562. return 0;
  5563. }
  5564. _ACEOF
  5565. if ac_fn_c_try_run "$LINENO"; then :
  5566. am_cv_func_iconv_works=yes
  5567. fi
  5568. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5569. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5570. fi
  5571. test "$am_cv_func_iconv_works" = no || break
  5572. done
  5573. LIBS="$am_save_LIBS"
  5574. fi
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  5576. $as_echo "$am_cv_func_iconv_works" >&6; }
  5577. case "$am_cv_func_iconv_works" in
  5578. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  5579. *) am_func_iconv=yes ;;
  5580. esac
  5581. else
  5582. am_func_iconv=no am_cv_lib_iconv=no
  5583. fi
  5584. if test "$am_func_iconv" = yes; then
  5585. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  5586. fi
  5587. if test "$am_cv_lib_iconv" = yes; then
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  5589. $as_echo_n "checking how to link with libiconv... " >&6; }
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  5591. $as_echo "$LIBICONV" >&6; }
  5592. else
  5593. CPPFLAGS="$am_save_CPPFLAGS"
  5594. LIBICONV=
  5595. LTLIBICONV=
  5596. fi
  5597. use_additional=yes
  5598. acl_save_prefix="$prefix"
  5599. prefix="$acl_final_prefix"
  5600. acl_save_exec_prefix="$exec_prefix"
  5601. exec_prefix="$acl_final_exec_prefix"
  5602. eval additional_includedir=\"$includedir\"
  5603. eval additional_libdir=\"$libdir\"
  5604. exec_prefix="$acl_save_exec_prefix"
  5605. prefix="$acl_save_prefix"
  5606. # Check whether --with-libintl-prefix was given.
  5607. if test "${with_libintl_prefix+set}" = set; then :
  5608. withval=$with_libintl_prefix;
  5609. if test "X$withval" = "Xno"; then
  5610. use_additional=no
  5611. else
  5612. if test "X$withval" = "X"; then
  5613. acl_save_prefix="$prefix"
  5614. prefix="$acl_final_prefix"
  5615. acl_save_exec_prefix="$exec_prefix"
  5616. exec_prefix="$acl_final_exec_prefix"
  5617. eval additional_includedir=\"$includedir\"
  5618. eval additional_libdir=\"$libdir\"
  5619. exec_prefix="$acl_save_exec_prefix"
  5620. prefix="$acl_save_prefix"
  5621. else
  5622. additional_includedir="$withval/include"
  5623. additional_libdir="$withval/$acl_libdirstem"
  5624. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  5625. && ! test -d "$withval/$acl_libdirstem"; then
  5626. additional_libdir="$withval/$acl_libdirstem2"
  5627. fi
  5628. fi
  5629. fi
  5630. fi
  5631. LIBINTL=
  5632. LTLIBINTL=
  5633. INCINTL=
  5634. LIBINTL_PREFIX=
  5635. HAVE_LIBINTL=
  5636. rpathdirs=
  5637. ltrpathdirs=
  5638. names_already_handled=
  5639. names_next_round='intl '
  5640. while test -n "$names_next_round"; do
  5641. names_this_round="$names_next_round"
  5642. names_next_round=
  5643. for name in $names_this_round; do
  5644. already_handled=
  5645. for n in $names_already_handled; do
  5646. if test "$n" = "$name"; then
  5647. already_handled=yes
  5648. break
  5649. fi
  5650. done
  5651. if test -z "$already_handled"; then
  5652. names_already_handled="$names_already_handled $name"
  5653. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  5654. eval value=\"\$HAVE_LIB$uppername\"
  5655. if test -n "$value"; then
  5656. if test "$value" = yes; then
  5657. eval value=\"\$LIB$uppername\"
  5658. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  5659. eval value=\"\$LTLIB$uppername\"
  5660. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  5661. else
  5662. :
  5663. fi
  5664. else
  5665. found_dir=
  5666. found_la=
  5667. found_so=
  5668. found_a=
  5669. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  5670. if test -n "$acl_shlibext"; then
  5671. shrext=".$acl_shlibext" # typically: shrext=.so
  5672. else
  5673. shrext=
  5674. fi
  5675. if test $use_additional = yes; then
  5676. dir="$additional_libdir"
  5677. if test -n "$acl_shlibext"; then
  5678. if test -f "$dir/$libname$shrext"; then
  5679. found_dir="$dir"
  5680. found_so="$dir/$libname$shrext"
  5681. else
  5682. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  5683. ver=`(cd "$dir" && \
  5684. for f in "$libname$shrext".*; do echo "$f"; done \
  5685. | sed -e "s,^$libname$shrext\\\\.,," \
  5686. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  5687. | sed 1q ) 2>/dev/null`
  5688. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  5689. found_dir="$dir"
  5690. found_so="$dir/$libname$shrext.$ver"
  5691. fi
  5692. else
  5693. eval library_names=\"$acl_library_names_spec\"
  5694. for f in $library_names; do
  5695. if test -f "$dir/$f"; then
  5696. found_dir="$dir"
  5697. found_so="$dir/$f"
  5698. break
  5699. fi
  5700. done
  5701. fi
  5702. fi
  5703. fi
  5704. if test "X$found_dir" = "X"; then
  5705. if test -f "$dir/$libname.$acl_libext"; then
  5706. found_dir="$dir"
  5707. found_a="$dir/$libname.$acl_libext"
  5708. fi
  5709. fi
  5710. if test "X$found_dir" != "X"; then
  5711. if test -f "$dir/$libname.la"; then
  5712. found_la="$dir/$libname.la"
  5713. fi
  5714. fi
  5715. fi
  5716. if test "X$found_dir" = "X"; then
  5717. for x in $LDFLAGS $LTLIBINTL; do
  5718. acl_save_prefix="$prefix"
  5719. prefix="$acl_final_prefix"
  5720. acl_save_exec_prefix="$exec_prefix"
  5721. exec_prefix="$acl_final_exec_prefix"
  5722. eval x=\"$x\"
  5723. exec_prefix="$acl_save_exec_prefix"
  5724. prefix="$acl_save_prefix"
  5725. case "$x" in
  5726. -L*)
  5727. dir=`echo "X$x" | sed -e 's/^X-L//'`
  5728. if test -n "$acl_shlibext"; then
  5729. if test -f "$dir/$libname$shrext"; then
  5730. found_dir="$dir"
  5731. found_so="$dir/$libname$shrext"
  5732. else
  5733. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  5734. ver=`(cd "$dir" && \
  5735. for f in "$libname$shrext".*; do echo "$f"; done \
  5736. | sed -e "s,^$libname$shrext\\\\.,," \
  5737. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  5738. | sed 1q ) 2>/dev/null`
  5739. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  5740. found_dir="$dir"
  5741. found_so="$dir/$libname$shrext.$ver"
  5742. fi
  5743. else
  5744. eval library_names=\"$acl_library_names_spec\"
  5745. for f in $library_names; do
  5746. if test -f "$dir/$f"; then
  5747. found_dir="$dir"
  5748. found_so="$dir/$f"
  5749. break
  5750. fi
  5751. done
  5752. fi
  5753. fi
  5754. fi
  5755. if test "X$found_dir" = "X"; then
  5756. if test -f "$dir/$libname.$acl_libext"; then
  5757. found_dir="$dir"
  5758. found_a="$dir/$libname.$acl_libext"
  5759. fi
  5760. fi
  5761. if test "X$found_dir" != "X"; then
  5762. if test -f "$dir/$libname.la"; then
  5763. found_la="$dir/$libname.la"
  5764. fi
  5765. fi
  5766. ;;
  5767. esac
  5768. if test "X$found_dir" != "X"; then
  5769. break
  5770. fi
  5771. done
  5772. fi
  5773. if test "X$found_dir" != "X"; then
  5774. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  5775. if test "X$found_so" != "X"; then
  5776. if test "$enable_rpath" = no \
  5777. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  5778. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  5779. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  5780. else
  5781. haveit=
  5782. for x in $ltrpathdirs; do
  5783. if test "X$x" = "X$found_dir"; then
  5784. haveit=yes
  5785. break
  5786. fi
  5787. done
  5788. if test -z "$haveit"; then
  5789. ltrpathdirs="$ltrpathdirs $found_dir"
  5790. fi
  5791. if test "$acl_hardcode_direct" = yes; then
  5792. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  5793. else
  5794. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  5795. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  5796. haveit=
  5797. for x in $rpathdirs; do
  5798. if test "X$x" = "X$found_dir"; then
  5799. haveit=yes
  5800. break
  5801. fi
  5802. done
  5803. if test -z "$haveit"; then
  5804. rpathdirs="$rpathdirs $found_dir"
  5805. fi
  5806. else
  5807. haveit=
  5808. for x in $LDFLAGS $LIBINTL; do
  5809. acl_save_prefix="$prefix"
  5810. prefix="$acl_final_prefix"
  5811. acl_save_exec_prefix="$exec_prefix"
  5812. exec_prefix="$acl_final_exec_prefix"
  5813. eval x=\"$x\"
  5814. exec_prefix="$acl_save_exec_prefix"
  5815. prefix="$acl_save_prefix"
  5816. if test "X$x" = "X-L$found_dir"; then
  5817. haveit=yes
  5818. break
  5819. fi
  5820. done
  5821. if test -z "$haveit"; then
  5822. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  5823. fi
  5824. if test "$acl_hardcode_minus_L" != no; then
  5825. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  5826. else
  5827. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  5828. fi
  5829. fi
  5830. fi
  5831. fi
  5832. else
  5833. if test "X$found_a" != "X"; then
  5834. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  5835. else
  5836. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  5837. fi
  5838. fi
  5839. additional_includedir=
  5840. case "$found_dir" in
  5841. */$acl_libdirstem | */$acl_libdirstem/)
  5842. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  5843. if test "$name" = 'intl'; then
  5844. LIBINTL_PREFIX="$basedir"
  5845. fi
  5846. additional_includedir="$basedir/include"
  5847. ;;
  5848. */$acl_libdirstem2 | */$acl_libdirstem2/)
  5849. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  5850. if test "$name" = 'intl'; then
  5851. LIBINTL_PREFIX="$basedir"
  5852. fi
  5853. additional_includedir="$basedir/include"
  5854. ;;
  5855. esac
  5856. if test "X$additional_includedir" != "X"; then
  5857. if test "X$additional_includedir" != "X/usr/include"; then
  5858. haveit=
  5859. if test "X$additional_includedir" = "X/usr/local/include"; then
  5860. if test -n "$GCC"; then
  5861. case $host_os in
  5862. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  5863. esac
  5864. fi
  5865. fi
  5866. if test -z "$haveit"; then
  5867. for x in $CPPFLAGS $INCINTL; do
  5868. acl_save_prefix="$prefix"
  5869. prefix="$acl_final_prefix"
  5870. acl_save_exec_prefix="$exec_prefix"
  5871. exec_prefix="$acl_final_exec_prefix"
  5872. eval x=\"$x\"
  5873. exec_prefix="$acl_save_exec_prefix"
  5874. prefix="$acl_save_prefix"
  5875. if test "X$x" = "X-I$additional_includedir"; then
  5876. haveit=yes
  5877. break
  5878. fi
  5879. done
  5880. if test -z "$haveit"; then
  5881. if test -d "$additional_includedir"; then
  5882. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  5883. fi
  5884. fi
  5885. fi
  5886. fi
  5887. fi
  5888. if test -n "$found_la"; then
  5889. save_libdir="$libdir"
  5890. case "$found_la" in
  5891. */* | *\\*) . "$found_la" ;;
  5892. *) . "./$found_la" ;;
  5893. esac
  5894. libdir="$save_libdir"
  5895. for dep in $dependency_libs; do
  5896. case "$dep" in
  5897. -L*)
  5898. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  5899. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  5900. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  5901. haveit=
  5902. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  5903. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  5904. if test -n "$GCC"; then
  5905. case $host_os in
  5906. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  5907. esac
  5908. fi
  5909. fi
  5910. if test -z "$haveit"; then
  5911. haveit=
  5912. for x in $LDFLAGS $LIBINTL; do
  5913. acl_save_prefix="$prefix"
  5914. prefix="$acl_final_prefix"
  5915. acl_save_exec_prefix="$exec_prefix"
  5916. exec_prefix="$acl_final_exec_prefix"
  5917. eval x=\"$x\"
  5918. exec_prefix="$acl_save_exec_prefix"
  5919. prefix="$acl_save_prefix"
  5920. if test "X$x" = "X-L$additional_libdir"; then
  5921. haveit=yes
  5922. break
  5923. fi
  5924. done
  5925. if test -z "$haveit"; then
  5926. if test -d "$additional_libdir"; then
  5927. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  5928. fi
  5929. fi
  5930. haveit=
  5931. for x in $LDFLAGS $LTLIBINTL; do
  5932. acl_save_prefix="$prefix"
  5933. prefix="$acl_final_prefix"
  5934. acl_save_exec_prefix="$exec_prefix"
  5935. exec_prefix="$acl_final_exec_prefix"
  5936. eval x=\"$x\"
  5937. exec_prefix="$acl_save_exec_prefix"
  5938. prefix="$acl_save_prefix"
  5939. if test "X$x" = "X-L$additional_libdir"; then
  5940. haveit=yes
  5941. break
  5942. fi
  5943. done
  5944. if test -z "$haveit"; then
  5945. if test -d "$additional_libdir"; then
  5946. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  5947. fi
  5948. fi
  5949. fi
  5950. fi
  5951. ;;
  5952. -R*)
  5953. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  5954. if test "$enable_rpath" != no; then
  5955. haveit=
  5956. for x in $rpathdirs; do
  5957. if test "X$x" = "X$dir"; then
  5958. haveit=yes
  5959. break
  5960. fi
  5961. done
  5962. if test -z "$haveit"; then
  5963. rpathdirs="$rpathdirs $dir"
  5964. fi
  5965. haveit=
  5966. for x in $ltrpathdirs; do
  5967. if test "X$x" = "X$dir"; then
  5968. haveit=yes
  5969. break
  5970. fi
  5971. done
  5972. if test -z "$haveit"; then
  5973. ltrpathdirs="$ltrpathdirs $dir"
  5974. fi
  5975. fi
  5976. ;;
  5977. -l*)
  5978. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  5979. ;;
  5980. *.la)
  5981. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  5982. ;;
  5983. *)
  5984. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  5985. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  5986. ;;
  5987. esac
  5988. done
  5989. fi
  5990. else
  5991. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  5992. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  5993. fi
  5994. fi
  5995. fi
  5996. done
  5997. done
  5998. if test "X$rpathdirs" != "X"; then
  5999. if test -n "$acl_hardcode_libdir_separator"; then
  6000. alldirs=
  6001. for found_dir in $rpathdirs; do
  6002. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  6003. done
  6004. acl_save_libdir="$libdir"
  6005. libdir="$alldirs"
  6006. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  6007. libdir="$acl_save_libdir"
  6008. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  6009. else
  6010. for found_dir in $rpathdirs; do
  6011. acl_save_libdir="$libdir"
  6012. libdir="$found_dir"
  6013. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  6014. libdir="$acl_save_libdir"
  6015. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  6016. done
  6017. fi
  6018. fi
  6019. if test "X$ltrpathdirs" != "X"; then
  6020. for found_dir in $ltrpathdirs; do
  6021. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  6022. done
  6023. fi
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  6025. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  6026. if eval \${$gt_func_gnugettext_libintl+:} false; then :
  6027. $as_echo_n "(cached) " >&6
  6028. else
  6029. gt_save_CPPFLAGS="$CPPFLAGS"
  6030. CPPFLAGS="$CPPFLAGS $INCINTL"
  6031. gt_save_LIBS="$LIBS"
  6032. LIBS="$LIBS $LIBINTL"
  6033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6034. /* end confdefs.h. */
  6035. #include <libintl.h>
  6036. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  6037. extern int _nl_msg_cat_cntr;
  6038. extern
  6039. #ifdef __cplusplus
  6040. "C"
  6041. #endif
  6042. const char *_nl_expand_alias (const char *);
  6043. #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
  6044. #else
  6045. #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  6046. #endif
  6047. $gt_revision_test_code
  6048. int
  6049. main ()
  6050. {
  6051. bindtextdomain ("", "");
  6052. return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
  6053. ;
  6054. return 0;
  6055. }
  6056. _ACEOF
  6057. if ac_fn_c_try_link "$LINENO"; then :
  6058. eval "$gt_func_gnugettext_libintl=yes"
  6059. else
  6060. eval "$gt_func_gnugettext_libintl=no"
  6061. fi
  6062. rm -f core conftest.err conftest.$ac_objext \
  6063. conftest$ac_exeext conftest.$ac_ext
  6064. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  6065. LIBS="$LIBS $LIBICONV"
  6066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6067. /* end confdefs.h. */
  6068. #include <libintl.h>
  6069. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  6070. extern int _nl_msg_cat_cntr;
  6071. extern
  6072. #ifdef __cplusplus
  6073. "C"
  6074. #endif
  6075. const char *_nl_expand_alias (const char *);
  6076. #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
  6077. #else
  6078. #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  6079. #endif
  6080. $gt_revision_test_code
  6081. int
  6082. main ()
  6083. {
  6084. bindtextdomain ("", "");
  6085. return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
  6086. ;
  6087. return 0;
  6088. }
  6089. _ACEOF
  6090. if ac_fn_c_try_link "$LINENO"; then :
  6091. LIBINTL="$LIBINTL $LIBICONV"
  6092. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  6093. eval "$gt_func_gnugettext_libintl=yes"
  6094. fi
  6095. rm -f core conftest.err conftest.$ac_objext \
  6096. conftest$ac_exeext conftest.$ac_ext
  6097. fi
  6098. CPPFLAGS="$gt_save_CPPFLAGS"
  6099. LIBS="$gt_save_LIBS"
  6100. fi
  6101. eval ac_res=\$$gt_func_gnugettext_libintl
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6103. $as_echo "$ac_res" >&6; }
  6104. fi
  6105. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  6106. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  6107. && test "$PACKAGE" != gettext-runtime \
  6108. && test "$PACKAGE" != gettext-tools; }; then
  6109. gt_use_preinstalled_gnugettext=yes
  6110. else
  6111. LIBINTL=
  6112. LTLIBINTL=
  6113. INCINTL=
  6114. fi
  6115. if test -n "$INTL_MACOSX_LIBS"; then
  6116. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  6117. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  6118. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  6119. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  6120. fi
  6121. fi
  6122. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  6123. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  6124. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6125. else
  6126. USE_NLS=no
  6127. fi
  6128. fi
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  6130. $as_echo_n "checking whether to use NLS... " >&6; }
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  6132. $as_echo "$USE_NLS" >&6; }
  6133. if test "$USE_NLS" = "yes"; then
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  6135. $as_echo_n "checking where the gettext function comes from... " >&6; }
  6136. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  6137. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  6138. gt_source="external libintl"
  6139. else
  6140. gt_source="libc"
  6141. fi
  6142. else
  6143. gt_source="included intl directory"
  6144. fi
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  6146. $as_echo "$gt_source" >&6; }
  6147. fi
  6148. if test "$USE_NLS" = "yes"; then
  6149. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  6150. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  6152. $as_echo_n "checking how to link with libintl... " >&6; }
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  6154. $as_echo "$LIBINTL" >&6; }
  6155. for element in $INCINTL; do
  6156. haveit=
  6157. for x in $CPPFLAGS; do
  6158. acl_save_prefix="$prefix"
  6159. prefix="$acl_final_prefix"
  6160. acl_save_exec_prefix="$exec_prefix"
  6161. exec_prefix="$acl_final_exec_prefix"
  6162. eval x=\"$x\"
  6163. exec_prefix="$acl_save_exec_prefix"
  6164. prefix="$acl_save_prefix"
  6165. if test "X$x" = "X$element"; then
  6166. haveit=yes
  6167. break
  6168. fi
  6169. done
  6170. if test -z "$haveit"; then
  6171. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  6172. fi
  6173. done
  6174. fi
  6175. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  6176. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  6177. fi
  6178. POSUB=po
  6179. fi
  6180. INTLLIBS="$LIBINTL"
  6181. # This prevents the error shown in
  6182. # https://github.com/theimpossibleastronaut/rmw/commit/90200c2df06b16f16b5d21d25c51966c0ee65b23#commitcomment-30291627
  6183. # and https://github.com/theimpossibleastronaut/rmw/issues/21
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  6185. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  6186. # Check whether --enable-maintainer-mode was given.
  6187. if test "${enable_maintainer_mode+set}" = set; then :
  6188. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  6189. else
  6190. USE_MAINTAINER_MODE=no
  6191. fi
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  6193. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  6194. if test $USE_MAINTAINER_MODE = yes; then
  6195. MAINTAINER_MODE_TRUE=
  6196. MAINTAINER_MODE_FALSE='#'
  6197. else
  6198. MAINTAINER_MODE_TRUE='#'
  6199. MAINTAINER_MODE_FALSE=
  6200. fi
  6201. MAINT=$MAINTAINER_MODE_TRUE
  6202. ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile tests/Makefile scripts/Makefile po/Makefile.in"
  6203. ac_config_files="$ac_config_files scripts/m2k-minicom.sh"
  6204. cat >confcache <<\_ACEOF
  6205. # This file is a shell script that caches the results of configure
  6206. # tests run on this system so they can be shared between configure
  6207. # scripts and configure runs, see configure's option --config-cache.
  6208. # It is not useful on other systems. If it contains results you don't
  6209. # want to keep, you may remove or edit it.
  6210. #
  6211. # config.status only pays attention to the cache file if you give it
  6212. # the --recheck option to rerun configure.
  6213. #
  6214. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6215. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6216. # following values.
  6217. _ACEOF
  6218. # The following way of writing the cache mishandles newlines in values,
  6219. # but we know of no workaround that is simple, portable, and efficient.
  6220. # So, we kill variables containing newlines.
  6221. # Ultrix sh set writes to stderr and can't be redirected directly,
  6222. # and sets the high bit in the cache file unless we assign to the vars.
  6223. (
  6224. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6225. eval ac_val=\$$ac_var
  6226. case $ac_val in #(
  6227. *${as_nl}*)
  6228. case $ac_var in #(
  6229. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6230. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6231. esac
  6232. case $ac_var in #(
  6233. _ | IFS | as_nl) ;; #(
  6234. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6235. *) { eval $ac_var=; unset $ac_var;} ;;
  6236. esac ;;
  6237. esac
  6238. done
  6239. (set) 2>&1 |
  6240. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6241. *${as_nl}ac_space=\ *)
  6242. # `set' does not quote correctly, so add quotes: double-quote
  6243. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6244. sed -n \
  6245. "s/'/'\\\\''/g;
  6246. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6247. ;; #(
  6248. *)
  6249. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6250. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6251. ;;
  6252. esac |
  6253. sort
  6254. ) |
  6255. sed '
  6256. /^ac_cv_env_/b end
  6257. t clear
  6258. :clear
  6259. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6260. t end
  6261. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6262. :end' >>confcache
  6263. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6264. if test -w "$cache_file"; then
  6265. if test "x$cache_file" != "x/dev/null"; then
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6267. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6268. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6269. cat confcache >"$cache_file"
  6270. else
  6271. case $cache_file in #(
  6272. */* | ?:*)
  6273. mv -f confcache "$cache_file"$$ &&
  6274. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6275. *)
  6276. mv -f confcache "$cache_file" ;;
  6277. esac
  6278. fi
  6279. fi
  6280. else
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6282. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6283. fi
  6284. fi
  6285. rm -f confcache
  6286. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6287. # Let make expand exec_prefix.
  6288. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6289. DEFS=-DHAVE_CONFIG_H
  6290. ac_libobjs=
  6291. ac_ltlibobjs=
  6292. U=
  6293. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6294. # 1. Remove the extension, and $U if already installed.
  6295. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6296. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6297. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6298. # will be set to the directory where LIBOBJS objects are built.
  6299. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6300. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6301. done
  6302. LIBOBJS=$ac_libobjs
  6303. LTLIBOBJS=$ac_ltlibobjs
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  6305. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  6306. if test -n "$am_sleep_pid"; then
  6307. # Hide warnings about reused PIDs.
  6308. wait $am_sleep_pid 2>/dev/null
  6309. fi
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  6311. $as_echo "done" >&6; }
  6312. if test -n "$EXEEXT"; then
  6313. am__EXEEXT_TRUE=
  6314. am__EXEEXT_FALSE='#'
  6315. else
  6316. am__EXEEXT_TRUE='#'
  6317. am__EXEEXT_FALSE=
  6318. fi
  6319. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  6320. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  6321. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6322. fi
  6323. : "${CONFIG_STATUS=./config.status}"
  6324. ac_write_fail=0
  6325. ac_clean_files_save=$ac_clean_files
  6326. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6328. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6329. as_write_fail=0
  6330. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6331. #! $SHELL
  6332. # Generated by $as_me.
  6333. # Run this file to recreate the current configuration.
  6334. # Compiler output produced by configure, useful for debugging
  6335. # configure, is in config.log if it exists.
  6336. debug=false
  6337. ac_cs_recheck=false
  6338. ac_cs_silent=false
  6339. SHELL=\${CONFIG_SHELL-$SHELL}
  6340. export SHELL
  6341. _ASEOF
  6342. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6343. ## -------------------- ##
  6344. ## M4sh Initialization. ##
  6345. ## -------------------- ##
  6346. # Be more Bourne compatible
  6347. DUALCASE=1; export DUALCASE # for MKS sh
  6348. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6349. emulate sh
  6350. NULLCMD=:
  6351. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6352. # is contrary to our usage. Disable this feature.
  6353. alias -g '${1+"$@"}'='"$@"'
  6354. setopt NO_GLOB_SUBST
  6355. else
  6356. case `(set -o) 2>/dev/null` in #(
  6357. *posix*) :
  6358. set -o posix ;; #(
  6359. *) :
  6360. ;;
  6361. esac
  6362. fi
  6363. as_nl='
  6364. '
  6365. export as_nl
  6366. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6367. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6368. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6369. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6370. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6371. # but without wasting forks for bash or zsh.
  6372. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6373. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6374. as_echo='print -r --'
  6375. as_echo_n='print -rn --'
  6376. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6377. as_echo='printf %s\n'
  6378. as_echo_n='printf %s'
  6379. else
  6380. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6381. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6382. as_echo_n='/usr/ucb/echo -n'
  6383. else
  6384. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6385. as_echo_n_body='eval
  6386. arg=$1;
  6387. case $arg in #(
  6388. *"$as_nl"*)
  6389. expr "X$arg" : "X\\(.*\\)$as_nl";
  6390. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6391. esac;
  6392. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6393. '
  6394. export as_echo_n_body
  6395. as_echo_n='sh -c $as_echo_n_body as_echo'
  6396. fi
  6397. export as_echo_body
  6398. as_echo='sh -c $as_echo_body as_echo'
  6399. fi
  6400. # The user is always right.
  6401. if test "${PATH_SEPARATOR+set}" != set; then
  6402. PATH_SEPARATOR=:
  6403. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6404. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6405. PATH_SEPARATOR=';'
  6406. }
  6407. fi
  6408. # IFS
  6409. # We need space, tab and new line, in precisely that order. Quoting is
  6410. # there to prevent editors from complaining about space-tab.
  6411. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6412. # splitting by setting IFS to empty value.)
  6413. IFS=" "" $as_nl"
  6414. # Find who we are. Look in the path if we contain no directory separator.
  6415. as_myself=
  6416. case $0 in #((
  6417. *[\\/]* ) as_myself=$0 ;;
  6418. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6419. for as_dir in $PATH
  6420. do
  6421. IFS=$as_save_IFS
  6422. test -z "$as_dir" && as_dir=.
  6423. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6424. done
  6425. IFS=$as_save_IFS
  6426. ;;
  6427. esac
  6428. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6429. # in which case we are not to be found in the path.
  6430. if test "x$as_myself" = x; then
  6431. as_myself=$0
  6432. fi
  6433. if test ! -f "$as_myself"; then
  6434. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6435. exit 1
  6436. fi
  6437. # Unset variables that we do not need and which cause bugs (e.g. in
  6438. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6439. # suppresses any "Segmentation fault" message there. '((' could
  6440. # trigger a bug in pdksh 5.2.14.
  6441. for as_var in BASH_ENV ENV MAIL MAILPATH
  6442. do eval test x\${$as_var+set} = xset \
  6443. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6444. done
  6445. PS1='$ '
  6446. PS2='> '
  6447. PS4='+ '
  6448. # NLS nuisances.
  6449. LC_ALL=C
  6450. export LC_ALL
  6451. LANGUAGE=C
  6452. export LANGUAGE
  6453. # CDPATH.
  6454. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6455. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  6456. # ----------------------------------------
  6457. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6458. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6459. # script with STATUS, using 1 if that was 0.
  6460. as_fn_error ()
  6461. {
  6462. as_status=$1; test $as_status -eq 0 && as_status=1
  6463. if test "$4"; then
  6464. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6465. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6466. fi
  6467. $as_echo "$as_me: error: $2" >&2
  6468. as_fn_exit $as_status
  6469. } # as_fn_error
  6470. # as_fn_set_status STATUS
  6471. # -----------------------
  6472. # Set $? to STATUS, without forking.
  6473. as_fn_set_status ()
  6474. {
  6475. return $1
  6476. } # as_fn_set_status
  6477. # as_fn_exit STATUS
  6478. # -----------------
  6479. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6480. as_fn_exit ()
  6481. {
  6482. set +e
  6483. as_fn_set_status $1
  6484. exit $1
  6485. } # as_fn_exit
  6486. # as_fn_unset VAR
  6487. # ---------------
  6488. # Portably unset VAR.
  6489. as_fn_unset ()
  6490. {
  6491. { eval $1=; unset $1;}
  6492. }
  6493. as_unset=as_fn_unset
  6494. # as_fn_append VAR VALUE
  6495. # ----------------------
  6496. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6497. # advantage of any shell optimizations that allow amortized linear growth over
  6498. # repeated appends, instead of the typical quadratic growth present in naive
  6499. # implementations.
  6500. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6501. eval 'as_fn_append ()
  6502. {
  6503. eval $1+=\$2
  6504. }'
  6505. else
  6506. as_fn_append ()
  6507. {
  6508. eval $1=\$$1\$2
  6509. }
  6510. fi # as_fn_append
  6511. # as_fn_arith ARG...
  6512. # ------------------
  6513. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6514. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6515. # must be portable across $(()) and expr.
  6516. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6517. eval 'as_fn_arith ()
  6518. {
  6519. as_val=$(( $* ))
  6520. }'
  6521. else
  6522. as_fn_arith ()
  6523. {
  6524. as_val=`expr "$@" || test $? -eq 1`
  6525. }
  6526. fi # as_fn_arith
  6527. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6528. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6529. as_expr=expr
  6530. else
  6531. as_expr=false
  6532. fi
  6533. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6534. as_basename=basename
  6535. else
  6536. as_basename=false
  6537. fi
  6538. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6539. as_dirname=dirname
  6540. else
  6541. as_dirname=false
  6542. fi
  6543. as_me=`$as_basename -- "$0" ||
  6544. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6545. X"$0" : 'X\(//\)$' \| \
  6546. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6547. $as_echo X/"$0" |
  6548. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6549. s//\1/
  6550. q
  6551. }
  6552. /^X\/\(\/\/\)$/{
  6553. s//\1/
  6554. q
  6555. }
  6556. /^X\/\(\/\).*/{
  6557. s//\1/
  6558. q
  6559. }
  6560. s/.*/./; q'`
  6561. # Avoid depending upon Character Ranges.
  6562. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6563. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6564. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6565. as_cr_digits='0123456789'
  6566. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6567. ECHO_C= ECHO_N= ECHO_T=
  6568. case `echo -n x` in #(((((
  6569. -n*)
  6570. case `echo 'xy\c'` in
  6571. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6572. xy) ECHO_C='\c';;
  6573. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6574. ECHO_T=' ';;
  6575. esac;;
  6576. *)
  6577. ECHO_N='-n';;
  6578. esac
  6579. rm -f conf$$ conf$$.exe conf$$.file
  6580. if test -d conf$$.dir; then
  6581. rm -f conf$$.dir/conf$$.file
  6582. else
  6583. rm -f conf$$.dir
  6584. mkdir conf$$.dir 2>/dev/null
  6585. fi
  6586. if (echo >conf$$.file) 2>/dev/null; then
  6587. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6588. as_ln_s='ln -s'
  6589. # ... but there are two gotchas:
  6590. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6591. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6592. # In both cases, we have to default to `cp -pR'.
  6593. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6594. as_ln_s='cp -pR'
  6595. elif ln conf$$.file conf$$ 2>/dev/null; then
  6596. as_ln_s=ln
  6597. else
  6598. as_ln_s='cp -pR'
  6599. fi
  6600. else
  6601. as_ln_s='cp -pR'
  6602. fi
  6603. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6604. rmdir conf$$.dir 2>/dev/null
  6605. # as_fn_mkdir_p
  6606. # -------------
  6607. # Create "$as_dir" as a directory, including parents if necessary.
  6608. as_fn_mkdir_p ()
  6609. {
  6610. case $as_dir in #(
  6611. -*) as_dir=./$as_dir;;
  6612. esac
  6613. test -d "$as_dir" || eval $as_mkdir_p || {
  6614. as_dirs=
  6615. while :; do
  6616. case $as_dir in #(
  6617. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6618. *) as_qdir=$as_dir;;
  6619. esac
  6620. as_dirs="'$as_qdir' $as_dirs"
  6621. as_dir=`$as_dirname -- "$as_dir" ||
  6622. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6623. X"$as_dir" : 'X\(//\)[^/]' \| \
  6624. X"$as_dir" : 'X\(//\)$' \| \
  6625. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6626. $as_echo X"$as_dir" |
  6627. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6628. s//\1/
  6629. q
  6630. }
  6631. /^X\(\/\/\)[^/].*/{
  6632. s//\1/
  6633. q
  6634. }
  6635. /^X\(\/\/\)$/{
  6636. s//\1/
  6637. q
  6638. }
  6639. /^X\(\/\).*/{
  6640. s//\1/
  6641. q
  6642. }
  6643. s/.*/./; q'`
  6644. test -d "$as_dir" && break
  6645. done
  6646. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6647. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6648. } # as_fn_mkdir_p
  6649. if mkdir -p . 2>/dev/null; then
  6650. as_mkdir_p='mkdir -p "$as_dir"'
  6651. else
  6652. test -d ./-p && rmdir ./-p
  6653. as_mkdir_p=false
  6654. fi
  6655. # as_fn_executable_p FILE
  6656. # -----------------------
  6657. # Test if FILE is an executable regular file.
  6658. as_fn_executable_p ()
  6659. {
  6660. test -f "$1" && test -x "$1"
  6661. } # as_fn_executable_p
  6662. as_test_x='test -x'
  6663. as_executable_p=as_fn_executable_p
  6664. # Sed expression to map a string onto a valid CPP name.
  6665. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6666. # Sed expression to map a string onto a valid variable name.
  6667. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6668. exec 6>&1
  6669. ## ----------------------------------- ##
  6670. ## Main body of $CONFIG_STATUS script. ##
  6671. ## ----------------------------------- ##
  6672. _ASEOF
  6673. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6674. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6675. # Save the log message, to keep $0 and so on meaningful, and to
  6676. # report actual input values of CONFIG_FILES etc. instead of their
  6677. # values after options handling.
  6678. ac_log="
  6679. This file was extended by modemu2k $as_me 0.0.6, which was
  6680. generated by GNU Autoconf 2.69. Invocation command line was
  6681. CONFIG_FILES = $CONFIG_FILES
  6682. CONFIG_HEADERS = $CONFIG_HEADERS
  6683. CONFIG_LINKS = $CONFIG_LINKS
  6684. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6685. $ $0 $@
  6686. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6687. "
  6688. _ACEOF
  6689. case $ac_config_files in *"
  6690. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6691. esac
  6692. case $ac_config_headers in *"
  6693. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6694. esac
  6695. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6696. # Files that config.status was made for.
  6697. config_files="$ac_config_files"
  6698. config_headers="$ac_config_headers"
  6699. config_commands="$ac_config_commands"
  6700. _ACEOF
  6701. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6702. ac_cs_usage="\
  6703. \`$as_me' instantiates files and other configuration actions
  6704. from templates according to the current configuration. Unless the files
  6705. and actions are specified as TAGs, all are instantiated by default.
  6706. Usage: $0 [OPTION]... [TAG]...
  6707. -h, --help print this help, then exit
  6708. -V, --version print version number and configuration settings, then exit
  6709. --config print configuration, then exit
  6710. -q, --quiet, --silent
  6711. do not print progress messages
  6712. -d, --debug don't remove temporary files
  6713. --recheck update $as_me by reconfiguring in the same conditions
  6714. --file=FILE[:TEMPLATE]
  6715. instantiate the configuration file FILE
  6716. --header=FILE[:TEMPLATE]
  6717. instantiate the configuration header FILE
  6718. Configuration files:
  6719. $config_files
  6720. Configuration headers:
  6721. $config_headers
  6722. Configuration commands:
  6723. $config_commands
  6724. Report bugs to <andy400-dev@yahoo.com>.
  6725. modemu2k home page: <https://github.com/theimpossibleastronaut/modemu2k>."
  6726. _ACEOF
  6727. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6728. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6729. ac_cs_version="\\
  6730. modemu2k config.status 0.0.6
  6731. configured by $0, generated by GNU Autoconf 2.69,
  6732. with options \\"\$ac_cs_config\\"
  6733. Copyright (C) 2012 Free Software Foundation, Inc.
  6734. This config.status script is free software; the Free Software Foundation
  6735. gives unlimited permission to copy, distribute and modify it."
  6736. ac_pwd='$ac_pwd'
  6737. srcdir='$srcdir'
  6738. INSTALL='$INSTALL'
  6739. MKDIR_P='$MKDIR_P'
  6740. AWK='$AWK'
  6741. test -n "\$AWK" || AWK=awk
  6742. _ACEOF
  6743. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6744. # The default lists apply if the user does not specify any file.
  6745. ac_need_defaults=:
  6746. while test $# != 0
  6747. do
  6748. case $1 in
  6749. --*=?*)
  6750. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6751. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6752. ac_shift=:
  6753. ;;
  6754. --*=)
  6755. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6756. ac_optarg=
  6757. ac_shift=:
  6758. ;;
  6759. *)
  6760. ac_option=$1
  6761. ac_optarg=$2
  6762. ac_shift=shift
  6763. ;;
  6764. esac
  6765. case $ac_option in
  6766. # Handling of the options.
  6767. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6768. ac_cs_recheck=: ;;
  6769. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6770. $as_echo "$ac_cs_version"; exit ;;
  6771. --config | --confi | --conf | --con | --co | --c )
  6772. $as_echo "$ac_cs_config"; exit ;;
  6773. --debug | --debu | --deb | --de | --d | -d )
  6774. debug=: ;;
  6775. --file | --fil | --fi | --f )
  6776. $ac_shift
  6777. case $ac_optarg in
  6778. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6779. '') as_fn_error $? "missing file argument" ;;
  6780. esac
  6781. as_fn_append CONFIG_FILES " '$ac_optarg'"
  6782. ac_need_defaults=false;;
  6783. --header | --heade | --head | --hea )
  6784. $ac_shift
  6785. case $ac_optarg in
  6786. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6787. esac
  6788. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  6789. ac_need_defaults=false;;
  6790. --he | --h)
  6791. # Conflict between --help and --header
  6792. as_fn_error $? "ambiguous option: \`$1'
  6793. Try \`$0 --help' for more information.";;
  6794. --help | --hel | -h )
  6795. $as_echo "$ac_cs_usage"; exit ;;
  6796. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6797. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6798. ac_cs_silent=: ;;
  6799. # This is an error.
  6800. -*) as_fn_error $? "unrecognized option: \`$1'
  6801. Try \`$0 --help' for more information." ;;
  6802. *) as_fn_append ac_config_targets " $1"
  6803. ac_need_defaults=false ;;
  6804. esac
  6805. shift
  6806. done
  6807. ac_configure_extra_args=
  6808. if $ac_cs_silent; then
  6809. exec 6>/dev/null
  6810. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6811. fi
  6812. _ACEOF
  6813. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6814. if \$ac_cs_recheck; then
  6815. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6816. shift
  6817. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6818. CONFIG_SHELL='$SHELL'
  6819. export CONFIG_SHELL
  6820. exec "\$@"
  6821. fi
  6822. _ACEOF
  6823. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6824. exec 5>>config.log
  6825. {
  6826. echo
  6827. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6828. ## Running $as_me. ##
  6829. _ASBOX
  6830. $as_echo "$ac_log"
  6831. } >&5
  6832. _ACEOF
  6833. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6834. #
  6835. # INIT-COMMANDS
  6836. #
  6837. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  6838. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  6839. # from automake < 1.5.
  6840. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  6841. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  6842. LINGUAS="${LINGUAS-%UNSET%}"
  6843. _ACEOF
  6844. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6845. # Handling of arguments.
  6846. for ac_config_target in $ac_config_targets
  6847. do
  6848. case $ac_config_target in
  6849. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:config.in" ;;
  6850. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  6851. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6852. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  6853. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  6854. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  6855. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  6856. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  6857. "scripts/m2k-minicom.sh") CONFIG_FILES="$CONFIG_FILES scripts/m2k-minicom.sh" ;;
  6858. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  6859. esac
  6860. done
  6861. # If the user did not use the arguments to specify the items to instantiate,
  6862. # then the envvar interface is used. Set only those that are not.
  6863. # We use the long form for the default assignment because of an extremely
  6864. # bizarre bug on SunOS 4.1.3.
  6865. if $ac_need_defaults; then
  6866. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6867. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  6868. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  6869. fi
  6870. # Have a temporary directory for convenience. Make it in the build tree
  6871. # simply because there is no reason against having it here, and in addition,
  6872. # creating and moving files from /tmp can sometimes cause problems.
  6873. # Hook for its removal unless debugging.
  6874. # Note that there is a small window in which the directory will not be cleaned:
  6875. # after its creation but before its name has been assigned to `$tmp'.
  6876. $debug ||
  6877. {
  6878. tmp= ac_tmp=
  6879. trap 'exit_status=$?
  6880. : "${ac_tmp:=$tmp}"
  6881. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  6882. ' 0
  6883. trap 'as_fn_exit 1' 1 2 13 15
  6884. }
  6885. # Create a (secure) tmp directory for tmp files.
  6886. {
  6887. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6888. test -d "$tmp"
  6889. } ||
  6890. {
  6891. tmp=./conf$$-$RANDOM
  6892. (umask 077 && mkdir "$tmp")
  6893. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6894. ac_tmp=$tmp
  6895. # Set up the scripts for CONFIG_FILES section.
  6896. # No need to generate them if there are no CONFIG_FILES.
  6897. # This happens for instance with `./config.status config.h'.
  6898. if test -n "$CONFIG_FILES"; then
  6899. ac_cr=`echo X | tr X '\015'`
  6900. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  6901. # But we know of no other shell where ac_cr would be empty at this
  6902. # point, so we can use a bashism as a fallback.
  6903. if test "x$ac_cr" = x; then
  6904. eval ac_cr=\$\'\\r\'
  6905. fi
  6906. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  6907. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  6908. ac_cs_awk_cr='\\r'
  6909. else
  6910. ac_cs_awk_cr=$ac_cr
  6911. fi
  6912. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  6913. _ACEOF
  6914. {
  6915. echo "cat >conf$$subs.awk <<_ACEOF" &&
  6916. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  6917. echo "_ACEOF"
  6918. } >conf$$subs.sh ||
  6919. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6920. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  6921. ac_delim='%!_!# '
  6922. for ac_last_try in false false false false false :; do
  6923. . ./conf$$subs.sh ||
  6924. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6925. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  6926. if test $ac_delim_n = $ac_delim_num; then
  6927. break
  6928. elif $ac_last_try; then
  6929. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6930. else
  6931. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6932. fi
  6933. done
  6934. rm -f conf$$subs.sh
  6935. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6936. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  6937. _ACEOF
  6938. sed -n '
  6939. h
  6940. s/^/S["/; s/!.*/"]=/
  6941. p
  6942. g
  6943. s/^[^!]*!//
  6944. :repl
  6945. t repl
  6946. s/'"$ac_delim"'$//
  6947. t delim
  6948. :nl
  6949. h
  6950. s/\(.\{148\}\)..*/\1/
  6951. t more1
  6952. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  6953. p
  6954. n
  6955. b repl
  6956. :more1
  6957. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6958. p
  6959. g
  6960. s/.\{148\}//
  6961. t nl
  6962. :delim
  6963. h
  6964. s/\(.\{148\}\)..*/\1/
  6965. t more2
  6966. s/["\\]/\\&/g; s/^/"/; s/$/"/
  6967. p
  6968. b
  6969. :more2
  6970. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6971. p
  6972. g
  6973. s/.\{148\}//
  6974. t delim
  6975. ' <conf$$subs.awk | sed '
  6976. /^[^""]/{
  6977. N
  6978. s/\n//
  6979. }
  6980. ' >>$CONFIG_STATUS || ac_write_fail=1
  6981. rm -f conf$$subs.awk
  6982. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6983. _ACAWK
  6984. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  6985. for (key in S) S_is_set[key] = 1
  6986. FS = ""
  6987. }
  6988. {
  6989. line = $ 0
  6990. nfields = split(line, field, "@")
  6991. substed = 0
  6992. len = length(field[1])
  6993. for (i = 2; i < nfields; i++) {
  6994. key = field[i]
  6995. keylen = length(key)
  6996. if (S_is_set[key]) {
  6997. value = S[key]
  6998. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  6999. len += length(value) + length(field[++i])
  7000. substed = 1
  7001. } else
  7002. len += 1 + keylen
  7003. }
  7004. print line
  7005. }
  7006. _ACAWK
  7007. _ACEOF
  7008. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7009. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7010. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7011. else
  7012. cat
  7013. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  7014. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7015. _ACEOF
  7016. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7017. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7018. # trailing colons and then remove the whole line if VPATH becomes empty
  7019. # (actually we leave an empty line to preserve line numbers).
  7020. if test "x$srcdir" = x.; then
  7021. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7022. h
  7023. s///
  7024. s/^/:/
  7025. s/[ ]*$/:/
  7026. s/:\$(srcdir):/:/g
  7027. s/:\${srcdir}:/:/g
  7028. s/:@srcdir@:/:/g
  7029. s/^:*//
  7030. s/:*$//
  7031. x
  7032. s/\(=[ ]*\).*/\1/
  7033. G
  7034. s/\n//
  7035. s/^[^=]*=[ ]*$//
  7036. }'
  7037. fi
  7038. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7039. fi # test -n "$CONFIG_FILES"
  7040. # Set up the scripts for CONFIG_HEADERS section.
  7041. # No need to generate them if there are no CONFIG_HEADERS.
  7042. # This happens for instance with `./config.status Makefile'.
  7043. if test -n "$CONFIG_HEADERS"; then
  7044. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  7045. BEGIN {
  7046. _ACEOF
  7047. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7048. # here-document in config.status, that substitutes the proper values into
  7049. # config.h.in to produce config.h.
  7050. # Create a delimiter string that does not exist in confdefs.h, to ease
  7051. # handling of long lines.
  7052. ac_delim='%!_!# '
  7053. for ac_last_try in false false :; do
  7054. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  7055. if test -z "$ac_tt"; then
  7056. break
  7057. elif $ac_last_try; then
  7058. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7059. else
  7060. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7061. fi
  7062. done
  7063. # For the awk script, D is an array of macro values keyed by name,
  7064. # likewise P contains macro parameters if any. Preserve backslash
  7065. # newline sequences.
  7066. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7067. sed -n '
  7068. s/.\{148\}/&'"$ac_delim"'/g
  7069. t rset
  7070. :rset
  7071. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7072. t def
  7073. d
  7074. :def
  7075. s/\\$//
  7076. t bsnl
  7077. s/["\\]/\\&/g
  7078. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7079. D["\1"]=" \3"/p
  7080. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7081. d
  7082. :bsnl
  7083. s/["\\]/\\&/g
  7084. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7085. D["\1"]=" \3\\\\\\n"\\/p
  7086. t cont
  7087. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7088. t cont
  7089. d
  7090. :cont
  7091. n
  7092. s/.\{148\}/&'"$ac_delim"'/g
  7093. t clear
  7094. :clear
  7095. s/\\$//
  7096. t bsnlc
  7097. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7098. d
  7099. :bsnlc
  7100. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7101. b cont
  7102. ' <confdefs.h | sed '
  7103. s/'"$ac_delim"'/"\\\
  7104. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7105. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7106. for (key in D) D_is_set[key] = 1
  7107. FS = ""
  7108. }
  7109. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7110. line = \$ 0
  7111. split(line, arg, " ")
  7112. if (arg[1] == "#") {
  7113. defundef = arg[2]
  7114. mac1 = arg[3]
  7115. } else {
  7116. defundef = substr(arg[1], 2)
  7117. mac1 = arg[2]
  7118. }
  7119. split(mac1, mac2, "(") #)
  7120. macro = mac2[1]
  7121. prefix = substr(line, 1, index(line, defundef) - 1)
  7122. if (D_is_set[macro]) {
  7123. # Preserve the white space surrounding the "#".
  7124. print prefix "define", macro P[macro] D[macro]
  7125. next
  7126. } else {
  7127. # Replace #undef with comments. This is necessary, for example,
  7128. # in the case of _POSIX_SOURCE, which is predefined and required
  7129. # on some systems where configure will not decide to define it.
  7130. if (defundef == "undef") {
  7131. print "/*", prefix defundef, macro, "*/"
  7132. next
  7133. }
  7134. }
  7135. }
  7136. { print }
  7137. _ACAWK
  7138. _ACEOF
  7139. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7140. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7141. fi # test -n "$CONFIG_HEADERS"
  7142. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  7143. shift
  7144. for ac_tag
  7145. do
  7146. case $ac_tag in
  7147. :[FHLC]) ac_mode=$ac_tag; continue;;
  7148. esac
  7149. case $ac_mode$ac_tag in
  7150. :[FHL]*:*);;
  7151. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7152. :[FH]-) ac_tag=-:-;;
  7153. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7154. esac
  7155. ac_save_IFS=$IFS
  7156. IFS=:
  7157. set x $ac_tag
  7158. IFS=$ac_save_IFS
  7159. shift
  7160. ac_file=$1
  7161. shift
  7162. case $ac_mode in
  7163. :L) ac_source=$1;;
  7164. :[FH])
  7165. ac_file_inputs=
  7166. for ac_f
  7167. do
  7168. case $ac_f in
  7169. -) ac_f="$ac_tmp/stdin";;
  7170. *) # Look for the file first in the build tree, then in the source tree
  7171. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7172. # because $ac_f cannot contain `:'.
  7173. test -f "$ac_f" ||
  7174. case $ac_f in
  7175. [\\/$]*) false;;
  7176. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7177. esac ||
  7178. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7179. esac
  7180. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7181. as_fn_append ac_file_inputs " '$ac_f'"
  7182. done
  7183. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7184. # use $as_me), people would be surprised to read:
  7185. # /* config.h. Generated by config.status. */
  7186. configure_input='Generated from '`
  7187. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7188. `' by configure.'
  7189. if test x"$ac_file" != x-; then
  7190. configure_input="$ac_file. $configure_input"
  7191. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7192. $as_echo "$as_me: creating $ac_file" >&6;}
  7193. fi
  7194. # Neutralize special characters interpreted by sed in replacement strings.
  7195. case $configure_input in #(
  7196. *\&* | *\|* | *\\* )
  7197. ac_sed_conf_input=`$as_echo "$configure_input" |
  7198. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7199. *) ac_sed_conf_input=$configure_input;;
  7200. esac
  7201. case $ac_tag in
  7202. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  7203. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7204. esac
  7205. ;;
  7206. esac
  7207. ac_dir=`$as_dirname -- "$ac_file" ||
  7208. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7209. X"$ac_file" : 'X\(//\)[^/]' \| \
  7210. X"$ac_file" : 'X\(//\)$' \| \
  7211. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7212. $as_echo X"$ac_file" |
  7213. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7214. s//\1/
  7215. q
  7216. }
  7217. /^X\(\/\/\)[^/].*/{
  7218. s//\1/
  7219. q
  7220. }
  7221. /^X\(\/\/\)$/{
  7222. s//\1/
  7223. q
  7224. }
  7225. /^X\(\/\).*/{
  7226. s//\1/
  7227. q
  7228. }
  7229. s/.*/./; q'`
  7230. as_dir="$ac_dir"; as_fn_mkdir_p
  7231. ac_builddir=.
  7232. case "$ac_dir" in
  7233. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7234. *)
  7235. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7236. # A ".." for each directory in $ac_dir_suffix.
  7237. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7238. case $ac_top_builddir_sub in
  7239. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7240. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7241. esac ;;
  7242. esac
  7243. ac_abs_top_builddir=$ac_pwd
  7244. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7245. # for backward compatibility:
  7246. ac_top_builddir=$ac_top_build_prefix
  7247. case $srcdir in
  7248. .) # We are building in place.
  7249. ac_srcdir=.
  7250. ac_top_srcdir=$ac_top_builddir_sub
  7251. ac_abs_top_srcdir=$ac_pwd ;;
  7252. [\\/]* | ?:[\\/]* ) # Absolute name.
  7253. ac_srcdir=$srcdir$ac_dir_suffix;
  7254. ac_top_srcdir=$srcdir
  7255. ac_abs_top_srcdir=$srcdir ;;
  7256. *) # Relative name.
  7257. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7258. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7259. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7260. esac
  7261. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7262. case $ac_mode in
  7263. :F)
  7264. #
  7265. # CONFIG_FILE
  7266. #
  7267. case $INSTALL in
  7268. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  7269. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  7270. esac
  7271. ac_MKDIR_P=$MKDIR_P
  7272. case $MKDIR_P in
  7273. [\\/$]* | ?:[\\/]* ) ;;
  7274. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  7275. esac
  7276. _ACEOF
  7277. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7278. # If the template does not know about datarootdir, expand it.
  7279. # FIXME: This hack should be removed a few years after 2.60.
  7280. ac_datarootdir_hack=; ac_datarootdir_seen=
  7281. ac_sed_dataroot='
  7282. /datarootdir/ {
  7283. p
  7284. q
  7285. }
  7286. /@datadir@/p
  7287. /@docdir@/p
  7288. /@infodir@/p
  7289. /@localedir@/p
  7290. /@mandir@/p'
  7291. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7292. *datarootdir*) ac_datarootdir_seen=yes;;
  7293. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7295. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7296. _ACEOF
  7297. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7298. ac_datarootdir_hack='
  7299. s&@datadir@&$datadir&g
  7300. s&@docdir@&$docdir&g
  7301. s&@infodir@&$infodir&g
  7302. s&@localedir@&$localedir&g
  7303. s&@mandir@&$mandir&g
  7304. s&\\\${datarootdir}&$datarootdir&g' ;;
  7305. esac
  7306. _ACEOF
  7307. # Neutralize VPATH when `$srcdir' = `.'.
  7308. # Shell code in configure.ac might set extrasub.
  7309. # FIXME: do we really want to maintain this feature?
  7310. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7311. ac_sed_extra="$ac_vpsub
  7312. $extrasub
  7313. _ACEOF
  7314. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7315. :t
  7316. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7317. s|@configure_input@|$ac_sed_conf_input|;t t
  7318. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7319. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7320. s&@srcdir@&$ac_srcdir&;t t
  7321. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7322. s&@top_srcdir@&$ac_top_srcdir&;t t
  7323. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7324. s&@builddir@&$ac_builddir&;t t
  7325. s&@abs_builddir@&$ac_abs_builddir&;t t
  7326. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7327. s&@INSTALL@&$ac_INSTALL&;t t
  7328. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  7329. $ac_datarootdir_hack
  7330. "
  7331. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  7332. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7333. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7334. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  7335. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  7336. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7338. which seems to be undefined. Please make sure it is defined" >&5
  7339. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7340. which seems to be undefined. Please make sure it is defined" >&2;}
  7341. rm -f "$ac_tmp/stdin"
  7342. case $ac_file in
  7343. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  7344. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  7345. esac \
  7346. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7347. ;;
  7348. :H)
  7349. #
  7350. # CONFIG_HEADER
  7351. #
  7352. if test x"$ac_file" != x-; then
  7353. {
  7354. $as_echo "/* $configure_input */" \
  7355. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  7356. } >"$ac_tmp/config.h" \
  7357. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7358. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7360. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7361. else
  7362. rm -f "$ac_file"
  7363. mv "$ac_tmp/config.h" "$ac_file" \
  7364. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7365. fi
  7366. else
  7367. $as_echo "/* $configure_input */" \
  7368. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  7369. || as_fn_error $? "could not create -" "$LINENO" 5
  7370. fi
  7371. # Compute "$ac_file"'s index in $config_headers.
  7372. _am_arg="$ac_file"
  7373. _am_stamp_count=1
  7374. for _am_header in $config_headers :; do
  7375. case $_am_header in
  7376. $_am_arg | $_am_arg:* )
  7377. break ;;
  7378. * )
  7379. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  7380. esac
  7381. done
  7382. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  7383. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7384. X"$_am_arg" : 'X\(//\)[^/]' \| \
  7385. X"$_am_arg" : 'X\(//\)$' \| \
  7386. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  7387. $as_echo X"$_am_arg" |
  7388. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7389. s//\1/
  7390. q
  7391. }
  7392. /^X\(\/\/\)[^/].*/{
  7393. s//\1/
  7394. q
  7395. }
  7396. /^X\(\/\/\)$/{
  7397. s//\1/
  7398. q
  7399. }
  7400. /^X\(\/\).*/{
  7401. s//\1/
  7402. q
  7403. }
  7404. s/.*/./; q'`/stamp-h$_am_stamp_count
  7405. ;;
  7406. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  7407. $as_echo "$as_me: executing $ac_file commands" >&6;}
  7408. ;;
  7409. esac
  7410. case $ac_file$ac_mode in
  7411. "po-directories":C)
  7412. for ac_file in $CONFIG_FILES; do
  7413. # Support "outfile[:infile[:infile...]]"
  7414. case "$ac_file" in
  7415. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  7416. esac
  7417. # PO directories have a Makefile.in generated from Makefile.in.in.
  7418. case "$ac_file" in */Makefile.in)
  7419. # Adjust a relative srcdir.
  7420. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  7421. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  7422. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  7423. # In autoconf-2.13 it is called $ac_given_srcdir.
  7424. # In autoconf-2.50 it is called $srcdir.
  7425. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  7426. case "$ac_given_srcdir" in
  7427. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  7428. /*) top_srcdir="$ac_given_srcdir" ;;
  7429. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  7430. esac
  7431. # Treat a directory as a PO directory if and only if it has a
  7432. # POTFILES.in file. This allows packages to have multiple PO
  7433. # directories under different names or in different locations.
  7434. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  7435. rm -f "$ac_dir/POTFILES"
  7436. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  7437. gt_tab=`printf '\t'`
  7438. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  7439. POMAKEFILEDEPS="POTFILES.in"
  7440. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  7441. # on $ac_dir but don't depend on user-specified configuration
  7442. # parameters.
  7443. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  7444. # The LINGUAS file contains the set of available languages.
  7445. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  7446. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  7447. fi
  7448. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  7449. # Hide the ALL_LINGUAS assignment from automake < 1.5.
  7450. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  7451. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  7452. else
  7453. # The set of available languages was given in configure.in.
  7454. # Hide the ALL_LINGUAS assignment from automake < 1.5.
  7455. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  7456. fi
  7457. # Compute POFILES
  7458. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  7459. # Compute UPDATEPOFILES
  7460. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  7461. # Compute DUMMYPOFILES
  7462. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  7463. # Compute GMOFILES
  7464. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  7465. case "$ac_given_srcdir" in
  7466. .) srcdirpre= ;;
  7467. *) srcdirpre='$(srcdir)/' ;;
  7468. esac
  7469. POFILES=
  7470. UPDATEPOFILES=
  7471. DUMMYPOFILES=
  7472. GMOFILES=
  7473. for lang in $ALL_LINGUAS; do
  7474. POFILES="$POFILES $srcdirpre$lang.po"
  7475. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  7476. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  7477. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  7478. done
  7479. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  7480. # environment variable.
  7481. INST_LINGUAS=
  7482. if test -n "$ALL_LINGUAS"; then
  7483. for presentlang in $ALL_LINGUAS; do
  7484. useit=no
  7485. if test "%UNSET%" != "$LINGUAS"; then
  7486. desiredlanguages="$LINGUAS"
  7487. else
  7488. desiredlanguages="$ALL_LINGUAS"
  7489. fi
  7490. for desiredlang in $desiredlanguages; do
  7491. # Use the presentlang catalog if desiredlang is
  7492. # a. equal to presentlang, or
  7493. # b. a variant of presentlang (because in this case,
  7494. # presentlang can be used as a fallback for messages
  7495. # which are not translated in the desiredlang catalog).
  7496. case "$desiredlang" in
  7497. "$presentlang"*) useit=yes;;
  7498. esac
  7499. done
  7500. if test $useit = yes; then
  7501. INST_LINGUAS="$INST_LINGUAS $presentlang"
  7502. fi
  7503. done
  7504. fi
  7505. CATALOGS=
  7506. if test -n "$INST_LINGUAS"; then
  7507. for lang in $INST_LINGUAS; do
  7508. CATALOGS="$CATALOGS $lang.gmo"
  7509. done
  7510. fi
  7511. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  7512. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  7513. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  7514. if test -f "$f"; then
  7515. case "$f" in
  7516. *.orig | *.bak | *~) ;;
  7517. *) cat "$f" >> "$ac_dir/Makefile" ;;
  7518. esac
  7519. fi
  7520. done
  7521. fi
  7522. ;;
  7523. esac
  7524. done ;;
  7525. "scripts/m2k-minicom.sh":F) chmod +x scripts/m2k-minicom.sh ;;
  7526. esac
  7527. done # for ac_tag
  7528. as_fn_exit 0
  7529. _ACEOF
  7530. ac_clean_files=$ac_clean_files_save
  7531. test $ac_write_fail = 0 ||
  7532. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7533. # configure is writing to config.log, and then calls config.status.
  7534. # config.status does its own redirection, appending to config.log.
  7535. # Unfortunately, on DOS this fails, as config.log is still kept open
  7536. # by configure, so config.status won't be able to write to it; its
  7537. # output is simply discarded. So we exec the FD to /dev/null,
  7538. # effectively closing config.log, so it can be properly (re)opened and
  7539. # appended to by config.status. When coming back to configure, we
  7540. # need to make the FD available again.
  7541. if test "$no_create" != yes; then
  7542. ac_cs_success=:
  7543. ac_config_status_args=
  7544. test "$silent" = yes &&
  7545. ac_config_status_args="$ac_config_status_args --quiet"
  7546. exec 5>/dev/null
  7547. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7548. exec 5>>config.log
  7549. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7550. # would make configure fail if this is the last instruction.
  7551. $ac_cs_success || as_fn_exit 1
  7552. fi
  7553. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7554. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7555. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7556. fi