Advertisement
Guest User

minidlna 1.1.0 ./configure

a guest
Apr 10th, 2013
938
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 348.13 KB | None | 0 0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for MiniDLNA 1.1.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14.  
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18. emulate sh
  19. NULLCMD=:
  20. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in #(
  26. *posix*) :
  27. set -o posix ;; #(
  28. *) :
  29. ;;
  30. esac
  31. fi
  32.  
  33.  
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71.  
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80.  
  81.  
  82. # IFS
  83. # We need space, tab and new line, in precisely that order. Quoting is
  84. # there to prevent editors from complaining about space-tab.
  85. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  86. # splitting by setting IFS to empty value.)
  87. IFS=" "" $as_nl"
  88.  
  89. # Find who we are. Look in the path if we contain no directory separator.
  90. as_myself=
  91. case $0 in #((
  92. *[\\/]* ) as_myself=$0 ;;
  93. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  94. for as_dir in $PATH
  95. do
  96. IFS=$as_save_IFS
  97. test -z "$as_dir" && as_dir=.
  98. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  99. done
  100. IFS=$as_save_IFS
  101.  
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  111. exit 1
  112. fi
  113.  
  114. # Unset variables that we do not need and which cause bugs (e.g. in
  115. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  116. # suppresses any "Segmentation fault" message there. '((' could
  117. # trigger a bug in pdksh 5.2.14.
  118. for as_var in BASH_ENV ENV MAIL MAILPATH
  119. do eval test x\${$as_var+set} = xset \
  120. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  121. done
  122. PS1='$ '
  123. PS2='> '
  124. PS4='+ '
  125.  
  126. # NLS nuisances.
  127. LC_ALL=C
  128. export LC_ALL
  129. LANGUAGE=C
  130. export LANGUAGE
  131.  
  132. # CDPATH.
  133. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  134.  
  135. # Use a proper internal environment variable to ensure we don't fall
  136. # into an infinite loop, continuously re-executing ourselves.
  137. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  138. _as_can_reexec=no; export _as_can_reexec;
  139. # We cannot yet assume a decent shell, so we have to provide a
  140. # neutralization value for shells without unset; and this also
  141. # works around shells that cannot unset nonexistent variables.
  142. # Preserve -v and -x to the replacement shell.
  143. BASH_ENV=/dev/null
  144. ENV=/dev/null
  145. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  146. case $- in # ((((
  147. *v*x* | *x*v* ) as_opts=-vx ;;
  148. *v* ) as_opts=-v ;;
  149. *x* ) as_opts=-x ;;
  150. * ) as_opts= ;;
  151. esac
  152. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  153. # Admittedly, this is quite paranoid, since all the known shells bail
  154. # out after a failed `exec'.
  155. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  156. as_fn_exit 255
  157. fi
  158. # We don't want this to propagate to other subprocesses.
  159. { _as_can_reexec=; unset _as_can_reexec;}
  160. if test "x$CONFIG_SHELL" = x; then
  161. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  162. emulate sh
  163. NULLCMD=:
  164. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  165. # is contrary to our usage. Disable this feature.
  166. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  167. setopt NO_GLOB_SUBST
  168. else
  169. case \`(set -o) 2>/dev/null\` in #(
  170. *posix*) :
  171. set -o posix ;; #(
  172. *) :
  173. ;;
  174. esac
  175. fi
  176. "
  177. as_required="as_fn_return () { (exit \$1); }
  178. as_fn_success () { as_fn_return 0; }
  179. as_fn_failure () { as_fn_return 1; }
  180. as_fn_ret_success () { return 0; }
  181. as_fn_ret_failure () { return 1; }
  182.  
  183. exitcode=0
  184. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  185. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  186. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  187. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  188. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  189.  
  190. else
  191. exitcode=1; echo positional parameters were not saved.
  192. fi
  193. test x\$exitcode = x0 || exit 1
  194. test -x / || exit 1"
  195. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  196. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  197. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  198. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  199. test \$(( 1 + 1 )) = 2 || exit 1"
  200. if (eval "$as_required") 2>/dev/null; then :
  201. as_have_required=yes
  202. else
  203. as_have_required=no
  204. fi
  205. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  206.  
  207. else
  208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  209. as_found=false
  210. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  211. do
  212. IFS=$as_save_IFS
  213. test -z "$as_dir" && as_dir=.
  214. as_found=:
  215. case $as_dir in #(
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. # Try only shells that exist, to save several forks.
  219. as_shell=$as_dir/$as_base
  220. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  221. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  222. CONFIG_SHELL=$as_shell as_have_required=yes
  223. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  224. break 2
  225. fi
  226. fi
  227. done;;
  228. esac
  229. as_found=false
  230. done
  231. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  232. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  233. CONFIG_SHELL=$SHELL as_have_required=yes
  234. fi; }
  235. IFS=$as_save_IFS
  236.  
  237.  
  238. if test "x$CONFIG_SHELL" != x; then :
  239. export CONFIG_SHELL
  240. # We cannot yet assume a decent shell, so we have to provide a
  241. # neutralization value for shells without unset; and this also
  242. # works around shells that cannot unset nonexistent variables.
  243. # Preserve -v and -x to the replacement shell.
  244. BASH_ENV=/dev/null
  245. ENV=/dev/null
  246. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  247. case $- in # ((((
  248. *v*x* | *x*v* ) as_opts=-vx ;;
  249. *v* ) as_opts=-v ;;
  250. *x* ) as_opts=-x ;;
  251. * ) as_opts= ;;
  252. esac
  253. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  254. # Admittedly, this is quite paranoid, since all the known shells bail
  255. # out after a failed `exec'.
  256. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  257. exit 255
  258. fi
  259.  
  260. if test x$as_have_required = xno; then :
  261. $as_echo "$0: This script requires a shell more modern than all"
  262. $as_echo "$0: the shells that I found on your system."
  263. if test x${ZSH_VERSION+set} = xset ; then
  264. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  265. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  266. else
  267. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  268. $0: including any error possibly output before this
  269. $0: message. Then install a modern shell, or manually run
  270. $0: the script under such a shell if you do have one."
  271. fi
  272. exit 1
  273. fi
  274. fi
  275. fi
  276. SHELL=${CONFIG_SHELL-/bin/sh}
  277. export SHELL
  278. # Unset more variables known to interfere with behavior of common tools.
  279. CLICOLOR_FORCE= GREP_OPTIONS=
  280. unset CLICOLOR_FORCE GREP_OPTIONS
  281.  
  282. ## --------------------- ##
  283. ## M4sh Shell Functions. ##
  284. ## --------------------- ##
  285. # as_fn_unset VAR
  286. # ---------------
  287. # Portably unset VAR.
  288. as_fn_unset ()
  289. {
  290. { eval $1=; unset $1;}
  291. }
  292. as_unset=as_fn_unset
  293.  
  294. # as_fn_set_status STATUS
  295. # -----------------------
  296. # Set $? to STATUS, without forking.
  297. as_fn_set_status ()
  298. {
  299. return $1
  300. } # as_fn_set_status
  301.  
  302. # as_fn_exit STATUS
  303. # -----------------
  304. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  305. as_fn_exit ()
  306. {
  307. set +e
  308. as_fn_set_status $1
  309. exit $1
  310. } # as_fn_exit
  311.  
  312. # as_fn_mkdir_p
  313. # -------------
  314. # Create "$as_dir" as a directory, including parents if necessary.
  315. as_fn_mkdir_p ()
  316. {
  317.  
  318. case $as_dir in #(
  319. -*) as_dir=./$as_dir;;
  320. esac
  321. test -d "$as_dir" || eval $as_mkdir_p || {
  322. as_dirs=
  323. while :; do
  324. case $as_dir in #(
  325. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  326. *) as_qdir=$as_dir;;
  327. esac
  328. as_dirs="'$as_qdir' $as_dirs"
  329. as_dir=`$as_dirname -- "$as_dir" ||
  330. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  331. X"$as_dir" : 'X\(//\)[^/]' \| \
  332. X"$as_dir" : 'X\(//\)$' \| \
  333. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  334. $as_echo X"$as_dir" |
  335. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  336. s//\1/
  337. q
  338. }
  339. /^X\(\/\/\)[^/].*/{
  340. s//\1/
  341. q
  342. }
  343. /^X\(\/\/\)$/{
  344. s//\1/
  345. q
  346. }
  347. /^X\(\/\).*/{
  348. s//\1/
  349. q
  350. }
  351. s/.*/./; q'`
  352. test -d "$as_dir" && break
  353. done
  354. test -z "$as_dirs" || eval "mkdir $as_dirs"
  355. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  356.  
  357.  
  358. } # as_fn_mkdir_p
  359.  
  360. # as_fn_executable_p FILE
  361. # -----------------------
  362. # Test if FILE is an executable regular file.
  363. as_fn_executable_p ()
  364. {
  365. test -f "$1" && test -x "$1"
  366. } # as_fn_executable_p
  367. # as_fn_append VAR VALUE
  368. # ----------------------
  369. # Append the text in VALUE to the end of the definition contained in VAR. Take
  370. # advantage of any shell optimizations that allow amortized linear growth over
  371. # repeated appends, instead of the typical quadratic growth present in naive
  372. # implementations.
  373. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  374. eval 'as_fn_append ()
  375. {
  376. eval $1+=\$2
  377. }'
  378. else
  379. as_fn_append ()
  380. {
  381. eval $1=\$$1\$2
  382. }
  383. fi # as_fn_append
  384.  
  385. # as_fn_arith ARG...
  386. # ------------------
  387. # Perform arithmetic evaluation on the ARGs, and store the result in the
  388. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  389. # must be portable across $(()) and expr.
  390. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  391. eval 'as_fn_arith ()
  392. {
  393. as_val=$(( $* ))
  394. }'
  395. else
  396. as_fn_arith ()
  397. {
  398. as_val=`expr "$@" || test $? -eq 1`
  399. }
  400. fi # as_fn_arith
  401.  
  402.  
  403. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  404. # ----------------------------------------
  405. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  406. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  407. # script with STATUS, using 1 if that was 0.
  408. as_fn_error ()
  409. {
  410. as_status=$1; test $as_status -eq 0 && as_status=1
  411. if test "$4"; then
  412. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  413. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  414. fi
  415. $as_echo "$as_me: error: $2" >&2
  416. as_fn_exit $as_status
  417. } # as_fn_error
  418.  
  419. if expr a : '\(a\)' >/dev/null 2>&1 &&
  420. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  421. as_expr=expr
  422. else
  423. as_expr=false
  424. fi
  425.  
  426. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  427. as_basename=basename
  428. else
  429. as_basename=false
  430. fi
  431.  
  432. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  433. as_dirname=dirname
  434. else
  435. as_dirname=false
  436. fi
  437.  
  438. as_me=`$as_basename -- "$0" ||
  439. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  440. X"$0" : 'X\(//\)$' \| \
  441. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  442. $as_echo X/"$0" |
  443. sed '/^.*\/\([^/][^/]*\)\/*$/{
  444. s//\1/
  445. q
  446. }
  447. /^X\/\(\/\/\)$/{
  448. s//\1/
  449. q
  450. }
  451. /^X\/\(\/\).*/{
  452. s//\1/
  453. q
  454. }
  455. s/.*/./; q'`
  456.  
  457. # Avoid depending upon Character Ranges.
  458. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  459. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  460. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  461. as_cr_digits='0123456789'
  462. as_cr_alnum=$as_cr_Letters$as_cr_digits
  463.  
  464.  
  465. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  466. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  467. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  468. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  469. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  470. sed -n '
  471. p
  472. /[$]LINENO/=
  473. ' <$as_myself |
  474. sed '
  475. s/[$]LINENO.*/&-/
  476. t lineno
  477. b
  478. :lineno
  479. N
  480. :loop
  481. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  482. t loop
  483. s/-\n.*//
  484. ' >$as_me.lineno &&
  485. chmod +x "$as_me.lineno" ||
  486. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  487.  
  488. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  489. # already done that, so ensure we don't try to do so again and fall
  490. # in an infinite loop. This has already happened in practice.
  491. _as_can_reexec=no; export _as_can_reexec
  492. # Don't try to exec as it changes $[0], causing all sort of problems
  493. # (the dirname of $[0] is not the place where we might find the
  494. # original and so on. Autoconf is especially sensitive to this).
  495. . "./$as_me.lineno"
  496. # Exit status is that of the last command.
  497. exit
  498. }
  499.  
  500. ECHO_C= ECHO_N= ECHO_T=
  501. case `echo -n x` in #(((((
  502. -n*)
  503. case `echo 'xy\c'` in
  504. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  505. xy) ECHO_C='\c';;
  506. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  507. ECHO_T=' ';;
  508. esac;;
  509. *)
  510. ECHO_N='-n';;
  511. esac
  512.  
  513. rm -f conf$$ conf$$.exe conf$$.file
  514. if test -d conf$$.dir; then
  515. rm -f conf$$.dir/conf$$.file
  516. else
  517. rm -f conf$$.dir
  518. mkdir conf$$.dir 2>/dev/null
  519. fi
  520. if (echo >conf$$.file) 2>/dev/null; then
  521. if ln -s conf$$.file conf$$ 2>/dev/null; then
  522. as_ln_s='ln -s'
  523. # ... but there are two gotchas:
  524. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  525. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  526. # In both cases, we have to default to `cp -pR'.
  527. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  528. as_ln_s='cp -pR'
  529. elif ln conf$$.file conf$$ 2>/dev/null; then
  530. as_ln_s=ln
  531. else
  532. as_ln_s='cp -pR'
  533. fi
  534. else
  535. as_ln_s='cp -pR'
  536. fi
  537. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  538. rmdir conf$$.dir 2>/dev/null
  539.  
  540. if mkdir -p . 2>/dev/null; then
  541. as_mkdir_p='mkdir -p "$as_dir"'
  542. else
  543. test -d ./-p && rmdir ./-p
  544. as_mkdir_p=false
  545. fi
  546.  
  547. as_test_x='test -x'
  548. as_executable_p=as_fn_executable_p
  549.  
  550. # Sed expression to map a string onto a valid CPP name.
  551. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  552.  
  553. # Sed expression to map a string onto a valid variable name.
  554. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  555.  
  556.  
  557. test -n "$DJDIR" || exec 7<&0 </dev/null
  558. exec 6>&1
  559.  
  560. # Name of the host.
  561. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  562. # so uname gets run too.
  563. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  564.  
  565. #
  566. # Initializations.
  567. #
  568. ac_default_prefix=/usr/local
  569. ac_clean_files=
  570. ac_config_libobj_dir=.
  571. LIBOBJS=
  572. cross_compiling=no
  573. subdirs=
  574. MFLAGS=
  575. MAKEFLAGS=
  576.  
  577. # Identity of this package.
  578. PACKAGE_NAME='MiniDLNA'
  579. PACKAGE_TARNAME='minidlna'
  580. PACKAGE_VERSION='1.1.0'
  581. PACKAGE_STRING='MiniDLNA 1.1.0'
  582. PACKAGE_BUGREPORT=''
  583. PACKAGE_URL=''
  584.  
  585. # Factoring default headers for most tests.
  586. ac_includes_default="\
  587. #include <stdio.h>
  588. #ifdef HAVE_SYS_TYPES_H
  589. # include <sys/types.h>
  590. #endif
  591. #ifdef HAVE_SYS_STAT_H
  592. # include <sys/stat.h>
  593. #endif
  594. #ifdef STDC_HEADERS
  595. # include <stdlib.h>
  596. # include <stddef.h>
  597. #else
  598. # ifdef HAVE_STDLIB_H
  599. # include <stdlib.h>
  600. # endif
  601. #endif
  602. #ifdef HAVE_STRING_H
  603. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  604. # include <memory.h>
  605. # endif
  606. # include <string.h>
  607. #endif
  608. #ifdef HAVE_STRINGS_H
  609. # include <strings.h>
  610. #endif
  611. #ifdef HAVE_INTTYPES_H
  612. # include <inttypes.h>
  613. #endif
  614. #ifdef HAVE_STDINT_H
  615. # include <stdint.h>
  616. #endif
  617. #ifdef HAVE_UNISTD_H
  618. # include <unistd.h>
  619. #endif"
  620.  
  621. gt_needs=
  622. ac_subst_vars='am__EXEEXT_FALSE
  623. am__EXEEXT_TRUE
  624. LTLIBOBJS
  625. LIBFFMPEGTHUMBNAILER_LIBS
  626. STATIC_LDFLAGS
  627. STATIC_CFLAGS
  628. NEED_VORBIS_FALSE
  629. NEED_VORBIS_TRUE
  630. NEED_OGG_FALSE
  631. NEED_OGG_TRUE
  632. HAVE_FLAC_FALSE
  633. HAVE_FLAC_TRUE
  634. HAVE_VORBISFILE_FALSE
  635. HAVE_VORBISFILE_TRUE
  636. LIBAVUTIL_LIBS
  637. LIBAVFORMAT_LIBS
  638. LIBSQLITE3_LIBS
  639. LIBID3TAG_LIBS
  640. LIBEXIF_LIBS
  641. LIBJPEG_LIBS
  642. LIBOBJS
  643. LN_S
  644. POSUB
  645. LTLIBINTL
  646. LIBINTL
  647. INTLLIBS
  648. INTL_MACOSX_LIBS
  649. XGETTEXT_EXTRA_OPTIONS
  650. MSGMERGE
  651. XGETTEXT_015
  652. XGETTEXT
  653. GMSGFMT_015
  654. MSGFMT_015
  655. GMSGFMT
  656. MSGFMT
  657. GETTEXT_MACRO_VERSION
  658. USE_NLS
  659. LTLIBICONV
  660. LIBICONV
  661. EGREP
  662. GREP
  663. CPP
  664. am__fastdepCC_FALSE
  665. am__fastdepCC_TRUE
  666. CCDEPMODE
  667. am__nodep
  668. AMDEPBACKSLASH
  669. AMDEP_FALSE
  670. AMDEP_TRUE
  671. am__quote
  672. am__include
  673. DEPDIR
  674. OBJEXT
  675. EXEEXT
  676. ac_ct_CC
  677. CPPFLAGS
  678. LDFLAGS
  679. CFLAGS
  680. CC
  681. AM_BACKSLASH
  682. AM_DEFAULT_VERBOSITY
  683. AM_DEFAULT_V
  684. AM_V
  685. am__untar
  686. am__tar
  687. AMTAR
  688. am__leading_dot
  689. SET_MAKE
  690. AWK
  691. mkdir_p
  692. MKDIR_P
  693. INSTALL_STRIP_PROGRAM
  694. STRIP
  695. install_sh
  696. MAKEINFO
  697. AUTOHEADER
  698. AUTOMAKE
  699. AUTOCONF
  700. ACLOCAL
  701. VERSION
  702. PACKAGE
  703. CYGPATH_W
  704. am__isrc
  705. INSTALL_DATA
  706. INSTALL_SCRIPT
  707. INSTALL_PROGRAM
  708. target_os
  709. target_vendor
  710. target_cpu
  711. target
  712. host_os
  713. host_vendor
  714. host_cpu
  715. host
  716. build_os
  717. build_vendor
  718. build_cpu
  719. build
  720. target_alias
  721. host_alias
  722. build_alias
  723. LIBS
  724. ECHO_T
  725. ECHO_N
  726. ECHO_C
  727. DEFS
  728. mandir
  729. localedir
  730. libdir
  731. psdir
  732. pdfdir
  733. dvidir
  734. htmldir
  735. infodir
  736. docdir
  737. oldincludedir
  738. includedir
  739. localstatedir
  740. sharedstatedir
  741. sysconfdir
  742. datadir
  743. datarootdir
  744. libexecdir
  745. sbindir
  746. bindir
  747. program_transform_name
  748. prefix
  749. exec_prefix
  750. PACKAGE_URL
  751. PACKAGE_BUGREPORT
  752. PACKAGE_STRING
  753. PACKAGE_VERSION
  754. PACKAGE_TARNAME
  755. PACKAGE_NAME
  756. PATH_SEPARATOR
  757. SHELL'
  758. ac_subst_files=''
  759. ac_user_opts='
  760. enable_option_checking
  761. enable_silent_rules
  762. enable_dependency_tracking
  763. with_gnu_ld
  764. enable_rpath
  765. with_libiconv_prefix
  766. enable_nls
  767. with_libintl_prefix
  768. with_log_path
  769. with_db_path
  770. with_os_name
  771. with_os_version
  772. with_os_url
  773. enable_tivo
  774. enable_netgear
  775. enable_readynas
  776. enable_static
  777. enable_thumbnail
  778. '
  779. ac_precious_vars='build_alias
  780. host_alias
  781. target_alias
  782. CC
  783. CFLAGS
  784. LDFLAGS
  785. LIBS
  786. CPPFLAGS
  787. CPP'
  788.  
  789.  
  790. # Initialize some variables set by options.
  791. ac_init_help=
  792. ac_init_version=false
  793. ac_unrecognized_opts=
  794. ac_unrecognized_sep=
  795. # The variables have the same names as the options, with
  796. # dashes changed to underlines.
  797. cache_file=/dev/null
  798. exec_prefix=NONE
  799. no_create=
  800. no_recursion=
  801. prefix=NONE
  802. program_prefix=NONE
  803. program_suffix=NONE
  804. program_transform_name=s,x,x,
  805. silent=
  806. site=
  807. srcdir=
  808. verbose=
  809. x_includes=NONE
  810. x_libraries=NONE
  811.  
  812. # Installation directory options.
  813. # These are left unexpanded so users can "make install exec_prefix=/foo"
  814. # and all the variables that are supposed to be based on exec_prefix
  815. # by default will actually change.
  816. # Use braces instead of parens because sh, perl, etc. also accept them.
  817. # (The list follows the same order as the GNU Coding Standards.)
  818. bindir='${exec_prefix}/bin'
  819. sbindir='${exec_prefix}/sbin'
  820. libexecdir='${exec_prefix}/libexec'
  821. datarootdir='${prefix}/share'
  822. datadir='${datarootdir}'
  823. sysconfdir='${prefix}/etc'
  824. sharedstatedir='${prefix}/com'
  825. localstatedir='${prefix}/var'
  826. includedir='${prefix}/include'
  827. oldincludedir='/usr/include'
  828. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  829. infodir='${datarootdir}/info'
  830. htmldir='${docdir}'
  831. dvidir='${docdir}'
  832. pdfdir='${docdir}'
  833. psdir='${docdir}'
  834. libdir='${exec_prefix}/lib'
  835. localedir='${datarootdir}/locale'
  836. mandir='${datarootdir}/man'
  837.  
  838. ac_prev=
  839. ac_dashdash=
  840. for ac_option
  841. do
  842. # If the previous option needs an argument, assign it.
  843. if test -n "$ac_prev"; then
  844. eval $ac_prev=\$ac_option
  845. ac_prev=
  846. continue
  847. fi
  848.  
  849. case $ac_option in
  850. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  851. *=) ac_optarg= ;;
  852. *) ac_optarg=yes ;;
  853. esac
  854.  
  855. # Accept the important Cygnus configure options, so we can diagnose typos.
  856.  
  857. case $ac_dashdash$ac_option in
  858. --)
  859. ac_dashdash=yes ;;
  860.  
  861. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  862. ac_prev=bindir ;;
  863. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  864. bindir=$ac_optarg ;;
  865.  
  866. -build | --build | --buil | --bui | --bu)
  867. ac_prev=build_alias ;;
  868. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  869. build_alias=$ac_optarg ;;
  870.  
  871. -cache-file | --cache-file | --cache-fil | --cache-fi \
  872. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  873. ac_prev=cache_file ;;
  874. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  875. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  876. cache_file=$ac_optarg ;;
  877.  
  878. --config-cache | -C)
  879. cache_file=config.cache ;;
  880.  
  881. -datadir | --datadir | --datadi | --datad)
  882. ac_prev=datadir ;;
  883. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  884. datadir=$ac_optarg ;;
  885.  
  886. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  887. | --dataroo | --dataro | --datar)
  888. ac_prev=datarootdir ;;
  889. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  890. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  891. datarootdir=$ac_optarg ;;
  892.  
  893. -disable-* | --disable-*)
  894. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  895. # Reject names that are not valid shell variable names.
  896. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  897. as_fn_error $? "invalid feature name: $ac_useropt"
  898. ac_useropt_orig=$ac_useropt
  899. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  900. case $ac_user_opts in
  901. *"
  902. "enable_$ac_useropt"
  903. "*) ;;
  904. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  905. ac_unrecognized_sep=', ';;
  906. esac
  907. eval enable_$ac_useropt=no ;;
  908.  
  909. -docdir | --docdir | --docdi | --doc | --do)
  910. ac_prev=docdir ;;
  911. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  912. docdir=$ac_optarg ;;
  913.  
  914. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  915. ac_prev=dvidir ;;
  916. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  917. dvidir=$ac_optarg ;;
  918.  
  919. -enable-* | --enable-*)
  920. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  921. # Reject names that are not valid shell variable names.
  922. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  923. as_fn_error $? "invalid feature name: $ac_useropt"
  924. ac_useropt_orig=$ac_useropt
  925. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  926. case $ac_user_opts in
  927. *"
  928. "enable_$ac_useropt"
  929. "*) ;;
  930. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  931. ac_unrecognized_sep=', ';;
  932. esac
  933. eval enable_$ac_useropt=\$ac_optarg ;;
  934.  
  935. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  936. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  937. | --exec | --exe | --ex)
  938. ac_prev=exec_prefix ;;
  939. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  940. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  941. | --exec=* | --exe=* | --ex=*)
  942. exec_prefix=$ac_optarg ;;
  943.  
  944. -gas | --gas | --ga | --g)
  945. # Obsolete; use --with-gas.
  946. with_gas=yes ;;
  947.  
  948. -help | --help | --hel | --he | -h)
  949. ac_init_help=long ;;
  950. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  951. ac_init_help=recursive ;;
  952. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  953. ac_init_help=short ;;
  954.  
  955. -host | --host | --hos | --ho)
  956. ac_prev=host_alias ;;
  957. -host=* | --host=* | --hos=* | --ho=*)
  958. host_alias=$ac_optarg ;;
  959.  
  960. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  961. ac_prev=htmldir ;;
  962. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  963. | --ht=*)
  964. htmldir=$ac_optarg ;;
  965.  
  966. -includedir | --includedir | --includedi | --included | --include \
  967. | --includ | --inclu | --incl | --inc)
  968. ac_prev=includedir ;;
  969. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  970. | --includ=* | --inclu=* | --incl=* | --inc=*)
  971. includedir=$ac_optarg ;;
  972.  
  973. -infodir | --infodir | --infodi | --infod | --info | --inf)
  974. ac_prev=infodir ;;
  975. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  976. infodir=$ac_optarg ;;
  977.  
  978. -libdir | --libdir | --libdi | --libd)
  979. ac_prev=libdir ;;
  980. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  981. libdir=$ac_optarg ;;
  982.  
  983. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  984. | --libexe | --libex | --libe)
  985. ac_prev=libexecdir ;;
  986. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  987. | --libexe=* | --libex=* | --libe=*)
  988. libexecdir=$ac_optarg ;;
  989.  
  990. -localedir | --localedir | --localedi | --localed | --locale)
  991. ac_prev=localedir ;;
  992. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  993. localedir=$ac_optarg ;;
  994.  
  995. -localstatedir | --localstatedir | --localstatedi | --localstated \
  996. | --localstate | --localstat | --localsta | --localst | --locals)
  997. ac_prev=localstatedir ;;
  998. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  999. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1000. localstatedir=$ac_optarg ;;
  1001.  
  1002. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1003. ac_prev=mandir ;;
  1004. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1005. mandir=$ac_optarg ;;
  1006.  
  1007. -nfp | --nfp | --nf)
  1008. # Obsolete; use --without-fp.
  1009. with_fp=no ;;
  1010.  
  1011. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1012. | --no-cr | --no-c | -n)
  1013. no_create=yes ;;
  1014.  
  1015. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1016. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1017. no_recursion=yes ;;
  1018.  
  1019. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1020. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1021. | --oldin | --oldi | --old | --ol | --o)
  1022. ac_prev=oldincludedir ;;
  1023. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1024. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1025. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1026. oldincludedir=$ac_optarg ;;
  1027.  
  1028. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1029. ac_prev=prefix ;;
  1030. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1031. prefix=$ac_optarg ;;
  1032.  
  1033. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1034. | --program-pre | --program-pr | --program-p)
  1035. ac_prev=program_prefix ;;
  1036. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1037. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1038. program_prefix=$ac_optarg ;;
  1039.  
  1040. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1041. | --program-suf | --program-su | --program-s)
  1042. ac_prev=program_suffix ;;
  1043. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1044. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1045. program_suffix=$ac_optarg ;;
  1046.  
  1047. -program-transform-name | --program-transform-name \
  1048. | --program-transform-nam | --program-transform-na \
  1049. | --program-transform-n | --program-transform- \
  1050. | --program-transform | --program-transfor \
  1051. | --program-transfo | --program-transf \
  1052. | --program-trans | --program-tran \
  1053. | --progr-tra | --program-tr | --program-t)
  1054. ac_prev=program_transform_name ;;
  1055. -program-transform-name=* | --program-transform-name=* \
  1056. | --program-transform-nam=* | --program-transform-na=* \
  1057. | --program-transform-n=* | --program-transform-=* \
  1058. | --program-transform=* | --program-transfor=* \
  1059. | --program-transfo=* | --program-transf=* \
  1060. | --program-trans=* | --program-tran=* \
  1061. | --progr-tra=* | --program-tr=* | --program-t=*)
  1062. program_transform_name=$ac_optarg ;;
  1063.  
  1064. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1065. ac_prev=pdfdir ;;
  1066. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1067. pdfdir=$ac_optarg ;;
  1068.  
  1069. -psdir | --psdir | --psdi | --psd | --ps)
  1070. ac_prev=psdir ;;
  1071. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1072. psdir=$ac_optarg ;;
  1073.  
  1074. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1075. | -silent | --silent | --silen | --sile | --sil)
  1076. silent=yes ;;
  1077.  
  1078. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1079. ac_prev=sbindir ;;
  1080. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1081. | --sbi=* | --sb=*)
  1082. sbindir=$ac_optarg ;;
  1083.  
  1084. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1085. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1086. | --sharedst | --shareds | --shared | --share | --shar \
  1087. | --sha | --sh)
  1088. ac_prev=sharedstatedir ;;
  1089. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1090. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1091. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1092. | --sha=* | --sh=*)
  1093. sharedstatedir=$ac_optarg ;;
  1094.  
  1095. -site | --site | --sit)
  1096. ac_prev=site ;;
  1097. -site=* | --site=* | --sit=*)
  1098. site=$ac_optarg ;;
  1099.  
  1100. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1101. ac_prev=srcdir ;;
  1102. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1103. srcdir=$ac_optarg ;;
  1104.  
  1105. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1106. | --syscon | --sysco | --sysc | --sys | --sy)
  1107. ac_prev=sysconfdir ;;
  1108. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1109. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1110. sysconfdir=$ac_optarg ;;
  1111.  
  1112. -target | --target | --targe | --targ | --tar | --ta | --t)
  1113. ac_prev=target_alias ;;
  1114. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1115. target_alias=$ac_optarg ;;
  1116.  
  1117. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1118. verbose=yes ;;
  1119.  
  1120. -version | --version | --versio | --versi | --vers | -V)
  1121. ac_init_version=: ;;
  1122.  
  1123. -with-* | --with-*)
  1124. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1125. # Reject names that are not valid shell variable names.
  1126. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1127. as_fn_error $? "invalid package name: $ac_useropt"
  1128. ac_useropt_orig=$ac_useropt
  1129. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1130. case $ac_user_opts in
  1131. *"
  1132. "with_$ac_useropt"
  1133. "*) ;;
  1134. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1135. ac_unrecognized_sep=', ';;
  1136. esac
  1137. eval with_$ac_useropt=\$ac_optarg ;;
  1138.  
  1139. -without-* | --without-*)
  1140. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1141. # Reject names that are not valid shell variable names.
  1142. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1143. as_fn_error $? "invalid package name: $ac_useropt"
  1144. ac_useropt_orig=$ac_useropt
  1145. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1146. case $ac_user_opts in
  1147. *"
  1148. "with_$ac_useropt"
  1149. "*) ;;
  1150. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1151. ac_unrecognized_sep=', ';;
  1152. esac
  1153. eval with_$ac_useropt=no ;;
  1154.  
  1155. --x)
  1156. # Obsolete; use --with-x.
  1157. with_x=yes ;;
  1158.  
  1159. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1160. | --x-incl | --x-inc | --x-in | --x-i)
  1161. ac_prev=x_includes ;;
  1162. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1163. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1164. x_includes=$ac_optarg ;;
  1165.  
  1166. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1167. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1168. ac_prev=x_libraries ;;
  1169. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1170. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1171. x_libraries=$ac_optarg ;;
  1172.  
  1173. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1174. Try \`$0 --help' for more information"
  1175. ;;
  1176.  
  1177. *=*)
  1178. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1179. # Reject names that are not valid shell variable names.
  1180. case $ac_envvar in #(
  1181. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1182. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1183. esac
  1184. eval $ac_envvar=\$ac_optarg
  1185. export $ac_envvar ;;
  1186.  
  1187. *)
  1188. # FIXME: should be removed in autoconf 3.0.
  1189. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1190. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1191. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1192. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1193. ;;
  1194.  
  1195. esac
  1196. done
  1197.  
  1198. if test -n "$ac_prev"; then
  1199. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1200. as_fn_error $? "missing argument to $ac_option"
  1201. fi
  1202.  
  1203. if test -n "$ac_unrecognized_opts"; then
  1204. case $enable_option_checking in
  1205. no) ;;
  1206. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1207. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1208. esac
  1209. fi
  1210.  
  1211. # Check all directory arguments for consistency.
  1212. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1213. datadir sysconfdir sharedstatedir localstatedir includedir \
  1214. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1215. libdir localedir mandir
  1216. do
  1217. eval ac_val=\$$ac_var
  1218. # Remove trailing slashes.
  1219. case $ac_val in
  1220. */ )
  1221. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1222. eval $ac_var=\$ac_val;;
  1223. esac
  1224. # Be sure to have absolute directory names.
  1225. case $ac_val in
  1226. [\\/$]* | ?:[\\/]* ) continue;;
  1227. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1228. esac
  1229. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1230. done
  1231.  
  1232. # There might be people who depend on the old broken behavior: `$host'
  1233. # used to hold the argument of --host etc.
  1234. # FIXME: To remove some day.
  1235. build=$build_alias
  1236. host=$host_alias
  1237. target=$target_alias
  1238.  
  1239. # FIXME: To remove some day.
  1240. if test "x$host_alias" != x; then
  1241. if test "x$build_alias" = x; then
  1242. cross_compiling=maybe
  1243. elif test "x$build_alias" != "x$host_alias"; then
  1244. cross_compiling=yes
  1245. fi
  1246. fi
  1247.  
  1248. ac_tool_prefix=
  1249. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1250.  
  1251. test "$silent" = yes && exec 6>/dev/null
  1252.  
  1253.  
  1254. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1255. ac_ls_di=`ls -di .` &&
  1256. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1257. as_fn_error $? "working directory cannot be determined"
  1258. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1259. as_fn_error $? "pwd does not report name of working directory"
  1260.  
  1261.  
  1262. # Find the source files, if location was not specified.
  1263. if test -z "$srcdir"; then
  1264. ac_srcdir_defaulted=yes
  1265. # Try the directory containing this script, then the parent directory.
  1266. ac_confdir=`$as_dirname -- "$as_myself" ||
  1267. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1268. X"$as_myself" : 'X\(//\)[^/]' \| \
  1269. X"$as_myself" : 'X\(//\)$' \| \
  1270. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1271. $as_echo X"$as_myself" |
  1272. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1273. s//\1/
  1274. q
  1275. }
  1276. /^X\(\/\/\)[^/].*/{
  1277. s//\1/
  1278. q
  1279. }
  1280. /^X\(\/\/\)$/{
  1281. s//\1/
  1282. q
  1283. }
  1284. /^X\(\/\).*/{
  1285. s//\1/
  1286. q
  1287. }
  1288. s/.*/./; q'`
  1289. srcdir=$ac_confdir
  1290. if test ! -r "$srcdir/$ac_unique_file"; then
  1291. srcdir=..
  1292. fi
  1293. else
  1294. ac_srcdir_defaulted=no
  1295. fi
  1296. if test ! -r "$srcdir/$ac_unique_file"; then
  1297. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1298. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1299. fi
  1300. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1301. ac_abs_confdir=`(
  1302. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1303. pwd)`
  1304. # When building in place, set srcdir=.
  1305. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1306. srcdir=.
  1307. fi
  1308. # Remove unnecessary trailing slashes from srcdir.
  1309. # Double slashes in file names in object file debugging info
  1310. # mess up M-x gdb in Emacs.
  1311. case $srcdir in
  1312. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1313. esac
  1314. for ac_var in $ac_precious_vars; do
  1315. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1316. eval ac_env_${ac_var}_value=\$${ac_var}
  1317. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1318. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1319. done
  1320.  
  1321. #
  1322. # Report the --help message.
  1323. #
  1324. if test "$ac_init_help" = "long"; then
  1325. # Omit some internal or obsolete options to make the list less imposing.
  1326. # This message is too long to be a string in the A/UX 3.1 sh.
  1327. cat <<_ACEOF
  1328. \`configure' configures MiniDLNA 1.1.0 to adapt to many kinds of systems.
  1329.  
  1330. Usage: $0 [OPTION]... [VAR=VALUE]...
  1331.  
  1332. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1333. VAR=VALUE. See below for descriptions of some of the useful variables.
  1334.  
  1335. Defaults for the options are specified in brackets.
  1336.  
  1337. Configuration:
  1338. -h, --help display this help and exit
  1339. --help=short display options specific to this package
  1340. --help=recursive display the short help of all the included packages
  1341. -V, --version display version information and exit
  1342. -q, --quiet, --silent do not print \`checking ...' messages
  1343. --cache-file=FILE cache test results in FILE [disabled]
  1344. -C, --config-cache alias for \`--cache-file=config.cache'
  1345. -n, --no-create do not create output files
  1346. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1347.  
  1348. Installation directories:
  1349. --prefix=PREFIX install architecture-independent files in PREFIX
  1350. [$ac_default_prefix]
  1351. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1352. [PREFIX]
  1353.  
  1354. By default, \`make install' will install all the files in
  1355. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1356. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1357. for instance \`--prefix=\$HOME'.
  1358.  
  1359. For better control, use the options below.
  1360.  
  1361. Fine tuning of the installation directories:
  1362. --bindir=DIR user executables [EPREFIX/bin]
  1363. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1364. --libexecdir=DIR program executables [EPREFIX/libexec]
  1365. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1366. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1367. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1368. --libdir=DIR object code libraries [EPREFIX/lib]
  1369. --includedir=DIR C header files [PREFIX/include]
  1370. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1371. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1372. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1373. --infodir=DIR info documentation [DATAROOTDIR/info]
  1374. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1375. --mandir=DIR man documentation [DATAROOTDIR/man]
  1376. --docdir=DIR documentation root [DATAROOTDIR/doc/minidlna]
  1377. --htmldir=DIR html documentation [DOCDIR]
  1378. --dvidir=DIR dvi documentation [DOCDIR]
  1379. --pdfdir=DIR pdf documentation [DOCDIR]
  1380. --psdir=DIR ps documentation [DOCDIR]
  1381. _ACEOF
  1382.  
  1383. cat <<\_ACEOF
  1384.  
  1385. Program names:
  1386. --program-prefix=PREFIX prepend PREFIX to installed program names
  1387. --program-suffix=SUFFIX append SUFFIX to installed program names
  1388. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1389.  
  1390. System types:
  1391. --build=BUILD configure for building on BUILD [guessed]
  1392. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1393. --target=TARGET configure for building compilers for TARGET [HOST]
  1394. _ACEOF
  1395. fi
  1396.  
  1397. if test -n "$ac_init_help"; then
  1398. case $ac_init_help in
  1399. short | recursive ) echo "Configuration of MiniDLNA 1.1.0:";;
  1400. esac
  1401. cat <<\_ACEOF
  1402.  
  1403. Optional Features:
  1404. --disable-option-checking ignore unrecognized --enable/--with options
  1405. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1406. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1407. --enable-silent-rules less verbose build output (undo: `make V=1')
  1408. --disable-silent-rules verbose build output (undo: `make V=0')
  1409. --disable-dependency-tracking speeds up one-time build
  1410. --enable-dependency-tracking do not reject slow dependency extractors
  1411. --disable-rpath do not hardcode runtime library paths
  1412. --disable-nls do not use Native Language Support
  1413. --enable-tivo enable TiVo support
  1414. --enable-netgear enable generic NETGEAR device support
  1415. --enable-readynas enable NETGEAR ReadyNAS support
  1416. --enable-static build a static binary executable
  1417. --enable-thumbnail enable video thumbnail generation using libffmpegthumbnailer
  1418.  
  1419. Optional Packages:
  1420. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1421. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1422. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1423. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1424. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1425. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1426. --without-libintl-prefix don't search for libintl in includedir and libdir
  1427. --with-log-path=PATH Default log path
  1428. --with-db-path=PATH Default DB path
  1429. --with-os-name=NAME OS Name
  1430. --with-os-version=VERS OS Version
  1431. --with-os-url=URL OS URL
  1432.  
  1433. Some influential environment variables:
  1434. CC C compiler command
  1435. CFLAGS C compiler flags
  1436. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1437. nonstandard directory <lib dir>
  1438. LIBS libraries to pass to the linker, e.g. -l<library>
  1439. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1440. you have headers in a nonstandard directory <include dir>
  1441. CPP C preprocessor
  1442.  
  1443. Use these variables to override the choices made by `configure' or to help
  1444. it to find libraries and programs with nonstandard names/locations.
  1445.  
  1446. Report bugs to the package provider.
  1447. _ACEOF
  1448. ac_status=$?
  1449. fi
  1450.  
  1451. if test "$ac_init_help" = "recursive"; then
  1452. # If there are subdirs, report their specific --help.
  1453. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1454. test -d "$ac_dir" ||
  1455. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1456. continue
  1457. ac_builddir=.
  1458.  
  1459. case "$ac_dir" in
  1460. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1461. *)
  1462. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1463. # A ".." for each directory in $ac_dir_suffix.
  1464. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1465. case $ac_top_builddir_sub in
  1466. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1467. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1468. esac ;;
  1469. esac
  1470. ac_abs_top_builddir=$ac_pwd
  1471. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1472. # for backward compatibility:
  1473. ac_top_builddir=$ac_top_build_prefix
  1474.  
  1475. case $srcdir in
  1476. .) # We are building in place.
  1477. ac_srcdir=.
  1478. ac_top_srcdir=$ac_top_builddir_sub
  1479. ac_abs_top_srcdir=$ac_pwd ;;
  1480. [\\/]* | ?:[\\/]* ) # Absolute name.
  1481. ac_srcdir=$srcdir$ac_dir_suffix;
  1482. ac_top_srcdir=$srcdir
  1483. ac_abs_top_srcdir=$srcdir ;;
  1484. *) # Relative name.
  1485. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1486. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1487. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1488. esac
  1489. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1490.  
  1491. cd "$ac_dir" || { ac_status=$?; continue; }
  1492. # Check for guested configure.
  1493. if test -f "$ac_srcdir/configure.gnu"; then
  1494. echo &&
  1495. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1496. elif test -f "$ac_srcdir/configure"; then
  1497. echo &&
  1498. $SHELL "$ac_srcdir/configure" --help=recursive
  1499. else
  1500. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1501. fi || ac_status=$?
  1502. cd "$ac_pwd" || { ac_status=$?; break; }
  1503. done
  1504. fi
  1505.  
  1506. test -n "$ac_init_help" && exit $ac_status
  1507. if $ac_init_version; then
  1508. cat <<\_ACEOF
  1509. MiniDLNA configure 1.1.0
  1510. generated by GNU Autoconf 2.69
  1511.  
  1512. Copyright (C) 2012 Free Software Foundation, Inc.
  1513. This configure script is free software; the Free Software Foundation
  1514. gives unlimited permission to copy, distribute and modify it.
  1515. _ACEOF
  1516. exit
  1517. fi
  1518.  
  1519. ## ------------------------ ##
  1520. ## Autoconf initialization. ##
  1521. ## ------------------------ ##
  1522.  
  1523. # ac_fn_c_try_compile LINENO
  1524. # --------------------------
  1525. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1526. ac_fn_c_try_compile ()
  1527. {
  1528. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1529. rm -f conftest.$ac_objext
  1530. if { { ac_try="$ac_compile"
  1531. case "(($ac_try" in
  1532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1533. *) ac_try_echo=$ac_try;;
  1534. esac
  1535. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1536. $as_echo "$ac_try_echo"; } >&5
  1537. (eval "$ac_compile") 2>conftest.err
  1538. ac_status=$?
  1539. if test -s conftest.err; then
  1540. grep -v '^ *+' conftest.err >conftest.er1
  1541. cat conftest.er1 >&5
  1542. mv -f conftest.er1 conftest.err
  1543. fi
  1544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1545. test $ac_status = 0; } && {
  1546. test -z "$ac_c_werror_flag" ||
  1547. test ! -s conftest.err
  1548. } && test -s conftest.$ac_objext; then :
  1549. ac_retval=0
  1550. else
  1551. $as_echo "$as_me: failed program was:" >&5
  1552. sed 's/^/| /' conftest.$ac_ext >&5
  1553.  
  1554. ac_retval=1
  1555. fi
  1556. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1557. as_fn_set_status $ac_retval
  1558.  
  1559. } # ac_fn_c_try_compile
  1560.  
  1561. # ac_fn_c_try_cpp LINENO
  1562. # ----------------------
  1563. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1564. ac_fn_c_try_cpp ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1568. case "(($ac_try" in
  1569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1570. *) ac_try_echo=$ac_try;;
  1571. esac
  1572. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1573. $as_echo "$ac_try_echo"; } >&5
  1574. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1575. ac_status=$?
  1576. if test -s conftest.err; then
  1577. grep -v '^ *+' conftest.err >conftest.er1
  1578. cat conftest.er1 >&5
  1579. mv -f conftest.er1 conftest.err
  1580. fi
  1581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1582. test $ac_status = 0; } > conftest.i && {
  1583. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1584. test ! -s conftest.err
  1585. }; then :
  1586. ac_retval=0
  1587. else
  1588. $as_echo "$as_me: failed program was:" >&5
  1589. sed 's/^/| /' conftest.$ac_ext >&5
  1590.  
  1591. ac_retval=1
  1592. fi
  1593. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1594. as_fn_set_status $ac_retval
  1595.  
  1596. } # ac_fn_c_try_cpp
  1597.  
  1598. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1599. # -------------------------------------------------------
  1600. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1601. # the include files in INCLUDES and setting the cache variable VAR
  1602. # accordingly.
  1603. ac_fn_c_check_header_mongrel ()
  1604. {
  1605. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1606. if eval \${$3+:} false; then :
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1608. $as_echo_n "checking for $2... " >&6; }
  1609. if eval \${$3+:} false; then :
  1610. $as_echo_n "(cached) " >&6
  1611. fi
  1612. eval ac_res=\$$3
  1613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1614. $as_echo "$ac_res" >&6; }
  1615. else
  1616. # Is the header compilable?
  1617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1618. $as_echo_n "checking $2 usability... " >&6; }
  1619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1620. /* end confdefs.h. */
  1621. $4
  1622. #include <$2>
  1623. _ACEOF
  1624. if ac_fn_c_try_compile "$LINENO"; then :
  1625. ac_header_compiler=yes
  1626. else
  1627. ac_header_compiler=no
  1628. fi
  1629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1631. $as_echo "$ac_header_compiler" >&6; }
  1632.  
  1633. # Is the header present?
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1635. $as_echo_n "checking $2 presence... " >&6; }
  1636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1637. /* end confdefs.h. */
  1638. #include <$2>
  1639. _ACEOF
  1640. if ac_fn_c_try_cpp "$LINENO"; then :
  1641. ac_header_preproc=yes
  1642. else
  1643. ac_header_preproc=no
  1644. fi
  1645. rm -f conftest.err conftest.i conftest.$ac_ext
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1647. $as_echo "$ac_header_preproc" >&6; }
  1648.  
  1649. # So? What about this header?
  1650. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1651. yes:no: )
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1653. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1655. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1656. ;;
  1657. no:yes:* )
  1658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1659. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1660. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1661. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1663. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1665. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1667. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1668. ;;
  1669. esac
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1671. $as_echo_n "checking for $2... " >&6; }
  1672. if eval \${$3+:} false; then :
  1673. $as_echo_n "(cached) " >&6
  1674. else
  1675. eval "$3=\$ac_header_compiler"
  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. fi
  1681. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1682.  
  1683. } # ac_fn_c_check_header_mongrel
  1684.  
  1685. # ac_fn_c_try_run LINENO
  1686. # ----------------------
  1687. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1688. # that executables *can* be run.
  1689. ac_fn_c_try_run ()
  1690. {
  1691. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1692. if { { ac_try="$ac_link"
  1693. case "(($ac_try" in
  1694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1695. *) ac_try_echo=$ac_try;;
  1696. esac
  1697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1698. $as_echo "$ac_try_echo"; } >&5
  1699. (eval "$ac_link") 2>&5
  1700. ac_status=$?
  1701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1702. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1703. { { case "(($ac_try" in
  1704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1705. *) ac_try_echo=$ac_try;;
  1706. esac
  1707. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1708. $as_echo "$ac_try_echo"; } >&5
  1709. (eval "$ac_try") 2>&5
  1710. ac_status=$?
  1711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1712. test $ac_status = 0; }; }; then :
  1713. ac_retval=0
  1714. else
  1715. $as_echo "$as_me: program exited with status $ac_status" >&5
  1716. $as_echo "$as_me: failed program was:" >&5
  1717. sed 's/^/| /' conftest.$ac_ext >&5
  1718.  
  1719. ac_retval=$ac_status
  1720. fi
  1721. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1722. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1723. as_fn_set_status $ac_retval
  1724.  
  1725. } # ac_fn_c_try_run
  1726.  
  1727. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1728. # -------------------------------------------------------
  1729. # Tests whether HEADER exists and can be compiled using the include files in
  1730. # INCLUDES, setting the cache variable VAR accordingly.
  1731. ac_fn_c_check_header_compile ()
  1732. {
  1733. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1735. $as_echo_n "checking for $2... " >&6; }
  1736. if eval \${$3+:} false; then :
  1737. $as_echo_n "(cached) " >&6
  1738. else
  1739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1740. /* end confdefs.h. */
  1741. $4
  1742. #include <$2>
  1743. _ACEOF
  1744. if ac_fn_c_try_compile "$LINENO"; then :
  1745. eval "$3=yes"
  1746. else
  1747. eval "$3=no"
  1748. fi
  1749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1750. fi
  1751. eval ac_res=\$$3
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1753. $as_echo "$ac_res" >&6; }
  1754. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1755.  
  1756. } # ac_fn_c_check_header_compile
  1757.  
  1758. # ac_fn_c_try_link LINENO
  1759. # -----------------------
  1760. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1761. ac_fn_c_try_link ()
  1762. {
  1763. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1764. rm -f conftest.$ac_objext conftest$ac_exeext
  1765. if { { ac_try="$ac_link"
  1766. case "(($ac_try" in
  1767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1768. *) ac_try_echo=$ac_try;;
  1769. esac
  1770. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1771. $as_echo "$ac_try_echo"; } >&5
  1772. (eval "$ac_link") 2>conftest.err
  1773. ac_status=$?
  1774. if test -s conftest.err; then
  1775. grep -v '^ *+' conftest.err >conftest.er1
  1776. cat conftest.er1 >&5
  1777. mv -f conftest.er1 conftest.err
  1778. fi
  1779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1780. test $ac_status = 0; } && {
  1781. test -z "$ac_c_werror_flag" ||
  1782. test ! -s conftest.err
  1783. } && test -s conftest$ac_exeext && {
  1784. test "$cross_compiling" = yes ||
  1785. test -x conftest$ac_exeext
  1786. }; then :
  1787. ac_retval=0
  1788. else
  1789. $as_echo "$as_me: failed program was:" >&5
  1790. sed 's/^/| /' conftest.$ac_ext >&5
  1791.  
  1792. ac_retval=1
  1793. fi
  1794. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1795. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1796. # interfere with the next link command; also delete a directory that is
  1797. # left behind by Apple's compiler. We do this before executing the actions.
  1798. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1799. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1800. as_fn_set_status $ac_retval
  1801.  
  1802. } # ac_fn_c_try_link
  1803.  
  1804. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1805. # -------------------------------------------
  1806. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1807. # variable VAR accordingly.
  1808. ac_fn_c_check_type ()
  1809. {
  1810. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1812. $as_echo_n "checking for $2... " >&6; }
  1813. if eval \${$3+:} false; then :
  1814. $as_echo_n "(cached) " >&6
  1815. else
  1816. eval "$3=no"
  1817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1818. /* end confdefs.h. */
  1819. $4
  1820. int
  1821. main ()
  1822. {
  1823. if (sizeof ($2))
  1824. return 0;
  1825. ;
  1826. return 0;
  1827. }
  1828. _ACEOF
  1829. if ac_fn_c_try_compile "$LINENO"; then :
  1830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h. */
  1832. $4
  1833. int
  1834. main ()
  1835. {
  1836. if (sizeof (($2)))
  1837. return 0;
  1838. ;
  1839. return 0;
  1840. }
  1841. _ACEOF
  1842. if ac_fn_c_try_compile "$LINENO"; then :
  1843.  
  1844. else
  1845. eval "$3=yes"
  1846. fi
  1847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1848. fi
  1849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1850. fi
  1851. eval ac_res=\$$3
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1853. $as_echo "$ac_res" >&6; }
  1854. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1855.  
  1856. } # ac_fn_c_check_type
  1857.  
  1858. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1859. # ------------------------------------
  1860. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1861. # accordingly.
  1862. ac_fn_c_find_uintX_t ()
  1863. {
  1864. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1866. $as_echo_n "checking for uint$2_t... " >&6; }
  1867. if eval \${$3+:} false; then :
  1868. $as_echo_n "(cached) " >&6
  1869. else
  1870. eval "$3=no"
  1871. # Order is important - never check a type that is potentially smaller
  1872. # than half of the expected target width.
  1873. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1874. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1876. /* end confdefs.h. */
  1877. $ac_includes_default
  1878. int
  1879. main ()
  1880. {
  1881. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1882. test_array [0] = 0;
  1883. return test_array [0];
  1884.  
  1885. ;
  1886. return 0;
  1887. }
  1888. _ACEOF
  1889. if ac_fn_c_try_compile "$LINENO"; then :
  1890. case $ac_type in #(
  1891. uint$2_t) :
  1892. eval "$3=yes" ;; #(
  1893. *) :
  1894. eval "$3=\$ac_type" ;;
  1895. esac
  1896. fi
  1897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1898. if eval test \"x\$"$3"\" = x"no"; then :
  1899.  
  1900. else
  1901. break
  1902. fi
  1903. done
  1904. fi
  1905. eval ac_res=\$$3
  1906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1907. $as_echo "$ac_res" >&6; }
  1908. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1909.  
  1910. } # ac_fn_c_find_uintX_t
  1911.  
  1912. # ac_fn_c_find_intX_t LINENO BITS VAR
  1913. # -----------------------------------
  1914. # Finds a signed integer type with width BITS, setting cache variable VAR
  1915. # accordingly.
  1916. ac_fn_c_find_intX_t ()
  1917. {
  1918. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1920. $as_echo_n "checking for int$2_t... " >&6; }
  1921. if eval \${$3+:} false; then :
  1922. $as_echo_n "(cached) " >&6
  1923. else
  1924. eval "$3=no"
  1925. # Order is important - never check a type that is potentially smaller
  1926. # than half of the expected target width.
  1927. for ac_type in int$2_t 'int' 'long int' \
  1928. 'long long int' 'short int' 'signed char'; do
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h. */
  1931. $ac_includes_default
  1932. enum { N = $2 / 2 - 1 };
  1933. int
  1934. main ()
  1935. {
  1936. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1937. test_array [0] = 0;
  1938. return test_array [0];
  1939.  
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. if ac_fn_c_try_compile "$LINENO"; then :
  1945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1946. /* end confdefs.h. */
  1947. $ac_includes_default
  1948. enum { N = $2 / 2 - 1 };
  1949. int
  1950. main ()
  1951. {
  1952. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1953. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1954. test_array [0] = 0;
  1955. return test_array [0];
  1956.  
  1957. ;
  1958. return 0;
  1959. }
  1960. _ACEOF
  1961. if ac_fn_c_try_compile "$LINENO"; then :
  1962.  
  1963. else
  1964. case $ac_type in #(
  1965. int$2_t) :
  1966. eval "$3=yes" ;; #(
  1967. *) :
  1968. eval "$3=\$ac_type" ;;
  1969. esac
  1970. fi
  1971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1972. fi
  1973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1974. if eval test \"x\$"$3"\" = x"no"; then :
  1975.  
  1976. else
  1977. break
  1978. fi
  1979. done
  1980. fi
  1981. eval ac_res=\$$3
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1983. $as_echo "$ac_res" >&6; }
  1984. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1985.  
  1986. } # ac_fn_c_find_intX_t
  1987.  
  1988. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1989. # ----------------------------------------------------
  1990. # Tries to find if the field MEMBER exists in type AGGR, after including
  1991. # INCLUDES, setting cache variable VAR accordingly.
  1992. ac_fn_c_check_member ()
  1993. {
  1994. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1996. $as_echo_n "checking for $2.$3... " >&6; }
  1997. if eval \${$4+:} false; then :
  1998. $as_echo_n "(cached) " >&6
  1999. else
  2000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2001. /* end confdefs.h. */
  2002. $5
  2003. int
  2004. main ()
  2005. {
  2006. static $2 ac_aggr;
  2007. if (ac_aggr.$3)
  2008. return 0;
  2009. ;
  2010. return 0;
  2011. }
  2012. _ACEOF
  2013. if ac_fn_c_try_compile "$LINENO"; then :
  2014. eval "$4=yes"
  2015. else
  2016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2017. /* end confdefs.h. */
  2018. $5
  2019. int
  2020. main ()
  2021. {
  2022. static $2 ac_aggr;
  2023. if (sizeof ac_aggr.$3)
  2024. return 0;
  2025. ;
  2026. return 0;
  2027. }
  2028. _ACEOF
  2029. if ac_fn_c_try_compile "$LINENO"; then :
  2030. eval "$4=yes"
  2031. else
  2032. eval "$4=no"
  2033. fi
  2034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2035. fi
  2036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2037. fi
  2038. eval ac_res=\$$4
  2039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2040. $as_echo "$ac_res" >&6; }
  2041. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2042.  
  2043. } # ac_fn_c_check_member
  2044.  
  2045. # ac_fn_c_check_func LINENO FUNC VAR
  2046. # ----------------------------------
  2047. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2048. ac_fn_c_check_func ()
  2049. {
  2050. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2052. $as_echo_n "checking for $2... " >&6; }
  2053. if eval \${$3+:} false; then :
  2054. $as_echo_n "(cached) " >&6
  2055. else
  2056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2057. /* end confdefs.h. */
  2058. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2059. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2060. #define $2 innocuous_$2
  2061.  
  2062. /* System header to define __stub macros and hopefully few prototypes,
  2063. which can conflict with char $2 (); below.
  2064. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2065. <limits.h> exists even on freestanding compilers. */
  2066.  
  2067. #ifdef __STDC__
  2068. # include <limits.h>
  2069. #else
  2070. # include <assert.h>
  2071. #endif
  2072.  
  2073. #undef $2
  2074.  
  2075. /* Override any GCC internal prototype to avoid an error.
  2076. Use char because int might match the return type of a GCC
  2077. builtin and then its argument prototype would still apply. */
  2078. #ifdef __cplusplus
  2079. extern "C"
  2080. #endif
  2081. char $2 ();
  2082. /* The GNU C library defines this for functions which it implements
  2083. to always fail with ENOSYS. Some functions are actually named
  2084. something starting with __ and the normal name is an alias. */
  2085. #if defined __stub_$2 || defined __stub___$2
  2086. choke me
  2087. #endif
  2088.  
  2089. int
  2090. main ()
  2091. {
  2092. return $2 ();
  2093. ;
  2094. return 0;
  2095. }
  2096. _ACEOF
  2097. if ac_fn_c_try_link "$LINENO"; then :
  2098. eval "$3=yes"
  2099. else
  2100. eval "$3=no"
  2101. fi
  2102. rm -f core conftest.err conftest.$ac_objext \
  2103. conftest$ac_exeext conftest.$ac_ext
  2104. fi
  2105. eval ac_res=\$$3
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2107. $as_echo "$ac_res" >&6; }
  2108. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2109.  
  2110. } # ac_fn_c_check_func
  2111. cat >config.log <<_ACEOF
  2112. This file contains any messages produced by compilers while
  2113. running configure, to aid debugging if configure makes a mistake.
  2114.  
  2115. It was created by MiniDLNA $as_me 1.1.0, which was
  2116. generated by GNU Autoconf 2.69. Invocation command line was
  2117.  
  2118. $ $0 $@
  2119.  
  2120. _ACEOF
  2121. exec 5>>config.log
  2122. {
  2123. cat <<_ASUNAME
  2124. ## --------- ##
  2125. ## Platform. ##
  2126. ## --------- ##
  2127.  
  2128. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2129. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2130. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2131. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2132. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2133.  
  2134. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2135. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2136.  
  2137. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2138. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2139. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2140. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2141. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2142. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2143. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2144.  
  2145. _ASUNAME
  2146.  
  2147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2148. for as_dir in $PATH
  2149. do
  2150. IFS=$as_save_IFS
  2151. test -z "$as_dir" && as_dir=.
  2152. $as_echo "PATH: $as_dir"
  2153. done
  2154. IFS=$as_save_IFS
  2155.  
  2156. } >&5
  2157.  
  2158. cat >&5 <<_ACEOF
  2159.  
  2160.  
  2161. ## ----------- ##
  2162. ## Core tests. ##
  2163. ## ----------- ##
  2164.  
  2165. _ACEOF
  2166.  
  2167.  
  2168. # Keep a trace of the command line.
  2169. # Strip out --no-create and --no-recursion so they do not pile up.
  2170. # Strip out --silent because we don't want to record it for future runs.
  2171. # Also quote any args containing shell meta-characters.
  2172. # Make two passes to allow for proper duplicate-argument suppression.
  2173. ac_configure_args=
  2174. ac_configure_args0=
  2175. ac_configure_args1=
  2176. ac_must_keep_next=false
  2177. for ac_pass in 1 2
  2178. do
  2179. for ac_arg
  2180. do
  2181. case $ac_arg in
  2182. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2183. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2184. | -silent | --silent | --silen | --sile | --sil)
  2185. continue ;;
  2186. *\'*)
  2187. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2188. esac
  2189. case $ac_pass in
  2190. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2191. 2)
  2192. as_fn_append ac_configure_args1 " '$ac_arg'"
  2193. if test $ac_must_keep_next = true; then
  2194. ac_must_keep_next=false # Got value, back to normal.
  2195. else
  2196. case $ac_arg in
  2197. *=* | --config-cache | -C | -disable-* | --disable-* \
  2198. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2199. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2200. | -with-* | --with-* | -without-* | --without-* | --x)
  2201. case "$ac_configure_args0 " in
  2202. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2203. esac
  2204. ;;
  2205. -* ) ac_must_keep_next=true ;;
  2206. esac
  2207. fi
  2208. as_fn_append ac_configure_args " '$ac_arg'"
  2209. ;;
  2210. esac
  2211. done
  2212. done
  2213. { ac_configure_args0=; unset ac_configure_args0;}
  2214. { ac_configure_args1=; unset ac_configure_args1;}
  2215.  
  2216. # When interrupted or exit'd, cleanup temporary files, and complete
  2217. # config.log. We remove comments because anyway the quotes in there
  2218. # would cause problems or look ugly.
  2219. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2220. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2221. trap 'exit_status=$?
  2222. # Save into config.log some information that might help in debugging.
  2223. {
  2224. echo
  2225.  
  2226. $as_echo "## ---------------- ##
  2227. ## Cache variables. ##
  2228. ## ---------------- ##"
  2229. echo
  2230. # The following way of writing the cache mishandles newlines in values,
  2231. (
  2232. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2233. eval ac_val=\$$ac_var
  2234. case $ac_val in #(
  2235. *${as_nl}*)
  2236. case $ac_var in #(
  2237. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2238. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2239. esac
  2240. case $ac_var in #(
  2241. _ | IFS | as_nl) ;; #(
  2242. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2243. *) { eval $ac_var=; unset $ac_var;} ;;
  2244. esac ;;
  2245. esac
  2246. done
  2247. (set) 2>&1 |
  2248. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2249. *${as_nl}ac_space=\ *)
  2250. sed -n \
  2251. "s/'\''/'\''\\\\'\'''\''/g;
  2252. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2253. ;; #(
  2254. *)
  2255. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2256. ;;
  2257. esac |
  2258. sort
  2259. )
  2260. echo
  2261.  
  2262. $as_echo "## ----------------- ##
  2263. ## Output variables. ##
  2264. ## ----------------- ##"
  2265. echo
  2266. for ac_var in $ac_subst_vars
  2267. do
  2268. eval ac_val=\$$ac_var
  2269. case $ac_val in
  2270. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2271. esac
  2272. $as_echo "$ac_var='\''$ac_val'\''"
  2273. done | sort
  2274. echo
  2275.  
  2276. if test -n "$ac_subst_files"; then
  2277. $as_echo "## ------------------- ##
  2278. ## File substitutions. ##
  2279. ## ------------------- ##"
  2280. echo
  2281. for ac_var in $ac_subst_files
  2282. do
  2283. eval ac_val=\$$ac_var
  2284. case $ac_val in
  2285. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2286. esac
  2287. $as_echo "$ac_var='\''$ac_val'\''"
  2288. done | sort
  2289. echo
  2290. fi
  2291.  
  2292. if test -s confdefs.h; then
  2293. $as_echo "## ----------- ##
  2294. ## confdefs.h. ##
  2295. ## ----------- ##"
  2296. echo
  2297. cat confdefs.h
  2298. echo
  2299. fi
  2300. test "$ac_signal" != 0 &&
  2301. $as_echo "$as_me: caught signal $ac_signal"
  2302. $as_echo "$as_me: exit $exit_status"
  2303. } >&5
  2304. rm -f core *.core core.conftest.* &&
  2305. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2306. exit $exit_status
  2307. ' 0
  2308. for ac_signal in 1 2 13 15; do
  2309. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2310. done
  2311. ac_signal=0
  2312.  
  2313. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2314. rm -f -r conftest* confdefs.h
  2315.  
  2316. $as_echo "/* confdefs.h */" > confdefs.h
  2317.  
  2318. # Predefined preprocessor variables.
  2319.  
  2320. cat >>confdefs.h <<_ACEOF
  2321. #define PACKAGE_NAME "$PACKAGE_NAME"
  2322. _ACEOF
  2323.  
  2324. cat >>confdefs.h <<_ACEOF
  2325. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2326. _ACEOF
  2327.  
  2328. cat >>confdefs.h <<_ACEOF
  2329. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2330. _ACEOF
  2331.  
  2332. cat >>confdefs.h <<_ACEOF
  2333. #define PACKAGE_STRING "$PACKAGE_STRING"
  2334. _ACEOF
  2335.  
  2336. cat >>confdefs.h <<_ACEOF
  2337. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2338. _ACEOF
  2339.  
  2340. cat >>confdefs.h <<_ACEOF
  2341. #define PACKAGE_URL "$PACKAGE_URL"
  2342. _ACEOF
  2343.  
  2344.  
  2345. # Let the site file select an alternate cache file if it wants to.
  2346. # Prefer an explicitly selected file to automatically selected ones.
  2347. ac_site_file1=NONE
  2348. ac_site_file2=NONE
  2349. if test -n "$CONFIG_SITE"; then
  2350. # We do not want a PATH search for config.site.
  2351. case $CONFIG_SITE in #((
  2352. -*) ac_site_file1=./$CONFIG_SITE;;
  2353. */*) ac_site_file1=$CONFIG_SITE;;
  2354. *) ac_site_file1=./$CONFIG_SITE;;
  2355. esac
  2356. elif test "x$prefix" != xNONE; then
  2357. ac_site_file1=$prefix/share/config.site
  2358. ac_site_file2=$prefix/etc/config.site
  2359. else
  2360. ac_site_file1=$ac_default_prefix/share/config.site
  2361. ac_site_file2=$ac_default_prefix/etc/config.site
  2362. fi
  2363. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2364. do
  2365. test "x$ac_site_file" = xNONE && continue
  2366. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2368. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2369. sed 's/^/| /' "$ac_site_file" >&5
  2370. . "$ac_site_file" \
  2371. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2372. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2373. as_fn_error $? "failed to load site script $ac_site_file
  2374. See \`config.log' for more details" "$LINENO" 5; }
  2375. fi
  2376. done
  2377.  
  2378. if test -r "$cache_file"; then
  2379. # Some versions of bash will fail to source /dev/null (special files
  2380. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2381. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2383. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2384. case $cache_file in
  2385. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2386. *) . "./$cache_file";;
  2387. esac
  2388. fi
  2389. else
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2391. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2392. >$cache_file
  2393. fi
  2394.  
  2395. gt_needs="$gt_needs "
  2396. # Check that the precious variables saved in the cache have kept the same
  2397. # value.
  2398. ac_cache_corrupted=false
  2399. for ac_var in $ac_precious_vars; do
  2400. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2401. eval ac_new_set=\$ac_env_${ac_var}_set
  2402. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2403. eval ac_new_val=\$ac_env_${ac_var}_value
  2404. case $ac_old_set,$ac_new_set in
  2405. set,)
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2407. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2408. ac_cache_corrupted=: ;;
  2409. ,set)
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2411. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2412. ac_cache_corrupted=: ;;
  2413. ,);;
  2414. *)
  2415. if test "x$ac_old_val" != "x$ac_new_val"; then
  2416. # differences in whitespace do not lead to failure.
  2417. ac_old_val_w=`echo x $ac_old_val`
  2418. ac_new_val_w=`echo x $ac_new_val`
  2419. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2421. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2422. ac_cache_corrupted=:
  2423. else
  2424. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2425. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2426. eval $ac_var=\$ac_old_val
  2427. fi
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2429. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2431. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2432. fi;;
  2433. esac
  2434. # Pass precious variables to config.status.
  2435. if test "$ac_new_set" = set; then
  2436. case $ac_new_val in
  2437. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2438. *) ac_arg=$ac_var=$ac_new_val ;;
  2439. esac
  2440. case " $ac_configure_args " in
  2441. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2442. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2443. esac
  2444. fi
  2445. done
  2446. if $ac_cache_corrupted; then
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2448. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2450. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2451. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2452. fi
  2453. ## -------------------- ##
  2454. ## Main body of script. ##
  2455. ## -------------------- ##
  2456.  
  2457. ac_ext=c
  2458. ac_cpp='$CPP $CPPFLAGS'
  2459. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2460. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2461. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2462.  
  2463.  
  2464. #LT_INIT
  2465.  
  2466. ac_aux_dir=
  2467. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2468. if test -f "$ac_dir/install-sh"; then
  2469. ac_aux_dir=$ac_dir
  2470. ac_install_sh="$ac_aux_dir/install-sh -c"
  2471. break
  2472. elif test -f "$ac_dir/install.sh"; then
  2473. ac_aux_dir=$ac_dir
  2474. ac_install_sh="$ac_aux_dir/install.sh -c"
  2475. break
  2476. elif test -f "$ac_dir/shtool"; then
  2477. ac_aux_dir=$ac_dir
  2478. ac_install_sh="$ac_aux_dir/shtool install -c"
  2479. break
  2480. fi
  2481. done
  2482. if test -z "$ac_aux_dir"; then
  2483. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2484. fi
  2485.  
  2486. # These three variables are undocumented and unsupported,
  2487. # and are intended to be withdrawn in a future Autoconf release.
  2488. # They can cause serious problems if a builder's source tree is in a directory
  2489. # whose full name contains unusual characters.
  2490. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2491. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2492. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2493.  
  2494.  
  2495. # Make sure we can run config.sub.
  2496. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2497. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2498.  
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2500. $as_echo_n "checking build system type... " >&6; }
  2501. if ${ac_cv_build+:} false; then :
  2502. $as_echo_n "(cached) " >&6
  2503. else
  2504. ac_build_alias=$build_alias
  2505. test "x$ac_build_alias" = x &&
  2506. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2507. test "x$ac_build_alias" = x &&
  2508. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2509. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2510. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2511.  
  2512. fi
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2514. $as_echo "$ac_cv_build" >&6; }
  2515. case $ac_cv_build in
  2516. *-*-*) ;;
  2517. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2518. esac
  2519. build=$ac_cv_build
  2520. ac_save_IFS=$IFS; IFS='-'
  2521. set x $ac_cv_build
  2522. shift
  2523. build_cpu=$1
  2524. build_vendor=$2
  2525. shift; shift
  2526. # Remember, the first character of IFS is used to create $*,
  2527. # except with old shells:
  2528. build_os=$*
  2529. IFS=$ac_save_IFS
  2530. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2531.  
  2532.  
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2534. $as_echo_n "checking host system type... " >&6; }
  2535. if ${ac_cv_host+:} false; then :
  2536. $as_echo_n "(cached) " >&6
  2537. else
  2538. if test "x$host_alias" = x; then
  2539. ac_cv_host=$ac_cv_build
  2540. else
  2541. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2542. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2543. fi
  2544.  
  2545. fi
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2547. $as_echo "$ac_cv_host" >&6; }
  2548. case $ac_cv_host in
  2549. *-*-*) ;;
  2550. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2551. esac
  2552. host=$ac_cv_host
  2553. ac_save_IFS=$IFS; IFS='-'
  2554. set x $ac_cv_host
  2555. shift
  2556. host_cpu=$1
  2557. host_vendor=$2
  2558. shift; shift
  2559. # Remember, the first character of IFS is used to create $*,
  2560. # except with old shells:
  2561. host_os=$*
  2562. IFS=$ac_save_IFS
  2563. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2564.  
  2565.  
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2567. $as_echo_n "checking target system type... " >&6; }
  2568. if ${ac_cv_target+:} false; then :
  2569. $as_echo_n "(cached) " >&6
  2570. else
  2571. if test "x$target_alias" = x; then
  2572. ac_cv_target=$ac_cv_host
  2573. else
  2574. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2575. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2576. fi
  2577.  
  2578. fi
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2580. $as_echo "$ac_cv_target" >&6; }
  2581. case $ac_cv_target in
  2582. *-*-*) ;;
  2583. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2584. esac
  2585. target=$ac_cv_target
  2586. ac_save_IFS=$IFS; IFS='-'
  2587. set x $ac_cv_target
  2588. shift
  2589. target_cpu=$1
  2590. target_vendor=$2
  2591. shift; shift
  2592. # Remember, the first character of IFS is used to create $*,
  2593. # except with old shells:
  2594. target_os=$*
  2595. IFS=$ac_save_IFS
  2596. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2597.  
  2598.  
  2599. # The aliases save the names the user supplied, while $host etc.
  2600. # will get canonicalized.
  2601. test -n "$target_alias" &&
  2602. test "$program_prefix$program_suffix$program_transform_name" = \
  2603. NONENONEs,x,x, &&
  2604. program_prefix=${target_alias}-
  2605. am__api_version='1.11'
  2606.  
  2607. # Find a good install program. We prefer a C program (faster),
  2608. # so one script is as good as another. But avoid the broken or
  2609. # incompatible versions:
  2610. # SysV /etc/install, /usr/sbin/install
  2611. # SunOS /usr/etc/install
  2612. # IRIX /sbin/install
  2613. # AIX /bin/install
  2614. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2615. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2616. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2617. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2618. # OS/2's system install, which has a completely different semantic
  2619. # ./install, which can be erroneously created by make from ./install.sh.
  2620. # Reject install programs that cannot install multiple files.
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2622. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2623. if test -z "$INSTALL"; then
  2624. if ${ac_cv_path_install+:} false; then :
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2628. for as_dir in $PATH
  2629. do
  2630. IFS=$as_save_IFS
  2631. test -z "$as_dir" && as_dir=.
  2632. # Account for people who put trailing slashes in PATH elements.
  2633. case $as_dir/ in #((
  2634. ./ | .// | /[cC]/* | \
  2635. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2636. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2637. /usr/ucb/* ) ;;
  2638. *)
  2639. # OSF1 and SCO ODT 3.0 have their own names for install.
  2640. # Don't use installbsd from OSF since it installs stuff as root
  2641. # by default.
  2642. for ac_prog in ginstall scoinst install; do
  2643. for ac_exec_ext in '' $ac_executable_extensions; do
  2644. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2645. if test $ac_prog = install &&
  2646. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2647. # AIX install. It has an incompatible calling convention.
  2648. :
  2649. elif test $ac_prog = install &&
  2650. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2651. # program-specific install script used by HP pwplus--don't use.
  2652. :
  2653. else
  2654. rm -rf conftest.one conftest.two conftest.dir
  2655. echo one > conftest.one
  2656. echo two > conftest.two
  2657. mkdir conftest.dir
  2658. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2659. test -s conftest.one && test -s conftest.two &&
  2660. test -s conftest.dir/conftest.one &&
  2661. test -s conftest.dir/conftest.two
  2662. then
  2663. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2664. break 3
  2665. fi
  2666. fi
  2667. fi
  2668. done
  2669. done
  2670. ;;
  2671. esac
  2672.  
  2673. done
  2674. IFS=$as_save_IFS
  2675.  
  2676. rm -rf conftest.one conftest.two conftest.dir
  2677.  
  2678. fi
  2679. if test "${ac_cv_path_install+set}" = set; then
  2680. INSTALL=$ac_cv_path_install
  2681. else
  2682. # As a last resort, use the slow shell script. Don't cache a
  2683. # value for INSTALL within a source directory, because that will
  2684. # break other packages using the cache if that directory is
  2685. # removed, or if the value is a relative name.
  2686. INSTALL=$ac_install_sh
  2687. fi
  2688. fi
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2690. $as_echo "$INSTALL" >&6; }
  2691.  
  2692. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2693. # It thinks the first close brace ends the variable substitution.
  2694. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2695.  
  2696. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2697.  
  2698. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2699.  
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2701. $as_echo_n "checking whether build environment is sane... " >&6; }
  2702. # Just in case
  2703. sleep 1
  2704. echo timestamp > conftest.file
  2705. # Reject unsafe characters in $srcdir or the absolute working directory
  2706. # name. Accept space and tab only in the latter.
  2707. am_lf='
  2708. '
  2709. case `pwd` in
  2710. *[\\\"\#\$\&\'\`$am_lf]*)
  2711. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2712. esac
  2713. case $srcdir in
  2714. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2715. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2716. esac
  2717.  
  2718. # Do `set' in a subshell so we don't clobber the current shell's
  2719. # arguments. Must try -L first in case configure is actually a
  2720. # symlink; some systems play weird games with the mod time of symlinks
  2721. # (eg FreeBSD returns the mod time of the symlink's containing
  2722. # directory).
  2723. if (
  2724. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2725. if test "$*" = "X"; then
  2726. # -L didn't work.
  2727. set X `ls -t "$srcdir/configure" conftest.file`
  2728. fi
  2729. rm -f conftest.file
  2730. if test "$*" != "X $srcdir/configure conftest.file" \
  2731. && test "$*" != "X conftest.file $srcdir/configure"; then
  2732.  
  2733. # If neither matched, then we have a broken ls. This can happen
  2734. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2735. # broken ls alias from the environment. This has actually
  2736. # happened. Such a system could not be considered "sane".
  2737. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2738. alias in your environment" "$LINENO" 5
  2739. fi
  2740.  
  2741. test "$2" = conftest.file
  2742. )
  2743. then
  2744. # Ok.
  2745. :
  2746. else
  2747. as_fn_error $? "newly created file is older than distributed files!
  2748. Check your system clock" "$LINENO" 5
  2749. fi
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2751. $as_echo "yes" >&6; }
  2752. test "$program_prefix" != NONE &&
  2753. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2754. # Use a double $ so make ignores it.
  2755. test "$program_suffix" != NONE &&
  2756. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2757. # Double any \ or $.
  2758. # By default was `s,x,x', remove it if useless.
  2759. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2760. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2761.  
  2762. # expand $ac_aux_dir to an absolute path
  2763. am_aux_dir=`cd $ac_aux_dir && pwd`
  2764.  
  2765. if test x"${MISSING+set}" != xset; then
  2766. case $am_aux_dir in
  2767. *\ * | *\ *)
  2768. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2769. *)
  2770. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2771. esac
  2772. fi
  2773. # Use eval to expand $SHELL
  2774. if eval "$MISSING --run true"; then
  2775. am_missing_run="$MISSING --run "
  2776. else
  2777. am_missing_run=
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2779. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2780. fi
  2781.  
  2782. if test x"${install_sh}" != xset; then
  2783. case $am_aux_dir in
  2784. *\ * | *\ *)
  2785. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2786. *)
  2787. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2788. esac
  2789. fi
  2790.  
  2791. # Installed binaries are usually stripped using `strip' when the user
  2792. # run `make install-strip'. However `strip' might not be the right
  2793. # tool to use in cross-compilation environments, therefore Automake
  2794. # will honor the `STRIP' environment variable to overrule this program.
  2795. if test "$cross_compiling" != no; then
  2796. if test -n "$ac_tool_prefix"; then
  2797. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2798. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2800. $as_echo_n "checking for $ac_word... " >&6; }
  2801. if ${ac_cv_prog_STRIP+:} false; then :
  2802. $as_echo_n "(cached) " >&6
  2803. else
  2804. if test -n "$STRIP"; then
  2805. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2806. else
  2807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2808. for as_dir in $PATH
  2809. do
  2810. IFS=$as_save_IFS
  2811. test -z "$as_dir" && as_dir=.
  2812. for ac_exec_ext in '' $ac_executable_extensions; do
  2813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2814. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2816. break 2
  2817. fi
  2818. done
  2819. done
  2820. IFS=$as_save_IFS
  2821.  
  2822. fi
  2823. fi
  2824. STRIP=$ac_cv_prog_STRIP
  2825. if test -n "$STRIP"; then
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2827. $as_echo "$STRIP" >&6; }
  2828. else
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2830. $as_echo "no" >&6; }
  2831. fi
  2832.  
  2833.  
  2834. fi
  2835. if test -z "$ac_cv_prog_STRIP"; then
  2836. ac_ct_STRIP=$STRIP
  2837. # Extract the first word of "strip", so it can be a program name with args.
  2838. set dummy strip; ac_word=$2
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2840. $as_echo_n "checking for $ac_word... " >&6; }
  2841. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2842. $as_echo_n "(cached) " >&6
  2843. else
  2844. if test -n "$ac_ct_STRIP"; then
  2845. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2846. else
  2847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2848. for as_dir in $PATH
  2849. do
  2850. IFS=$as_save_IFS
  2851. test -z "$as_dir" && as_dir=.
  2852. for ac_exec_ext in '' $ac_executable_extensions; do
  2853. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2854. ac_cv_prog_ac_ct_STRIP="strip"
  2855. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2856. break 2
  2857. fi
  2858. done
  2859. done
  2860. IFS=$as_save_IFS
  2861.  
  2862. fi
  2863. fi
  2864. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2865. if test -n "$ac_ct_STRIP"; then
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2867. $as_echo "$ac_ct_STRIP" >&6; }
  2868. else
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2870. $as_echo "no" >&6; }
  2871. fi
  2872.  
  2873. if test "x$ac_ct_STRIP" = x; then
  2874. STRIP=":"
  2875. else
  2876. case $cross_compiling:$ac_tool_warned in
  2877. yes:)
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2879. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2880. ac_tool_warned=yes ;;
  2881. esac
  2882. STRIP=$ac_ct_STRIP
  2883. fi
  2884. else
  2885. STRIP="$ac_cv_prog_STRIP"
  2886. fi
  2887.  
  2888. fi
  2889. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2890.  
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2892. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2893. if test -z "$MKDIR_P"; then
  2894. if ${ac_cv_path_mkdir+:} false; then :
  2895. $as_echo_n "(cached) " >&6
  2896. else
  2897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2898. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2899. do
  2900. IFS=$as_save_IFS
  2901. test -z "$as_dir" && as_dir=.
  2902. for ac_prog in mkdir gmkdir; do
  2903. for ac_exec_ext in '' $ac_executable_extensions; do
  2904. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2905. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2906. 'mkdir (GNU coreutils) '* | \
  2907. 'mkdir (coreutils) '* | \
  2908. 'mkdir (fileutils) '4.1*)
  2909. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2910. break 3;;
  2911. esac
  2912. done
  2913. done
  2914. done
  2915. IFS=$as_save_IFS
  2916.  
  2917. fi
  2918.  
  2919. test -d ./--version && rmdir ./--version
  2920. if test "${ac_cv_path_mkdir+set}" = set; then
  2921. MKDIR_P="$ac_cv_path_mkdir -p"
  2922. else
  2923. # As a last resort, use the slow shell script. Don't cache a
  2924. # value for MKDIR_P within a source directory, because that will
  2925. # break other packages using the cache if that directory is
  2926. # removed, or if the value is a relative name.
  2927. MKDIR_P="$ac_install_sh -d"
  2928. fi
  2929. fi
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2931. $as_echo "$MKDIR_P" >&6; }
  2932.  
  2933. mkdir_p="$MKDIR_P"
  2934. case $mkdir_p in
  2935. [\\/$]* | ?:[\\/]*) ;;
  2936. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2937. esac
  2938.  
  2939. for ac_prog in gawk mawk nawk awk
  2940. do
  2941. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2942. set dummy $ac_prog; ac_word=$2
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2944. $as_echo_n "checking for $ac_word... " >&6; }
  2945. if ${ac_cv_prog_AWK+:} false; then :
  2946. $as_echo_n "(cached) " >&6
  2947. else
  2948. if test -n "$AWK"; then
  2949. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2950. else
  2951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2952. for as_dir in $PATH
  2953. do
  2954. IFS=$as_save_IFS
  2955. test -z "$as_dir" && as_dir=.
  2956. for ac_exec_ext in '' $ac_executable_extensions; do
  2957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2958. ac_cv_prog_AWK="$ac_prog"
  2959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2960. break 2
  2961. fi
  2962. done
  2963. done
  2964. IFS=$as_save_IFS
  2965.  
  2966. fi
  2967. fi
  2968. AWK=$ac_cv_prog_AWK
  2969. if test -n "$AWK"; then
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2971. $as_echo "$AWK" >&6; }
  2972. else
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2974. $as_echo "no" >&6; }
  2975. fi
  2976.  
  2977.  
  2978. test -n "$AWK" && break
  2979. done
  2980.  
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2982. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2983. set x ${MAKE-make}
  2984. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2985. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2986. $as_echo_n "(cached) " >&6
  2987. else
  2988. cat >conftest.make <<\_ACEOF
  2989. SHELL = /bin/sh
  2990. all:
  2991. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2992. _ACEOF
  2993. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2994. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2995. *@@@%%%=?*=@@@%%%*)
  2996. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2997. *)
  2998. eval ac_cv_prog_make_${ac_make}_set=no;;
  2999. esac
  3000. rm -f conftest.make
  3001. fi
  3002. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3004. $as_echo "yes" >&6; }
  3005. SET_MAKE=
  3006. else
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3008. $as_echo "no" >&6; }
  3009. SET_MAKE="MAKE=${MAKE-make}"
  3010. fi
  3011.  
  3012. rm -rf .tst 2>/dev/null
  3013. mkdir .tst 2>/dev/null
  3014. if test -d .tst; then
  3015. am__leading_dot=.
  3016. else
  3017. am__leading_dot=_
  3018. fi
  3019. rmdir .tst 2>/dev/null
  3020.  
  3021. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3022. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3023. # is not polluted with repeated "-I."
  3024. am__isrc=' -I$(srcdir)'
  3025. # test to see if srcdir already configured
  3026. if test -f $srcdir/config.status; then
  3027. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3028. fi
  3029. fi
  3030.  
  3031. # test whether we have cygpath
  3032. if test -z "$CYGPATH_W"; then
  3033. if (cygpath --version) >/dev/null 2>/dev/null; then
  3034. CYGPATH_W='cygpath -w'
  3035. else
  3036. CYGPATH_W=echo
  3037. fi
  3038. fi
  3039.  
  3040.  
  3041. # Define the identity of the package.
  3042. PACKAGE=minidlna
  3043. VERSION=1.1.0
  3044.  
  3045.  
  3046. cat >>confdefs.h <<_ACEOF
  3047. #define PACKAGE "$PACKAGE"
  3048. _ACEOF
  3049.  
  3050.  
  3051. cat >>confdefs.h <<_ACEOF
  3052. #define VERSION "$VERSION"
  3053. _ACEOF
  3054.  
  3055. # Some tools Automake needs.
  3056.  
  3057. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3058.  
  3059.  
  3060. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3061.  
  3062.  
  3063. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3064.  
  3065.  
  3066. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3067.  
  3068.  
  3069. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3070.  
  3071. # We need awk for the "check" target. The system "awk" is bad on
  3072. # some platforms.
  3073. # Always define AMTAR for backward compatibility. Yes, it's still used
  3074. # in the wild :-( We should find a proper way to deprecate it ...
  3075. AMTAR='$${TAR-tar}'
  3076.  
  3077. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3078.  
  3079.  
  3080.  
  3081.  
  3082.  
  3083. ac_config_headers="$ac_config_headers config.h"
  3084.  
  3085. # Check whether --enable-silent-rules was given.
  3086. if test "${enable_silent_rules+set}" = set; then :
  3087. enableval=$enable_silent_rules;
  3088. fi
  3089.  
  3090. case $enable_silent_rules in
  3091. yes) AM_DEFAULT_VERBOSITY=0;;
  3092. no) AM_DEFAULT_VERBOSITY=1;;
  3093. *) AM_DEFAULT_VERBOSITY=0;;
  3094. esac
  3095. am_make=${MAKE-make}
  3096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3097. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3098. if ${am_cv_make_support_nested_variables+:} false; then :
  3099. $as_echo_n "(cached) " >&6
  3100. else
  3101. if $as_echo 'TRUE=$(BAR$(V))
  3102. BAR0=false
  3103. BAR1=true
  3104. V=1
  3105. am__doit:
  3106. @$(TRUE)
  3107. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3108. am_cv_make_support_nested_variables=yes
  3109. else
  3110. am_cv_make_support_nested_variables=no
  3111. fi
  3112. fi
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3114. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3115. if test $am_cv_make_support_nested_variables = yes; then
  3116. AM_V='$(V)'
  3117. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3118. else
  3119. AM_V=$AM_DEFAULT_VERBOSITY
  3120. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3121. fi
  3122. AM_BACKSLASH='\'
  3123.  
  3124.  
  3125. DEPDIR="${am__leading_dot}deps"
  3126.  
  3127. ac_config_commands="$ac_config_commands depfiles"
  3128.  
  3129.  
  3130. am_make=${MAKE-make}
  3131. cat > confinc << 'END'
  3132. am__doit:
  3133. @echo this is the am__doit target
  3134. .PHONY: am__doit
  3135. END
  3136. # If we don't find an include directive, just comment out the code.
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3138. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3139. am__include="#"
  3140. am__quote=
  3141. _am_result=none
  3142. # First try GNU make style include.
  3143. echo "include confinc" > confmf
  3144. # Ignore all kinds of additional output from `make'.
  3145. case `$am_make -s -f confmf 2> /dev/null` in #(
  3146. *the\ am__doit\ target*)
  3147. am__include=include
  3148. am__quote=
  3149. _am_result=GNU
  3150. ;;
  3151. esac
  3152. # Now try BSD make style include.
  3153. if test "$am__include" = "#"; then
  3154. echo '.include "confinc"' > confmf
  3155. case `$am_make -s -f confmf 2> /dev/null` in #(
  3156. *the\ am__doit\ target*)
  3157. am__include=.include
  3158. am__quote="\""
  3159. _am_result=BSD
  3160. ;;
  3161. esac
  3162. fi
  3163.  
  3164.  
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3166. $as_echo "$_am_result" >&6; }
  3167. rm -f confinc confmf
  3168.  
  3169. # Check whether --enable-dependency-tracking was given.
  3170. if test "${enable_dependency_tracking+set}" = set; then :
  3171. enableval=$enable_dependency_tracking;
  3172. fi
  3173.  
  3174. if test "x$enable_dependency_tracking" != xno; then
  3175. am_depcomp="$ac_aux_dir/depcomp"
  3176. AMDEPBACKSLASH='\'
  3177. am__nodep='_no'
  3178. fi
  3179. if test "x$enable_dependency_tracking" != xno; then
  3180. AMDEP_TRUE=
  3181. AMDEP_FALSE='#'
  3182. else
  3183. AMDEP_TRUE='#'
  3184. AMDEP_FALSE=
  3185. fi
  3186.  
  3187.  
  3188. ac_ext=c
  3189. ac_cpp='$CPP $CPPFLAGS'
  3190. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3191. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3192. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3193. if test -n "$ac_tool_prefix"; then
  3194. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3195. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3197. $as_echo_n "checking for $ac_word... " >&6; }
  3198. if ${ac_cv_prog_CC+:} false; then :
  3199. $as_echo_n "(cached) " >&6
  3200. else
  3201. if test -n "$CC"; then
  3202. ac_cv_prog_CC="$CC" # Let the user override the test.
  3203. else
  3204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3205. for as_dir in $PATH
  3206. do
  3207. IFS=$as_save_IFS
  3208. test -z "$as_dir" && as_dir=.
  3209. for ac_exec_ext in '' $ac_executable_extensions; do
  3210. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3211. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3212. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3213. break 2
  3214. fi
  3215. done
  3216. done
  3217. IFS=$as_save_IFS
  3218.  
  3219. fi
  3220. fi
  3221. CC=$ac_cv_prog_CC
  3222. if test -n "$CC"; then
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3224. $as_echo "$CC" >&6; }
  3225. else
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3227. $as_echo "no" >&6; }
  3228. fi
  3229.  
  3230.  
  3231. fi
  3232. if test -z "$ac_cv_prog_CC"; then
  3233. ac_ct_CC=$CC
  3234. # Extract the first word of "gcc", so it can be a program name with args.
  3235. set dummy gcc; ac_word=$2
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3237. $as_echo_n "checking for $ac_word... " >&6; }
  3238. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3239. $as_echo_n "(cached) " >&6
  3240. else
  3241. if test -n "$ac_ct_CC"; then
  3242. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3243. else
  3244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3245. for as_dir in $PATH
  3246. do
  3247. IFS=$as_save_IFS
  3248. test -z "$as_dir" && as_dir=.
  3249. for ac_exec_ext in '' $ac_executable_extensions; do
  3250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3251. ac_cv_prog_ac_ct_CC="gcc"
  3252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3253. break 2
  3254. fi
  3255. done
  3256. done
  3257. IFS=$as_save_IFS
  3258.  
  3259. fi
  3260. fi
  3261. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3262. if test -n "$ac_ct_CC"; then
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3264. $as_echo "$ac_ct_CC" >&6; }
  3265. else
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3267. $as_echo "no" >&6; }
  3268. fi
  3269.  
  3270. if test "x$ac_ct_CC" = x; then
  3271. CC=""
  3272. else
  3273. case $cross_compiling:$ac_tool_warned in
  3274. yes:)
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3276. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3277. ac_tool_warned=yes ;;
  3278. esac
  3279. CC=$ac_ct_CC
  3280. fi
  3281. else
  3282. CC="$ac_cv_prog_CC"
  3283. fi
  3284.  
  3285. if test -z "$CC"; then
  3286. if test -n "$ac_tool_prefix"; then
  3287. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3288. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3290. $as_echo_n "checking for $ac_word... " >&6; }
  3291. if ${ac_cv_prog_CC+:} false; then :
  3292. $as_echo_n "(cached) " >&6
  3293. else
  3294. if test -n "$CC"; then
  3295. ac_cv_prog_CC="$CC" # Let the user override the test.
  3296. else
  3297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3298. for as_dir in $PATH
  3299. do
  3300. IFS=$as_save_IFS
  3301. test -z "$as_dir" && as_dir=.
  3302. for ac_exec_ext in '' $ac_executable_extensions; do
  3303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3304. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3306. break 2
  3307. fi
  3308. done
  3309. done
  3310. IFS=$as_save_IFS
  3311.  
  3312. fi
  3313. fi
  3314. CC=$ac_cv_prog_CC
  3315. if test -n "$CC"; then
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3317. $as_echo "$CC" >&6; }
  3318. else
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3320. $as_echo "no" >&6; }
  3321. fi
  3322.  
  3323.  
  3324. fi
  3325. fi
  3326. if test -z "$CC"; then
  3327. # Extract the first word of "cc", so it can be a program name with args.
  3328. set dummy cc; ac_word=$2
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3330. $as_echo_n "checking for $ac_word... " >&6; }
  3331. if ${ac_cv_prog_CC+:} false; then :
  3332. $as_echo_n "(cached) " >&6
  3333. else
  3334. if test -n "$CC"; then
  3335. ac_cv_prog_CC="$CC" # Let the user override the test.
  3336. else
  3337. ac_prog_rejected=no
  3338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3339. for as_dir in $PATH
  3340. do
  3341. IFS=$as_save_IFS
  3342. test -z "$as_dir" && as_dir=.
  3343. for ac_exec_ext in '' $ac_executable_extensions; do
  3344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3345. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3346. ac_prog_rejected=yes
  3347. continue
  3348. fi
  3349. ac_cv_prog_CC="cc"
  3350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3351. break 2
  3352. fi
  3353. done
  3354. done
  3355. IFS=$as_save_IFS
  3356.  
  3357. if test $ac_prog_rejected = yes; then
  3358. # We found a bogon in the path, so make sure we never use it.
  3359. set dummy $ac_cv_prog_CC
  3360. shift
  3361. if test $# != 0; then
  3362. # We chose a different compiler from the bogus one.
  3363. # However, it has the same basename, so the bogon will be chosen
  3364. # first if we set CC to just the basename; use the full file name.
  3365. shift
  3366. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3367. fi
  3368. fi
  3369. fi
  3370. fi
  3371. CC=$ac_cv_prog_CC
  3372. if test -n "$CC"; then
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3374. $as_echo "$CC" >&6; }
  3375. else
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3377. $as_echo "no" >&6; }
  3378. fi
  3379.  
  3380.  
  3381. fi
  3382. if test -z "$CC"; then
  3383. if test -n "$ac_tool_prefix"; then
  3384. for ac_prog in cl.exe
  3385. do
  3386. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3387. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3389. $as_echo_n "checking for $ac_word... " >&6; }
  3390. if ${ac_cv_prog_CC+:} false; then :
  3391. $as_echo_n "(cached) " >&6
  3392. else
  3393. if test -n "$CC"; then
  3394. ac_cv_prog_CC="$CC" # Let the user override the test.
  3395. else
  3396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3397. for as_dir in $PATH
  3398. do
  3399. IFS=$as_save_IFS
  3400. test -z "$as_dir" && as_dir=.
  3401. for ac_exec_ext in '' $ac_executable_extensions; do
  3402. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3403. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3405. break 2
  3406. fi
  3407. done
  3408. done
  3409. IFS=$as_save_IFS
  3410.  
  3411. fi
  3412. fi
  3413. CC=$ac_cv_prog_CC
  3414. if test -n "$CC"; then
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3416. $as_echo "$CC" >&6; }
  3417. else
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3419. $as_echo "no" >&6; }
  3420. fi
  3421.  
  3422.  
  3423. test -n "$CC" && break
  3424. done
  3425. fi
  3426. if test -z "$CC"; then
  3427. ac_ct_CC=$CC
  3428. for ac_prog in cl.exe
  3429. do
  3430. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3431. set dummy $ac_prog; ac_word=$2
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3433. $as_echo_n "checking for $ac_word... " >&6; }
  3434. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3435. $as_echo_n "(cached) " >&6
  3436. else
  3437. if test -n "$ac_ct_CC"; then
  3438. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3439. else
  3440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3441. for as_dir in $PATH
  3442. do
  3443. IFS=$as_save_IFS
  3444. test -z "$as_dir" && as_dir=.
  3445. for ac_exec_ext in '' $ac_executable_extensions; do
  3446. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3447. ac_cv_prog_ac_ct_CC="$ac_prog"
  3448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3449. break 2
  3450. fi
  3451. done
  3452. done
  3453. IFS=$as_save_IFS
  3454.  
  3455. fi
  3456. fi
  3457. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3458. if test -n "$ac_ct_CC"; then
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3460. $as_echo "$ac_ct_CC" >&6; }
  3461. else
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3463. $as_echo "no" >&6; }
  3464. fi
  3465.  
  3466.  
  3467. test -n "$ac_ct_CC" && break
  3468. done
  3469.  
  3470. if test "x$ac_ct_CC" = x; then
  3471. CC=""
  3472. else
  3473. case $cross_compiling:$ac_tool_warned in
  3474. yes:)
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3476. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3477. ac_tool_warned=yes ;;
  3478. esac
  3479. CC=$ac_ct_CC
  3480. fi
  3481. fi
  3482.  
  3483. fi
  3484.  
  3485.  
  3486. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3487. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3488. as_fn_error $? "no acceptable C compiler found in \$PATH
  3489. See \`config.log' for more details" "$LINENO" 5; }
  3490.  
  3491. # Provide some information about the compiler.
  3492. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3493. set X $ac_compile
  3494. ac_compiler=$2
  3495. for ac_option in --version -v -V -qversion; do
  3496. { { ac_try="$ac_compiler $ac_option >&5"
  3497. case "(($ac_try" in
  3498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3499. *) ac_try_echo=$ac_try;;
  3500. esac
  3501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3502. $as_echo "$ac_try_echo"; } >&5
  3503. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3504. ac_status=$?
  3505. if test -s conftest.err; then
  3506. sed '10a\
  3507. ... rest of stderr output deleted ...
  3508. 10q' conftest.err >conftest.er1
  3509. cat conftest.er1 >&5
  3510. fi
  3511. rm -f conftest.er1 conftest.err
  3512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3513. test $ac_status = 0; }
  3514. done
  3515.  
  3516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3517. /* end confdefs.h. */
  3518.  
  3519. int
  3520. main ()
  3521. {
  3522.  
  3523. ;
  3524. return 0;
  3525. }
  3526. _ACEOF
  3527. ac_clean_files_save=$ac_clean_files
  3528. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3529. # Try to create an executable without -o first, disregard a.out.
  3530. # It will help us diagnose broken compilers, and finding out an intuition
  3531. # of exeext.
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3533. $as_echo_n "checking whether the C compiler works... " >&6; }
  3534. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3535.  
  3536. # The possible output files:
  3537. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3538.  
  3539. ac_rmfiles=
  3540. for ac_file in $ac_files
  3541. do
  3542. case $ac_file in
  3543. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3544. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3545. esac
  3546. done
  3547. rm -f $ac_rmfiles
  3548.  
  3549. if { { ac_try="$ac_link_default"
  3550. case "(($ac_try" in
  3551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3552. *) ac_try_echo=$ac_try;;
  3553. esac
  3554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3555. $as_echo "$ac_try_echo"; } >&5
  3556. (eval "$ac_link_default") 2>&5
  3557. ac_status=$?
  3558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3559. test $ac_status = 0; }; then :
  3560. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3561. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3562. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3563. # so that the user can short-circuit this test for compilers unknown to
  3564. # Autoconf.
  3565. for ac_file in $ac_files ''
  3566. do
  3567. test -f "$ac_file" || continue
  3568. case $ac_file in
  3569. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3570. ;;
  3571. [ab].out )
  3572. # We found the default executable, but exeext='' is most
  3573. # certainly right.
  3574. break;;
  3575. *.* )
  3576. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3577. then :; else
  3578. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3579. fi
  3580. # We set ac_cv_exeext here because the later test for it is not
  3581. # safe: cross compilers may not add the suffix if given an `-o'
  3582. # argument, so we may need to know it at that point already.
  3583. # Even if this section looks crufty: it has the advantage of
  3584. # actually working.
  3585. break;;
  3586. * )
  3587. break;;
  3588. esac
  3589. done
  3590. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3591.  
  3592. else
  3593. ac_file=''
  3594. fi
  3595. if test -z "$ac_file"; then :
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3597. $as_echo "no" >&6; }
  3598. $as_echo "$as_me: failed program was:" >&5
  3599. sed 's/^/| /' conftest.$ac_ext >&5
  3600.  
  3601. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3602. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3603. as_fn_error 77 "C compiler cannot create executables
  3604. See \`config.log' for more details" "$LINENO" 5; }
  3605. else
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3607. $as_echo "yes" >&6; }
  3608. fi
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3610. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3612. $as_echo "$ac_file" >&6; }
  3613. ac_exeext=$ac_cv_exeext
  3614.  
  3615. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3616. ac_clean_files=$ac_clean_files_save
  3617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3618. $as_echo_n "checking for suffix of executables... " >&6; }
  3619. if { { ac_try="$ac_link"
  3620. case "(($ac_try" in
  3621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3622. *) ac_try_echo=$ac_try;;
  3623. esac
  3624. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3625. $as_echo "$ac_try_echo"; } >&5
  3626. (eval "$ac_link") 2>&5
  3627. ac_status=$?
  3628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3629. test $ac_status = 0; }; then :
  3630. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3631. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3632. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3633. # `rm'.
  3634. for ac_file in conftest.exe conftest conftest.*; do
  3635. test -f "$ac_file" || continue
  3636. case $ac_file in
  3637. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3638. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3639. break;;
  3640. * ) break;;
  3641. esac
  3642. done
  3643. else
  3644. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3645. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3646. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3647. See \`config.log' for more details" "$LINENO" 5; }
  3648. fi
  3649. rm -f conftest conftest$ac_cv_exeext
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3651. $as_echo "$ac_cv_exeext" >&6; }
  3652.  
  3653. rm -f conftest.$ac_ext
  3654. EXEEXT=$ac_cv_exeext
  3655. ac_exeext=$EXEEXT
  3656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3657. /* end confdefs.h. */
  3658. #include <stdio.h>
  3659. int
  3660. main ()
  3661. {
  3662. FILE *f = fopen ("conftest.out", "w");
  3663. return ferror (f) || fclose (f) != 0;
  3664.  
  3665. ;
  3666. return 0;
  3667. }
  3668. _ACEOF
  3669. ac_clean_files="$ac_clean_files conftest.out"
  3670. # Check that the compiler produces executables we can run. If not, either
  3671. # the compiler is broken, or we cross compile.
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3673. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3674. if test "$cross_compiling" != yes; then
  3675. { { ac_try="$ac_link"
  3676. case "(($ac_try" in
  3677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3678. *) ac_try_echo=$ac_try;;
  3679. esac
  3680. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3681. $as_echo "$ac_try_echo"; } >&5
  3682. (eval "$ac_link") 2>&5
  3683. ac_status=$?
  3684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3685. test $ac_status = 0; }
  3686. if { ac_try='./conftest$ac_cv_exeext'
  3687. { { case "(($ac_try" in
  3688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3689. *) ac_try_echo=$ac_try;;
  3690. esac
  3691. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3692. $as_echo "$ac_try_echo"; } >&5
  3693. (eval "$ac_try") 2>&5
  3694. ac_status=$?
  3695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3696. test $ac_status = 0; }; }; then
  3697. cross_compiling=no
  3698. else
  3699. if test "$cross_compiling" = maybe; then
  3700. cross_compiling=yes
  3701. else
  3702. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3703. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3704. as_fn_error $? "cannot run C compiled programs.
  3705. If you meant to cross compile, use \`--host'.
  3706. See \`config.log' for more details" "$LINENO" 5; }
  3707. fi
  3708. fi
  3709. fi
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3711. $as_echo "$cross_compiling" >&6; }
  3712.  
  3713. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3714. ac_clean_files=$ac_clean_files_save
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3716. $as_echo_n "checking for suffix of object files... " >&6; }
  3717. if ${ac_cv_objext+:} false; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3721. /* end confdefs.h. */
  3722.  
  3723. int
  3724. main ()
  3725. {
  3726.  
  3727. ;
  3728. return 0;
  3729. }
  3730. _ACEOF
  3731. rm -f conftest.o conftest.obj
  3732. if { { ac_try="$ac_compile"
  3733. case "(($ac_try" in
  3734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3735. *) ac_try_echo=$ac_try;;
  3736. esac
  3737. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3738. $as_echo "$ac_try_echo"; } >&5
  3739. (eval "$ac_compile") 2>&5
  3740. ac_status=$?
  3741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3742. test $ac_status = 0; }; then :
  3743. for ac_file in conftest.o conftest.obj conftest.*; do
  3744. test -f "$ac_file" || continue;
  3745. case $ac_file in
  3746. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3747. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3748. break;;
  3749. esac
  3750. done
  3751. else
  3752. $as_echo "$as_me: failed program was:" >&5
  3753. sed 's/^/| /' conftest.$ac_ext >&5
  3754.  
  3755. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3756. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3757. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3758. See \`config.log' for more details" "$LINENO" 5; }
  3759. fi
  3760. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3761. fi
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3763. $as_echo "$ac_cv_objext" >&6; }
  3764. OBJEXT=$ac_cv_objext
  3765. ac_objext=$OBJEXT
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3767. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3768. if ${ac_cv_c_compiler_gnu+:} false; then :
  3769. $as_echo_n "(cached) " >&6
  3770. else
  3771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3772. /* end confdefs.h. */
  3773.  
  3774. int
  3775. main ()
  3776. {
  3777. #ifndef __GNUC__
  3778. choke me
  3779. #endif
  3780.  
  3781. ;
  3782. return 0;
  3783. }
  3784. _ACEOF
  3785. if ac_fn_c_try_compile "$LINENO"; then :
  3786. ac_compiler_gnu=yes
  3787. else
  3788. ac_compiler_gnu=no
  3789. fi
  3790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3791. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3792.  
  3793. fi
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3795. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3796. if test $ac_compiler_gnu = yes; then
  3797. GCC=yes
  3798. else
  3799. GCC=
  3800. fi
  3801. ac_test_CFLAGS=${CFLAGS+set}
  3802. ac_save_CFLAGS=$CFLAGS
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3804. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3805. if ${ac_cv_prog_cc_g+:} false; then :
  3806. $as_echo_n "(cached) " >&6
  3807. else
  3808. ac_save_c_werror_flag=$ac_c_werror_flag
  3809. ac_c_werror_flag=yes
  3810. ac_cv_prog_cc_g=no
  3811. CFLAGS="-g"
  3812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3813. /* end confdefs.h. */
  3814.  
  3815. int
  3816. main ()
  3817. {
  3818.  
  3819. ;
  3820. return 0;
  3821. }
  3822. _ACEOF
  3823. if ac_fn_c_try_compile "$LINENO"; then :
  3824. ac_cv_prog_cc_g=yes
  3825. else
  3826. CFLAGS=""
  3827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3828. /* end confdefs.h. */
  3829.  
  3830. int
  3831. main ()
  3832. {
  3833.  
  3834. ;
  3835. return 0;
  3836. }
  3837. _ACEOF
  3838. if ac_fn_c_try_compile "$LINENO"; then :
  3839.  
  3840. else
  3841. ac_c_werror_flag=$ac_save_c_werror_flag
  3842. CFLAGS="-g"
  3843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3844. /* end confdefs.h. */
  3845.  
  3846. int
  3847. main ()
  3848. {
  3849.  
  3850. ;
  3851. return 0;
  3852. }
  3853. _ACEOF
  3854. if ac_fn_c_try_compile "$LINENO"; then :
  3855. ac_cv_prog_cc_g=yes
  3856. fi
  3857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3858. fi
  3859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3860. fi
  3861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3862. ac_c_werror_flag=$ac_save_c_werror_flag
  3863. fi
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3865. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3866. if test "$ac_test_CFLAGS" = set; then
  3867. CFLAGS=$ac_save_CFLAGS
  3868. elif test $ac_cv_prog_cc_g = yes; then
  3869. if test "$GCC" = yes; then
  3870. CFLAGS="-g -O2"
  3871. else
  3872. CFLAGS="-g"
  3873. fi
  3874. else
  3875. if test "$GCC" = yes; then
  3876. CFLAGS="-O2"
  3877. else
  3878. CFLAGS=
  3879. fi
  3880. fi
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3882. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3883. if ${ac_cv_prog_cc_c89+:} false; then :
  3884. $as_echo_n "(cached) " >&6
  3885. else
  3886. ac_cv_prog_cc_c89=no
  3887. ac_save_CC=$CC
  3888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3889. /* end confdefs.h. */
  3890. #include <stdarg.h>
  3891. #include <stdio.h>
  3892. struct stat;
  3893. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3894. struct buf { int x; };
  3895. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3896. static char *e (p, i)
  3897. char **p;
  3898. int i;
  3899. {
  3900. return p[i];
  3901. }
  3902. static char *f (char * (*g) (char **, int), char **p, ...)
  3903. {
  3904. char *s;
  3905. va_list v;
  3906. va_start (v,p);
  3907. s = g (p, va_arg (v,int));
  3908. va_end (v);
  3909. return s;
  3910. }
  3911.  
  3912. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3913. function prototypes and stuff, but not '\xHH' hex character constants.
  3914. These don't provoke an error unfortunately, instead are silently treated
  3915. as 'x'. The following induces an error, until -std is added to get
  3916. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3917. array size at least. It's necessary to write '\x00'==0 to get something
  3918. that's true only with -std. */
  3919. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3920.  
  3921. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3922. inside strings and character constants. */
  3923. #define FOO(x) 'x'
  3924. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3925.  
  3926. int test (int i, double x);
  3927. struct s1 {int (*f) (int a);};
  3928. struct s2 {int (*f) (double a);};
  3929. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3930. int argc;
  3931. char **argv;
  3932. int
  3933. main ()
  3934. {
  3935. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3936. ;
  3937. return 0;
  3938. }
  3939. _ACEOF
  3940. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3941. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3942. do
  3943. CC="$ac_save_CC $ac_arg"
  3944. if ac_fn_c_try_compile "$LINENO"; then :
  3945. ac_cv_prog_cc_c89=$ac_arg
  3946. fi
  3947. rm -f core conftest.err conftest.$ac_objext
  3948. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3949. done
  3950. rm -f conftest.$ac_ext
  3951. CC=$ac_save_CC
  3952.  
  3953. fi
  3954. # AC_CACHE_VAL
  3955. case "x$ac_cv_prog_cc_c89" in
  3956. x)
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3958. $as_echo "none needed" >&6; } ;;
  3959. xno)
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3961. $as_echo "unsupported" >&6; } ;;
  3962. *)
  3963. CC="$CC $ac_cv_prog_cc_c89"
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3965. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3966. esac
  3967. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3968.  
  3969. fi
  3970.  
  3971. ac_ext=c
  3972. ac_cpp='$CPP $CPPFLAGS'
  3973. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3974. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3975. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3976.  
  3977. depcc="$CC" am_compiler_list=
  3978.  
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3980. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3981. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3982. $as_echo_n "(cached) " >&6
  3983. else
  3984. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3985. # We make a subdir and do the tests there. Otherwise we can end up
  3986. # making bogus files that we don't know about and never remove. For
  3987. # instance it was reported that on HP-UX the gcc test will end up
  3988. # making a dummy file named `D' -- because `-MD' means `put the output
  3989. # in D'.
  3990. rm -rf conftest.dir
  3991. mkdir conftest.dir
  3992. # Copy depcomp to subdir because otherwise we won't find it if we're
  3993. # using a relative directory.
  3994. cp "$am_depcomp" conftest.dir
  3995. cd conftest.dir
  3996. # We will build objects and dependencies in a subdirectory because
  3997. # it helps to detect inapplicable dependency modes. For instance
  3998. # both Tru64's cc and ICC support -MD to output dependencies as a
  3999. # side effect of compilation, but ICC will put the dependencies in
  4000. # the current directory while Tru64 will put them in the object
  4001. # directory.
  4002. mkdir sub
  4003.  
  4004. am_cv_CC_dependencies_compiler_type=none
  4005. if test "$am_compiler_list" = ""; then
  4006. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4007. fi
  4008. am__universal=false
  4009. case " $depcc " in #(
  4010. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4011. esac
  4012.  
  4013. for depmode in $am_compiler_list; do
  4014. # Setup a source with many dependencies, because some compilers
  4015. # like to wrap large dependency lists on column 80 (with \), and
  4016. # we should not choose a depcomp mode which is confused by this.
  4017. #
  4018. # We need to recreate these files for each test, as the compiler may
  4019. # overwrite some of them when testing with obscure command lines.
  4020. # This happens at least with the AIX C compiler.
  4021. : > sub/conftest.c
  4022. for i in 1 2 3 4 5 6; do
  4023. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4024. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4025. # Solaris 8's {/usr,}/bin/sh.
  4026. touch sub/conftst$i.h
  4027. done
  4028. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4029.  
  4030. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4031. # mode. It turns out that the SunPro C++ compiler does not properly
  4032. # handle `-M -o', and we need to detect this. Also, some Intel
  4033. # versions had trouble with output in subdirs
  4034. am__obj=sub/conftest.${OBJEXT-o}
  4035. am__minus_obj="-o $am__obj"
  4036. case $depmode in
  4037. gcc)
  4038. # This depmode causes a compiler race in universal mode.
  4039. test "$am__universal" = false || continue
  4040. ;;
  4041. nosideeffect)
  4042. # after this tag, mechanisms are not by side-effect, so they'll
  4043. # only be used when explicitly requested
  4044. if test "x$enable_dependency_tracking" = xyes; then
  4045. continue
  4046. else
  4047. break
  4048. fi
  4049. ;;
  4050. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4051. # This compiler won't grok `-c -o', but also, the minuso test has
  4052. # not run yet. These depmodes are late enough in the game, and
  4053. # so weak that their functioning should not be impacted.
  4054. am__obj=conftest.${OBJEXT-o}
  4055. am__minus_obj=
  4056. ;;
  4057. none) break ;;
  4058. esac
  4059. if depmode=$depmode \
  4060. source=sub/conftest.c object=$am__obj \
  4061. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4062. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4063. >/dev/null 2>conftest.err &&
  4064. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4065. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4066. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4067. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4068. # icc doesn't choke on unknown options, it will just issue warnings
  4069. # or remarks (even with -Werror). So we grep stderr for any message
  4070. # that says an option was ignored or not supported.
  4071. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4072. # icc: Command line warning: ignoring option '-M'; no argument required
  4073. # The diagnosis changed in icc 8.0:
  4074. # icc: Command line remark: option '-MP' not supported
  4075. if (grep 'ignoring option' conftest.err ||
  4076. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4077. am_cv_CC_dependencies_compiler_type=$depmode
  4078. break
  4079. fi
  4080. fi
  4081. done
  4082.  
  4083. cd ..
  4084. rm -rf conftest.dir
  4085. else
  4086. am_cv_CC_dependencies_compiler_type=none
  4087. fi
  4088.  
  4089. fi
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4091. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4092. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4093.  
  4094. if
  4095. test "x$enable_dependency_tracking" != xno \
  4096. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4097. am__fastdepCC_TRUE=
  4098. am__fastdepCC_FALSE='#'
  4099. else
  4100. am__fastdepCC_TRUE='#'
  4101. am__fastdepCC_FALSE=
  4102. fi
  4103.  
  4104.  
  4105.  
  4106. ac_ext=c
  4107. ac_cpp='$CPP $CPPFLAGS'
  4108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4112. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4113. # On Suns, sometimes $CPP names a directory.
  4114. if test -n "$CPP" && test -d "$CPP"; then
  4115. CPP=
  4116. fi
  4117. if test -z "$CPP"; then
  4118. if ${ac_cv_prog_CPP+:} false; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. # Double quotes because CPP needs to be expanded
  4122. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4123. do
  4124. ac_preproc_ok=false
  4125. for ac_c_preproc_warn_flag in '' yes
  4126. do
  4127. # Use a header file that comes with gcc, so configuring glibc
  4128. # with a fresh cross-compiler works.
  4129. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4130. # <limits.h> exists even on freestanding compilers.
  4131. # On the NeXT, cc -E runs the code through the compiler's parser,
  4132. # not just through cpp. "Syntax error" is here to catch this case.
  4133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4134. /* end confdefs.h. */
  4135. #ifdef __STDC__
  4136. # include <limits.h>
  4137. #else
  4138. # include <assert.h>
  4139. #endif
  4140. Syntax error
  4141. _ACEOF
  4142. if ac_fn_c_try_cpp "$LINENO"; then :
  4143.  
  4144. else
  4145. # Broken: fails on valid input.
  4146. continue
  4147. fi
  4148. rm -f conftest.err conftest.i conftest.$ac_ext
  4149.  
  4150. # OK, works on sane cases. Now check whether nonexistent headers
  4151. # can be detected and how.
  4152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4153. /* end confdefs.h. */
  4154. #include <ac_nonexistent.h>
  4155. _ACEOF
  4156. if ac_fn_c_try_cpp "$LINENO"; then :
  4157. # Broken: success on invalid input.
  4158. continue
  4159. else
  4160. # Passes both tests.
  4161. ac_preproc_ok=:
  4162. break
  4163. fi
  4164. rm -f conftest.err conftest.i conftest.$ac_ext
  4165.  
  4166. done
  4167. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4168. rm -f conftest.i conftest.err conftest.$ac_ext
  4169. if $ac_preproc_ok; then :
  4170. break
  4171. fi
  4172.  
  4173. done
  4174. ac_cv_prog_CPP=$CPP
  4175.  
  4176. fi
  4177. CPP=$ac_cv_prog_CPP
  4178. else
  4179. ac_cv_prog_CPP=$CPP
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4182. $as_echo "$CPP" >&6; }
  4183. ac_preproc_ok=false
  4184. for ac_c_preproc_warn_flag in '' yes
  4185. do
  4186. # Use a header file that comes with gcc, so configuring glibc
  4187. # with a fresh cross-compiler works.
  4188. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4189. # <limits.h> exists even on freestanding compilers.
  4190. # On the NeXT, cc -E runs the code through the compiler's parser,
  4191. # not just through cpp. "Syntax error" is here to catch this case.
  4192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4193. /* end confdefs.h. */
  4194. #ifdef __STDC__
  4195. # include <limits.h>
  4196. #else
  4197. # include <assert.h>
  4198. #endif
  4199. Syntax error
  4200. _ACEOF
  4201. if ac_fn_c_try_cpp "$LINENO"; then :
  4202.  
  4203. else
  4204. # Broken: fails on valid input.
  4205. continue
  4206. fi
  4207. rm -f conftest.err conftest.i conftest.$ac_ext
  4208.  
  4209. # OK, works on sane cases. Now check whether nonexistent headers
  4210. # can be detected and how.
  4211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4212. /* end confdefs.h. */
  4213. #include <ac_nonexistent.h>
  4214. _ACEOF
  4215. if ac_fn_c_try_cpp "$LINENO"; then :
  4216. # Broken: success on invalid input.
  4217. continue
  4218. else
  4219. # Passes both tests.
  4220. ac_preproc_ok=:
  4221. break
  4222. fi
  4223. rm -f conftest.err conftest.i conftest.$ac_ext
  4224.  
  4225. done
  4226. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4227. rm -f conftest.i conftest.err conftest.$ac_ext
  4228. if $ac_preproc_ok; then :
  4229.  
  4230. else
  4231. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4232. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4233. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4234. See \`config.log' for more details" "$LINENO" 5; }
  4235. fi
  4236.  
  4237. ac_ext=c
  4238. ac_cpp='$CPP $CPPFLAGS'
  4239. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4240. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4241. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4242.  
  4243.  
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4245. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4246. if ${ac_cv_path_GREP+:} false; then :
  4247. $as_echo_n "(cached) " >&6
  4248. else
  4249. if test -z "$GREP"; then
  4250. ac_path_GREP_found=false
  4251. # Loop through the user's path and test for each of PROGNAME-LIST
  4252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4253. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4254. do
  4255. IFS=$as_save_IFS
  4256. test -z "$as_dir" && as_dir=.
  4257. for ac_prog in grep ggrep; do
  4258. for ac_exec_ext in '' $ac_executable_extensions; do
  4259. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4260. as_fn_executable_p "$ac_path_GREP" || continue
  4261. # Check for GNU ac_path_GREP and select it if it is found.
  4262. # Check for GNU $ac_path_GREP
  4263. case `"$ac_path_GREP" --version 2>&1` in
  4264. *GNU*)
  4265. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4266. *)
  4267. ac_count=0
  4268. $as_echo_n 0123456789 >"conftest.in"
  4269. while :
  4270. do
  4271. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4272. mv "conftest.tmp" "conftest.in"
  4273. cp "conftest.in" "conftest.nl"
  4274. $as_echo 'GREP' >> "conftest.nl"
  4275. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4276. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4277. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4278. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4279. # Best one so far, save it but keep looking for a better one
  4280. ac_cv_path_GREP="$ac_path_GREP"
  4281. ac_path_GREP_max=$ac_count
  4282. fi
  4283. # 10*(2^10) chars as input seems more than enough
  4284. test $ac_count -gt 10 && break
  4285. done
  4286. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4287. esac
  4288.  
  4289. $ac_path_GREP_found && break 3
  4290. done
  4291. done
  4292. done
  4293. IFS=$as_save_IFS
  4294. if test -z "$ac_cv_path_GREP"; then
  4295. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4296. fi
  4297. else
  4298. ac_cv_path_GREP=$GREP
  4299. fi
  4300.  
  4301. fi
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4303. $as_echo "$ac_cv_path_GREP" >&6; }
  4304. GREP="$ac_cv_path_GREP"
  4305.  
  4306.  
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4308. $as_echo_n "checking for egrep... " >&6; }
  4309. if ${ac_cv_path_EGREP+:} false; then :
  4310. $as_echo_n "(cached) " >&6
  4311. else
  4312. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4313. then ac_cv_path_EGREP="$GREP -E"
  4314. else
  4315. if test -z "$EGREP"; then
  4316. ac_path_EGREP_found=false
  4317. # Loop through the user's path and test for each of PROGNAME-LIST
  4318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4319. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4320. do
  4321. IFS=$as_save_IFS
  4322. test -z "$as_dir" && as_dir=.
  4323. for ac_prog in egrep; do
  4324. for ac_exec_ext in '' $ac_executable_extensions; do
  4325. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4326. as_fn_executable_p "$ac_path_EGREP" || continue
  4327. # Check for GNU ac_path_EGREP and select it if it is found.
  4328. # Check for GNU $ac_path_EGREP
  4329. case `"$ac_path_EGREP" --version 2>&1` in
  4330. *GNU*)
  4331. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4332. *)
  4333. ac_count=0
  4334. $as_echo_n 0123456789 >"conftest.in"
  4335. while :
  4336. do
  4337. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4338. mv "conftest.tmp" "conftest.in"
  4339. cp "conftest.in" "conftest.nl"
  4340. $as_echo 'EGREP' >> "conftest.nl"
  4341. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4342. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4343. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4344. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4345. # Best one so far, save it but keep looking for a better one
  4346. ac_cv_path_EGREP="$ac_path_EGREP"
  4347. ac_path_EGREP_max=$ac_count
  4348. fi
  4349. # 10*(2^10) chars as input seems more than enough
  4350. test $ac_count -gt 10 && break
  4351. done
  4352. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4353. esac
  4354.  
  4355. $ac_path_EGREP_found && break 3
  4356. done
  4357. done
  4358. done
  4359. IFS=$as_save_IFS
  4360. if test -z "$ac_cv_path_EGREP"; then
  4361. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4362. fi
  4363. else
  4364. ac_cv_path_EGREP=$EGREP
  4365. fi
  4366.  
  4367. fi
  4368. fi
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4370. $as_echo "$ac_cv_path_EGREP" >&6; }
  4371. EGREP="$ac_cv_path_EGREP"
  4372.  
  4373.  
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4375. $as_echo_n "checking for ANSI C header files... " >&6; }
  4376. if ${ac_cv_header_stdc+:} false; then :
  4377. $as_echo_n "(cached) " >&6
  4378. else
  4379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4380. /* end confdefs.h. */
  4381. #include <stdlib.h>
  4382. #include <stdarg.h>
  4383. #include <string.h>
  4384. #include <float.h>
  4385.  
  4386. int
  4387. main ()
  4388. {
  4389.  
  4390. ;
  4391. return 0;
  4392. }
  4393. _ACEOF
  4394. if ac_fn_c_try_compile "$LINENO"; then :
  4395. ac_cv_header_stdc=yes
  4396. else
  4397. ac_cv_header_stdc=no
  4398. fi
  4399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4400.  
  4401. if test $ac_cv_header_stdc = yes; then
  4402. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4404. /* end confdefs.h. */
  4405. #include <string.h>
  4406.  
  4407. _ACEOF
  4408. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4409. $EGREP "memchr" >/dev/null 2>&1; then :
  4410.  
  4411. else
  4412. ac_cv_header_stdc=no
  4413. fi
  4414. rm -f conftest*
  4415.  
  4416. fi
  4417.  
  4418. if test $ac_cv_header_stdc = yes; then
  4419. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4421. /* end confdefs.h. */
  4422. #include <stdlib.h>
  4423.  
  4424. _ACEOF
  4425. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4426. $EGREP "free" >/dev/null 2>&1; then :
  4427.  
  4428. else
  4429. ac_cv_header_stdc=no
  4430. fi
  4431. rm -f conftest*
  4432.  
  4433. fi
  4434.  
  4435. if test $ac_cv_header_stdc = yes; then
  4436. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4437. if test "$cross_compiling" = yes; then :
  4438. :
  4439. else
  4440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4441. /* end confdefs.h. */
  4442. #include <ctype.h>
  4443. #include <stdlib.h>
  4444. #if ((' ' & 0x0FF) == 0x020)
  4445. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4446. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4447. #else
  4448. # define ISLOWER(c) \
  4449. (('a' <= (c) && (c) <= 'i') \
  4450. || ('j' <= (c) && (c) <= 'r') \
  4451. || ('s' <= (c) && (c) <= 'z'))
  4452. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4453. #endif
  4454.  
  4455. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4456. int
  4457. main ()
  4458. {
  4459. int i;
  4460. for (i = 0; i < 256; i++)
  4461. if (XOR (islower (i), ISLOWER (i))
  4462. || toupper (i) != TOUPPER (i))
  4463. return 2;
  4464. return 0;
  4465. }
  4466. _ACEOF
  4467. if ac_fn_c_try_run "$LINENO"; then :
  4468.  
  4469. else
  4470. ac_cv_header_stdc=no
  4471. fi
  4472. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4473. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4474. fi
  4475.  
  4476. fi
  4477. fi
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4479. $as_echo "$ac_cv_header_stdc" >&6; }
  4480. if test $ac_cv_header_stdc = yes; then
  4481.  
  4482. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4483.  
  4484. fi
  4485.  
  4486. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4487. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4488. inttypes.h stdint.h unistd.h
  4489. do :
  4490. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4491. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4492. "
  4493. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4494. cat >>confdefs.h <<_ACEOF
  4495. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4496. _ACEOF
  4497.  
  4498. fi
  4499.  
  4500. done
  4501.  
  4502.  
  4503.  
  4504. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4505. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4506. MINIX=yes
  4507. else
  4508. MINIX=
  4509. fi
  4510.  
  4511.  
  4512. if test "$MINIX" = yes; then
  4513.  
  4514. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4515.  
  4516.  
  4517. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4518.  
  4519.  
  4520. $as_echo "#define _MINIX 1" >>confdefs.h
  4521.  
  4522. fi
  4523.  
  4524.  
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4526. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4527. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4531. /* end confdefs.h. */
  4532.  
  4533. # define __EXTENSIONS__ 1
  4534. $ac_includes_default
  4535. int
  4536. main ()
  4537. {
  4538.  
  4539. ;
  4540. return 0;
  4541. }
  4542. _ACEOF
  4543. if ac_fn_c_try_compile "$LINENO"; then :
  4544. ac_cv_safe_to_define___extensions__=yes
  4545. else
  4546. ac_cv_safe_to_define___extensions__=no
  4547. fi
  4548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4549. fi
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4551. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4552. test $ac_cv_safe_to_define___extensions__ = yes &&
  4553. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4554.  
  4555. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4556.  
  4557. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4558.  
  4559. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4560.  
  4561. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4562.  
  4563.  
  4564.  
  4565. #MiniDLNA
  4566.  
  4567.  
  4568. if test "X$prefix" = "XNONE"; then
  4569. acl_final_prefix="$ac_default_prefix"
  4570. else
  4571. acl_final_prefix="$prefix"
  4572. fi
  4573. if test "X$exec_prefix" = "XNONE"; then
  4574. acl_final_exec_prefix='${prefix}'
  4575. else
  4576. acl_final_exec_prefix="$exec_prefix"
  4577. fi
  4578. acl_save_prefix="$prefix"
  4579. prefix="$acl_final_prefix"
  4580. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  4581. prefix="$acl_save_prefix"
  4582.  
  4583.  
  4584. # Check whether --with-gnu-ld was given.
  4585. if test "${with_gnu_ld+set}" = set; then :
  4586. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4587. else
  4588. with_gnu_ld=no
  4589. fi
  4590.  
  4591. # Prepare PATH_SEPARATOR.
  4592. # The user is always right.
  4593. if test "${PATH_SEPARATOR+set}" != set; then
  4594. echo "#! /bin/sh" >conf$$.sh
  4595. echo "exit 0" >>conf$$.sh
  4596. chmod +x conf$$.sh
  4597. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4598. PATH_SEPARATOR=';'
  4599. else
  4600. PATH_SEPARATOR=:
  4601. fi
  4602. rm -f conf$$.sh
  4603. fi
  4604. ac_prog=ld
  4605. if test "$GCC" = yes; then
  4606. # Check if gcc -print-prog-name=ld gives a path.
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  4608. $as_echo_n "checking for ld used by GCC... " >&6; }
  4609. case $host in
  4610. *-*-mingw*)
  4611. # gcc leaves a trailing carriage return which upsets mingw
  4612. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4613. *)
  4614. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4615. esac
  4616. case $ac_prog in
  4617. # Accept absolute paths.
  4618. [\\/]* | [A-Za-z]:[\\/]*)
  4619. re_direlt='/[^/][^/]*/\.\./'
  4620. # Canonicalize the path of ld
  4621. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  4622. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4623. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  4624. done
  4625. test -z "$LD" && LD="$ac_prog"
  4626. ;;
  4627. "")
  4628. # If it fails, then pretend we aren't using GCC.
  4629. ac_prog=ld
  4630. ;;
  4631. *)
  4632. # If it is relative, then search for the first ld in PATH.
  4633. with_gnu_ld=unknown
  4634. ;;
  4635. esac
  4636. elif test "$with_gnu_ld" = yes; then
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4638. $as_echo_n "checking for GNU ld... " >&6; }
  4639. else
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4641. $as_echo_n "checking for non-GNU ld... " >&6; }
  4642. fi
  4643. if ${acl_cv_path_LD+:} false; then :
  4644. $as_echo_n "(cached) " >&6
  4645. else
  4646. if test -z "$LD"; then
  4647. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  4648. for ac_dir in $PATH; do
  4649. test -z "$ac_dir" && ac_dir=.
  4650. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4651. acl_cv_path_LD="$ac_dir/$ac_prog"
  4652. # Check to see if the program is GNU ld. I'd rather use --version,
  4653. # but apparently some GNU ld's only accept -v.
  4654. # Break only if it was the GNU/non-GNU ld that we prefer.
  4655. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  4656. *GNU* | *'with BFD'*)
  4657. test "$with_gnu_ld" != no && break ;;
  4658. *)
  4659. test "$with_gnu_ld" != yes && break ;;
  4660. esac
  4661. fi
  4662. done
  4663. IFS="$ac_save_ifs"
  4664. else
  4665. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  4666. fi
  4667. fi
  4668.  
  4669. LD="$acl_cv_path_LD"
  4670. if test -n "$LD"; then
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4672. $as_echo "$LD" >&6; }
  4673. else
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4675. $as_echo "no" >&6; }
  4676. fi
  4677. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4679. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4680. if ${acl_cv_prog_gnu_ld+:} false; then :
  4681. $as_echo_n "(cached) " >&6
  4682. else
  4683. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4684. case `$LD -v 2>&1 </dev/null` in
  4685. *GNU* | *'with BFD'*)
  4686. acl_cv_prog_gnu_ld=yes ;;
  4687. *)
  4688. acl_cv_prog_gnu_ld=no ;;
  4689. esac
  4690. fi
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  4692. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  4693. with_gnu_ld=$acl_cv_prog_gnu_ld
  4694.  
  4695.  
  4696.  
  4697.  
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  4699. $as_echo_n "checking for shared library run path origin... " >&6; }
  4700. if ${acl_cv_rpath+:} false; then :
  4701. $as_echo_n "(cached) " >&6
  4702. else
  4703.  
  4704. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  4705. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  4706. . ./conftest.sh
  4707. rm -f ./conftest.sh
  4708. acl_cv_rpath=done
  4709.  
  4710. fi
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  4712. $as_echo "$acl_cv_rpath" >&6; }
  4713. wl="$acl_cv_wl"
  4714. acl_libext="$acl_cv_libext"
  4715. acl_shlibext="$acl_cv_shlibext"
  4716. acl_libname_spec="$acl_cv_libname_spec"
  4717. acl_library_names_spec="$acl_cv_library_names_spec"
  4718. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  4719. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  4720. acl_hardcode_direct="$acl_cv_hardcode_direct"
  4721. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  4722. # Check whether --enable-rpath was given.
  4723. if test "${enable_rpath+set}" = set; then :
  4724. enableval=$enable_rpath; :
  4725. else
  4726. enable_rpath=yes
  4727. fi
  4728.  
  4729.  
  4730.  
  4731.  
  4732. acl_libdirstem=lib
  4733. acl_libdirstem2=
  4734. case "$host_os" in
  4735. solaris*)
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
  4737. $as_echo_n "checking for 64-bit host... " >&6; }
  4738. if ${gl_cv_solaris_64bit+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4742. /* end confdefs.h. */
  4743.  
  4744. #ifdef _LP64
  4745. sixtyfour bits
  4746. #endif
  4747.  
  4748. _ACEOF
  4749. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4750. $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
  4751. gl_cv_solaris_64bit=yes
  4752. else
  4753. gl_cv_solaris_64bit=no
  4754. fi
  4755. rm -f conftest*
  4756.  
  4757.  
  4758. fi
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
  4760. $as_echo "$gl_cv_solaris_64bit" >&6; }
  4761. if test $gl_cv_solaris_64bit = yes; then
  4762. acl_libdirstem=lib/64
  4763. case "$host_cpu" in
  4764. sparc*) acl_libdirstem2=lib/sparcv9 ;;
  4765. i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
  4766. esac
  4767. fi
  4768. ;;
  4769. *)
  4770. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  4771. if test -n "$searchpath"; then
  4772. acl_save_IFS="${IFS= }"; IFS=":"
  4773. for searchdir in $searchpath; do
  4774. if test -d "$searchdir"; then
  4775. case "$searchdir" in
  4776. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  4777. */../ | */.. )
  4778. # Better ignore directories of this form. They are misleading.
  4779. ;;
  4780. *) searchdir=`cd "$searchdir" && pwd`
  4781. case "$searchdir" in
  4782. */lib64 ) acl_libdirstem=lib64 ;;
  4783. esac ;;
  4784. esac
  4785. fi
  4786. done
  4787. IFS="$acl_save_IFS"
  4788. fi
  4789. ;;
  4790. esac
  4791. test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
  4792.  
  4793.  
  4794.  
  4795.  
  4796.  
  4797.  
  4798.  
  4799.  
  4800.  
  4801.  
  4802.  
  4803.  
  4804. use_additional=yes
  4805.  
  4806. acl_save_prefix="$prefix"
  4807. prefix="$acl_final_prefix"
  4808. acl_save_exec_prefix="$exec_prefix"
  4809. exec_prefix="$acl_final_exec_prefix"
  4810.  
  4811. eval additional_includedir=\"$includedir\"
  4812. eval additional_libdir=\"$libdir\"
  4813.  
  4814. exec_prefix="$acl_save_exec_prefix"
  4815. prefix="$acl_save_prefix"
  4816.  
  4817.  
  4818. # Check whether --with-libiconv-prefix was given.
  4819. if test "${with_libiconv_prefix+set}" = set; then :
  4820. withval=$with_libiconv_prefix;
  4821. if test "X$withval" = "Xno"; then
  4822. use_additional=no
  4823. else
  4824. if test "X$withval" = "X"; then
  4825.  
  4826. acl_save_prefix="$prefix"
  4827. prefix="$acl_final_prefix"
  4828. acl_save_exec_prefix="$exec_prefix"
  4829. exec_prefix="$acl_final_exec_prefix"
  4830.  
  4831. eval additional_includedir=\"$includedir\"
  4832. eval additional_libdir=\"$libdir\"
  4833.  
  4834. exec_prefix="$acl_save_exec_prefix"
  4835. prefix="$acl_save_prefix"
  4836.  
  4837. else
  4838. additional_includedir="$withval/include"
  4839. additional_libdir="$withval/$acl_libdirstem"
  4840. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  4841. && ! test -d "$withval/$acl_libdirstem"; then
  4842. additional_libdir="$withval/$acl_libdirstem2"
  4843. fi
  4844. fi
  4845. fi
  4846.  
  4847. fi
  4848.  
  4849. LIBICONV=
  4850. LTLIBICONV=
  4851. INCICONV=
  4852. LIBICONV_PREFIX=
  4853. HAVE_LIBICONV=
  4854. rpathdirs=
  4855. ltrpathdirs=
  4856. names_already_handled=
  4857. names_next_round='iconv '
  4858. while test -n "$names_next_round"; do
  4859. names_this_round="$names_next_round"
  4860. names_next_round=
  4861. for name in $names_this_round; do
  4862. already_handled=
  4863. for n in $names_already_handled; do
  4864. if test "$n" = "$name"; then
  4865. already_handled=yes
  4866. break
  4867. fi
  4868. done
  4869. if test -z "$already_handled"; then
  4870. names_already_handled="$names_already_handled $name"
  4871. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  4872. eval value=\"\$HAVE_LIB$uppername\"
  4873. if test -n "$value"; then
  4874. if test "$value" = yes; then
  4875. eval value=\"\$LIB$uppername\"
  4876. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  4877. eval value=\"\$LTLIB$uppername\"
  4878. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  4879. else
  4880. :
  4881. fi
  4882. else
  4883. found_dir=
  4884. found_la=
  4885. found_so=
  4886. found_a=
  4887. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  4888. if test -n "$acl_shlibext"; then
  4889. shrext=".$acl_shlibext" # typically: shrext=.so
  4890. else
  4891. shrext=
  4892. fi
  4893. if test $use_additional = yes; then
  4894. dir="$additional_libdir"
  4895. if test -n "$acl_shlibext"; then
  4896. if test -f "$dir/$libname$shrext"; then
  4897. found_dir="$dir"
  4898. found_so="$dir/$libname$shrext"
  4899. else
  4900. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  4901. ver=`(cd "$dir" && \
  4902. for f in "$libname$shrext".*; do echo "$f"; done \
  4903. | sed -e "s,^$libname$shrext\\\\.,," \
  4904. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  4905. | sed 1q ) 2>/dev/null`
  4906. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  4907. found_dir="$dir"
  4908. found_so="$dir/$libname$shrext.$ver"
  4909. fi
  4910. else
  4911. eval library_names=\"$acl_library_names_spec\"
  4912. for f in $library_names; do
  4913. if test -f "$dir/$f"; then
  4914. found_dir="$dir"
  4915. found_so="$dir/$f"
  4916. break
  4917. fi
  4918. done
  4919. fi
  4920. fi
  4921. fi
  4922. if test "X$found_dir" = "X"; then
  4923. if test -f "$dir/$libname.$acl_libext"; then
  4924. found_dir="$dir"
  4925. found_a="$dir/$libname.$acl_libext"
  4926. fi
  4927. fi
  4928. if test "X$found_dir" != "X"; then
  4929. if test -f "$dir/$libname.la"; then
  4930. found_la="$dir/$libname.la"
  4931. fi
  4932. fi
  4933. fi
  4934. if test "X$found_dir" = "X"; then
  4935. for x in $LDFLAGS $LTLIBICONV; do
  4936.  
  4937. acl_save_prefix="$prefix"
  4938. prefix="$acl_final_prefix"
  4939. acl_save_exec_prefix="$exec_prefix"
  4940. exec_prefix="$acl_final_exec_prefix"
  4941. eval x=\"$x\"
  4942. exec_prefix="$acl_save_exec_prefix"
  4943. prefix="$acl_save_prefix"
  4944.  
  4945. case "$x" in
  4946. -L*)
  4947. dir=`echo "X$x" | sed -e 's/^X-L//'`
  4948. if test -n "$acl_shlibext"; then
  4949. if test -f "$dir/$libname$shrext"; then
  4950. found_dir="$dir"
  4951. found_so="$dir/$libname$shrext"
  4952. else
  4953. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  4954. ver=`(cd "$dir" && \
  4955. for f in "$libname$shrext".*; do echo "$f"; done \
  4956. | sed -e "s,^$libname$shrext\\\\.,," \
  4957. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  4958. | sed 1q ) 2>/dev/null`
  4959. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  4960. found_dir="$dir"
  4961. found_so="$dir/$libname$shrext.$ver"
  4962. fi
  4963. else
  4964. eval library_names=\"$acl_library_names_spec\"
  4965. for f in $library_names; do
  4966. if test -f "$dir/$f"; then
  4967. found_dir="$dir"
  4968. found_so="$dir/$f"
  4969. break
  4970. fi
  4971. done
  4972. fi
  4973. fi
  4974. fi
  4975. if test "X$found_dir" = "X"; then
  4976. if test -f "$dir/$libname.$acl_libext"; then
  4977. found_dir="$dir"
  4978. found_a="$dir/$libname.$acl_libext"
  4979. fi
  4980. fi
  4981. if test "X$found_dir" != "X"; then
  4982. if test -f "$dir/$libname.la"; then
  4983. found_la="$dir/$libname.la"
  4984. fi
  4985. fi
  4986. ;;
  4987. esac
  4988. if test "X$found_dir" != "X"; then
  4989. break
  4990. fi
  4991. done
  4992. fi
  4993. if test "X$found_dir" != "X"; then
  4994. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  4995. if test "X$found_so" != "X"; then
  4996. if test "$enable_rpath" = no \
  4997. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  4998. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  4999. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5000. else
  5001. haveit=
  5002. for x in $ltrpathdirs; do
  5003. if test "X$x" = "X$found_dir"; then
  5004. haveit=yes
  5005. break
  5006. fi
  5007. done
  5008. if test -z "$haveit"; then
  5009. ltrpathdirs="$ltrpathdirs $found_dir"
  5010. fi
  5011. if test "$acl_hardcode_direct" = yes; then
  5012. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5013. else
  5014. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  5015. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5016. haveit=
  5017. for x in $rpathdirs; do
  5018. if test "X$x" = "X$found_dir"; then
  5019. haveit=yes
  5020. break
  5021. fi
  5022. done
  5023. if test -z "$haveit"; then
  5024. rpathdirs="$rpathdirs $found_dir"
  5025. fi
  5026. else
  5027. haveit=
  5028. for x in $LDFLAGS $LIBICONV; do
  5029.  
  5030. acl_save_prefix="$prefix"
  5031. prefix="$acl_final_prefix"
  5032. acl_save_exec_prefix="$exec_prefix"
  5033. exec_prefix="$acl_final_exec_prefix"
  5034. eval x=\"$x\"
  5035. exec_prefix="$acl_save_exec_prefix"
  5036. prefix="$acl_save_prefix"
  5037.  
  5038. if test "X$x" = "X-L$found_dir"; then
  5039. haveit=yes
  5040. break
  5041. fi
  5042. done
  5043. if test -z "$haveit"; then
  5044. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  5045. fi
  5046. if test "$acl_hardcode_minus_L" != no; then
  5047. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5048. else
  5049. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  5050. fi
  5051. fi
  5052. fi
  5053. fi
  5054. else
  5055. if test "X$found_a" != "X"; then
  5056. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  5057. else
  5058. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  5059. fi
  5060. fi
  5061. additional_includedir=
  5062. case "$found_dir" in
  5063. */$acl_libdirstem | */$acl_libdirstem/)
  5064. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  5065. if test "$name" = 'iconv'; then
  5066. LIBICONV_PREFIX="$basedir"
  5067. fi
  5068. additional_includedir="$basedir/include"
  5069. ;;
  5070. */$acl_libdirstem2 | */$acl_libdirstem2/)
  5071. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  5072. if test "$name" = 'iconv'; then
  5073. LIBICONV_PREFIX="$basedir"
  5074. fi
  5075. additional_includedir="$basedir/include"
  5076. ;;
  5077. esac
  5078. if test "X$additional_includedir" != "X"; then
  5079. if test "X$additional_includedir" != "X/usr/include"; then
  5080. haveit=
  5081. if test "X$additional_includedir" = "X/usr/local/include"; then
  5082. if test -n "$GCC"; then
  5083. case $host_os in
  5084. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  5085. esac
  5086. fi
  5087. fi
  5088. if test -z "$haveit"; then
  5089. for x in $CPPFLAGS $INCICONV; do
  5090.  
  5091. acl_save_prefix="$prefix"
  5092. prefix="$acl_final_prefix"
  5093. acl_save_exec_prefix="$exec_prefix"
  5094. exec_prefix="$acl_final_exec_prefix"
  5095. eval x=\"$x\"
  5096. exec_prefix="$acl_save_exec_prefix"
  5097. prefix="$acl_save_prefix"
  5098.  
  5099. if test "X$x" = "X-I$additional_includedir"; then
  5100. haveit=yes
  5101. break
  5102. fi
  5103. done
  5104. if test -z "$haveit"; then
  5105. if test -d "$additional_includedir"; then
  5106. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  5107. fi
  5108. fi
  5109. fi
  5110. fi
  5111. fi
  5112. if test -n "$found_la"; then
  5113. save_libdir="$libdir"
  5114. case "$found_la" in
  5115. */* | *\\*) . "$found_la" ;;
  5116. *) . "./$found_la" ;;
  5117. esac
  5118. libdir="$save_libdir"
  5119. for dep in $dependency_libs; do
  5120. case "$dep" in
  5121. -L*)
  5122. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  5123. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  5124. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  5125. haveit=
  5126. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  5127. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  5128. if test -n "$GCC"; then
  5129. case $host_os in
  5130. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  5131. esac
  5132. fi
  5133. fi
  5134. if test -z "$haveit"; then
  5135. haveit=
  5136. for x in $LDFLAGS $LIBICONV; do
  5137.  
  5138. acl_save_prefix="$prefix"
  5139. prefix="$acl_final_prefix"
  5140. acl_save_exec_prefix="$exec_prefix"
  5141. exec_prefix="$acl_final_exec_prefix"
  5142. eval x=\"$x\"
  5143. exec_prefix="$acl_save_exec_prefix"
  5144. prefix="$acl_save_prefix"
  5145.  
  5146. if test "X$x" = "X-L$additional_libdir"; then
  5147. haveit=yes
  5148. break
  5149. fi
  5150. done
  5151. if test -z "$haveit"; then
  5152. if test -d "$additional_libdir"; then
  5153. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  5154. fi
  5155. fi
  5156. haveit=
  5157. for x in $LDFLAGS $LTLIBICONV; do
  5158.  
  5159. acl_save_prefix="$prefix"
  5160. prefix="$acl_final_prefix"
  5161. acl_save_exec_prefix="$exec_prefix"
  5162. exec_prefix="$acl_final_exec_prefix"
  5163. eval x=\"$x\"
  5164. exec_prefix="$acl_save_exec_prefix"
  5165. prefix="$acl_save_prefix"
  5166.  
  5167. if test "X$x" = "X-L$additional_libdir"; then
  5168. haveit=yes
  5169. break
  5170. fi
  5171. done
  5172. if test -z "$haveit"; then
  5173. if test -d "$additional_libdir"; then
  5174. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  5175. fi
  5176. fi
  5177. fi
  5178. fi
  5179. ;;
  5180. -R*)
  5181. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  5182. if test "$enable_rpath" != no; then
  5183. haveit=
  5184. for x in $rpathdirs; do
  5185. if test "X$x" = "X$dir"; then
  5186. haveit=yes
  5187. break
  5188. fi
  5189. done
  5190. if test -z "$haveit"; then
  5191. rpathdirs="$rpathdirs $dir"
  5192. fi
  5193. haveit=
  5194. for x in $ltrpathdirs; do
  5195. if test "X$x" = "X$dir"; then
  5196. haveit=yes
  5197. break
  5198. fi
  5199. done
  5200. if test -z "$haveit"; then
  5201. ltrpathdirs="$ltrpathdirs $dir"
  5202. fi
  5203. fi
  5204. ;;
  5205. -l*)
  5206. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  5207. ;;
  5208. *.la)
  5209. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  5210. ;;
  5211. *)
  5212. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  5213. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  5214. ;;
  5215. esac
  5216. done
  5217. fi
  5218. else
  5219. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  5220. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  5221. fi
  5222. fi
  5223. fi
  5224. done
  5225. done
  5226. if test "X$rpathdirs" != "X"; then
  5227. if test -n "$acl_hardcode_libdir_separator"; then
  5228. alldirs=
  5229. for found_dir in $rpathdirs; do
  5230. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  5231. done
  5232. acl_save_libdir="$libdir"
  5233. libdir="$alldirs"
  5234. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  5235. libdir="$acl_save_libdir"
  5236. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  5237. else
  5238. for found_dir in $rpathdirs; do
  5239. acl_save_libdir="$libdir"
  5240. libdir="$found_dir"
  5241. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  5242. libdir="$acl_save_libdir"
  5243. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  5244. done
  5245. fi
  5246. fi
  5247. if test "X$ltrpathdirs" != "X"; then
  5248. for found_dir in $ltrpathdirs; do
  5249. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  5250. done
  5251. fi
  5252.  
  5253.  
  5254.  
  5255.  
  5256.  
  5257.  
  5258.  
  5259.  
  5260.  
  5261.  
  5262.  
  5263.  
  5264. am_save_CPPFLAGS="$CPPFLAGS"
  5265.  
  5266. for element in $INCICONV; do
  5267. haveit=
  5268. for x in $CPPFLAGS; do
  5269.  
  5270. acl_save_prefix="$prefix"
  5271. prefix="$acl_final_prefix"
  5272. acl_save_exec_prefix="$exec_prefix"
  5273. exec_prefix="$acl_final_exec_prefix"
  5274. eval x=\"$x\"
  5275. exec_prefix="$acl_save_exec_prefix"
  5276. prefix="$acl_save_prefix"
  5277.  
  5278. if test "X$x" = "X$element"; then
  5279. haveit=yes
  5280. break
  5281. fi
  5282. done
  5283. if test -z "$haveit"; then
  5284. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  5285. fi
  5286. done
  5287.  
  5288.  
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  5290. $as_echo_n "checking for iconv... " >&6; }
  5291. if ${am_cv_func_iconv+:} false; then :
  5292. $as_echo_n "(cached) " >&6
  5293. else
  5294.  
  5295. am_cv_func_iconv="no, consider installing GNU libiconv"
  5296. am_cv_lib_iconv=no
  5297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5298. /* end confdefs.h. */
  5299. #include <stdlib.h>
  5300. #include <iconv.h>
  5301. int
  5302. main ()
  5303. {
  5304. iconv_t cd = iconv_open("","");
  5305. iconv(cd,NULL,NULL,NULL,NULL);
  5306. iconv_close(cd);
  5307. ;
  5308. return 0;
  5309. }
  5310. _ACEOF
  5311. if ac_fn_c_try_link "$LINENO"; then :
  5312. am_cv_func_iconv=yes
  5313. fi
  5314. rm -f core conftest.err conftest.$ac_objext \
  5315. conftest$ac_exeext conftest.$ac_ext
  5316. if test "$am_cv_func_iconv" != yes; then
  5317. am_save_LIBS="$LIBS"
  5318. LIBS="$LIBS $LIBICONV"
  5319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5320. /* end confdefs.h. */
  5321. #include <stdlib.h>
  5322. #include <iconv.h>
  5323. int
  5324. main ()
  5325. {
  5326. iconv_t cd = iconv_open("","");
  5327. iconv(cd,NULL,NULL,NULL,NULL);
  5328. iconv_close(cd);
  5329. ;
  5330. return 0;
  5331. }
  5332. _ACEOF
  5333. if ac_fn_c_try_link "$LINENO"; then :
  5334. am_cv_lib_iconv=yes
  5335. am_cv_func_iconv=yes
  5336. fi
  5337. rm -f core conftest.err conftest.$ac_objext \
  5338. conftest$ac_exeext conftest.$ac_ext
  5339. LIBS="$am_save_LIBS"
  5340. fi
  5341.  
  5342. fi
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  5344. $as_echo "$am_cv_func_iconv" >&6; }
  5345. if test "$am_cv_func_iconv" = yes; then
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  5347. $as_echo_n "checking for working iconv... " >&6; }
  5348. if ${am_cv_func_iconv_works+:} false; then :
  5349. $as_echo_n "(cached) " >&6
  5350. else
  5351.  
  5352. am_save_LIBS="$LIBS"
  5353. if test $am_cv_lib_iconv = yes; then
  5354. LIBS="$LIBS $LIBICONV"
  5355. fi
  5356. if test "$cross_compiling" = yes; then :
  5357. case "$host_os" in
  5358. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  5359. *) am_cv_func_iconv_works="guessing yes" ;;
  5360. esac
  5361. else
  5362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5363. /* end confdefs.h. */
  5364.  
  5365. #include <iconv.h>
  5366. #include <string.h>
  5367. int main ()
  5368. {
  5369. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  5370. returns. */
  5371. {
  5372. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  5373. if (cd_utf8_to_88591 != (iconv_t)(-1))
  5374. {
  5375. static const char input[] = "\342\202\254"; /* EURO SIGN */
  5376. char buf[10];
  5377. const char *inptr = input;
  5378. size_t inbytesleft = strlen (input);
  5379. char *outptr = buf;
  5380. size_t outbytesleft = sizeof (buf);
  5381. size_t res = iconv (cd_utf8_to_88591,
  5382. (char **) &inptr, &inbytesleft,
  5383. &outptr, &outbytesleft);
  5384. if (res == 0)
  5385. return 1;
  5386. }
  5387. }
  5388. /* Test against Solaris 10 bug: Failures are not distinguishable from
  5389. successful returns. */
  5390. {
  5391. iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  5392. if (cd_ascii_to_88591 != (iconv_t)(-1))
  5393. {
  5394. static const char input[] = "\263";
  5395. char buf[10];
  5396. const char *inptr = input;
  5397. size_t inbytesleft = strlen (input);
  5398. char *outptr = buf;
  5399. size_t outbytesleft = sizeof (buf);
  5400. size_t res = iconv (cd_ascii_to_88591,
  5401. (char **) &inptr, &inbytesleft,
  5402. &outptr, &outbytesleft);
  5403. if (res == 0)
  5404. return 1;
  5405. }
  5406. }
  5407. #if 0 /* This bug could be worked around by the caller. */
  5408. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  5409. {
  5410. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  5411. if (cd_88591_to_utf8 != (iconv_t)(-1))
  5412. {
  5413. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  5414. char buf[50];
  5415. const char *inptr = input;
  5416. size_t inbytesleft = strlen (input);
  5417. char *outptr = buf;
  5418. size_t outbytesleft = sizeof (buf);
  5419. size_t res = iconv (cd_88591_to_utf8,
  5420. (char **) &inptr, &inbytesleft,
  5421. &outptr, &outbytesleft);
  5422. if ((int)res > 0)
  5423. return 1;
  5424. }
  5425. }
  5426. #endif
  5427. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  5428. provided. */
  5429. if (/* Try standardized names. */
  5430. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  5431. /* Try IRIX, OSF/1 names. */
  5432. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  5433. /* Try AIX names. */
  5434. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  5435. /* Try HP-UX names. */
  5436. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  5437. return 1;
  5438. return 0;
  5439. }
  5440. _ACEOF
  5441. if ac_fn_c_try_run "$LINENO"; then :
  5442. am_cv_func_iconv_works=yes
  5443. else
  5444. am_cv_func_iconv_works=no
  5445. fi
  5446. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5447. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5448. fi
  5449.  
  5450. LIBS="$am_save_LIBS"
  5451.  
  5452. fi
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  5454. $as_echo "$am_cv_func_iconv_works" >&6; }
  5455. case "$am_cv_func_iconv_works" in
  5456. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  5457. *) am_func_iconv=yes ;;
  5458. esac
  5459. else
  5460. am_func_iconv=no am_cv_lib_iconv=no
  5461. fi
  5462. if test "$am_func_iconv" = yes; then
  5463.  
  5464. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  5465.  
  5466. fi
  5467. if test "$am_cv_lib_iconv" = yes; then
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  5469. $as_echo_n "checking how to link with libiconv... " >&6; }
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  5471. $as_echo "$LIBICONV" >&6; }
  5472. else
  5473. CPPFLAGS="$am_save_CPPFLAGS"
  5474. LIBICONV=
  5475. LTLIBICONV=
  5476. fi
  5477.  
  5478.  
  5479.  
  5480. if test "$am_cv_func_iconv" = yes; then
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  5482. $as_echo_n "checking for iconv declaration... " >&6; }
  5483. if ${am_cv_proto_iconv+:} false; then :
  5484. $as_echo_n "(cached) " >&6
  5485. else
  5486.  
  5487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5488. /* end confdefs.h. */
  5489.  
  5490. #include <stdlib.h>
  5491. #include <iconv.h>
  5492. extern
  5493. #ifdef __cplusplus
  5494. "C"
  5495. #endif
  5496. #if defined(__STDC__) || defined(__cplusplus)
  5497. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  5498. #else
  5499. size_t iconv();
  5500. #endif
  5501.  
  5502. int
  5503. main ()
  5504. {
  5505.  
  5506. ;
  5507. return 0;
  5508. }
  5509. _ACEOF
  5510. if ac_fn_c_try_compile "$LINENO"; then :
  5511. am_cv_proto_iconv_arg1=""
  5512. else
  5513. am_cv_proto_iconv_arg1="const"
  5514. fi
  5515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5516. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  5517. fi
  5518.  
  5519. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  5521. $am_cv_proto_iconv" >&5
  5522. $as_echo "
  5523. $am_cv_proto_iconv" >&6; }
  5524.  
  5525. cat >>confdefs.h <<_ACEOF
  5526. #define ICONV_CONST $am_cv_proto_iconv_arg1
  5527. _ACEOF
  5528.  
  5529. fi
  5530.  
  5531.  
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  5533. $as_echo_n "checking whether NLS is requested... " >&6; }
  5534. # Check whether --enable-nls was given.
  5535. if test "${enable_nls+set}" = set; then :
  5536. enableval=$enable_nls; USE_NLS=$enableval
  5537. else
  5538. USE_NLS=yes
  5539. fi
  5540.  
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  5542. $as_echo "$USE_NLS" >&6; }
  5543.  
  5544.  
  5545.  
  5546.  
  5547. GETTEXT_MACRO_VERSION=0.18
  5548.  
  5549.  
  5550.  
  5551.  
  5552. # Prepare PATH_SEPARATOR.
  5553. # The user is always right.
  5554. if test "${PATH_SEPARATOR+set}" != set; then
  5555. echo "#! /bin/sh" >conf$$.sh
  5556. echo "exit 0" >>conf$$.sh
  5557. chmod +x conf$$.sh
  5558. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5559. PATH_SEPARATOR=';'
  5560. else
  5561. PATH_SEPARATOR=:
  5562. fi
  5563. rm -f conf$$.sh
  5564. fi
  5565.  
  5566. # Find out how to test for executable files. Don't use a zero-byte file,
  5567. # as systems may use methods other than mode bits to determine executability.
  5568. cat >conf$$.file <<_ASEOF
  5569. #! /bin/sh
  5570. exit 0
  5571. _ASEOF
  5572. chmod +x conf$$.file
  5573. if test -x conf$$.file >/dev/null 2>&1; then
  5574. ac_executable_p="test -x"
  5575. else
  5576. ac_executable_p="test -f"
  5577. fi
  5578. rm -f conf$$.file
  5579.  
  5580. # Extract the first word of "msgfmt", so it can be a program name with args.
  5581. set dummy msgfmt; ac_word=$2
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5583. $as_echo_n "checking for $ac_word... " >&6; }
  5584. if ${ac_cv_path_MSGFMT+:} false; then :
  5585. $as_echo_n "(cached) " >&6
  5586. else
  5587. case "$MSGFMT" in
  5588. [\\/]* | ?:[\\/]*)
  5589. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  5590. ;;
  5591. *)
  5592. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5593. for ac_dir in $PATH; do
  5594. IFS="$ac_save_IFS"
  5595. test -z "$ac_dir" && ac_dir=.
  5596. for ac_exec_ext in '' $ac_executable_extensions; do
  5597. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5598. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  5599. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  5600. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5601. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  5602. break 2
  5603. fi
  5604. fi
  5605. done
  5606. done
  5607. IFS="$ac_save_IFS"
  5608. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  5609. ;;
  5610. esac
  5611. fi
  5612. MSGFMT="$ac_cv_path_MSGFMT"
  5613. if test "$MSGFMT" != ":"; then
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  5615. $as_echo "$MSGFMT" >&6; }
  5616. else
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5618. $as_echo "no" >&6; }
  5619. fi
  5620.  
  5621. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5622. set dummy gmsgfmt; ac_word=$2
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5624. $as_echo_n "checking for $ac_word... " >&6; }
  5625. if ${ac_cv_path_GMSGFMT+:} false; then :
  5626. $as_echo_n "(cached) " >&6
  5627. else
  5628. case $GMSGFMT in
  5629. [\\/]* | ?:[\\/]*)
  5630. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5631. ;;
  5632. *)
  5633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5634. for as_dir in $PATH
  5635. do
  5636. IFS=$as_save_IFS
  5637. test -z "$as_dir" && as_dir=.
  5638. for ac_exec_ext in '' $ac_executable_extensions; do
  5639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5640. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  5641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5642. break 2
  5643. fi
  5644. done
  5645. done
  5646. IFS=$as_save_IFS
  5647.  
  5648. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  5649. ;;
  5650. esac
  5651. fi
  5652. GMSGFMT=$ac_cv_path_GMSGFMT
  5653. if test -n "$GMSGFMT"; then
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  5655. $as_echo "$GMSGFMT" >&6; }
  5656. else
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5658. $as_echo "no" >&6; }
  5659. fi
  5660.  
  5661.  
  5662.  
  5663. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  5664. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  5665. *) MSGFMT_015=$MSGFMT ;;
  5666. esac
  5667.  
  5668. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  5669. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  5670. *) GMSGFMT_015=$GMSGFMT ;;
  5671. esac
  5672.  
  5673.  
  5674.  
  5675. # Prepare PATH_SEPARATOR.
  5676. # The user is always right.
  5677. if test "${PATH_SEPARATOR+set}" != set; then
  5678. echo "#! /bin/sh" >conf$$.sh
  5679. echo "exit 0" >>conf$$.sh
  5680. chmod +x conf$$.sh
  5681. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5682. PATH_SEPARATOR=';'
  5683. else
  5684. PATH_SEPARATOR=:
  5685. fi
  5686. rm -f conf$$.sh
  5687. fi
  5688.  
  5689. # Find out how to test for executable files. Don't use a zero-byte file,
  5690. # as systems may use methods other than mode bits to determine executability.
  5691. cat >conf$$.file <<_ASEOF
  5692. #! /bin/sh
  5693. exit 0
  5694. _ASEOF
  5695. chmod +x conf$$.file
  5696. if test -x conf$$.file >/dev/null 2>&1; then
  5697. ac_executable_p="test -x"
  5698. else
  5699. ac_executable_p="test -f"
  5700. fi
  5701. rm -f conf$$.file
  5702.  
  5703. # Extract the first word of "xgettext", so it can be a program name with args.
  5704. set dummy xgettext; ac_word=$2
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5706. $as_echo_n "checking for $ac_word... " >&6; }
  5707. if ${ac_cv_path_XGETTEXT+:} false; then :
  5708. $as_echo_n "(cached) " >&6
  5709. else
  5710. case "$XGETTEXT" in
  5711. [\\/]* | ?:[\\/]*)
  5712. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  5713. ;;
  5714. *)
  5715. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5716. for ac_dir in $PATH; do
  5717. IFS="$ac_save_IFS"
  5718. test -z "$ac_dir" && ac_dir=.
  5719. for ac_exec_ext in '' $ac_executable_extensions; do
  5720. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5721. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  5722. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  5723. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5724. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  5725. break 2
  5726. fi
  5727. fi
  5728. done
  5729. done
  5730. IFS="$ac_save_IFS"
  5731. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  5732. ;;
  5733. esac
  5734. fi
  5735. XGETTEXT="$ac_cv_path_XGETTEXT"
  5736. if test "$XGETTEXT" != ":"; then
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  5738. $as_echo "$XGETTEXT" >&6; }
  5739. else
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5741. $as_echo "no" >&6; }
  5742. fi
  5743.  
  5744. rm -f messages.po
  5745.  
  5746. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  5747. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  5748. *) XGETTEXT_015=$XGETTEXT ;;
  5749. esac
  5750.  
  5751.  
  5752.  
  5753. # Prepare PATH_SEPARATOR.
  5754. # The user is always right.
  5755. if test "${PATH_SEPARATOR+set}" != set; then
  5756. echo "#! /bin/sh" >conf$$.sh
  5757. echo "exit 0" >>conf$$.sh
  5758. chmod +x conf$$.sh
  5759. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5760. PATH_SEPARATOR=';'
  5761. else
  5762. PATH_SEPARATOR=:
  5763. fi
  5764. rm -f conf$$.sh
  5765. fi
  5766.  
  5767. # Find out how to test for executable files. Don't use a zero-byte file,
  5768. # as systems may use methods other than mode bits to determine executability.
  5769. cat >conf$$.file <<_ASEOF
  5770. #! /bin/sh
  5771. exit 0
  5772. _ASEOF
  5773. chmod +x conf$$.file
  5774. if test -x conf$$.file >/dev/null 2>&1; then
  5775. ac_executable_p="test -x"
  5776. else
  5777. ac_executable_p="test -f"
  5778. fi
  5779. rm -f conf$$.file
  5780.  
  5781. # Extract the first word of "msgmerge", so it can be a program name with args.
  5782. set dummy msgmerge; ac_word=$2
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5784. $as_echo_n "checking for $ac_word... " >&6; }
  5785. if ${ac_cv_path_MSGMERGE+:} false; then :
  5786. $as_echo_n "(cached) " >&6
  5787. else
  5788. case "$MSGMERGE" in
  5789. [\\/]* | ?:[\\/]*)
  5790. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  5791. ;;
  5792. *)
  5793. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5794. for ac_dir in $PATH; do
  5795. IFS="$ac_save_IFS"
  5796. test -z "$ac_dir" && ac_dir=.
  5797. for ac_exec_ext in '' $ac_executable_extensions; do
  5798. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5799. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  5800. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  5801. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  5802. break 2
  5803. fi
  5804. fi
  5805. done
  5806. done
  5807. IFS="$ac_save_IFS"
  5808. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  5809. ;;
  5810. esac
  5811. fi
  5812. MSGMERGE="$ac_cv_path_MSGMERGE"
  5813. if test "$MSGMERGE" != ":"; then
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  5815. $as_echo "$MSGMERGE" >&6; }
  5816. else
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5818. $as_echo "no" >&6; }
  5819. fi
  5820.  
  5821.  
  5822. test -n "$localedir" || localedir='${datadir}/locale'
  5823.  
  5824.  
  5825. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  5826.  
  5827.  
  5828. ac_config_commands="$ac_config_commands po-directories"
  5829.  
  5830.  
  5831.  
  5832.  
  5833.  
  5834.  
  5835.  
  5836.  
  5837.  
  5838.  
  5839.  
  5840.  
  5841.  
  5842.  
  5843.  
  5844.  
  5845.  
  5846.  
  5847.  
  5848.  
  5849.  
  5850.  
  5851.  
  5852.  
  5853.  
  5854.  
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  5856. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  5857. if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
  5858. $as_echo_n "(cached) " >&6
  5859. else
  5860. gt_save_LIBS="$LIBS"
  5861. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  5862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5863. /* end confdefs.h. */
  5864. #include <CoreFoundation/CFPreferences.h>
  5865. int
  5866. main ()
  5867. {
  5868. CFPreferencesCopyAppValue(NULL, NULL)
  5869. ;
  5870. return 0;
  5871. }
  5872. _ACEOF
  5873. if ac_fn_c_try_link "$LINENO"; then :
  5874. gt_cv_func_CFPreferencesCopyAppValue=yes
  5875. else
  5876. gt_cv_func_CFPreferencesCopyAppValue=no
  5877. fi
  5878. rm -f core conftest.err conftest.$ac_objext \
  5879. conftest$ac_exeext conftest.$ac_ext
  5880. LIBS="$gt_save_LIBS"
  5881. fi
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  5883. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  5884. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  5885.  
  5886. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  5887.  
  5888. fi
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  5890. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  5891. if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
  5892. $as_echo_n "(cached) " >&6
  5893. else
  5894. gt_save_LIBS="$LIBS"
  5895. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  5896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5897. /* end confdefs.h. */
  5898. #include <CoreFoundation/CFLocale.h>
  5899. int
  5900. main ()
  5901. {
  5902. CFLocaleCopyCurrent();
  5903. ;
  5904. return 0;
  5905. }
  5906. _ACEOF
  5907. if ac_fn_c_try_link "$LINENO"; then :
  5908. gt_cv_func_CFLocaleCopyCurrent=yes
  5909. else
  5910. gt_cv_func_CFLocaleCopyCurrent=no
  5911. fi
  5912. rm -f core conftest.err conftest.$ac_objext \
  5913. conftest$ac_exeext conftest.$ac_ext
  5914. LIBS="$gt_save_LIBS"
  5915. fi
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  5917. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  5918. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  5919.  
  5920. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  5921.  
  5922. fi
  5923. INTL_MACOSX_LIBS=
  5924. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  5925. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  5926. fi
  5927.  
  5928.  
  5929.  
  5930.  
  5931.  
  5932.  
  5933. LIBINTL=
  5934. LTLIBINTL=
  5935. POSUB=
  5936.  
  5937. case " $gt_needs " in
  5938. *" need-formatstring-macros "*) gt_api_version=3 ;;
  5939. *" need-ngettext "*) gt_api_version=2 ;;
  5940. *) gt_api_version=1 ;;
  5941. esac
  5942. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  5943. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  5944.  
  5945. if test "$USE_NLS" = "yes"; then
  5946. gt_use_preinstalled_gnugettext=no
  5947.  
  5948.  
  5949. if test $gt_api_version -ge 3; then
  5950. gt_revision_test_code='
  5951. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  5952. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  5953. #endif
  5954. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  5955. '
  5956. else
  5957. gt_revision_test_code=
  5958. fi
  5959. if test $gt_api_version -ge 2; then
  5960. gt_expression_test_code=' + * ngettext ("", "", 0)'
  5961. else
  5962. gt_expression_test_code=
  5963. fi
  5964.  
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  5966. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  5967. if eval \${$gt_func_gnugettext_libc+:} false; then :
  5968. $as_echo_n "(cached) " >&6
  5969. else
  5970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5971. /* end confdefs.h. */
  5972. #include <libintl.h>
  5973. $gt_revision_test_code
  5974. extern int _nl_msg_cat_cntr;
  5975. extern int *_nl_domain_bindings;
  5976. int
  5977. main ()
  5978. {
  5979. bindtextdomain ("", "");
  5980. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  5981. ;
  5982. return 0;
  5983. }
  5984. _ACEOF
  5985. if ac_fn_c_try_link "$LINENO"; then :
  5986. eval "$gt_func_gnugettext_libc=yes"
  5987. else
  5988. eval "$gt_func_gnugettext_libc=no"
  5989. fi
  5990. rm -f core conftest.err conftest.$ac_objext \
  5991. conftest$ac_exeext conftest.$ac_ext
  5992. fi
  5993. eval ac_res=\$$gt_func_gnugettext_libc
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5995. $as_echo "$ac_res" >&6; }
  5996.  
  5997. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  5998.  
  5999.  
  6000.  
  6001.  
  6002.  
  6003. am_save_CPPFLAGS="$CPPFLAGS"
  6004.  
  6005. for element in $INCICONV; do
  6006. haveit=
  6007. for x in $CPPFLAGS; do
  6008.  
  6009. acl_save_prefix="$prefix"
  6010. prefix="$acl_final_prefix"
  6011. acl_save_exec_prefix="$exec_prefix"
  6012. exec_prefix="$acl_final_exec_prefix"
  6013. eval x=\"$x\"
  6014. exec_prefix="$acl_save_exec_prefix"
  6015. prefix="$acl_save_prefix"
  6016.  
  6017. if test "X$x" = "X$element"; then
  6018. haveit=yes
  6019. break
  6020. fi
  6021. done
  6022. if test -z "$haveit"; then
  6023. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  6024. fi
  6025. done
  6026.  
  6027.  
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  6029. $as_echo_n "checking for iconv... " >&6; }
  6030. if ${am_cv_func_iconv+:} false; then :
  6031. $as_echo_n "(cached) " >&6
  6032. else
  6033.  
  6034. am_cv_func_iconv="no, consider installing GNU libiconv"
  6035. am_cv_lib_iconv=no
  6036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6037. /* end confdefs.h. */
  6038. #include <stdlib.h>
  6039. #include <iconv.h>
  6040. int
  6041. main ()
  6042. {
  6043. iconv_t cd = iconv_open("","");
  6044. iconv(cd,NULL,NULL,NULL,NULL);
  6045. iconv_close(cd);
  6046. ;
  6047. return 0;
  6048. }
  6049. _ACEOF
  6050. if ac_fn_c_try_link "$LINENO"; then :
  6051. am_cv_func_iconv=yes
  6052. fi
  6053. rm -f core conftest.err conftest.$ac_objext \
  6054. conftest$ac_exeext conftest.$ac_ext
  6055. if test "$am_cv_func_iconv" != yes; then
  6056. am_save_LIBS="$LIBS"
  6057. LIBS="$LIBS $LIBICONV"
  6058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6059. /* end confdefs.h. */
  6060. #include <stdlib.h>
  6061. #include <iconv.h>
  6062. int
  6063. main ()
  6064. {
  6065. iconv_t cd = iconv_open("","");
  6066. iconv(cd,NULL,NULL,NULL,NULL);
  6067. iconv_close(cd);
  6068. ;
  6069. return 0;
  6070. }
  6071. _ACEOF
  6072. if ac_fn_c_try_link "$LINENO"; then :
  6073. am_cv_lib_iconv=yes
  6074. am_cv_func_iconv=yes
  6075. fi
  6076. rm -f core conftest.err conftest.$ac_objext \
  6077. conftest$ac_exeext conftest.$ac_ext
  6078. LIBS="$am_save_LIBS"
  6079. fi
  6080.  
  6081. fi
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  6083. $as_echo "$am_cv_func_iconv" >&6; }
  6084. if test "$am_cv_func_iconv" = yes; then
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  6086. $as_echo_n "checking for working iconv... " >&6; }
  6087. if ${am_cv_func_iconv_works+:} false; then :
  6088. $as_echo_n "(cached) " >&6
  6089. else
  6090.  
  6091. am_save_LIBS="$LIBS"
  6092. if test $am_cv_lib_iconv = yes; then
  6093. LIBS="$LIBS $LIBICONV"
  6094. fi
  6095. if test "$cross_compiling" = yes; then :
  6096. case "$host_os" in
  6097. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  6098. *) am_cv_func_iconv_works="guessing yes" ;;
  6099. esac
  6100. else
  6101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6102. /* end confdefs.h. */
  6103.  
  6104. #include <iconv.h>
  6105. #include <string.h>
  6106. int main ()
  6107. {
  6108. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  6109. returns. */
  6110. {
  6111. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  6112. if (cd_utf8_to_88591 != (iconv_t)(-1))
  6113. {
  6114. static const char input[] = "\342\202\254"; /* EURO SIGN */
  6115. char buf[10];
  6116. const char *inptr = input;
  6117. size_t inbytesleft = strlen (input);
  6118. char *outptr = buf;
  6119. size_t outbytesleft = sizeof (buf);
  6120. size_t res = iconv (cd_utf8_to_88591,
  6121. (char **) &inptr, &inbytesleft,
  6122. &outptr, &outbytesleft);
  6123. if (res == 0)
  6124. return 1;
  6125. }
  6126. }
  6127. /* Test against Solaris 10 bug: Failures are not distinguishable from
  6128. successful returns. */
  6129. {
  6130. iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  6131. if (cd_ascii_to_88591 != (iconv_t)(-1))
  6132. {
  6133. static const char input[] = "\263";
  6134. char buf[10];
  6135. const char *inptr = input;
  6136. size_t inbytesleft = strlen (input);
  6137. char *outptr = buf;
  6138. size_t outbytesleft = sizeof (buf);
  6139. size_t res = iconv (cd_ascii_to_88591,
  6140. (char **) &inptr, &inbytesleft,
  6141. &outptr, &outbytesleft);
  6142. if (res == 0)
  6143. return 1;
  6144. }
  6145. }
  6146. #if 0 /* This bug could be worked around by the caller. */
  6147. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  6148. {
  6149. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  6150. if (cd_88591_to_utf8 != (iconv_t)(-1))
  6151. {
  6152. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  6153. char buf[50];
  6154. const char *inptr = input;
  6155. size_t inbytesleft = strlen (input);
  6156. char *outptr = buf;
  6157. size_t outbytesleft = sizeof (buf);
  6158. size_t res = iconv (cd_88591_to_utf8,
  6159. (char **) &inptr, &inbytesleft,
  6160. &outptr, &outbytesleft);
  6161. if ((int)res > 0)
  6162. return 1;
  6163. }
  6164. }
  6165. #endif
  6166. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  6167. provided. */
  6168. if (/* Try standardized names. */
  6169. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  6170. /* Try IRIX, OSF/1 names. */
  6171. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  6172. /* Try AIX names. */
  6173. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  6174. /* Try HP-UX names. */
  6175. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  6176. return 1;
  6177. return 0;
  6178. }
  6179. _ACEOF
  6180. if ac_fn_c_try_run "$LINENO"; then :
  6181. am_cv_func_iconv_works=yes
  6182. else
  6183. am_cv_func_iconv_works=no
  6184. fi
  6185. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6186. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6187. fi
  6188.  
  6189. LIBS="$am_save_LIBS"
  6190.  
  6191. fi
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  6193. $as_echo "$am_cv_func_iconv_works" >&6; }
  6194. case "$am_cv_func_iconv_works" in
  6195. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  6196. *) am_func_iconv=yes ;;
  6197. esac
  6198. else
  6199. am_func_iconv=no am_cv_lib_iconv=no
  6200. fi
  6201. if test "$am_func_iconv" = yes; then
  6202.  
  6203. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  6204.  
  6205. fi
  6206. if test "$am_cv_lib_iconv" = yes; then
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  6208. $as_echo_n "checking how to link with libiconv... " >&6; }
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  6210. $as_echo "$LIBICONV" >&6; }
  6211. else
  6212. CPPFLAGS="$am_save_CPPFLAGS"
  6213. LIBICONV=
  6214. LTLIBICONV=
  6215. fi
  6216.  
  6217.  
  6218.  
  6219.  
  6220.  
  6221.  
  6222.  
  6223.  
  6224.  
  6225.  
  6226.  
  6227. use_additional=yes
  6228.  
  6229. acl_save_prefix="$prefix"
  6230. prefix="$acl_final_prefix"
  6231. acl_save_exec_prefix="$exec_prefix"
  6232. exec_prefix="$acl_final_exec_prefix"
  6233.  
  6234. eval additional_includedir=\"$includedir\"
  6235. eval additional_libdir=\"$libdir\"
  6236.  
  6237. exec_prefix="$acl_save_exec_prefix"
  6238. prefix="$acl_save_prefix"
  6239.  
  6240.  
  6241. # Check whether --with-libintl-prefix was given.
  6242. if test "${with_libintl_prefix+set}" = set; then :
  6243. withval=$with_libintl_prefix;
  6244. if test "X$withval" = "Xno"; then
  6245. use_additional=no
  6246. else
  6247. if test "X$withval" = "X"; then
  6248.  
  6249. acl_save_prefix="$prefix"
  6250. prefix="$acl_final_prefix"
  6251. acl_save_exec_prefix="$exec_prefix"
  6252. exec_prefix="$acl_final_exec_prefix"
  6253.  
  6254. eval additional_includedir=\"$includedir\"
  6255. eval additional_libdir=\"$libdir\"
  6256.  
  6257. exec_prefix="$acl_save_exec_prefix"
  6258. prefix="$acl_save_prefix"
  6259.  
  6260. else
  6261. additional_includedir="$withval/include"
  6262. additional_libdir="$withval/$acl_libdirstem"
  6263. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  6264. && ! test -d "$withval/$acl_libdirstem"; then
  6265. additional_libdir="$withval/$acl_libdirstem2"
  6266. fi
  6267. fi
  6268. fi
  6269.  
  6270. fi
  6271.  
  6272. LIBINTL=
  6273. LTLIBINTL=
  6274. INCINTL=
  6275. LIBINTL_PREFIX=
  6276. HAVE_LIBINTL=
  6277. rpathdirs=
  6278. ltrpathdirs=
  6279. names_already_handled=
  6280. names_next_round='intl '
  6281. while test -n "$names_next_round"; do
  6282. names_this_round="$names_next_round"
  6283. names_next_round=
  6284. for name in $names_this_round; do
  6285. already_handled=
  6286. for n in $names_already_handled; do
  6287. if test "$n" = "$name"; then
  6288. already_handled=yes
  6289. break
  6290. fi
  6291. done
  6292. if test -z "$already_handled"; then
  6293. names_already_handled="$names_already_handled $name"
  6294. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  6295. eval value=\"\$HAVE_LIB$uppername\"
  6296. if test -n "$value"; then
  6297. if test "$value" = yes; then
  6298. eval value=\"\$LIB$uppername\"
  6299. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  6300. eval value=\"\$LTLIB$uppername\"
  6301. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  6302. else
  6303. :
  6304. fi
  6305. else
  6306. found_dir=
  6307. found_la=
  6308. found_so=
  6309. found_a=
  6310. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  6311. if test -n "$acl_shlibext"; then
  6312. shrext=".$acl_shlibext" # typically: shrext=.so
  6313. else
  6314. shrext=
  6315. fi
  6316. if test $use_additional = yes; then
  6317. dir="$additional_libdir"
  6318. if test -n "$acl_shlibext"; then
  6319. if test -f "$dir/$libname$shrext"; then
  6320. found_dir="$dir"
  6321. found_so="$dir/$libname$shrext"
  6322. else
  6323. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  6324. ver=`(cd "$dir" && \
  6325. for f in "$libname$shrext".*; do echo "$f"; done \
  6326. | sed -e "s,^$libname$shrext\\\\.,," \
  6327. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  6328. | sed 1q ) 2>/dev/null`
  6329. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  6330. found_dir="$dir"
  6331. found_so="$dir/$libname$shrext.$ver"
  6332. fi
  6333. else
  6334. eval library_names=\"$acl_library_names_spec\"
  6335. for f in $library_names; do
  6336. if test -f "$dir/$f"; then
  6337. found_dir="$dir"
  6338. found_so="$dir/$f"
  6339. break
  6340. fi
  6341. done
  6342. fi
  6343. fi
  6344. fi
  6345. if test "X$found_dir" = "X"; then
  6346. if test -f "$dir/$libname.$acl_libext"; then
  6347. found_dir="$dir"
  6348. found_a="$dir/$libname.$acl_libext"
  6349. fi
  6350. fi
  6351. if test "X$found_dir" != "X"; then
  6352. if test -f "$dir/$libname.la"; then
  6353. found_la="$dir/$libname.la"
  6354. fi
  6355. fi
  6356. fi
  6357. if test "X$found_dir" = "X"; then
  6358. for x in $LDFLAGS $LTLIBINTL; do
  6359.  
  6360. acl_save_prefix="$prefix"
  6361. prefix="$acl_final_prefix"
  6362. acl_save_exec_prefix="$exec_prefix"
  6363. exec_prefix="$acl_final_exec_prefix"
  6364. eval x=\"$x\"
  6365. exec_prefix="$acl_save_exec_prefix"
  6366. prefix="$acl_save_prefix"
  6367.  
  6368. case "$x" in
  6369. -L*)
  6370. dir=`echo "X$x" | sed -e 's/^X-L//'`
  6371. if test -n "$acl_shlibext"; then
  6372. if test -f "$dir/$libname$shrext"; then
  6373. found_dir="$dir"
  6374. found_so="$dir/$libname$shrext"
  6375. else
  6376. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  6377. ver=`(cd "$dir" && \
  6378. for f in "$libname$shrext".*; do echo "$f"; done \
  6379. | sed -e "s,^$libname$shrext\\\\.,," \
  6380. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  6381. | sed 1q ) 2>/dev/null`
  6382. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  6383. found_dir="$dir"
  6384. found_so="$dir/$libname$shrext.$ver"
  6385. fi
  6386. else
  6387. eval library_names=\"$acl_library_names_spec\"
  6388. for f in $library_names; do
  6389. if test -f "$dir/$f"; then
  6390. found_dir="$dir"
  6391. found_so="$dir/$f"
  6392. break
  6393. fi
  6394. done
  6395. fi
  6396. fi
  6397. fi
  6398. if test "X$found_dir" = "X"; then
  6399. if test -f "$dir/$libname.$acl_libext"; then
  6400. found_dir="$dir"
  6401. found_a="$dir/$libname.$acl_libext"
  6402. fi
  6403. fi
  6404. if test "X$found_dir" != "X"; then
  6405. if test -f "$dir/$libname.la"; then
  6406. found_la="$dir/$libname.la"
  6407. fi
  6408. fi
  6409. ;;
  6410. esac
  6411. if test "X$found_dir" != "X"; then
  6412. break
  6413. fi
  6414. done
  6415. fi
  6416. if test "X$found_dir" != "X"; then
  6417. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  6418. if test "X$found_so" != "X"; then
  6419. if test "$enable_rpath" = no \
  6420. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  6421. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  6422. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  6423. else
  6424. haveit=
  6425. for x in $ltrpathdirs; do
  6426. if test "X$x" = "X$found_dir"; then
  6427. haveit=yes
  6428. break
  6429. fi
  6430. done
  6431. if test -z "$haveit"; then
  6432. ltrpathdirs="$ltrpathdirs $found_dir"
  6433. fi
  6434. if test "$acl_hardcode_direct" = yes; then
  6435. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  6436. else
  6437. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  6438. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  6439. haveit=
  6440. for x in $rpathdirs; do
  6441. if test "X$x" = "X$found_dir"; then
  6442. haveit=yes
  6443. break
  6444. fi
  6445. done
  6446. if test -z "$haveit"; then
  6447. rpathdirs="$rpathdirs $found_dir"
  6448. fi
  6449. else
  6450. haveit=
  6451. for x in $LDFLAGS $LIBINTL; do
  6452.  
  6453. acl_save_prefix="$prefix"
  6454. prefix="$acl_final_prefix"
  6455. acl_save_exec_prefix="$exec_prefix"
  6456. exec_prefix="$acl_final_exec_prefix"
  6457. eval x=\"$x\"
  6458. exec_prefix="$acl_save_exec_prefix"
  6459. prefix="$acl_save_prefix"
  6460.  
  6461. if test "X$x" = "X-L$found_dir"; then
  6462. haveit=yes
  6463. break
  6464. fi
  6465. done
  6466. if test -z "$haveit"; then
  6467. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  6468. fi
  6469. if test "$acl_hardcode_minus_L" != no; then
  6470. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  6471. else
  6472. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  6473. fi
  6474. fi
  6475. fi
  6476. fi
  6477. else
  6478. if test "X$found_a" != "X"; then
  6479. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  6480. else
  6481. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  6482. fi
  6483. fi
  6484. additional_includedir=
  6485. case "$found_dir" in
  6486. */$acl_libdirstem | */$acl_libdirstem/)
  6487. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  6488. if test "$name" = 'intl'; then
  6489. LIBINTL_PREFIX="$basedir"
  6490. fi
  6491. additional_includedir="$basedir/include"
  6492. ;;
  6493. */$acl_libdirstem2 | */$acl_libdirstem2/)
  6494. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  6495. if test "$name" = 'intl'; then
  6496. LIBINTL_PREFIX="$basedir"
  6497. fi
  6498. additional_includedir="$basedir/include"
  6499. ;;
  6500. esac
  6501. if test "X$additional_includedir" != "X"; then
  6502. if test "X$additional_includedir" != "X/usr/include"; then
  6503. haveit=
  6504. if test "X$additional_includedir" = "X/usr/local/include"; then
  6505. if test -n "$GCC"; then
  6506. case $host_os in
  6507. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  6508. esac
  6509. fi
  6510. fi
  6511. if test -z "$haveit"; then
  6512. for x in $CPPFLAGS $INCINTL; do
  6513.  
  6514. acl_save_prefix="$prefix"
  6515. prefix="$acl_final_prefix"
  6516. acl_save_exec_prefix="$exec_prefix"
  6517. exec_prefix="$acl_final_exec_prefix"
  6518. eval x=\"$x\"
  6519. exec_prefix="$acl_save_exec_prefix"
  6520. prefix="$acl_save_prefix"
  6521.  
  6522. if test "X$x" = "X-I$additional_includedir"; then
  6523. haveit=yes
  6524. break
  6525. fi
  6526. done
  6527. if test -z "$haveit"; then
  6528. if test -d "$additional_includedir"; then
  6529. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  6530. fi
  6531. fi
  6532. fi
  6533. fi
  6534. fi
  6535. if test -n "$found_la"; then
  6536. save_libdir="$libdir"
  6537. case "$found_la" in
  6538. */* | *\\*) . "$found_la" ;;
  6539. *) . "./$found_la" ;;
  6540. esac
  6541. libdir="$save_libdir"
  6542. for dep in $dependency_libs; do
  6543. case "$dep" in
  6544. -L*)
  6545. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  6546. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  6547. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  6548. haveit=
  6549. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  6550. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  6551. if test -n "$GCC"; then
  6552. case $host_os in
  6553. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  6554. esac
  6555. fi
  6556. fi
  6557. if test -z "$haveit"; then
  6558. haveit=
  6559. for x in $LDFLAGS $LIBINTL; do
  6560.  
  6561. acl_save_prefix="$prefix"
  6562. prefix="$acl_final_prefix"
  6563. acl_save_exec_prefix="$exec_prefix"
  6564. exec_prefix="$acl_final_exec_prefix"
  6565. eval x=\"$x\"
  6566. exec_prefix="$acl_save_exec_prefix"
  6567. prefix="$acl_save_prefix"
  6568.  
  6569. if test "X$x" = "X-L$additional_libdir"; then
  6570. haveit=yes
  6571. break
  6572. fi
  6573. done
  6574. if test -z "$haveit"; then
  6575. if test -d "$additional_libdir"; then
  6576. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  6577. fi
  6578. fi
  6579. haveit=
  6580. for x in $LDFLAGS $LTLIBINTL; do
  6581.  
  6582. acl_save_prefix="$prefix"
  6583. prefix="$acl_final_prefix"
  6584. acl_save_exec_prefix="$exec_prefix"
  6585. exec_prefix="$acl_final_exec_prefix"
  6586. eval x=\"$x\"
  6587. exec_prefix="$acl_save_exec_prefix"
  6588. prefix="$acl_save_prefix"
  6589.  
  6590. if test "X$x" = "X-L$additional_libdir"; then
  6591. haveit=yes
  6592. break
  6593. fi
  6594. done
  6595. if test -z "$haveit"; then
  6596. if test -d "$additional_libdir"; then
  6597. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  6598. fi
  6599. fi
  6600. fi
  6601. fi
  6602. ;;
  6603. -R*)
  6604. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  6605. if test "$enable_rpath" != no; then
  6606. haveit=
  6607. for x in $rpathdirs; do
  6608. if test "X$x" = "X$dir"; then
  6609. haveit=yes
  6610. break
  6611. fi
  6612. done
  6613. if test -z "$haveit"; then
  6614. rpathdirs="$rpathdirs $dir"
  6615. fi
  6616. haveit=
  6617. for x in $ltrpathdirs; do
  6618. if test "X$x" = "X$dir"; then
  6619. haveit=yes
  6620. break
  6621. fi
  6622. done
  6623. if test -z "$haveit"; then
  6624. ltrpathdirs="$ltrpathdirs $dir"
  6625. fi
  6626. fi
  6627. ;;
  6628. -l*)
  6629. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  6630. ;;
  6631. *.la)
  6632. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  6633. ;;
  6634. *)
  6635. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  6636. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  6637. ;;
  6638. esac
  6639. done
  6640. fi
  6641. else
  6642. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  6643. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  6644. fi
  6645. fi
  6646. fi
  6647. done
  6648. done
  6649. if test "X$rpathdirs" != "X"; then
  6650. if test -n "$acl_hardcode_libdir_separator"; then
  6651. alldirs=
  6652. for found_dir in $rpathdirs; do
  6653. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  6654. done
  6655. acl_save_libdir="$libdir"
  6656. libdir="$alldirs"
  6657. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  6658. libdir="$acl_save_libdir"
  6659. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  6660. else
  6661. for found_dir in $rpathdirs; do
  6662. acl_save_libdir="$libdir"
  6663. libdir="$found_dir"
  6664. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  6665. libdir="$acl_save_libdir"
  6666. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  6667. done
  6668. fi
  6669. fi
  6670. if test "X$ltrpathdirs" != "X"; then
  6671. for found_dir in $ltrpathdirs; do
  6672. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  6673. done
  6674. fi
  6675.  
  6676.  
  6677.  
  6678.  
  6679.  
  6680.  
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  6682. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  6683. if eval \${$gt_func_gnugettext_libintl+:} false; then :
  6684. $as_echo_n "(cached) " >&6
  6685. else
  6686. gt_save_CPPFLAGS="$CPPFLAGS"
  6687. CPPFLAGS="$CPPFLAGS $INCINTL"
  6688. gt_save_LIBS="$LIBS"
  6689. LIBS="$LIBS $LIBINTL"
  6690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6691. /* end confdefs.h. */
  6692. #include <libintl.h>
  6693. $gt_revision_test_code
  6694. extern int _nl_msg_cat_cntr;
  6695. extern
  6696. #ifdef __cplusplus
  6697. "C"
  6698. #endif
  6699. const char *_nl_expand_alias (const char *);
  6700. int
  6701. main ()
  6702. {
  6703. bindtextdomain ("", "");
  6704. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  6705. ;
  6706. return 0;
  6707. }
  6708. _ACEOF
  6709. if ac_fn_c_try_link "$LINENO"; then :
  6710. eval "$gt_func_gnugettext_libintl=yes"
  6711. else
  6712. eval "$gt_func_gnugettext_libintl=no"
  6713. fi
  6714. rm -f core conftest.err conftest.$ac_objext \
  6715. conftest$ac_exeext conftest.$ac_ext
  6716. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  6717. LIBS="$LIBS $LIBICONV"
  6718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6719. /* end confdefs.h. */
  6720. #include <libintl.h>
  6721. $gt_revision_test_code
  6722. extern int _nl_msg_cat_cntr;
  6723. extern
  6724. #ifdef __cplusplus
  6725. "C"
  6726. #endif
  6727. const char *_nl_expand_alias (const char *);
  6728. int
  6729. main ()
  6730. {
  6731. bindtextdomain ("", "");
  6732. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  6733. ;
  6734. return 0;
  6735. }
  6736. _ACEOF
  6737. if ac_fn_c_try_link "$LINENO"; then :
  6738. LIBINTL="$LIBINTL $LIBICONV"
  6739. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  6740. eval "$gt_func_gnugettext_libintl=yes"
  6741.  
  6742. fi
  6743. rm -f core conftest.err conftest.$ac_objext \
  6744. conftest$ac_exeext conftest.$ac_ext
  6745. fi
  6746. CPPFLAGS="$gt_save_CPPFLAGS"
  6747. LIBS="$gt_save_LIBS"
  6748. fi
  6749. eval ac_res=\$$gt_func_gnugettext_libintl
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6751. $as_echo "$ac_res" >&6; }
  6752. fi
  6753.  
  6754. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  6755. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  6756. && test "$PACKAGE" != gettext-runtime \
  6757. && test "$PACKAGE" != gettext-tools; }; then
  6758. gt_use_preinstalled_gnugettext=yes
  6759. else
  6760. LIBINTL=
  6761. LTLIBINTL=
  6762. INCINTL=
  6763. fi
  6764.  
  6765.  
  6766.  
  6767. if test -n "$INTL_MACOSX_LIBS"; then
  6768. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  6769. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  6770. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  6771. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  6772. fi
  6773. fi
  6774.  
  6775. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  6776. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  6777.  
  6778. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6779.  
  6780. else
  6781. USE_NLS=no
  6782. fi
  6783. fi
  6784.  
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  6786. $as_echo_n "checking whether to use NLS... " >&6; }
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  6788. $as_echo "$USE_NLS" >&6; }
  6789. if test "$USE_NLS" = "yes"; then
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  6791. $as_echo_n "checking where the gettext function comes from... " >&6; }
  6792. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  6793. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  6794. gt_source="external libintl"
  6795. else
  6796. gt_source="libc"
  6797. fi
  6798. else
  6799. gt_source="included intl directory"
  6800. fi
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  6802. $as_echo "$gt_source" >&6; }
  6803. fi
  6804.  
  6805. if test "$USE_NLS" = "yes"; then
  6806.  
  6807. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  6808. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  6810. $as_echo_n "checking how to link with libintl... " >&6; }
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  6812. $as_echo "$LIBINTL" >&6; }
  6813.  
  6814. for element in $INCINTL; do
  6815. haveit=
  6816. for x in $CPPFLAGS; do
  6817.  
  6818. acl_save_prefix="$prefix"
  6819. prefix="$acl_final_prefix"
  6820. acl_save_exec_prefix="$exec_prefix"
  6821. exec_prefix="$acl_final_exec_prefix"
  6822. eval x=\"$x\"
  6823. exec_prefix="$acl_save_exec_prefix"
  6824. prefix="$acl_save_prefix"
  6825.  
  6826. if test "X$x" = "X$element"; then
  6827. haveit=yes
  6828. break
  6829. fi
  6830. done
  6831. if test -z "$haveit"; then
  6832. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  6833. fi
  6834. done
  6835.  
  6836. fi
  6837.  
  6838.  
  6839. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  6840.  
  6841.  
  6842. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  6843.  
  6844. fi
  6845.  
  6846. POSUB=po
  6847. fi
  6848.  
  6849.  
  6850.  
  6851. INTLLIBS="$LIBINTL"
  6852.  
  6853.  
  6854.  
  6855.  
  6856.  
  6857.  
  6858.  
  6859.  
  6860. # Checks for programs.
  6861. # AC_PROG_CXX
  6862. for ac_prog in gawk mawk nawk awk
  6863. do
  6864. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6865. set dummy $ac_prog; ac_word=$2
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6867. $as_echo_n "checking for $ac_word... " >&6; }
  6868. if ${ac_cv_prog_AWK+:} false; then :
  6869. $as_echo_n "(cached) " >&6
  6870. else
  6871. if test -n "$AWK"; then
  6872. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  6873. else
  6874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6875. for as_dir in $PATH
  6876. do
  6877. IFS=$as_save_IFS
  6878. test -z "$as_dir" && as_dir=.
  6879. for ac_exec_ext in '' $ac_executable_extensions; do
  6880. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6881. ac_cv_prog_AWK="$ac_prog"
  6882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6883. break 2
  6884. fi
  6885. done
  6886. done
  6887. IFS=$as_save_IFS
  6888.  
  6889. fi
  6890. fi
  6891. AWK=$ac_cv_prog_AWK
  6892. if test -n "$AWK"; then
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6894. $as_echo "$AWK" >&6; }
  6895. else
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6897. $as_echo "no" >&6; }
  6898. fi
  6899.  
  6900.  
  6901. test -n "$AWK" && break
  6902. done
  6903.  
  6904. ac_ext=c
  6905. ac_cpp='$CPP $CPPFLAGS'
  6906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6907. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6909. if test -n "$ac_tool_prefix"; then
  6910. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  6911. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6913. $as_echo_n "checking for $ac_word... " >&6; }
  6914. if ${ac_cv_prog_CC+:} false; then :
  6915. $as_echo_n "(cached) " >&6
  6916. else
  6917. if test -n "$CC"; then
  6918. ac_cv_prog_CC="$CC" # Let the user override the test.
  6919. else
  6920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6921. for as_dir in $PATH
  6922. do
  6923. IFS=$as_save_IFS
  6924. test -z "$as_dir" && as_dir=.
  6925. for ac_exec_ext in '' $ac_executable_extensions; do
  6926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6927. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  6928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6929. break 2
  6930. fi
  6931. done
  6932. done
  6933. IFS=$as_save_IFS
  6934.  
  6935. fi
  6936. fi
  6937. CC=$ac_cv_prog_CC
  6938. if test -n "$CC"; then
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6940. $as_echo "$CC" >&6; }
  6941. else
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6943. $as_echo "no" >&6; }
  6944. fi
  6945.  
  6946.  
  6947. fi
  6948. if test -z "$ac_cv_prog_CC"; then
  6949. ac_ct_CC=$CC
  6950. # Extract the first word of "gcc", so it can be a program name with args.
  6951. set dummy gcc; ac_word=$2
  6952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6953. $as_echo_n "checking for $ac_word... " >&6; }
  6954. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  6955. $as_echo_n "(cached) " >&6
  6956. else
  6957. if test -n "$ac_ct_CC"; then
  6958. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  6959. else
  6960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6961. for as_dir in $PATH
  6962. do
  6963. IFS=$as_save_IFS
  6964. test -z "$as_dir" && as_dir=.
  6965. for ac_exec_ext in '' $ac_executable_extensions; do
  6966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6967. ac_cv_prog_ac_ct_CC="gcc"
  6968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6969. break 2
  6970. fi
  6971. done
  6972. done
  6973. IFS=$as_save_IFS
  6974.  
  6975. fi
  6976. fi
  6977. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  6978. if test -n "$ac_ct_CC"; then
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  6980. $as_echo "$ac_ct_CC" >&6; }
  6981. else
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6983. $as_echo "no" >&6; }
  6984. fi
  6985.  
  6986. if test "x$ac_ct_CC" = x; then
  6987. CC=""
  6988. else
  6989. case $cross_compiling:$ac_tool_warned in
  6990. yes:)
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6992. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6993. ac_tool_warned=yes ;;
  6994. esac
  6995. CC=$ac_ct_CC
  6996. fi
  6997. else
  6998. CC="$ac_cv_prog_CC"
  6999. fi
  7000.  
  7001. if test -z "$CC"; then
  7002. if test -n "$ac_tool_prefix"; then
  7003. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  7004. set dummy ${ac_tool_prefix}cc; ac_word=$2
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7006. $as_echo_n "checking for $ac_word... " >&6; }
  7007. if ${ac_cv_prog_CC+:} false; then :
  7008. $as_echo_n "(cached) " >&6
  7009. else
  7010. if test -n "$CC"; then
  7011. ac_cv_prog_CC="$CC" # Let the user override the test.
  7012. else
  7013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7014. for as_dir in $PATH
  7015. do
  7016. IFS=$as_save_IFS
  7017. test -z "$as_dir" && as_dir=.
  7018. for ac_exec_ext in '' $ac_executable_extensions; do
  7019. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7020. ac_cv_prog_CC="${ac_tool_prefix}cc"
  7021. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7022. break 2
  7023. fi
  7024. done
  7025. done
  7026. IFS=$as_save_IFS
  7027.  
  7028. fi
  7029. fi
  7030. CC=$ac_cv_prog_CC
  7031. if test -n "$CC"; then
  7032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  7033. $as_echo "$CC" >&6; }
  7034. else
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7036. $as_echo "no" >&6; }
  7037. fi
  7038.  
  7039.  
  7040. fi
  7041. fi
  7042. if test -z "$CC"; then
  7043. # Extract the first word of "cc", so it can be a program name with args.
  7044. set dummy cc; ac_word=$2
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7046. $as_echo_n "checking for $ac_word... " >&6; }
  7047. if ${ac_cv_prog_CC+:} false; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. if test -n "$CC"; then
  7051. ac_cv_prog_CC="$CC" # Let the user override the test.
  7052. else
  7053. ac_prog_rejected=no
  7054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7055. for as_dir in $PATH
  7056. do
  7057. IFS=$as_save_IFS
  7058. test -z "$as_dir" && as_dir=.
  7059. for ac_exec_ext in '' $ac_executable_extensions; do
  7060. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7061. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  7062. ac_prog_rejected=yes
  7063. continue
  7064. fi
  7065. ac_cv_prog_CC="cc"
  7066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7067. break 2
  7068. fi
  7069. done
  7070. done
  7071. IFS=$as_save_IFS
  7072.  
  7073. if test $ac_prog_rejected = yes; then
  7074. # We found a bogon in the path, so make sure we never use it.
  7075. set dummy $ac_cv_prog_CC
  7076. shift
  7077. if test $# != 0; then
  7078. # We chose a different compiler from the bogus one.
  7079. # However, it has the same basename, so the bogon will be chosen
  7080. # first if we set CC to just the basename; use the full file name.
  7081. shift
  7082. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  7083. fi
  7084. fi
  7085. fi
  7086. fi
  7087. CC=$ac_cv_prog_CC
  7088. if test -n "$CC"; then
  7089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  7090. $as_echo "$CC" >&6; }
  7091. else
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7093. $as_echo "no" >&6; }
  7094. fi
  7095.  
  7096.  
  7097. fi
  7098. if test -z "$CC"; then
  7099. if test -n "$ac_tool_prefix"; then
  7100. for ac_prog in cl.exe
  7101. do
  7102. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7103. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7105. $as_echo_n "checking for $ac_word... " >&6; }
  7106. if ${ac_cv_prog_CC+:} false; then :
  7107. $as_echo_n "(cached) " >&6
  7108. else
  7109. if test -n "$CC"; then
  7110. ac_cv_prog_CC="$CC" # Let the user override the test.
  7111. else
  7112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7113. for as_dir in $PATH
  7114. do
  7115. IFS=$as_save_IFS
  7116. test -z "$as_dir" && as_dir=.
  7117. for ac_exec_ext in '' $ac_executable_extensions; do
  7118. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7119. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  7120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7121. break 2
  7122. fi
  7123. done
  7124. done
  7125. IFS=$as_save_IFS
  7126.  
  7127. fi
  7128. fi
  7129. CC=$ac_cv_prog_CC
  7130. if test -n "$CC"; then
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  7132. $as_echo "$CC" >&6; }
  7133. else
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7135. $as_echo "no" >&6; }
  7136. fi
  7137.  
  7138.  
  7139. test -n "$CC" && break
  7140. done
  7141. fi
  7142. if test -z "$CC"; then
  7143. ac_ct_CC=$CC
  7144. for ac_prog in cl.exe
  7145. do
  7146. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7147. set dummy $ac_prog; ac_word=$2
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7149. $as_echo_n "checking for $ac_word... " >&6; }
  7150. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  7151. $as_echo_n "(cached) " >&6
  7152. else
  7153. if test -n "$ac_ct_CC"; then
  7154. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  7155. else
  7156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7157. for as_dir in $PATH
  7158. do
  7159. IFS=$as_save_IFS
  7160. test -z "$as_dir" && as_dir=.
  7161. for ac_exec_ext in '' $ac_executable_extensions; do
  7162. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7163. ac_cv_prog_ac_ct_CC="$ac_prog"
  7164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7165. break 2
  7166. fi
  7167. done
  7168. done
  7169. IFS=$as_save_IFS
  7170.  
  7171. fi
  7172. fi
  7173. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  7174. if test -n "$ac_ct_CC"; then
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  7176. $as_echo "$ac_ct_CC" >&6; }
  7177. else
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7179. $as_echo "no" >&6; }
  7180. fi
  7181.  
  7182.  
  7183. test -n "$ac_ct_CC" && break
  7184. done
  7185.  
  7186. if test "x$ac_ct_CC" = x; then
  7187. CC=""
  7188. else
  7189. case $cross_compiling:$ac_tool_warned in
  7190. yes:)
  7191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7193. ac_tool_warned=yes ;;
  7194. esac
  7195. CC=$ac_ct_CC
  7196. fi
  7197. fi
  7198.  
  7199. fi
  7200.  
  7201.  
  7202. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7203. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7204. as_fn_error $? "no acceptable C compiler found in \$PATH
  7205. See \`config.log' for more details" "$LINENO" 5; }
  7206.  
  7207. # Provide some information about the compiler.
  7208. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  7209. set X $ac_compile
  7210. ac_compiler=$2
  7211. for ac_option in --version -v -V -qversion; do
  7212. { { ac_try="$ac_compiler $ac_option >&5"
  7213. case "(($ac_try" in
  7214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7215. *) ac_try_echo=$ac_try;;
  7216. esac
  7217. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7218. $as_echo "$ac_try_echo"; } >&5
  7219. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  7220. ac_status=$?
  7221. if test -s conftest.err; then
  7222. sed '10a\
  7223. ... rest of stderr output deleted ...
  7224. 10q' conftest.err >conftest.er1
  7225. cat conftest.er1 >&5
  7226. fi
  7227. rm -f conftest.er1 conftest.err
  7228. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7229. test $ac_status = 0; }
  7230. done
  7231.  
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  7233. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  7234. if ${ac_cv_c_compiler_gnu+:} false; then :
  7235. $as_echo_n "(cached) " >&6
  7236. else
  7237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7238. /* end confdefs.h. */
  7239.  
  7240. int
  7241. main ()
  7242. {
  7243. #ifndef __GNUC__
  7244. choke me
  7245. #endif
  7246.  
  7247. ;
  7248. return 0;
  7249. }
  7250. _ACEOF
  7251. if ac_fn_c_try_compile "$LINENO"; then :
  7252. ac_compiler_gnu=yes
  7253. else
  7254. ac_compiler_gnu=no
  7255. fi
  7256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7257. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  7258.  
  7259. fi
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  7261. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  7262. if test $ac_compiler_gnu = yes; then
  7263. GCC=yes
  7264. else
  7265. GCC=
  7266. fi
  7267. ac_test_CFLAGS=${CFLAGS+set}
  7268. ac_save_CFLAGS=$CFLAGS
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  7270. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  7271. if ${ac_cv_prog_cc_g+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. ac_save_c_werror_flag=$ac_c_werror_flag
  7275. ac_c_werror_flag=yes
  7276. ac_cv_prog_cc_g=no
  7277. CFLAGS="-g"
  7278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7279. /* end confdefs.h. */
  7280.  
  7281. int
  7282. main ()
  7283. {
  7284.  
  7285. ;
  7286. return 0;
  7287. }
  7288. _ACEOF
  7289. if ac_fn_c_try_compile "$LINENO"; then :
  7290. ac_cv_prog_cc_g=yes
  7291. else
  7292. CFLAGS=""
  7293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7294. /* end confdefs.h. */
  7295.  
  7296. int
  7297. main ()
  7298. {
  7299.  
  7300. ;
  7301. return 0;
  7302. }
  7303. _ACEOF
  7304. if ac_fn_c_try_compile "$LINENO"; then :
  7305.  
  7306. else
  7307. ac_c_werror_flag=$ac_save_c_werror_flag
  7308. CFLAGS="-g"
  7309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7310. /* end confdefs.h. */
  7311.  
  7312. int
  7313. main ()
  7314. {
  7315.  
  7316. ;
  7317. return 0;
  7318. }
  7319. _ACEOF
  7320. if ac_fn_c_try_compile "$LINENO"; then :
  7321. ac_cv_prog_cc_g=yes
  7322. fi
  7323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7324. fi
  7325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7326. fi
  7327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7328. ac_c_werror_flag=$ac_save_c_werror_flag
  7329. fi
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  7331. $as_echo "$ac_cv_prog_cc_g" >&6; }
  7332. if test "$ac_test_CFLAGS" = set; then
  7333. CFLAGS=$ac_save_CFLAGS
  7334. elif test $ac_cv_prog_cc_g = yes; then
  7335. if test "$GCC" = yes; then
  7336. CFLAGS="-g -O2"
  7337. else
  7338. CFLAGS="-g"
  7339. fi
  7340. else
  7341. if test "$GCC" = yes; then
  7342. CFLAGS="-O2"
  7343. else
  7344. CFLAGS=
  7345. fi
  7346. fi
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  7348. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  7349. if ${ac_cv_prog_cc_c89+:} false; then :
  7350. $as_echo_n "(cached) " >&6
  7351. else
  7352. ac_cv_prog_cc_c89=no
  7353. ac_save_CC=$CC
  7354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7355. /* end confdefs.h. */
  7356. #include <stdarg.h>
  7357. #include <stdio.h>
  7358. struct stat;
  7359. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  7360. struct buf { int x; };
  7361. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  7362. static char *e (p, i)
  7363. char **p;
  7364. int i;
  7365. {
  7366. return p[i];
  7367. }
  7368. static char *f (char * (*g) (char **, int), char **p, ...)
  7369. {
  7370. char *s;
  7371. va_list v;
  7372. va_start (v,p);
  7373. s = g (p, va_arg (v,int));
  7374. va_end (v);
  7375. return s;
  7376. }
  7377.  
  7378. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  7379. function prototypes and stuff, but not '\xHH' hex character constants.
  7380. These don't provoke an error unfortunately, instead are silently treated
  7381. as 'x'. The following induces an error, until -std is added to get
  7382. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  7383. array size at least. It's necessary to write '\x00'==0 to get something
  7384. that's true only with -std. */
  7385. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  7386.  
  7387. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  7388. inside strings and character constants. */
  7389. #define FOO(x) 'x'
  7390. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  7391.  
  7392. int test (int i, double x);
  7393. struct s1 {int (*f) (int a);};
  7394. struct s2 {int (*f) (double a);};
  7395. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  7396. int argc;
  7397. char **argv;
  7398. int
  7399. main ()
  7400. {
  7401. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  7402. ;
  7403. return 0;
  7404. }
  7405. _ACEOF
  7406. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  7407. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  7408. do
  7409. CC="$ac_save_CC $ac_arg"
  7410. if ac_fn_c_try_compile "$LINENO"; then :
  7411. ac_cv_prog_cc_c89=$ac_arg
  7412. fi
  7413. rm -f core conftest.err conftest.$ac_objext
  7414. test "x$ac_cv_prog_cc_c89" != "xno" && break
  7415. done
  7416. rm -f conftest.$ac_ext
  7417. CC=$ac_save_CC
  7418.  
  7419. fi
  7420. # AC_CACHE_VAL
  7421. case "x$ac_cv_prog_cc_c89" in
  7422. x)
  7423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  7424. $as_echo "none needed" >&6; } ;;
  7425. xno)
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  7427. $as_echo "unsupported" >&6; } ;;
  7428. *)
  7429. CC="$CC $ac_cv_prog_cc_c89"
  7430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  7431. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  7432. esac
  7433. if test "x$ac_cv_prog_cc_c89" != xno; then :
  7434.  
  7435. fi
  7436.  
  7437. ac_ext=c
  7438. ac_cpp='$CPP $CPPFLAGS'
  7439. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7440. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7441. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7442.  
  7443. depcc="$CC" am_compiler_list=
  7444.  
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  7446. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7447. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  7448. $as_echo_n "(cached) " >&6
  7449. else
  7450. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7451. # We make a subdir and do the tests there. Otherwise we can end up
  7452. # making bogus files that we don't know about and never remove. For
  7453. # instance it was reported that on HP-UX the gcc test will end up
  7454. # making a dummy file named `D' -- because `-MD' means `put the output
  7455. # in D'.
  7456. rm -rf conftest.dir
  7457. mkdir conftest.dir
  7458. # Copy depcomp to subdir because otherwise we won't find it if we're
  7459. # using a relative directory.
  7460. cp "$am_depcomp" conftest.dir
  7461. cd conftest.dir
  7462. # We will build objects and dependencies in a subdirectory because
  7463. # it helps to detect inapplicable dependency modes. For instance
  7464. # both Tru64's cc and ICC support -MD to output dependencies as a
  7465. # side effect of compilation, but ICC will put the dependencies in
  7466. # the current directory while Tru64 will put them in the object
  7467. # directory.
  7468. mkdir sub
  7469.  
  7470. am_cv_CC_dependencies_compiler_type=none
  7471. if test "$am_compiler_list" = ""; then
  7472. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7473. fi
  7474. am__universal=false
  7475. case " $depcc " in #(
  7476. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7477. esac
  7478.  
  7479. for depmode in $am_compiler_list; do
  7480. # Setup a source with many dependencies, because some compilers
  7481. # like to wrap large dependency lists on column 80 (with \), and
  7482. # we should not choose a depcomp mode which is confused by this.
  7483. #
  7484. # We need to recreate these files for each test, as the compiler may
  7485. # overwrite some of them when testing with obscure command lines.
  7486. # This happens at least with the AIX C compiler.
  7487. : > sub/conftest.c
  7488. for i in 1 2 3 4 5 6; do
  7489. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7490. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7491. # Solaris 8's {/usr,}/bin/sh.
  7492. touch sub/conftst$i.h
  7493. done
  7494. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7495.  
  7496. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7497. # mode. It turns out that the SunPro C++ compiler does not properly
  7498. # handle `-M -o', and we need to detect this. Also, some Intel
  7499. # versions had trouble with output in subdirs
  7500. am__obj=sub/conftest.${OBJEXT-o}
  7501. am__minus_obj="-o $am__obj"
  7502. case $depmode in
  7503. gcc)
  7504. # This depmode causes a compiler race in universal mode.
  7505. test "$am__universal" = false || continue
  7506. ;;
  7507. nosideeffect)
  7508. # after this tag, mechanisms are not by side-effect, so they'll
  7509. # only be used when explicitly requested
  7510. if test "x$enable_dependency_tracking" = xyes; then
  7511. continue
  7512. else
  7513. break
  7514. fi
  7515. ;;
  7516. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  7517. # This compiler won't grok `-c -o', but also, the minuso test has
  7518. # not run yet. These depmodes are late enough in the game, and
  7519. # so weak that their functioning should not be impacted.
  7520. am__obj=conftest.${OBJEXT-o}
  7521. am__minus_obj=
  7522. ;;
  7523. none) break ;;
  7524. esac
  7525. if depmode=$depmode \
  7526. source=sub/conftest.c object=$am__obj \
  7527. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7528. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7529. >/dev/null 2>conftest.err &&
  7530. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7531. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7532. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7533. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7534. # icc doesn't choke on unknown options, it will just issue warnings
  7535. # or remarks (even with -Werror). So we grep stderr for any message
  7536. # that says an option was ignored or not supported.
  7537. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7538. # icc: Command line warning: ignoring option '-M'; no argument required
  7539. # The diagnosis changed in icc 8.0:
  7540. # icc: Command line remark: option '-MP' not supported
  7541. if (grep 'ignoring option' conftest.err ||
  7542. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7543. am_cv_CC_dependencies_compiler_type=$depmode
  7544. break
  7545. fi
  7546. fi
  7547. done
  7548.  
  7549. cd ..
  7550. rm -rf conftest.dir
  7551. else
  7552. am_cv_CC_dependencies_compiler_type=none
  7553. fi
  7554.  
  7555. fi
  7556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  7557. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  7558. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  7559.  
  7560. if
  7561. test "x$enable_dependency_tracking" != xno \
  7562. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  7563. am__fastdepCC_TRUE=
  7564. am__fastdepCC_FALSE='#'
  7565. else
  7566. am__fastdepCC_TRUE='#'
  7567. am__fastdepCC_FALSE=
  7568. fi
  7569.  
  7570.  
  7571. # AC_PROG_CPP
  7572.  
  7573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7574. $as_echo_n "checking whether ln -s works... " >&6; }
  7575. LN_S=$as_ln_s
  7576. if test "$LN_S" = "ln -s"; then
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7578. $as_echo "yes" >&6; }
  7579. else
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7581. $as_echo "no, using $LN_S" >&6; }
  7582. fi
  7583.  
  7584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  7585. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  7586. set x ${MAKE-make}
  7587. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  7588. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  7589. $as_echo_n "(cached) " >&6
  7590. else
  7591. cat >conftest.make <<\_ACEOF
  7592. SHELL = /bin/sh
  7593. all:
  7594. @echo '@@@%%%=$(MAKE)=@@@%%%'
  7595. _ACEOF
  7596. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  7597. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  7598. *@@@%%%=?*=@@@%%%*)
  7599. eval ac_cv_prog_make_${ac_make}_set=yes;;
  7600. *)
  7601. eval ac_cv_prog_make_${ac_make}_set=no;;
  7602. esac
  7603. rm -f conftest.make
  7604. fi
  7605. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  7606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7607. $as_echo "yes" >&6; }
  7608. SET_MAKE=
  7609. else
  7610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7611. $as_echo "no" >&6; }
  7612. SET_MAKE="MAKE=${MAKE-make}"
  7613. fi
  7614.  
  7615.  
  7616. # Default string definitions
  7617.  
  7618. cat >>confdefs.h <<_ACEOF
  7619. #define OS_URL "http://sourceforge.net/projects/minidlna/"
  7620. _ACEOF
  7621.  
  7622.  
  7623. cat >>confdefs.h <<_ACEOF
  7624. #define ROOTDEV_MANUFACTURER "Justin Maggard"
  7625. _ACEOF
  7626.  
  7627.  
  7628. cat >>confdefs.h <<_ACEOF
  7629. #define ROOTDEV_MANUFACTURERURL "http://www.netgear.com/"
  7630. _ACEOF
  7631.  
  7632.  
  7633. cat >>confdefs.h <<_ACEOF
  7634. #define ROOTDEV_MODELNAME "Windows Media Connect compatible (MiniDLNA)"
  7635. _ACEOF
  7636.  
  7637.  
  7638. cat >>confdefs.h <<_ACEOF
  7639. #define ROOTDEV_MODELDESCRIPTION "MiniDLNA on " OS_NAME
  7640. _ACEOF
  7641.  
  7642.  
  7643. cat >>confdefs.h <<_ACEOF
  7644. #define ROOTDEV_MODELURL OS_URL
  7645. _ACEOF
  7646.  
  7647.  
  7648.  
  7649. ################################################################################################################
  7650. # Checks for typedefs, structures, and compiler characteristics.
  7651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7652. $as_echo_n "checking for inline... " >&6; }
  7653. if ${ac_cv_c_inline+:} false; then :
  7654. $as_echo_n "(cached) " >&6
  7655. else
  7656. ac_cv_c_inline=no
  7657. for ac_kw in inline __inline__ __inline; do
  7658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7659. /* end confdefs.h. */
  7660. #ifndef __cplusplus
  7661. typedef int foo_t;
  7662. static $ac_kw foo_t static_foo () {return 0; }
  7663. $ac_kw foo_t foo () {return 0; }
  7664. #endif
  7665.  
  7666. _ACEOF
  7667. if ac_fn_c_try_compile "$LINENO"; then :
  7668. ac_cv_c_inline=$ac_kw
  7669. fi
  7670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7671. test "$ac_cv_c_inline" != no && break
  7672. done
  7673.  
  7674. fi
  7675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7676. $as_echo "$ac_cv_c_inline" >&6; }
  7677.  
  7678. case $ac_cv_c_inline in
  7679. inline | yes) ;;
  7680. *)
  7681. case $ac_cv_c_inline in
  7682. no) ac_val=;;
  7683. *) ac_val=$ac_cv_c_inline;;
  7684. esac
  7685. cat >>confdefs.h <<_ACEOF
  7686. #ifndef __cplusplus
  7687. #define inline $ac_val
  7688. #endif
  7689. _ACEOF
  7690. ;;
  7691. esac
  7692.  
  7693. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7694. if test "x$ac_cv_type_mode_t" = xyes; then :
  7695.  
  7696. else
  7697.  
  7698. cat >>confdefs.h <<_ACEOF
  7699. #define mode_t int
  7700. _ACEOF
  7701.  
  7702. fi
  7703.  
  7704. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7705. if test "x$ac_cv_type_off_t" = xyes; then :
  7706.  
  7707. else
  7708.  
  7709. cat >>confdefs.h <<_ACEOF
  7710. #define off_t long int
  7711. _ACEOF
  7712.  
  7713. fi
  7714.  
  7715. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7716. if test "x$ac_cv_type_pid_t" = xyes; then :
  7717.  
  7718. else
  7719.  
  7720. cat >>confdefs.h <<_ACEOF
  7721. #define pid_t int
  7722. _ACEOF
  7723.  
  7724. fi
  7725.  
  7726. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7727. if test "x$ac_cv_type_size_t" = xyes; then :
  7728.  
  7729. else
  7730.  
  7731. cat >>confdefs.h <<_ACEOF
  7732. #define size_t unsigned int
  7733. _ACEOF
  7734.  
  7735. fi
  7736.  
  7737. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7738. case $ac_cv_c_uint8_t in #(
  7739. no|yes) ;; #(
  7740. *)
  7741.  
  7742. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7743.  
  7744.  
  7745. cat >>confdefs.h <<_ACEOF
  7746. #define uint8_t $ac_cv_c_uint8_t
  7747. _ACEOF
  7748. ;;
  7749. esac
  7750.  
  7751. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7752. case $ac_cv_c_int32_t in #(
  7753. no|yes) ;; #(
  7754. *)
  7755.  
  7756. cat >>confdefs.h <<_ACEOF
  7757. #define int32_t $ac_cv_c_int32_t
  7758. _ACEOF
  7759. ;;
  7760. esac
  7761.  
  7762. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7763. case $ac_cv_c_uint32_t in #(
  7764. no|yes) ;; #(
  7765. *)
  7766.  
  7767. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7768.  
  7769.  
  7770. cat >>confdefs.h <<_ACEOF
  7771. #define uint32_t $ac_cv_c_uint32_t
  7772. _ACEOF
  7773. ;;
  7774. esac
  7775.  
  7776. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7777. case $ac_cv_c_uint64_t in #(
  7778. no|yes) ;; #(
  7779. *)
  7780.  
  7781. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7782.  
  7783.  
  7784. cat >>confdefs.h <<_ACEOF
  7785. #define uint64_t $ac_cv_c_uint64_t
  7786. _ACEOF
  7787. ;;
  7788. esac
  7789.  
  7790. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7791. if test "x$ac_cv_type_ssize_t" = xyes; then :
  7792.  
  7793. else
  7794.  
  7795. cat >>confdefs.h <<_ACEOF
  7796. #define ssize_t int
  7797. _ACEOF
  7798.  
  7799. fi
  7800.  
  7801. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
  7802. if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
  7803.  
  7804. cat >>confdefs.h <<_ACEOF
  7805. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  7806. _ACEOF
  7807.  
  7808.  
  7809. $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
  7810.  
  7811. else
  7812. case " $LIBOBJS " in
  7813. *" fileblocks.$ac_objext "* ) ;;
  7814. *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
  7815. ;;
  7816. esac
  7817.  
  7818. fi
  7819.  
  7820.  
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7822. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7823. if ${ac_cv_header_stdbool_h+:} false; then :
  7824. $as_echo_n "(cached) " >&6
  7825. else
  7826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7827. /* end confdefs.h. */
  7828.  
  7829. #include <stdbool.h>
  7830. #ifndef bool
  7831. "error: bool is not defined"
  7832. #endif
  7833. #ifndef false
  7834. "error: false is not defined"
  7835. #endif
  7836. #if false
  7837. "error: false is not 0"
  7838. #endif
  7839. #ifndef true
  7840. "error: true is not defined"
  7841. #endif
  7842. #if true != 1
  7843. "error: true is not 1"
  7844. #endif
  7845. #ifndef __bool_true_false_are_defined
  7846. "error: __bool_true_false_are_defined is not defined"
  7847. #endif
  7848.  
  7849. struct s { _Bool s: 1; _Bool t; } s;
  7850.  
  7851. char a[true == 1 ? 1 : -1];
  7852. char b[false == 0 ? 1 : -1];
  7853. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7854. char d[(bool) 0.5 == true ? 1 : -1];
  7855. /* See body of main program for 'e'. */
  7856. char f[(_Bool) 0.0 == false ? 1 : -1];
  7857. char g[true];
  7858. char h[sizeof (_Bool)];
  7859. char i[sizeof s.t];
  7860. enum { j = false, k = true, l = false * true, m = true * 256 };
  7861. /* The following fails for
  7862. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7863. _Bool n[m];
  7864. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7865. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7866. /* Catch a bug in an HP-UX C compiler. See
  7867. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7868. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7869. */
  7870. _Bool q = true;
  7871. _Bool *pq = &q;
  7872.  
  7873. int
  7874. main ()
  7875. {
  7876.  
  7877. bool e = &s;
  7878. *pq |= q;
  7879. *pq |= ! q;
  7880. /* Refer to every declared value, to avoid compiler optimizations. */
  7881. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7882. + !m + !n + !o + !p + !q + !pq);
  7883.  
  7884. ;
  7885. return 0;
  7886. }
  7887. _ACEOF
  7888. if ac_fn_c_try_compile "$LINENO"; then :
  7889. ac_cv_header_stdbool_h=yes
  7890. else
  7891. ac_cv_header_stdbool_h=no
  7892. fi
  7893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7894. fi
  7895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7896. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7897. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7898. if test "x$ac_cv_type__Bool" = xyes; then :
  7899.  
  7900. cat >>confdefs.h <<_ACEOF
  7901. #define HAVE__BOOL 1
  7902. _ACEOF
  7903.  
  7904.  
  7905. fi
  7906.  
  7907.  
  7908. if test $ac_cv_header_stdbool_h = yes; then
  7909.  
  7910. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7911.  
  7912. fi
  7913.  
  7914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7915. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7916. if ${ac_cv_c_bigendian+:} false; then :
  7917. $as_echo_n "(cached) " >&6
  7918. else
  7919. ac_cv_c_bigendian=unknown
  7920. # See if we're dealing with a universal compiler.
  7921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7922. /* end confdefs.h. */
  7923. #ifndef __APPLE_CC__
  7924. not a universal capable compiler
  7925. #endif
  7926. typedef int dummy;
  7927.  
  7928. _ACEOF
  7929. if ac_fn_c_try_compile "$LINENO"; then :
  7930.  
  7931. # Check for potential -arch flags. It is not universal unless
  7932. # there are at least two -arch flags with different values.
  7933. ac_arch=
  7934. ac_prev=
  7935. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7936. if test -n "$ac_prev"; then
  7937. case $ac_word in
  7938. i?86 | x86_64 | ppc | ppc64)
  7939. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7940. ac_arch=$ac_word
  7941. else
  7942. ac_cv_c_bigendian=universal
  7943. break
  7944. fi
  7945. ;;
  7946. esac
  7947. ac_prev=
  7948. elif test "x$ac_word" = "x-arch"; then
  7949. ac_prev=arch
  7950. fi
  7951. done
  7952. fi
  7953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7954. if test $ac_cv_c_bigendian = unknown; then
  7955. # See if sys/param.h defines the BYTE_ORDER macro.
  7956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7957. /* end confdefs.h. */
  7958. #include <sys/types.h>
  7959. #include <sys/param.h>
  7960.  
  7961. int
  7962. main ()
  7963. {
  7964. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7965. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7966. && LITTLE_ENDIAN)
  7967. bogus endian macros
  7968. #endif
  7969.  
  7970. ;
  7971. return 0;
  7972. }
  7973. _ACEOF
  7974. if ac_fn_c_try_compile "$LINENO"; then :
  7975. # It does; now see whether it defined to BIG_ENDIAN or not.
  7976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7977. /* end confdefs.h. */
  7978. #include <sys/types.h>
  7979. #include <sys/param.h>
  7980.  
  7981. int
  7982. main ()
  7983. {
  7984. #if BYTE_ORDER != BIG_ENDIAN
  7985. not big endian
  7986. #endif
  7987.  
  7988. ;
  7989. return 0;
  7990. }
  7991. _ACEOF
  7992. if ac_fn_c_try_compile "$LINENO"; then :
  7993. ac_cv_c_bigendian=yes
  7994. else
  7995. ac_cv_c_bigendian=no
  7996. fi
  7997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7998. fi
  7999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8000. fi
  8001. if test $ac_cv_c_bigendian = unknown; then
  8002. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  8003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8004. /* end confdefs.h. */
  8005. #include <limits.h>
  8006.  
  8007. int
  8008. main ()
  8009. {
  8010. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  8011. bogus endian macros
  8012. #endif
  8013.  
  8014. ;
  8015. return 0;
  8016. }
  8017. _ACEOF
  8018. if ac_fn_c_try_compile "$LINENO"; then :
  8019. # It does; now see whether it defined to _BIG_ENDIAN or not.
  8020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8021. /* end confdefs.h. */
  8022. #include <limits.h>
  8023.  
  8024. int
  8025. main ()
  8026. {
  8027. #ifndef _BIG_ENDIAN
  8028. not big endian
  8029. #endif
  8030.  
  8031. ;
  8032. return 0;
  8033. }
  8034. _ACEOF
  8035. if ac_fn_c_try_compile "$LINENO"; then :
  8036. ac_cv_c_bigendian=yes
  8037. else
  8038. ac_cv_c_bigendian=no
  8039. fi
  8040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8041. fi
  8042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8043. fi
  8044. if test $ac_cv_c_bigendian = unknown; then
  8045. # Compile a test program.
  8046. if test "$cross_compiling" = yes; then :
  8047. # Try to guess by grepping values from an object file.
  8048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8049. /* end confdefs.h. */
  8050. short int ascii_mm[] =
  8051. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8052. short int ascii_ii[] =
  8053. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8054. int use_ascii (int i) {
  8055. return ascii_mm[i] + ascii_ii[i];
  8056. }
  8057. short int ebcdic_ii[] =
  8058. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8059. short int ebcdic_mm[] =
  8060. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8061. int use_ebcdic (int i) {
  8062. return ebcdic_mm[i] + ebcdic_ii[i];
  8063. }
  8064. extern int foo;
  8065.  
  8066. int
  8067. main ()
  8068. {
  8069. return use_ascii (foo) == use_ebcdic (foo);
  8070. ;
  8071. return 0;
  8072. }
  8073. _ACEOF
  8074. if ac_fn_c_try_compile "$LINENO"; then :
  8075. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  8076. ac_cv_c_bigendian=yes
  8077. fi
  8078. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8079. if test "$ac_cv_c_bigendian" = unknown; then
  8080. ac_cv_c_bigendian=no
  8081. else
  8082. # finding both strings is unlikely to happen, but who knows?
  8083. ac_cv_c_bigendian=unknown
  8084. fi
  8085. fi
  8086. fi
  8087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8088. else
  8089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8090. /* end confdefs.h. */
  8091. $ac_includes_default
  8092. int
  8093. main ()
  8094. {
  8095.  
  8096. /* Are we little or big endian? From Harbison&Steele. */
  8097. union
  8098. {
  8099. long int l;
  8100. char c[sizeof (long int)];
  8101. } u;
  8102. u.l = 1;
  8103. return u.c[sizeof (long int) - 1] == 1;
  8104.  
  8105. ;
  8106. return 0;
  8107. }
  8108. _ACEOF
  8109. if ac_fn_c_try_run "$LINENO"; then :
  8110. ac_cv_c_bigendian=no
  8111. else
  8112. ac_cv_c_bigendian=yes
  8113. fi
  8114. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8115. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8116. fi
  8117.  
  8118. fi
  8119. fi
  8120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  8121. $as_echo "$ac_cv_c_bigendian" >&6; }
  8122. case $ac_cv_c_bigendian in #(
  8123. yes)
  8124. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  8125. ;; #(
  8126. no)
  8127. ;; #(
  8128. universal)
  8129.  
  8130. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  8131.  
  8132. ;; #(
  8133. *)
  8134. as_fn_error $? "unknown endianness
  8135. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  8136. esac
  8137.  
  8138.  
  8139. # Checks for library functions.
  8140. for ac_header in vfork.h
  8141. do :
  8142. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  8143. if test "x$ac_cv_header_vfork_h" = xyes; then :
  8144. cat >>confdefs.h <<_ACEOF
  8145. #define HAVE_VFORK_H 1
  8146. _ACEOF
  8147.  
  8148. fi
  8149.  
  8150. done
  8151.  
  8152. for ac_func in fork vfork
  8153. do :
  8154. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8155. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  8156. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  8157. cat >>confdefs.h <<_ACEOF
  8158. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8159. _ACEOF
  8160.  
  8161. fi
  8162. done
  8163.  
  8164. if test "x$ac_cv_func_fork" = xyes; then
  8165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  8166. $as_echo_n "checking for working fork... " >&6; }
  8167. if ${ac_cv_func_fork_works+:} false; then :
  8168. $as_echo_n "(cached) " >&6
  8169. else
  8170. if test "$cross_compiling" = yes; then :
  8171. ac_cv_func_fork_works=cross
  8172. else
  8173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8174. /* end confdefs.h. */
  8175. $ac_includes_default
  8176. int
  8177. main ()
  8178. {
  8179.  
  8180. /* By Ruediger Kuhlmann. */
  8181. return fork () < 0;
  8182.  
  8183. ;
  8184. return 0;
  8185. }
  8186. _ACEOF
  8187. if ac_fn_c_try_run "$LINENO"; then :
  8188. ac_cv_func_fork_works=yes
  8189. else
  8190. ac_cv_func_fork_works=no
  8191. fi
  8192. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8193. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8194. fi
  8195.  
  8196. fi
  8197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  8198. $as_echo "$ac_cv_func_fork_works" >&6; }
  8199.  
  8200. else
  8201. ac_cv_func_fork_works=$ac_cv_func_fork
  8202. fi
  8203. if test "x$ac_cv_func_fork_works" = xcross; then
  8204. case $host in
  8205. *-*-amigaos* | *-*-msdosdjgpp*)
  8206. # Override, as these systems have only a dummy fork() stub
  8207. ac_cv_func_fork_works=no
  8208. ;;
  8209. *)
  8210. ac_cv_func_fork_works=yes
  8211. ;;
  8212. esac
  8213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8214. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8215. fi
  8216. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8217. if test "x$ac_cv_func_vfork" = xyes; then
  8218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  8219. $as_echo_n "checking for working vfork... " >&6; }
  8220. if ${ac_cv_func_vfork_works+:} false; then :
  8221. $as_echo_n "(cached) " >&6
  8222. else
  8223. if test "$cross_compiling" = yes; then :
  8224. ac_cv_func_vfork_works=cross
  8225. else
  8226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8227. /* end confdefs.h. */
  8228. /* Thanks to Paul Eggert for this test. */
  8229. $ac_includes_default
  8230. #include <sys/wait.h>
  8231. #ifdef HAVE_VFORK_H
  8232. # include <vfork.h>
  8233. #endif
  8234. /* On some sparc systems, changes by the child to local and incoming
  8235. argument registers are propagated back to the parent. The compiler
  8236. is told about this with #include <vfork.h>, but some compilers
  8237. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8238. static variable whose address is put into a register that is
  8239. clobbered by the vfork. */
  8240. static void
  8241. #ifdef __cplusplus
  8242. sparc_address_test (int arg)
  8243. # else
  8244. sparc_address_test (arg) int arg;
  8245. #endif
  8246. {
  8247. static pid_t child;
  8248. if (!child) {
  8249. child = vfork ();
  8250. if (child < 0) {
  8251. perror ("vfork");
  8252. _exit(2);
  8253. }
  8254. if (!child) {
  8255. arg = getpid();
  8256. write(-1, "", 0);
  8257. _exit (arg);
  8258. }
  8259. }
  8260. }
  8261.  
  8262. int
  8263. main ()
  8264. {
  8265. pid_t parent = getpid ();
  8266. pid_t child;
  8267.  
  8268. sparc_address_test (0);
  8269.  
  8270. child = vfork ();
  8271.  
  8272. if (child == 0) {
  8273. /* Here is another test for sparc vfork register problems. This
  8274. test uses lots of local variables, at least as many local
  8275. variables as main has allocated so far including compiler
  8276. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8277. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8278. reuse the register of parent for one of the local variables,
  8279. since it will think that parent can't possibly be used any more
  8280. in this routine. Assigning to the local variable will thus
  8281. munge parent in the parent process. */
  8282. pid_t
  8283. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8284. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8285. /* Convince the compiler that p..p7 are live; otherwise, it might
  8286. use the same hardware register for all 8 local variables. */
  8287. if (p != p1 || p != p2 || p != p3 || p != p4
  8288. || p != p5 || p != p6 || p != p7)
  8289. _exit(1);
  8290.  
  8291. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8292. from child file descriptors. If the child closes a descriptor
  8293. before it execs or exits, this munges the parent's descriptor
  8294. as well. Test for this by closing stdout in the child. */
  8295. _exit(close(fileno(stdout)) != 0);
  8296. } else {
  8297. int status;
  8298. struct stat st;
  8299.  
  8300. while (wait(&status) != child)
  8301. ;
  8302. return (
  8303. /* Was there some problem with vforking? */
  8304. child < 0
  8305.  
  8306. /* Did the child fail? (This shouldn't happen.) */
  8307. || status
  8308.  
  8309. /* Did the vfork/compiler bug occur? */
  8310. || parent != getpid()
  8311.  
  8312. /* Did the file descriptor bug occur? */
  8313. || fstat(fileno(stdout), &st) != 0
  8314. );
  8315. }
  8316. }
  8317. _ACEOF
  8318. if ac_fn_c_try_run "$LINENO"; then :
  8319. ac_cv_func_vfork_works=yes
  8320. else
  8321. ac_cv_func_vfork_works=no
  8322. fi
  8323. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8324. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8325. fi
  8326.  
  8327. fi
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  8329. $as_echo "$ac_cv_func_vfork_works" >&6; }
  8330.  
  8331. fi;
  8332. if test "x$ac_cv_func_fork_works" = xcross; then
  8333. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8335. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8336. fi
  8337.  
  8338. if test "x$ac_cv_func_vfork_works" = xyes; then
  8339.  
  8340. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  8341.  
  8342. else
  8343.  
  8344. $as_echo "#define vfork fork" >>confdefs.h
  8345.  
  8346. fi
  8347. if test "x$ac_cv_func_fork_works" = xyes; then
  8348.  
  8349. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  8350.  
  8351. fi
  8352.  
  8353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  8354. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  8355. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  8356. $as_echo_n "(cached) " >&6
  8357. else
  8358. rm -f conftest.sym conftest.file
  8359. echo >conftest.file
  8360. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8361. if test "$cross_compiling" = yes; then :
  8362. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8363. else
  8364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8365. /* end confdefs.h. */
  8366. $ac_includes_default
  8367. int
  8368. main ()
  8369. {
  8370. struct stat sbuf;
  8371. /* Linux will dereference the symlink and fail, as required by POSIX.
  8372. That is better in the sense that it means we will not
  8373. have to compile and use the lstat wrapper. */
  8374. return lstat ("conftest.sym/", &sbuf) == 0;
  8375. ;
  8376. return 0;
  8377. }
  8378. _ACEOF
  8379. if ac_fn_c_try_run "$LINENO"; then :
  8380. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8381. else
  8382. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8383. fi
  8384. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8385. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8386. fi
  8387.  
  8388. else
  8389. # If the `ln -s' command failed, then we probably don't even
  8390. # have an lstat function.
  8391. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8392. fi
  8393. rm -f conftest.sym conftest.file
  8394.  
  8395. fi
  8396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8397. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  8398.  
  8399. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8400.  
  8401. cat >>confdefs.h <<_ACEOF
  8402. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8403. _ACEOF
  8404.  
  8405.  
  8406. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  8407. case " $LIBOBJS " in
  8408. *" lstat.$ac_objext "* ) ;;
  8409. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  8410. ;;
  8411. esac
  8412.  
  8413. fi
  8414.  
  8415. for ac_func in gethostname getifaddrs gettimeofday inet_ntoa memmove memset mkdir realpath select sendfile setlocale socket strcasecmp strchr strdup strerror strncasecmp strpbrk strrchr strstr strtol strtoul
  8416. do :
  8417. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8418. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  8419. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  8420. cat >>confdefs.h <<_ACEOF
  8421. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8422. _ACEOF
  8423.  
  8424. fi
  8425. done
  8426.  
  8427.  
  8428. ################################################################################################################
  8429. # Special include directories
  8430. case $host in
  8431. *-*-darwin*)
  8432. DARWIN_OS=1
  8433. SEARCH_DIR="/opt/local"
  8434. INCLUDE_DIR="$SEARCH_DIR/include"
  8435. ;;
  8436. *-*-solaris*)
  8437.  
  8438. $as_echo "#define SOLARIS 1" >>confdefs.h
  8439.  
  8440. ;;
  8441. *-*-cygwin*)
  8442. CYGWIN_OS=1
  8443. ;;
  8444. *-*-freebsd*)
  8445. FREEBSD_OS=1
  8446. ;;
  8447. *-*-openbsd*)
  8448. OPENBSD_OS=1
  8449. ;;
  8450. *-*-linux*)
  8451. if test -f /etc/redhat-release; then
  8452. INCLUDE_DIR="/usr/include/ffmpeg"
  8453. fi
  8454. ;;
  8455. esac
  8456.  
  8457. for ac_header in syscall.h sys/syscall.h mach/mach_time.h
  8458. do :
  8459. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8460. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8461. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8462. cat >>confdefs.h <<_ACEOF
  8463. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8464. _ACEOF
  8465.  
  8466. fi
  8467.  
  8468. done
  8469.  
  8470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __NR_clock_gettime syscall" >&5
  8471. $as_echo_n "checking for __NR_clock_gettime syscall... " >&6; }
  8472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8473. /* end confdefs.h. */
  8474.  
  8475. #include <asm/unistd.h>
  8476.  
  8477. int
  8478. main ()
  8479. {
  8480.  
  8481. #ifndef __NR_clock_gettime
  8482. #error
  8483. #endif
  8484.  
  8485.  
  8486. ;
  8487. return 0;
  8488. }
  8489. _ACEOF
  8490. if ac_fn_c_try_compile "$LINENO"; then :
  8491.  
  8492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8493. $as_echo "yes" >&6; }
  8494.  
  8495. $as_echo "#define HAVE_CLOCK_GETTIME_SYSCALL 1" >>confdefs.h
  8496.  
  8497.  
  8498. else
  8499.  
  8500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8501. $as_echo "no" >&6; }
  8502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  8503. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  8504. if ${ac_cv_search_clock_gettime+:} false; then :
  8505. $as_echo_n "(cached) " >&6
  8506. else
  8507. ac_func_search_save_LIBS=$LIBS
  8508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8509. /* end confdefs.h. */
  8510.  
  8511. /* Override any GCC internal prototype to avoid an error.
  8512. Use char because int might match the return type of a GCC
  8513. builtin and then its argument prototype would still apply. */
  8514. #ifdef __cplusplus
  8515. extern "C"
  8516. #endif
  8517. char clock_gettime ();
  8518. int
  8519. main ()
  8520. {
  8521. return clock_gettime ();
  8522. ;
  8523. return 0;
  8524. }
  8525. _ACEOF
  8526. for ac_lib in '' rt; do
  8527. if test -z "$ac_lib"; then
  8528. ac_res="none required"
  8529. else
  8530. ac_res=-l$ac_lib
  8531. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8532. fi
  8533. if ac_fn_c_try_link "$LINENO"; then :
  8534. ac_cv_search_clock_gettime=$ac_res
  8535. fi
  8536. rm -f core conftest.err conftest.$ac_objext \
  8537. conftest$ac_exeext
  8538. if ${ac_cv_search_clock_gettime+:} false; then :
  8539. break
  8540. fi
  8541. done
  8542. if ${ac_cv_search_clock_gettime+:} false; then :
  8543.  
  8544. else
  8545. ac_cv_search_clock_gettime=no
  8546. fi
  8547. rm conftest.$ac_ext
  8548. LIBS=$ac_func_search_save_LIBS
  8549. fi
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  8551. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  8552. ac_res=$ac_cv_search_clock_gettime
  8553. if test "$ac_res" != no; then :
  8554. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8555.  
  8556. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  8557.  
  8558. fi
  8559.  
  8560.  
  8561. fi
  8562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8563.  
  8564. ################################################################################################################
  8565. ### Library checks
  8566.  
  8567. CPPFLAGS_SAVE="$CPPFLAGS"
  8568. for dir in "" /usr/local $INCLUDE_DIR; do
  8569. if test -n "$dir"; then
  8570. CPPFLAGS="$CPPFLAGS_SAVE -I$dir"
  8571. fi
  8572. for ac_header in libavutil/avutil.h ffmpeg/libavutil/avutil.h libav/libavutil/avutil.h avutil.h ffmpeg/avutil.h libav/avutil.h
  8573. do :
  8574. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8575. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8576. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8577. cat >>confdefs.h <<_ACEOF
  8578. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8579. _ACEOF
  8580. HAVE_LIBAVUTIL=1
  8581. fi
  8582.  
  8583. done
  8584.  
  8585. if test -z "$HAVE_LIBAVUTIL"; then
  8586. unset ac_cv_header_avutil_h
  8587. unset ac_cv_header_libavutil_avutil_h
  8588. unset ac_cv_header_ffmpeg_avutil_h
  8589. unset ac_cv_header_ffmpeg_libavutil_avutil_h
  8590. unset ac_cv_header_libav_avutil_h
  8591. unset ac_cv_header_libav_libavutil_avutil_h
  8592. continue
  8593. fi
  8594. break
  8595. done
  8596. if test -z "$HAVE_LIBAVUTIL"; then
  8597. as_fn_error $? "libavutil headers not found or not usable" "$LINENO" 5
  8598. fi
  8599.  
  8600. CPPFLAGS_SAVE="$CPPFLAGS"
  8601. for dir in "" /usr/local $INCLUDE_DIR; do
  8602. if test -n "$dir"; then
  8603. CPPFLAGS="$CPPFLAGS_SAVE -I$dir"
  8604. fi
  8605. for ac_header in libavcodec/avcodec.h ffmpeg/libavcodec/avcodec.h libav/libavcodec/avcodec.h avcodec.h ffmpeg/avcodec.h libav/avcodec.h
  8606. do :
  8607. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8608. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8609. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8610. cat >>confdefs.h <<_ACEOF
  8611. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8612. _ACEOF
  8613. HAVE_LIBAVCODEC=1
  8614. fi
  8615.  
  8616. done
  8617.  
  8618. if test -z "$HAVE_LIBAVCODEC"; then
  8619. unset ac_cv_header_avcodec_h
  8620. unset ac_cv_header_libavcodec_avcodec_h
  8621. unset ac_cv_header_ffmpeg_avcodec_h
  8622. unset ac_cv_header_ffmpeg_libavcodec_avcodec_h
  8623. unset ac_cv_header_libav_avcodec_h
  8624. unset ac_cv_header_libav_libavcodec_avcodec_h
  8625. continue
  8626. fi
  8627. break
  8628. done
  8629. if test -z "$HAVE_LIBAVCODEC"; then
  8630. as_fn_error $? "libavcodec headers not found or not usable" "$LINENO" 5
  8631. fi
  8632.  
  8633. CPPFLAGS_SAVE="$CPPFLAGS"
  8634. for dir in "" /usr/local $INCLUDE_DIR; do
  8635. if test -n "$dir"; then
  8636. CPPFLAGS="$CPPFLAGS_SAVE -I$dir"
  8637. fi
  8638. for ac_header in libavformat/avformat.h ffmpeg/libavformat/avformat.h libav/libavformat/avformat.h avformat.h ffmpeg/avformat.h libav/avformat.h
  8639. do :
  8640. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8641. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8642. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8643. cat >>confdefs.h <<_ACEOF
  8644. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8645. _ACEOF
  8646. HAVE_LIBAVFORMAT=1
  8647. fi
  8648.  
  8649. done
  8650.  
  8651. if test -z "$HAVE_LIBAVFORMAT"; then
  8652. unset ac_cv_header_avformat_h
  8653. unset ac_cv_header_libavformat_avformat_h
  8654. unset ac_cv_header_ffmpeg_avformat_h
  8655. unset ac_cv_header_ffmpeg_libavformat_avformat_h
  8656. unset ac_cv_header_libav_avformat_h
  8657. unset ac_cv_header_libav_libavformat_avformat_h
  8658. continue
  8659. fi
  8660. break
  8661. done
  8662. if test -z "$HAVE_LIBAVFORMAT"; then
  8663. as_fn_error $? "libavformat headers not found or not usable" "$LINENO" 5
  8664. fi
  8665.  
  8666. CPPFLAGS_SAVE="$CPPFLAGS"
  8667. for dir in "" /usr/local $INCLUDE_DIR; do
  8668. if test -n "$dir"; then
  8669. CPPFLAGS="$CPPFLAGS -I$dir"
  8670. fi
  8671. for ac_header in jpeglib.h sqlite3.h libexif/exif-loader.h id3tag.h ogg/ogg.h vorbis/codec.h FLAC/metadata.h
  8672. do :
  8673. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8674. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8675. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8676. cat >>confdefs.h <<_ACEOF
  8677. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8678. _ACEOF
  8679.  
  8680. else
  8681. unset $as_ac_Header; break
  8682. fi
  8683.  
  8684. done
  8685.  
  8686. if test x"$ac_cv_header_jpeglib_h" != x"yes"; then
  8687. CPPFLAGS="$CPPFLAGS_SAVE"
  8688. continue
  8689. elif test x"$ac_cv_header_sqlite3_h" != x"yes"; then
  8690. CPPFLAGS="$CPPFLAGS_SAVE"
  8691. continue
  8692. elif test x"$ac_cv_header_libexif_exif_loader_h" != x"yes"; then
  8693. CPPFLAGS="$CPPFLAGS_SAVE"
  8694. continue
  8695. elif test x"$ac_cv_header_id3tag_h" != x"yes"; then
  8696. CPPFLAGS="$CPPFLAGS_SAVE"
  8697. continue
  8698. elif test x"$ac_cv_header_ogg_ogg_h" != x"yes"; then
  8699. CPPFLAGS="$CPPFLAGS_SAVE"
  8700. continue
  8701. elif test x"$ac_cv_header_vorbis_codec_h" != x"yes"; then
  8702. CPPFLAGS="$CPPFLAGS_SAVE"
  8703. continue
  8704. elif test x"$ac_cv_header_FLAC_metadata_h" != x"yes"; then
  8705. CPPFLAGS="$CPPFLAGS_SAVE"
  8706. continue
  8707. else
  8708. break;
  8709. fi
  8710. done
  8711. test x"$ac_cv_header_jpeglib_h" != x"yes" && as_fn_error $? "libjpeg headers not found or not usable" "$LINENO" 5
  8712. test x"$ac_cv_header_sqlite3_h" != x"yes" && as_fn_error $? "libsqlite3 headers not found or not usable" "$LINENO" 5
  8713. test x"$ac_cv_header_libexif_exif_loader_h" != x"yes" && as_fn_error $? "libexif headers not found or not usable" "$LINENO" 5
  8714. test x"$ac_cv_header_id3tag_h" != x"yes" && as_fn_error $? "libid3tag headers not found or not usable" "$LINENO" 5
  8715. test x"$ac_cv_header_ogg_ogg_h" != x"yes" && as_fn_error $? "libogg headers not found or not usable" "$LINENO" 5
  8716. test x"$ac_cv_header_vorbis_codec_h" != x"yes" && as_fn_error $? "libvorbis headers not found or not usable" "$LINENO" 5
  8717. test x"$ac_cv_header_FLAC_metadata_h" != x"yes" && as_fn_error $? "libFLAC headers not found or not usable" "$LINENO" 5
  8718.  
  8719. CFLAGS_SAVE="$CFLAGS"
  8720. CFLAGS="$CFLAGS -Wall -Werror"
  8721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the daemon() libc function" >&5
  8722. $as_echo_n "checking if we should use the daemon() libc function... " >&6; }
  8723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8724. /* end confdefs.h. */
  8725.  
  8726. #include <stdlib.h>
  8727. #include <unistd.h>
  8728.  
  8729. int
  8730. main ()
  8731. {
  8732.  
  8733. return daemon(0, 0);
  8734.  
  8735.  
  8736. ;
  8737. return 0;
  8738. }
  8739. _ACEOF
  8740. if ac_fn_c_try_compile "$LINENO"; then :
  8741.  
  8742.  
  8743. $as_echo "#define USE_DAEMON 1" >>confdefs.h
  8744.  
  8745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8746. $as_echo "yes" >&6; }
  8747.  
  8748. else
  8749.  
  8750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8751. $as_echo "no" >&6; }
  8752.  
  8753. fi
  8754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8755.  
  8756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scandir declaration requires const char cast" >&5
  8757. $as_echo_n "checking if scandir declaration requires const char cast... " >&6; }
  8758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8759. /* end confdefs.h. */
  8760.  
  8761. #include <stdlib.h>
  8762. #include <sys/types.h>
  8763. #include <dirent.h>
  8764.  
  8765. int
  8766. main ()
  8767. {
  8768.  
  8769. int filter(struct dirent *d);
  8770. struct dirent **ptr = NULL;
  8771. char *name = NULL;
  8772. (void)scandir(name, &ptr, filter, alphasort);
  8773.  
  8774.  
  8775. ;
  8776. return 0;
  8777. }
  8778. _ACEOF
  8779. if ac_fn_c_try_compile "$LINENO"; then :
  8780.  
  8781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8782. $as_echo "no" >&6; }
  8783.  
  8784. else
  8785.  
  8786.  
  8787. $as_echo "#define SCANDIR_CONST 1" >>confdefs.h
  8788.  
  8789.  
  8790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8791. $as_echo "yes" >&6; }
  8792.  
  8793. fi
  8794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8795.  
  8796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linux sendfile support" >&5
  8797. $as_echo_n "checking for linux sendfile support... " >&6; }
  8798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8799. /* end confdefs.h. */
  8800.  
  8801. #include <sys/types.h>
  8802. #include <sys/sendfile.h>
  8803.  
  8804. int
  8805. main ()
  8806. {
  8807.  
  8808. int tofd = 0, fromfd = 0;
  8809. off_t offset;
  8810. size_t total = 0;
  8811. ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
  8812. return nwritten;
  8813.  
  8814.  
  8815. ;
  8816. return 0;
  8817. }
  8818. _ACEOF
  8819. if ac_fn_c_try_compile "$LINENO"; then :
  8820.  
  8821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8822. $as_echo "yes" >&6; }
  8823.  
  8824. $as_echo "#define HAVE_LINUX_SENDFILE_API 1" >>confdefs.h
  8825.  
  8826.  
  8827. else
  8828.  
  8829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8830. $as_echo "no" >&6; }
  8831.  
  8832. fi
  8833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8834.  
  8835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for darwin sendfile support" >&5
  8836. $as_echo_n "checking for darwin sendfile support... " >&6; }
  8837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8838. /* end confdefs.h. */
  8839.  
  8840. #include <stdlib.h>
  8841. #include <sys/types.h>
  8842. #include <sys/socket.h>
  8843. #include <sys/uio.h>
  8844.  
  8845. int
  8846. main ()
  8847. {
  8848.  
  8849. int fd = 0, s = 0;
  8850. off_t offset = 0, len;
  8851. struct sf_hdtr *hdtr = NULL;
  8852. int flags = 0;
  8853. int ret;
  8854. ret = sendfile(fd, s, offset, &len, hdtr, flags);
  8855. return ret;
  8856.  
  8857.  
  8858. ;
  8859. return 0;
  8860. }
  8861. _ACEOF
  8862. if ac_fn_c_try_compile "$LINENO"; then :
  8863.  
  8864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8865. $as_echo "yes" >&6; }
  8866.  
  8867. $as_echo "#define HAVE_DARWIN_SENDFILE_API 1" >>confdefs.h
  8868.  
  8869.  
  8870. else
  8871.  
  8872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8873. $as_echo "no" >&6; }
  8874.  
  8875. fi
  8876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8877.  
  8878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freebsd sendfile support" >&5
  8879. $as_echo_n "checking for freebsd sendfile support... " >&6; }
  8880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8881. /* end confdefs.h. */
  8882.  
  8883. #include <stdlib.h>
  8884. #include <sys/types.h>
  8885. #include <sys/socket.h>
  8886. #include <sys/uio.h>
  8887.  
  8888. int
  8889. main ()
  8890. {
  8891.  
  8892. int fromfd=0, tofd=0, ret, total=0;
  8893. off_t offset=0, nwritten;
  8894. struct sf_hdtr hdr;
  8895. struct iovec hdtrl;
  8896. hdr.headers = &hdtrl;
  8897. hdr.hdr_cnt = 1;
  8898. hdr.trailers = NULL;
  8899. hdr.trl_cnt = 0;
  8900. hdtrl.iov_base = NULL;
  8901. hdtrl.iov_len = 0;
  8902. ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
  8903.  
  8904.  
  8905. ;
  8906. return 0;
  8907. }
  8908. _ACEOF
  8909. if ac_fn_c_try_compile "$LINENO"; then :
  8910.  
  8911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8912. $as_echo "yes" >&6; }
  8913.  
  8914. $as_echo "#define HAVE_FREEBSD_SENDFILE_API 1" >>confdefs.h
  8915.  
  8916.  
  8917. else
  8918.  
  8919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8920. $as_echo "no" >&6; }
  8921.  
  8922. fi
  8923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8924. CFLAGS="$CFLAGS_SAVE"
  8925.  
  8926. LDFLAGS_SAVE="$LDFLAGS"
  8927. for dir in "" /usr/local $SEARCH_DIR; do
  8928. if test -n "$dir"; then
  8929. LDFLAGS="$LDFLAGS -L$dir/lib"
  8930. fi
  8931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5
  8932. $as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; }
  8933. if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then :
  8934. $as_echo_n "(cached) " >&6
  8935. else
  8936. ac_check_lib_save_LIBS=$LIBS
  8937. LIBS="-ljpeg $LIBS"
  8938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8939. /* end confdefs.h. */
  8940.  
  8941. /* Override any GCC internal prototype to avoid an error.
  8942. Use char because int might match the return type of a GCC
  8943. builtin and then its argument prototype would still apply. */
  8944. #ifdef __cplusplus
  8945. extern "C"
  8946. #endif
  8947. char jpeg_set_defaults ();
  8948. int
  8949. main ()
  8950. {
  8951. return jpeg_set_defaults ();
  8952. ;
  8953. return 0;
  8954. }
  8955. _ACEOF
  8956. if ac_fn_c_try_link "$LINENO"; then :
  8957. ac_cv_lib_jpeg_jpeg_set_defaults=yes
  8958. else
  8959. ac_cv_lib_jpeg_jpeg_set_defaults=no
  8960. fi
  8961. rm -f core conftest.err conftest.$ac_objext \
  8962. conftest$ac_exeext conftest.$ac_ext
  8963. LIBS=$ac_check_lib_save_LIBS
  8964. fi
  8965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5
  8966. $as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; }
  8967. if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then :
  8968. LIBJPEG_LIBS="-ljpeg"
  8969. else
  8970. unset ac_cv_lib_jpeg_jpeg_set_defaults; LDFLAGS="$LDFLAGS_SAVE"; continue
  8971. fi
  8972.  
  8973. break
  8974. done
  8975. test x"$ac_cv_lib_jpeg_jpeg_set_defaults" = x"yes" || as_fn_error $? "Could not find libjpeg" "$LINENO" 5
  8976.  
  8977.  
  8978. LDFLAGS_SAVE="$LDFLAGS"
  8979. for dir in "" /usr/local $SEARCH_DIR; do
  8980. if test -n "$dir"; then
  8981. LDFLAGS="$LDFLAGS -L$dir/lib"
  8982. fi
  8983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exif_data_new_from_file in -lexif" >&5
  8984. $as_echo_n "checking for exif_data_new_from_file in -lexif... " >&6; }
  8985. if ${ac_cv_lib_exif_exif_data_new_from_file+:} false; then :
  8986. $as_echo_n "(cached) " >&6
  8987. else
  8988. ac_check_lib_save_LIBS=$LIBS
  8989. LIBS="-lexif $LIBS"
  8990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8991. /* end confdefs.h. */
  8992.  
  8993. /* Override any GCC internal prototype to avoid an error.
  8994. Use char because int might match the return type of a GCC
  8995. builtin and then its argument prototype would still apply. */
  8996. #ifdef __cplusplus
  8997. extern "C"
  8998. #endif
  8999. char exif_data_new_from_file ();
  9000. int
  9001. main ()
  9002. {
  9003. return exif_data_new_from_file ();
  9004. ;
  9005. return 0;
  9006. }
  9007. _ACEOF
  9008. if ac_fn_c_try_link "$LINENO"; then :
  9009. ac_cv_lib_exif_exif_data_new_from_file=yes
  9010. else
  9011. ac_cv_lib_exif_exif_data_new_from_file=no
  9012. fi
  9013. rm -f core conftest.err conftest.$ac_objext \
  9014. conftest$ac_exeext conftest.$ac_ext
  9015. LIBS=$ac_check_lib_save_LIBS
  9016. fi
  9017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_exif_exif_data_new_from_file" >&5
  9018. $as_echo "$ac_cv_lib_exif_exif_data_new_from_file" >&6; }
  9019. if test "x$ac_cv_lib_exif_exif_data_new_from_file" = xyes; then :
  9020. LIBEXIF_LIBS="-lexif"
  9021. else
  9022. unset ac_cv_lib_exif_exif_data_new_from_file; LDFLAGS="$LDFLAGS_SAVE"; continue
  9023. fi
  9024.  
  9025. break
  9026. done
  9027. test x"$ac_cv_lib_jpeg_jpeg_set_defaults" = x"yes" || as_fn_error $? "Could not find libexif" "$LINENO" 5
  9028.  
  9029.  
  9030. LDFLAGS_SAVE="$LDFLAGS"
  9031. for dir in "" /usr/local $SEARCH_DIR; do
  9032. if test -n "$dir"; then
  9033. LDFLAGS="$LDFLAGS -L$dir/lib"
  9034. fi
  9035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3_file_open in -lid3tag" >&5
  9036. $as_echo_n "checking for id3_file_open in -lid3tag... " >&6; }
  9037. if ${ac_cv_lib_id3tag_id3_file_open+:} false; then :
  9038. $as_echo_n "(cached) " >&6
  9039. else
  9040. ac_check_lib_save_LIBS=$LIBS
  9041. LIBS="-lid3tag $LIBS"
  9042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9043. /* end confdefs.h. */
  9044.  
  9045. /* Override any GCC internal prototype to avoid an error.
  9046. Use char because int might match the return type of a GCC
  9047. builtin and then its argument prototype would still apply. */
  9048. #ifdef __cplusplus
  9049. extern "C"
  9050. #endif
  9051. char id3_file_open ();
  9052. int
  9053. main ()
  9054. {
  9055. return id3_file_open ();
  9056. ;
  9057. return 0;
  9058. }
  9059. _ACEOF
  9060. if ac_fn_c_try_link "$LINENO"; then :
  9061. ac_cv_lib_id3tag_id3_file_open=yes
  9062. else
  9063. ac_cv_lib_id3tag_id3_file_open=no
  9064. fi
  9065. rm -f core conftest.err conftest.$ac_objext \
  9066. conftest$ac_exeext conftest.$ac_ext
  9067. LIBS=$ac_check_lib_save_LIBS
  9068. fi
  9069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_id3tag_id3_file_open" >&5
  9070. $as_echo "$ac_cv_lib_id3tag_id3_file_open" >&6; }
  9071. if test "x$ac_cv_lib_id3tag_id3_file_open" = xyes; then :
  9072. LIBID3TAG_LIBS="-lid3tag"
  9073. else
  9074. unset ac_cv_lib_id3tag_id3_file_open; LDFLAGS="$LDFLAGS_SAVE"; continue
  9075. fi
  9076.  
  9077. break
  9078. done
  9079. test x"$ac_cv_lib_id3tag_id3_file_open" = x"yes" || as_fn_error $? "Could not find libid3tag" "$LINENO" 5
  9080.  
  9081.  
  9082. LDFLAGS_SAVE="$LDFLAGS"
  9083. for dir in "" /usr/local $SEARCH_DIR; do
  9084. if test -n "$dir"; then
  9085. LDFLAGS="$LDFLAGS -L$dir/lib"
  9086. fi
  9087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  9088. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  9089. if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
  9090. $as_echo_n "(cached) " >&6
  9091. else
  9092. ac_check_lib_save_LIBS=$LIBS
  9093. LIBS="-lsqlite3 $LIBS"
  9094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9095. /* end confdefs.h. */
  9096.  
  9097. /* Override any GCC internal prototype to avoid an error.
  9098. Use char because int might match the return type of a GCC
  9099. builtin and then its argument prototype would still apply. */
  9100. #ifdef __cplusplus
  9101. extern "C"
  9102. #endif
  9103. char sqlite3_open ();
  9104. int
  9105. main ()
  9106. {
  9107. return sqlite3_open ();
  9108. ;
  9109. return 0;
  9110. }
  9111. _ACEOF
  9112. if ac_fn_c_try_link "$LINENO"; then :
  9113. ac_cv_lib_sqlite3_sqlite3_open=yes
  9114. else
  9115. ac_cv_lib_sqlite3_sqlite3_open=no
  9116. fi
  9117. rm -f core conftest.err conftest.$ac_objext \
  9118. conftest$ac_exeext conftest.$ac_ext
  9119. LIBS=$ac_check_lib_save_LIBS
  9120. fi
  9121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  9122. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  9123. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
  9124. LIBSQLITE3_LIBS="-lsqlite3"
  9125. else
  9126. unset ac_cv_lib_sqlite3_sqlite3_open; LDFLAGS="$LDFLAGS_SAVE"; continue
  9127. fi
  9128.  
  9129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_malloc in -lsqlite3" >&5
  9130. $as_echo_n "checking for sqlite3_malloc in -lsqlite3... " >&6; }
  9131. if ${ac_cv_lib_sqlite3_sqlite3_malloc+:} false; then :
  9132. $as_echo_n "(cached) " >&6
  9133. else
  9134. ac_check_lib_save_LIBS=$LIBS
  9135. LIBS="-lsqlite3 $LIBS"
  9136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9137. /* end confdefs.h. */
  9138.  
  9139. /* Override any GCC internal prototype to avoid an error.
  9140. Use char because int might match the return type of a GCC
  9141. builtin and then its argument prototype would still apply. */
  9142. #ifdef __cplusplus
  9143. extern "C"
  9144. #endif
  9145. char sqlite3_malloc ();
  9146. int
  9147. main ()
  9148. {
  9149. return sqlite3_malloc ();
  9150. ;
  9151. return 0;
  9152. }
  9153. _ACEOF
  9154. if ac_fn_c_try_link "$LINENO"; then :
  9155. ac_cv_lib_sqlite3_sqlite3_malloc=yes
  9156. else
  9157. ac_cv_lib_sqlite3_sqlite3_malloc=no
  9158. fi
  9159. rm -f core conftest.err conftest.$ac_objext \
  9160. conftest$ac_exeext conftest.$ac_ext
  9161. LIBS=$ac_check_lib_save_LIBS
  9162. fi
  9163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_malloc" >&5
  9164. $as_echo "$ac_cv_lib_sqlite3_sqlite3_malloc" >&6; }
  9165. if test "x$ac_cv_lib_sqlite3_sqlite3_malloc" = xyes; then :
  9166.  
  9167. $as_echo "#define HAVE_SQLITE3_MALLOC 1" >>confdefs.h
  9168.  
  9169. fi
  9170.  
  9171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5
  9172. $as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; }
  9173. if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false; then :
  9174. $as_echo_n "(cached) " >&6
  9175. else
  9176. ac_check_lib_save_LIBS=$LIBS
  9177. LIBS="-lsqlite3 $LIBS"
  9178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9179. /* end confdefs.h. */
  9180.  
  9181. /* Override any GCC internal prototype to avoid an error.
  9182. Use char because int might match the return type of a GCC
  9183. builtin and then its argument prototype would still apply. */
  9184. #ifdef __cplusplus
  9185. extern "C"
  9186. #endif
  9187. char sqlite3_prepare_v2 ();
  9188. int
  9189. main ()
  9190. {
  9191. return sqlite3_prepare_v2 ();
  9192. ;
  9193. return 0;
  9194. }
  9195. _ACEOF
  9196. if ac_fn_c_try_link "$LINENO"; then :
  9197. ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes
  9198. else
  9199. ac_cv_lib_sqlite3_sqlite3_prepare_v2=no
  9200. fi
  9201. rm -f core conftest.err conftest.$ac_objext \
  9202. conftest$ac_exeext conftest.$ac_ext
  9203. LIBS=$ac_check_lib_save_LIBS
  9204. fi
  9205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5
  9206. $as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; }
  9207. if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes; then :
  9208.  
  9209. $as_echo "#define HAVE_SQLITE3_PREPARE_V2 1" >>confdefs.h
  9210.  
  9211. fi
  9212.  
  9213. break
  9214. done
  9215. test x"$ac_cv_lib_sqlite3_sqlite3_open" = x"yes" || as_fn_error $? "Could not find libsqlite3" "$LINENO" 5
  9216.  
  9217.  
  9218. LDFLAGS_SAVE="$LDFLAGS"
  9219. for dir in "" /usr/local $SEARCH_DIR; do
  9220. if test -n "$dir"; then
  9221. LDFLAGS="$LDFLAGS -L$dir/lib"
  9222. fi
  9223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_open_input_file in -lavformat" >&5
  9224. $as_echo_n "checking for av_open_input_file in -lavformat... " >&6; }
  9225. if ${ac_cv_lib_avformat_av_open_input_file+:} false; then :
  9226. $as_echo_n "(cached) " >&6
  9227. else
  9228. ac_check_lib_save_LIBS=$LIBS
  9229. LIBS="-lavformat $LIBS"
  9230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9231. /* end confdefs.h. */
  9232.  
  9233. /* Override any GCC internal prototype to avoid an error.
  9234. Use char because int might match the return type of a GCC
  9235. builtin and then its argument prototype would still apply. */
  9236. #ifdef __cplusplus
  9237. extern "C"
  9238. #endif
  9239. char av_open_input_file ();
  9240. int
  9241. main ()
  9242. {
  9243. return av_open_input_file ();
  9244. ;
  9245. return 0;
  9246. }
  9247. _ACEOF
  9248. if ac_fn_c_try_link "$LINENO"; then :
  9249. ac_cv_lib_avformat_av_open_input_file=yes
  9250. else
  9251. ac_cv_lib_avformat_av_open_input_file=no
  9252. fi
  9253. rm -f core conftest.err conftest.$ac_objext \
  9254. conftest$ac_exeext conftest.$ac_ext
  9255. LIBS=$ac_check_lib_save_LIBS
  9256. fi
  9257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_open_input_file" >&5
  9258. $as_echo "$ac_cv_lib_avformat_av_open_input_file" >&6; }
  9259. if test "x$ac_cv_lib_avformat_av_open_input_file" = xyes; then :
  9260. LIBAVFORMAT_LIBS="-lavformat"
  9261. else
  9262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avformat_open_input in -lavformat" >&5
  9263. $as_echo_n "checking for avformat_open_input in -lavformat... " >&6; }
  9264. if ${ac_cv_lib_avformat_avformat_open_input+:} false; then :
  9265. $as_echo_n "(cached) " >&6
  9266. else
  9267. ac_check_lib_save_LIBS=$LIBS
  9268. LIBS="-lavformat $LIBS"
  9269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9270. /* end confdefs.h. */
  9271.  
  9272. /* Override any GCC internal prototype to avoid an error.
  9273. Use char because int might match the return type of a GCC
  9274. builtin and then its argument prototype would still apply. */
  9275. #ifdef __cplusplus
  9276. extern "C"
  9277. #endif
  9278. char avformat_open_input ();
  9279. int
  9280. main ()
  9281. {
  9282. return avformat_open_input ();
  9283. ;
  9284. return 0;
  9285. }
  9286. _ACEOF
  9287. if ac_fn_c_try_link "$LINENO"; then :
  9288. ac_cv_lib_avformat_avformat_open_input=yes
  9289. else
  9290. ac_cv_lib_avformat_avformat_open_input=no
  9291. fi
  9292. rm -f core conftest.err conftest.$ac_objext \
  9293. conftest$ac_exeext conftest.$ac_ext
  9294. LIBS=$ac_check_lib_save_LIBS
  9295. fi
  9296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_avformat_open_input" >&5
  9297. $as_echo "$ac_cv_lib_avformat_avformat_open_input" >&6; }
  9298. if test "x$ac_cv_lib_avformat_avformat_open_input" = xyes; then :
  9299. LIBAVFORMAT_LIBS="-lavformat"
  9300. else
  9301. unset ac_cv_lib_avformat_av_open_input_file; unset ac_cv_lib_avformat_avformat_open_input; LDFLAGS="$LDFLAGS_SAVE"; continue
  9302. fi
  9303.  
  9304. fi
  9305.  
  9306. break
  9307. done
  9308. if test x"$ac_cv_lib_avformat_av_open_input_file" != x"yes" &&
  9309. test x"$ac_cv_lib_avformat_avformat_open_input" != x"yes"; then
  9310. as_fn_error $? "Could not find libavformat - part of ffmpeg" "$LINENO" 5
  9311. fi
  9312.  
  9313.  
  9314. as_ac_Lib=`$as_echo "ac_cv_lib_avutil ''_av_rescale_q" | $as_tr_sh`
  9315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_rescale_q in -lavutil " >&5
  9316. $as_echo_n "checking for av_rescale_q in -lavutil ... " >&6; }
  9317. if eval \${$as_ac_Lib+:} false; then :
  9318. $as_echo_n "(cached) " >&6
  9319. else
  9320. ac_check_lib_save_LIBS=$LIBS
  9321. LIBS="-lavutil $LIBS"
  9322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9323. /* end confdefs.h. */
  9324.  
  9325. /* Override any GCC internal prototype to avoid an error.
  9326. Use char because int might match the return type of a GCC
  9327. builtin and then its argument prototype would still apply. */
  9328. #ifdef __cplusplus
  9329. extern "C"
  9330. #endif
  9331. char av_rescale_q ();
  9332. int
  9333. main ()
  9334. {
  9335. return av_rescale_q ();
  9336. ;
  9337. return 0;
  9338. }
  9339. _ACEOF
  9340. if ac_fn_c_try_link "$LINENO"; then :
  9341. eval "$as_ac_Lib=yes"
  9342. else
  9343. eval "$as_ac_Lib=no"
  9344. fi
  9345. rm -f core conftest.err conftest.$ac_objext \
  9346. conftest$ac_exeext conftest.$ac_ext
  9347. LIBS=$ac_check_lib_save_LIBS
  9348. fi
  9349. eval ac_res=\$$as_ac_Lib
  9350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9351. $as_echo "$ac_res" >&6; }
  9352. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  9353. LIBAVUTIL_LIBS="-lavutil"
  9354. else
  9355. as_fn_error $? "Could not find libavutil - part of ffmpeg" "$LINENO" 5
  9356. fi
  9357.  
  9358.  
  9359.  
  9360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  9361. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  9362. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  9363. $as_echo_n "(cached) " >&6
  9364. else
  9365. ac_check_lib_save_LIBS=$LIBS
  9366. LIBS="-lpthread $LIBS"
  9367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9368. /* end confdefs.h. */
  9369.  
  9370. /* Override any GCC internal prototype to avoid an error.
  9371. Use char because int might match the return type of a GCC
  9372. builtin and then its argument prototype would still apply. */
  9373. #ifdef __cplusplus
  9374. extern "C"
  9375. #endif
  9376. char pthread_create ();
  9377. int
  9378. main ()
  9379. {
  9380. return pthread_create ();
  9381. ;
  9382. return 0;
  9383. }
  9384. _ACEOF
  9385. if ac_fn_c_try_link "$LINENO"; then :
  9386. ac_cv_lib_pthread_pthread_create=yes
  9387. else
  9388. ac_cv_lib_pthread_pthread_create=no
  9389. fi
  9390. rm -f core conftest.err conftest.$ac_objext \
  9391. conftest$ac_exeext conftest.$ac_ext
  9392. LIBS=$ac_check_lib_save_LIBS
  9393. fi
  9394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  9395. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  9396. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  9397. cat >>confdefs.h <<_ACEOF
  9398. #define HAVE_LIBPTHREAD 1
  9399. _ACEOF
  9400.  
  9401. LIBS="-lpthread $LIBS"
  9402.  
  9403. fi
  9404.  
  9405.  
  9406. # test if we have vorbisfile
  9407. # prior versions had ov_open_callbacks in libvorbis, test that, too.
  9408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ov_open_callbacks in -lvorbisfile" >&5
  9409. $as_echo_n "checking for ov_open_callbacks in -lvorbisfile... " >&6; }
  9410. if ${ac_cv_lib_vorbisfile_ov_open_callbacks+:} false; then :
  9411. $as_echo_n "(cached) " >&6
  9412. else
  9413. ac_check_lib_save_LIBS=$LIBS
  9414. LIBS="-lvorbisfile -lvorbis -logg $LIBS"
  9415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9416. /* end confdefs.h. */
  9417.  
  9418. /* Override any GCC internal prototype to avoid an error.
  9419. Use char because int might match the return type of a GCC
  9420. builtin and then its argument prototype would still apply. */
  9421. #ifdef __cplusplus
  9422. extern "C"
  9423. #endif
  9424. char ov_open_callbacks ();
  9425. int
  9426. main ()
  9427. {
  9428. return ov_open_callbacks ();
  9429. ;
  9430. return 0;
  9431. }
  9432. _ACEOF
  9433. if ac_fn_c_try_link "$LINENO"; then :
  9434. ac_cv_lib_vorbisfile_ov_open_callbacks=yes
  9435. else
  9436. ac_cv_lib_vorbisfile_ov_open_callbacks=no
  9437. fi
  9438. rm -f core conftest.err conftest.$ac_objext \
  9439. conftest$ac_exeext conftest.$ac_ext
  9440. LIBS=$ac_check_lib_save_LIBS
  9441. fi
  9442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_ov_open_callbacks" >&5
  9443. $as_echo "$ac_cv_lib_vorbisfile_ov_open_callbacks" >&6; }
  9444. if test "x$ac_cv_lib_vorbisfile_ov_open_callbacks" = xyes; then :
  9445. for ac_header in vorbis/vorbisfile.h
  9446. do :
  9447. ac_fn_c_check_header_mongrel "$LINENO" "vorbis/vorbisfile.h" "ac_cv_header_vorbis_vorbisfile_h" "$ac_includes_default"
  9448. if test "x$ac_cv_header_vorbis_vorbisfile_h" = xyes; then :
  9449. cat >>confdefs.h <<_ACEOF
  9450. #define HAVE_VORBIS_VORBISFILE_H 1
  9451. _ACEOF
  9452. if true; then
  9453. HAVE_VORBISFILE_TRUE=
  9454. HAVE_VORBISFILE_FALSE='#'
  9455. else
  9456. HAVE_VORBISFILE_TRUE='#'
  9457. HAVE_VORBISFILE_FALSE=
  9458. fi
  9459.  
  9460.  
  9461. $as_echo "#define HAVE_VORBISFILE 1" >>confdefs.h
  9462.  
  9463. else
  9464. if false; then
  9465. HAVE_VORBISFILE_TRUE=
  9466. HAVE_VORBISFILE_FALSE='#'
  9467. else
  9468. HAVE_VORBISFILE_TRUE='#'
  9469. HAVE_VORBISFILE_FALSE=
  9470. fi
  9471.  
  9472.  
  9473. $as_echo "#define HAVE_VORBISFILE 0" >>confdefs.h
  9474.  
  9475. fi
  9476.  
  9477. done
  9478.  
  9479. else
  9480. if false; then
  9481. HAVE_VORBISFILE_TRUE=
  9482. HAVE_VORBISFILE_FALSE='#'
  9483. else
  9484. HAVE_VORBISFILE_TRUE='#'
  9485. HAVE_VORBISFILE_FALSE=
  9486. fi
  9487.  
  9488. fi
  9489.  
  9490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC__stream_decoder_init_stream in -lFLAC" >&5
  9491. $as_echo_n "checking for FLAC__stream_decoder_init_stream in -lFLAC... " >&6; }
  9492. if ${ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream+:} false; then :
  9493. $as_echo_n "(cached) " >&6
  9494. else
  9495. ac_check_lib_save_LIBS=$LIBS
  9496. LIBS="-lFLAC -logg $LIBS"
  9497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9498. /* end confdefs.h. */
  9499.  
  9500. /* Override any GCC internal prototype to avoid an error.
  9501. Use char because int might match the return type of a GCC
  9502. builtin and then its argument prototype would still apply. */
  9503. #ifdef __cplusplus
  9504. extern "C"
  9505. #endif
  9506. char FLAC__stream_decoder_init_stream ();
  9507. int
  9508. main ()
  9509. {
  9510. return FLAC__stream_decoder_init_stream ();
  9511. ;
  9512. return 0;
  9513. }
  9514. _ACEOF
  9515. if ac_fn_c_try_link "$LINENO"; then :
  9516. ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream=yes
  9517. else
  9518. ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream=no
  9519. fi
  9520. rm -f core conftest.err conftest.$ac_objext \
  9521. conftest$ac_exeext conftest.$ac_ext
  9522. LIBS=$ac_check_lib_save_LIBS
  9523. fi
  9524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" >&5
  9525. $as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" >&6; }
  9526. if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" = xyes; then :
  9527. for ac_header in FLAC/all.h
  9528. do :
  9529. ac_fn_c_check_header_mongrel "$LINENO" "FLAC/all.h" "ac_cv_header_FLAC_all_h" "$ac_includes_default"
  9530. if test "x$ac_cv_header_FLAC_all_h" = xyes; then :
  9531. cat >>confdefs.h <<_ACEOF
  9532. #define HAVE_FLAC_ALL_H 1
  9533. _ACEOF
  9534. if true; then
  9535. HAVE_FLAC_TRUE=
  9536. HAVE_FLAC_FALSE='#'
  9537. else
  9538. HAVE_FLAC_TRUE='#'
  9539. HAVE_FLAC_FALSE=
  9540. fi
  9541.  
  9542.  
  9543. $as_echo "#define HAVE_FLAC 1" >>confdefs.h
  9544.  
  9545. else
  9546. if false; then
  9547. HAVE_FLAC_TRUE=
  9548. HAVE_FLAC_FALSE='#'
  9549. else
  9550. HAVE_FLAC_TRUE='#'
  9551. HAVE_FLAC_FALSE=
  9552. fi
  9553.  
  9554. fi
  9555.  
  9556. done
  9557.  
  9558. else
  9559. if false; then
  9560. HAVE_FLAC_TRUE=
  9561. HAVE_FLAC_FALSE='#'
  9562. else
  9563. HAVE_FLAC_TRUE='#'
  9564. HAVE_FLAC_FALSE=
  9565. fi
  9566.  
  9567. fi
  9568.  
  9569. # test without -logg to see whether we really need it (libflac can be without)
  9570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC" >&5
  9571. $as_echo_n "checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC... " >&6; }
  9572. if ${ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream+:} false; then :
  9573. $as_echo_n "(cached) " >&6
  9574. else
  9575. ac_check_lib_save_LIBS=$LIBS
  9576. LIBS="-lFLAC $LIBS"
  9577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9578. /* end confdefs.h. */
  9579.  
  9580. /* Override any GCC internal prototype to avoid an error.
  9581. Use char because int might match the return type of a GCC
  9582. builtin and then its argument prototype would still apply. */
  9583. #ifdef __cplusplus
  9584. extern "C"
  9585. #endif
  9586. char FLAC__stream_decoder_init_ogg_stream ();
  9587. int
  9588. main ()
  9589. {
  9590. return FLAC__stream_decoder_init_ogg_stream ();
  9591. ;
  9592. return 0;
  9593. }
  9594. _ACEOF
  9595. if ac_fn_c_try_link "$LINENO"; then :
  9596. ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream=yes
  9597. else
  9598. ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream=no
  9599. fi
  9600. rm -f core conftest.err conftest.$ac_objext \
  9601. conftest$ac_exeext conftest.$ac_ext
  9602. LIBS=$ac_check_lib_save_LIBS
  9603. fi
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" >&5
  9605. $as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" >&6; }
  9606. if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" = xyes; then :
  9607. if true; then
  9608. HAVE_FLAC_TRUE=
  9609. HAVE_FLAC_FALSE='#'
  9610. else
  9611. HAVE_FLAC_TRUE='#'
  9612. HAVE_FLAC_FALSE=
  9613. fi
  9614.  
  9615.  
  9616. $as_echo "#define HAVE_FLAC 1" >>confdefs.h
  9617.  
  9618. if false; then
  9619. NEED_OGG_TRUE=
  9620. NEED_OGG_FALSE='#'
  9621. else
  9622. NEED_OGG_TRUE='#'
  9623. NEED_OGG_FALSE=
  9624. fi
  9625.  
  9626. else
  9627. if true; then
  9628. NEED_OGG_TRUE=
  9629. NEED_OGG_FALSE='#'
  9630. else
  9631. NEED_OGG_TRUE='#'
  9632. NEED_OGG_FALSE=
  9633. fi
  9634.  
  9635. fi
  9636.  
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis_comment_query in -lvorbisfile" >&5
  9638. $as_echo_n "checking for vorbis_comment_query in -lvorbisfile... " >&6; }
  9639. if ${ac_cv_lib_vorbisfile_vorbis_comment_query+:} false; then :
  9640. $as_echo_n "(cached) " >&6
  9641. else
  9642. ac_check_lib_save_LIBS=$LIBS
  9643. LIBS="-lvorbisfile -logg $LIBS"
  9644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9645. /* end confdefs.h. */
  9646.  
  9647. /* Override any GCC internal prototype to avoid an error.
  9648. Use char because int might match the return type of a GCC
  9649. builtin and then its argument prototype would still apply. */
  9650. #ifdef __cplusplus
  9651. extern "C"
  9652. #endif
  9653. char vorbis_comment_query ();
  9654. int
  9655. main ()
  9656. {
  9657. return vorbis_comment_query ();
  9658. ;
  9659. return 0;
  9660. }
  9661. _ACEOF
  9662. if ac_fn_c_try_link "$LINENO"; then :
  9663. ac_cv_lib_vorbisfile_vorbis_comment_query=yes
  9664. else
  9665. ac_cv_lib_vorbisfile_vorbis_comment_query=no
  9666. fi
  9667. rm -f core conftest.err conftest.$ac_objext \
  9668. conftest$ac_exeext conftest.$ac_ext
  9669. LIBS=$ac_check_lib_save_LIBS
  9670. fi
  9671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_vorbis_comment_query" >&5
  9672. $as_echo "$ac_cv_lib_vorbisfile_vorbis_comment_query" >&6; }
  9673. if test "x$ac_cv_lib_vorbisfile_vorbis_comment_query" = xyes; then :
  9674. if false; then
  9675. NEED_VORBIS_TRUE=
  9676. NEED_VORBIS_FALSE='#'
  9677. else
  9678. NEED_VORBIS_TRUE='#'
  9679. NEED_VORBIS_FALSE=
  9680. fi
  9681.  
  9682. else
  9683. if true; then
  9684. NEED_VORBIS_TRUE=
  9685. NEED_VORBIS_FALSE='#'
  9686. else
  9687. NEED_VORBIS_TRUE='#'
  9688. NEED_VORBIS_FALSE=
  9689. fi
  9690.  
  9691. fi
  9692.  
  9693.  
  9694. ################################################################################################################
  9695. ### Header checks
  9696.  
  9697. for ac_header in arpa/inet.h asm/unistd.h endian.h machine/endian.h fcntl.h libintl.h locale.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/file.h sys/inotify.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h
  9698. do :
  9699. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9700. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9701. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9702. cat >>confdefs.h <<_ACEOF
  9703. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9704. _ACEOF
  9705.  
  9706. fi
  9707.  
  9708. done
  9709.  
  9710.  
  9711. for ac_func in inotify_init
  9712. do :
  9713. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  9714. if test "x$ac_cv_func_inotify_init" = xyes; then :
  9715. cat >>confdefs.h <<_ACEOF
  9716. #define HAVE_INOTIFY_INIT 1
  9717. _ACEOF
  9718.  
  9719. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  9720.  
  9721. else
  9722.  
  9723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __NR_inotify_init syscall" >&5
  9724. $as_echo_n "checking for __NR_inotify_init syscall... " >&6; }
  9725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9726. /* end confdefs.h. */
  9727.  
  9728. #include <asm/unistd.h>
  9729.  
  9730. int
  9731. main ()
  9732. {
  9733.  
  9734. #ifndef __NR_inotify_init
  9735. #error
  9736. #endif
  9737.  
  9738.  
  9739. ;
  9740. return 0;
  9741. }
  9742. _ACEOF
  9743. if ac_fn_c_try_compile "$LINENO"; then :
  9744.  
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9746. $as_echo "yes" >&6; }
  9747.  
  9748. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  9749.  
  9750.  
  9751. else
  9752.  
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9754. $as_echo "no" >&6; }
  9755.  
  9756. fi
  9757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9758.  
  9759. fi
  9760. done
  9761.  
  9762.  
  9763. ################################################################################################################
  9764. ### Build Options
  9765.  
  9766.  
  9767. # Check whether --with-log-path was given.
  9768. if test "${with_log_path+set}" = set; then :
  9769. withval=$with_log_path; with_logpath="$withval"
  9770. else
  9771. with_logpath="/var/log"
  9772. fi
  9773.  
  9774.  
  9775. cat >>confdefs.h <<_ACEOF
  9776. #define DEFAULT_LOG_PATH "${with_logpath}"
  9777. _ACEOF
  9778.  
  9779.  
  9780.  
  9781.  
  9782. # Check whether --with-db-path was given.
  9783. if test "${with_db_path+set}" = set; then :
  9784. withval=$with_db_path; with_dbpath="$withval"
  9785. else
  9786. with_dbpath="/var/cache/minidlna"
  9787. fi
  9788.  
  9789.  
  9790. cat >>confdefs.h <<_ACEOF
  9791. #define DEFAULT_DB_PATH "${with_dbpath}"
  9792. _ACEOF
  9793.  
  9794.  
  9795.  
  9796. # Check whether --with-os-name was given.
  9797. if test "${with_os_name+set}" = set; then :
  9798. withval=$with_os_name; with_osname="$withval"
  9799. else
  9800. with_osname="$(uname -s)"
  9801. fi
  9802.  
  9803.  
  9804. cat >>confdefs.h <<_ACEOF
  9805. #define OS_NAME "${with_osname}"
  9806. _ACEOF
  9807.  
  9808.  
  9809.  
  9810. # Check whether --with-os-version was given.
  9811. if test "${with_os_version+set}" = set; then :
  9812. withval=$with_os_version; with_osver="$withval"
  9813. else
  9814. with_osver="$(uname -r)"
  9815. fi
  9816.  
  9817.  
  9818. cat >>confdefs.h <<_ACEOF
  9819. #define OS_VERSION "${with_osver}"
  9820. _ACEOF
  9821.  
  9822.  
  9823.  
  9824. # Check whether --with-os-url was given.
  9825. if test "${with_os_url+set}" = set; then :
  9826. withval=$with_os_url; with_osurl="$withval"
  9827. else
  9828. with_osurl="http://www.netgear.com"
  9829. fi
  9830.  
  9831.  
  9832. cat >>confdefs.h <<_ACEOF
  9833. #define OS_URL "${with_osurl}"
  9834. _ACEOF
  9835.  
  9836.  
  9837.  
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TiVo support" >&5
  9839. $as_echo_n "checking whether to enable TiVo support... " >&6; }
  9840. # Check whether --enable-tivo was given.
  9841. if test "${enable_tivo+set}" = set; then :
  9842. enableval=$enable_tivo;
  9843. if test "$enableval" = "yes"; then
  9844.  
  9845. $as_echo "#define TIVO_SUPPORT 1" >>confdefs.h
  9846.  
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9848. $as_echo "yes" >&6; }
  9849. else
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9851. $as_echo "no" >&6; }
  9852. fi
  9853.  
  9854. else
  9855.  
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9857. $as_echo "no" >&6; }
  9858.  
  9859.  
  9860. fi
  9861.  
  9862.  
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generic NETGEAR device support" >&5
  9864. $as_echo_n "checking whether to enable generic NETGEAR device support... " >&6; }
  9865. # Check whether --enable-netgear was given.
  9866. if test "${enable_netgear+set}" = set; then :
  9867. enableval=$enable_netgear;
  9868. if test "$enableval" = "yes"; then
  9869.  
  9870. $as_echo "#define NETGEAR 1" >>confdefs.h
  9871.  
  9872. cat >>confdefs.h <<_ACEOF
  9873. #define OS_URL "http://www.netgear.com/"
  9874. _ACEOF
  9875.  
  9876. cat >>confdefs.h <<_ACEOF
  9877. #define ROOTDEV_MANUFACTURERURL "http://www.netgear.com/"
  9878. _ACEOF
  9879.  
  9880. cat >>confdefs.h <<_ACEOF
  9881. #define ROOTDEV_MANUFACTURER "NETGEAR"
  9882. _ACEOF
  9883.  
  9884. cat >>confdefs.h <<_ACEOF
  9885. #define ROOTDEV_MODELNAME "Windows Media Connect compatible (ReadyDLNA)"
  9886. _ACEOF
  9887.  
  9888. cat >>confdefs.h <<_ACEOF
  9889. #define ROOTDEV_MODELDESCRIPTION "ReadyDLNA"
  9890. _ACEOF
  9891.  
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9893. $as_echo "yes" >&6; }
  9894. else
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9896. $as_echo "no" >&6; }
  9897. fi
  9898.  
  9899. else
  9900.  
  9901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9902. $as_echo "no" >&6; }
  9903.  
  9904.  
  9905. fi
  9906.  
  9907.  
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NETGEAR ReadyNAS support" >&5
  9909. $as_echo_n "checking whether to enable NETGEAR ReadyNAS support... " >&6; }
  9910. # Check whether --enable-readynas was given.
  9911. if test "${enable_readynas+set}" = set; then :
  9912. enableval=$enable_readynas;
  9913. if test "$enableval" = "yes"; then
  9914.  
  9915. $as_echo "#define NETGEAR 1" >>confdefs.h
  9916.  
  9917.  
  9918. $as_echo "#define READYNAS 1" >>confdefs.h
  9919.  
  9920.  
  9921. $as_echo "#define TIVO_SUPPORT 1" >>confdefs.h
  9922.  
  9923.  
  9924. $as_echo "#define PNPX 5" >>confdefs.h
  9925.  
  9926. cat >>confdefs.h <<_ACEOF
  9927. #define OS_URL "http://www.readynas.com/"
  9928. _ACEOF
  9929.  
  9930. cat >>confdefs.h <<_ACEOF
  9931. #define ROOTDEV_MANUFACTURERURL "http://www.netgear.com/"
  9932. _ACEOF
  9933.  
  9934. cat >>confdefs.h <<_ACEOF
  9935. #define ROOTDEV_MANUFACTURER "NETGEAR"
  9936. _ACEOF
  9937.  
  9938. cat >>confdefs.h <<_ACEOF
  9939. #define ROOTDEV_MODELNAME "Windows Media Connect compatible (ReadyDLNA)"
  9940. _ACEOF
  9941.  
  9942. cat >>confdefs.h <<_ACEOF
  9943. #define ROOTDEV_MODELDESCRIPTION "ReadyDLNA"
  9944. _ACEOF
  9945.  
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9947. $as_echo "yes" >&6; }
  9948. else
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9950. $as_echo "no" >&6; }
  9951. fi
  9952.  
  9953. else
  9954.  
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9956. $as_echo "no" >&6; }
  9957.  
  9958.  
  9959. fi
  9960.  
  9961.  
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build a static binary executable" >&5
  9963. $as_echo_n "checking whether to build a static binary executable... " >&6; }
  9964. # Check whether --enable-static was given.
  9965. if test "${enable_static+set}" = set; then :
  9966. enableval=$enable_static;
  9967. if test "$enableval" = "yes"; then
  9968. STATIC_CFLAGS="-DSTATIC"
  9969.  
  9970. STATIC_LDFLAGS="-Wl,-Bstatic"
  9971.  
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9973. $as_echo "yes" >&6; }
  9974. else
  9975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9976. $as_echo "no" >&6; }
  9977. fi
  9978.  
  9979. else
  9980.  
  9981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9982. $as_echo "no" >&6; }
  9983.  
  9984.  
  9985. fi
  9986.  
  9987.  
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable video thumbnail generation using libffmpegthumbnailer" >&5
  9989. $as_echo_n "checking whether to enable video thumbnail generation using libffmpegthumbnailer... " >&6; }
  9990. # Check whether --enable-thumbnail was given.
  9991. if test "${enable_thumbnail+set}" = set; then :
  9992. enableval=$enable_thumbnail;
  9993. if test "$enableval" = "yes"; then
  9994.  
  9995. $as_echo "#define THUMBNAIL_CREATION 1" >>confdefs.h
  9996.  
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9998. $as_echo "yes" >&6; }
  9999. for ac_header in libffmpegthumbnailer/videothumbnailerc.h
  10000. do :
  10001. ac_fn_c_check_header_mongrel "$LINENO" "libffmpegthumbnailer/videothumbnailerc.h" "ac_cv_header_libffmpegthumbnailer_videothumbnailerc_h" "$ac_includes_default"
  10002. if test "x$ac_cv_header_libffmpegthumbnailer_videothumbnailerc_h" = xyes; then :
  10003. cat >>confdefs.h <<_ACEOF
  10004. #define HAVE_LIBFFMPEGTHUMBNAILER_VIDEOTHUMBNAILERC_H 1
  10005. _ACEOF
  10006. libffmpegthumbnailer_headers=yes; break;
  10007. fi
  10008.  
  10009. done
  10010.  
  10011. if test "x$libffmpegthumbnailer_headers" != "xyes"; then :
  10012. as_fn_error $? "Unable to find libffmpegthumbnailer headers" "$LINENO" 5
  10013. fi
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for video_thumbnailer_create in -lffmpegthumbnailer" >&5
  10015. $as_echo_n "checking for video_thumbnailer_create in -lffmpegthumbnailer... " >&6; }
  10016. if ${ac_cv_lib_ffmpegthumbnailer_video_thumbnailer_create+:} false; then :
  10017. $as_echo_n "(cached) " >&6
  10018. else
  10019. ac_check_lib_save_LIBS=$LIBS
  10020. LIBS="-lffmpegthumbnailer $LIBS"
  10021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10022. /* end confdefs.h. */
  10023.  
  10024. /* Override any GCC internal prototype to avoid an error.
  10025. Use char because int might match the return type of a GCC
  10026. builtin and then its argument prototype would still apply. */
  10027. #ifdef __cplusplus
  10028. extern "C"
  10029. #endif
  10030. char video_thumbnailer_create ();
  10031. int
  10032. main ()
  10033. {
  10034. return video_thumbnailer_create ();
  10035. ;
  10036. return 0;
  10037. }
  10038. _ACEOF
  10039. if ac_fn_c_try_link "$LINENO"; then :
  10040. ac_cv_lib_ffmpegthumbnailer_video_thumbnailer_create=yes
  10041. else
  10042. ac_cv_lib_ffmpegthumbnailer_video_thumbnailer_create=no
  10043. fi
  10044. rm -f core conftest.err conftest.$ac_objext \
  10045. conftest$ac_exeext conftest.$ac_ext
  10046. LIBS=$ac_check_lib_save_LIBS
  10047. fi
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffmpegthumbnailer_video_thumbnailer_create" >&5
  10049. $as_echo "$ac_cv_lib_ffmpegthumbnailer_video_thumbnailer_create" >&6; }
  10050. if test "x$ac_cv_lib_ffmpegthumbnailer_video_thumbnailer_create" = xyes; then :
  10051. libffmpegthumbnailer_lib=yes;LIBFFMPEGTHUMBNAILER_LIBS="-lffmpegthumbnailer";
  10052. fi
  10053.  
  10054. if test "x$libffmpegthumbnailer_lib" != "xyes"; then :
  10055. as_fn_error $? "Unable to find libffmpegthumbnailer" "$LINENO" 5
  10056. fi
  10057.  
  10058. else
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10060. $as_echo "no" >&6; }
  10061. fi
  10062.  
  10063. else
  10064.  
  10065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10066. $as_echo "no" >&6; }
  10067.  
  10068.  
  10069. fi
  10070.  
  10071.  
  10072. case "$target_os" in
  10073. darwin*)
  10074. ;;
  10075. freebsd*)
  10076. VER=`grep '#define __FreeBSD_version' /usr/include/sys/param.h | awk '{print $3}'`
  10077. OS_URL=http://www.freebsd.org/
  10078. ;;
  10079. solaris*)
  10080.  
  10081. $as_echo "#define USE_IPF 1" >>confdefs.h
  10082.  
  10083.  
  10084. $as_echo "#define LOG_PERROR 0" >>confdefs.h
  10085.  
  10086.  
  10087. $as_echo "#define SOLARIS_KSTATS 1" >>confdefs.h
  10088.  
  10089. ;;
  10090. kfreebsd*)
  10091. OS_URL=http://www.debian.org/
  10092. ;;
  10093. linux*)
  10094. ;;
  10095. openbsd*)
  10096. OS_URL=http://www.openbsd.org/
  10097. ;;
  10098. *)
  10099. echo "Unknown OS : $target_os"
  10100. ;;
  10101. esac
  10102.  
  10103.  
  10104. ac_config_files="$ac_config_files po/Makefile.in Makefile"
  10105.  
  10106. cat >confcache <<\_ACEOF
  10107. # This file is a shell script that caches the results of configure
  10108. # tests run on this system so they can be shared between configure
  10109. # scripts and configure runs, see configure's option --config-cache.
  10110. # It is not useful on other systems. If it contains results you don't
  10111. # want to keep, you may remove or edit it.
  10112. #
  10113. # config.status only pays attention to the cache file if you give it
  10114. # the --recheck option to rerun configure.
  10115. #
  10116. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10117. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10118. # following values.
  10119.  
  10120. _ACEOF
  10121.  
  10122. # The following way of writing the cache mishandles newlines in values,
  10123. # but we know of no workaround that is simple, portable, and efficient.
  10124. # So, we kill variables containing newlines.
  10125. # Ultrix sh set writes to stderr and can't be redirected directly,
  10126. # and sets the high bit in the cache file unless we assign to the vars.
  10127. (
  10128. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10129. eval ac_val=\$$ac_var
  10130. case $ac_val in #(
  10131. *${as_nl}*)
  10132. case $ac_var in #(
  10133. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10134. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10135. esac
  10136. case $ac_var in #(
  10137. _ | IFS | as_nl) ;; #(
  10138. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10139. *) { eval $ac_var=; unset $ac_var;} ;;
  10140. esac ;;
  10141. esac
  10142. done
  10143.  
  10144. (set) 2>&1 |
  10145. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10146. *${as_nl}ac_space=\ *)
  10147. # `set' does not quote correctly, so add quotes: double-quote
  10148. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10149. sed -n \
  10150. "s/'/'\\\\''/g;
  10151. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10152. ;; #(
  10153. *)
  10154. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10155. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10156. ;;
  10157. esac |
  10158. sort
  10159. ) |
  10160. sed '
  10161. /^ac_cv_env_/b end
  10162. t clear
  10163. :clear
  10164. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10165. t end
  10166. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10167. :end' >>confcache
  10168. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10169. if test -w "$cache_file"; then
  10170. if test "x$cache_file" != "x/dev/null"; then
  10171. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10172. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10173. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10174. cat confcache >"$cache_file"
  10175. else
  10176. case $cache_file in #(
  10177. */* | ?:*)
  10178. mv -f confcache "$cache_file"$$ &&
  10179. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10180. *)
  10181. mv -f confcache "$cache_file" ;;
  10182. esac
  10183. fi
  10184. fi
  10185. else
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10187. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10188. fi
  10189. fi
  10190. rm -f confcache
  10191.  
  10192. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10193. # Let make expand exec_prefix.
  10194. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10195.  
  10196. DEFS=-DHAVE_CONFIG_H
  10197.  
  10198. ac_libobjs=
  10199. ac_ltlibobjs=
  10200. U=
  10201. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10202. # 1. Remove the extension, and $U if already installed.
  10203. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10204. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10205. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10206. # will be set to the directory where LIBOBJS objects are built.
  10207. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10208. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10209. done
  10210. LIBOBJS=$ac_libobjs
  10211.  
  10212. LTLIBOBJS=$ac_ltlibobjs
  10213.  
  10214.  
  10215. if test -n "$EXEEXT"; then
  10216. am__EXEEXT_TRUE=
  10217. am__EXEEXT_FALSE='#'
  10218. else
  10219. am__EXEEXT_TRUE='#'
  10220. am__EXEEXT_FALSE=
  10221. fi
  10222.  
  10223. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10224. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10225. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10226. fi
  10227. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10228. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10229. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10230. fi
  10231. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10232. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10233. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10234. fi
  10235.  
  10236. if test -z "${HAVE_VORBISFILE_TRUE}" && test -z "${HAVE_VORBISFILE_FALSE}"; then
  10237. as_fn_error $? "conditional \"HAVE_VORBISFILE\" was never defined.
  10238. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10239. fi
  10240. if test -z "${HAVE_VORBISFILE_TRUE}" && test -z "${HAVE_VORBISFILE_FALSE}"; then
  10241. as_fn_error $? "conditional \"HAVE_VORBISFILE\" was never defined.
  10242. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10243. fi
  10244. if test -z "${HAVE_VORBISFILE_TRUE}" && test -z "${HAVE_VORBISFILE_FALSE}"; then
  10245. as_fn_error $? "conditional \"HAVE_VORBISFILE\" was never defined.
  10246. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10247. fi
  10248. if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
  10249. as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
  10250. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10251. fi
  10252. if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
  10253. as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
  10254. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10255. fi
  10256. if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
  10257. as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
  10258. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10259. fi
  10260. if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
  10261. as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
  10262. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10263. fi
  10264. if test -z "${NEED_OGG_TRUE}" && test -z "${NEED_OGG_FALSE}"; then
  10265. as_fn_error $? "conditional \"NEED_OGG\" was never defined.
  10266. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10267. fi
  10268. if test -z "${NEED_OGG_TRUE}" && test -z "${NEED_OGG_FALSE}"; then
  10269. as_fn_error $? "conditional \"NEED_OGG\" was never defined.
  10270. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10271. fi
  10272. if test -z "${NEED_VORBIS_TRUE}" && test -z "${NEED_VORBIS_FALSE}"; then
  10273. as_fn_error $? "conditional \"NEED_VORBIS\" was never defined.
  10274. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10275. fi
  10276. if test -z "${NEED_VORBIS_TRUE}" && test -z "${NEED_VORBIS_FALSE}"; then
  10277. as_fn_error $? "conditional \"NEED_VORBIS\" was never defined.
  10278. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10279. fi
  10280.  
  10281. : "${CONFIG_STATUS=./config.status}"
  10282. ac_write_fail=0
  10283. ac_clean_files_save=$ac_clean_files
  10284. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10285. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10286. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10287. as_write_fail=0
  10288. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10289. #! $SHELL
  10290. # Generated by $as_me.
  10291. # Run this file to recreate the current configuration.
  10292. # Compiler output produced by configure, useful for debugging
  10293. # configure, is in config.log if it exists.
  10294.  
  10295. debug=false
  10296. ac_cs_recheck=false
  10297. ac_cs_silent=false
  10298.  
  10299. SHELL=\${CONFIG_SHELL-$SHELL}
  10300. export SHELL
  10301. _ASEOF
  10302. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10303. ## -------------------- ##
  10304. ## M4sh Initialization. ##
  10305. ## -------------------- ##
  10306.  
  10307. # Be more Bourne compatible
  10308. DUALCASE=1; export DUALCASE # for MKS sh
  10309. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10310. emulate sh
  10311. NULLCMD=:
  10312. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10313. # is contrary to our usage. Disable this feature.
  10314. alias -g '${1+"$@"}'='"$@"'
  10315. setopt NO_GLOB_SUBST
  10316. else
  10317. case `(set -o) 2>/dev/null` in #(
  10318. *posix*) :
  10319. set -o posix ;; #(
  10320. *) :
  10321. ;;
  10322. esac
  10323. fi
  10324.  
  10325.  
  10326. as_nl='
  10327. '
  10328. export as_nl
  10329. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10330. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10331. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10332. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10333. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10334. # but without wasting forks for bash or zsh.
  10335. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10336. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10337. as_echo='print -r --'
  10338. as_echo_n='print -rn --'
  10339. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10340. as_echo='printf %s\n'
  10341. as_echo_n='printf %s'
  10342. else
  10343. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10344. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10345. as_echo_n='/usr/ucb/echo -n'
  10346. else
  10347. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10348. as_echo_n_body='eval
  10349. arg=$1;
  10350. case $arg in #(
  10351. *"$as_nl"*)
  10352. expr "X$arg" : "X\\(.*\\)$as_nl";
  10353. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10354. esac;
  10355. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10356. '
  10357. export as_echo_n_body
  10358. as_echo_n='sh -c $as_echo_n_body as_echo'
  10359. fi
  10360. export as_echo_body
  10361. as_echo='sh -c $as_echo_body as_echo'
  10362. fi
  10363.  
  10364. # The user is always right.
  10365. if test "${PATH_SEPARATOR+set}" != set; then
  10366. PATH_SEPARATOR=:
  10367. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10368. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10369. PATH_SEPARATOR=';'
  10370. }
  10371. fi
  10372.  
  10373.  
  10374. # IFS
  10375. # We need space, tab and new line, in precisely that order. Quoting is
  10376. # there to prevent editors from complaining about space-tab.
  10377. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10378. # splitting by setting IFS to empty value.)
  10379. IFS=" "" $as_nl"
  10380.  
  10381. # Find who we are. Look in the path if we contain no directory separator.
  10382. as_myself=
  10383. case $0 in #((
  10384. *[\\/]* ) as_myself=$0 ;;
  10385. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10386. for as_dir in $PATH
  10387. do
  10388. IFS=$as_save_IFS
  10389. test -z "$as_dir" && as_dir=.
  10390. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10391. done
  10392. IFS=$as_save_IFS
  10393.  
  10394. ;;
  10395. esac
  10396. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10397. # in which case we are not to be found in the path.
  10398. if test "x$as_myself" = x; then
  10399. as_myself=$0
  10400. fi
  10401. if test ! -f "$as_myself"; then
  10402. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10403. exit 1
  10404. fi
  10405.  
  10406. # Unset variables that we do not need and which cause bugs (e.g. in
  10407. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10408. # suppresses any "Segmentation fault" message there. '((' could
  10409. # trigger a bug in pdksh 5.2.14.
  10410. for as_var in BASH_ENV ENV MAIL MAILPATH
  10411. do eval test x\${$as_var+set} = xset \
  10412. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10413. done
  10414. PS1='$ '
  10415. PS2='> '
  10416. PS4='+ '
  10417.  
  10418. # NLS nuisances.
  10419. LC_ALL=C
  10420. export LC_ALL
  10421. LANGUAGE=C
  10422. export LANGUAGE
  10423.  
  10424. # CDPATH.
  10425. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10426.  
  10427.  
  10428. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10429. # ----------------------------------------
  10430. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10431. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10432. # script with STATUS, using 1 if that was 0.
  10433. as_fn_error ()
  10434. {
  10435. as_status=$1; test $as_status -eq 0 && as_status=1
  10436. if test "$4"; then
  10437. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10438. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10439. fi
  10440. $as_echo "$as_me: error: $2" >&2
  10441. as_fn_exit $as_status
  10442. } # as_fn_error
  10443.  
  10444.  
  10445. # as_fn_set_status STATUS
  10446. # -----------------------
  10447. # Set $? to STATUS, without forking.
  10448. as_fn_set_status ()
  10449. {
  10450. return $1
  10451. } # as_fn_set_status
  10452.  
  10453. # as_fn_exit STATUS
  10454. # -----------------
  10455. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10456. as_fn_exit ()
  10457. {
  10458. set +e
  10459. as_fn_set_status $1
  10460. exit $1
  10461. } # as_fn_exit
  10462.  
  10463. # as_fn_unset VAR
  10464. # ---------------
  10465. # Portably unset VAR.
  10466. as_fn_unset ()
  10467. {
  10468. { eval $1=; unset $1;}
  10469. }
  10470. as_unset=as_fn_unset
  10471. # as_fn_append VAR VALUE
  10472. # ----------------------
  10473. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10474. # advantage of any shell optimizations that allow amortized linear growth over
  10475. # repeated appends, instead of the typical quadratic growth present in naive
  10476. # implementations.
  10477. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10478. eval 'as_fn_append ()
  10479. {
  10480. eval $1+=\$2
  10481. }'
  10482. else
  10483. as_fn_append ()
  10484. {
  10485. eval $1=\$$1\$2
  10486. }
  10487. fi # as_fn_append
  10488.  
  10489. # as_fn_arith ARG...
  10490. # ------------------
  10491. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10492. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10493. # must be portable across $(()) and expr.
  10494. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10495. eval 'as_fn_arith ()
  10496. {
  10497. as_val=$(( $* ))
  10498. }'
  10499. else
  10500. as_fn_arith ()
  10501. {
  10502. as_val=`expr "$@" || test $? -eq 1`
  10503. }
  10504. fi # as_fn_arith
  10505.  
  10506.  
  10507. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10508. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10509. as_expr=expr
  10510. else
  10511. as_expr=false
  10512. fi
  10513.  
  10514. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10515. as_basename=basename
  10516. else
  10517. as_basename=false
  10518. fi
  10519.  
  10520. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10521. as_dirname=dirname
  10522. else
  10523. as_dirname=false
  10524. fi
  10525.  
  10526. as_me=`$as_basename -- "$0" ||
  10527. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10528. X"$0" : 'X\(//\)$' \| \
  10529. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10530. $as_echo X/"$0" |
  10531. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10532. s//\1/
  10533. q
  10534. }
  10535. /^X\/\(\/\/\)$/{
  10536. s//\1/
  10537. q
  10538. }
  10539. /^X\/\(\/\).*/{
  10540. s//\1/
  10541. q
  10542. }
  10543. s/.*/./; q'`
  10544.  
  10545. # Avoid depending upon Character Ranges.
  10546. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10547. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10548. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10549. as_cr_digits='0123456789'
  10550. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10551.  
  10552. ECHO_C= ECHO_N= ECHO_T=
  10553. case `echo -n x` in #(((((
  10554. -n*)
  10555. case `echo 'xy\c'` in
  10556. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10557. xy) ECHO_C='\c';;
  10558. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10559. ECHO_T=' ';;
  10560. esac;;
  10561. *)
  10562. ECHO_N='-n';;
  10563. esac
  10564.  
  10565. rm -f conf$$ conf$$.exe conf$$.file
  10566. if test -d conf$$.dir; then
  10567. rm -f conf$$.dir/conf$$.file
  10568. else
  10569. rm -f conf$$.dir
  10570. mkdir conf$$.dir 2>/dev/null
  10571. fi
  10572. if (echo >conf$$.file) 2>/dev/null; then
  10573. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10574. as_ln_s='ln -s'
  10575. # ... but there are two gotchas:
  10576. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10577. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10578. # In both cases, we have to default to `cp -pR'.
  10579. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10580. as_ln_s='cp -pR'
  10581. elif ln conf$$.file conf$$ 2>/dev/null; then
  10582. as_ln_s=ln
  10583. else
  10584. as_ln_s='cp -pR'
  10585. fi
  10586. else
  10587. as_ln_s='cp -pR'
  10588. fi
  10589. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10590. rmdir conf$$.dir 2>/dev/null
  10591.  
  10592.  
  10593. # as_fn_mkdir_p
  10594. # -------------
  10595. # Create "$as_dir" as a directory, including parents if necessary.
  10596. as_fn_mkdir_p ()
  10597. {
  10598.  
  10599. case $as_dir in #(
  10600. -*) as_dir=./$as_dir;;
  10601. esac
  10602. test -d "$as_dir" || eval $as_mkdir_p || {
  10603. as_dirs=
  10604. while :; do
  10605. case $as_dir in #(
  10606. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10607. *) as_qdir=$as_dir;;
  10608. esac
  10609. as_dirs="'$as_qdir' $as_dirs"
  10610. as_dir=`$as_dirname -- "$as_dir" ||
  10611. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10612. X"$as_dir" : 'X\(//\)[^/]' \| \
  10613. X"$as_dir" : 'X\(//\)$' \| \
  10614. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10615. $as_echo X"$as_dir" |
  10616. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10617. s//\1/
  10618. q
  10619. }
  10620. /^X\(\/\/\)[^/].*/{
  10621. s//\1/
  10622. q
  10623. }
  10624. /^X\(\/\/\)$/{
  10625. s//\1/
  10626. q
  10627. }
  10628. /^X\(\/\).*/{
  10629. s//\1/
  10630. q
  10631. }
  10632. s/.*/./; q'`
  10633. test -d "$as_dir" && break
  10634. done
  10635. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10636. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10637.  
  10638.  
  10639. } # as_fn_mkdir_p
  10640. if mkdir -p . 2>/dev/null; then
  10641. as_mkdir_p='mkdir -p "$as_dir"'
  10642. else
  10643. test -d ./-p && rmdir ./-p
  10644. as_mkdir_p=false
  10645. fi
  10646.  
  10647.  
  10648. # as_fn_executable_p FILE
  10649. # -----------------------
  10650. # Test if FILE is an executable regular file.
  10651. as_fn_executable_p ()
  10652. {
  10653. test -f "$1" && test -x "$1"
  10654. } # as_fn_executable_p
  10655. as_test_x='test -x'
  10656. as_executable_p=as_fn_executable_p
  10657.  
  10658. # Sed expression to map a string onto a valid CPP name.
  10659. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10660.  
  10661. # Sed expression to map a string onto a valid variable name.
  10662. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10663.  
  10664.  
  10665. exec 6>&1
  10666. ## ----------------------------------- ##
  10667. ## Main body of $CONFIG_STATUS script. ##
  10668. ## ----------------------------------- ##
  10669. _ASEOF
  10670. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10671.  
  10672. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10673. # Save the log message, to keep $0 and so on meaningful, and to
  10674. # report actual input values of CONFIG_FILES etc. instead of their
  10675. # values after options handling.
  10676. ac_log="
  10677. This file was extended by MiniDLNA $as_me 1.1.0, which was
  10678. generated by GNU Autoconf 2.69. Invocation command line was
  10679.  
  10680. CONFIG_FILES = $CONFIG_FILES
  10681. CONFIG_HEADERS = $CONFIG_HEADERS
  10682. CONFIG_LINKS = $CONFIG_LINKS
  10683. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10684. $ $0 $@
  10685.  
  10686. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10687. "
  10688.  
  10689. _ACEOF
  10690.  
  10691. case $ac_config_files in *"
  10692. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10693. esac
  10694.  
  10695. case $ac_config_headers in *"
  10696. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10697. esac
  10698.  
  10699.  
  10700. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10701. # Files that config.status was made for.
  10702. config_files="$ac_config_files"
  10703. config_headers="$ac_config_headers"
  10704. config_commands="$ac_config_commands"
  10705.  
  10706. _ACEOF
  10707.  
  10708. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10709. ac_cs_usage="\
  10710. \`$as_me' instantiates files and other configuration actions
  10711. from templates according to the current configuration. Unless the files
  10712. and actions are specified as TAGs, all are instantiated by default.
  10713.  
  10714. Usage: $0 [OPTION]... [TAG]...
  10715.  
  10716. -h, --help print this help, then exit
  10717. -V, --version print version number and configuration settings, then exit
  10718. --config print configuration, then exit
  10719. -q, --quiet, --silent
  10720. do not print progress messages
  10721. -d, --debug don't remove temporary files
  10722. --recheck update $as_me by reconfiguring in the same conditions
  10723. --file=FILE[:TEMPLATE]
  10724. instantiate the configuration file FILE
  10725. --header=FILE[:TEMPLATE]
  10726. instantiate the configuration header FILE
  10727.  
  10728. Configuration files:
  10729. $config_files
  10730.  
  10731. Configuration headers:
  10732. $config_headers
  10733.  
  10734. Configuration commands:
  10735. $config_commands
  10736.  
  10737. Report bugs to the package provider."
  10738.  
  10739. _ACEOF
  10740. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10741. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10742. ac_cs_version="\\
  10743. MiniDLNA config.status 1.1.0
  10744. configured by $0, generated by GNU Autoconf 2.69,
  10745. with options \\"\$ac_cs_config\\"
  10746.  
  10747. Copyright (C) 2012 Free Software Foundation, Inc.
  10748. This config.status script is free software; the Free Software Foundation
  10749. gives unlimited permission to copy, distribute and modify it."
  10750.  
  10751. ac_pwd='$ac_pwd'
  10752. srcdir='$srcdir'
  10753. INSTALL='$INSTALL'
  10754. MKDIR_P='$MKDIR_P'
  10755. AWK='$AWK'
  10756. test -n "\$AWK" || AWK=awk
  10757. _ACEOF
  10758.  
  10759. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10760. # The default lists apply if the user does not specify any file.
  10761. ac_need_defaults=:
  10762. while test $# != 0
  10763. do
  10764. case $1 in
  10765. --*=?*)
  10766. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10767. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10768. ac_shift=:
  10769. ;;
  10770. --*=)
  10771. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10772. ac_optarg=
  10773. ac_shift=:
  10774. ;;
  10775. *)
  10776. ac_option=$1
  10777. ac_optarg=$2
  10778. ac_shift=shift
  10779. ;;
  10780. esac
  10781.  
  10782. case $ac_option in
  10783. # Handling of the options.
  10784. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10785. ac_cs_recheck=: ;;
  10786. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10787. $as_echo "$ac_cs_version"; exit ;;
  10788. --config | --confi | --conf | --con | --co | --c )
  10789. $as_echo "$ac_cs_config"; exit ;;
  10790. --debug | --debu | --deb | --de | --d | -d )
  10791. debug=: ;;
  10792. --file | --fil | --fi | --f )
  10793. $ac_shift
  10794. case $ac_optarg in
  10795. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10796. '') as_fn_error $? "missing file argument" ;;
  10797. esac
  10798. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10799. ac_need_defaults=false;;
  10800. --header | --heade | --head | --hea )
  10801. $ac_shift
  10802. case $ac_optarg in
  10803. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10804. esac
  10805. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10806. ac_need_defaults=false;;
  10807. --he | --h)
  10808. # Conflict between --help and --header
  10809. as_fn_error $? "ambiguous option: \`$1'
  10810. Try \`$0 --help' for more information.";;
  10811. --help | --hel | -h )
  10812. $as_echo "$ac_cs_usage"; exit ;;
  10813. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10814. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10815. ac_cs_silent=: ;;
  10816.  
  10817. # This is an error.
  10818. -*) as_fn_error $? "unrecognized option: \`$1'
  10819. Try \`$0 --help' for more information." ;;
  10820.  
  10821. *) as_fn_append ac_config_targets " $1"
  10822. ac_need_defaults=false ;;
  10823.  
  10824. esac
  10825. shift
  10826. done
  10827.  
  10828. ac_configure_extra_args=
  10829.  
  10830. if $ac_cs_silent; then
  10831. exec 6>/dev/null
  10832. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10833. fi
  10834.  
  10835. _ACEOF
  10836. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10837. if \$ac_cs_recheck; then
  10838. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10839. shift
  10840. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10841. CONFIG_SHELL='$SHELL'
  10842. export CONFIG_SHELL
  10843. exec "\$@"
  10844. fi
  10845.  
  10846. _ACEOF
  10847. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10848. exec 5>>config.log
  10849. {
  10850. echo
  10851. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10852. ## Running $as_me. ##
  10853. _ASBOX
  10854. $as_echo "$ac_log"
  10855. } >&5
  10856.  
  10857. _ACEOF
  10858. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10859. #
  10860. # INIT-COMMANDS
  10861. #
  10862. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10863. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  10864. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  10865. # from automake < 1.5.
  10866. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  10867. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  10868. LINGUAS="${LINGUAS-%UNSET%}"
  10869.  
  10870.  
  10871. _ACEOF
  10872.  
  10873. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10874.  
  10875. # Handling of arguments.
  10876. for ac_config_target in $ac_config_targets
  10877. do
  10878. case $ac_config_target in
  10879. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10880. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10881. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  10882. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  10883. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10884.  
  10885. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10886. esac
  10887. done
  10888.  
  10889.  
  10890. # If the user did not use the arguments to specify the items to instantiate,
  10891. # then the envvar interface is used. Set only those that are not.
  10892. # We use the long form for the default assignment because of an extremely
  10893. # bizarre bug on SunOS 4.1.3.
  10894. if $ac_need_defaults; then
  10895. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10896. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10897. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10898. fi
  10899.  
  10900. # Have a temporary directory for convenience. Make it in the build tree
  10901. # simply because there is no reason against having it here, and in addition,
  10902. # creating and moving files from /tmp can sometimes cause problems.
  10903. # Hook for its removal unless debugging.
  10904. # Note that there is a small window in which the directory will not be cleaned:
  10905. # after its creation but before its name has been assigned to `$tmp'.
  10906. $debug ||
  10907. {
  10908. tmp= ac_tmp=
  10909. trap 'exit_status=$?
  10910. : "${ac_tmp:=$tmp}"
  10911. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10912. ' 0
  10913. trap 'as_fn_exit 1' 1 2 13 15
  10914. }
  10915. # Create a (secure) tmp directory for tmp files.
  10916.  
  10917. {
  10918. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10919. test -d "$tmp"
  10920. } ||
  10921. {
  10922. tmp=./conf$$-$RANDOM
  10923. (umask 077 && mkdir "$tmp")
  10924. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10925. ac_tmp=$tmp
  10926.  
  10927. # Set up the scripts for CONFIG_FILES section.
  10928. # No need to generate them if there are no CONFIG_FILES.
  10929. # This happens for instance with `./config.status config.h'.
  10930. if test -n "$CONFIG_FILES"; then
  10931.  
  10932.  
  10933. ac_cr=`echo X | tr X '\015'`
  10934. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10935. # But we know of no other shell where ac_cr would be empty at this
  10936. # point, so we can use a bashism as a fallback.
  10937. if test "x$ac_cr" = x; then
  10938. eval ac_cr=\$\'\\r\'
  10939. fi
  10940. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10941. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10942. ac_cs_awk_cr='\\r'
  10943. else
  10944. ac_cs_awk_cr=$ac_cr
  10945. fi
  10946.  
  10947. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10948. _ACEOF
  10949.  
  10950.  
  10951. {
  10952. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10953. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10954. echo "_ACEOF"
  10955. } >conf$$subs.sh ||
  10956. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10957. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10958. ac_delim='%!_!# '
  10959. for ac_last_try in false false false false false :; do
  10960. . ./conf$$subs.sh ||
  10961. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10962.  
  10963. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10964. if test $ac_delim_n = $ac_delim_num; then
  10965. break
  10966. elif $ac_last_try; then
  10967. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10968. else
  10969. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10970. fi
  10971. done
  10972. rm -f conf$$subs.sh
  10973.  
  10974. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10975. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10976. _ACEOF
  10977. sed -n '
  10978. h
  10979. s/^/S["/; s/!.*/"]=/
  10980. p
  10981. g
  10982. s/^[^!]*!//
  10983. :repl
  10984. t repl
  10985. s/'"$ac_delim"'$//
  10986. t delim
  10987. :nl
  10988. h
  10989. s/\(.\{148\}\)..*/\1/
  10990. t more1
  10991. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10992. p
  10993. n
  10994. b repl
  10995. :more1
  10996. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10997. p
  10998. g
  10999. s/.\{148\}//
  11000. t nl
  11001. :delim
  11002. h
  11003. s/\(.\{148\}\)..*/\1/
  11004. t more2
  11005. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11006. p
  11007. b
  11008. :more2
  11009. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11010. p
  11011. g
  11012. s/.\{148\}//
  11013. t delim
  11014. ' <conf$$subs.awk | sed '
  11015. /^[^""]/{
  11016. N
  11017. s/\n//
  11018. }
  11019. ' >>$CONFIG_STATUS || ac_write_fail=1
  11020. rm -f conf$$subs.awk
  11021. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11022. _ACAWK
  11023. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11024. for (key in S) S_is_set[key] = 1
  11025. FS = ""
  11026.  
  11027. }
  11028. {
  11029. line = $ 0
  11030. nfields = split(line, field, "@")
  11031. substed = 0
  11032. len = length(field[1])
  11033. for (i = 2; i < nfields; i++) {
  11034. key = field[i]
  11035. keylen = length(key)
  11036. if (S_is_set[key]) {
  11037. value = S[key]
  11038. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11039. len += length(value) + length(field[++i])
  11040. substed = 1
  11041. } else
  11042. len += 1 + keylen
  11043. }
  11044.  
  11045. print line
  11046. }
  11047.  
  11048. _ACAWK
  11049. _ACEOF
  11050. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11051. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11052. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11053. else
  11054. cat
  11055. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11056. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11057. _ACEOF
  11058.  
  11059. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11060. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11061. # trailing colons and then remove the whole line if VPATH becomes empty
  11062. # (actually we leave an empty line to preserve line numbers).
  11063. if test "x$srcdir" = x.; then
  11064. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11065. h
  11066. s///
  11067. s/^/:/
  11068. s/[ ]*$/:/
  11069. s/:\$(srcdir):/:/g
  11070. s/:\${srcdir}:/:/g
  11071. s/:@srcdir@:/:/g
  11072. s/^:*//
  11073. s/:*$//
  11074. x
  11075. s/\(=[ ]*\).*/\1/
  11076. G
  11077. s/\n//
  11078. s/^[^=]*=[ ]*$//
  11079. }'
  11080. fi
  11081.  
  11082. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11083. fi # test -n "$CONFIG_FILES"
  11084.  
  11085. # Set up the scripts for CONFIG_HEADERS section.
  11086. # No need to generate them if there are no CONFIG_HEADERS.
  11087. # This happens for instance with `./config.status Makefile'.
  11088. if test -n "$CONFIG_HEADERS"; then
  11089. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11090. BEGIN {
  11091. _ACEOF
  11092.  
  11093. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11094. # here-document in config.status, that substitutes the proper values into
  11095. # config.h.in to produce config.h.
  11096.  
  11097. # Create a delimiter string that does not exist in confdefs.h, to ease
  11098. # handling of long lines.
  11099. ac_delim='%!_!# '
  11100. for ac_last_try in false false :; do
  11101. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11102. if test -z "$ac_tt"; then
  11103. break
  11104. elif $ac_last_try; then
  11105. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11106. else
  11107. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11108. fi
  11109. done
  11110.  
  11111. # For the awk script, D is an array of macro values keyed by name,
  11112. # likewise P contains macro parameters if any. Preserve backslash
  11113. # newline sequences.
  11114.  
  11115. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11116. sed -n '
  11117. s/.\{148\}/&'"$ac_delim"'/g
  11118. t rset
  11119. :rset
  11120. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11121. t def
  11122. d
  11123. :def
  11124. s/\\$//
  11125. t bsnl
  11126. s/["\\]/\\&/g
  11127. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11128. D["\1"]=" \3"/p
  11129. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11130. d
  11131. :bsnl
  11132. s/["\\]/\\&/g
  11133. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11134. D["\1"]=" \3\\\\\\n"\\/p
  11135. t cont
  11136. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11137. t cont
  11138. d
  11139. :cont
  11140. n
  11141. s/.\{148\}/&'"$ac_delim"'/g
  11142. t clear
  11143. :clear
  11144. s/\\$//
  11145. t bsnlc
  11146. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11147. d
  11148. :bsnlc
  11149. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11150. b cont
  11151. ' <confdefs.h | sed '
  11152. s/'"$ac_delim"'/"\\\
  11153. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11154.  
  11155. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11156. for (key in D) D_is_set[key] = 1
  11157. FS = ""
  11158. }
  11159. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11160. line = \$ 0
  11161. split(line, arg, " ")
  11162. if (arg[1] == "#") {
  11163. defundef = arg[2]
  11164. mac1 = arg[3]
  11165. } else {
  11166. defundef = substr(arg[1], 2)
  11167. mac1 = arg[2]
  11168. }
  11169. split(mac1, mac2, "(") #)
  11170. macro = mac2[1]
  11171. prefix = substr(line, 1, index(line, defundef) - 1)
  11172. if (D_is_set[macro]) {
  11173. # Preserve the white space surrounding the "#".
  11174. print prefix "define", macro P[macro] D[macro]
  11175. next
  11176. } else {
  11177. # Replace #undef with comments. This is necessary, for example,
  11178. # in the case of _POSIX_SOURCE, which is predefined and required
  11179. # on some systems where configure will not decide to define it.
  11180. if (defundef == "undef") {
  11181. print "/*", prefix defundef, macro, "*/"
  11182. next
  11183. }
  11184. }
  11185. }
  11186. { print }
  11187. _ACAWK
  11188. _ACEOF
  11189. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11190. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11191. fi # test -n "$CONFIG_HEADERS"
  11192.  
  11193.  
  11194. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11195. shift
  11196. for ac_tag
  11197. do
  11198. case $ac_tag in
  11199. :[FHLC]) ac_mode=$ac_tag; continue;;
  11200. esac
  11201. case $ac_mode$ac_tag in
  11202. :[FHL]*:*);;
  11203. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11204. :[FH]-) ac_tag=-:-;;
  11205. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11206. esac
  11207. ac_save_IFS=$IFS
  11208. IFS=:
  11209. set x $ac_tag
  11210. IFS=$ac_save_IFS
  11211. shift
  11212. ac_file=$1
  11213. shift
  11214.  
  11215. case $ac_mode in
  11216. :L) ac_source=$1;;
  11217. :[FH])
  11218. ac_file_inputs=
  11219. for ac_f
  11220. do
  11221. case $ac_f in
  11222. -) ac_f="$ac_tmp/stdin";;
  11223. *) # Look for the file first in the build tree, then in the source tree
  11224. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11225. # because $ac_f cannot contain `:'.
  11226. test -f "$ac_f" ||
  11227. case $ac_f in
  11228. [\\/$]*) false;;
  11229. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11230. esac ||
  11231. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11232. esac
  11233. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11234. as_fn_append ac_file_inputs " '$ac_f'"
  11235. done
  11236.  
  11237. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11238. # use $as_me), people would be surprised to read:
  11239. # /* config.h. Generated by config.status. */
  11240. configure_input='Generated from '`
  11241. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11242. `' by configure.'
  11243. if test x"$ac_file" != x-; then
  11244. configure_input="$ac_file. $configure_input"
  11245. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11246. $as_echo "$as_me: creating $ac_file" >&6;}
  11247. fi
  11248. # Neutralize special characters interpreted by sed in replacement strings.
  11249. case $configure_input in #(
  11250. *\&* | *\|* | *\\* )
  11251. ac_sed_conf_input=`$as_echo "$configure_input" |
  11252. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11253. *) ac_sed_conf_input=$configure_input;;
  11254. esac
  11255.  
  11256. case $ac_tag in
  11257. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11258. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11259. esac
  11260. ;;
  11261. esac
  11262.  
  11263. ac_dir=`$as_dirname -- "$ac_file" ||
  11264. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11265. X"$ac_file" : 'X\(//\)[^/]' \| \
  11266. X"$ac_file" : 'X\(//\)$' \| \
  11267. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11268. $as_echo X"$ac_file" |
  11269. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11270. s//\1/
  11271. q
  11272. }
  11273. /^X\(\/\/\)[^/].*/{
  11274. s//\1/
  11275. q
  11276. }
  11277. /^X\(\/\/\)$/{
  11278. s//\1/
  11279. q
  11280. }
  11281. /^X\(\/\).*/{
  11282. s//\1/
  11283. q
  11284. }
  11285. s/.*/./; q'`
  11286. as_dir="$ac_dir"; as_fn_mkdir_p
  11287. ac_builddir=.
  11288.  
  11289. case "$ac_dir" in
  11290. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11291. *)
  11292. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11293. # A ".." for each directory in $ac_dir_suffix.
  11294. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11295. case $ac_top_builddir_sub in
  11296. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11297. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11298. esac ;;
  11299. esac
  11300. ac_abs_top_builddir=$ac_pwd
  11301. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11302. # for backward compatibility:
  11303. ac_top_builddir=$ac_top_build_prefix
  11304.  
  11305. case $srcdir in
  11306. .) # We are building in place.
  11307. ac_srcdir=.
  11308. ac_top_srcdir=$ac_top_builddir_sub
  11309. ac_abs_top_srcdir=$ac_pwd ;;
  11310. [\\/]* | ?:[\\/]* ) # Absolute name.
  11311. ac_srcdir=$srcdir$ac_dir_suffix;
  11312. ac_top_srcdir=$srcdir
  11313. ac_abs_top_srcdir=$srcdir ;;
  11314. *) # Relative name.
  11315. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11316. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11317. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11318. esac
  11319. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11320.  
  11321.  
  11322. case $ac_mode in
  11323. :F)
  11324. #
  11325. # CONFIG_FILE
  11326. #
  11327.  
  11328. case $INSTALL in
  11329. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11330. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11331. esac
  11332. ac_MKDIR_P=$MKDIR_P
  11333. case $MKDIR_P in
  11334. [\\/$]* | ?:[\\/]* ) ;;
  11335. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11336. esac
  11337. _ACEOF
  11338.  
  11339. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11340. # If the template does not know about datarootdir, expand it.
  11341. # FIXME: This hack should be removed a few years after 2.60.
  11342. ac_datarootdir_hack=; ac_datarootdir_seen=
  11343. ac_sed_dataroot='
  11344. /datarootdir/ {
  11345. p
  11346. q
  11347. }
  11348. /@datadir@/p
  11349. /@docdir@/p
  11350. /@infodir@/p
  11351. /@localedir@/p
  11352. /@mandir@/p'
  11353. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11354. *datarootdir*) ac_datarootdir_seen=yes;;
  11355. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11357. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11358. _ACEOF
  11359. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11360. ac_datarootdir_hack='
  11361. s&@datadir@&$datadir&g
  11362. s&@docdir@&$docdir&g
  11363. s&@infodir@&$infodir&g
  11364. s&@localedir@&$localedir&g
  11365. s&@mandir@&$mandir&g
  11366. s&\\\${datarootdir}&$datarootdir&g' ;;
  11367. esac
  11368. _ACEOF
  11369.  
  11370. # Neutralize VPATH when `$srcdir' = `.'.
  11371. # Shell code in configure.ac might set extrasub.
  11372. # FIXME: do we really want to maintain this feature?
  11373. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11374. ac_sed_extra="$ac_vpsub
  11375. $extrasub
  11376. _ACEOF
  11377. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11378. :t
  11379. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11380. s|@configure_input@|$ac_sed_conf_input|;t t
  11381. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11382. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11383. s&@srcdir@&$ac_srcdir&;t t
  11384. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11385. s&@top_srcdir@&$ac_top_srcdir&;t t
  11386. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11387. s&@builddir@&$ac_builddir&;t t
  11388. s&@abs_builddir@&$ac_abs_builddir&;t t
  11389. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11390. s&@INSTALL@&$ac_INSTALL&;t t
  11391. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11392. $ac_datarootdir_hack
  11393. "
  11394. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11395. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11396.  
  11397. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11398. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11399. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11400. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11401. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11402. which seems to be undefined. Please make sure it is defined" >&5
  11403. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11404. which seems to be undefined. Please make sure it is defined" >&2;}
  11405.  
  11406. rm -f "$ac_tmp/stdin"
  11407. case $ac_file in
  11408. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11409. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11410. esac \
  11411. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11412. ;;
  11413. :H)
  11414. #
  11415. # CONFIG_HEADER
  11416. #
  11417. if test x"$ac_file" != x-; then
  11418. {
  11419. $as_echo "/* $configure_input */" \
  11420. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11421. } >"$ac_tmp/config.h" \
  11422. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11423. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11424. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11425. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11426. else
  11427. rm -f "$ac_file"
  11428. mv "$ac_tmp/config.h" "$ac_file" \
  11429. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11430. fi
  11431. else
  11432. $as_echo "/* $configure_input */" \
  11433. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11434. || as_fn_error $? "could not create -" "$LINENO" 5
  11435. fi
  11436. # Compute "$ac_file"'s index in $config_headers.
  11437. _am_arg="$ac_file"
  11438. _am_stamp_count=1
  11439. for _am_header in $config_headers :; do
  11440. case $_am_header in
  11441. $_am_arg | $_am_arg:* )
  11442. break ;;
  11443. * )
  11444. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11445. esac
  11446. done
  11447. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11448. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11449. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11450. X"$_am_arg" : 'X\(//\)$' \| \
  11451. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11452. $as_echo X"$_am_arg" |
  11453. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11454. s//\1/
  11455. q
  11456. }
  11457. /^X\(\/\/\)[^/].*/{
  11458. s//\1/
  11459. q
  11460. }
  11461. /^X\(\/\/\)$/{
  11462. s//\1/
  11463. q
  11464. }
  11465. /^X\(\/\).*/{
  11466. s//\1/
  11467. q
  11468. }
  11469. s/.*/./; q'`/stamp-h$_am_stamp_count
  11470. ;;
  11471.  
  11472. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11473. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11474. ;;
  11475. esac
  11476.  
  11477.  
  11478. case $ac_file$ac_mode in
  11479. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11480. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11481. # are listed without --file. Let's play safe and only enable the eval
  11482. # if we detect the quoting.
  11483. case $CONFIG_FILES in
  11484. *\'*) eval set x "$CONFIG_FILES" ;;
  11485. *) set x $CONFIG_FILES ;;
  11486. esac
  11487. shift
  11488. for mf
  11489. do
  11490. # Strip MF so we end up with the name of the file.
  11491. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11492. # Check whether this is an Automake generated Makefile or not.
  11493. # We used to match only the files named `Makefile.in', but
  11494. # some people rename them; so instead we look at the file content.
  11495. # Grep'ing the first line is not enough: some people post-process
  11496. # each Makefile.in and add a new line on top of each file to say so.
  11497. # Grep'ing the whole file is not good either: AIX grep has a line
  11498. # limit of 2048, but all sed's we know have understand at least 4000.
  11499. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11500. dirpart=`$as_dirname -- "$mf" ||
  11501. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11502. X"$mf" : 'X\(//\)[^/]' \| \
  11503. X"$mf" : 'X\(//\)$' \| \
  11504. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11505. $as_echo X"$mf" |
  11506. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11507. s//\1/
  11508. q
  11509. }
  11510. /^X\(\/\/\)[^/].*/{
  11511. s//\1/
  11512. q
  11513. }
  11514. /^X\(\/\/\)$/{
  11515. s//\1/
  11516. q
  11517. }
  11518. /^X\(\/\).*/{
  11519. s//\1/
  11520. q
  11521. }
  11522. s/.*/./; q'`
  11523. else
  11524. continue
  11525. fi
  11526. # Extract the definition of DEPDIR, am__include, and am__quote
  11527. # from the Makefile without running `make'.
  11528. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11529. test -z "$DEPDIR" && continue
  11530. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11531. test -z "am__include" && continue
  11532. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11533. # When using ansi2knr, U may be empty or an underscore; expand it
  11534. U=`sed -n 's/^U = //p' < "$mf"`
  11535. # Find all dependency output files, they are included files with
  11536. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11537. # simplest approach to changing $(DEPDIR) to its actual value in the
  11538. # expansion.
  11539. for file in `sed -n "
  11540. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11541. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11542. # Make sure the directory exists.
  11543. test -f "$dirpart/$file" && continue
  11544. fdir=`$as_dirname -- "$file" ||
  11545. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11546. X"$file" : 'X\(//\)[^/]' \| \
  11547. X"$file" : 'X\(//\)$' \| \
  11548. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11549. $as_echo X"$file" |
  11550. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11551. s//\1/
  11552. q
  11553. }
  11554. /^X\(\/\/\)[^/].*/{
  11555. s//\1/
  11556. q
  11557. }
  11558. /^X\(\/\/\)$/{
  11559. s//\1/
  11560. q
  11561. }
  11562. /^X\(\/\).*/{
  11563. s//\1/
  11564. q
  11565. }
  11566. s/.*/./; q'`
  11567. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11568. # echo "creating $dirpart/$file"
  11569. echo '# dummy' > "$dirpart/$file"
  11570. done
  11571. done
  11572. }
  11573. ;;
  11574. "po-directories":C)
  11575. for ac_file in $CONFIG_FILES; do
  11576. # Support "outfile[:infile[:infile...]]"
  11577. case "$ac_file" in
  11578. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11579. esac
  11580. # PO directories have a Makefile.in generated from Makefile.in.in.
  11581. case "$ac_file" in */Makefile.in)
  11582. # Adjust a relative srcdir.
  11583. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  11584. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  11585. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  11586. # In autoconf-2.13 it is called $ac_given_srcdir.
  11587. # In autoconf-2.50 it is called $srcdir.
  11588. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  11589. case "$ac_given_srcdir" in
  11590. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  11591. /*) top_srcdir="$ac_given_srcdir" ;;
  11592. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11593. esac
  11594. # Treat a directory as a PO directory if and only if it has a
  11595. # POTFILES.in file. This allows packages to have multiple PO
  11596. # directories under different names or in different locations.
  11597. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  11598. rm -f "$ac_dir/POTFILES"
  11599. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  11600. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  11601. POMAKEFILEDEPS="POTFILES.in"
  11602. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  11603. # on $ac_dir but don't depend on user-specified configuration
  11604. # parameters.
  11605. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  11606. # The LINGUAS file contains the set of available languages.
  11607. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  11608. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  11609. fi
  11610. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  11611. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  11612. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  11613. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  11614. else
  11615. # The set of available languages was given in configure.in.
  11616. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  11617. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  11618. fi
  11619. # Compute POFILES
  11620. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  11621. # Compute UPDATEPOFILES
  11622. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  11623. # Compute DUMMYPOFILES
  11624. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  11625. # Compute GMOFILES
  11626. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  11627. case "$ac_given_srcdir" in
  11628. .) srcdirpre= ;;
  11629. *) srcdirpre='$(srcdir)/' ;;
  11630. esac
  11631. POFILES=
  11632. UPDATEPOFILES=
  11633. DUMMYPOFILES=
  11634. GMOFILES=
  11635. for lang in $ALL_LINGUAS; do
  11636. POFILES="$POFILES $srcdirpre$lang.po"
  11637. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  11638. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  11639. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  11640. done
  11641. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  11642. # environment variable.
  11643. INST_LINGUAS=
  11644. if test -n "$ALL_LINGUAS"; then
  11645. for presentlang in $ALL_LINGUAS; do
  11646. useit=no
  11647. if test "%UNSET%" != "$LINGUAS"; then
  11648. desiredlanguages="$LINGUAS"
  11649. else
  11650. desiredlanguages="$ALL_LINGUAS"
  11651. fi
  11652. for desiredlang in $desiredlanguages; do
  11653. # Use the presentlang catalog if desiredlang is
  11654. # a. equal to presentlang, or
  11655. # b. a variant of presentlang (because in this case,
  11656. # presentlang can be used as a fallback for messages
  11657. # which are not translated in the desiredlang catalog).
  11658. case "$desiredlang" in
  11659. "$presentlang"*) useit=yes;;
  11660. esac
  11661. done
  11662. if test $useit = yes; then
  11663. INST_LINGUAS="$INST_LINGUAS $presentlang"
  11664. fi
  11665. done
  11666. fi
  11667. CATALOGS=
  11668. if test -n "$INST_LINGUAS"; then
  11669. for lang in $INST_LINGUAS; do
  11670. CATALOGS="$CATALOGS $lang.gmo"
  11671. done
  11672. fi
  11673. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  11674. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  11675. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  11676. if test -f "$f"; then
  11677. case "$f" in
  11678. *.orig | *.bak | *~) ;;
  11679. *) cat "$f" >> "$ac_dir/Makefile" ;;
  11680. esac
  11681. fi
  11682. done
  11683. fi
  11684. ;;
  11685. esac
  11686. done ;;
  11687.  
  11688. esac
  11689. done # for ac_tag
  11690.  
  11691.  
  11692. as_fn_exit 0
  11693. _ACEOF
  11694. ac_clean_files=$ac_clean_files_save
  11695.  
  11696. test $ac_write_fail = 0 ||
  11697. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11698.  
  11699.  
  11700. # configure is writing to config.log, and then calls config.status.
  11701. # config.status does its own redirection, appending to config.log.
  11702. # Unfortunately, on DOS this fails, as config.log is still kept open
  11703. # by configure, so config.status won't be able to write to it; its
  11704. # output is simply discarded. So we exec the FD to /dev/null,
  11705. # effectively closing config.log, so it can be properly (re)opened and
  11706. # appended to by config.status. When coming back to configure, we
  11707. # need to make the FD available again.
  11708. if test "$no_create" != yes; then
  11709. ac_cs_success=:
  11710. ac_config_status_args=
  11711. test "$silent" = yes &&
  11712. ac_config_status_args="$ac_config_status_args --quiet"
  11713. exec 5>/dev/null
  11714. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11715. exec 5>>config.log
  11716. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11717. # would make configure fail if this is the last instruction.
  11718. $ac_cs_success || as_fn_exit 1
  11719. fi
  11720. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11722. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11723. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement