LibIRCClient 1.10 Used by Probotic
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

5940 lines
166KB

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