Advertisement
Baluditor

minidlna_config

Jun 2nd, 2016
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 359.23 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.3.
  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.3'
  581. PACKAGE_STRING='MiniDLNA 1.1.3'
  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. STATIC_LDFLAGS
  626. STATIC_CFLAGS
  627. NEED_VORBIS_FALSE
  628. NEED_VORBIS_TRUE
  629. NEED_OGG_FALSE
  630. NEED_OGG_TRUE
  631. HAVE_FLAC_FALSE
  632. HAVE_FLAC_TRUE
  633. HAVE_VORBISFILE_FALSE
  634. HAVE_VORBISFILE_TRUE
  635. LIBAVUTIL_LIBS
  636. LIBAVFORMAT_LIBS
  637. LIBSQLITE3_LIBS
  638. LIBID3TAG_LIBS
  639. LIBEXIF_LIBS
  640. LIBJPEG_LIBS
  641. LIBOBJS
  642. LN_S
  643. POSUB
  644. LTLIBINTL
  645. LIBINTL
  646. INTLLIBS
  647. INTL_MACOSX_LIBS
  648. XGETTEXT_EXTRA_OPTIONS
  649. MSGMERGE
  650. XGETTEXT_015
  651. XGETTEXT
  652. GMSGFMT_015
  653. MSGFMT_015
  654. GMSGFMT
  655. MSGFMT
  656. GETTEXT_MACRO_VERSION
  657. USE_NLS
  658. LTLIBICONV
  659. LIBICONV
  660. EGREP
  661. GREP
  662. CPP
  663. am__fastdepCC_FALSE
  664. am__fastdepCC_TRUE
  665. CCDEPMODE
  666. am__nodep
  667. AMDEPBACKSLASH
  668. AMDEP_FALSE
  669. AMDEP_TRUE
  670. am__quote
  671. am__include
  672. DEPDIR
  673. OBJEXT
  674. EXEEXT
  675. ac_ct_CC
  676. CPPFLAGS
  677. LDFLAGS
  678. CFLAGS
  679. CC
  680. AM_BACKSLASH
  681. AM_DEFAULT_VERBOSITY
  682. AM_DEFAULT_V
  683. AM_V
  684. am__untar
  685. am__tar
  686. AMTAR
  687. am__leading_dot
  688. SET_MAKE
  689. AWK
  690. mkdir_p
  691. MKDIR_P
  692. INSTALL_STRIP_PROGRAM
  693. STRIP
  694. install_sh
  695. MAKEINFO
  696. AUTOHEADER
  697. AUTOMAKE
  698. AUTOCONF
  699. ACLOCAL
  700. VERSION
  701. PACKAGE
  702. CYGPATH_W
  703. am__isrc
  704. INSTALL_DATA
  705. INSTALL_SCRIPT
  706. INSTALL_PROGRAM
  707. target_os
  708. target_vendor
  709. target_cpu
  710. target
  711. host_os
  712. host_vendor
  713. host_cpu
  714. host
  715. build_os
  716. build_vendor
  717. build_cpu
  718. build
  719. target_alias
  720. host_alias
  721. build_alias
  722. LIBS
  723. ECHO_T
  724. ECHO_N
  725. ECHO_C
  726. DEFS
  727. mandir
  728. localedir
  729. libdir
  730. psdir
  731. pdfdir
  732. dvidir
  733. htmldir
  734. infodir
  735. docdir
  736. oldincludedir
  737. includedir
  738. localstatedir
  739. sharedstatedir
  740. sysconfdir
  741. datadir
  742. datarootdir
  743. libexecdir
  744. sbindir
  745. bindir
  746. program_transform_name
  747. prefix
  748. exec_prefix
  749. PACKAGE_URL
  750. PACKAGE_BUGREPORT
  751. PACKAGE_STRING
  752. PACKAGE_VERSION
  753. PACKAGE_TARNAME
  754. PACKAGE_NAME
  755. PATH_SEPARATOR
  756. SHELL'
  757. ac_subst_files=''
  758. ac_user_opts='
  759. enable_option_checking
  760. enable_silent_rules
  761. enable_dependency_tracking
  762. with_gnu_ld
  763. enable_rpath
  764. with_libiconv_prefix
  765. enable_nls
  766. with_libintl_prefix
  767. with_log_path
  768. with_db_path
  769. with_os_name
  770. with_os_version
  771. with_os_url
  772. enable_tivo
  773. enable_netgear
  774. enable_readynas
  775. enable_static
  776. '
  777.       ac_precious_vars='build_alias
  778. host_alias
  779. target_alias
  780. CC
  781. CFLAGS
  782. LDFLAGS
  783. LIBS
  784. CPPFLAGS
  785. CPP'
  786.  
  787.  
  788. # Initialize some variables set by options.
  789. ac_init_help=
  790. ac_init_version=false
  791. ac_unrecognized_opts=
  792. ac_unrecognized_sep=
  793. # The variables have the same names as the options, with
  794. # dashes changed to underlines.
  795. cache_file=/dev/null
  796. exec_prefix=NONE
  797. no_create=
  798. no_recursion=
  799. prefix=NONE
  800. program_prefix=NONE
  801. program_suffix=NONE
  802. program_transform_name=s,x,x,
  803. silent=
  804. site=
  805. srcdir=
  806. verbose=
  807. x_includes=NONE
  808. x_libraries=NONE
  809.  
  810. # Installation directory options.
  811. # These are left unexpanded so users can "make install exec_prefix=/foo"
  812. # and all the variables that are supposed to be based on exec_prefix
  813. # by default will actually change.
  814. # Use braces instead of parens because sh, perl, etc. also accept them.
  815. # (The list follows the same order as the GNU Coding Standards.)
  816. bindir='${exec_prefix}/bin'
  817. sbindir='${exec_prefix}/sbin'
  818. libexecdir='${exec_prefix}/libexec'
  819. datarootdir='${prefix}/share'
  820. datadir='${datarootdir}'
  821. sysconfdir='${prefix}/etc'
  822. sharedstatedir='${prefix}/com'
  823. localstatedir='${prefix}/var'
  824. includedir='${prefix}/include'
  825. oldincludedir='/usr/include'
  826. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  827. infodir='${datarootdir}/info'
  828. htmldir='${docdir}'
  829. dvidir='${docdir}'
  830. pdfdir='${docdir}'
  831. psdir='${docdir}'
  832. libdir='${exec_prefix}/lib'
  833. localedir='${datarootdir}/locale'
  834. mandir='${datarootdir}/man'
  835.  
  836. ac_prev=
  837. ac_dashdash=
  838. for ac_option
  839. do
  840.   # If the previous option needs an argument, assign it.
  841.   if test -n "$ac_prev"; then
  842.     eval $ac_prev=\$ac_option
  843.     ac_prev=
  844.     continue
  845.   fi
  846.  
  847.   case $ac_option in
  848.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  849.   *=)   ac_optarg= ;;
  850.   *)    ac_optarg=yes ;;
  851.   esac
  852.  
  853.   # Accept the important Cygnus configure options, so we can diagnose typos.
  854.  
  855.   case $ac_dashdash$ac_option in
  856.   --)
  857.     ac_dashdash=yes ;;
  858.  
  859.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  860.     ac_prev=bindir ;;
  861.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  862.     bindir=$ac_optarg ;;
  863.  
  864.   -build | --build | --buil | --bui | --bu)
  865.     ac_prev=build_alias ;;
  866.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  867.     build_alias=$ac_optarg ;;
  868.  
  869.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  870.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  871.     ac_prev=cache_file ;;
  872.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  873.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  874.     cache_file=$ac_optarg ;;
  875.  
  876.   --config-cache | -C)
  877.     cache_file=config.cache ;;
  878.  
  879.   -datadir | --datadir | --datadi | --datad)
  880.     ac_prev=datadir ;;
  881.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  882.     datadir=$ac_optarg ;;
  883.  
  884.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  885.   | --dataroo | --dataro | --datar)
  886.     ac_prev=datarootdir ;;
  887.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  888.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  889.     datarootdir=$ac_optarg ;;
  890.  
  891.   -disable-* | --disable-*)
  892.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  893.     # Reject names that are not valid shell variable names.
  894.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  895.       as_fn_error $? "invalid feature name: $ac_useropt"
  896.     ac_useropt_orig=$ac_useropt
  897.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  898.     case $ac_user_opts in
  899.       *"
  900. "enable_$ac_useropt"
  901. "*) ;;
  902.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  903.      ac_unrecognized_sep=', ';;
  904.     esac
  905.     eval enable_$ac_useropt=no ;;
  906.  
  907.   -docdir | --docdir | --docdi | --doc | --do)
  908.     ac_prev=docdir ;;
  909.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  910.     docdir=$ac_optarg ;;
  911.  
  912.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  913.     ac_prev=dvidir ;;
  914.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  915.     dvidir=$ac_optarg ;;
  916.  
  917.   -enable-* | --enable-*)
  918.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  919.     # Reject names that are not valid shell variable names.
  920.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  921.       as_fn_error $? "invalid feature name: $ac_useropt"
  922.     ac_useropt_orig=$ac_useropt
  923.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  924.     case $ac_user_opts in
  925.       *"
  926. "enable_$ac_useropt"
  927. "*) ;;
  928.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  929.      ac_unrecognized_sep=', ';;
  930.     esac
  931.     eval enable_$ac_useropt=\$ac_optarg ;;
  932.  
  933.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  934.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  935.   | --exec | --exe | --ex)
  936.     ac_prev=exec_prefix ;;
  937.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  938.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  939.   | --exec=* | --exe=* | --ex=*)
  940.     exec_prefix=$ac_optarg ;;
  941.  
  942.   -gas | --gas | --ga | --g)
  943.     # Obsolete; use --with-gas.
  944.     with_gas=yes ;;
  945.  
  946.   -help | --help | --hel | --he | -h)
  947.     ac_init_help=long ;;
  948.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  949.     ac_init_help=recursive ;;
  950.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  951.     ac_init_help=short ;;
  952.  
  953.   -host | --host | --hos | --ho)
  954.     ac_prev=host_alias ;;
  955.   -host=* | --host=* | --hos=* | --ho=*)
  956.     host_alias=$ac_optarg ;;
  957.  
  958.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  959.     ac_prev=htmldir ;;
  960.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  961.   | --ht=*)
  962.     htmldir=$ac_optarg ;;
  963.  
  964.   -includedir | --includedir | --includedi | --included | --include \
  965.   | --includ | --inclu | --incl | --inc)
  966.     ac_prev=includedir ;;
  967.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  968.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  969.     includedir=$ac_optarg ;;
  970.  
  971.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  972.     ac_prev=infodir ;;
  973.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  974.     infodir=$ac_optarg ;;
  975.  
  976.   -libdir | --libdir | --libdi | --libd)
  977.     ac_prev=libdir ;;
  978.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  979.     libdir=$ac_optarg ;;
  980.  
  981.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  982.   | --libexe | --libex | --libe)
  983.     ac_prev=libexecdir ;;
  984.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  985.   | --libexe=* | --libex=* | --libe=*)
  986.     libexecdir=$ac_optarg ;;
  987.  
  988.   -localedir | --localedir | --localedi | --localed | --locale)
  989.     ac_prev=localedir ;;
  990.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  991.     localedir=$ac_optarg ;;
  992.  
  993.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  994.   | --localstate | --localstat | --localsta | --localst | --locals)
  995.     ac_prev=localstatedir ;;
  996.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  997.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  998.     localstatedir=$ac_optarg ;;
  999.  
  1000.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1001.     ac_prev=mandir ;;
  1002.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1003.     mandir=$ac_optarg ;;
  1004.  
  1005.   -nfp | --nfp | --nf)
  1006.     # Obsolete; use --without-fp.
  1007.     with_fp=no ;;
  1008.  
  1009.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1010.   | --no-cr | --no-c | -n)
  1011.     no_create=yes ;;
  1012.  
  1013.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1014.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1015.     no_recursion=yes ;;
  1016.  
  1017.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1018.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1019.   | --oldin | --oldi | --old | --ol | --o)
  1020.     ac_prev=oldincludedir ;;
  1021.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1022.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1023.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1024.     oldincludedir=$ac_optarg ;;
  1025.  
  1026.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1027.     ac_prev=prefix ;;
  1028.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1029.     prefix=$ac_optarg ;;
  1030.  
  1031.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1032.   | --program-pre | --program-pr | --program-p)
  1033.     ac_prev=program_prefix ;;
  1034.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1035.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1036.     program_prefix=$ac_optarg ;;
  1037.  
  1038.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1039.   | --program-suf | --program-su | --program-s)
  1040.     ac_prev=program_suffix ;;
  1041.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1042.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1043.     program_suffix=$ac_optarg ;;
  1044.  
  1045.   -program-transform-name | --program-transform-name \
  1046.   | --program-transform-nam | --program-transform-na \
  1047.   | --program-transform-n | --program-transform- \
  1048.   | --program-transform | --program-transfor \
  1049.   | --program-transfo | --program-transf \
  1050.   | --program-trans | --program-tran \
  1051.   | --progr-tra | --program-tr | --program-t)
  1052.     ac_prev=program_transform_name ;;
  1053.   -program-transform-name=* | --program-transform-name=* \
  1054.   | --program-transform-nam=* | --program-transform-na=* \
  1055.   | --program-transform-n=* | --program-transform-=* \
  1056.   | --program-transform=* | --program-transfor=* \
  1057.   | --program-transfo=* | --program-transf=* \
  1058.   | --program-trans=* | --program-tran=* \
  1059.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1060.     program_transform_name=$ac_optarg ;;
  1061.  
  1062.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1063.     ac_prev=pdfdir ;;
  1064.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1065.     pdfdir=$ac_optarg ;;
  1066.  
  1067.   -psdir | --psdir | --psdi | --psd | --ps)
  1068.     ac_prev=psdir ;;
  1069.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1070.     psdir=$ac_optarg ;;
  1071.  
  1072.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1073.   | -silent | --silent | --silen | --sile | --sil)
  1074.     silent=yes ;;
  1075.  
  1076.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1077.     ac_prev=sbindir ;;
  1078.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1079.   | --sbi=* | --sb=*)
  1080.     sbindir=$ac_optarg ;;
  1081.  
  1082.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1083.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1084.   | --sharedst | --shareds | --shared | --share | --shar \
  1085.   | --sha | --sh)
  1086.     ac_prev=sharedstatedir ;;
  1087.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1088.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1089.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1090.   | --sha=* | --sh=*)
  1091.     sharedstatedir=$ac_optarg ;;
  1092.  
  1093.   -site | --site | --sit)
  1094.     ac_prev=site ;;
  1095.   -site=* | --site=* | --sit=*)
  1096.     site=$ac_optarg ;;
  1097.  
  1098.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1099.     ac_prev=srcdir ;;
  1100.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1101.     srcdir=$ac_optarg ;;
  1102.  
  1103.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1104.   | --syscon | --sysco | --sysc | --sys | --sy)
  1105.     ac_prev=sysconfdir ;;
  1106.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1107.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1108.     sysconfdir=$ac_optarg ;;
  1109.  
  1110.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1111.     ac_prev=target_alias ;;
  1112.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1113.     target_alias=$ac_optarg ;;
  1114.  
  1115.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1116.     verbose=yes ;;
  1117.  
  1118.   -version | --version | --versio | --versi | --vers | -V)
  1119.     ac_init_version=: ;;
  1120.  
  1121.   -with-* | --with-*)
  1122.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1123.     # Reject names that are not valid shell variable names.
  1124.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1125.       as_fn_error $? "invalid package name: $ac_useropt"
  1126.     ac_useropt_orig=$ac_useropt
  1127.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1128.     case $ac_user_opts in
  1129.       *"
  1130. "with_$ac_useropt"
  1131. "*) ;;
  1132.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1133.      ac_unrecognized_sep=', ';;
  1134.     esac
  1135.     eval with_$ac_useropt=\$ac_optarg ;;
  1136.  
  1137.   -without-* | --without-*)
  1138.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1139.     # Reject names that are not valid shell variable names.
  1140.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1141.       as_fn_error $? "invalid package name: $ac_useropt"
  1142.     ac_useropt_orig=$ac_useropt
  1143.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1144.     case $ac_user_opts in
  1145.       *"
  1146. "with_$ac_useropt"
  1147. "*) ;;
  1148.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1149.      ac_unrecognized_sep=', ';;
  1150.     esac
  1151.     eval with_$ac_useropt=no ;;
  1152.  
  1153.   --x)
  1154.     # Obsolete; use --with-x.
  1155.     with_x=yes ;;
  1156.  
  1157.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1158.   | --x-incl | --x-inc | --x-in | --x-i)
  1159.     ac_prev=x_includes ;;
  1160.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1161.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1162.     x_includes=$ac_optarg ;;
  1163.  
  1164.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1165.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1166.     ac_prev=x_libraries ;;
  1167.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1168.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1169.     x_libraries=$ac_optarg ;;
  1170.  
  1171.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1172. Try \`$0 --help' for more information"
  1173.     ;;
  1174.  
  1175.   *=*)
  1176.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1177.     # Reject names that are not valid shell variable names.
  1178.     case $ac_envvar in #(
  1179.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1180.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1181.    esac
  1182.    eval $ac_envvar=\$ac_optarg
  1183.    export $ac_envvar ;;
  1184.  
  1185.  *)
  1186.    # FIXME: should be removed in autoconf 3.0.
  1187.    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1188.    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1189.      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1190.    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1191.    ;;
  1192.  
  1193.  esac
  1194. done
  1195.  
  1196. if test -n "$ac_prev"; then
  1197.  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1198.  as_fn_error $? "missing argument to $ac_option"
  1199. fi
  1200.  
  1201. if test -n "$ac_unrecognized_opts"; then
  1202.  case $enable_option_checking in
  1203.    no) ;;
  1204.    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1205.    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1206.  esac
  1207. fi
  1208.  
  1209. # Check all directory arguments for consistency.
  1210. for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1211.         datadir sysconfdir sharedstatedir localstatedir includedir \
  1212.         oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1213.         libdir localedir mandir
  1214. do
  1215.  eval ac_val=\$$ac_var
  1216.  # Remove trailing slashes.
  1217.  case $ac_val in
  1218.    */ )
  1219.      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1220.      eval $ac_var=\$ac_val;;
  1221.  esac
  1222.  # Be sure to have absolute directory names.
  1223.  case $ac_val in
  1224.    [\\/$]* | ?:[\\/]* )  continue;;
  1225.    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1226.  esac
  1227.  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1228. done
  1229.  
  1230. # There might be people who depend on the old broken behavior: `$host'
  1231. # used to hold the argument of --host etc.
  1232. # FIXME: To remove some day.
  1233. build=$build_alias
  1234. host=$host_alias
  1235. target=$target_alias
  1236.  
  1237. # FIXME: To remove some day.
  1238. if test "x$host_alias" != x; then
  1239.  if test "x$build_alias" = x; then
  1240.    cross_compiling=maybe
  1241.  elif test "x$build_alias" != "x$host_alias"; then
  1242.    cross_compiling=yes
  1243.  fi
  1244. fi
  1245.  
  1246. ac_tool_prefix=
  1247. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1248.  
  1249. test "$silent" = yes && exec 6>/dev/null
  1250.  
  1251.  
  1252. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1253. ac_ls_di=`ls -di .` &&
  1254. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1255.  as_fn_error $? "working directory cannot be determined"
  1256. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1257.  as_fn_error $? "pwd does not report name of working directory"
  1258.  
  1259.  
  1260. # Find the source files, if location was not specified.
  1261. if test -z "$srcdir"; then
  1262.  ac_srcdir_defaulted=yes
  1263.  # Try the directory containing this script, then the parent directory.
  1264.  ac_confdir=`$as_dirname -- "$as_myself" ||
  1265. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1266.      X"$as_myself" : 'X\(//\)[^/]' \| \
  1267.      X"$as_myself" : 'X\(//\)$' \| \
  1268.      X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1269. $as_echo X"$as_myself" |
  1270.    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1271.         s//\1/
  1272.         q
  1273.       }
  1274.       /^X\(\/\/\)[^/].*/{
  1275.         s//\1/
  1276.         q
  1277.       }
  1278.       /^X\(\/\/\)$/{
  1279.         s//\1/
  1280.         q
  1281.       }
  1282.       /^X\(\/\).*/{
  1283.         s//\1/
  1284.         q
  1285.       }
  1286.       s/.*/./; q'`
  1287.  srcdir=$ac_confdir
  1288.  if test ! -r "$srcdir/$ac_unique_file"; then
  1289.    srcdir=..
  1290.  fi
  1291. else
  1292.  ac_srcdir_defaulted=no
  1293. fi
  1294. if test ! -r "$srcdir/$ac_unique_file"; then
  1295.  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1296.  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1297. fi
  1298. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1299. ac_abs_confdir=`(
  1300.     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1301.     pwd)`
  1302. # When building in place, set srcdir=.
  1303. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1304.  srcdir=.
  1305. fi
  1306. # Remove unnecessary trailing slashes from srcdir.
  1307. # Double slashes in file names in object file debugging info
  1308. # mess up M-x gdb in Emacs.
  1309. case $srcdir in
  1310. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1311. esac
  1312. for ac_var in $ac_precious_vars; do
  1313.  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1314.  eval ac_env_${ac_var}_value=\$${ac_var}
  1315.  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1316.  eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1317. done
  1318.  
  1319. #
  1320. # Report the --help message.
  1321. #
  1322. if test "$ac_init_help" = "long"; then
  1323.  # Omit some internal or obsolete options to make the list less imposing.
  1324.  # This message is too long to be a string in the A/UX 3.1 sh.
  1325.  cat <<_ACEOF
  1326. \`configure' configures MiniDLNA 1.1.3 to adapt to many kinds of systems.
  1327.  
  1328. Usage: $0 [OPTION]... [VAR=VALUE]...
  1329.  
  1330. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1331. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1332.  
  1333. Defaults for the options are specified in brackets.
  1334.  
  1335. Configuration:
  1336.   -h, --help              display this help and exit
  1337.       --help=short        display options specific to this package
  1338.       --help=recursive    display the short help of all the included packages
  1339.   -V, --version           display version information and exit
  1340.   -q, --quiet, --silent   do not print \`checking ...' messages
  1341.      --cache-file=FILE   cache test results in FILE [disabled]
  1342.  -C, --config-cache      alias for \`--cache-file=config.cache'
  1343.   -n, --no-create         do not create output files
  1344.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1345.  
  1346. Installation directories:
  1347.  --prefix=PREFIX         install architecture-independent files in PREFIX
  1348.                          [$ac_default_prefix]
  1349.  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1350.                          [PREFIX]
  1351.  
  1352. By default, \`make install' will install all the files in
  1353. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1354. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1355. for instance \`--prefix=\$HOME'.
  1356.  
  1357. For better control, use the options below.
  1358.  
  1359. Fine tuning of the installation directories:
  1360.  --bindir=DIR            user executables [EPREFIX/bin]
  1361.  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1362.  --libexecdir=DIR        program executables [EPREFIX/libexec]
  1363.  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1364.  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1365.  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1366.  --libdir=DIR            object code libraries [EPREFIX/lib]
  1367.  --includedir=DIR        C header files [PREFIX/include]
  1368.  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1369.  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1370.  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1371.  --infodir=DIR           info documentation [DATAROOTDIR/info]
  1372.  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1373.  --mandir=DIR            man documentation [DATAROOTDIR/man]
  1374.  --docdir=DIR            documentation root [DATAROOTDIR/doc/minidlna]
  1375.  --htmldir=DIR           html documentation [DOCDIR]
  1376.  --dvidir=DIR            dvi documentation [DOCDIR]
  1377.  --pdfdir=DIR            pdf documentation [DOCDIR]
  1378.  --psdir=DIR             ps documentation [DOCDIR]
  1379. _ACEOF
  1380.  
  1381.  cat <<\_ACEOF
  1382.  
  1383. Program names:
  1384.  --program-prefix=PREFIX            prepend PREFIX to installed program names
  1385.  --program-suffix=SUFFIX            append SUFFIX to installed program names
  1386.  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1387.  
  1388. System types:
  1389.  --build=BUILD     configure for building on BUILD [guessed]
  1390.  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1391.  --target=TARGET   configure for building compilers for TARGET [HOST]
  1392. _ACEOF
  1393. fi
  1394.  
  1395. if test -n "$ac_init_help"; then
  1396.  case $ac_init_help in
  1397.     short | recursive ) echo "Configuration of MiniDLNA 1.1.3:";;
  1398.   esac
  1399.  cat <<\_ACEOF
  1400.  
  1401. Optional Features:
  1402.  --disable-option-checking  ignore unrecognized --enable/--with options
  1403.  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1404.  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1405.  --enable-silent-rules   less verbose build output (undo: "make V=1")
  1406.  --disable-silent-rules  verbose build output (undo: "make V=0")
  1407.  --enable-dependency-tracking
  1408.                          do not reject slow dependency extractors
  1409.  --disable-dependency-tracking
  1410.                          speeds up one-time build
  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.  
  1418. Optional Packages:
  1419.  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1420.  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1421.  --with-gnu-ld           assume the C compiler uses GNU ld default=no
  1422.  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
  1423.  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
  1424.   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
  1425.   --without-libintl-prefix     don't search for libintl in includedir and libdir
  1426.  --with-log-path=PATH    Default log path
  1427.  --with-db-path=PATH     Default DB path
  1428.  --with-os-name=NAME     OS Name
  1429.  --with-os-version=VERS  OS Version
  1430.  --with-os-url=URL       OS URL
  1431.  
  1432. Some influential environment variables:
  1433.  CC          C compiler command
  1434.  CFLAGS      C compiler flags
  1435.  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1436.              nonstandard directory <lib dir>
  1437.  LIBS        libraries to pass to the linker, e.g. -l<library>
  1438.  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1439.              you have headers in a nonstandard directory <include dir>
  1440.  CPP         C preprocessor
  1441.  
  1442. Use these variables to override the choices made by `configure' or to help
  1443. it to find libraries and programs with nonstandard names/locations.
  1444.  
  1445. Report bugs to the package provider.
  1446. _ACEOF
  1447. ac_status=$?
  1448. fi
  1449.  
  1450. if test "$ac_init_help" = "recursive"; then
  1451.   # If there are subdirs, report their specific --help.
  1452.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1453.     test -d "$ac_dir" ||
  1454.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1455.       continue
  1456.     ac_builddir=.
  1457.  
  1458. case "$ac_dir" in
  1459. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1460. *)
  1461.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1462.   # A ".." for each directory in $ac_dir_suffix.
  1463.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1464.   case $ac_top_builddir_sub in
  1465.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1466.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1467.   esac ;;
  1468. esac
  1469. ac_abs_top_builddir=$ac_pwd
  1470. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1471. # for backward compatibility:
  1472. ac_top_builddir=$ac_top_build_prefix
  1473.  
  1474. case $srcdir in
  1475.   .)  # We are building in place.
  1476.     ac_srcdir=.
  1477.     ac_top_srcdir=$ac_top_builddir_sub
  1478.     ac_abs_top_srcdir=$ac_pwd ;;
  1479.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1480.     ac_srcdir=$srcdir$ac_dir_suffix;
  1481.     ac_top_srcdir=$srcdir
  1482.     ac_abs_top_srcdir=$srcdir ;;
  1483.   *) # Relative name.
  1484.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1485.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1486.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1487. esac
  1488. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1489.  
  1490.     cd "$ac_dir" || { ac_status=$?; continue; }
  1491.     # Check for guested configure.
  1492.     if test -f "$ac_srcdir/configure.gnu"; then
  1493.       echo &&
  1494.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1495.     elif test -f "$ac_srcdir/configure"; then
  1496.       echo &&
  1497.       $SHELL "$ac_srcdir/configure" --help=recursive
  1498.     else
  1499.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1500.     fi || ac_status=$?
  1501.     cd "$ac_pwd" || { ac_status=$?; break; }
  1502.   done
  1503. fi
  1504.  
  1505. test -n "$ac_init_help" && exit $ac_status
  1506. if $ac_init_version; then
  1507.   cat <<\_ACEOF
  1508. MiniDLNA configure 1.1.3
  1509. generated by GNU Autoconf 2.69
  1510.  
  1511. Copyright (C) 2012 Free Software Foundation, Inc.
  1512. This configure script is free software; the Free Software Foundation
  1513. gives unlimited permission to copy, distribute and modify it.
  1514. _ACEOF
  1515.   exit
  1516. fi
  1517.  
  1518. ## ------------------------ ##
  1519. ## Autoconf initialization. ##
  1520. ## ------------------------ ##
  1521.  
  1522. # ac_fn_c_try_compile LINENO
  1523. # --------------------------
  1524. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1525. ac_fn_c_try_compile ()
  1526. {
  1527.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1528.   rm -f conftest.$ac_objext
  1529.   if { { ac_try="$ac_compile"
  1530. case "(($ac_try" in
  1531.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1532.   *) ac_try_echo=$ac_try;;
  1533. esac
  1534. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1535. $as_echo "$ac_try_echo"; } >&5
  1536.   (eval "$ac_compile") 2>conftest.err
  1537.   ac_status=$?
  1538.   if test -s conftest.err; then
  1539.     grep -v '^ *+' conftest.err >conftest.er1
  1540.     cat conftest.er1 >&5
  1541.     mv -f conftest.er1 conftest.err
  1542.   fi
  1543.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1544.   test $ac_status = 0; } && {
  1545.      test -z "$ac_c_werror_flag" ||
  1546.      test ! -s conftest.err
  1547.        } && test -s conftest.$ac_objext; then :
  1548.   ac_retval=0
  1549. else
  1550.   $as_echo "$as_me: failed program was:" >&5
  1551. sed 's/^/| /' conftest.$ac_ext >&5
  1552.  
  1553.     ac_retval=1
  1554. fi
  1555.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1556.   as_fn_set_status $ac_retval
  1557.  
  1558. } # ac_fn_c_try_compile
  1559.  
  1560. # ac_fn_c_try_cpp LINENO
  1561. # ----------------------
  1562. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1563. ac_fn_c_try_cpp ()
  1564. {
  1565.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1566.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1567. case "(($ac_try" in
  1568.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1569.   *) ac_try_echo=$ac_try;;
  1570. esac
  1571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1572. $as_echo "$ac_try_echo"; } >&5
  1573.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1574.   ac_status=$?
  1575.   if test -s conftest.err; then
  1576.     grep -v '^ *+' conftest.err >conftest.er1
  1577.     cat conftest.er1 >&5
  1578.     mv -f conftest.er1 conftest.err
  1579.   fi
  1580.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581.   test $ac_status = 0; } > conftest.i && {
  1582.      test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1583.      test ! -s conftest.err
  1584.        }; then :
  1585.   ac_retval=0
  1586. else
  1587.   $as_echo "$as_me: failed program was:" >&5
  1588. sed 's/^/| /' conftest.$ac_ext >&5
  1589.  
  1590.     ac_retval=1
  1591. fi
  1592.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1593.   as_fn_set_status $ac_retval
  1594.  
  1595. } # ac_fn_c_try_cpp
  1596.  
  1597. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1598. # -------------------------------------------------------
  1599. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1600. # the include files in INCLUDES and setting the cache variable VAR
  1601. # accordingly.
  1602. ac_fn_c_check_header_mongrel ()
  1603. {
  1604.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1605.   if eval \${$3+:} false; then :
  1606.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1607. $as_echo_n "checking for $2... " >&6; }
  1608. if eval \${$3+:} false; then :
  1609.   $as_echo_n "(cached) " >&6
  1610. fi
  1611. eval ac_res=\$$3
  1612.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1613. $as_echo "$ac_res" >&6; }
  1614. else
  1615.   # Is the header compilable?
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1617. $as_echo_n "checking $2 usability... " >&6; }
  1618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1619. /* end confdefs.h.  */
  1620. $4
  1621. #include <$2>
  1622. _ACEOF
  1623. if ac_fn_c_try_compile "$LINENO"; then :
  1624.   ac_header_compiler=yes
  1625. else
  1626.   ac_header_compiler=no
  1627. fi
  1628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1630. $as_echo "$ac_header_compiler" >&6; }
  1631.  
  1632. # Is the header present?
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1634. $as_echo_n "checking $2 presence... " >&6; }
  1635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1636. /* end confdefs.h.  */
  1637. #include <$2>
  1638. _ACEOF
  1639. if ac_fn_c_try_cpp "$LINENO"; then :
  1640.   ac_header_preproc=yes
  1641. else
  1642.   ac_header_preproc=no
  1643. fi
  1644. rm -f conftest.err conftest.i conftest.$ac_ext
  1645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1646. $as_echo "$ac_header_preproc" >&6; }
  1647.  
  1648. # So?  What about this header?
  1649. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1650.   yes:no: )
  1651.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1652. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1653.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1654. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1655.     ;;
  1656.   no:yes:* )
  1657.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1658. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1659.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1660. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1661.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1662. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1663.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1664. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1665.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1666. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1667.     ;;
  1668. esac
  1669.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1670. $as_echo_n "checking for $2... " >&6; }
  1671. if eval \${$3+:} false; then :
  1672.   $as_echo_n "(cached) " >&6
  1673. else
  1674.   eval "$3=\$ac_header_compiler"
  1675. fi
  1676. eval ac_res=\$$3
  1677.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1678. $as_echo "$ac_res" >&6; }
  1679. fi
  1680.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1681.  
  1682. } # ac_fn_c_check_header_mongrel
  1683.  
  1684. # ac_fn_c_try_run LINENO
  1685. # ----------------------
  1686. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1687. # that executables *can* be run.
  1688. ac_fn_c_try_run ()
  1689. {
  1690.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691.   if { { ac_try="$ac_link"
  1692. case "(($ac_try" in
  1693.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1694.   *) ac_try_echo=$ac_try;;
  1695. esac
  1696. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1697. $as_echo "$ac_try_echo"; } >&5
  1698.   (eval "$ac_link") 2>&5
  1699.   ac_status=$?
  1700.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1701.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1702.   { { case "(($ac_try" in
  1703.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704.   *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708.   (eval "$ac_try") 2>&5
  1709.   ac_status=$?
  1710.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1711.   test $ac_status = 0; }; }; then :
  1712.   ac_retval=0
  1713. else
  1714.   $as_echo "$as_me: program exited with status $ac_status" >&5
  1715.        $as_echo "$as_me: failed program was:" >&5
  1716. sed 's/^/| /' conftest.$ac_ext >&5
  1717.  
  1718.        ac_retval=$ac_status
  1719. fi
  1720.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1721.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1722.   as_fn_set_status $ac_retval
  1723.  
  1724. } # ac_fn_c_try_run
  1725.  
  1726. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1727. # -------------------------------------------------------
  1728. # Tests whether HEADER exists and can be compiled using the include files in
  1729. # INCLUDES, setting the cache variable VAR accordingly.
  1730. ac_fn_c_check_header_compile ()
  1731. {
  1732.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1734. $as_echo_n "checking for $2... " >&6; }
  1735. if eval \${$3+:} false; then :
  1736.   $as_echo_n "(cached) " >&6
  1737. else
  1738.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1739. /* end confdefs.h.  */
  1740. $4
  1741. #include <$2>
  1742. _ACEOF
  1743. if ac_fn_c_try_compile "$LINENO"; then :
  1744.   eval "$3=yes"
  1745. else
  1746.   eval "$3=no"
  1747. fi
  1748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1749. fi
  1750. eval ac_res=\$$3
  1751.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1752. $as_echo "$ac_res" >&6; }
  1753.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1754.  
  1755. } # ac_fn_c_check_header_compile
  1756.  
  1757. # ac_fn_c_try_link LINENO
  1758. # -----------------------
  1759. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1760. ac_fn_c_try_link ()
  1761. {
  1762.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1763.   rm -f conftest.$ac_objext conftest$ac_exeext
  1764.   if { { ac_try="$ac_link"
  1765. case "(($ac_try" in
  1766.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1767.   *) ac_try_echo=$ac_try;;
  1768. esac
  1769. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1770. $as_echo "$ac_try_echo"; } >&5
  1771.   (eval "$ac_link") 2>conftest.err
  1772.   ac_status=$?
  1773.   if test -s conftest.err; then
  1774.     grep -v '^ *+' conftest.err >conftest.er1
  1775.     cat conftest.er1 >&5
  1776.     mv -f conftest.er1 conftest.err
  1777.   fi
  1778.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1779.   test $ac_status = 0; } && {
  1780.      test -z "$ac_c_werror_flag" ||
  1781.      test ! -s conftest.err
  1782.        } && test -s conftest$ac_exeext && {
  1783.      test "$cross_compiling" = yes ||
  1784.      test -x conftest$ac_exeext
  1785.        }; then :
  1786.   ac_retval=0
  1787. else
  1788.   $as_echo "$as_me: failed program was:" >&5
  1789. sed 's/^/| /' conftest.$ac_ext >&5
  1790.  
  1791.     ac_retval=1
  1792. fi
  1793.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1794.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1795.   # interfere with the next link command; also delete a directory that is
  1796.   # left behind by Apple's compiler.  We do this before executing the actions.
  1797.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1798.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1799.   as_fn_set_status $ac_retval
  1800.  
  1801. } # ac_fn_c_try_link
  1802.  
  1803. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1804. # -------------------------------------------
  1805. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1806. # variable VAR accordingly.
  1807. ac_fn_c_check_type ()
  1808. {
  1809.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1811. $as_echo_n "checking for $2... " >&6; }
  1812. if eval \${$3+:} false; then :
  1813.   $as_echo_n "(cached) " >&6
  1814. else
  1815.   eval "$3=no"
  1816.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1817. /* end confdefs.h.  */
  1818. $4
  1819. int
  1820. main ()
  1821. {
  1822. if (sizeof ($2))
  1823.      return 0;
  1824.   ;
  1825.   return 0;
  1826. }
  1827. _ACEOF
  1828. if ac_fn_c_try_compile "$LINENO"; then :
  1829.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1830. /* end confdefs.h.  */
  1831. $4
  1832. int
  1833. main ()
  1834. {
  1835. if (sizeof (($2)))
  1836.         return 0;
  1837.   ;
  1838.   return 0;
  1839. }
  1840. _ACEOF
  1841. if ac_fn_c_try_compile "$LINENO"; then :
  1842.  
  1843. else
  1844.   eval "$3=yes"
  1845. fi
  1846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1847. fi
  1848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1849. fi
  1850. eval ac_res=\$$3
  1851.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1852. $as_echo "$ac_res" >&6; }
  1853.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1854.  
  1855. } # ac_fn_c_check_type
  1856.  
  1857. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1858. # ------------------------------------
  1859. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1860. # accordingly.
  1861. ac_fn_c_find_uintX_t ()
  1862. {
  1863.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1864.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1865. $as_echo_n "checking for uint$2_t... " >&6; }
  1866. if eval \${$3+:} false; then :
  1867.   $as_echo_n "(cached) " >&6
  1868. else
  1869.   eval "$3=no"
  1870.      # Order is important - never check a type that is potentially smaller
  1871.      # than half of the expected target width.
  1872.      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1873.      'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1874.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1875. /* end confdefs.h.  */
  1876. $ac_includes_default
  1877. int
  1878. main ()
  1879. {
  1880. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1881. test_array [0] = 0;
  1882. return test_array [0];
  1883.  
  1884.   ;
  1885.   return 0;
  1886. }
  1887. _ACEOF
  1888. if ac_fn_c_try_compile "$LINENO"; then :
  1889.   case $ac_type in #(
  1890.   uint$2_t) :
  1891.     eval "$3=yes" ;; #(
  1892.   *) :
  1893.     eval "$3=\$ac_type" ;;
  1894. esac
  1895. fi
  1896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1897.        if eval test \"x\$"$3"\" = x"no"; then :
  1898.  
  1899. else
  1900.   break
  1901. fi
  1902.      done
  1903. fi
  1904. eval ac_res=\$$3
  1905.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1906. $as_echo "$ac_res" >&6; }
  1907.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1908.  
  1909. } # ac_fn_c_find_uintX_t
  1910.  
  1911. # ac_fn_c_find_intX_t LINENO BITS VAR
  1912. # -----------------------------------
  1913. # Finds a signed integer type with width BITS, setting cache variable VAR
  1914. # accordingly.
  1915. ac_fn_c_find_intX_t ()
  1916. {
  1917.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1918.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1919. $as_echo_n "checking for int$2_t... " >&6; }
  1920. if eval \${$3+:} false; then :
  1921.   $as_echo_n "(cached) " >&6
  1922. else
  1923.   eval "$3=no"
  1924.      # Order is important - never check a type that is potentially smaller
  1925.      # than half of the expected target width.
  1926.      for ac_type in int$2_t 'int' 'long int' \
  1927.      'long long int' 'short int' 'signed char'; do
  1928.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1929. /* end confdefs.h.  */
  1930. $ac_includes_default
  1931.          enum { N = $2 / 2 - 1 };
  1932. int
  1933. main ()
  1934. {
  1935. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1936. test_array [0] = 0;
  1937. return test_array [0];
  1938.  
  1939.   ;
  1940.   return 0;
  1941. }
  1942. _ACEOF
  1943. if ac_fn_c_try_compile "$LINENO"; then :
  1944.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1945. /* end confdefs.h.  */
  1946. $ac_includes_default
  1947.             enum { N = $2 / 2 - 1 };
  1948. int
  1949. main ()
  1950. {
  1951. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1952.          < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1953. test_array [0] = 0;
  1954. return test_array [0];
  1955.  
  1956.   ;
  1957.   return 0;
  1958. }
  1959. _ACEOF
  1960. if ac_fn_c_try_compile "$LINENO"; then :
  1961.  
  1962. else
  1963.   case $ac_type in #(
  1964.   int$2_t) :
  1965.     eval "$3=yes" ;; #(
  1966.   *) :
  1967.     eval "$3=\$ac_type" ;;
  1968. esac
  1969. fi
  1970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1971. fi
  1972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1973.        if eval test \"x\$"$3"\" = x"no"; then :
  1974.  
  1975. else
  1976.   break
  1977. fi
  1978.      done
  1979. fi
  1980. eval ac_res=\$$3
  1981.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1982. $as_echo "$ac_res" >&6; }
  1983.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1984.  
  1985. } # ac_fn_c_find_intX_t
  1986.  
  1987. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1988. # ----------------------------------------------------
  1989. # Tries to find if the field MEMBER exists in type AGGR, after including
  1990. # INCLUDES, setting cache variable VAR accordingly.
  1991. ac_fn_c_check_member ()
  1992. {
  1993.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1994.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1995. $as_echo_n "checking for $2.$3... " >&6; }
  1996. if eval \${$4+:} false; then :
  1997.   $as_echo_n "(cached) " >&6
  1998. else
  1999.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2000. /* end confdefs.h.  */
  2001. $5
  2002. int
  2003. main ()
  2004. {
  2005. static $2 ac_aggr;
  2006. if (ac_aggr.$3)
  2007. return 0;
  2008.   ;
  2009.   return 0;
  2010. }
  2011. _ACEOF
  2012. if ac_fn_c_try_compile "$LINENO"; then :
  2013.   eval "$4=yes"
  2014. else
  2015.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2016. /* end confdefs.h.  */
  2017. $5
  2018. int
  2019. main ()
  2020. {
  2021. static $2 ac_aggr;
  2022. if (sizeof ac_aggr.$3)
  2023. return 0;
  2024.   ;
  2025.   return 0;
  2026. }
  2027. _ACEOF
  2028. if ac_fn_c_try_compile "$LINENO"; then :
  2029.   eval "$4=yes"
  2030. else
  2031.   eval "$4=no"
  2032. fi
  2033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2034. fi
  2035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2036. fi
  2037. eval ac_res=\$$4
  2038.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2039. $as_echo "$ac_res" >&6; }
  2040.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2041.  
  2042. } # ac_fn_c_check_member
  2043.  
  2044. # ac_fn_c_check_func LINENO FUNC VAR
  2045. # ----------------------------------
  2046. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2047. ac_fn_c_check_func ()
  2048. {
  2049.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2050.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2051. $as_echo_n "checking for $2... " >&6; }
  2052. if eval \${$3+:} false; then :
  2053.   $as_echo_n "(cached) " >&6
  2054. else
  2055.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2056. /* end confdefs.h.  */
  2057. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2058.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  2059. #define $2 innocuous_$2
  2060.  
  2061. /* System header to define __stub macros and hopefully few prototypes,
  2062.     which can conflict with char $2 (); below.
  2063.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2064.     <limits.h> exists even on freestanding compilers.  */
  2065.  
  2066. #ifdef __STDC__
  2067. # include <limits.h>
  2068. #else
  2069. # include <assert.h>
  2070. #endif
  2071.  
  2072. #undef $2
  2073.  
  2074. /* Override any GCC internal prototype to avoid an error.
  2075.    Use char because int might match the return type of a GCC
  2076.    builtin and then its argument prototype would still apply.  */
  2077. #ifdef __cplusplus
  2078. extern "C"
  2079. #endif
  2080. char $2 ();
  2081. /* The GNU C library defines this for functions which it implements
  2082.     to always fail with ENOSYS.  Some functions are actually named
  2083.     something starting with __ and the normal name is an alias.  */
  2084. #if defined __stub_$2 || defined __stub___$2
  2085. choke me
  2086. #endif
  2087.  
  2088. int
  2089. main ()
  2090. {
  2091. return $2 ();
  2092.   ;
  2093.   return 0;
  2094. }
  2095. _ACEOF
  2096. if ac_fn_c_try_link "$LINENO"; then :
  2097.   eval "$3=yes"
  2098. else
  2099.   eval "$3=no"
  2100. fi
  2101. rm -f core conftest.err conftest.$ac_objext \
  2102.     conftest$ac_exeext conftest.$ac_ext
  2103. fi
  2104. eval ac_res=\$$3
  2105.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2106. $as_echo "$ac_res" >&6; }
  2107.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2108.  
  2109. } # ac_fn_c_check_func
  2110. cat >config.log <<_ACEOF
  2111. This file contains any messages produced by compilers while
  2112. running configure, to aid debugging if configure makes a mistake.
  2113.  
  2114. It was created by MiniDLNA $as_me 1.1.3, which was
  2115. generated by GNU Autoconf 2.69.  Invocation command line was
  2116.  
  2117.   $ $0 $@
  2118.  
  2119. _ACEOF
  2120. exec 5>>config.log
  2121. {
  2122. cat <<_ASUNAME
  2123. ## --------- ##
  2124. ## Platform. ##
  2125. ## --------- ##
  2126.  
  2127. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2128. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2129. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2130. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2131. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2132.  
  2133. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2134. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2135.  
  2136. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2137. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2138. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2139. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2140. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2141. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2142. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2143.  
  2144. _ASUNAME
  2145.  
  2146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2147. for as_dir in $PATH
  2148. do
  2149.   IFS=$as_save_IFS
  2150.   test -z "$as_dir" && as_dir=.
  2151.     $as_echo "PATH: $as_dir"
  2152.   done
  2153. IFS=$as_save_IFS
  2154.  
  2155. } >&5
  2156.  
  2157. cat >&5 <<_ACEOF
  2158.  
  2159.  
  2160. ## ----------- ##
  2161. ## Core tests. ##
  2162. ## ----------- ##
  2163.  
  2164. _ACEOF
  2165.  
  2166.  
  2167. # Keep a trace of the command line.
  2168. # Strip out --no-create and --no-recursion so they do not pile up.
  2169. # Strip out --silent because we don't want to record it for future runs.
  2170. # Also quote any args containing shell meta-characters.
  2171. # Make two passes to allow for proper duplicate-argument suppression.
  2172. ac_configure_args=
  2173. ac_configure_args0=
  2174. ac_configure_args1=
  2175. ac_must_keep_next=false
  2176. for ac_pass in 1 2
  2177. do
  2178.   for ac_arg
  2179.   do
  2180.     case $ac_arg in
  2181.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2182.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2183.     | -silent | --silent | --silen | --sile | --sil)
  2184.       continue ;;
  2185.     *\'*)
  2186.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2187.     esac
  2188.     case $ac_pass in
  2189.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2190.     2)
  2191.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2192.       if test $ac_must_keep_next = true; then
  2193.     ac_must_keep_next=false # Got value, back to normal.
  2194.       else
  2195.     case $ac_arg in
  2196.       *=* | --config-cache | -C | -disable-* | --disable-* \
  2197.       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2198.       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2199.       | -with-* | --with-* | -without-* | --without-* | --x)
  2200.         case "$ac_configure_args0 " in
  2201.           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2202.         esac
  2203.         ;;
  2204.       -* ) ac_must_keep_next=true ;;
  2205.     esac
  2206.       fi
  2207.       as_fn_append ac_configure_args " '$ac_arg'"
  2208.       ;;
  2209.     esac
  2210.   done
  2211. done
  2212. { ac_configure_args0=; unset ac_configure_args0;}
  2213. { ac_configure_args1=; unset ac_configure_args1;}
  2214.  
  2215. # When interrupted or exit'd, cleanup temporary files, and complete
  2216. # config.log.  We remove comments because anyway the quotes in there
  2217. # would cause problems or look ugly.
  2218. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2219. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2220. trap 'exit_status=$?
  2221.  # Save into config.log some information that might help in debugging.
  2222.  {
  2223.    echo
  2224.  
  2225.    $as_echo "## ---------------- ##
  2226. ## Cache variables. ##
  2227. ## ---------------- ##"
  2228.    echo
  2229.    # The following way of writing the cache mishandles newlines in values,
  2230. (
  2231.  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2232.    eval ac_val=\$$ac_var
  2233.    case $ac_val in #(
  2234.    *${as_nl}*)
  2235.      case $ac_var in #(
  2236.      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2237. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2238.      esac
  2239.      case $ac_var in #(
  2240.      _ | IFS | as_nl) ;; #(
  2241.      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2242.      *) { eval $ac_var=; unset $ac_var;} ;;
  2243.      esac ;;
  2244.    esac
  2245.  done
  2246.  (set) 2>&1 |
  2247.    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2248.    *${as_nl}ac_space=\ *)
  2249.      sed -n \
  2250.     "s/'\''/'\''\\\\'\'''\''/g;
  2251.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2252.      ;; #(
  2253.    *)
  2254.      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2255.      ;;
  2256.    esac |
  2257.    sort
  2258. )
  2259.    echo
  2260.  
  2261.    $as_echo "## ----------------- ##
  2262. ## Output variables. ##
  2263. ## ----------------- ##"
  2264.    echo
  2265.    for ac_var in $ac_subst_vars
  2266.    do
  2267.      eval ac_val=\$$ac_var
  2268.      case $ac_val in
  2269.      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2270.      esac
  2271.      $as_echo "$ac_var='\''$ac_val'\''"
  2272.    done | sort
  2273.    echo
  2274.  
  2275.    if test -n "$ac_subst_files"; then
  2276.      $as_echo "## ------------------- ##
  2277. ## File substitutions. ##
  2278. ## ------------------- ##"
  2279.      echo
  2280.      for ac_var in $ac_subst_files
  2281.      do
  2282.     eval ac_val=\$$ac_var
  2283.     case $ac_val in
  2284.     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2285.     esac
  2286.     $as_echo "$ac_var='\''$ac_val'\''"
  2287.      done | sort
  2288.      echo
  2289.    fi
  2290.  
  2291.    if test -s confdefs.h; then
  2292.      $as_echo "## ----------- ##
  2293. ## confdefs.h. ##
  2294. ## ----------- ##"
  2295.      echo
  2296.      cat confdefs.h
  2297.      echo
  2298.    fi
  2299.    test "$ac_signal" != 0 &&
  2300.      $as_echo "$as_me: caught signal $ac_signal"
  2301.    $as_echo "$as_me: exit $exit_status"
  2302.  } >&5
  2303.  rm -f core *.core core.conftest.* &&
  2304.    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2305.    exit $exit_status
  2306. ' 0
  2307. for ac_signal in 1 2 13 15; do
  2308.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2309. done
  2310. ac_signal=0
  2311.  
  2312. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2313. rm -f -r conftest* confdefs.h
  2314.  
  2315. $as_echo "/* confdefs.h */" > confdefs.h
  2316.  
  2317. # Predefined preprocessor variables.
  2318.  
  2319. cat >>confdefs.h <<_ACEOF
  2320. #define PACKAGE_NAME "$PACKAGE_NAME"
  2321. _ACEOF
  2322.  
  2323. cat >>confdefs.h <<_ACEOF
  2324. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2325. _ACEOF
  2326.  
  2327. cat >>confdefs.h <<_ACEOF
  2328. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2329. _ACEOF
  2330.  
  2331. cat >>confdefs.h <<_ACEOF
  2332. #define PACKAGE_STRING "$PACKAGE_STRING"
  2333. _ACEOF
  2334.  
  2335. cat >>confdefs.h <<_ACEOF
  2336. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2337. _ACEOF
  2338.  
  2339. cat >>confdefs.h <<_ACEOF
  2340. #define PACKAGE_URL "$PACKAGE_URL"
  2341. _ACEOF
  2342.  
  2343.  
  2344. # Let the site file select an alternate cache file if it wants to.
  2345. # Prefer an explicitly selected file to automatically selected ones.
  2346. ac_site_file1=NONE
  2347. ac_site_file2=NONE
  2348. if test -n "$CONFIG_SITE"; then
  2349.   # We do not want a PATH search for config.site.
  2350.   case $CONFIG_SITE in #((
  2351.     -*)  ac_site_file1=./$CONFIG_SITE;;
  2352.     */*) ac_site_file1=$CONFIG_SITE;;
  2353.     *)   ac_site_file1=./$CONFIG_SITE;;
  2354.   esac
  2355. elif test "x$prefix" != xNONE; then
  2356.   ac_site_file1=$prefix/share/config.site
  2357.   ac_site_file2=$prefix/etc/config.site
  2358. else
  2359.   ac_site_file1=$ac_default_prefix/share/config.site
  2360.   ac_site_file2=$ac_default_prefix/etc/config.site
  2361. fi
  2362. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2363. do
  2364.   test "x$ac_site_file" = xNONE && continue
  2365.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2366.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2367. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2368.     sed 's/^/| /' "$ac_site_file" >&5
  2369.     . "$ac_site_file" \
  2370.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2371. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2372. as_fn_error $? "failed to load site script $ac_site_file
  2373. See \`config.log' for more details" "$LINENO" 5; }
  2374.  fi
  2375. done
  2376.  
  2377. if test -r "$cache_file"; then
  2378.  # Some versions of bash will fail to source /dev/null (special files
  2379.  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2380.  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2381.    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2382. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2383.    case $cache_file in
  2384.      [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2385.      *)                      . "./$cache_file";;
  2386.    esac
  2387.  fi
  2388. else
  2389.  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2390. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2391.  >$cache_file
  2392. fi
  2393.  
  2394. gt_needs="$gt_needs "
  2395. # Check that the precious variables saved in the cache have kept the same
  2396. # value.
  2397. ac_cache_corrupted=false
  2398. for ac_var in $ac_precious_vars; do
  2399.  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2400.  eval ac_new_set=\$ac_env_${ac_var}_set
  2401.  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2402.  eval ac_new_val=\$ac_env_${ac_var}_value
  2403.  case $ac_old_set,$ac_new_set in
  2404.    set,)
  2405.      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2406. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2407.      ac_cache_corrupted=: ;;
  2408.    ,set)
  2409.      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2410. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2411.      ac_cache_corrupted=: ;;
  2412.    ,);;
  2413.    *)
  2414.      if test "x$ac_old_val" != "x$ac_new_val"; then
  2415.     # differences in whitespace do not lead to failure.
  2416.     ac_old_val_w=`echo x $ac_old_val`
  2417.     ac_new_val_w=`echo x $ac_new_val`
  2418.     if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2419.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2420. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2421.       ac_cache_corrupted=:
  2422.     else
  2423.       { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2424. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2425.       eval $ac_var=\$ac_old_val
  2426.     fi
  2427.     { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2428. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2429.     { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2430. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2431.      fi;;
  2432.  esac
  2433.  # Pass precious variables to config.status.
  2434.  if test "$ac_new_set" = set; then
  2435.    case $ac_new_val in
  2436.    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2437.    *) ac_arg=$ac_var=$ac_new_val ;;
  2438.    esac
  2439.    case " $ac_configure_args " in
  2440.      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2441.      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2442.    esac
  2443.  fi
  2444. done
  2445. if $ac_cache_corrupted; then
  2446.  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2447. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2448.  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2449. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2450.  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2451. fi
  2452. ## -------------------- ##
  2453. ## Main body of script. ##
  2454. ## -------------------- ##
  2455.  
  2456. ac_ext=c
  2457. ac_cpp='$CPP $CPPFLAGS'
  2458. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2459. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2460. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2461.  
  2462.  
  2463. #LT_INIT
  2464.  
  2465. ac_aux_dir=
  2466. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2467.  if test -f "$ac_dir/install-sh"; then
  2468.    ac_aux_dir=$ac_dir
  2469.    ac_install_sh="$ac_aux_dir/install-sh -c"
  2470.    break
  2471.  elif test -f "$ac_dir/install.sh"; then
  2472.    ac_aux_dir=$ac_dir
  2473.    ac_install_sh="$ac_aux_dir/install.sh -c"
  2474.    break
  2475.  elif test -f "$ac_dir/shtool"; then
  2476.    ac_aux_dir=$ac_dir
  2477.    ac_install_sh="$ac_aux_dir/shtool install -c"
  2478.    break
  2479.  fi
  2480. done
  2481. if test -z "$ac_aux_dir"; then
  2482.  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2483. fi
  2484.  
  2485. # These three variables are undocumented and unsupported,
  2486. # and are intended to be withdrawn in a future Autoconf release.
  2487. # They can cause serious problems if a builder's source tree is in a directory
  2488. # whose full name contains unusual characters.
  2489. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2490. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2491. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2492.  
  2493.  
  2494. # Make sure we can run config.sub.
  2495. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2496.   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2497.  
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2499. $as_echo_n "checking build system type... " >&6; }
  2500. if ${ac_cv_build+:} false; then :
  2501.   $as_echo_n "(cached) " >&6
  2502. else
  2503.   ac_build_alias=$build_alias
  2504. test "x$ac_build_alias" = x &&
  2505.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2506. test "x$ac_build_alias" = x &&
  2507.   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2508. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2509.   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2510.  
  2511. fi
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2513. $as_echo "$ac_cv_build" >&6; }
  2514. case $ac_cv_build in
  2515. *-*-*) ;;
  2516. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2517. esac
  2518. build=$ac_cv_build
  2519. ac_save_IFS=$IFS; IFS='-'
  2520. set x $ac_cv_build
  2521. shift
  2522. build_cpu=$1
  2523. build_vendor=$2
  2524. shift; shift
  2525. # Remember, the first character of IFS is used to create $*,
  2526. # except with old shells:
  2527. build_os=$*
  2528. IFS=$ac_save_IFS
  2529. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2530.  
  2531.  
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2533. $as_echo_n "checking host system type... " >&6; }
  2534. if ${ac_cv_host+:} false; then :
  2535.   $as_echo_n "(cached) " >&6
  2536. else
  2537.   if test "x$host_alias" = x; then
  2538.   ac_cv_host=$ac_cv_build
  2539. else
  2540.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2541.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2542. fi
  2543.  
  2544. fi
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2546. $as_echo "$ac_cv_host" >&6; }
  2547. case $ac_cv_host in
  2548. *-*-*) ;;
  2549. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2550. esac
  2551. host=$ac_cv_host
  2552. ac_save_IFS=$IFS; IFS='-'
  2553. set x $ac_cv_host
  2554. shift
  2555. host_cpu=$1
  2556. host_vendor=$2
  2557. shift; shift
  2558. # Remember, the first character of IFS is used to create $*,
  2559. # except with old shells:
  2560. host_os=$*
  2561. IFS=$ac_save_IFS
  2562. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2563.  
  2564.  
  2565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2566. $as_echo_n "checking target system type... " >&6; }
  2567. if ${ac_cv_target+:} false; then :
  2568.   $as_echo_n "(cached) " >&6
  2569. else
  2570.   if test "x$target_alias" = x; then
  2571.   ac_cv_target=$ac_cv_host
  2572. else
  2573.   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2574.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2575. fi
  2576.  
  2577. fi
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2579. $as_echo "$ac_cv_target" >&6; }
  2580. case $ac_cv_target in
  2581. *-*-*) ;;
  2582. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2583. esac
  2584. target=$ac_cv_target
  2585. ac_save_IFS=$IFS; IFS='-'
  2586. set x $ac_cv_target
  2587. shift
  2588. target_cpu=$1
  2589. target_vendor=$2
  2590. shift; shift
  2591. # Remember, the first character of IFS is used to create $*,
  2592. # except with old shells:
  2593. target_os=$*
  2594. IFS=$ac_save_IFS
  2595. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2596.  
  2597.  
  2598. # The aliases save the names the user supplied, while $host etc.
  2599. # will get canonicalized.
  2600. test -n "$target_alias" &&
  2601.   test "$program_prefix$program_suffix$program_transform_name" = \
  2602.     NONENONEs,x,x, &&
  2603.   program_prefix=${target_alias}-
  2604. am__api_version='1.14'
  2605.  
  2606. # Find a good install program.  We prefer a C program (faster),
  2607. # so one script is as good as another.  But avoid the broken or
  2608. # incompatible versions:
  2609. # SysV /etc/install, /usr/sbin/install
  2610. # SunOS /usr/etc/install
  2611. # IRIX /sbin/install
  2612. # AIX /bin/install
  2613. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2614. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2615. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2616. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2617. # OS/2's system install, which has a completely different semantic
  2618. # ./install, which can be erroneously created by make from ./install.sh.
  2619. # Reject install programs that cannot install multiple files.
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2621. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2622. if test -z "$INSTALL"; then
  2623. if ${ac_cv_path_install+:} false; then :
  2624.   $as_echo_n "(cached) " >&6
  2625. else
  2626.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2627. for as_dir in $PATH
  2628. do
  2629.   IFS=$as_save_IFS
  2630.   test -z "$as_dir" && as_dir=.
  2631.     # Account for people who put trailing slashes in PATH elements.
  2632. case $as_dir/ in #((
  2633.   ./ | .// | /[cC]/* | \
  2634.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2635.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2636.   /usr/ucb/* ) ;;
  2637.   *)
  2638.     # OSF1 and SCO ODT 3.0 have their own names for install.
  2639.     # Don't use installbsd from OSF since it installs stuff as root
  2640.     # by default.
  2641.     for ac_prog in ginstall scoinst install; do
  2642.       for ac_exec_ext in '' $ac_executable_extensions; do
  2643.     if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2644.       if test $ac_prog = install &&
  2645.         grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2646.         # AIX install.  It has an incompatible calling convention.
  2647.         :
  2648.       elif test $ac_prog = install &&
  2649.         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2650.         # program-specific install script used by HP pwplus--don't use.
  2651.         :
  2652.       else
  2653.         rm -rf conftest.one conftest.two conftest.dir
  2654.         echo one > conftest.one
  2655.         echo two > conftest.two
  2656.         mkdir conftest.dir
  2657.         if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2658.           test -s conftest.one && test -s conftest.two &&
  2659.           test -s conftest.dir/conftest.one &&
  2660.           test -s conftest.dir/conftest.two
  2661.         then
  2662.           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2663.           break 3
  2664.         fi
  2665.       fi
  2666.     fi
  2667.       done
  2668.     done
  2669.     ;;
  2670. esac
  2671.  
  2672.   done
  2673. IFS=$as_save_IFS
  2674.  
  2675. rm -rf conftest.one conftest.two conftest.dir
  2676.  
  2677. fi
  2678.   if test "${ac_cv_path_install+set}" = set; then
  2679.     INSTALL=$ac_cv_path_install
  2680.   else
  2681.     # As a last resort, use the slow shell script.  Don't cache a
  2682.     # value for INSTALL within a source directory, because that will
  2683.     # break other packages using the cache if that directory is
  2684.     # removed, or if the value is a relative name.
  2685.     INSTALL=$ac_install_sh
  2686.   fi
  2687. fi
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2689. $as_echo "$INSTALL" >&6; }
  2690.  
  2691. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2692. # It thinks the first close brace ends the variable substitution.
  2693. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2694.  
  2695. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2696.  
  2697. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2698.  
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2700. $as_echo_n "checking whether build environment is sane... " >&6; }
  2701. # Reject unsafe characters in $srcdir or the absolute working directory
  2702. # name.  Accept space and tab only in the latter.
  2703. am_lf='
  2704. '
  2705. case `pwd` in
  2706.   *[\\\"\#\$\&\'\`$am_lf]*)
  2707.     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2708. esac
  2709. case $srcdir in
  2710.   *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2711.     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2712. esac
  2713.  
  2714. # Do 'set' in a subshell so we don't clobber the current shell's
  2715. # arguments.  Must try -L first in case configure is actually a
  2716. # symlink; some systems play weird games with the mod time of symlinks
  2717. # (eg FreeBSD returns the mod time of the symlink's containing
  2718. # directory).
  2719. if (
  2720.    am_has_slept=no
  2721.    for am_try in 1 2; do
  2722.      echo "timestamp, slept: $am_has_slept" > conftest.file
  2723.      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2724.      if test "$*" = "X"; then
  2725.     # -L didn't work.
  2726.     set X `ls -t "$srcdir/configure" conftest.file`
  2727.      fi
  2728.      if test "$*" != "X $srcdir/configure conftest.file" \
  2729.     && test "$*" != "X conftest.file $srcdir/configure"; then
  2730.  
  2731.     # If neither matched, then we have a broken ls.  This can happen
  2732.     # if, for instance, CONFIG_SHELL is bash and it inherits a
  2733.     # broken ls alias from the environment.  This has actually
  2734.     # happened.  Such a system could not be considered "sane".
  2735.     as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  2736.  alias in your environment" "$LINENO" 5
  2737.      fi
  2738.      if test "$2" = conftest.file || test $am_try -eq 2; then
  2739.        break
  2740.      fi
  2741.      # Just in case.
  2742.      sleep 1
  2743.      am_has_slept=yes
  2744.    done
  2745.    test "$2" = conftest.file
  2746.    )
  2747. then
  2748.    # Ok.
  2749.    :
  2750. else
  2751.    as_fn_error $? "newly created file is older than distributed files!
  2752. Check your system clock" "$LINENO" 5
  2753. fi
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2755. $as_echo "yes" >&6; }
  2756. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2757. # generated files are strictly newer.
  2758. am_sleep_pid=
  2759. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2760.   ( sleep 1 ) &
  2761.   am_sleep_pid=$!
  2762. fi
  2763.  
  2764. rm -f conftest.file
  2765.  
  2766. test "$program_prefix" != NONE &&
  2767.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2768. # Use a double $ so make ignores it.
  2769. test "$program_suffix" != NONE &&
  2770.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2771. # Double any \ or $.
  2772. # By default was `s,x,x', remove it if useless.
  2773. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2774. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2775.  
  2776. # expand $ac_aux_dir to an absolute path
  2777. am_aux_dir=`cd $ac_aux_dir && pwd`
  2778.  
  2779. if test x"${MISSING+set}" != xset; then
  2780.   case $am_aux_dir in
  2781.   *\ * | *\ *)
  2782.     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2783.   *)
  2784.     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2785.   esac
  2786. fi
  2787. # Use eval to expand $SHELL
  2788. if eval "$MISSING --is-lightweight"; then
  2789.   am_missing_run="$MISSING "
  2790. else
  2791.   am_missing_run=
  2792.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2793. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2794. fi
  2795.  
  2796. if test x"${install_sh}" != xset; then
  2797.   case $am_aux_dir in
  2798.   *\ * | *\ *)
  2799.     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2800.   *)
  2801.     install_sh="\${SHELL} $am_aux_dir/install-sh"
  2802.   esac
  2803. fi
  2804.  
  2805. # Installed binaries are usually stripped using 'strip' when the user
  2806. # run "make install-strip".  However 'strip' might not be the right
  2807. # tool to use in cross-compilation environments, therefore Automake
  2808. # will honor the 'STRIP' environment variable to overrule this program.
  2809. if test "$cross_compiling" != no; then
  2810.   if test -n "$ac_tool_prefix"; then
  2811.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2812. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2814. $as_echo_n "checking for $ac_word... " >&6; }
  2815. if ${ac_cv_prog_STRIP+:} false; then :
  2816.   $as_echo_n "(cached) " >&6
  2817. else
  2818.   if test -n "$STRIP"; then
  2819.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2820. else
  2821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2822. for as_dir in $PATH
  2823. do
  2824.   IFS=$as_save_IFS
  2825.   test -z "$as_dir" && as_dir=.
  2826.     for ac_exec_ext in '' $ac_executable_extensions; do
  2827.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2828.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2829.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2830.     break 2
  2831.   fi
  2832. done
  2833.   done
  2834. IFS=$as_save_IFS
  2835.  
  2836. fi
  2837. fi
  2838. STRIP=$ac_cv_prog_STRIP
  2839. if test -n "$STRIP"; then
  2840.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2841. $as_echo "$STRIP" >&6; }
  2842. else
  2843.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2844. $as_echo "no" >&6; }
  2845. fi
  2846.  
  2847.  
  2848. fi
  2849. if test -z "$ac_cv_prog_STRIP"; then
  2850.   ac_ct_STRIP=$STRIP
  2851.   # Extract the first word of "strip", so it can be a program name with args.
  2852. set dummy strip; ac_word=$2
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2854. $as_echo_n "checking for $ac_word... " >&6; }
  2855. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2856.   $as_echo_n "(cached) " >&6
  2857. else
  2858.   if test -n "$ac_ct_STRIP"; then
  2859.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2860. else
  2861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2862. for as_dir in $PATH
  2863. do
  2864.   IFS=$as_save_IFS
  2865.   test -z "$as_dir" && as_dir=.
  2866.     for ac_exec_ext in '' $ac_executable_extensions; do
  2867.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2868.     ac_cv_prog_ac_ct_STRIP="strip"
  2869.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2870.     break 2
  2871.   fi
  2872. done
  2873.   done
  2874. IFS=$as_save_IFS
  2875.  
  2876. fi
  2877. fi
  2878. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2879. if test -n "$ac_ct_STRIP"; then
  2880.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2881. $as_echo "$ac_ct_STRIP" >&6; }
  2882. else
  2883.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2884. $as_echo "no" >&6; }
  2885. fi
  2886.  
  2887.   if test "x$ac_ct_STRIP" = x; then
  2888.     STRIP=":"
  2889.   else
  2890.     case $cross_compiling:$ac_tool_warned in
  2891. yes:)
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2893. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2894. ac_tool_warned=yes ;;
  2895. esac
  2896.     STRIP=$ac_ct_STRIP
  2897.   fi
  2898. else
  2899.   STRIP="$ac_cv_prog_STRIP"
  2900. fi
  2901.  
  2902. fi
  2903. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2904.  
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2906. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2907. if test -z "$MKDIR_P"; then
  2908.   if ${ac_cv_path_mkdir+:} false; then :
  2909.   $as_echo_n "(cached) " >&6
  2910. else
  2911.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2912. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2913. do
  2914.   IFS=$as_save_IFS
  2915.   test -z "$as_dir" && as_dir=.
  2916.     for ac_prog in mkdir gmkdir; do
  2917.      for ac_exec_ext in '' $ac_executable_extensions; do
  2918.        as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2919.        case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2920.          'mkdir (GNU coreutils) '* | \
  2921.          'mkdir (coreutils) '* | \
  2922.          'mkdir (fileutils) '4.1*)
  2923.            ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2924.            break 3;;
  2925.        esac
  2926.      done
  2927.        done
  2928.   done
  2929. IFS=$as_save_IFS
  2930.  
  2931. fi
  2932.  
  2933.   test -d ./--version && rmdir ./--version
  2934.   if test "${ac_cv_path_mkdir+set}" = set; then
  2935.     MKDIR_P="$ac_cv_path_mkdir -p"
  2936.   else
  2937.     # As a last resort, use the slow shell script.  Don't cache a
  2938.     # value for MKDIR_P within a source directory, because that will
  2939.     # break other packages using the cache if that directory is
  2940.     # removed, or if the value is a relative name.
  2941.     MKDIR_P="$ac_install_sh -d"
  2942.   fi
  2943. fi
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2945. $as_echo "$MKDIR_P" >&6; }
  2946.  
  2947. for ac_prog in gawk mawk nawk awk
  2948. do
  2949.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2950. set dummy $ac_prog; ac_word=$2
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2952. $as_echo_n "checking for $ac_word... " >&6; }
  2953. if ${ac_cv_prog_AWK+:} false; then :
  2954.   $as_echo_n "(cached) " >&6
  2955. else
  2956.   if test -n "$AWK"; then
  2957.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2958. else
  2959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2960. for as_dir in $PATH
  2961. do
  2962.   IFS=$as_save_IFS
  2963.   test -z "$as_dir" && as_dir=.
  2964.     for ac_exec_ext in '' $ac_executable_extensions; do
  2965.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2966.     ac_cv_prog_AWK="$ac_prog"
  2967.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2968.     break 2
  2969.   fi
  2970. done
  2971.   done
  2972. IFS=$as_save_IFS
  2973.  
  2974. fi
  2975. fi
  2976. AWK=$ac_cv_prog_AWK
  2977. if test -n "$AWK"; then
  2978.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2979. $as_echo "$AWK" >&6; }
  2980. else
  2981.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2982. $as_echo "no" >&6; }
  2983. fi
  2984.  
  2985.  
  2986.   test -n "$AWK" && break
  2987. done
  2988.  
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2990. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2991. set x ${MAKE-make}
  2992. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2993. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2994.   $as_echo_n "(cached) " >&6
  2995. else
  2996.   cat >conftest.make <<\_ACEOF
  2997. SHELL = /bin/sh
  2998. all:
  2999.     @echo '@@@%%%=$(MAKE)=@@@%%%'
  3000. _ACEOF
  3001. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3002. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3003.   *@@@%%%=?*=@@@%%%*)
  3004.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  3005.   *)
  3006.     eval ac_cv_prog_make_${ac_make}_set=no;;
  3007. esac
  3008. rm -f conftest.make
  3009. fi
  3010. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3011.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3012. $as_echo "yes" >&6; }
  3013.   SET_MAKE=
  3014. else
  3015.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3016. $as_echo "no" >&6; }
  3017.   SET_MAKE="MAKE=${MAKE-make}"
  3018. fi
  3019.  
  3020. rm -rf .tst 2>/dev/null
  3021. mkdir .tst 2>/dev/null
  3022. if test -d .tst; then
  3023.   am__leading_dot=.
  3024. else
  3025.   am__leading_dot=_
  3026. fi
  3027. rmdir .tst 2>/dev/null
  3028.  
  3029. # Check whether --enable-silent-rules was given.
  3030. if test "${enable_silent_rules+set}" = set; then :
  3031.   enableval=$enable_silent_rules;
  3032. fi
  3033.  
  3034. case $enable_silent_rules in # (((
  3035.   yes) AM_DEFAULT_VERBOSITY=0;;
  3036.    no) AM_DEFAULT_VERBOSITY=1;;
  3037.     *) AM_DEFAULT_VERBOSITY=1;;
  3038. esac
  3039. am_make=${MAKE-make}
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3041. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3042. if ${am_cv_make_support_nested_variables+:} false; then :
  3043.   $as_echo_n "(cached) " >&6
  3044. else
  3045.   if $as_echo 'TRUE=$(BAR$(V))
  3046. BAR0=false
  3047. BAR1=true
  3048. V=1
  3049. am__doit:
  3050.     @$(TRUE)
  3051. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3052.   am_cv_make_support_nested_variables=yes
  3053. else
  3054.   am_cv_make_support_nested_variables=no
  3055. fi
  3056. fi
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3058. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3059. if test $am_cv_make_support_nested_variables = yes; then
  3060.     AM_V='$(V)'
  3061.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3062. else
  3063.   AM_V=$AM_DEFAULT_VERBOSITY
  3064.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3065. fi
  3066. AM_BACKSLASH='\'
  3067.  
  3068. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3069.   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3070.   # is not polluted with repeated "-I."
  3071.   am__isrc=' -I$(srcdir)'
  3072.   # test to see if srcdir already configured
  3073.   if test -f $srcdir/config.status; then
  3074.     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3075.   fi
  3076. fi
  3077.  
  3078. # test whether we have cygpath
  3079. if test -z "$CYGPATH_W"; then
  3080.   if (cygpath --version) >/dev/null 2>/dev/null; then
  3081.     CYGPATH_W='cygpath -w'
  3082.   else
  3083.     CYGPATH_W=echo
  3084.   fi
  3085. fi
  3086.  
  3087.  
  3088. # Define the identity of the package.
  3089.  PACKAGE='minidlna'
  3090.  VERSION='1.1.3'
  3091.  
  3092.  
  3093. cat >>confdefs.h <<_ACEOF
  3094. #define PACKAGE "$PACKAGE"
  3095. _ACEOF
  3096.  
  3097.  
  3098. cat >>confdefs.h <<_ACEOF
  3099. #define VERSION "$VERSION"
  3100. _ACEOF
  3101.  
  3102. # Some tools Automake needs.
  3103.  
  3104. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3105.  
  3106.  
  3107. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3108.  
  3109.  
  3110. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3111.  
  3112.  
  3113. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3114.  
  3115.  
  3116. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3117.  
  3118. # For better backward compatibility.  To be removed once Automake 1.9.x
  3119. # dies out for good.  For more background, see:
  3120. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3121. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3122. mkdir_p='$(MKDIR_P)'
  3123.  
  3124. # We need awk for the "check" target.  The system "awk" is bad on
  3125. # some platforms.
  3126. # Always define AMTAR for backward compatibility.  Yes, it's still used
  3127. # in the wild :-(  We should find a proper way to deprecate it ...
  3128. AMTAR='$${TAR-tar}'
  3129.  
  3130.  
  3131. # We'll loop over all known methods to create a tar archive until one works.
  3132. _am_tools='gnutar  pax cpio none'
  3133.  
  3134. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3135.  
  3136.  
  3137.  
  3138.  
  3139.  
  3140.  
  3141. # POSIX will say in a future version that running "rm -f" with no argument
  3142. # is OK; and we want to be able to make that assumption in our Makefile
  3143. # recipes.  So use an aggressive probe to check that the usage we want is
  3144. # actually supported "in the wild" to an acceptable degree.
  3145. # See automake bug#10828.
  3146. # To make any issue more visible, cause the running configure to be aborted
  3147. # by default if the 'rm' program in use doesn't match our expectations; the
  3148. # user can still override this though.
  3149. if rm -f && rm -fr && rm -rf; then : OK; else
  3150.  cat >&2 <<'END'
  3151. Oops!
  3152.  
  3153. Your 'rm' program seems unable to run without file operands specified
  3154. on the command line, even when the '-f' option is present.  This is contrary
  3155. to the behaviour of most rm programs out there, and not conforming with
  3156. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3157.  
  3158. Please tell bug-automake@gnu.org about your system, including the value
  3159. of your $PATH and any error possibly output before this message.  This
  3160. can help us improve future automake versions.
  3161.  
  3162. END
  3163.  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3164.    echo 'Configuration will proceed anyway, since you have set the' >&2
  3165.    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3166.    echo >&2
  3167.  else
  3168.    cat >&2 <<'END'
  3169. Aborting the configuration process, to ensure you take notice of the issue.
  3170.  
  3171. You can download and install GNU coreutils to get an 'rm' implementation
  3172. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3173.  
  3174. If you want to complete the configuration process using your problematic
  3175. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3176. to "yes", and re-run configure.
  3177.  
  3178. END
  3179.    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3180.  fi
  3181. fi
  3182. ac_config_headers="$ac_config_headers config.h"
  3183.  
  3184. # Check whether --enable-silent-rules was given.
  3185. if test "${enable_silent_rules+set}" = set; then :
  3186.  enableval=$enable_silent_rules;
  3187. fi
  3188.  
  3189. case $enable_silent_rules in # (((
  3190.  yes) AM_DEFAULT_VERBOSITY=0;;
  3191.   no) AM_DEFAULT_VERBOSITY=1;;
  3192.    *) AM_DEFAULT_VERBOSITY=0;;
  3193. esac
  3194. am_make=${MAKE-make}
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3196. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3197. if ${am_cv_make_support_nested_variables+:} false; then :
  3198.  $as_echo_n "(cached) " >&6
  3199. else
  3200.  if $as_echo 'TRUE=$(BAR$(V))
  3201. BAR0=false
  3202. BAR1=true
  3203. V=1
  3204. am__doit:
  3205.     @$(TRUE)
  3206. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3207.  am_cv_make_support_nested_variables=yes
  3208. else
  3209.  am_cv_make_support_nested_variables=no
  3210. fi
  3211. fi
  3212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3213. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3214. if test $am_cv_make_support_nested_variables = yes; then
  3215.    AM_V='$(V)'
  3216.  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3217. else
  3218.  AM_V=$AM_DEFAULT_VERBOSITY
  3219.  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3220. fi
  3221. AM_BACKSLASH='\'
  3222.  
  3223.  
  3224. DEPDIR="${am__leading_dot}deps"
  3225.  
  3226. ac_config_commands="$ac_config_commands depfiles"
  3227.  
  3228.  
  3229. am_make=${MAKE-make}
  3230. cat > confinc << 'END'
  3231. am__doit:
  3232.     @echo this is the am__doit target
  3233. .PHONY: am__doit
  3234. END
  3235. # If we don't find an include directive, just comment out the code.
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3237. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3238. am__include="#"
  3239. am__quote=
  3240. _am_result=none
  3241. # First try GNU make style include.
  3242. echo "include confinc" > confmf
  3243. # Ignore all kinds of additional output from 'make'.
  3244. case `$am_make -s -f confmf 2> /dev/null` in #(
  3245. *the\ am__doit\ target*)
  3246.   am__include=include
  3247.   am__quote=
  3248.   _am_result=GNU
  3249.   ;;
  3250. esac
  3251. # Now try BSD make style include.
  3252. if test "$am__include" = "#"; then
  3253.    echo '.include "confinc"' > confmf
  3254.    case `$am_make -s -f confmf 2> /dev/null` in #(
  3255.    *the\ am__doit\ target*)
  3256.      am__include=.include
  3257.      am__quote="\""
  3258.      _am_result=BSD
  3259.      ;;
  3260.    esac
  3261. fi
  3262.  
  3263.  
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3265. $as_echo "$_am_result" >&6; }
  3266. rm -f confinc confmf
  3267.  
  3268. # Check whether --enable-dependency-tracking was given.
  3269. if test "${enable_dependency_tracking+set}" = set; then :
  3270.   enableval=$enable_dependency_tracking;
  3271. fi
  3272.  
  3273. if test "x$enable_dependency_tracking" != xno; then
  3274.   am_depcomp="$ac_aux_dir/depcomp"
  3275.   AMDEPBACKSLASH='\'
  3276.   am__nodep='_no'
  3277. fi
  3278.  if test "x$enable_dependency_tracking" != xno; then
  3279.   AMDEP_TRUE=
  3280.   AMDEP_FALSE='#'
  3281. else
  3282.   AMDEP_TRUE='#'
  3283.   AMDEP_FALSE=
  3284. fi
  3285.  
  3286.  
  3287. ac_ext=c
  3288. ac_cpp='$CPP $CPPFLAGS'
  3289. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3290. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3291. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3292. if test -n "$ac_tool_prefix"; then
  3293.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3294. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3296. $as_echo_n "checking for $ac_word... " >&6; }
  3297. if ${ac_cv_prog_CC+:} false; then :
  3298.   $as_echo_n "(cached) " >&6
  3299. else
  3300.   if test -n "$CC"; then
  3301.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3302. else
  3303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3304. for as_dir in $PATH
  3305. do
  3306.   IFS=$as_save_IFS
  3307.   test -z "$as_dir" && as_dir=.
  3308.     for ac_exec_ext in '' $ac_executable_extensions; do
  3309.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3310.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3311.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3312.     break 2
  3313.   fi
  3314. done
  3315.   done
  3316. IFS=$as_save_IFS
  3317.  
  3318. fi
  3319. fi
  3320. CC=$ac_cv_prog_CC
  3321. if test -n "$CC"; then
  3322.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3323. $as_echo "$CC" >&6; }
  3324. else
  3325.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3326. $as_echo "no" >&6; }
  3327. fi
  3328.  
  3329.  
  3330. fi
  3331. if test -z "$ac_cv_prog_CC"; then
  3332.   ac_ct_CC=$CC
  3333.   # Extract the first word of "gcc", so it can be a program name with args.
  3334. set dummy gcc; ac_word=$2
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3336. $as_echo_n "checking for $ac_word... " >&6; }
  3337. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3338.   $as_echo_n "(cached) " >&6
  3339. else
  3340.   if test -n "$ac_ct_CC"; then
  3341.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3342. else
  3343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3344. for as_dir in $PATH
  3345. do
  3346.   IFS=$as_save_IFS
  3347.   test -z "$as_dir" && as_dir=.
  3348.     for ac_exec_ext in '' $ac_executable_extensions; do
  3349.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3350.     ac_cv_prog_ac_ct_CC="gcc"
  3351.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3352.     break 2
  3353.   fi
  3354. done
  3355.   done
  3356. IFS=$as_save_IFS
  3357.  
  3358. fi
  3359. fi
  3360. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3361. if test -n "$ac_ct_CC"; then
  3362.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3363. $as_echo "$ac_ct_CC" >&6; }
  3364. else
  3365.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3366. $as_echo "no" >&6; }
  3367. fi
  3368.  
  3369.   if test "x$ac_ct_CC" = x; then
  3370.     CC=""
  3371.   else
  3372.     case $cross_compiling:$ac_tool_warned in
  3373. yes:)
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3375. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3376. ac_tool_warned=yes ;;
  3377. esac
  3378.     CC=$ac_ct_CC
  3379.   fi
  3380. else
  3381.   CC="$ac_cv_prog_CC"
  3382. fi
  3383.  
  3384. if test -z "$CC"; then
  3385.           if test -n "$ac_tool_prefix"; then
  3386.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3387. set dummy ${ac_tool_prefix}cc; 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}cc"
  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.   fi
  3424. fi
  3425. if test -z "$CC"; then
  3426.   # Extract the first word of "cc", so it can be a program name with args.
  3427. set dummy cc; ac_word=$2
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3429. $as_echo_n "checking for $ac_word... " >&6; }
  3430. if ${ac_cv_prog_CC+:} false; then :
  3431.   $as_echo_n "(cached) " >&6
  3432. else
  3433.   if test -n "$CC"; then
  3434.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3435. else
  3436.   ac_prog_rejected=no
  3437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3438. for as_dir in $PATH
  3439. do
  3440.   IFS=$as_save_IFS
  3441.   test -z "$as_dir" && as_dir=.
  3442.     for ac_exec_ext in '' $ac_executable_extensions; do
  3443.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3444.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3445.        ac_prog_rejected=yes
  3446.        continue
  3447.      fi
  3448.     ac_cv_prog_CC="cc"
  3449.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3450.     break 2
  3451.   fi
  3452. done
  3453.   done
  3454. IFS=$as_save_IFS
  3455.  
  3456. if test $ac_prog_rejected = yes; then
  3457.   # We found a bogon in the path, so make sure we never use it.
  3458.   set dummy $ac_cv_prog_CC
  3459.   shift
  3460.   if test $# != 0; then
  3461.     # We chose a different compiler from the bogus one.
  3462.     # However, it has the same basename, so the bogon will be chosen
  3463.     # first if we set CC to just the basename; use the full file name.
  3464.     shift
  3465.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3466.   fi
  3467. fi
  3468. fi
  3469. fi
  3470. CC=$ac_cv_prog_CC
  3471. if test -n "$CC"; then
  3472.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3473. $as_echo "$CC" >&6; }
  3474. else
  3475.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3476. $as_echo "no" >&6; }
  3477. fi
  3478.  
  3479.  
  3480. fi
  3481. if test -z "$CC"; then
  3482.   if test -n "$ac_tool_prefix"; then
  3483.   for ac_prog in cl.exe
  3484.   do
  3485.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3486. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3488. $as_echo_n "checking for $ac_word... " >&6; }
  3489. if ${ac_cv_prog_CC+:} false; then :
  3490.   $as_echo_n "(cached) " >&6
  3491. else
  3492.   if test -n "$CC"; then
  3493.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3494. else
  3495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3496. for as_dir in $PATH
  3497. do
  3498.   IFS=$as_save_IFS
  3499.   test -z "$as_dir" && as_dir=.
  3500.     for ac_exec_ext in '' $ac_executable_extensions; do
  3501.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3502.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3503.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3504.     break 2
  3505.   fi
  3506. done
  3507.   done
  3508. IFS=$as_save_IFS
  3509.  
  3510. fi
  3511. fi
  3512. CC=$ac_cv_prog_CC
  3513. if test -n "$CC"; then
  3514.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3515. $as_echo "$CC" >&6; }
  3516. else
  3517.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3518. $as_echo "no" >&6; }
  3519. fi
  3520.  
  3521.  
  3522.     test -n "$CC" && break
  3523.   done
  3524. fi
  3525. if test -z "$CC"; then
  3526.   ac_ct_CC=$CC
  3527.   for ac_prog in cl.exe
  3528. do
  3529.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3530. set dummy $ac_prog; ac_word=$2
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3532. $as_echo_n "checking for $ac_word... " >&6; }
  3533. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3534.   $as_echo_n "(cached) " >&6
  3535. else
  3536.   if test -n "$ac_ct_CC"; then
  3537.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3538. else
  3539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3540. for as_dir in $PATH
  3541. do
  3542.   IFS=$as_save_IFS
  3543.   test -z "$as_dir" && as_dir=.
  3544.     for ac_exec_ext in '' $ac_executable_extensions; do
  3545.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3546.     ac_cv_prog_ac_ct_CC="$ac_prog"
  3547.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3548.     break 2
  3549.   fi
  3550. done
  3551.   done
  3552. IFS=$as_save_IFS
  3553.  
  3554. fi
  3555. fi
  3556. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3557. if test -n "$ac_ct_CC"; then
  3558.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3559. $as_echo "$ac_ct_CC" >&6; }
  3560. else
  3561.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3562. $as_echo "no" >&6; }
  3563. fi
  3564.  
  3565.  
  3566.   test -n "$ac_ct_CC" && break
  3567. done
  3568.  
  3569.   if test "x$ac_ct_CC" = x; then
  3570.     CC=""
  3571.   else
  3572.     case $cross_compiling:$ac_tool_warned in
  3573. yes:)
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3575. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3576. ac_tool_warned=yes ;;
  3577. esac
  3578.     CC=$ac_ct_CC
  3579.   fi
  3580. fi
  3581.  
  3582. fi
  3583.  
  3584.  
  3585. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3586. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3587. as_fn_error $? "no acceptable C compiler found in \$PATH
  3588. See \`config.log' for more details" "$LINENO" 5; }
  3589.  
  3590. # Provide some information about the compiler.
  3591. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3592. set X $ac_compile
  3593. ac_compiler=$2
  3594. for ac_option in --version -v -V -qversion; do
  3595.  { { ac_try="$ac_compiler $ac_option >&5"
  3596. case "(($ac_try" in
  3597.  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3598.  *) ac_try_echo=$ac_try;;
  3599. esac
  3600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3601. $as_echo "$ac_try_echo"; } >&5
  3602.  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3603.  ac_status=$?
  3604.  if test -s conftest.err; then
  3605.    sed '10a\
  3606. ... rest of stderr output deleted ...
  3607.         10q' conftest.err >conftest.er1
  3608.    cat conftest.er1 >&5
  3609.  fi
  3610.  rm -f conftest.er1 conftest.err
  3611.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3612.  test $ac_status = 0; }
  3613. done
  3614.  
  3615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3616. /* end confdefs.h.  */
  3617.  
  3618. int
  3619. main ()
  3620. {
  3621.  
  3622.  ;
  3623.  return 0;
  3624. }
  3625. _ACEOF
  3626. ac_clean_files_save=$ac_clean_files
  3627. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3628. # Try to create an executable without -o first, disregard a.out.
  3629. # It will help us diagnose broken compilers, and finding out an intuition
  3630. # of exeext.
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3632. $as_echo_n "checking whether the C compiler works... " >&6; }
  3633. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3634.  
  3635. # The possible output files:
  3636. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3637.  
  3638. ac_rmfiles=
  3639. for ac_file in $ac_files
  3640. do
  3641.  case $ac_file in
  3642.    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3643.    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3644.  esac
  3645. done
  3646. rm -f $ac_rmfiles
  3647.  
  3648. if { { ac_try="$ac_link_default"
  3649. case "(($ac_try" in
  3650.  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3651.  *) ac_try_echo=$ac_try;;
  3652. esac
  3653. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3654. $as_echo "$ac_try_echo"; } >&5
  3655.  (eval "$ac_link_default") 2>&5
  3656.  ac_status=$?
  3657.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3658.  test $ac_status = 0; }; then :
  3659.  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3660. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3661. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3662. # so that the user can short-circuit this test for compilers unknown to
  3663. # Autoconf.
  3664. for ac_file in $ac_files ''
  3665. do
  3666.  test -f "$ac_file" || continue
  3667.  case $ac_file in
  3668.    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3669.     ;;
  3670.    [ab].out )
  3671.     # We found the default executable, but exeext='' is most
  3672.     # certainly right.
  3673.     break;;
  3674.    *.* )
  3675.     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3676.     then :; else
  3677.        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3678.     fi
  3679.     # We set ac_cv_exeext here because the later test for it is not
  3680.     # safe: cross compilers may not add the suffix if given an `-o'
  3681.     # argument, so we may need to know it at that point already.
  3682.     # Even if this section looks crufty: it has the advantage of
  3683.     # actually working.
  3684.     break;;
  3685.    * )
  3686.     break;;
  3687.  esac
  3688. done
  3689. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3690.  
  3691. else
  3692.  ac_file=''
  3693. fi
  3694. if test -z "$ac_file"; then :
  3695.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3696. $as_echo "no" >&6; }
  3697. $as_echo "$as_me: failed program was:" >&5
  3698. sed 's/^/| /' conftest.$ac_ext >&5
  3699.  
  3700. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3701. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3702. as_fn_error 77 "C compiler cannot create executables
  3703. See \`config.log' for more details" "$LINENO" 5; }
  3704. else
  3705.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3706. $as_echo "yes" >&6; }
  3707. fi
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3709. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3711. $as_echo "$ac_file" >&6; }
  3712. ac_exeext=$ac_cv_exeext
  3713.  
  3714. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3715. ac_clean_files=$ac_clean_files_save
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3717. $as_echo_n "checking for suffix of executables... " >&6; }
  3718. if { { ac_try="$ac_link"
  3719. case "(($ac_try" in
  3720.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3721.   *) ac_try_echo=$ac_try;;
  3722. esac
  3723. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3724. $as_echo "$ac_try_echo"; } >&5
  3725.   (eval "$ac_link") 2>&5
  3726.   ac_status=$?
  3727.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3728.   test $ac_status = 0; }; then :
  3729.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3730. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3731. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3732. # `rm'.
  3733. for ac_file in conftest.exe conftest conftest.*; do
  3734.   test -f "$ac_file" || continue
  3735.   case $ac_file in
  3736.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3737.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3738.       break;;
  3739.     * ) break;;
  3740.   esac
  3741. done
  3742. else
  3743.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3744. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3745. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3746. See \`config.log' for more details" "$LINENO" 5; }
  3747. fi
  3748. rm -f conftest conftest$ac_cv_exeext
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3750. $as_echo "$ac_cv_exeext" >&6; }
  3751.  
  3752. rm -f conftest.$ac_ext
  3753. EXEEXT=$ac_cv_exeext
  3754. ac_exeext=$EXEEXT
  3755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3756. /* end confdefs.h.  */
  3757. #include <stdio.h>
  3758. int
  3759. main ()
  3760. {
  3761. FILE *f = fopen ("conftest.out", "w");
  3762. return ferror (f) || fclose (f) != 0;
  3763.  
  3764.  ;
  3765.  return 0;
  3766. }
  3767. _ACEOF
  3768. ac_clean_files="$ac_clean_files conftest.out"
  3769. # Check that the compiler produces executables we can run.  If not, either
  3770. # the compiler is broken, or we cross compile.
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3772. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3773. if test "$cross_compiling" != yes; then
  3774.  { { ac_try="$ac_link"
  3775. case "(($ac_try" in
  3776.  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3777.  *) ac_try_echo=$ac_try;;
  3778. esac
  3779. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3780. $as_echo "$ac_try_echo"; } >&5
  3781.  (eval "$ac_link") 2>&5
  3782.  ac_status=$?
  3783.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3784.  test $ac_status = 0; }
  3785.  if { ac_try='./conftest$ac_cv_exeext'
  3786.  { { case "(($ac_try" in
  3787.  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3788.  *) ac_try_echo=$ac_try;;
  3789. esac
  3790. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3791. $as_echo "$ac_try_echo"; } >&5
  3792.  (eval "$ac_try") 2>&5
  3793.  ac_status=$?
  3794.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3795.  test $ac_status = 0; }; }; then
  3796.    cross_compiling=no
  3797.  else
  3798.    if test "$cross_compiling" = maybe; then
  3799.     cross_compiling=yes
  3800.    else
  3801.     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3802. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3803. as_fn_error $? "cannot run C compiled programs.
  3804. If you meant to cross compile, use \`--host'.
  3805. See \`config.log' for more details" "$LINENO" 5; }
  3806.    fi
  3807.  fi
  3808. fi
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3810. $as_echo "$cross_compiling" >&6; }
  3811.  
  3812. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3813. ac_clean_files=$ac_clean_files_save
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3815. $as_echo_n "checking for suffix of object files... " >&6; }
  3816. if ${ac_cv_objext+:} false; then :
  3817.  $as_echo_n "(cached) " >&6
  3818. else
  3819.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3820. /* end confdefs.h.  */
  3821.  
  3822. int
  3823. main ()
  3824. {
  3825.  
  3826.  ;
  3827.  return 0;
  3828. }
  3829. _ACEOF
  3830. rm -f conftest.o conftest.obj
  3831. if { { ac_try="$ac_compile"
  3832. case "(($ac_try" in
  3833.  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3834.  *) ac_try_echo=$ac_try;;
  3835. esac
  3836. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3837. $as_echo "$ac_try_echo"; } >&5
  3838.  (eval "$ac_compile") 2>&5
  3839.  ac_status=$?
  3840.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3841.  test $ac_status = 0; }; then :
  3842.  for ac_file in conftest.o conftest.obj conftest.*; do
  3843.  test -f "$ac_file" || continue;
  3844.  case $ac_file in
  3845.    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3846.    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3847.       break;;
  3848.  esac
  3849. done
  3850. else
  3851.  $as_echo "$as_me: failed program was:" >&5
  3852. sed 's/^/| /' conftest.$ac_ext >&5
  3853.  
  3854. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3855. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3856. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3857. See \`config.log' for more details" "$LINENO" 5; }
  3858. fi
  3859. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3860. fi
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3862. $as_echo "$ac_cv_objext" >&6; }
  3863. OBJEXT=$ac_cv_objext
  3864. ac_objext=$OBJEXT
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3866. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3867. if ${ac_cv_c_compiler_gnu+:} false; then :
  3868.  $as_echo_n "(cached) " >&6
  3869. else
  3870.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3871. /* end confdefs.h.  */
  3872.  
  3873. int
  3874. main ()
  3875. {
  3876. #ifndef __GNUC__
  3877.       choke me
  3878. #endif
  3879.  
  3880.  ;
  3881.  return 0;
  3882. }
  3883. _ACEOF
  3884. if ac_fn_c_try_compile "$LINENO"; then :
  3885.  ac_compiler_gnu=yes
  3886. else
  3887.  ac_compiler_gnu=no
  3888. fi
  3889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3890. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3891.  
  3892. fi
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3894. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3895. if test $ac_compiler_gnu = yes; then
  3896.  GCC=yes
  3897. else
  3898.  GCC=
  3899. fi
  3900. ac_test_CFLAGS=${CFLAGS+set}
  3901. ac_save_CFLAGS=$CFLAGS
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3903. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3904. if ${ac_cv_prog_cc_g+:} false; then :
  3905.  $as_echo_n "(cached) " >&6
  3906. else
  3907.  ac_save_c_werror_flag=$ac_c_werror_flag
  3908.   ac_c_werror_flag=yes
  3909.   ac_cv_prog_cc_g=no
  3910.   CFLAGS="-g"
  3911.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3912. /* end confdefs.h.  */
  3913.  
  3914. int
  3915. main ()
  3916. {
  3917.  
  3918.  ;
  3919.  return 0;
  3920. }
  3921. _ACEOF
  3922. if ac_fn_c_try_compile "$LINENO"; then :
  3923.  ac_cv_prog_cc_g=yes
  3924. else
  3925.  CFLAGS=""
  3926.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3927. /* end confdefs.h.  */
  3928.  
  3929. int
  3930. main ()
  3931. {
  3932.  
  3933.  ;
  3934.  return 0;
  3935. }
  3936. _ACEOF
  3937. if ac_fn_c_try_compile "$LINENO"; then :
  3938.  
  3939. else
  3940.  ac_c_werror_flag=$ac_save_c_werror_flag
  3941.      CFLAGS="-g"
  3942.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3943. /* end confdefs.h.  */
  3944.  
  3945. int
  3946. main ()
  3947. {
  3948.  
  3949.  ;
  3950.  return 0;
  3951. }
  3952. _ACEOF
  3953. if ac_fn_c_try_compile "$LINENO"; then :
  3954.  ac_cv_prog_cc_g=yes
  3955. fi
  3956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3957. fi
  3958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3959. fi
  3960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3961.   ac_c_werror_flag=$ac_save_c_werror_flag
  3962. fi
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3964. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3965. if test "$ac_test_CFLAGS" = set; then
  3966.  CFLAGS=$ac_save_CFLAGS
  3967. elif test $ac_cv_prog_cc_g = yes; then
  3968.  if test "$GCC" = yes; then
  3969.    CFLAGS="-g -O2"
  3970.  else
  3971.    CFLAGS="-g"
  3972.  fi
  3973. else
  3974.  if test "$GCC" = yes; then
  3975.    CFLAGS="-O2"
  3976.  else
  3977.    CFLAGS=
  3978.  fi
  3979. fi
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3981. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3982. if ${ac_cv_prog_cc_c89+:} false; then :
  3983.  $as_echo_n "(cached) " >&6
  3984. else
  3985.  ac_cv_prog_cc_c89=no
  3986. ac_save_CC=$CC
  3987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3988. /* end confdefs.h.  */
  3989. #include <stdarg.h>
  3990. #include <stdio.h>
  3991. struct stat;
  3992. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3993. struct buf { int x; };
  3994. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3995. static char *e (p, i)
  3996.      char **p;
  3997.      int i;
  3998. {
  3999.   return p[i];
  4000. }
  4001. static char *f (char * (*g) (char **, int), char **p, ...)
  4002. {
  4003.   char *s;
  4004.   va_list v;
  4005.   va_start (v,p);
  4006.   s = g (p, va_arg (v,int));
  4007.   va_end (v);
  4008.   return s;
  4009. }
  4010.  
  4011. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4012.    function prototypes and stuff, but not '\xHH' hex character constants.
  4013.    These don't provoke an error unfortunately, instead are silently treated
  4014.   as 'x'.  The following induces an error, until -std is added to get
  4015.   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4016.   array size at least.  It's necessary to write '\x00'==0 to get something
  4017.    that's true only with -std.  */
  4018. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4019.  
  4020. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4021.   inside strings and character constants.  */
  4022. #define FOO(x) 'x'
  4023. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4024.  
  4025. int test (int i, double x);
  4026. struct s1 {int (*f) (int a);};
  4027. struct s2 {int (*f) (double a);};
  4028. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4029. int argc;
  4030. char **argv;
  4031. int
  4032. main ()
  4033. {
  4034. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4035.  ;
  4036.  return 0;
  4037. }
  4038. _ACEOF
  4039. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4040.     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4041. do
  4042.  CC="$ac_save_CC $ac_arg"
  4043.  if ac_fn_c_try_compile "$LINENO"; then :
  4044.  ac_cv_prog_cc_c89=$ac_arg
  4045. fi
  4046. rm -f core conftest.err conftest.$ac_objext
  4047.  test "x$ac_cv_prog_cc_c89" != "xno" && break
  4048. done
  4049. rm -f conftest.$ac_ext
  4050. CC=$ac_save_CC
  4051.  
  4052. fi
  4053. # AC_CACHE_VAL
  4054. case "x$ac_cv_prog_cc_c89" in
  4055.  x)
  4056.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4057. $as_echo "none needed" >&6; } ;;
  4058.  xno)
  4059.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4060. $as_echo "unsupported" >&6; } ;;
  4061.  *)
  4062.    CC="$CC $ac_cv_prog_cc_c89"
  4063.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4064. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4065. esac
  4066. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4067.  
  4068. fi
  4069.  
  4070. ac_ext=c
  4071. ac_cpp='$CPP $CPPFLAGS'
  4072. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4073. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4074. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4075.  
  4076. ac_ext=c
  4077. ac_cpp='$CPP $CPPFLAGS'
  4078. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4079. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4080. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4082. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4083. if ${am_cv_prog_cc_c_o+:} false; then :
  4084.  $as_echo_n "(cached) " >&6
  4085. else
  4086.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4087. /* end confdefs.h.  */
  4088.  
  4089. int
  4090. main ()
  4091. {
  4092.  
  4093.  ;
  4094.  return 0;
  4095. }
  4096. _ACEOF
  4097.  # Make sure it works both with $CC and with simple cc.
  4098.  # Following AC_PROG_CC_C_O, we do the test twice because some
  4099.  # compilers refuse to overwrite an existing .o file with -o,
  4100.  # though they will create one.
  4101.  am_cv_prog_cc_c_o=yes
  4102.  for am_i in 1 2; do
  4103.    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4104.   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4105.   ac_status=$?
  4106.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4107.   (exit $ac_status); } \
  4108.         && test -f conftest2.$ac_objext; then
  4109.      : OK
  4110.    else
  4111.      am_cv_prog_cc_c_o=no
  4112.      break
  4113.    fi
  4114.  done
  4115.  rm -f core conftest*
  4116.  unset am_i
  4117. fi
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4119. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4120. if test "$am_cv_prog_cc_c_o" != yes; then
  4121.   # Losing compiler, so override with the script.
  4122.   # FIXME: It is wrong to rewrite CC.
  4123.   # But if we don't then we get into trouble of one sort or another.
  4124.    # A longer-term fix would be to have automake use am__CC in this case,
  4125.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4126.    CC="$am_aux_dir/compile $CC"
  4127. fi
  4128. ac_ext=c
  4129. ac_cpp='$CPP $CPPFLAGS'
  4130. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4131. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4132. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4133.  
  4134.  
  4135. depcc="$CC"   am_compiler_list=
  4136.  
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4138. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4139. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4140.   $as_echo_n "(cached) " >&6
  4141. else
  4142.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4143.   # We make a subdir and do the tests there.  Otherwise we can end up
  4144.   # making bogus files that we don't know about and never remove.  For
  4145.   # instance it was reported that on HP-UX the gcc test will end up
  4146.   # making a dummy file named 'D' -- because '-MD' means "put the output
  4147.   # in D".
  4148.   rm -rf conftest.dir
  4149.   mkdir conftest.dir
  4150.   # Copy depcomp to subdir because otherwise we won't find it if we're
  4151.   # using a relative directory.
  4152.   cp "$am_depcomp" conftest.dir
  4153.   cd conftest.dir
  4154.   # We will build objects and dependencies in a subdirectory because
  4155.   # it helps to detect inapplicable dependency modes.  For instance
  4156.   # both Tru64's cc and ICC support -MD to output dependencies as a
  4157.   # side effect of compilation, but ICC will put the dependencies in
  4158.   # the current directory while Tru64 will put them in the object
  4159.   # directory.
  4160.   mkdir sub
  4161.  
  4162.   am_cv_CC_dependencies_compiler_type=none
  4163.   if test "$am_compiler_list" = ""; then
  4164.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4165.   fi
  4166.   am__universal=false
  4167.   case " $depcc " in #(
  4168.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4169.      esac
  4170.  
  4171.   for depmode in $am_compiler_list; do
  4172.     # Setup a source with many dependencies, because some compilers
  4173.     # like to wrap large dependency lists on column 80 (with \), and
  4174.     # we should not choose a depcomp mode which is confused by this.
  4175.     #
  4176.     # We need to recreate these files for each test, as the compiler may
  4177.     # overwrite some of them when testing with obscure command lines.
  4178.     # This happens at least with the AIX C compiler.
  4179.     : > sub/conftest.c
  4180.     for i in 1 2 3 4 5 6; do
  4181.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4182.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4183.       # Solaris 10 /bin/sh.
  4184.       echo '/* dummy */' > sub/conftst$i.h
  4185.     done
  4186.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4187.  
  4188.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4189.     # mode.  It turns out that the SunPro C++ compiler does not properly
  4190.     # handle '-M -o', and we need to detect this.  Also, some Intel
  4191.     # versions had trouble with output in subdirs.
  4192.     am__obj=sub/conftest.${OBJEXT-o}
  4193.     am__minus_obj="-o $am__obj"
  4194.     case $depmode in
  4195.     gcc)
  4196.       # This depmode causes a compiler race in universal mode.
  4197.       test "$am__universal" = false || continue
  4198.       ;;
  4199.     nosideeffect)
  4200.       # After this tag, mechanisms are not by side-effect, so they'll
  4201.       # only be used when explicitly requested.
  4202.       if test "x$enable_dependency_tracking" = xyes; then
  4203.     continue
  4204.       else
  4205.     break
  4206.       fi
  4207.       ;;
  4208.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4209.       # This compiler won't grok '-c -o', but also, the minuso test has
  4210.       # not run yet.  These depmodes are late enough in the game, and
  4211.       # so weak that their functioning should not be impacted.
  4212.       am__obj=conftest.${OBJEXT-o}
  4213.       am__minus_obj=
  4214.       ;;
  4215.     none) break ;;
  4216.     esac
  4217.     if depmode=$depmode \
  4218.        source=sub/conftest.c object=$am__obj \
  4219.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4220.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4221.          >/dev/null 2>conftest.err &&
  4222.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4223.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4224.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4225.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4226.       # icc doesn't choke on unknown options, it will just issue warnings
  4227.       # or remarks (even with -Werror).  So we grep stderr for any message
  4228.       # that says an option was ignored or not supported.
  4229.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4230.       #   icc: Command line warning: ignoring option '-M'; no argument required
  4231.       # The diagnosis changed in icc 8.0:
  4232.       #   icc: Command line remark: option '-MP' not supported
  4233.       if (grep 'ignoring option' conftest.err ||
  4234.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4235.         am_cv_CC_dependencies_compiler_type=$depmode
  4236.         break
  4237.       fi
  4238.     fi
  4239.   done
  4240.  
  4241.   cd ..
  4242.   rm -rf conftest.dir
  4243. else
  4244.   am_cv_CC_dependencies_compiler_type=none
  4245. fi
  4246.  
  4247. fi
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4249. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4250. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4251.  
  4252.  if
  4253.   test "x$enable_dependency_tracking" != xno \
  4254.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4255.   am__fastdepCC_TRUE=
  4256.   am__fastdepCC_FALSE='#'
  4257. else
  4258.   am__fastdepCC_TRUE='#'
  4259.   am__fastdepCC_FALSE=
  4260. fi
  4261.  
  4262.  
  4263.  
  4264. ac_ext=c
  4265. ac_cpp='$CPP $CPPFLAGS'
  4266. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4267. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4268. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4270. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4271. # On Suns, sometimes $CPP names a directory.
  4272. if test -n "$CPP" && test -d "$CPP"; then
  4273.   CPP=
  4274. fi
  4275. if test -z "$CPP"; then
  4276.   if ${ac_cv_prog_CPP+:} false; then :
  4277.   $as_echo_n "(cached) " >&6
  4278. else
  4279.       # Double quotes because CPP needs to be expanded
  4280.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4281.     do
  4282.       ac_preproc_ok=false
  4283. for ac_c_preproc_warn_flag in '' yes
  4284. do
  4285.   # Use a header file that comes with gcc, so configuring glibc
  4286.   # with a fresh cross-compiler works.
  4287.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4288.   # <limits.h> exists even on freestanding compilers.
  4289.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4290.   # not just through cpp. "Syntax error" is here to catch this case.
  4291.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4292. /* end confdefs.h.  */
  4293. #ifdef __STDC__
  4294. # include <limits.h>
  4295. #else
  4296. # include <assert.h>
  4297. #endif
  4298.              Syntax error
  4299. _ACEOF
  4300. if ac_fn_c_try_cpp "$LINENO"; then :
  4301.  
  4302. else
  4303.   # Broken: fails on valid input.
  4304. continue
  4305. fi
  4306. rm -f conftest.err conftest.i conftest.$ac_ext
  4307.  
  4308.   # OK, works on sane cases.  Now check whether nonexistent headers
  4309.   # can be detected and how.
  4310.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4311. /* end confdefs.h.  */
  4312. #include <ac_nonexistent.h>
  4313. _ACEOF
  4314. if ac_fn_c_try_cpp "$LINENO"; then :
  4315.   # Broken: success on invalid input.
  4316. continue
  4317. else
  4318.   # Passes both tests.
  4319. ac_preproc_ok=:
  4320. break
  4321. fi
  4322. rm -f conftest.err conftest.i conftest.$ac_ext
  4323.  
  4324. done
  4325. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4326. rm -f conftest.i conftest.err conftest.$ac_ext
  4327. if $ac_preproc_ok; then :
  4328.   break
  4329. fi
  4330.  
  4331.     done
  4332.     ac_cv_prog_CPP=$CPP
  4333.  
  4334. fi
  4335.   CPP=$ac_cv_prog_CPP
  4336. else
  4337.   ac_cv_prog_CPP=$CPP
  4338. fi
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4340. $as_echo "$CPP" >&6; }
  4341. ac_preproc_ok=false
  4342. for ac_c_preproc_warn_flag in '' yes
  4343. do
  4344.   # Use a header file that comes with gcc, so configuring glibc
  4345.   # with a fresh cross-compiler works.
  4346.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4347.   # <limits.h> exists even on freestanding compilers.
  4348.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4349.   # not just through cpp. "Syntax error" is here to catch this case.
  4350.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4351. /* end confdefs.h.  */
  4352. #ifdef __STDC__
  4353. # include <limits.h>
  4354. #else
  4355. # include <assert.h>
  4356. #endif
  4357.              Syntax error
  4358. _ACEOF
  4359. if ac_fn_c_try_cpp "$LINENO"; then :
  4360.  
  4361. else
  4362.   # Broken: fails on valid input.
  4363. continue
  4364. fi
  4365. rm -f conftest.err conftest.i conftest.$ac_ext
  4366.  
  4367.   # OK, works on sane cases.  Now check whether nonexistent headers
  4368.   # can be detected and how.
  4369.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4370. /* end confdefs.h.  */
  4371. #include <ac_nonexistent.h>
  4372. _ACEOF
  4373. if ac_fn_c_try_cpp "$LINENO"; then :
  4374.   # Broken: success on invalid input.
  4375. continue
  4376. else
  4377.   # Passes both tests.
  4378. ac_preproc_ok=:
  4379. break
  4380. fi
  4381. rm -f conftest.err conftest.i conftest.$ac_ext
  4382.  
  4383. done
  4384. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4385. rm -f conftest.i conftest.err conftest.$ac_ext
  4386. if $ac_preproc_ok; then :
  4387.  
  4388. else
  4389.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4390. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4391. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4392. See \`config.log' for more details" "$LINENO" 5; }
  4393. fi
  4394.  
  4395. ac_ext=c
  4396. ac_cpp='$CPP $CPPFLAGS'
  4397. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4398. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4399. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4400.  
  4401.  
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4403. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4404. if ${ac_cv_path_GREP+:} false; then :
  4405.  $as_echo_n "(cached) " >&6
  4406. else
  4407.  if test -z "$GREP"; then
  4408.  ac_path_GREP_found=false
  4409.  # Loop through the user's path and test for each of PROGNAME-LIST
  4410.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4411. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4412. do
  4413.  IFS=$as_save_IFS
  4414.  test -z "$as_dir" && as_dir=.
  4415.    for ac_prog in grep ggrep; do
  4416.    for ac_exec_ext in '' $ac_executable_extensions; do
  4417.      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4418.      as_fn_executable_p "$ac_path_GREP" || continue
  4419. # Check for GNU ac_path_GREP and select it if it is found.
  4420.  # Check for GNU $ac_path_GREP
  4421. case `"$ac_path_GREP" --version 2>&1` in
  4422. *GNU*)
  4423.  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4424. *)
  4425.  ac_count=0
  4426.  $as_echo_n 0123456789 >"conftest.in"
  4427.  while :
  4428.  do
  4429.    cat "conftest.in" "conftest.in" >"conftest.tmp"
  4430.    mv "conftest.tmp" "conftest.in"
  4431.    cp "conftest.in" "conftest.nl"
  4432.    $as_echo 'GREP' >> "conftest.nl"
  4433.    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4434.    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4435.    as_fn_arith $ac_count + 1 && ac_count=$as_val
  4436.    if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4437.      # Best one so far, save it but keep looking for a better one
  4438.      ac_cv_path_GREP="$ac_path_GREP"
  4439.      ac_path_GREP_max=$ac_count
  4440.    fi
  4441.    # 10*(2^10) chars as input seems more than enough
  4442.    test $ac_count -gt 10 && break
  4443.  done
  4444.  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4445. esac
  4446.  
  4447.      $ac_path_GREP_found && break 3
  4448.    done
  4449.  done
  4450.  done
  4451. IFS=$as_save_IFS
  4452.  if test -z "$ac_cv_path_GREP"; then
  4453.    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4454.  fi
  4455. else
  4456.  ac_cv_path_GREP=$GREP
  4457. fi
  4458.  
  4459. fi
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4461. $as_echo "$ac_cv_path_GREP" >&6; }
  4462. GREP="$ac_cv_path_GREP"
  4463.  
  4464.  
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4466. $as_echo_n "checking for egrep... " >&6; }
  4467. if ${ac_cv_path_EGREP+:} false; then :
  4468.  $as_echo_n "(cached) " >&6
  4469. else
  4470.  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4471.   then ac_cv_path_EGREP="$GREP -E"
  4472.   else
  4473.     if test -z "$EGREP"; then
  4474.  ac_path_EGREP_found=false
  4475.  # Loop through the user's path and test for each of PROGNAME-LIST
  4476.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4477. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4478. do
  4479.  IFS=$as_save_IFS
  4480.  test -z "$as_dir" && as_dir=.
  4481.    for ac_prog in egrep; do
  4482.    for ac_exec_ext in '' $ac_executable_extensions; do
  4483.      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4484.      as_fn_executable_p "$ac_path_EGREP" || continue
  4485. # Check for GNU ac_path_EGREP and select it if it is found.
  4486.  # Check for GNU $ac_path_EGREP
  4487. case `"$ac_path_EGREP" --version 2>&1` in
  4488. *GNU*)
  4489.  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4490. *)
  4491.  ac_count=0
  4492.  $as_echo_n 0123456789 >"conftest.in"
  4493.  while :
  4494.  do
  4495.    cat "conftest.in" "conftest.in" >"conftest.tmp"
  4496.    mv "conftest.tmp" "conftest.in"
  4497.    cp "conftest.in" "conftest.nl"
  4498.    $as_echo 'EGREP' >> "conftest.nl"
  4499.    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4500.    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4501.    as_fn_arith $ac_count + 1 && ac_count=$as_val
  4502.    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4503.      # Best one so far, save it but keep looking for a better one
  4504.      ac_cv_path_EGREP="$ac_path_EGREP"
  4505.      ac_path_EGREP_max=$ac_count
  4506.    fi
  4507.    # 10*(2^10) chars as input seems more than enough
  4508.    test $ac_count -gt 10 && break
  4509.  done
  4510.  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4511. esac
  4512.  
  4513.      $ac_path_EGREP_found && break 3
  4514.    done
  4515.  done
  4516.  done
  4517. IFS=$as_save_IFS
  4518.  if test -z "$ac_cv_path_EGREP"; then
  4519.    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4520.  fi
  4521. else
  4522.  ac_cv_path_EGREP=$EGREP
  4523. fi
  4524.  
  4525.   fi
  4526. fi
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4528. $as_echo "$ac_cv_path_EGREP" >&6; }
  4529. EGREP="$ac_cv_path_EGREP"
  4530.  
  4531.  
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4533. $as_echo_n "checking for ANSI C header files... " >&6; }
  4534. if ${ac_cv_header_stdc+:} false; then :
  4535.  $as_echo_n "(cached) " >&6
  4536. else
  4537.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4538. /* end confdefs.h.  */
  4539. #include <stdlib.h>
  4540. #include <stdarg.h>
  4541. #include <string.h>
  4542. #include <float.h>
  4543.  
  4544. int
  4545. main ()
  4546. {
  4547.  
  4548.  ;
  4549.  return 0;
  4550. }
  4551. _ACEOF
  4552. if ac_fn_c_try_compile "$LINENO"; then :
  4553.  ac_cv_header_stdc=yes
  4554. else
  4555.  ac_cv_header_stdc=no
  4556. fi
  4557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4558.  
  4559. if test $ac_cv_header_stdc = yes; then
  4560.  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4561.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4562. /* end confdefs.h.  */
  4563. #include <string.h>
  4564.  
  4565. _ACEOF
  4566. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4567.  $EGREP "memchr" >/dev/null 2>&1; then :
  4568.  
  4569. else
  4570.  ac_cv_header_stdc=no
  4571. fi
  4572. rm -f conftest*
  4573.  
  4574. fi
  4575.  
  4576. if test $ac_cv_header_stdc = yes; then
  4577.  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4578.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4579. /* end confdefs.h.  */
  4580. #include <stdlib.h>
  4581.  
  4582. _ACEOF
  4583. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4584.  $EGREP "free" >/dev/null 2>&1; then :
  4585.  
  4586. else
  4587.  ac_cv_header_stdc=no
  4588. fi
  4589. rm -f conftest*
  4590.  
  4591. fi
  4592.  
  4593. if test $ac_cv_header_stdc = yes; then
  4594.  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4595.  if test "$cross_compiling" = yes; then :
  4596.  :
  4597. else
  4598.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4599. /* end confdefs.h.  */
  4600. #include <ctype.h>
  4601. #include <stdlib.h>
  4602. #if ((' ' & 0x0FF) == 0x020)
  4603. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4604. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4605. #else
  4606. # define ISLOWER(c) \
  4607.            (('a' <= (c) && (c) <= 'i') \
  4608.              || ('j' <= (c) && (c) <= 'r') \
  4609.              || ('s' <= (c) && (c) <= 'z'))
  4610. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4611. #endif
  4612.  
  4613. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4614. int
  4615. main ()
  4616. {
  4617.  int i;
  4618.  for (i = 0; i < 256; i++)
  4619.    if (XOR (islower (i), ISLOWER (i))
  4620.     || toupper (i) != TOUPPER (i))
  4621.      return 2;
  4622.  return 0;
  4623. }
  4624. _ACEOF
  4625. if ac_fn_c_try_run "$LINENO"; then :
  4626.  
  4627. else
  4628.  ac_cv_header_stdc=no
  4629. fi
  4630. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4631.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  4632. fi
  4633.  
  4634. fi
  4635. fi
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4637. $as_echo "$ac_cv_header_stdc" >&6; }
  4638. if test $ac_cv_header_stdc = yes; then
  4639.  
  4640. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4641.  
  4642. fi
  4643.  
  4644. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4645. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4646.           inttypes.h stdint.h unistd.h
  4647. do :
  4648.  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4649. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4650. "
  4651. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4652.  cat >>confdefs.h <<_ACEOF
  4653. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4654. _ACEOF
  4655.  
  4656. fi
  4657.  
  4658. done
  4659.  
  4660.  
  4661.  
  4662.  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4663. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4664.  MINIX=yes
  4665. else
  4666.  MINIX=
  4667. fi
  4668.  
  4669.  
  4670.  if test "$MINIX" = yes; then
  4671.  
  4672. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4673.  
  4674.  
  4675. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4676.  
  4677.  
  4678. $as_echo "#define _MINIX 1" >>confdefs.h
  4679.  
  4680.  fi
  4681.  
  4682.  
  4683.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4684. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4685. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4686.  $as_echo_n "(cached) " >&6
  4687. else
  4688.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4689. /* end confdefs.h.  */
  4690.  
  4691. #         define __EXTENSIONS__ 1
  4692.          $ac_includes_default
  4693. int
  4694. main ()
  4695. {
  4696.  
  4697.  ;
  4698.  return 0;
  4699. }
  4700. _ACEOF
  4701. if ac_fn_c_try_compile "$LINENO"; then :
  4702.  ac_cv_safe_to_define___extensions__=yes
  4703. else
  4704.  ac_cv_safe_to_define___extensions__=no
  4705. fi
  4706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4707. fi
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4709. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4710.  test $ac_cv_safe_to_define___extensions__ = yes &&
  4711.    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4712.  
  4713.  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4714.  
  4715.  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4716.  
  4717.  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4718.  
  4719.  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4720.  
  4721.  
  4722.  
  4723. #MiniDLNA
  4724.  
  4725.  
  4726.      if test "X$prefix" = "XNONE"; then
  4727.    acl_final_prefix="$ac_default_prefix"
  4728.  else
  4729.    acl_final_prefix="$prefix"
  4730.  fi
  4731.  if test "X$exec_prefix" = "XNONE"; then
  4732.    acl_final_exec_prefix='${prefix}'
  4733.  else
  4734.    acl_final_exec_prefix="$exec_prefix"
  4735.  fi
  4736.  acl_save_prefix="$prefix"
  4737.  prefix="$acl_final_prefix"
  4738.  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  4739.  prefix="$acl_save_prefix"
  4740.  
  4741.  
  4742. # Check whether --with-gnu-ld was given.
  4743. if test "${with_gnu_ld+set}" = set; then :
  4744.  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4745. else
  4746.  with_gnu_ld=no
  4747. fi
  4748.  
  4749. # Prepare PATH_SEPARATOR.
  4750. # The user is always right.
  4751. if test "${PATH_SEPARATOR+set}" != set; then
  4752.  echo "#! /bin/sh" >conf$$.sh
  4753.  echo  "exit 0"   >>conf$$.sh
  4754.  chmod +x conf$$.sh
  4755.  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4756.    PATH_SEPARATOR=';'
  4757.  else
  4758.    PATH_SEPARATOR=:
  4759.  fi
  4760.  rm -f conf$$.sh
  4761. fi
  4762. ac_prog=ld
  4763. if test "$GCC" = yes; then
  4764.  # Check if gcc -print-prog-name=ld gives a path.
  4765.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  4766. $as_echo_n "checking for ld used by GCC... " >&6; }
  4767.  case $host in
  4768.  *-*-mingw*)
  4769.    # gcc leaves a trailing carriage return which upsets mingw
  4770.    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4771.  *)
  4772.    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4773.  esac
  4774.  case $ac_prog in
  4775.    # Accept absolute paths.
  4776.    [\\/]* | [A-Za-z]:[\\/]*)
  4777.      re_direlt='/[^/][^/]*/\.\./'
  4778.      # Canonicalize the path of ld
  4779.      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  4780.      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4781.        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  4782.      done
  4783.      test -z "$LD" && LD="$ac_prog"
  4784.      ;;
  4785.  "")
  4786.    # If it fails, then pretend we aren't using GCC.
  4787.    ac_prog=ld
  4788.    ;;
  4789.  *)
  4790.    # If it is relative, then search for the first ld in PATH.
  4791.    with_gnu_ld=unknown
  4792.    ;;
  4793.  esac
  4794. elif test "$with_gnu_ld" = yes; then
  4795.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4796. $as_echo_n "checking for GNU ld... " >&6; }
  4797. else
  4798.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4799. $as_echo_n "checking for non-GNU ld... " >&6; }
  4800. fi
  4801. if ${acl_cv_path_LD+:} false; then :
  4802.  $as_echo_n "(cached) " >&6
  4803. else
  4804.  if test -z "$LD"; then
  4805.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  4806.  for ac_dir in $PATH; do
  4807.    test -z "$ac_dir" && ac_dir=.
  4808.    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4809.      acl_cv_path_LD="$ac_dir/$ac_prog"
  4810.      # Check to see if the program is GNU ld.  I'd rather use --version,
  4811.      # but apparently some GNU ld's only accept -v.
  4812.      # Break only if it was the GNU/non-GNU ld that we prefer.
  4813.      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  4814.      *GNU* | *'with BFD'*)
  4815.        test "$with_gnu_ld" != no && break ;;
  4816.      *)
  4817.        test "$with_gnu_ld" != yes && break ;;
  4818.      esac
  4819.    fi
  4820.  done
  4821.  IFS="$ac_save_ifs"
  4822. else
  4823.  acl_cv_path_LD="$LD" # Let the user override the test with a path.
  4824. fi
  4825. fi
  4826.  
  4827. LD="$acl_cv_path_LD"
  4828. if test -n "$LD"; then
  4829.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4830. $as_echo "$LD" >&6; }
  4831. else
  4832.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4833. $as_echo "no" >&6; }
  4834. fi
  4835. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4837. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4838. if ${acl_cv_prog_gnu_ld+:} false; then :
  4839.  $as_echo_n "(cached) " >&6
  4840. else
  4841.  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4842. case `$LD -v 2>&1 </dev/null` in
  4843. *GNU* | *'with BFD'*)
  4844.  acl_cv_prog_gnu_ld=yes ;;
  4845. *)
  4846.  acl_cv_prog_gnu_ld=no ;;
  4847. esac
  4848. fi
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  4850. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  4851. with_gnu_ld=$acl_cv_prog_gnu_ld
  4852.  
  4853.  
  4854.  
  4855.  
  4856.                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  4857. $as_echo_n "checking for shared library run path origin... " >&6; }
  4858. if ${acl_cv_rpath+:} false; then :
  4859.  $as_echo_n "(cached) " >&6
  4860. else
  4861.  
  4862.    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  4863.    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  4864.    . ./conftest.sh
  4865.    rm -f ./conftest.sh
  4866.    acl_cv_rpath=done
  4867.  
  4868. fi
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  4870. $as_echo "$acl_cv_rpath" >&6; }
  4871.  wl="$acl_cv_wl"
  4872.  acl_libext="$acl_cv_libext"
  4873.  acl_shlibext="$acl_cv_shlibext"
  4874.  acl_libname_spec="$acl_cv_libname_spec"
  4875.  acl_library_names_spec="$acl_cv_library_names_spec"
  4876.  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  4877.  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  4878.  acl_hardcode_direct="$acl_cv_hardcode_direct"
  4879.  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  4880.    # Check whether --enable-rpath was given.
  4881. if test "${enable_rpath+set}" = set; then :
  4882.  enableval=$enable_rpath; :
  4883. else
  4884.  enable_rpath=yes
  4885. fi
  4886.  
  4887.  
  4888.  
  4889.  
  4890.  acl_libdirstem=lib
  4891.  acl_libdirstem2=
  4892.  case "$host_os" in
  4893.    solaris*)
  4894.                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
  4895. $as_echo_n "checking for 64-bit host... " >&6; }
  4896. if ${gl_cv_solaris_64bit+:} false; then :
  4897.  $as_echo_n "(cached) " >&6
  4898. else
  4899.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4900. /* end confdefs.h.  */
  4901.  
  4902. #ifdef _LP64
  4903. sixtyfour bits
  4904. #endif
  4905.  
  4906. _ACEOF
  4907. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4908.  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
  4909.  gl_cv_solaris_64bit=yes
  4910. else
  4911.  gl_cv_solaris_64bit=no
  4912. fi
  4913. rm -f conftest*
  4914.  
  4915.  
  4916. fi
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
  4918. $as_echo "$gl_cv_solaris_64bit" >&6; }
  4919.      if test $gl_cv_solaris_64bit = yes; then
  4920.        acl_libdirstem=lib/64
  4921.        case "$host_cpu" in
  4922.          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
  4923.          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
  4924.        esac
  4925.      fi
  4926.      ;;
  4927.    *)
  4928.      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  4929.      if test -n "$searchpath"; then
  4930.         acl_save_IFS="${IFS=    }"; IFS=":"
  4931.        for searchdir in $searchpath; do
  4932.          if test -d "$searchdir"; then
  4933.            case "$searchdir" in
  4934.              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  4935.              */../ | */.. )
  4936.                # Better ignore directories of this form. They are misleading.
  4937.                ;;
  4938.              *) searchdir=`cd "$searchdir" && pwd`
  4939.                 case "$searchdir" in
  4940.                   */lib64 ) acl_libdirstem=lib64 ;;
  4941.                 esac ;;
  4942.            esac
  4943.          fi
  4944.        done
  4945.        IFS="$acl_save_IFS"
  4946.      fi
  4947.      ;;
  4948.  esac
  4949.  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
  4950.  
  4951.  
  4952.  
  4953.  
  4954.  
  4955.  
  4956.  
  4957.  
  4958.  
  4959.  
  4960.  
  4961.  
  4962.    use_additional=yes
  4963.  
  4964.  acl_save_prefix="$prefix"
  4965.  prefix="$acl_final_prefix"
  4966.  acl_save_exec_prefix="$exec_prefix"
  4967.  exec_prefix="$acl_final_exec_prefix"
  4968.  
  4969.    eval additional_includedir=\"$includedir\"
  4970.    eval additional_libdir=\"$libdir\"
  4971.  
  4972.  exec_prefix="$acl_save_exec_prefix"
  4973.  prefix="$acl_save_prefix"
  4974.  
  4975.  
  4976. # Check whether --with-libiconv-prefix was given.
  4977. if test "${with_libiconv_prefix+set}" = set; then :
  4978.  withval=$with_libiconv_prefix;
  4979.    if test "X$withval" = "Xno"; then
  4980.      use_additional=no
  4981.    else
  4982.      if test "X$withval" = "X"; then
  4983.  
  4984.  acl_save_prefix="$prefix"
  4985.  prefix="$acl_final_prefix"
  4986.  acl_save_exec_prefix="$exec_prefix"
  4987.  exec_prefix="$acl_final_exec_prefix"
  4988.  
  4989.          eval additional_includedir=\"$includedir\"
  4990.          eval additional_libdir=\"$libdir\"
  4991.  
  4992.  exec_prefix="$acl_save_exec_prefix"
  4993.  prefix="$acl_save_prefix"
  4994.  
  4995.      else
  4996.        additional_includedir="$withval/include"
  4997.        additional_libdir="$withval/$acl_libdirstem"
  4998.        if test "$acl_libdirstem2" != "$acl_libdirstem" \
  4999.           && ! test -d "$withval/$acl_libdirstem"; then
  5000.          additional_libdir="$withval/$acl_libdirstem2"
  5001.        fi
  5002.      fi
  5003.    fi
  5004.  
  5005. fi
  5006.  
  5007.      LIBICONV=
  5008.  LTLIBICONV=
  5009.  INCICONV=
  5010.  LIBICONV_PREFIX=
  5011.      HAVE_LIBICONV=
  5012.  rpathdirs=
  5013.  ltrpathdirs=
  5014.  names_already_handled=
  5015.  names_next_round='iconv '
  5016.  while test -n "$names_next_round"; do
  5017.    names_this_round="$names_next_round"
  5018.    names_next_round=
  5019.    for name in $names_this_round; do
  5020.      already_handled=
  5021.      for n in $names_already_handled; do
  5022.        if test "$n" = "$name"; then
  5023.          already_handled=yes
  5024.          break
  5025.        fi
  5026.      done
  5027.      if test -z "$already_handled"; then
  5028.        names_already_handled="$names_already_handled $name"
  5029.                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  5030.        eval value=\"\$HAVE_LIB$uppername\"
  5031.        if test -n "$value"; then
  5032.          if test "$value" = yes; then
  5033.            eval value=\"\$LIB$uppername\"
  5034.            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  5035.            eval value=\"\$LTLIB$uppername\"
  5036.            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  5037.          else
  5038.                                    :
  5039.          fi
  5040.        else
  5041.                              found_dir=
  5042.          found_la=
  5043.          found_so=
  5044.          found_a=
  5045.          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  5046.          if test -n "$acl_shlibext"; then
  5047.            shrext=".$acl_shlibext"             # typically: shrext=.so
  5048.          else
  5049.            shrext=
  5050.          fi
  5051.          if test $use_additional = yes; then
  5052.            dir="$additional_libdir"
  5053.                                    if test -n "$acl_shlibext"; then
  5054.              if test -f "$dir/$libname$shrext"; then
  5055.                found_dir="$dir"
  5056.                found_so="$dir/$libname$shrext"
  5057.              else
  5058.                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  5059.                  ver=`(cd "$dir" && \
  5060.                        for f in "$libname$shrext".*; do echo "$f"; done \
  5061.                        | sed -e "s,^$libname$shrext\\\\.,," \
  5062.                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  5063.                        | sed 1q ) 2>/dev/null`
  5064.                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  5065.                    found_dir="$dir"
  5066.                    found_so="$dir/$libname$shrext.$ver"
  5067.                  fi
  5068.                else
  5069.                  eval library_names=\"$acl_library_names_spec\"
  5070.                  for f in $library_names; do
  5071.                    if test -f "$dir/$f"; then
  5072.                      found_dir="$dir"
  5073.                      found_so="$dir/$f"
  5074.                      break
  5075.                    fi
  5076.                  done
  5077.                fi
  5078.              fi
  5079.            fi
  5080.                        if test "X$found_dir" = "X"; then
  5081.              if test -f "$dir/$libname.$acl_libext"; then
  5082.                found_dir="$dir"
  5083.                found_a="$dir/$libname.$acl_libext"
  5084.              fi
  5085.            fi
  5086.            if test "X$found_dir" != "X"; then
  5087.              if test -f "$dir/$libname.la"; then
  5088.                found_la="$dir/$libname.la"
  5089.              fi
  5090.            fi
  5091.          fi
  5092.          if test "X$found_dir" = "X"; then
  5093.            for x in $LDFLAGS $LTLIBICONV; do
  5094.  
  5095.  acl_save_prefix="$prefix"
  5096.  prefix="$acl_final_prefix"
  5097.  acl_save_exec_prefix="$exec_prefix"
  5098.  exec_prefix="$acl_final_exec_prefix"
  5099.  eval x=\"$x\"
  5100.  exec_prefix="$acl_save_exec_prefix"
  5101.  prefix="$acl_save_prefix"
  5102.  
  5103.              case "$x" in
  5104.                -L*)
  5105.                  dir=`echo "X$x" | sed -e 's/^X-L//'`
  5106.                                    if test -n "$acl_shlibext"; then
  5107.                    if test -f "$dir/$libname$shrext"; then
  5108.                      found_dir="$dir"
  5109.                      found_so="$dir/$libname$shrext"
  5110.                    else
  5111.                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  5112.                        ver=`(cd "$dir" && \
  5113.                              for f in "$libname$shrext".*; do echo "$f"; done \
  5114.                              | sed -e "s,^$libname$shrext\\\\.,," \
  5115.                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  5116.                              | sed 1q ) 2>/dev/null`
  5117.                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  5118.                          found_dir="$dir"
  5119.                          found_so="$dir/$libname$shrext.$ver"
  5120.                        fi
  5121.                      else
  5122.                        eval library_names=\"$acl_library_names_spec\"
  5123.                        for f in $library_names; do
  5124.                          if test -f "$dir/$f"; then
  5125.                            found_dir="$dir"
  5126.                            found_so="$dir/$f"
  5127.                            break
  5128.                          fi
  5129.                        done
  5130.                      fi
  5131.                    fi
  5132.                  fi
  5133.                                    if test "X$found_dir" = "X"; then
  5134.                    if test -f "$dir/$libname.$acl_libext"; then
  5135.                      found_dir="$dir"
  5136.                      found_a="$dir/$libname.$acl_libext"
  5137.                    fi
  5138.                  fi
  5139.                  if test "X$found_dir" != "X"; then
  5140.                    if test -f "$dir/$libname.la"; then
  5141.                      found_la="$dir/$libname.la"
  5142.                    fi
  5143.                  fi
  5144.                  ;;
  5145.              esac
  5146.              if test "X$found_dir" != "X"; then
  5147.                break
  5148.              fi
  5149.            done
  5150.          fi
  5151.          if test "X$found_dir" != "X"; then
  5152.                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  5153.            if test "X$found_so" != "X"; then
  5154.                                                        if test "$enable_rpath" = no \
  5155.                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  5156.                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  5157.                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5158.              else
  5159.                                                                                haveit=
  5160.                for x in $ltrpathdirs; do
  5161.                  if test "X$x" = "X$found_dir"; then
  5162.                    haveit=yes
  5163.                    break
  5164.                  fi
  5165.                done
  5166.                if test -z "$haveit"; then
  5167.                  ltrpathdirs="$ltrpathdirs $found_dir"
  5168.                fi
  5169.                                if test "$acl_hardcode_direct" = yes; then
  5170.                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5171.                else
  5172.                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  5173.                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5174.                                                            haveit=
  5175.                    for x in $rpathdirs; do
  5176.                      if test "X$x" = "X$found_dir"; then
  5177.                        haveit=yes
  5178.                        break
  5179.                      fi
  5180.                    done
  5181.                    if test -z "$haveit"; then
  5182.                      rpathdirs="$rpathdirs $found_dir"
  5183.                    fi
  5184.                  else
  5185.                                                                                haveit=
  5186.                    for x in $LDFLAGS $LIBICONV; do
  5187.  
  5188.  acl_save_prefix="$prefix"
  5189.  prefix="$acl_final_prefix"
  5190.  acl_save_exec_prefix="$exec_prefix"
  5191.  exec_prefix="$acl_final_exec_prefix"
  5192.  eval x=\"$x\"
  5193.  exec_prefix="$acl_save_exec_prefix"
  5194.  prefix="$acl_save_prefix"
  5195.  
  5196.                      if test "X$x" = "X-L$found_dir"; then
  5197.                        haveit=yes
  5198.                        break
  5199.                      fi
  5200.                    done
  5201.                    if test -z "$haveit"; then
  5202.                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  5203.                    fi
  5204.                    if test "$acl_hardcode_minus_L" != no; then
  5205.                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  5206.                    else
  5207.                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  5208.                    fi
  5209.                  fi
  5210.                fi
  5211.              fi
  5212.            else
  5213.              if test "X$found_a" != "X"; then
  5214.                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  5215.              else
  5216.                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  5217.              fi
  5218.            fi
  5219.                        additional_includedir=
  5220.            case "$found_dir" in
  5221.              */$acl_libdirstem | */$acl_libdirstem/)
  5222.                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  5223.                if test "$name" = 'iconv'; then
  5224.                  LIBICONV_PREFIX="$basedir"
  5225.                fi
  5226.                additional_includedir="$basedir/include"
  5227.                ;;
  5228.              */$acl_libdirstem2 | */$acl_libdirstem2/)
  5229.                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  5230.                if test "$name" = 'iconv'; then
  5231.                  LIBICONV_PREFIX="$basedir"
  5232.                fi
  5233.                additional_includedir="$basedir/include"
  5234.                ;;
  5235.            esac
  5236.            if test "X$additional_includedir" != "X"; then
  5237.                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
  5238.                haveit=
  5239.                if test "X$additional_includedir" = "X/usr/local/include"; then
  5240.                  if test -n "$GCC"; then
  5241.                    case $host_os in
  5242.                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  5243.                    esac
  5244.                  fi
  5245.                fi
  5246.                if test -z "$haveit"; then
  5247.                  for x in $CPPFLAGS $INCICONV; do
  5248.  
  5249.  acl_save_prefix="$prefix"
  5250.  prefix="$acl_final_prefix"
  5251.  acl_save_exec_prefix="$exec_prefix"
  5252.  exec_prefix="$acl_final_exec_prefix"
  5253.  eval x=\"$x\"
  5254.  exec_prefix="$acl_save_exec_prefix"
  5255.  prefix="$acl_save_prefix"
  5256.  
  5257.                    if test "X$x" = "X-I$additional_includedir"; then
  5258.                      haveit=yes
  5259.                      break
  5260.                    fi
  5261.                  done
  5262.                  if test -z "$haveit"; then
  5263.                    if test -d "$additional_includedir"; then
  5264.                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  5265.                    fi
  5266.                  fi
  5267.                fi
  5268.              fi
  5269.            fi
  5270.                        if test -n "$found_la"; then
  5271.                                                        save_libdir="$libdir"
  5272.              case "$found_la" in
  5273.                */* | *\\*) . "$found_la" ;;
  5274.                *) . "./$found_la" ;;
  5275.              esac
  5276.              libdir="$save_libdir"
  5277.                            for dep in $dependency_libs; do
  5278.                case "$dep" in
  5279.                  -L*)
  5280.                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  5281.                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  5282.                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  5283.                      haveit=
  5284.                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  5285.                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  5286.                        if test -n "$GCC"; then
  5287.                          case $host_os in
  5288.                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  5289.                          esac
  5290.                        fi
  5291.                      fi
  5292.                      if test -z "$haveit"; then
  5293.                        haveit=
  5294.                        for x in $LDFLAGS $LIBICONV; do
  5295.  
  5296.  acl_save_prefix="$prefix"
  5297.  prefix="$acl_final_prefix"
  5298.  acl_save_exec_prefix="$exec_prefix"
  5299.  exec_prefix="$acl_final_exec_prefix"
  5300.  eval x=\"$x\"
  5301.  exec_prefix="$acl_save_exec_prefix"
  5302.  prefix="$acl_save_prefix"
  5303.  
  5304.                          if test "X$x" = "X-L$additional_libdir"; then
  5305.                            haveit=yes
  5306.                            break
  5307.                          fi
  5308.                        done
  5309.                        if test -z "$haveit"; then
  5310.                          if test -d "$additional_libdir"; then
  5311.                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  5312.                          fi
  5313.                        fi
  5314.                        haveit=
  5315.                        for x in $LDFLAGS $LTLIBICONV; do
  5316.  
  5317.  acl_save_prefix="$prefix"
  5318.  prefix="$acl_final_prefix"
  5319.  acl_save_exec_prefix="$exec_prefix"
  5320.  exec_prefix="$acl_final_exec_prefix"
  5321.  eval x=\"$x\"
  5322.  exec_prefix="$acl_save_exec_prefix"
  5323.  prefix="$acl_save_prefix"
  5324.  
  5325.                          if test "X$x" = "X-L$additional_libdir"; then
  5326.                            haveit=yes
  5327.                            break
  5328.                          fi
  5329.                        done
  5330.                        if test -z "$haveit"; then
  5331.                          if test -d "$additional_libdir"; then
  5332.                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  5333.                          fi
  5334.                        fi
  5335.                      fi
  5336.                    fi
  5337.                    ;;
  5338.                  -R*)
  5339.                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
  5340.                    if test "$enable_rpath" != no; then
  5341.                                                                  haveit=
  5342.                      for x in $rpathdirs; do
  5343.                        if test "X$x" = "X$dir"; then
  5344.                          haveit=yes
  5345.                          break
  5346.                        fi
  5347.                      done
  5348.                      if test -z "$haveit"; then
  5349.                        rpathdirs="$rpathdirs $dir"
  5350.                      fi
  5351.                                                                  haveit=
  5352.                      for x in $ltrpathdirs; do
  5353.                        if test "X$x" = "X$dir"; then
  5354.                          haveit=yes
  5355.                          break
  5356.                        fi
  5357.                      done
  5358.                      if test -z "$haveit"; then
  5359.                        ltrpathdirs="$ltrpathdirs $dir"
  5360.                      fi
  5361.                    fi
  5362.                    ;;
  5363.                  -l*)
  5364.                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  5365.                    ;;
  5366.                  *.la)
  5367.                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  5368.                    ;;
  5369.                  *)
  5370.                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  5371.                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  5372.                    ;;
  5373.                esac
  5374.              done
  5375.            fi
  5376.          else
  5377.                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  5378.            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  5379.          fi
  5380.        fi
  5381.      fi
  5382.    done
  5383.  done
  5384.  if test "X$rpathdirs" != "X"; then
  5385.    if test -n "$acl_hardcode_libdir_separator"; then
  5386.                        alldirs=
  5387.      for found_dir in $rpathdirs; do
  5388.        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  5389.      done
  5390.            acl_save_libdir="$libdir"
  5391.      libdir="$alldirs"
  5392.      eval flag=\"$acl_hardcode_libdir_flag_spec\"
  5393.      libdir="$acl_save_libdir"
  5394.      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  5395.    else
  5396.            for found_dir in $rpathdirs; do
  5397.        acl_save_libdir="$libdir"
  5398.        libdir="$found_dir"
  5399.        eval flag=\"$acl_hardcode_libdir_flag_spec\"
  5400.        libdir="$acl_save_libdir"
  5401.        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  5402.      done
  5403.    fi
  5404.  fi
  5405.  if test "X$ltrpathdirs" != "X"; then
  5406.            for found_dir in $ltrpathdirs; do
  5407.      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  5408.    done
  5409.  fi
  5410.  
  5411.  
  5412.  
  5413.  
  5414.  
  5415.  
  5416.  
  5417.  
  5418.  
  5419.  
  5420.  
  5421.  
  5422.          am_save_CPPFLAGS="$CPPFLAGS"
  5423.  
  5424.  for element in $INCICONV; do
  5425.    haveit=
  5426.    for x in $CPPFLAGS; do
  5427.  
  5428.  acl_save_prefix="$prefix"
  5429.  prefix="$acl_final_prefix"
  5430.  acl_save_exec_prefix="$exec_prefix"
  5431.  exec_prefix="$acl_final_exec_prefix"
  5432.  eval x=\"$x\"
  5433.  exec_prefix="$acl_save_exec_prefix"
  5434.  prefix="$acl_save_prefix"
  5435.  
  5436.      if test "X$x" = "X$element"; then
  5437.        haveit=yes
  5438.        break
  5439.      fi
  5440.    done
  5441.    if test -z "$haveit"; then
  5442.      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  5443.    fi
  5444.  done
  5445.  
  5446.  
  5447.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  5448. $as_echo_n "checking for iconv... " >&6; }
  5449. if ${am_cv_func_iconv+:} false; then :
  5450.  $as_echo_n "(cached) " >&6
  5451. else
  5452.  
  5453.    am_cv_func_iconv="no, consider installing GNU libiconv"
  5454.    am_cv_lib_iconv=no
  5455.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5456. /* end confdefs.h.  */
  5457. #include <stdlib.h>
  5458. #include <iconv.h>
  5459. int
  5460. main ()
  5461. {
  5462. iconv_t cd = iconv_open("","");
  5463.       iconv(cd,NULL,NULL,NULL,NULL);
  5464.       iconv_close(cd);
  5465.  ;
  5466.  return 0;
  5467. }
  5468. _ACEOF
  5469. if ac_fn_c_try_link "$LINENO"; then :
  5470.  am_cv_func_iconv=yes
  5471. fi
  5472. rm -f core conftest.err conftest.$ac_objext \
  5473.    conftest$ac_exeext conftest.$ac_ext
  5474.    if test "$am_cv_func_iconv" != yes; then
  5475.      am_save_LIBS="$LIBS"
  5476.      LIBS="$LIBS $LIBICONV"
  5477.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5478. /* end confdefs.h.  */
  5479. #include <stdlib.h>
  5480. #include <iconv.h>
  5481. int
  5482. main ()
  5483. {
  5484. iconv_t cd = iconv_open("","");
  5485.         iconv(cd,NULL,NULL,NULL,NULL);
  5486.         iconv_close(cd);
  5487.  ;
  5488.  return 0;
  5489. }
  5490. _ACEOF
  5491. if ac_fn_c_try_link "$LINENO"; then :
  5492.  am_cv_lib_iconv=yes
  5493.        am_cv_func_iconv=yes
  5494. fi
  5495. rm -f core conftest.err conftest.$ac_objext \
  5496.    conftest$ac_exeext conftest.$ac_ext
  5497.      LIBS="$am_save_LIBS"
  5498.    fi
  5499.  
  5500. fi
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  5502. $as_echo "$am_cv_func_iconv" >&6; }
  5503.  if test "$am_cv_func_iconv" = yes; then
  5504.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  5505. $as_echo_n "checking for working iconv... " >&6; }
  5506. if ${am_cv_func_iconv_works+:} false; then :
  5507.  $as_echo_n "(cached) " >&6
  5508. else
  5509.  
  5510.            am_save_LIBS="$LIBS"
  5511.      if test $am_cv_lib_iconv = yes; then
  5512.        LIBS="$LIBS $LIBICONV"
  5513.      fi
  5514.      if test "$cross_compiling" = yes; then :
  5515.  case "$host_os" in
  5516.           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  5517.           *)            am_cv_func_iconv_works="guessing yes" ;;
  5518.         esac
  5519. else
  5520.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5521. /* end confdefs.h.  */
  5522.  
  5523. #include <iconv.h>
  5524. #include <string.h>
  5525. int main ()
  5526. {
  5527.  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  5528.     returns.  */
  5529.  {
  5530.    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  5531.    if (cd_utf8_to_88591 != (iconv_t)(-1))
  5532.      {
  5533.        static const char input[] = "\342\202\254"; /* EURO SIGN */
  5534.        char buf[10];
  5535.        const char *inptr = input;
  5536.        size_t inbytesleft = strlen (input);
  5537.        char *outptr = buf;
  5538.        size_t outbytesleft = sizeof (buf);
  5539.        size_t res = iconv (cd_utf8_to_88591,
  5540.                            (char **) &inptr, &inbytesleft,
  5541.                            &outptr, &outbytesleft);
  5542.        if (res == 0)
  5543.          return 1;
  5544.      }
  5545.  }
  5546.  /* Test against Solaris 10 bug: Failures are not distinguishable from
  5547.     successful returns.  */
  5548.  {
  5549.    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  5550.    if (cd_ascii_to_88591 != (iconv_t)(-1))
  5551.      {
  5552.        static const char input[] = "\263";
  5553.        char buf[10];
  5554.        const char *inptr = input;
  5555.        size_t inbytesleft = strlen (input);
  5556.        char *outptr = buf;
  5557.        size_t outbytesleft = sizeof (buf);
  5558.        size_t res = iconv (cd_ascii_to_88591,
  5559.                            (char **) &inptr, &inbytesleft,
  5560.                            &outptr, &outbytesleft);
  5561.        if (res == 0)
  5562.          return 1;
  5563.      }
  5564.  }
  5565. #if 0 /* This bug could be worked around by the caller.  */
  5566.  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
  5567.  {
  5568.    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  5569.    if (cd_88591_to_utf8 != (iconv_t)(-1))
  5570.      {
  5571.        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  5572.        char buf[50];
  5573.        const char *inptr = input;
  5574.        size_t inbytesleft = strlen (input);
  5575.        char *outptr = buf;
  5576.        size_t outbytesleft = sizeof (buf);
  5577.        size_t res = iconv (cd_88591_to_utf8,
  5578.                            (char **) &inptr, &inbytesleft,
  5579.                            &outptr, &outbytesleft);
  5580.        if ((int)res > 0)
  5581.          return 1;
  5582.      }
  5583.  }
  5584. #endif
  5585.  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  5586.     provided.  */
  5587.  if (/* Try standardized names.  */
  5588.      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  5589.      /* Try IRIX, OSF/1 names.  */
  5590.      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  5591.      /* Try AIX names.  */
  5592.      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  5593.      /* Try HP-UX names.  */
  5594.      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  5595.    return 1;
  5596.  return 0;
  5597. }
  5598. _ACEOF
  5599. if ac_fn_c_try_run "$LINENO"; then :
  5600.  am_cv_func_iconv_works=yes
  5601. else
  5602.  am_cv_func_iconv_works=no
  5603. fi
  5604. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5605.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  5606. fi
  5607.  
  5608.      LIBS="$am_save_LIBS"
  5609.  
  5610. fi
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  5612. $as_echo "$am_cv_func_iconv_works" >&6; }
  5613.    case "$am_cv_func_iconv_works" in
  5614.      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  5615.      *)   am_func_iconv=yes ;;
  5616.    esac
  5617.  else
  5618.    am_func_iconv=no am_cv_lib_iconv=no
  5619.  fi
  5620.  if test "$am_func_iconv" = yes; then
  5621.  
  5622. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  5623.  
  5624.  fi
  5625.  if test "$am_cv_lib_iconv" = yes; then
  5626.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  5627. $as_echo_n "checking how to link with libiconv... " >&6; }
  5628.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  5629. $as_echo "$LIBICONV" >&6; }
  5630.  else
  5631.            CPPFLAGS="$am_save_CPPFLAGS"
  5632.    LIBICONV=
  5633.    LTLIBICONV=
  5634.  fi
  5635.  
  5636.  
  5637.  
  5638.  if test "$am_cv_func_iconv" = yes; then
  5639.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  5640. $as_echo_n "checking for iconv declaration... " >&6; }
  5641.    if ${am_cv_proto_iconv+:} false; then :
  5642.  $as_echo_n "(cached) " >&6
  5643. else
  5644.  
  5645.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5646. /* end confdefs.h.  */
  5647.  
  5648. #include <stdlib.h>
  5649. #include <iconv.h>
  5650. extern
  5651. #ifdef __cplusplus
  5652. "C"
  5653. #endif
  5654. #if defined(__STDC__) || defined(__cplusplus)
  5655. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  5656. #else
  5657. size_t iconv();
  5658. #endif
  5659.  
  5660. int
  5661. main ()
  5662. {
  5663.  
  5664.  ;
  5665.  return 0;
  5666. }
  5667. _ACEOF
  5668. if ac_fn_c_try_compile "$LINENO"; then :
  5669.  am_cv_proto_iconv_arg1=""
  5670. else
  5671.  am_cv_proto_iconv_arg1="const"
  5672. fi
  5673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5674.      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);"
  5675. fi
  5676.  
  5677.    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  5678.    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  5679.         $am_cv_proto_iconv" >&5
  5680. $as_echo "
  5681.         $am_cv_proto_iconv" >&6; }
  5682.  
  5683. cat >>confdefs.h <<_ACEOF
  5684. #define ICONV_CONST $am_cv_proto_iconv_arg1
  5685. _ACEOF
  5686.  
  5687.  fi
  5688.  
  5689.  
  5690. mkdir_p="$MKDIR_P"
  5691. case $mkdir_p in
  5692.  [\\/$]* | ?:[\\/]*) ;;
  5693.  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  5694. esac
  5695.  
  5696.  
  5697.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  5698. $as_echo_n "checking whether NLS is requested... " >&6; }
  5699.    # Check whether --enable-nls was given.
  5700. if test "${enable_nls+set}" = set; then :
  5701.  enableval=$enable_nls; USE_NLS=$enableval
  5702. else
  5703.  USE_NLS=yes
  5704. fi
  5705.  
  5706.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  5707. $as_echo "$USE_NLS" >&6; }
  5708.  
  5709.  
  5710.  
  5711.  
  5712.      GETTEXT_MACRO_VERSION=0.18
  5713.  
  5714.  
  5715.  
  5716.  
  5717. # Prepare PATH_SEPARATOR.
  5718. # The user is always right.
  5719. if test "${PATH_SEPARATOR+set}" != set; then
  5720.  echo "#! /bin/sh" >conf$$.sh
  5721.  echo  "exit 0"   >>conf$$.sh
  5722.  chmod +x conf$$.sh
  5723.  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5724.    PATH_SEPARATOR=';'
  5725.  else
  5726.    PATH_SEPARATOR=:
  5727.  fi
  5728.  rm -f conf$$.sh
  5729. fi
  5730.  
  5731. # Find out how to test for executable files. Don't use a zero-byte file,
  5732. # as systems may use methods other than mode bits to determine executability.
  5733. cat >conf$$.file <<_ASEOF
  5734. #! /bin/sh
  5735. exit 0
  5736. _ASEOF
  5737. chmod +x conf$$.file
  5738. if test -x conf$$.file >/dev/null 2>&1; then
  5739.  ac_executable_p="test -x"
  5740. else
  5741.  ac_executable_p="test -f"
  5742. fi
  5743. rm -f conf$$.file
  5744.  
  5745. # Extract the first word of "msgfmt", so it can be a program name with args.
  5746. set dummy msgfmt; ac_word=$2
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5748. $as_echo_n "checking for $ac_word... " >&6; }
  5749. if ${ac_cv_path_MSGFMT+:} false; then :
  5750.  $as_echo_n "(cached) " >&6
  5751. else
  5752.  case "$MSGFMT" in
  5753.  [\\/]* | ?:[\\/]*)
  5754.    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  5755.    ;;
  5756.  *)
  5757.    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5758.    for ac_dir in $PATH; do
  5759.      IFS="$ac_save_IFS"
  5760.      test -z "$ac_dir" && ac_dir=.
  5761.      for ac_exec_ext in '' $ac_executable_extensions; do
  5762.        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5763.          echo "$as_me: trying $ac_dir/$ac_word..." >&5
  5764.          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  5765.     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5766.            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  5767.            break 2
  5768.          fi
  5769.        fi
  5770.      done
  5771.    done
  5772.    IFS="$ac_save_IFS"
  5773.  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  5774.    ;;
  5775. esac
  5776. fi
  5777. MSGFMT="$ac_cv_path_MSGFMT"
  5778. if test "$MSGFMT" != ":"; then
  5779.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  5780. $as_echo "$MSGFMT" >&6; }
  5781. else
  5782.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5783. $as_echo "no" >&6; }
  5784. fi
  5785.  
  5786.  # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5787. set dummy gmsgfmt; ac_word=$2
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5789. $as_echo_n "checking for $ac_word... " >&6; }
  5790. if ${ac_cv_path_GMSGFMT+:} false; then :
  5791.  $as_echo_n "(cached) " >&6
  5792. else
  5793.  case $GMSGFMT in
  5794.  [\\/]* | ?:[\\/]*)
  5795.  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5796.  ;;
  5797.  *)
  5798.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5799. for as_dir in $PATH
  5800. do
  5801.  IFS=$as_save_IFS
  5802.  test -z "$as_dir" && as_dir=.
  5803.    for ac_exec_ext in '' $ac_executable_extensions; do
  5804.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5805.    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  5806.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5807.    break 2
  5808.  fi
  5809. done
  5810.  done
  5811. IFS=$as_save_IFS
  5812.  
  5813.  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  5814.  ;;
  5815. esac
  5816. fi
  5817. GMSGFMT=$ac_cv_path_GMSGFMT
  5818. if test -n "$GMSGFMT"; then
  5819.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  5820. $as_echo "$GMSGFMT" >&6; }
  5821. else
  5822.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. $as_echo "no" >&6; }
  5824. fi
  5825.  
  5826.  
  5827.  
  5828.    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  5829.    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  5830.    *) MSGFMT_015=$MSGFMT ;;
  5831.  esac
  5832.  
  5833.  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  5834.    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  5835.    *) GMSGFMT_015=$GMSGFMT ;;
  5836.  esac
  5837.  
  5838.  
  5839.  
  5840. # Prepare PATH_SEPARATOR.
  5841. # The user is always right.
  5842. if test "${PATH_SEPARATOR+set}" != set; then
  5843.  echo "#! /bin/sh" >conf$$.sh
  5844.  echo  "exit 0"   >>conf$$.sh
  5845.  chmod +x conf$$.sh
  5846.  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5847.    PATH_SEPARATOR=';'
  5848.  else
  5849.    PATH_SEPARATOR=:
  5850.  fi
  5851.  rm -f conf$$.sh
  5852. fi
  5853.  
  5854. # Find out how to test for executable files. Don't use a zero-byte file,
  5855. # as systems may use methods other than mode bits to determine executability.
  5856. cat >conf$$.file <<_ASEOF
  5857. #! /bin/sh
  5858. exit 0
  5859. _ASEOF
  5860. chmod +x conf$$.file
  5861. if test -x conf$$.file >/dev/null 2>&1; then
  5862.  ac_executable_p="test -x"
  5863. else
  5864.  ac_executable_p="test -f"
  5865. fi
  5866. rm -f conf$$.file
  5867.  
  5868. # Extract the first word of "xgettext", so it can be a program name with args.
  5869. set dummy xgettext; ac_word=$2
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5871. $as_echo_n "checking for $ac_word... " >&6; }
  5872. if ${ac_cv_path_XGETTEXT+:} false; then :
  5873.  $as_echo_n "(cached) " >&6
  5874. else
  5875.  case "$XGETTEXT" in
  5876.  [\\/]* | ?:[\\/]*)
  5877.    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  5878.    ;;
  5879.  *)
  5880.    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5881.    for ac_dir in $PATH; do
  5882.      IFS="$ac_save_IFS"
  5883.      test -z "$ac_dir" && ac_dir=.
  5884.      for ac_exec_ext in '' $ac_executable_extensions; do
  5885.        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5886.          echo "$as_me: trying $ac_dir/$ac_word..." >&5
  5887.          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  5888.     (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
  5889.            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  5890.            break 2
  5891.          fi
  5892.        fi
  5893.      done
  5894.    done
  5895.    IFS="$ac_save_IFS"
  5896.  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  5897.    ;;
  5898. esac
  5899. fi
  5900. XGETTEXT="$ac_cv_path_XGETTEXT"
  5901. if test "$XGETTEXT" != ":"; then
  5902.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  5903. $as_echo "$XGETTEXT" >&6; }
  5904. else
  5905.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5906. $as_echo "no" >&6; }
  5907. fi
  5908.  
  5909.    rm -f messages.po
  5910.  
  5911.    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  5912.    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  5913.    *) XGETTEXT_015=$XGETTEXT ;;
  5914.  esac
  5915.  
  5916.  
  5917.  
  5918. # Prepare PATH_SEPARATOR.
  5919. # The user is always right.
  5920. if test "${PATH_SEPARATOR+set}" != set; then
  5921.  echo "#! /bin/sh" >conf$$.sh
  5922.  echo  "exit 0"   >>conf$$.sh
  5923.  chmod +x conf$$.sh
  5924.  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5925.    PATH_SEPARATOR=';'
  5926.  else
  5927.    PATH_SEPARATOR=:
  5928.  fi
  5929.  rm -f conf$$.sh
  5930. fi
  5931.  
  5932. # Find out how to test for executable files. Don't use a zero-byte file,
  5933. # as systems may use methods other than mode bits to determine executability.
  5934. cat >conf$$.file <<_ASEOF
  5935. #! /bin/sh
  5936. exit 0
  5937. _ASEOF
  5938. chmod +x conf$$.file
  5939. if test -x conf$$.file >/dev/null 2>&1; then
  5940.  ac_executable_p="test -x"
  5941. else
  5942.  ac_executable_p="test -f"
  5943. fi
  5944. rm -f conf$$.file
  5945.  
  5946. # Extract the first word of "msgmerge", so it can be a program name with args.
  5947. set dummy msgmerge; ac_word=$2
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5949. $as_echo_n "checking for $ac_word... " >&6; }
  5950. if ${ac_cv_path_MSGMERGE+:} false; then :
  5951.  $as_echo_n "(cached) " >&6
  5952. else
  5953.  case "$MSGMERGE" in
  5954.  [\\/]* | ?:[\\/]*)
  5955.    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  5956.    ;;
  5957.  *)
  5958.    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5959.    for ac_dir in $PATH; do
  5960.      IFS="$ac_save_IFS"
  5961.      test -z "$ac_dir" && ac_dir=.
  5962.      for ac_exec_ext in '' $ac_executable_extensions; do
  5963.        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5964.          echo "$as_me: trying $ac_dir/$ac_word..." >&5
  5965.          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  5966.            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  5967.            break 2
  5968.          fi
  5969.        fi
  5970.      done
  5971.    done
  5972.    IFS="$ac_save_IFS"
  5973.  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  5974.    ;;
  5975. esac
  5976. fi
  5977. MSGMERGE="$ac_cv_path_MSGMERGE"
  5978. if test "$MSGMERGE" != ":"; then
  5979.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  5980. $as_echo "$MSGMERGE" >&6; }
  5981. else
  5982.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5983. $as_echo "no" >&6; }
  5984. fi
  5985.  
  5986.  
  5987.        test -n "$localedir" || localedir='${datadir}/locale'
  5988.  
  5989.  
  5990.    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  5991.  
  5992.  
  5993.  ac_config_commands="$ac_config_commands po-directories"
  5994.  
  5995.  
  5996.  
  5997.  
  5998.  
  5999.  
  6000.  
  6001.  
  6002.  
  6003.  
  6004.  
  6005.  
  6006.  
  6007.  
  6008.  
  6009.  
  6010.  
  6011.  
  6012.  
  6013.  
  6014.  
  6015.  
  6016.  
  6017.  
  6018.  
  6019.  
  6020.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  6021. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  6022. if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
  6023.  $as_echo_n "(cached) " >&6
  6024. else
  6025.  gt_save_LIBS="$LIBS"
  6026.     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  6027.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6028. /* end confdefs.h.  */
  6029. #include <CoreFoundation/CFPreferences.h>
  6030. int
  6031. main ()
  6032. {
  6033. CFPreferencesCopyAppValue(NULL, NULL)
  6034.  ;
  6035.  return 0;
  6036. }
  6037. _ACEOF
  6038. if ac_fn_c_try_link "$LINENO"; then :
  6039.  gt_cv_func_CFPreferencesCopyAppValue=yes
  6040. else
  6041.  gt_cv_func_CFPreferencesCopyAppValue=no
  6042. fi
  6043. rm -f core conftest.err conftest.$ac_objext \
  6044.    conftest$ac_exeext conftest.$ac_ext
  6045.     LIBS="$gt_save_LIBS"
  6046. fi
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  6048. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  6049.  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  6050.  
  6051. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  6052.  
  6053.  fi
  6054.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  6055. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  6056. if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
  6057.  $as_echo_n "(cached) " >&6
  6058. else
  6059.  gt_save_LIBS="$LIBS"
  6060.     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  6061.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6062. /* end confdefs.h.  */
  6063. #include <CoreFoundation/CFLocale.h>
  6064. int
  6065. main ()
  6066. {
  6067. CFLocaleCopyCurrent();
  6068.  ;
  6069.  return 0;
  6070. }
  6071. _ACEOF
  6072. if ac_fn_c_try_link "$LINENO"; then :
  6073.  gt_cv_func_CFLocaleCopyCurrent=yes
  6074. else
  6075.  gt_cv_func_CFLocaleCopyCurrent=no
  6076. fi
  6077. rm -f core conftest.err conftest.$ac_objext \
  6078.    conftest$ac_exeext conftest.$ac_ext
  6079.     LIBS="$gt_save_LIBS"
  6080. fi
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  6082. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  6083.  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  6084.  
  6085. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  6086.  
  6087.  fi
  6088.  INTL_MACOSX_LIBS=
  6089.  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  6090.    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  6091.  fi
  6092.  
  6093.  
  6094.  
  6095.  
  6096.  
  6097.  
  6098.  LIBINTL=
  6099.  LTLIBINTL=
  6100.  POSUB=
  6101.  
  6102.    case " $gt_needs " in
  6103.    *" need-formatstring-macros "*) gt_api_version=3 ;;
  6104.    *" need-ngettext "*) gt_api_version=2 ;;
  6105.    *) gt_api_version=1 ;;
  6106.  esac
  6107.  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  6108.  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  6109.  
  6110.    if test "$USE_NLS" = "yes"; then
  6111.    gt_use_preinstalled_gnugettext=no
  6112.  
  6113.  
  6114.        if test $gt_api_version -ge 3; then
  6115.          gt_revision_test_code='
  6116. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  6117. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  6118. #endif
  6119. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  6120. '
  6121.        else
  6122.          gt_revision_test_code=
  6123.        fi
  6124.        if test $gt_api_version -ge 2; then
  6125.          gt_expression_test_code=' + * ngettext ("", "", 0)'
  6126.        else
  6127.          gt_expression_test_code=
  6128.        fi
  6129.  
  6130.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  6131. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  6132. if eval \${$gt_func_gnugettext_libc+:} false; then :
  6133.  $as_echo_n "(cached) " >&6
  6134. else
  6135.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6136. /* end confdefs.h.  */
  6137. #include <libintl.h>
  6138. $gt_revision_test_code
  6139. extern int _nl_msg_cat_cntr;
  6140. extern int *_nl_domain_bindings;
  6141. int
  6142. main ()
  6143. {
  6144. bindtextdomain ("", "");
  6145. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  6146.  ;
  6147.  return 0;
  6148. }
  6149. _ACEOF
  6150. if ac_fn_c_try_link "$LINENO"; then :
  6151.  eval "$gt_func_gnugettext_libc=yes"
  6152. else
  6153.  eval "$gt_func_gnugettext_libc=no"
  6154. fi
  6155. rm -f core conftest.err conftest.$ac_objext \
  6156.    conftest$ac_exeext conftest.$ac_ext
  6157. fi
  6158. eval ac_res=\$$gt_func_gnugettext_libc
  6159.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6160. $as_echo "$ac_res" >&6; }
  6161.  
  6162.        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  6163.  
  6164.  
  6165.  
  6166.  
  6167.  
  6168.          am_save_CPPFLAGS="$CPPFLAGS"
  6169.  
  6170.  for element in $INCICONV; do
  6171.    haveit=
  6172.    for x in $CPPFLAGS; do
  6173.  
  6174.  acl_save_prefix="$prefix"
  6175.  prefix="$acl_final_prefix"
  6176.  acl_save_exec_prefix="$exec_prefix"
  6177.  exec_prefix="$acl_final_exec_prefix"
  6178.  eval x=\"$x\"
  6179.  exec_prefix="$acl_save_exec_prefix"
  6180.  prefix="$acl_save_prefix"
  6181.  
  6182.      if test "X$x" = "X$element"; then
  6183.        haveit=yes
  6184.        break
  6185.      fi
  6186.    done
  6187.    if test -z "$haveit"; then
  6188.      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  6189.    fi
  6190.  done
  6191.  
  6192.  
  6193.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  6194. $as_echo_n "checking for iconv... " >&6; }
  6195. if ${am_cv_func_iconv+:} false; then :
  6196.  $as_echo_n "(cached) " >&6
  6197. else
  6198.  
  6199.    am_cv_func_iconv="no, consider installing GNU libiconv"
  6200.    am_cv_lib_iconv=no
  6201.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6202. /* end confdefs.h.  */
  6203. #include <stdlib.h>
  6204. #include <iconv.h>
  6205. int
  6206. main ()
  6207. {
  6208. iconv_t cd = iconv_open("","");
  6209.       iconv(cd,NULL,NULL,NULL,NULL);
  6210.       iconv_close(cd);
  6211.  ;
  6212.  return 0;
  6213. }
  6214. _ACEOF
  6215. if ac_fn_c_try_link "$LINENO"; then :
  6216.  am_cv_func_iconv=yes
  6217. fi
  6218. rm -f core conftest.err conftest.$ac_objext \
  6219.    conftest$ac_exeext conftest.$ac_ext
  6220.    if test "$am_cv_func_iconv" != yes; then
  6221.      am_save_LIBS="$LIBS"
  6222.      LIBS="$LIBS $LIBICONV"
  6223.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6224. /* end confdefs.h.  */
  6225. #include <stdlib.h>
  6226. #include <iconv.h>
  6227. int
  6228. main ()
  6229. {
  6230. iconv_t cd = iconv_open("","");
  6231.         iconv(cd,NULL,NULL,NULL,NULL);
  6232.         iconv_close(cd);
  6233.  ;
  6234.  return 0;
  6235. }
  6236. _ACEOF
  6237. if ac_fn_c_try_link "$LINENO"; then :
  6238.  am_cv_lib_iconv=yes
  6239.        am_cv_func_iconv=yes
  6240. fi
  6241. rm -f core conftest.err conftest.$ac_objext \
  6242.    conftest$ac_exeext conftest.$ac_ext
  6243.      LIBS="$am_save_LIBS"
  6244.    fi
  6245.  
  6246. fi
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  6248. $as_echo "$am_cv_func_iconv" >&6; }
  6249.  if test "$am_cv_func_iconv" = yes; then
  6250.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  6251. $as_echo_n "checking for working iconv... " >&6; }
  6252. if ${am_cv_func_iconv_works+:} false; then :
  6253.  $as_echo_n "(cached) " >&6
  6254. else
  6255.  
  6256.            am_save_LIBS="$LIBS"
  6257.      if test $am_cv_lib_iconv = yes; then
  6258.        LIBS="$LIBS $LIBICONV"
  6259.      fi
  6260.      if test "$cross_compiling" = yes; then :
  6261.  case "$host_os" in
  6262.           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  6263.           *)            am_cv_func_iconv_works="guessing yes" ;;
  6264.         esac
  6265. else
  6266.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6267. /* end confdefs.h.  */
  6268.  
  6269. #include <iconv.h>
  6270. #include <string.h>
  6271. int main ()
  6272. {
  6273.  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  6274.     returns.  */
  6275.  {
  6276.    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  6277.    if (cd_utf8_to_88591 != (iconv_t)(-1))
  6278.      {
  6279.        static const char input[] = "\342\202\254"; /* EURO SIGN */
  6280.        char buf[10];
  6281.        const char *inptr = input;
  6282.        size_t inbytesleft = strlen (input);
  6283.        char *outptr = buf;
  6284.        size_t outbytesleft = sizeof (buf);
  6285.        size_t res = iconv (cd_utf8_to_88591,
  6286.                            (char **) &inptr, &inbytesleft,
  6287.                            &outptr, &outbytesleft);
  6288.        if (res == 0)
  6289.          return 1;
  6290.      }
  6291.  }
  6292.  /* Test against Solaris 10 bug: Failures are not distinguishable from
  6293.     successful returns.  */
  6294.  {
  6295.    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  6296.    if (cd_ascii_to_88591 != (iconv_t)(-1))
  6297.      {
  6298.        static const char input[] = "\263";
  6299.        char buf[10];
  6300.        const char *inptr = input;
  6301.        size_t inbytesleft = strlen (input);
  6302.        char *outptr = buf;
  6303.        size_t outbytesleft = sizeof (buf);
  6304.        size_t res = iconv (cd_ascii_to_88591,
  6305.                            (char **) &inptr, &inbytesleft,
  6306.                            &outptr, &outbytesleft);
  6307.        if (res == 0)
  6308.          return 1;
  6309.      }
  6310.  }
  6311. #if 0 /* This bug could be worked around by the caller.  */
  6312.  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
  6313.  {
  6314.    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  6315.    if (cd_88591_to_utf8 != (iconv_t)(-1))
  6316.      {
  6317.        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  6318.        char buf[50];
  6319.        const char *inptr = input;
  6320.        size_t inbytesleft = strlen (input);
  6321.        char *outptr = buf;
  6322.        size_t outbytesleft = sizeof (buf);
  6323.        size_t res = iconv (cd_88591_to_utf8,
  6324.                            (char **) &inptr, &inbytesleft,
  6325.                            &outptr, &outbytesleft);
  6326.        if ((int)res > 0)
  6327.          return 1;
  6328.      }
  6329.  }
  6330. #endif
  6331.  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  6332.     provided.  */
  6333.  if (/* Try standardized names.  */
  6334.      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  6335.      /* Try IRIX, OSF/1 names.  */
  6336.      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  6337.      /* Try AIX names.  */
  6338.      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  6339.      /* Try HP-UX names.  */
  6340.      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  6341.    return 1;
  6342.  return 0;
  6343. }
  6344. _ACEOF
  6345. if ac_fn_c_try_run "$LINENO"; then :
  6346.  am_cv_func_iconv_works=yes
  6347. else
  6348.  am_cv_func_iconv_works=no
  6349. fi
  6350. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6351.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  6352. fi
  6353.  
  6354.      LIBS="$am_save_LIBS"
  6355.  
  6356. fi
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  6358. $as_echo "$am_cv_func_iconv_works" >&6; }
  6359.    case "$am_cv_func_iconv_works" in
  6360.      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  6361.      *)   am_func_iconv=yes ;;
  6362.    esac
  6363.  else
  6364.    am_func_iconv=no am_cv_lib_iconv=no
  6365.  fi
  6366.  if test "$am_func_iconv" = yes; then
  6367.  
  6368. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  6369.  
  6370.  fi
  6371.  if test "$am_cv_lib_iconv" = yes; then
  6372.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  6373. $as_echo_n "checking how to link with libiconv... " >&6; }
  6374.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  6375. $as_echo "$LIBICONV" >&6; }
  6376.  else
  6377.            CPPFLAGS="$am_save_CPPFLAGS"
  6378.    LIBICONV=
  6379.    LTLIBICONV=
  6380.  fi
  6381.  
  6382.  
  6383.  
  6384.  
  6385.  
  6386.  
  6387.  
  6388.  
  6389.  
  6390.  
  6391.  
  6392.    use_additional=yes
  6393.  
  6394.  acl_save_prefix="$prefix"
  6395.  prefix="$acl_final_prefix"
  6396.  acl_save_exec_prefix="$exec_prefix"
  6397.  exec_prefix="$acl_final_exec_prefix"
  6398.  
  6399.    eval additional_includedir=\"$includedir\"
  6400.    eval additional_libdir=\"$libdir\"
  6401.  
  6402.  exec_prefix="$acl_save_exec_prefix"
  6403.  prefix="$acl_save_prefix"
  6404.  
  6405.  
  6406. # Check whether --with-libintl-prefix was given.
  6407. if test "${with_libintl_prefix+set}" = set; then :
  6408.  withval=$with_libintl_prefix;
  6409.    if test "X$withval" = "Xno"; then
  6410.      use_additional=no
  6411.    else
  6412.      if test "X$withval" = "X"; then
  6413.  
  6414.  acl_save_prefix="$prefix"
  6415.  prefix="$acl_final_prefix"
  6416.  acl_save_exec_prefix="$exec_prefix"
  6417.  exec_prefix="$acl_final_exec_prefix"
  6418.  
  6419.          eval additional_includedir=\"$includedir\"
  6420.          eval additional_libdir=\"$libdir\"
  6421.  
  6422.  exec_prefix="$acl_save_exec_prefix"
  6423.  prefix="$acl_save_prefix"
  6424.  
  6425.      else
  6426.        additional_includedir="$withval/include"
  6427.        additional_libdir="$withval/$acl_libdirstem"
  6428.        if test "$acl_libdirstem2" != "$acl_libdirstem" \
  6429.           && ! test -d "$withval/$acl_libdirstem"; then
  6430.          additional_libdir="$withval/$acl_libdirstem2"
  6431.        fi
  6432.      fi
  6433.    fi
  6434.  
  6435. fi
  6436.  
  6437.      LIBINTL=
  6438.  LTLIBINTL=
  6439.  INCINTL=
  6440.  LIBINTL_PREFIX=
  6441.      HAVE_LIBINTL=
  6442.  rpathdirs=
  6443.  ltrpathdirs=
  6444.  names_already_handled=
  6445.  names_next_round='intl '
  6446.  while test -n "$names_next_round"; do
  6447.    names_this_round="$names_next_round"
  6448.    names_next_round=
  6449.    for name in $names_this_round; do
  6450.      already_handled=
  6451.      for n in $names_already_handled; do
  6452.        if test "$n" = "$name"; then
  6453.          already_handled=yes
  6454.          break
  6455.        fi
  6456.      done
  6457.      if test -z "$already_handled"; then
  6458.        names_already_handled="$names_already_handled $name"
  6459.                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  6460.        eval value=\"\$HAVE_LIB$uppername\"
  6461.        if test -n "$value"; then
  6462.          if test "$value" = yes; then
  6463.            eval value=\"\$LIB$uppername\"
  6464.            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  6465.            eval value=\"\$LTLIB$uppername\"
  6466.            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  6467.          else
  6468.                                    :
  6469.          fi
  6470.        else
  6471.                              found_dir=
  6472.          found_la=
  6473.          found_so=
  6474.          found_a=
  6475.          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
  6476.          if test -n "$acl_shlibext"; then
  6477.            shrext=".$acl_shlibext"             # typically: shrext=.so
  6478.          else
  6479.            shrext=
  6480.          fi
  6481.          if test $use_additional = yes; then
  6482.            dir="$additional_libdir"
  6483.                                    if test -n "$acl_shlibext"; then
  6484.              if test -f "$dir/$libname$shrext"; then
  6485.                found_dir="$dir"
  6486.                found_so="$dir/$libname$shrext"
  6487.              else
  6488.                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  6489.                  ver=`(cd "$dir" && \
  6490.                        for f in "$libname$shrext".*; do echo "$f"; done \
  6491.                        | sed -e "s,^$libname$shrext\\\\.,," \
  6492.                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  6493.                        | sed 1q ) 2>/dev/null`
  6494.                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  6495.                    found_dir="$dir"
  6496.                    found_so="$dir/$libname$shrext.$ver"
  6497.                  fi
  6498.                else
  6499.                  eval library_names=\"$acl_library_names_spec\"
  6500.                  for f in $library_names; do
  6501.                    if test -f "$dir/$f"; then
  6502.                      found_dir="$dir"
  6503.                      found_so="$dir/$f"
  6504.                      break
  6505.                    fi
  6506.                  done
  6507.                fi
  6508.              fi
  6509.            fi
  6510.                        if test "X$found_dir" = "X"; then
  6511.              if test -f "$dir/$libname.$acl_libext"; then
  6512.                found_dir="$dir"
  6513.                found_a="$dir/$libname.$acl_libext"
  6514.              fi
  6515.            fi
  6516.            if test "X$found_dir" != "X"; then
  6517.              if test -f "$dir/$libname.la"; then
  6518.                found_la="$dir/$libname.la"
  6519.              fi
  6520.            fi
  6521.          fi
  6522.          if test "X$found_dir" = "X"; then
  6523.            for x in $LDFLAGS $LTLIBINTL; do
  6524.  
  6525.  acl_save_prefix="$prefix"
  6526.  prefix="$acl_final_prefix"
  6527.  acl_save_exec_prefix="$exec_prefix"
  6528.  exec_prefix="$acl_final_exec_prefix"
  6529.  eval x=\"$x\"
  6530.  exec_prefix="$acl_save_exec_prefix"
  6531.  prefix="$acl_save_prefix"
  6532.  
  6533.              case "$x" in
  6534.                -L*)
  6535.                  dir=`echo "X$x" | sed -e 's/^X-L//'`
  6536.                                    if test -n "$acl_shlibext"; then
  6537.                    if test -f "$dir/$libname$shrext"; then
  6538.                      found_dir="$dir"
  6539.                      found_so="$dir/$libname$shrext"
  6540.                    else
  6541.                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  6542.                        ver=`(cd "$dir" && \
  6543.                              for f in "$libname$shrext".*; do echo "$f"; done \
  6544.                              | sed -e "s,^$libname$shrext\\\\.,," \
  6545.                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  6546.                              | sed 1q ) 2>/dev/null`
  6547.                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  6548.                          found_dir="$dir"
  6549.                          found_so="$dir/$libname$shrext.$ver"
  6550.                        fi
  6551.                      else
  6552.                        eval library_names=\"$acl_library_names_spec\"
  6553.                        for f in $library_names; do
  6554.                          if test -f "$dir/$f"; then
  6555.                            found_dir="$dir"
  6556.                            found_so="$dir/$f"
  6557.                            break
  6558.                          fi
  6559.                        done
  6560.                      fi
  6561.                    fi
  6562.                  fi
  6563.                                    if test "X$found_dir" = "X"; then
  6564.                    if test -f "$dir/$libname.$acl_libext"; then
  6565.                      found_dir="$dir"
  6566.                      found_a="$dir/$libname.$acl_libext"
  6567.                    fi
  6568.                  fi
  6569.                  if test "X$found_dir" != "X"; then
  6570.                    if test -f "$dir/$libname.la"; then
  6571.                      found_la="$dir/$libname.la"
  6572.                    fi
  6573.                  fi
  6574.                  ;;
  6575.              esac
  6576.              if test "X$found_dir" != "X"; then
  6577.                break
  6578.              fi
  6579.            done
  6580.          fi
  6581.          if test "X$found_dir" != "X"; then
  6582.                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  6583.            if test "X$found_so" != "X"; then
  6584.                                                        if test "$enable_rpath" = no \
  6585.                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  6586.                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  6587.                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  6588.              else
  6589.                                                                                haveit=
  6590.                for x in $ltrpathdirs; do
  6591.                  if test "X$x" = "X$found_dir"; then
  6592.                    haveit=yes
  6593.                    break
  6594.                  fi
  6595.                done
  6596.                if test -z "$haveit"; then
  6597.                  ltrpathdirs="$ltrpathdirs $found_dir"
  6598.                fi
  6599.                                if test "$acl_hardcode_direct" = yes; then
  6600.                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  6601.                else
  6602.                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  6603.                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  6604.                                                            haveit=
  6605.                    for x in $rpathdirs; do
  6606.                      if test "X$x" = "X$found_dir"; then
  6607.                        haveit=yes
  6608.                        break
  6609.                      fi
  6610.                    done
  6611.                    if test -z "$haveit"; then
  6612.                      rpathdirs="$rpathdirs $found_dir"
  6613.                    fi
  6614.                  else
  6615.                                                                                haveit=
  6616.                    for x in $LDFLAGS $LIBINTL; do
  6617.  
  6618.  acl_save_prefix="$prefix"
  6619.  prefix="$acl_final_prefix"
  6620.  acl_save_exec_prefix="$exec_prefix"
  6621.  exec_prefix="$acl_final_exec_prefix"
  6622.  eval x=\"$x\"
  6623.  exec_prefix="$acl_save_exec_prefix"
  6624.  prefix="$acl_save_prefix"
  6625.  
  6626.                      if test "X$x" = "X-L$found_dir"; then
  6627.                        haveit=yes
  6628.                        break
  6629.                      fi
  6630.                    done
  6631.                    if test -z "$haveit"; then
  6632.                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  6633.                    fi
  6634.                    if test "$acl_hardcode_minus_L" != no; then
  6635.                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  6636.                    else
  6637.                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  6638.                    fi
  6639.                  fi
  6640.                fi
  6641.              fi
  6642.            else
  6643.              if test "X$found_a" != "X"; then
  6644.                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  6645.              else
  6646.                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  6647.              fi
  6648.            fi
  6649.                        additional_includedir=
  6650.            case "$found_dir" in
  6651.              */$acl_libdirstem | */$acl_libdirstem/)
  6652.                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  6653.                if test "$name" = 'intl'; then
  6654.                  LIBINTL_PREFIX="$basedir"
  6655.                fi
  6656.                additional_includedir="$basedir/include"
  6657.                ;;
  6658.              */$acl_libdirstem2 | */$acl_libdirstem2/)
  6659.                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  6660.                if test "$name" = 'intl'; then
  6661.                  LIBINTL_PREFIX="$basedir"
  6662.                fi
  6663.                additional_includedir="$basedir/include"
  6664.                ;;
  6665.            esac
  6666.            if test "X$additional_includedir" != "X"; then
  6667.                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
  6668.                haveit=
  6669.                if test "X$additional_includedir" = "X/usr/local/include"; then
  6670.                  if test -n "$GCC"; then
  6671.                    case $host_os in
  6672.                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  6673.                    esac
  6674.                  fi
  6675.                fi
  6676.                if test -z "$haveit"; then
  6677.                  for x in $CPPFLAGS $INCINTL; do
  6678.  
  6679.  acl_save_prefix="$prefix"
  6680.  prefix="$acl_final_prefix"
  6681.  acl_save_exec_prefix="$exec_prefix"
  6682.  exec_prefix="$acl_final_exec_prefix"
  6683.  eval x=\"$x\"
  6684.  exec_prefix="$acl_save_exec_prefix"
  6685.  prefix="$acl_save_prefix"
  6686.  
  6687.                    if test "X$x" = "X-I$additional_includedir"; then
  6688.                      haveit=yes
  6689.                      break
  6690.                    fi
  6691.                  done
  6692.                  if test -z "$haveit"; then
  6693.                    if test -d "$additional_includedir"; then
  6694.                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  6695.                    fi
  6696.                  fi
  6697.                fi
  6698.              fi
  6699.            fi
  6700.                        if test -n "$found_la"; then
  6701.                                                        save_libdir="$libdir"
  6702.              case "$found_la" in
  6703.                */* | *\\*) . "$found_la" ;;
  6704.                *) . "./$found_la" ;;
  6705.              esac
  6706.              libdir="$save_libdir"
  6707.                            for dep in $dependency_libs; do
  6708.                case "$dep" in
  6709.                  -L*)
  6710.                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  6711.                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  6712.                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  6713.                      haveit=
  6714.                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  6715.                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  6716.                        if test -n "$GCC"; then
  6717.                          case $host_os in
  6718.                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  6719.                          esac
  6720.                        fi
  6721.                      fi
  6722.                      if test -z "$haveit"; then
  6723.                        haveit=
  6724.                        for x in $LDFLAGS $LIBINTL; do
  6725.  
  6726.  acl_save_prefix="$prefix"
  6727.  prefix="$acl_final_prefix"
  6728.  acl_save_exec_prefix="$exec_prefix"
  6729.  exec_prefix="$acl_final_exec_prefix"
  6730.  eval x=\"$x\"
  6731.  exec_prefix="$acl_save_exec_prefix"
  6732.  prefix="$acl_save_prefix"
  6733.  
  6734.                          if test "X$x" = "X-L$additional_libdir"; then
  6735.                            haveit=yes
  6736.                            break
  6737.                          fi
  6738.                        done
  6739.                        if test -z "$haveit"; then
  6740.                          if test -d "$additional_libdir"; then
  6741.                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  6742.                          fi
  6743.                        fi
  6744.                        haveit=
  6745.                        for x in $LDFLAGS $LTLIBINTL; do
  6746.  
  6747.  acl_save_prefix="$prefix"
  6748.  prefix="$acl_final_prefix"
  6749.  acl_save_exec_prefix="$exec_prefix"
  6750.  exec_prefix="$acl_final_exec_prefix"
  6751.  eval x=\"$x\"
  6752.  exec_prefix="$acl_save_exec_prefix"
  6753.  prefix="$acl_save_prefix"
  6754.  
  6755.                          if test "X$x" = "X-L$additional_libdir"; then
  6756.                            haveit=yes
  6757.                            break
  6758.                          fi
  6759.                        done
  6760.                        if test -z "$haveit"; then
  6761.                          if test -d "$additional_libdir"; then
  6762.                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  6763.                          fi
  6764.                        fi
  6765.                      fi
  6766.                    fi
  6767.                    ;;
  6768.                  -R*)
  6769.                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
  6770.                    if test "$enable_rpath" != no; then
  6771.                                                                  haveit=
  6772.                      for x in $rpathdirs; do
  6773.                        if test "X$x" = "X$dir"; then
  6774.                          haveit=yes
  6775.                          break
  6776.                        fi
  6777.                      done
  6778.                      if test -z "$haveit"; then
  6779.                        rpathdirs="$rpathdirs $dir"
  6780.                      fi
  6781.                                                                  haveit=
  6782.                      for x in $ltrpathdirs; do
  6783.                        if test "X$x" = "X$dir"; then
  6784.                          haveit=yes
  6785.                          break
  6786.                        fi
  6787.                      done
  6788.                      if test -z "$haveit"; then
  6789.                        ltrpathdirs="$ltrpathdirs $dir"
  6790.                      fi
  6791.                    fi
  6792.                    ;;
  6793.                  -l*)
  6794.                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  6795.                    ;;
  6796.                  *.la)
  6797.                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  6798.                    ;;
  6799.                  *)
  6800.                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  6801.                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  6802.                    ;;
  6803.                esac
  6804.              done
  6805.            fi
  6806.          else
  6807.                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  6808.            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  6809.          fi
  6810.        fi
  6811.      fi
  6812.    done
  6813.  done
  6814.  if test "X$rpathdirs" != "X"; then
  6815.    if test -n "$acl_hardcode_libdir_separator"; then
  6816.                        alldirs=
  6817.      for found_dir in $rpathdirs; do
  6818.        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  6819.      done
  6820.            acl_save_libdir="$libdir"
  6821.      libdir="$alldirs"
  6822.      eval flag=\"$acl_hardcode_libdir_flag_spec\"
  6823.      libdir="$acl_save_libdir"
  6824.      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  6825.    else
  6826.            for found_dir in $rpathdirs; do
  6827.        acl_save_libdir="$libdir"
  6828.        libdir="$found_dir"
  6829.        eval flag=\"$acl_hardcode_libdir_flag_spec\"
  6830.        libdir="$acl_save_libdir"
  6831.        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  6832.      done
  6833.    fi
  6834.  fi
  6835.  if test "X$ltrpathdirs" != "X"; then
  6836.            for found_dir in $ltrpathdirs; do
  6837.      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  6838.    done
  6839.  fi
  6840.  
  6841.  
  6842.  
  6843.  
  6844.  
  6845.  
  6846.          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  6847. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  6848. if eval \${$gt_func_gnugettext_libintl+:} false; then :
  6849.  $as_echo_n "(cached) " >&6
  6850. else
  6851.  gt_save_CPPFLAGS="$CPPFLAGS"
  6852.            CPPFLAGS="$CPPFLAGS $INCINTL"
  6853.            gt_save_LIBS="$LIBS"
  6854.            LIBS="$LIBS $LIBINTL"
  6855.                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6856. /* end confdefs.h.  */
  6857. #include <libintl.h>
  6858. $gt_revision_test_code
  6859. extern int _nl_msg_cat_cntr;
  6860. extern
  6861. #ifdef __cplusplus
  6862. "C"
  6863. #endif
  6864. const char *_nl_expand_alias (const char *);
  6865. int
  6866. main ()
  6867. {
  6868. bindtextdomain ("", "");
  6869. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  6870.  ;
  6871.  return 0;
  6872. }
  6873. _ACEOF
  6874. if ac_fn_c_try_link "$LINENO"; then :
  6875.  eval "$gt_func_gnugettext_libintl=yes"
  6876. else
  6877.  eval "$gt_func_gnugettext_libintl=no"
  6878. fi
  6879. rm -f core conftest.err conftest.$ac_objext \
  6880.    conftest$ac_exeext conftest.$ac_ext
  6881.                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  6882.              LIBS="$LIBS $LIBICONV"
  6883.              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6884. /* end confdefs.h.  */
  6885. #include <libintl.h>
  6886. $gt_revision_test_code
  6887. extern int _nl_msg_cat_cntr;
  6888. extern
  6889. #ifdef __cplusplus
  6890. "C"
  6891. #endif
  6892. const char *_nl_expand_alias (const char *);
  6893. int
  6894. main ()
  6895. {
  6896. bindtextdomain ("", "");
  6897. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  6898.  ;
  6899.  return 0;
  6900. }
  6901. _ACEOF
  6902. if ac_fn_c_try_link "$LINENO"; then :
  6903.  LIBINTL="$LIBINTL $LIBICONV"
  6904.                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  6905.                eval "$gt_func_gnugettext_libintl=yes"
  6906.  
  6907. fi
  6908. rm -f core conftest.err conftest.$ac_objext \
  6909.    conftest$ac_exeext conftest.$ac_ext
  6910.            fi
  6911.            CPPFLAGS="$gt_save_CPPFLAGS"
  6912.            LIBS="$gt_save_LIBS"
  6913. fi
  6914. eval ac_res=\$$gt_func_gnugettext_libintl
  6915.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6916. $as_echo "$ac_res" >&6; }
  6917.        fi
  6918.  
  6919.                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  6920.           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  6921.                && test "$PACKAGE" != gettext-runtime \
  6922.                && test "$PACKAGE" != gettext-tools; }; then
  6923.          gt_use_preinstalled_gnugettext=yes
  6924.        else
  6925.                    LIBINTL=
  6926.          LTLIBINTL=
  6927.          INCINTL=
  6928.        fi
  6929.  
  6930.  
  6931.  
  6932.    if test -n "$INTL_MACOSX_LIBS"; then
  6933.      if test "$gt_use_preinstalled_gnugettext" = "yes" \
  6934.         || test "$nls_cv_use_gnu_gettext" = "yes"; then
  6935.                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  6936.        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  6937.      fi
  6938.    fi
  6939.  
  6940.    if test "$gt_use_preinstalled_gnugettext" = "yes" \
  6941.       || test "$nls_cv_use_gnu_gettext" = "yes"; then
  6942.  
  6943. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6944.  
  6945.    else
  6946.      USE_NLS=no
  6947.    fi
  6948.  fi
  6949.  
  6950.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  6951. $as_echo_n "checking whether to use NLS... " >&6; }
  6952.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  6953. $as_echo "$USE_NLS" >&6; }
  6954.  if test "$USE_NLS" = "yes"; then
  6955.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  6956. $as_echo_n "checking where the gettext function comes from... " >&6; }
  6957.    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  6958.      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  6959.        gt_source="external libintl"
  6960.      else
  6961.        gt_source="libc"
  6962.      fi
  6963.    else
  6964.      gt_source="included intl directory"
  6965.    fi
  6966.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  6967. $as_echo "$gt_source" >&6; }
  6968.  fi
  6969.  
  6970.  if test "$USE_NLS" = "yes"; then
  6971.  
  6972.    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  6973.      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  6974.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  6975. $as_echo_n "checking how to link with libintl... " >&6; }
  6976.        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  6977. $as_echo "$LIBINTL" >&6; }
  6978.  
  6979.  for element in $INCINTL; do
  6980.    haveit=
  6981.    for x in $CPPFLAGS; do
  6982.  
  6983.  acl_save_prefix="$prefix"
  6984.  prefix="$acl_final_prefix"
  6985.  acl_save_exec_prefix="$exec_prefix"
  6986.  exec_prefix="$acl_final_exec_prefix"
  6987.  eval x=\"$x\"
  6988.  exec_prefix="$acl_save_exec_prefix"
  6989.  prefix="$acl_save_prefix"
  6990.  
  6991.      if test "X$x" = "X$element"; then
  6992.        haveit=yes
  6993.        break
  6994.      fi
  6995.    done
  6996.    if test -z "$haveit"; then
  6997.      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  6998.    fi
  6999.  done
  7000.  
  7001.      fi
  7002.  
  7003.  
  7004. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  7005.  
  7006.  
  7007. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  7008.  
  7009.    fi
  7010.  
  7011.        POSUB=po
  7012.  fi
  7013.  
  7014.  
  7015.  
  7016.    INTLLIBS="$LIBINTL"
  7017.  
  7018.  
  7019.  
  7020.  
  7021.  
  7022.  
  7023.  
  7024.  
  7025. # Checks for programs.
  7026. for ac_prog in gawk mawk nawk awk
  7027. do
  7028.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  7029. set dummy $ac_prog; ac_word=$2
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7031. $as_echo_n "checking for $ac_word... " >&6; }
  7032. if ${ac_cv_prog_AWK+:} false; then :
  7033.  $as_echo_n "(cached) " >&6
  7034. else
  7035.  if test -n "$AWK"; then
  7036.  ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7037. else
  7038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7039. for as_dir in $PATH
  7040. do
  7041.  IFS=$as_save_IFS
  7042.  test -z "$as_dir" && as_dir=.
  7043.    for ac_exec_ext in '' $ac_executable_extensions; do
  7044.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7045.    ac_cv_prog_AWK="$ac_prog"
  7046.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7047.    break 2
  7048.  fi
  7049. done
  7050.  done
  7051. IFS=$as_save_IFS
  7052.  
  7053. fi
  7054. fi
  7055. AWK=$ac_cv_prog_AWK
  7056. if test -n "$AWK"; then
  7057.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  7058. $as_echo "$AWK" >&6; }
  7059. else
  7060.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7061. $as_echo "no" >&6; }
  7062. fi
  7063.  
  7064.  
  7065.  test -n "$AWK" && break
  7066. done
  7067.  
  7068. ac_ext=c
  7069. ac_cpp='$CPP $CPPFLAGS'
  7070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7073. if test -n "$ac_tool_prefix"; then
  7074.  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  7075. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7077. $as_echo_n "checking for $ac_word... " >&6; }
  7078. if ${ac_cv_prog_CC+:} false; then :
  7079.  $as_echo_n "(cached) " >&6
  7080. else
  7081.  if test -n "$CC"; then
  7082.  ac_cv_prog_CC="$CC" # Let the user override the test.
  7083. else
  7084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7085. for as_dir in $PATH
  7086. do
  7087.  IFS=$as_save_IFS
  7088.  test -z "$as_dir" && as_dir=.
  7089.    for ac_exec_ext in '' $ac_executable_extensions; do
  7090.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7091.    ac_cv_prog_CC="${ac_tool_prefix}gcc"
  7092.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7093.    break 2
  7094.  fi
  7095. done
  7096.  done
  7097. IFS=$as_save_IFS
  7098.  
  7099. fi
  7100. fi
  7101. CC=$ac_cv_prog_CC
  7102. if test -n "$CC"; then
  7103.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  7104. $as_echo "$CC" >&6; }
  7105. else
  7106.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7107. $as_echo "no" >&6; }
  7108. fi
  7109.  
  7110.  
  7111. fi
  7112. if test -z "$ac_cv_prog_CC"; then
  7113.  ac_ct_CC=$CC
  7114.  # Extract the first word of "gcc", so it can be a program name with args.
  7115. set dummy gcc; ac_word=$2
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7117. $as_echo_n "checking for $ac_word... " >&6; }
  7118. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  7119.  $as_echo_n "(cached) " >&6
  7120. else
  7121.  if test -n "$ac_ct_CC"; then
  7122.  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  7123. else
  7124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7125. for as_dir in $PATH
  7126. do
  7127.  IFS=$as_save_IFS
  7128.  test -z "$as_dir" && as_dir=.
  7129.    for ac_exec_ext in '' $ac_executable_extensions; do
  7130.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7131.    ac_cv_prog_ac_ct_CC="gcc"
  7132.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7133.    break 2
  7134.  fi
  7135. done
  7136.  done
  7137. IFS=$as_save_IFS
  7138.  
  7139. fi
  7140. fi
  7141. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  7142. if test -n "$ac_ct_CC"; then
  7143.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  7144. $as_echo "$ac_ct_CC" >&6; }
  7145. else
  7146.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7147. $as_echo "no" >&6; }
  7148. fi
  7149.  
  7150.  if test "x$ac_ct_CC" = x; then
  7151.    CC=""
  7152.  else
  7153.    case $cross_compiling:$ac_tool_warned in
  7154. yes:)
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7156. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7157. ac_tool_warned=yes ;;
  7158. esac
  7159.    CC=$ac_ct_CC
  7160.  fi
  7161. else
  7162.  CC="$ac_cv_prog_CC"
  7163. fi
  7164.  
  7165. if test -z "$CC"; then
  7166.          if test -n "$ac_tool_prefix"; then
  7167.    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  7168. set dummy ${ac_tool_prefix}cc; ac_word=$2
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7170. $as_echo_n "checking for $ac_word... " >&6; }
  7171. if ${ac_cv_prog_CC+:} false; then :
  7172.  $as_echo_n "(cached) " >&6
  7173. else
  7174.  if test -n "$CC"; then
  7175.  ac_cv_prog_CC="$CC" # Let the user override the test.
  7176. else
  7177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7178. for as_dir in $PATH
  7179. do
  7180.  IFS=$as_save_IFS
  7181.  test -z "$as_dir" && as_dir=.
  7182.    for ac_exec_ext in '' $ac_executable_extensions; do
  7183.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7184.    ac_cv_prog_CC="${ac_tool_prefix}cc"
  7185.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7186.    break 2
  7187.  fi
  7188. done
  7189.  done
  7190. IFS=$as_save_IFS
  7191.  
  7192. fi
  7193. fi
  7194. CC=$ac_cv_prog_CC
  7195. if test -n "$CC"; then
  7196.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  7197. $as_echo "$CC" >&6; }
  7198. else
  7199.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7200. $as_echo "no" >&6; }
  7201. fi
  7202.  
  7203.  
  7204.  fi
  7205. fi
  7206. if test -z "$CC"; then
  7207.  # Extract the first word of "cc", so it can be a program name with args.
  7208. set dummy cc; ac_word=$2
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7210. $as_echo_n "checking for $ac_word... " >&6; }
  7211. if ${ac_cv_prog_CC+:} false; then :
  7212.  $as_echo_n "(cached) " >&6
  7213. else
  7214.  if test -n "$CC"; then
  7215.  ac_cv_prog_CC="$CC" # Let the user override the test.
  7216. else
  7217.  ac_prog_rejected=no
  7218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7219. for as_dir in $PATH
  7220. do
  7221.  IFS=$as_save_IFS
  7222.  test -z "$as_dir" && as_dir=.
  7223.    for ac_exec_ext in '' $ac_executable_extensions; do
  7224.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7225.    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  7226.       ac_prog_rejected=yes
  7227.       continue
  7228.     fi
  7229.    ac_cv_prog_CC="cc"
  7230.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7231.    break 2
  7232.  fi
  7233. done
  7234.  done
  7235. IFS=$as_save_IFS
  7236.  
  7237. if test $ac_prog_rejected = yes; then
  7238.  # We found a bogon in the path, so make sure we never use it.
  7239.  set dummy $ac_cv_prog_CC
  7240.  shift
  7241.  if test $# != 0; then
  7242.    # We chose a different compiler from the bogus one.
  7243.    # However, it has the same basename, so the bogon will be chosen
  7244.    # first if we set CC to just the basename; use the full file name.
  7245.    shift
  7246.    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  7247.  fi
  7248. fi
  7249. fi
  7250. fi
  7251. CC=$ac_cv_prog_CC
  7252. if test -n "$CC"; then
  7253.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  7254. $as_echo "$CC" >&6; }
  7255. else
  7256.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7257. $as_echo "no" >&6; }
  7258. fi
  7259.  
  7260.  
  7261. fi
  7262. if test -z "$CC"; then
  7263.  if test -n "$ac_tool_prefix"; then
  7264.  for ac_prog in cl.exe
  7265.  do
  7266.    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7267. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7269. $as_echo_n "checking for $ac_word... " >&6; }
  7270. if ${ac_cv_prog_CC+:} false; then :
  7271.  $as_echo_n "(cached) " >&6
  7272. else
  7273.  if test -n "$CC"; then
  7274.  ac_cv_prog_CC="$CC" # Let the user override the test.
  7275. else
  7276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7277. for as_dir in $PATH
  7278. do
  7279.  IFS=$as_save_IFS
  7280.  test -z "$as_dir" && as_dir=.
  7281.    for ac_exec_ext in '' $ac_executable_extensions; do
  7282.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7283.    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  7284.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7285.    break 2
  7286.  fi
  7287. done
  7288.  done
  7289. IFS=$as_save_IFS
  7290.  
  7291. fi
  7292. fi
  7293. CC=$ac_cv_prog_CC
  7294. if test -n "$CC"; then
  7295.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  7296. $as_echo "$CC" >&6; }
  7297. else
  7298.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7299. $as_echo "no" >&6; }
  7300. fi
  7301.  
  7302.  
  7303.    test -n "$CC" && break
  7304.  done
  7305. fi
  7306. if test -z "$CC"; then
  7307.  ac_ct_CC=$CC
  7308.  for ac_prog in cl.exe
  7309. do
  7310.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  7311. set dummy $ac_prog; ac_word=$2
  7312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7313. $as_echo_n "checking for $ac_word... " >&6; }
  7314. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  7315.  $as_echo_n "(cached) " >&6
  7316. else
  7317.  if test -n "$ac_ct_CC"; then
  7318.  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  7319. else
  7320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7321. for as_dir in $PATH
  7322. do
  7323.  IFS=$as_save_IFS
  7324.  test -z "$as_dir" && as_dir=.
  7325.    for ac_exec_ext in '' $ac_executable_extensions; do
  7326.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7327.    ac_cv_prog_ac_ct_CC="$ac_prog"
  7328.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7329.    break 2
  7330.  fi
  7331. done
  7332.  done
  7333. IFS=$as_save_IFS
  7334.  
  7335. fi
  7336. fi
  7337. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  7338. if test -n "$ac_ct_CC"; then
  7339.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  7340. $as_echo "$ac_ct_CC" >&6; }
  7341. else
  7342.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7343. $as_echo "no" >&6; }
  7344. fi
  7345.  
  7346.  
  7347.  test -n "$ac_ct_CC" && break
  7348. done
  7349.  
  7350.  if test "x$ac_ct_CC" = x; then
  7351.    CC=""
  7352.  else
  7353.    case $cross_compiling:$ac_tool_warned in
  7354. yes:)
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7356. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7357. ac_tool_warned=yes ;;
  7358. esac
  7359.    CC=$ac_ct_CC
  7360.  fi
  7361. fi
  7362.  
  7363. fi
  7364.  
  7365.  
  7366. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7367. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7368. as_fn_error $? "no acceptable C compiler found in \$PATH
  7369. See \`config.log' for more details" "$LINENO" 5; }
  7370.  
  7371. # Provide some information about the compiler.
  7372. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  7373. set X $ac_compile
  7374. ac_compiler=$2
  7375. for ac_option in --version -v -V -qversion; do
  7376.   { { ac_try="$ac_compiler $ac_option >&5"
  7377. case "(($ac_try" in
  7378.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7379.   *) ac_try_echo=$ac_try;;
  7380. esac
  7381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7382. $as_echo "$ac_try_echo"; } >&5
  7383.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  7384.   ac_status=$?
  7385.   if test -s conftest.err; then
  7386.     sed '10a\
  7387. ... rest of stderr output deleted ...
  7388.         10q' conftest.err >conftest.er1
  7389.     cat conftest.er1 >&5
  7390.   fi
  7391.   rm -f conftest.er1 conftest.err
  7392.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7393.   test $ac_status = 0; }
  7394. done
  7395.  
  7396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  7397. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  7398. if ${ac_cv_c_compiler_gnu+:} false; then :
  7399.   $as_echo_n "(cached) " >&6
  7400. else
  7401.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7402. /* end confdefs.h.  */
  7403.  
  7404. int
  7405. main ()
  7406. {
  7407. #ifndef __GNUC__
  7408.        choke me
  7409. #endif
  7410.  
  7411.   ;
  7412.   return 0;
  7413. }
  7414. _ACEOF
  7415. if ac_fn_c_try_compile "$LINENO"; then :
  7416.   ac_compiler_gnu=yes
  7417. else
  7418.   ac_compiler_gnu=no
  7419. fi
  7420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7421. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  7422.  
  7423. fi
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  7425. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  7426. if test $ac_compiler_gnu = yes; then
  7427.   GCC=yes
  7428. else
  7429.   GCC=
  7430. fi
  7431. ac_test_CFLAGS=${CFLAGS+set}
  7432. ac_save_CFLAGS=$CFLAGS
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  7434. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  7435. if ${ac_cv_prog_cc_g+:} false; then :
  7436.   $as_echo_n "(cached) " >&6
  7437. else
  7438.   ac_save_c_werror_flag=$ac_c_werror_flag
  7439.    ac_c_werror_flag=yes
  7440.    ac_cv_prog_cc_g=no
  7441.    CFLAGS="-g"
  7442.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7443. /* end confdefs.h.  */
  7444.  
  7445. int
  7446. main ()
  7447. {
  7448.  
  7449.   ;
  7450.   return 0;
  7451. }
  7452. _ACEOF
  7453. if ac_fn_c_try_compile "$LINENO"; then :
  7454.   ac_cv_prog_cc_g=yes
  7455. else
  7456.   CFLAGS=""
  7457.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7458. /* end confdefs.h.  */
  7459.  
  7460. int
  7461. main ()
  7462. {
  7463.  
  7464.   ;
  7465.   return 0;
  7466. }
  7467. _ACEOF
  7468. if ac_fn_c_try_compile "$LINENO"; then :
  7469.  
  7470. else
  7471.   ac_c_werror_flag=$ac_save_c_werror_flag
  7472.      CFLAGS="-g"
  7473.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7474. /* end confdefs.h.  */
  7475.  
  7476. int
  7477. main ()
  7478. {
  7479.  
  7480.   ;
  7481.   return 0;
  7482. }
  7483. _ACEOF
  7484. if ac_fn_c_try_compile "$LINENO"; then :
  7485.   ac_cv_prog_cc_g=yes
  7486. fi
  7487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7488. fi
  7489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7490. fi
  7491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7492.    ac_c_werror_flag=$ac_save_c_werror_flag
  7493. fi
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  7495. $as_echo "$ac_cv_prog_cc_g" >&6; }
  7496. if test "$ac_test_CFLAGS" = set; then
  7497.   CFLAGS=$ac_save_CFLAGS
  7498. elif test $ac_cv_prog_cc_g = yes; then
  7499.   if test "$GCC" = yes; then
  7500.     CFLAGS="-g -O2"
  7501.   else
  7502.     CFLAGS="-g"
  7503.   fi
  7504. else
  7505.   if test "$GCC" = yes; then
  7506.     CFLAGS="-O2"
  7507.   else
  7508.     CFLAGS=
  7509.   fi
  7510. fi
  7511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  7512. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  7513. if ${ac_cv_prog_cc_c89+:} false; then :
  7514.   $as_echo_n "(cached) " >&6
  7515. else
  7516.   ac_cv_prog_cc_c89=no
  7517. ac_save_CC=$CC
  7518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7519. /* end confdefs.h.  */
  7520. #include <stdarg.h>
  7521. #include <stdio.h>
  7522. struct stat;
  7523. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  7524. struct buf { int x; };
  7525. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  7526. static char *e (p, i)
  7527.     char **p;
  7528.     int i;
  7529. {
  7530.  return p[i];
  7531. }
  7532. static char *f (char * (*g) (char **, int), char **p, ...)
  7533. {
  7534.  char *s;
  7535.  va_list v;
  7536.  va_start (v,p);
  7537.  s = g (p, va_arg (v,int));
  7538.  va_end (v);
  7539.  return s;
  7540. }
  7541.  
  7542. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  7543.   function prototypes and stuff, but not '\xHH' hex character constants.
  7544.   These don't provoke an error unfortunately, instead are silently treated
  7545.    as 'x'.  The following induces an error, until -std is added to get
  7546.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  7547.    array size at least.  It's necessary to write '\x00'==0 to get something
  7548.   that's true only with -std.  */
  7549. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  7550.  
  7551. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  7552.    inside strings and character constants.  */
  7553. #define FOO(x) 'x'
  7554. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  7555.  
  7556. int test (int i, double x);
  7557. struct s1 {int (*f) (int a);};
  7558. struct s2 {int (*f) (double a);};
  7559. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  7560. int argc;
  7561. char **argv;
  7562. int
  7563. main ()
  7564. {
  7565. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  7566.   ;
  7567.   return 0;
  7568. }
  7569. _ACEOF
  7570. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  7571.     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  7572. do
  7573.   CC="$ac_save_CC $ac_arg"
  7574.   if ac_fn_c_try_compile "$LINENO"; then :
  7575.   ac_cv_prog_cc_c89=$ac_arg
  7576. fi
  7577. rm -f core conftest.err conftest.$ac_objext
  7578.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  7579. done
  7580. rm -f conftest.$ac_ext
  7581. CC=$ac_save_CC
  7582.  
  7583. fi
  7584. # AC_CACHE_VAL
  7585. case "x$ac_cv_prog_cc_c89" in
  7586.   x)
  7587.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  7588. $as_echo "none needed" >&6; } ;;
  7589.   xno)
  7590.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  7591. $as_echo "unsupported" >&6; } ;;
  7592.   *)
  7593.     CC="$CC $ac_cv_prog_cc_c89"
  7594.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  7595. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  7596. esac
  7597. if test "x$ac_cv_prog_cc_c89" != xno; then :
  7598.  
  7599. fi
  7600.  
  7601. ac_ext=c
  7602. ac_cpp='$CPP $CPPFLAGS'
  7603. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7604. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7605. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7606.  
  7607. ac_ext=c
  7608. ac_cpp='$CPP $CPPFLAGS'
  7609. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7610. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7611. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  7613. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  7614. if ${am_cv_prog_cc_c_o+:} false; then :
  7615.   $as_echo_n "(cached) " >&6
  7616. else
  7617.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7618. /* end confdefs.h.  */
  7619.  
  7620. int
  7621. main ()
  7622. {
  7623.  
  7624.   ;
  7625.   return 0;
  7626. }
  7627. _ACEOF
  7628.   # Make sure it works both with $CC and with simple cc.
  7629.   # Following AC_PROG_CC_C_O, we do the test twice because some
  7630.   # compilers refuse to overwrite an existing .o file with -o,
  7631.   # though they will create one.
  7632.   am_cv_prog_cc_c_o=yes
  7633.   for am_i in 1 2; do
  7634.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  7635.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  7636.    ac_status=$?
  7637.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7638.    (exit $ac_status); } \
  7639.          && test -f conftest2.$ac_objext; then
  7640.       : OK
  7641.     else
  7642.       am_cv_prog_cc_c_o=no
  7643.       break
  7644.     fi
  7645.   done
  7646.   rm -f core conftest*
  7647.   unset am_i
  7648. fi
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  7650. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  7651. if test "$am_cv_prog_cc_c_o" != yes; then
  7652.    # Losing compiler, so override with the script.
  7653.    # FIXME: It is wrong to rewrite CC.
  7654.    # But if we don't then we get into trouble of one sort or another.
  7655.    # A longer-term fix would be to have automake use am__CC in this case,
  7656.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  7657.    CC="$am_aux_dir/compile $CC"
  7658. fi
  7659. ac_ext=c
  7660. ac_cpp='$CPP $CPPFLAGS'
  7661. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7662. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7663. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7664.  
  7665.  
  7666. depcc="$CC"   am_compiler_list=
  7667.  
  7668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  7669. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7670. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  7671.   $as_echo_n "(cached) " >&6
  7672. else
  7673.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7674.   # We make a subdir and do the tests there.  Otherwise we can end up
  7675.   # making bogus files that we don't know about and never remove.  For
  7676.   # instance it was reported that on HP-UX the gcc test will end up
  7677.   # making a dummy file named 'D' -- because '-MD' means "put the output
  7678.   # in D".
  7679.   rm -rf conftest.dir
  7680.   mkdir conftest.dir
  7681.   # Copy depcomp to subdir because otherwise we won't find it if we're
  7682.   # using a relative directory.
  7683.   cp "$am_depcomp" conftest.dir
  7684.   cd conftest.dir
  7685.   # We will build objects and dependencies in a subdirectory because
  7686.   # it helps to detect inapplicable dependency modes.  For instance
  7687.   # both Tru64's cc and ICC support -MD to output dependencies as a
  7688.   # side effect of compilation, but ICC will put the dependencies in
  7689.   # the current directory while Tru64 will put them in the object
  7690.   # directory.
  7691.   mkdir sub
  7692.  
  7693.   am_cv_CC_dependencies_compiler_type=none
  7694.   if test "$am_compiler_list" = ""; then
  7695.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7696.   fi
  7697.   am__universal=false
  7698.   case " $depcc " in #(
  7699.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7700.      esac
  7701.  
  7702.   for depmode in $am_compiler_list; do
  7703.     # Setup a source with many dependencies, because some compilers
  7704.     # like to wrap large dependency lists on column 80 (with \), and
  7705.     # we should not choose a depcomp mode which is confused by this.
  7706.     #
  7707.     # We need to recreate these files for each test, as the compiler may
  7708.     # overwrite some of them when testing with obscure command lines.
  7709.     # This happens at least with the AIX C compiler.
  7710.     : > sub/conftest.c
  7711.     for i in 1 2 3 4 5 6; do
  7712.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7713.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  7714.       # Solaris 10 /bin/sh.
  7715.       echo '/* dummy */' > sub/conftst$i.h
  7716.     done
  7717.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7718.  
  7719.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  7720.     # mode.  It turns out that the SunPro C++ compiler does not properly
  7721.     # handle '-M -o', and we need to detect this.  Also, some Intel
  7722.     # versions had trouble with output in subdirs.
  7723.     am__obj=sub/conftest.${OBJEXT-o}
  7724.     am__minus_obj="-o $am__obj"
  7725.     case $depmode in
  7726.     gcc)
  7727.       # This depmode causes a compiler race in universal mode.
  7728.       test "$am__universal" = false || continue
  7729.       ;;
  7730.     nosideeffect)
  7731.       # After this tag, mechanisms are not by side-effect, so they'll
  7732.       # only be used when explicitly requested.
  7733.       if test "x$enable_dependency_tracking" = xyes; then
  7734.     continue
  7735.       else
  7736.     break
  7737.       fi
  7738.       ;;
  7739.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  7740.       # This compiler won't grok '-c -o', but also, the minuso test has
  7741.       # not run yet.  These depmodes are late enough in the game, and
  7742.       # so weak that their functioning should not be impacted.
  7743.       am__obj=conftest.${OBJEXT-o}
  7744.       am__minus_obj=
  7745.       ;;
  7746.     none) break ;;
  7747.     esac
  7748.     if depmode=$depmode \
  7749.        source=sub/conftest.c object=$am__obj \
  7750.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7751.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7752.          >/dev/null 2>conftest.err &&
  7753.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7754.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7755.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7756.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7757.       # icc doesn't choke on unknown options, it will just issue warnings
  7758.       # or remarks (even with -Werror).  So we grep stderr for any message
  7759.       # that says an option was ignored or not supported.
  7760.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  7761.       #   icc: Command line warning: ignoring option '-M'; no argument required
  7762.       # The diagnosis changed in icc 8.0:
  7763.       #   icc: Command line remark: option '-MP' not supported
  7764.       if (grep 'ignoring option' conftest.err ||
  7765.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7766.         am_cv_CC_dependencies_compiler_type=$depmode
  7767.         break
  7768.       fi
  7769.     fi
  7770.   done
  7771.  
  7772.   cd ..
  7773.   rm -rf conftest.dir
  7774. else
  7775.   am_cv_CC_dependencies_compiler_type=none
  7776. fi
  7777.  
  7778. fi
  7779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  7780. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  7781. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  7782.  
  7783.  if
  7784.   test "x$enable_dependency_tracking" != xno \
  7785.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  7786.   am__fastdepCC_TRUE=
  7787.   am__fastdepCC_FALSE='#'
  7788. else
  7789.   am__fastdepCC_TRUE='#'
  7790.   am__fastdepCC_FALSE=
  7791. fi
  7792.  
  7793.  
  7794.  
  7795.  
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7797. $as_echo_n "checking whether ln -s works... " >&6; }
  7798. LN_S=$as_ln_s
  7799. if test "$LN_S" = "ln -s"; then
  7800.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7801. $as_echo "yes" >&6; }
  7802. else
  7803.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7804. $as_echo "no, using $LN_S" >&6; }
  7805. fi
  7806.  
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  7808. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  7809. set x ${MAKE-make}
  7810. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  7811. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  7812.   $as_echo_n "(cached) " >&6
  7813. else
  7814.   cat >conftest.make <<\_ACEOF
  7815. SHELL = /bin/sh
  7816. all:
  7817.     @echo '@@@%%%=$(MAKE)=@@@%%%'
  7818. _ACEOF
  7819. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  7820. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  7821.   *@@@%%%=?*=@@@%%%*)
  7822.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  7823.   *)
  7824.     eval ac_cv_prog_make_${ac_make}_set=no;;
  7825. esac
  7826. rm -f conftest.make
  7827. fi
  7828. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  7829.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7830. $as_echo "yes" >&6; }
  7831.   SET_MAKE=
  7832. else
  7833.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7834. $as_echo "no" >&6; }
  7835.   SET_MAKE="MAKE=${MAKE-make}"
  7836. fi
  7837.  
  7838.  
  7839. # Default string definitions
  7840.  
  7841. cat >>confdefs.h <<_ACEOF
  7842. #define OS_URL "http://sourceforge.net/projects/minidlna/"
  7843. _ACEOF
  7844.  
  7845.  
  7846. cat >>confdefs.h <<_ACEOF
  7847. #define ROOTDEV_MANUFACTURER "Justin Maggard"
  7848. _ACEOF
  7849.  
  7850.  
  7851. cat >>confdefs.h <<_ACEOF
  7852. #define ROOTDEV_MANUFACTURERURL "http://www.netgear.com/"
  7853. _ACEOF
  7854.  
  7855.  
  7856. cat >>confdefs.h <<_ACEOF
  7857. #define ROOTDEV_MODELNAME "Windows Media Connect compatible (MiniDLNA)"
  7858. _ACEOF
  7859.  
  7860.  
  7861. cat >>confdefs.h <<_ACEOF
  7862. #define ROOTDEV_MODELDESCRIPTION "MiniDLNA on " OS_NAME
  7863. _ACEOF
  7864.  
  7865.  
  7866. cat >>confdefs.h <<_ACEOF
  7867. #define ROOTDEV_MODELURL OS_URL
  7868. _ACEOF
  7869.  
  7870.  
  7871.  
  7872. ################################################################################################################
  7873. # Checks for typedefs, structures, and compiler characteristics.
  7874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7875. $as_echo_n "checking for inline... " >&6; }
  7876. if ${ac_cv_c_inline+:} false; then :
  7877.   $as_echo_n "(cached) " >&6
  7878. else
  7879.   ac_cv_c_inline=no
  7880. for ac_kw in inline __inline__ __inline; do
  7881.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7882. /* end confdefs.h.  */
  7883. #ifndef __cplusplus
  7884. typedef int foo_t;
  7885. static $ac_kw foo_t static_foo () {return 0; }
  7886. $ac_kw foo_t foo () {return 0; }
  7887. #endif
  7888.  
  7889. _ACEOF
  7890. if ac_fn_c_try_compile "$LINENO"; then :
  7891.   ac_cv_c_inline=$ac_kw
  7892. fi
  7893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7894.   test "$ac_cv_c_inline" != no && break
  7895. done
  7896.  
  7897. fi
  7898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7899. $as_echo "$ac_cv_c_inline" >&6; }
  7900.  
  7901. case $ac_cv_c_inline in
  7902.   inline | yes) ;;
  7903.   *)
  7904.     case $ac_cv_c_inline in
  7905.       no) ac_val=;;
  7906.       *) ac_val=$ac_cv_c_inline;;
  7907.     esac
  7908.     cat >>confdefs.h <<_ACEOF
  7909. #ifndef __cplusplus
  7910. #define inline $ac_val
  7911. #endif
  7912. _ACEOF
  7913.     ;;
  7914. esac
  7915.  
  7916. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7917. if test "x$ac_cv_type_mode_t" = xyes; then :
  7918.  
  7919. else
  7920.  
  7921. cat >>confdefs.h <<_ACEOF
  7922. #define mode_t int
  7923. _ACEOF
  7924.  
  7925. fi
  7926.  
  7927. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7928. if test "x$ac_cv_type_off_t" = xyes; then :
  7929.  
  7930. else
  7931.  
  7932. cat >>confdefs.h <<_ACEOF
  7933. #define off_t long int
  7934. _ACEOF
  7935.  
  7936. fi
  7937.  
  7938. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7939. if test "x$ac_cv_type_pid_t" = xyes; then :
  7940.  
  7941. else
  7942.  
  7943. cat >>confdefs.h <<_ACEOF
  7944. #define pid_t int
  7945. _ACEOF
  7946.  
  7947. fi
  7948.  
  7949. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7950. if test "x$ac_cv_type_size_t" = xyes; then :
  7951.  
  7952. else
  7953.  
  7954. cat >>confdefs.h <<_ACEOF
  7955. #define size_t unsigned int
  7956. _ACEOF
  7957.  
  7958. fi
  7959.  
  7960. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7961. case $ac_cv_c_uint8_t in #(
  7962.   no|yes) ;; #(
  7963.   *)
  7964.  
  7965. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7966.  
  7967.  
  7968. cat >>confdefs.h <<_ACEOF
  7969. #define uint8_t $ac_cv_c_uint8_t
  7970. _ACEOF
  7971. ;;
  7972.   esac
  7973.  
  7974. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7975. case $ac_cv_c_int32_t in #(
  7976.   no|yes) ;; #(
  7977.   *)
  7978.  
  7979. cat >>confdefs.h <<_ACEOF
  7980. #define int32_t $ac_cv_c_int32_t
  7981. _ACEOF
  7982. ;;
  7983. esac
  7984.  
  7985. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7986. case $ac_cv_c_uint32_t in #(
  7987.   no|yes) ;; #(
  7988.   *)
  7989.  
  7990. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7991.  
  7992.  
  7993. cat >>confdefs.h <<_ACEOF
  7994. #define uint32_t $ac_cv_c_uint32_t
  7995. _ACEOF
  7996. ;;
  7997.   esac
  7998.  
  7999. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  8000. case $ac_cv_c_uint64_t in #(
  8001.   no|yes) ;; #(
  8002.   *)
  8003.  
  8004. $as_echo "#define _UINT64_T 1" >>confdefs.h
  8005.  
  8006.  
  8007. cat >>confdefs.h <<_ACEOF
  8008. #define uint64_t $ac_cv_c_uint64_t
  8009. _ACEOF
  8010. ;;
  8011.   esac
  8012.  
  8013. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  8014. if test "x$ac_cv_type_ssize_t" = xyes; then :
  8015.  
  8016. else
  8017.  
  8018. cat >>confdefs.h <<_ACEOF
  8019. #define ssize_t int
  8020. _ACEOF
  8021.  
  8022. fi
  8023.  
  8024. ac_header_dirent=no
  8025. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  8026.   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  8027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  8028. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  8029. if eval \${$as_ac_Header+:} false; then :
  8030.   $as_echo_n "(cached) " >&6
  8031. else
  8032.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8033. /* end confdefs.h.  */
  8034. #include <sys/types.h>
  8035. #include <$ac_hdr>
  8036.  
  8037. int
  8038. main ()
  8039. {
  8040. if ((DIR *) 0)
  8041. return 0;
  8042.   ;
  8043.   return 0;
  8044. }
  8045. _ACEOF
  8046. if ac_fn_c_try_compile "$LINENO"; then :
  8047.   eval "$as_ac_Header=yes"
  8048. else
  8049.   eval "$as_ac_Header=no"
  8050. fi
  8051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8052. fi
  8053. eval ac_res=\$$as_ac_Header
  8054.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  8055. $as_echo "$ac_res" >&6; }
  8056. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8057.   cat >>confdefs.h <<_ACEOF
  8058. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  8059. _ACEOF
  8060.  
  8061. ac_header_dirent=$ac_hdr; break
  8062. fi
  8063.  
  8064. done
  8065. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  8066. if test $ac_header_dirent = dirent.h; then
  8067.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  8068. $as_echo_n "checking for library containing opendir... " >&6; }
  8069. if ${ac_cv_search_opendir+:} false; then :
  8070.   $as_echo_n "(cached) " >&6
  8071. else
  8072.   ac_func_search_save_LIBS=$LIBS
  8073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8074. /* end confdefs.h.  */
  8075.  
  8076. /* Override any GCC internal prototype to avoid an error.
  8077.    Use char because int might match the return type of a GCC
  8078.    builtin and then its argument prototype would still apply.  */
  8079. #ifdef __cplusplus
  8080. extern "C"
  8081. #endif
  8082. char opendir ();
  8083. int
  8084. main ()
  8085. {
  8086. return opendir ();
  8087.   ;
  8088.   return 0;
  8089. }
  8090. _ACEOF
  8091. for ac_lib in '' dir; do
  8092.   if test -z "$ac_lib"; then
  8093.     ac_res="none required"
  8094.   else
  8095.     ac_res=-l$ac_lib
  8096.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  8097.   fi
  8098.   if ac_fn_c_try_link "$LINENO"; then :
  8099.   ac_cv_search_opendir=$ac_res
  8100. fi
  8101. rm -f core conftest.err conftest.$ac_objext \
  8102.     conftest$ac_exeext
  8103.   if ${ac_cv_search_opendir+:} false; then :
  8104.   break
  8105. fi
  8106. done
  8107. if ${ac_cv_search_opendir+:} false; then :
  8108.  
  8109. else
  8110.   ac_cv_search_opendir=no
  8111. fi
  8112. rm conftest.$ac_ext
  8113. LIBS=$ac_func_search_save_LIBS
  8114. fi
  8115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  8116. $as_echo "$ac_cv_search_opendir" >&6; }
  8117. ac_res=$ac_cv_search_opendir
  8118. if test "$ac_res" != no; then :
  8119.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8120.  
  8121. fi
  8122.  
  8123. else
  8124.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  8125. $as_echo_n "checking for library containing opendir... " >&6; }
  8126. if ${ac_cv_search_opendir+:} false; then :
  8127.   $as_echo_n "(cached) " >&6
  8128. else
  8129.   ac_func_search_save_LIBS=$LIBS
  8130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8131. /* end confdefs.h.  */
  8132.  
  8133. /* Override any GCC internal prototype to avoid an error.
  8134.    Use char because int might match the return type of a GCC
  8135.    builtin and then its argument prototype would still apply.  */
  8136. #ifdef __cplusplus
  8137. extern "C"
  8138. #endif
  8139. char opendir ();
  8140. int
  8141. main ()
  8142. {
  8143. return opendir ();
  8144.   ;
  8145.   return 0;
  8146. }
  8147. _ACEOF
  8148. for ac_lib in '' x; do
  8149.   if test -z "$ac_lib"; then
  8150.     ac_res="none required"
  8151.   else
  8152.     ac_res=-l$ac_lib
  8153.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  8154.   fi
  8155.   if ac_fn_c_try_link "$LINENO"; then :
  8156.   ac_cv_search_opendir=$ac_res
  8157. fi
  8158. rm -f core conftest.err conftest.$ac_objext \
  8159.     conftest$ac_exeext
  8160.   if ${ac_cv_search_opendir+:} false; then :
  8161.   break
  8162. fi
  8163. done
  8164. if ${ac_cv_search_opendir+:} false; then :
  8165.  
  8166. else
  8167.   ac_cv_search_opendir=no
  8168. fi
  8169. rm conftest.$ac_ext
  8170. LIBS=$ac_func_search_save_LIBS
  8171. fi
  8172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  8173. $as_echo "$ac_cv_search_opendir" >&6; }
  8174. ac_res=$ac_cv_search_opendir
  8175. if test "$ac_res" != no; then :
  8176.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8177.  
  8178. fi
  8179.  
  8180. fi
  8181.  
  8182.  
  8183.  
  8184.   ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
  8185. #include <sys/types.h>
  8186. #ifdef HAVE_DIRENT_H
  8187. # include <dirent.h>
  8188. #else
  8189. # define dirent direct
  8190. # ifdef HAVE_SYS_NDIR_H
  8191. #  include <sys/ndir.h>
  8192. # endif
  8193. # ifdef HAVE_SYS_DIR_H
  8194. #  include <sys/dir.h>
  8195. # endif
  8196. # ifdef HAVE_NDIR_H
  8197. #  include <ndir.h>
  8198. # endif
  8199. #endif
  8200.  
  8201. "
  8202. if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
  8203.  
  8204. cat >>confdefs.h <<_ACEOF
  8205. #define HAVE_STRUCT_DIRENT_D_TYPE 1
  8206. _ACEOF
  8207.  
  8208.  
  8209. fi
  8210.  
  8211.  
  8212. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
  8213. if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
  8214.  
  8215. cat >>confdefs.h <<_ACEOF
  8216. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  8217. _ACEOF
  8218.  
  8219.  
  8220. $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
  8221.  
  8222. else
  8223.   case " $LIBOBJS " in
  8224.   *" fileblocks.$ac_objext "* ) ;;
  8225.   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
  8226.  ;;
  8227. esac
  8228.  
  8229. fi
  8230.  
  8231.  
  8232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  8233. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  8234. if ${ac_cv_header_stdbool_h+:} false; then :
  8235.   $as_echo_n "(cached) " >&6
  8236. else
  8237.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8238. /* end confdefs.h.  */
  8239.  
  8240.              #include <stdbool.h>
  8241.              #ifndef bool
  8242.               "error: bool is not defined"
  8243.              #endif
  8244.              #ifndef false
  8245.               "error: false is not defined"
  8246.              #endif
  8247.              #if false
  8248.               "error: false is not 0"
  8249.              #endif
  8250.              #ifndef true
  8251.               "error: true is not defined"
  8252.              #endif
  8253.              #if true != 1
  8254.               "error: true is not 1"
  8255.              #endif
  8256.              #ifndef __bool_true_false_are_defined
  8257.               "error: __bool_true_false_are_defined is not defined"
  8258.              #endif
  8259.  
  8260.              struct s { _Bool s: 1; _Bool t; } s;
  8261.  
  8262.              char a[true == 1 ? 1 : -1];
  8263.              char b[false == 0 ? 1 : -1];
  8264.              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  8265.              char d[(bool) 0.5 == true ? 1 : -1];
  8266.              /* See body of main program for 'e'.  */
  8267.              char f[(_Bool) 0.0 == false ? 1 : -1];
  8268.              char g[true];
  8269.              char h[sizeof (_Bool)];
  8270.              char i[sizeof s.t];
  8271.              enum { j = false, k = true, l = false * true, m = true * 256 };
  8272.              /* The following fails for
  8273.                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  8274.              _Bool n[m];
  8275.              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  8276.              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  8277.              /* Catch a bug in an HP-UX C compiler.  See
  8278.                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  8279.                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  8280.               */
  8281.              _Bool q = true;
  8282.              _Bool *pq = &q;
  8283.  
  8284. int
  8285. main ()
  8286. {
  8287.  
  8288.              bool e = &s;
  8289.              *pq |= q;
  8290.              *pq |= ! q;
  8291.              /* Refer to every declared value, to avoid compiler optimizations.  */
  8292.              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  8293.                      + !m + !n + !o + !p + !q + !pq);
  8294.  
  8295.   ;
  8296.   return 0;
  8297. }
  8298. _ACEOF
  8299. if ac_fn_c_try_compile "$LINENO"; then :
  8300.   ac_cv_header_stdbool_h=yes
  8301. else
  8302.   ac_cv_header_stdbool_h=no
  8303. fi
  8304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8305. fi
  8306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  8307. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  8308.    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  8309. if test "x$ac_cv_type__Bool" = xyes; then :
  8310.  
  8311. cat >>confdefs.h <<_ACEOF
  8312. #define HAVE__BOOL 1
  8313. _ACEOF
  8314.  
  8315.  
  8316. fi
  8317.  
  8318.  
  8319. if test $ac_cv_header_stdbool_h = yes; then
  8320.  
  8321. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  8322.  
  8323. fi
  8324.  
  8325.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  8326. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  8327. if ${ac_cv_c_bigendian+:} false; then :
  8328.   $as_echo_n "(cached) " >&6
  8329. else
  8330.   ac_cv_c_bigendian=unknown
  8331.     # See if we're dealing with a universal compiler.
  8332.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8333. /* end confdefs.h.  */
  8334. #ifndef __APPLE_CC__
  8335.            not a universal capable compiler
  8336.          #endif
  8337.          typedef int dummy;
  8338.  
  8339. _ACEOF
  8340. if ac_fn_c_try_compile "$LINENO"; then :
  8341.  
  8342.     # Check for potential -arch flags.  It is not universal unless
  8343.     # there are at least two -arch flags with different values.
  8344.     ac_arch=
  8345.     ac_prev=
  8346.     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  8347.      if test -n "$ac_prev"; then
  8348.        case $ac_word in
  8349.          i?86 | x86_64 | ppc | ppc64)
  8350.            if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  8351.          ac_arch=$ac_word
  8352.            else
  8353.          ac_cv_c_bigendian=universal
  8354.          break
  8355.            fi
  8356.            ;;
  8357.        esac
  8358.        ac_prev=
  8359.      elif test "x$ac_word" = "x-arch"; then
  8360.        ac_prev=arch
  8361.      fi
  8362.        done
  8363. fi
  8364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8365.     if test $ac_cv_c_bigendian = unknown; then
  8366.       # See if sys/param.h defines the BYTE_ORDER macro.
  8367.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8368. /* end confdefs.h.  */
  8369. #include <sys/types.h>
  8370.          #include <sys/param.h>
  8371.  
  8372. int
  8373. main ()
  8374. {
  8375. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  8376.              && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  8377.              && LITTLE_ENDIAN)
  8378.           bogus endian macros
  8379.          #endif
  8380.  
  8381.   ;
  8382.   return 0;
  8383. }
  8384. _ACEOF
  8385. if ac_fn_c_try_compile "$LINENO"; then :
  8386.   # It does; now see whether it defined to BIG_ENDIAN or not.
  8387.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8388. /* end confdefs.h.  */
  8389. #include <sys/types.h>
  8390.         #include <sys/param.h>
  8391.  
  8392. int
  8393. main ()
  8394. {
  8395. #if BYTE_ORDER != BIG_ENDIAN
  8396.          not big endian
  8397.         #endif
  8398.  
  8399.   ;
  8400.   return 0;
  8401. }
  8402. _ACEOF
  8403. if ac_fn_c_try_compile "$LINENO"; then :
  8404.   ac_cv_c_bigendian=yes
  8405. else
  8406.   ac_cv_c_bigendian=no
  8407. fi
  8408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8409. fi
  8410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8411.     fi
  8412.     if test $ac_cv_c_bigendian = unknown; then
  8413.       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  8414.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8415. /* end confdefs.h.  */
  8416. #include <limits.h>
  8417.  
  8418. int
  8419. main ()
  8420. {
  8421. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  8422.           bogus endian macros
  8423.          #endif
  8424.  
  8425.   ;
  8426.   return 0;
  8427. }
  8428. _ACEOF
  8429. if ac_fn_c_try_compile "$LINENO"; then :
  8430.   # It does; now see whether it defined to _BIG_ENDIAN or not.
  8431.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8432. /* end confdefs.h.  */
  8433. #include <limits.h>
  8434.  
  8435. int
  8436. main ()
  8437. {
  8438. #ifndef _BIG_ENDIAN
  8439.          not big endian
  8440.         #endif
  8441.  
  8442.   ;
  8443.   return 0;
  8444. }
  8445. _ACEOF
  8446. if ac_fn_c_try_compile "$LINENO"; then :
  8447.   ac_cv_c_bigendian=yes
  8448. else
  8449.   ac_cv_c_bigendian=no
  8450. fi
  8451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8452. fi
  8453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8454.     fi
  8455.     if test $ac_cv_c_bigendian = unknown; then
  8456.       # Compile a test program.
  8457.       if test "$cross_compiling" = yes; then :
  8458.   # Try to guess by grepping values from an object file.
  8459.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8460. /* end confdefs.h.  */
  8461. short int ascii_mm[] =
  8462.           { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8463.         short int ascii_ii[] =
  8464.           { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8465.         int use_ascii (int i) {
  8466.           return ascii_mm[i] + ascii_ii[i];
  8467.         }
  8468.         short int ebcdic_ii[] =
  8469.           { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8470.         short int ebcdic_mm[] =
  8471.           { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8472.         int use_ebcdic (int i) {
  8473.           return ebcdic_mm[i] + ebcdic_ii[i];
  8474.         }
  8475.         extern int foo;
  8476.  
  8477. int
  8478. main ()
  8479. {
  8480. return use_ascii (foo) == use_ebcdic (foo);
  8481.   ;
  8482.   return 0;
  8483. }
  8484. _ACEOF
  8485. if ac_fn_c_try_compile "$LINENO"; then :
  8486.   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  8487.           ac_cv_c_bigendian=yes
  8488.         fi
  8489.         if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8490.           if test "$ac_cv_c_bigendian" = unknown; then
  8491.         ac_cv_c_bigendian=no
  8492.           else
  8493.         # finding both strings is unlikely to happen, but who knows?
  8494.         ac_cv_c_bigendian=unknown
  8495.           fi
  8496.         fi
  8497. fi
  8498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8499. else
  8500.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8501. /* end confdefs.h.  */
  8502. $ac_includes_default
  8503. int
  8504. main ()
  8505. {
  8506.  
  8507.          /* Are we little or big endian?  From Harbison&Steele.  */
  8508.          union
  8509.          {
  8510.            long int l;
  8511.            char c[sizeof (long int)];
  8512.          } u;
  8513.          u.l = 1;
  8514.          return u.c[sizeof (long int) - 1] == 1;
  8515.  
  8516.   ;
  8517.   return 0;
  8518. }
  8519. _ACEOF
  8520. if ac_fn_c_try_run "$LINENO"; then :
  8521.   ac_cv_c_bigendian=no
  8522. else
  8523.   ac_cv_c_bigendian=yes
  8524. fi
  8525. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8526.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  8527. fi
  8528.  
  8529.     fi
  8530. fi
  8531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  8532. $as_echo "$ac_cv_c_bigendian" >&6; }
  8533.  case $ac_cv_c_bigendian in #(
  8534.    yes)
  8535.      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  8536. ;; #(
  8537.    no)
  8538.       ;; #(
  8539.    universal)
  8540.  
  8541. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  8542.  
  8543.      ;; #(
  8544.    *)
  8545.      as_fn_error $? "unknown endianness
  8546. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  8547.  esac
  8548.  
  8549.  
  8550. # Checks for library functions.
  8551. for ac_header in vfork.h
  8552. do :
  8553.   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  8554. if test "x$ac_cv_header_vfork_h" = xyes; then :
  8555.   cat >>confdefs.h <<_ACEOF
  8556. #define HAVE_VFORK_H 1
  8557. _ACEOF
  8558.  
  8559. fi
  8560.  
  8561. done
  8562.  
  8563. for ac_func in fork vfork
  8564. do :
  8565.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8566. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  8567. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  8568.   cat >>confdefs.h <<_ACEOF
  8569. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8570. _ACEOF
  8571.  
  8572. fi
  8573. done
  8574.  
  8575. if test "x$ac_cv_func_fork" = xyes; then
  8576.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  8577. $as_echo_n "checking for working fork... " >&6; }
  8578. if ${ac_cv_func_fork_works+:} false; then :
  8579.   $as_echo_n "(cached) " >&6
  8580. else
  8581.   if test "$cross_compiling" = yes; then :
  8582.   ac_cv_func_fork_works=cross
  8583. else
  8584.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8585. /* end confdefs.h.  */
  8586. $ac_includes_default
  8587. int
  8588. main ()
  8589. {
  8590.  
  8591.       /* By Ruediger Kuhlmann. */
  8592.       return fork () < 0;
  8593.  
  8594.   ;
  8595.   return 0;
  8596. }
  8597. _ACEOF
  8598. if ac_fn_c_try_run "$LINENO"; then :
  8599.   ac_cv_func_fork_works=yes
  8600. else
  8601.   ac_cv_func_fork_works=no
  8602. fi
  8603. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8604.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  8605. fi
  8606.  
  8607. fi
  8608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  8609. $as_echo "$ac_cv_func_fork_works" >&6; }
  8610.  
  8611. else
  8612.   ac_cv_func_fork_works=$ac_cv_func_fork
  8613. fi
  8614. if test "x$ac_cv_func_fork_works" = xcross; then
  8615.   case $host in
  8616.     *-*-amigaos* | *-*-msdosdjgpp*)
  8617.       # Override, as these systems have only a dummy fork() stub
  8618.       ac_cv_func_fork_works=no
  8619.       ;;
  8620.     *)
  8621.       ac_cv_func_fork_works=yes
  8622.       ;;
  8623.   esac
  8624.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8625. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8626. fi
  8627. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8628. if test "x$ac_cv_func_vfork" = xyes; then
  8629.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  8630. $as_echo_n "checking for working vfork... " >&6; }
  8631. if ${ac_cv_func_vfork_works+:} false; then :
  8632.   $as_echo_n "(cached) " >&6
  8633. else
  8634.   if test "$cross_compiling" = yes; then :
  8635.   ac_cv_func_vfork_works=cross
  8636. else
  8637.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8638. /* end confdefs.h.  */
  8639. /* Thanks to Paul Eggert for this test.  */
  8640. $ac_includes_default
  8641. #include <sys/wait.h>
  8642. #ifdef HAVE_VFORK_H
  8643. # include <vfork.h>
  8644. #endif
  8645. /* On some sparc systems, changes by the child to local and incoming
  8646.    argument registers are propagated back to the parent.  The compiler
  8647.    is told about this with #include <vfork.h>, but some compilers
  8648.    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
  8649.   static variable whose address is put into a register that is
  8650.   clobbered by the vfork.  */
  8651. static void
  8652. #ifdef __cplusplus
  8653. sparc_address_test (int arg)
  8654. # else
  8655. sparc_address_test (arg) int arg;
  8656. #endif
  8657. {
  8658.  static pid_t child;
  8659.  if (!child) {
  8660.    child = vfork ();
  8661.    if (child < 0) {
  8662.      perror ("vfork");
  8663.      _exit(2);
  8664.    }
  8665.    if (!child) {
  8666.      arg = getpid();
  8667.      write(-1, "", 0);
  8668.      _exit (arg);
  8669.    }
  8670.  }
  8671. }
  8672.  
  8673. int
  8674. main ()
  8675. {
  8676.  pid_t parent = getpid ();
  8677.  pid_t child;
  8678.  
  8679.  sparc_address_test (0);
  8680.  
  8681.  child = vfork ();
  8682.  
  8683.  if (child == 0) {
  8684.    /* Here is another test for sparc vfork register problems.  This
  8685.       test uses lots of local variables, at least as many local
  8686.       variables as main has allocated so far including compiler
  8687.       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
  8688.       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
  8689.       reuse the register of parent for one of the local variables,
  8690.       since it will think that parent can't possibly be used any more
  8691.        in this routine.  Assigning to the local variable will thus
  8692.        munge parent in the parent process.  */
  8693.     pid_t
  8694.       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8695.       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8696.     /* Convince the compiler that p..p7 are live; otherwise, it might
  8697.        use the same hardware register for all 8 local variables.  */
  8698.     if (p != p1 || p != p2 || p != p3 || p != p4
  8699.     || p != p5 || p != p6 || p != p7)
  8700.       _exit(1);
  8701.  
  8702.     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8703.       from child file descriptors.  If the child closes a descriptor
  8704.       before it execs or exits, this munges the parent's descriptor
  8705.        as well.  Test for this by closing stdout in the child.  */
  8706.     _exit(close(fileno(stdout)) != 0);
  8707.   } else {
  8708.     int status;
  8709.     struct stat st;
  8710.  
  8711.     while (wait(&status) != child)
  8712.       ;
  8713.     return (
  8714.      /* Was there some problem with vforking?  */
  8715.      child < 0
  8716.  
  8717.      /* Did the child fail?  (This shouldn't happen.)  */
  8718.      || status
  8719.  
  8720.      /* Did the vfork/compiler bug occur?  */
  8721.      || parent != getpid()
  8722.  
  8723.      /* Did the file descriptor bug occur?  */
  8724.      || fstat(fileno(stdout), &st) != 0
  8725.      );
  8726.  }
  8727. }
  8728. _ACEOF
  8729. if ac_fn_c_try_run "$LINENO"; then :
  8730.  ac_cv_func_vfork_works=yes
  8731. else
  8732.  ac_cv_func_vfork_works=no
  8733. fi
  8734. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8735.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  8736. fi
  8737.  
  8738. fi
  8739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  8740. $as_echo "$ac_cv_func_vfork_works" >&6; }
  8741.  
  8742. fi;
  8743. if test "x$ac_cv_func_fork_works" = xcross; then
  8744.  ac_cv_func_vfork_works=$ac_cv_func_vfork
  8745.  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8746. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8747. fi
  8748.  
  8749. if test "x$ac_cv_func_vfork_works" = xyes; then
  8750.  
  8751. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  8752.  
  8753. else
  8754.  
  8755. $as_echo "#define vfork fork" >>confdefs.h
  8756.  
  8757. fi
  8758. if test "x$ac_cv_func_fork_works" = xyes; then
  8759.  
  8760. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  8761.  
  8762. fi
  8763.  
  8764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  8765. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  8766. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  8767.  $as_echo_n "(cached) " >&6
  8768. else
  8769.  rm -f conftest.sym conftest.file
  8770. echo >conftest.file
  8771. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8772.  if test "$cross_compiling" = yes; then :
  8773.  ac_cv_func_lstat_dereferences_slashed_symlink=no
  8774. else
  8775.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8776. /* end confdefs.h.  */
  8777. $ac_includes_default
  8778. int
  8779. main ()
  8780. {
  8781. struct stat sbuf;
  8782.     /* Linux will dereference the symlink and fail, as required by POSIX.
  8783.     That is better in the sense that it means we will not
  8784.     have to compile and use the lstat wrapper.  */
  8785.     return lstat ("conftest.sym/", &sbuf) == 0;
  8786.  ;
  8787.  return 0;
  8788. }
  8789. _ACEOF
  8790. if ac_fn_c_try_run "$LINENO"; then :
  8791.  ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8792. else
  8793.  ac_cv_func_lstat_dereferences_slashed_symlink=no
  8794. fi
  8795. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8796.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  8797. fi
  8798.  
  8799. else
  8800.  # If the `ln -s' command failed, then we probably don't even
  8801.  # have an lstat function.
  8802.  ac_cv_func_lstat_dereferences_slashed_symlink=no
  8803. fi
  8804. rm -f conftest.sym conftest.file
  8805.  
  8806. fi
  8807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8808. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  8809.  
  8810. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8811.  
  8812. cat >>confdefs.h <<_ACEOF
  8813. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8814. _ACEOF
  8815.  
  8816.  
  8817. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  8818.  case " $LIBOBJS " in
  8819.  *" lstat.$ac_objext "* ) ;;
  8820.  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  8821. ;;
  8822. esac
  8823.  
  8824. fi
  8825.  
  8826. 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
  8827. do :
  8828.  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8829. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  8830. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  8831.  cat >>confdefs.h <<_ACEOF
  8832. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8833. _ACEOF
  8834.  
  8835. fi
  8836. done
  8837.  
  8838.  
  8839. #
  8840. # Check for struct ip_mreqn
  8841. #
  8842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreqn" >&5
  8843. $as_echo_n "checking for struct ip_mreqn... " >&6; }
  8844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8845. /* end confdefs.h.  */
  8846. #include <netinet/in.h>
  8847. int
  8848. main ()
  8849. {
  8850.  
  8851.    struct ip_mreqn mreq;
  8852.    mreq.imr_address.s_addr = 0;
  8853.  
  8854.  ;
  8855.  return 0;
  8856. }
  8857. _ACEOF
  8858. if ac_fn_c_try_compile "$LINENO"; then :
  8859.  
  8860.    # Yes, we have it...
  8861.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8862. $as_echo "yes" >&6; }
  8863.  
  8864. $as_echo "#define HAVE_STRUCT_IP_MREQN /**/" >>confdefs.h
  8865.  
  8866.  
  8867. else
  8868.  
  8869.    # We'll just have to try and use struct ip_mreq
  8870.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8871. $as_echo "no" >&6; }
  8872.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
  8873. $as_echo_n "checking for struct ip_mreq... " >&6; }
  8874.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8875. /* end confdefs.h.  */
  8876. #include <netinet/in.h>
  8877. int
  8878. main ()
  8879. {
  8880.  
  8881.         struct ip_mreq mreq;
  8882.         mreq.imr_interface.s_addr = 0;
  8883.  
  8884.   ;
  8885.   return 0;
  8886. }
  8887. _ACEOF
  8888. if ac_fn_c_try_compile "$LINENO"; then :
  8889.  
  8890.         # Yes, we have it...
  8891.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8892. $as_echo "yes" >&6; }
  8893.  
  8894. $as_echo "#define HAVE_STRUCT_IP_MREQ /**/" >>confdefs.h
  8895.  
  8896.  
  8897. else
  8898.  
  8899.         # No multicast support
  8900.         as_fn_error $? "No multicast support" "$LINENO" 5
  8901.  
  8902. fi
  8903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8904.  
  8905. fi
  8906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8907.  
  8908. ################################################################################################################
  8909. # Special include directories
  8910. case $host in
  8911.     *-*-darwin*)
  8912.         DARWIN_OS=1
  8913.         SEARCH_DIR="/opt/local"
  8914.         INCLUDE_DIR="$SEARCH_DIR/include"
  8915.         ;;
  8916.     *-*-solaris*)
  8917.  
  8918. $as_echo "#define SOLARIS 1" >>confdefs.h
  8919.  
  8920.         ;;
  8921.     *-*-cygwin*)
  8922.         CYGWIN_OS=1
  8923.         ;;
  8924.     *-*-freebsd*)
  8925.         FREEBSD_OS=1
  8926.         ;;
  8927.     *-*-openbsd*)
  8928.         OPENBSD_OS=1
  8929.         ;;
  8930.     *-*-linux*)
  8931.         if test -f /etc/redhat-release; then
  8932.             INCLUDE_DIR="/usr/include/ffmpeg"
  8933.         fi
  8934.         ;;
  8935. esac
  8936.  
  8937. for ac_header in syscall.h sys/syscall.h mach/mach_time.h
  8938. do :
  8939.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8940. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8941. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8942.   cat >>confdefs.h <<_ACEOF
  8943. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8944. _ACEOF
  8945.  
  8946. fi
  8947.  
  8948. done
  8949.  
  8950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __NR_clock_gettime syscall" >&5
  8951. $as_echo_n "checking for __NR_clock_gettime syscall... " >&6; }
  8952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8953. /* end confdefs.h.  */
  8954.  
  8955.             #include <asm/unistd.h>
  8956.  
  8957. int
  8958. main ()
  8959. {
  8960.  
  8961.             #ifndef __NR_clock_gettime
  8962.             #error
  8963.             #endif
  8964.  
  8965.  
  8966.   ;
  8967.   return 0;
  8968. }
  8969. _ACEOF
  8970. if ac_fn_c_try_compile "$LINENO"; then :
  8971.  
  8972.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8973. $as_echo "yes" >&6; }
  8974.  
  8975. $as_echo "#define HAVE_CLOCK_GETTIME_SYSCALL 1" >>confdefs.h
  8976.  
  8977.  
  8978. else
  8979.  
  8980.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8981. $as_echo "no" >&6; }
  8982.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  8983. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  8984. if ${ac_cv_search_clock_gettime+:} false; then :
  8985.   $as_echo_n "(cached) " >&6
  8986. else
  8987.   ac_func_search_save_LIBS=$LIBS
  8988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8989. /* end confdefs.h.  */
  8990.  
  8991. /* Override any GCC internal prototype to avoid an error.
  8992.    Use char because int might match the return type of a GCC
  8993.    builtin and then its argument prototype would still apply.  */
  8994. #ifdef __cplusplus
  8995. extern "C"
  8996. #endif
  8997. char clock_gettime ();
  8998. int
  8999. main ()
  9000. {
  9001. return clock_gettime ();
  9002.   ;
  9003.   return 0;
  9004. }
  9005. _ACEOF
  9006. for ac_lib in '' rt; do
  9007.   if test -z "$ac_lib"; then
  9008.     ac_res="none required"
  9009.   else
  9010.     ac_res=-l$ac_lib
  9011.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  9012.   fi
  9013.   if ac_fn_c_try_link "$LINENO"; then :
  9014.   ac_cv_search_clock_gettime=$ac_res
  9015. fi
  9016. rm -f core conftest.err conftest.$ac_objext \
  9017.     conftest$ac_exeext
  9018.   if ${ac_cv_search_clock_gettime+:} false; then :
  9019.   break
  9020. fi
  9021. done
  9022. if ${ac_cv_search_clock_gettime+:} false; then :
  9023.  
  9024. else
  9025.   ac_cv_search_clock_gettime=no
  9026. fi
  9027. rm conftest.$ac_ext
  9028. LIBS=$ac_func_search_save_LIBS
  9029. fi
  9030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  9031. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  9032. ac_res=$ac_cv_search_clock_gettime
  9033. if test "$ac_res" != no; then :
  9034.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9035.  
  9036. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  9037.  
  9038. fi
  9039.  
  9040.  
  9041. fi
  9042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9043.  
  9044. ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "#include <sys/socket.h>
  9045. "
  9046. if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
  9047.  
  9048. $as_echo "#define HAVE_NETLINK 1" >>confdefs.h
  9049.  
  9050. fi
  9051.  
  9052.  
  9053.  
  9054. ################################################################################################################
  9055. ### Library checks
  9056.  
  9057. CPPFLAGS_SAVE="$CPPFLAGS"
  9058. for dir in "" /usr/local/bin $INCLUDE_DIR; do
  9059.     if test -n "$dir"; then
  9060.         CPPFLAGS="$CPPFLAGS_SAVE -I$dir"
  9061.     fi
  9062.     for ac_header in libavutil/avutil.h ffmpeg/libavutil/avutil.h libav/libavutil/avutil.h avutil.h ffmpeg/avutil.h libav/avutil.h
  9063. do :
  9064.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9065. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9066. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9067.   cat >>confdefs.h <<_ACEOF
  9068. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9069. _ACEOF
  9070.  HAVE_LIBAVUTIL=1
  9071. fi
  9072.  
  9073. done
  9074.  
  9075.     if test -z "$HAVE_LIBAVUTIL"; then
  9076.         unset ac_cv_header_avutil_h
  9077.         unset ac_cv_header_libavutil_avutil_h
  9078.         unset ac_cv_header_ffmpeg_avutil_h
  9079.         unset ac_cv_header_ffmpeg_libavutil_avutil_h
  9080.         unset ac_cv_header_libav_avutil_h
  9081.         unset ac_cv_header_libav_libavutil_avutil_h
  9082.         continue
  9083.     fi
  9084.     break
  9085. done
  9086. if test -z "$HAVE_LIBAVUTIL"; then
  9087.     as_fn_error $? "libavutil headers not found or not usable" "$LINENO" 5
  9088. fi
  9089.  
  9090. CPPFLAGS_SAVE="$CPPFLAGS"
  9091. for dir in "" /usr/local/bin $INCLUDE_DIR; do
  9092.     if test -n "$dir"; then
  9093.         CPPFLAGS="$CPPFLAGS_SAVE -I$dir"
  9094.     fi
  9095.     for ac_header in libavcodec/avcodec.h ffmpeg/libavcodec/avcodec.h libav/libavcodec/avcodec.h avcodec.h ffmpeg/avcodec.h libav/avcodec.h
  9096. do :
  9097.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9098. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9099. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9100.   cat >>confdefs.h <<_ACEOF
  9101. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9102. _ACEOF
  9103.  HAVE_LIBAVCODEC=1
  9104. fi
  9105.  
  9106. done
  9107.  
  9108.     if test -z "$HAVE_LIBAVCODEC"; then
  9109.         unset ac_cv_header_avcodec_h
  9110.         unset ac_cv_header_libavcodec_avcodec_h
  9111.         unset ac_cv_header_ffmpeg_avcodec_h
  9112.         unset ac_cv_header_ffmpeg_libavcodec_avcodec_h
  9113.         unset ac_cv_header_libav_avcodec_h
  9114.         unset ac_cv_header_libav_libavcodec_avcodec_h
  9115.         continue
  9116.     fi
  9117.     break
  9118. done
  9119. if test -z "$HAVE_LIBAVCODEC"; then
  9120.     as_fn_error $? "libavcodec headers not found or not usable" "$LINENO" 5
  9121. fi
  9122.  
  9123. CPPFLAGS_SAVE="$CPPFLAGS"
  9124. for dir in "" /usr/local/bin $INCLUDE_DIR; do
  9125.     if test -n "$dir"; then
  9126.         CPPFLAGS="$CPPFLAGS_SAVE -I$dir"
  9127.     fi
  9128.     for ac_header in libavformat/avformat.h ffmpeg/libavformat/avformat.h libav/libavformat/avformat.h avformat.h ffmpeg/avformat.h libav/avformat.h
  9129. do :
  9130.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9131. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9132. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9133.   cat >>confdefs.h <<_ACEOF
  9134. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9135. _ACEOF
  9136.  HAVE_LIBAVFORMAT=1
  9137. fi
  9138.  
  9139. done
  9140.  
  9141.     if test -z "$HAVE_LIBAVFORMAT"; then
  9142.         unset ac_cv_header_avformat_h
  9143.         unset ac_cv_header_libavformat_avformat_h
  9144.         unset ac_cv_header_ffmpeg_avformat_h
  9145.         unset ac_cv_header_ffmpeg_libavformat_avformat_h
  9146.         unset ac_cv_header_libav_avformat_h
  9147.         unset ac_cv_header_libav_libavformat_avformat_h
  9148.         continue
  9149.     fi
  9150.     break
  9151. done
  9152. if test -z "$HAVE_LIBAVFORMAT"; then
  9153.     as_fn_error $? "libavformat headers not found or not usable" "$LINENO" 5
  9154. fi
  9155.  
  9156. CPPFLAGS_SAVE="$CPPFLAGS"
  9157. for dir in "" /usr/local/bin $INCLUDE_DIR; do
  9158.     if test -n "$dir"; then
  9159.         CPPFLAGS="$CPPFLAGS -I$dir"
  9160.     fi
  9161.     for ac_header in jpeglib.h sqlite3.h libexif/exif-loader.h id3tag.h ogg/ogg.h vorbis/codec.h FLAC/metadata.h
  9162. do :
  9163.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9164. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9165. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9166.   cat >>confdefs.h <<_ACEOF
  9167. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9168. _ACEOF
  9169.  
  9170. else
  9171.   unset $as_ac_Header; break
  9172. fi
  9173.  
  9174. done
  9175.  
  9176.     if test x"$ac_cv_header_jpeglib_h" != x"yes"; then
  9177.         CPPFLAGS="$CPPFLAGS_SAVE"
  9178.         continue
  9179.     elif test x"$ac_cv_header_sqlite3_h" != x"yes"; then
  9180.         CPPFLAGS="$CPPFLAGS_SAVE"
  9181.         continue
  9182.     elif test x"$ac_cv_header_libexif_exif_loader_h" != x"yes"; then
  9183.         CPPFLAGS="$CPPFLAGS_SAVE"
  9184.         continue
  9185.     elif test x"$ac_cv_header_id3tag_h" != x"yes"; then
  9186.         CPPFLAGS="$CPPFLAGS_SAVE"
  9187.         continue
  9188.     elif test x"$ac_cv_header_ogg_ogg_h" != x"yes"; then
  9189.         CPPFLAGS="$CPPFLAGS_SAVE"
  9190.         continue
  9191.     elif test x"$ac_cv_header_vorbis_codec_h" != x"yes"; then
  9192.         CPPFLAGS="$CPPFLAGS_SAVE"
  9193.         continue
  9194.     elif test x"$ac_cv_header_FLAC_metadata_h" != x"yes"; then
  9195.         CPPFLAGS="$CPPFLAGS_SAVE"
  9196.         continue
  9197.     else
  9198.         break;
  9199.     fi
  9200. done
  9201. test x"$ac_cv_header_jpeglib_h" != x"yes" && as_fn_error $? "libjpeg headers not found or not usable" "$LINENO" 5
  9202. test x"$ac_cv_header_sqlite3_h" != x"yes" && as_fn_error $? "libsqlite3 headers not found or not usable" "$LINENO" 5
  9203. test x"$ac_cv_header_libexif_exif_loader_h" != x"yes" && as_fn_error $? "libexif headers not found or not usable" "$LINENO" 5
  9204. test x"$ac_cv_header_id3tag_h" != x"yes" && as_fn_error $? "libid3tag headers not found or not usable" "$LINENO" 5
  9205. test x"$ac_cv_header_ogg_ogg_h" != x"yes" && as_fn_error $? "libogg headers not found or not usable" "$LINENO" 5
  9206. test x"$ac_cv_header_vorbis_codec_h" != x"yes" && as_fn_error $? "libvorbis headers not found or not usable" "$LINENO" 5
  9207. test x"$ac_cv_header_FLAC_metadata_h" != x"yes" && as_fn_error $? "libFLAC headers not found or not usable" "$LINENO" 5
  9208.  
  9209. CFLAGS_SAVE="$CFLAGS"
  9210. CFLAGS="$CFLAGS -Wall -Werror"
  9211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the daemon() libc function" >&5
  9212. $as_echo_n "checking if we should use the daemon() libc function... " >&6; }
  9213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9214. /* end confdefs.h.  */
  9215.  
  9216.              #include <stdlib.h>
  9217.              #include <unistd.h>
  9218.  
  9219. int
  9220. main ()
  9221. {
  9222.  
  9223.             return daemon(0, 0);
  9224.  
  9225.  
  9226.   ;
  9227.   return 0;
  9228. }
  9229. _ACEOF
  9230. if ac_fn_c_try_compile "$LINENO"; then :
  9231.  
  9232.  
  9233. $as_echo "#define USE_DAEMON 1" >>confdefs.h
  9234.  
  9235.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9236. $as_echo "yes" >&6; }
  9237.  
  9238. else
  9239.  
  9240.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9241. $as_echo "no" >&6; }
  9242.  
  9243. fi
  9244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9245.  
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scandir declaration requires const char cast" >&5
  9247. $as_echo_n "checking if scandir declaration requires const char cast... " >&6; }
  9248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9249. /* end confdefs.h.  */
  9250.  
  9251.              #include <stdlib.h>
  9252.              #include <sys/types.h>
  9253.              #include <dirent.h>
  9254.  
  9255. int
  9256. main ()
  9257. {
  9258.  
  9259.             int filter(struct dirent *d);
  9260.             struct dirent **ptr = NULL;
  9261.             char *name = NULL;
  9262.             (void)scandir(name, &ptr, filter, alphasort);
  9263.  
  9264.  
  9265.   ;
  9266.   return 0;
  9267. }
  9268. _ACEOF
  9269. if ac_fn_c_try_compile "$LINENO"; then :
  9270.  
  9271.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9272. $as_echo "no" >&6; }
  9273.  
  9274. else
  9275.  
  9276.  
  9277. $as_echo "#define SCANDIR_CONST 1" >>confdefs.h
  9278.  
  9279.  
  9280.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9281. $as_echo "yes" >&6; }
  9282.  
  9283. fi
  9284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9285.  
  9286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linux sendfile support" >&5
  9287. $as_echo_n "checking for linux sendfile support... " >&6; }
  9288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9289. /* end confdefs.h.  */
  9290.  
  9291.              #include <sys/types.h>
  9292.              #include <sys/sendfile.h>
  9293.  
  9294. int
  9295. main ()
  9296. {
  9297.  
  9298.              int tofd = 0, fromfd = 0;
  9299.              off_t offset;
  9300.              size_t total = 0;
  9301.              ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
  9302.              return nwritten;
  9303.  
  9304.  
  9305.   ;
  9306.   return 0;
  9307. }
  9308. _ACEOF
  9309. if ac_fn_c_try_compile "$LINENO"; then :
  9310.  
  9311.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9312. $as_echo "yes" >&6; }
  9313.  
  9314. $as_echo "#define HAVE_LINUX_SENDFILE_API 1" >>confdefs.h
  9315.  
  9316.  
  9317. else
  9318.  
  9319.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9320. $as_echo "no" >&6; }
  9321.  
  9322. fi
  9323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9324.  
  9325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for darwin sendfile support" >&5
  9326. $as_echo_n "checking for darwin sendfile support... " >&6; }
  9327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9328. /* end confdefs.h.  */
  9329.  
  9330.              #include <stdlib.h>
  9331.              #include <sys/types.h>
  9332.              #include <sys/socket.h>
  9333.              #include <sys/uio.h>
  9334.  
  9335. int
  9336. main ()
  9337. {
  9338.  
  9339.              int fd = 0, s = 0;
  9340.              off_t offset = 0, len;
  9341.              struct sf_hdtr *hdtr = NULL;
  9342.              int flags = 0;
  9343.              int ret;
  9344.              ret = sendfile(fd, s, offset, &len, hdtr, flags);
  9345.              return ret;
  9346.  
  9347.  
  9348.   ;
  9349.   return 0;
  9350. }
  9351. _ACEOF
  9352. if ac_fn_c_try_compile "$LINENO"; then :
  9353.  
  9354.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9355. $as_echo "yes" >&6; }
  9356.  
  9357. $as_echo "#define HAVE_DARWIN_SENDFILE_API 1" >>confdefs.h
  9358.  
  9359.  
  9360. else
  9361.  
  9362.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9363. $as_echo "no" >&6; }
  9364.  
  9365. fi
  9366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9367.  
  9368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freebsd sendfile support" >&5
  9369. $as_echo_n "checking for freebsd sendfile support... " >&6; }
  9370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9371. /* end confdefs.h.  */
  9372.  
  9373.              #include <stdlib.h>
  9374.              #include <sys/types.h>
  9375.              #include <sys/socket.h>
  9376.              #include <sys/uio.h>
  9377.  
  9378. int
  9379. main ()
  9380. {
  9381.  
  9382.              int fromfd=0, tofd=0, ret, total=0;
  9383.              off_t offset=0, nwritten;
  9384.              struct sf_hdtr hdr;
  9385.              struct iovec hdtrl;
  9386.              hdr.headers = &hdtrl;
  9387.              hdr.hdr_cnt = 1;
  9388.              hdr.trailers = NULL;
  9389.              hdr.trl_cnt = 0;
  9390.              hdtrl.iov_base = NULL;
  9391.              hdtrl.iov_len = 0;
  9392.              ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
  9393.  
  9394.  
  9395.   ;
  9396.   return 0;
  9397. }
  9398. _ACEOF
  9399. if ac_fn_c_try_compile "$LINENO"; then :
  9400.  
  9401.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9402. $as_echo "yes" >&6; }
  9403.  
  9404. $as_echo "#define HAVE_FREEBSD_SENDFILE_API 1" >>confdefs.h
  9405.  
  9406.  
  9407. else
  9408.  
  9409.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9410. $as_echo "no" >&6; }
  9411.  
  9412. fi
  9413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9414. CFLAGS="$CFLAGS_SAVE"
  9415.  
  9416. LDFLAGS_SAVE="$LDFLAGS"
  9417. for dir in "" /usr/local/bin $SEARCH_DIR; do
  9418.     if test -n "$dir"; then
  9419.         LDFLAGS="$LDFLAGS -L$dir/lib"
  9420.     fi
  9421.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5
  9422. $as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; }
  9423. if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then :
  9424.   $as_echo_n "(cached) " >&6
  9425. else
  9426.   ac_check_lib_save_LIBS=$LIBS
  9427. LIBS="-ljpeg  $LIBS"
  9428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9429. /* end confdefs.h.  */
  9430.  
  9431. /* Override any GCC internal prototype to avoid an error.
  9432.    Use char because int might match the return type of a GCC
  9433.    builtin and then its argument prototype would still apply.  */
  9434. #ifdef __cplusplus
  9435. extern "C"
  9436. #endif
  9437. char jpeg_set_defaults ();
  9438. int
  9439. main ()
  9440. {
  9441. return jpeg_set_defaults ();
  9442.   ;
  9443.   return 0;
  9444. }
  9445. _ACEOF
  9446. if ac_fn_c_try_link "$LINENO"; then :
  9447.   ac_cv_lib_jpeg_jpeg_set_defaults=yes
  9448. else
  9449.   ac_cv_lib_jpeg_jpeg_set_defaults=no
  9450. fi
  9451. rm -f core conftest.err conftest.$ac_objext \
  9452.     conftest$ac_exeext conftest.$ac_ext
  9453. LIBS=$ac_check_lib_save_LIBS
  9454. fi
  9455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5
  9456. $as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; }
  9457. if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then :
  9458.   LIBJPEG_LIBS="-ljpeg"
  9459. else
  9460.   unset ac_cv_lib_jpeg_jpeg_set_defaults; LDFLAGS="$LDFLAGS_SAVE"; continue
  9461. fi
  9462.  
  9463.     break
  9464. done
  9465. test x"$ac_cv_lib_jpeg_jpeg_set_defaults" = x"yes" || as_fn_error $? "Could not find libjpeg" "$LINENO" 5
  9466.  
  9467.  
  9468. LDFLAGS_SAVE="$LDFLAGS"
  9469. for dir in "" /usr/local/bin $SEARCH_DIR; do
  9470.     if test -n "$dir"; then
  9471.         LDFLAGS="$LDFLAGS -L$dir/lib"
  9472.     fi
  9473.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exif_data_new_from_file in -lexif" >&5
  9474. $as_echo_n "checking for exif_data_new_from_file in -lexif... " >&6; }
  9475. if ${ac_cv_lib_exif_exif_data_new_from_file+:} false; then :
  9476.   $as_echo_n "(cached) " >&6
  9477. else
  9478.   ac_check_lib_save_LIBS=$LIBS
  9479. LIBS="-lexif  $LIBS"
  9480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9481. /* end confdefs.h.  */
  9482.  
  9483. /* Override any GCC internal prototype to avoid an error.
  9484.    Use char because int might match the return type of a GCC
  9485.    builtin and then its argument prototype would still apply.  */
  9486. #ifdef __cplusplus
  9487. extern "C"
  9488. #endif
  9489. char exif_data_new_from_file ();
  9490. int
  9491. main ()
  9492. {
  9493. return exif_data_new_from_file ();
  9494.   ;
  9495.   return 0;
  9496. }
  9497. _ACEOF
  9498. if ac_fn_c_try_link "$LINENO"; then :
  9499.   ac_cv_lib_exif_exif_data_new_from_file=yes
  9500. else
  9501.   ac_cv_lib_exif_exif_data_new_from_file=no
  9502. fi
  9503. rm -f core conftest.err conftest.$ac_objext \
  9504.     conftest$ac_exeext conftest.$ac_ext
  9505. LIBS=$ac_check_lib_save_LIBS
  9506. fi
  9507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_exif_exif_data_new_from_file" >&5
  9508. $as_echo "$ac_cv_lib_exif_exif_data_new_from_file" >&6; }
  9509. if test "x$ac_cv_lib_exif_exif_data_new_from_file" = xyes; then :
  9510.   LIBEXIF_LIBS="-lexif"
  9511. else
  9512.   unset ac_cv_lib_exif_exif_data_new_from_file; LDFLAGS="$LDFLAGS_SAVE"; continue
  9513. fi
  9514.  
  9515.     break
  9516. done
  9517. test x"$ac_cv_lib_jpeg_jpeg_set_defaults" = x"yes" || as_fn_error $? "Could not find libexif" "$LINENO" 5
  9518.  
  9519.  
  9520. LDFLAGS_SAVE="$LDFLAGS"
  9521. for dir in "" /usr/local/bin $SEARCH_DIR; do
  9522.     if test -n "$dir"; then
  9523.         LDFLAGS="$LDFLAGS -L$dir/lib"
  9524.     fi
  9525.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3_file_open in -lid3tag" >&5
  9526. $as_echo_n "checking for id3_file_open in -lid3tag... " >&6; }
  9527. if ${ac_cv_lib_id3tag_id3_file_open+:} false; then :
  9528.   $as_echo_n "(cached) " >&6
  9529. else
  9530.   ac_check_lib_save_LIBS=$LIBS
  9531. LIBS="-lid3tag  $LIBS"
  9532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9533. /* end confdefs.h.  */
  9534.  
  9535. /* Override any GCC internal prototype to avoid an error.
  9536.    Use char because int might match the return type of a GCC
  9537.    builtin and then its argument prototype would still apply.  */
  9538. #ifdef __cplusplus
  9539. extern "C"
  9540. #endif
  9541. char id3_file_open ();
  9542. int
  9543. main ()
  9544. {
  9545. return id3_file_open ();
  9546.   ;
  9547.   return 0;
  9548. }
  9549. _ACEOF
  9550. if ac_fn_c_try_link "$LINENO"; then :
  9551.   ac_cv_lib_id3tag_id3_file_open=yes
  9552. else
  9553.   ac_cv_lib_id3tag_id3_file_open=no
  9554. fi
  9555. rm -f core conftest.err conftest.$ac_objext \
  9556.     conftest$ac_exeext conftest.$ac_ext
  9557. LIBS=$ac_check_lib_save_LIBS
  9558. fi
  9559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_id3tag_id3_file_open" >&5
  9560. $as_echo "$ac_cv_lib_id3tag_id3_file_open" >&6; }
  9561. if test "x$ac_cv_lib_id3tag_id3_file_open" = xyes; then :
  9562.   LIBID3TAG_LIBS="-lid3tag"
  9563. else
  9564.   unset ac_cv_lib_id3tag_id3_file_open; LDFLAGS="$LDFLAGS_SAVE"; continue
  9565. fi
  9566.  
  9567.     break
  9568. done
  9569. test x"$ac_cv_lib_id3tag_id3_file_open" = x"yes" || as_fn_error $? "Could not find libid3tag" "$LINENO" 5
  9570.  
  9571.  
  9572. LDFLAGS_SAVE="$LDFLAGS"
  9573. for dir in "" /usr/local/bin $SEARCH_DIR; do
  9574.     if test -n "$dir"; then
  9575.         LDFLAGS="$LDFLAGS -L$dir/lib"
  9576.     fi
  9577.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  9578. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  9579. if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
  9580.   $as_echo_n "(cached) " >&6
  9581. else
  9582.   ac_check_lib_save_LIBS=$LIBS
  9583. LIBS="-lsqlite3  $LIBS"
  9584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9585. /* end confdefs.h.  */
  9586.  
  9587. /* Override any GCC internal prototype to avoid an error.
  9588.    Use char because int might match the return type of a GCC
  9589.    builtin and then its argument prototype would still apply.  */
  9590. #ifdef __cplusplus
  9591. extern "C"
  9592. #endif
  9593. char sqlite3_open ();
  9594. int
  9595. main ()
  9596. {
  9597. return sqlite3_open ();
  9598.   ;
  9599.   return 0;
  9600. }
  9601. _ACEOF
  9602. if ac_fn_c_try_link "$LINENO"; then :
  9603.   ac_cv_lib_sqlite3_sqlite3_open=yes
  9604. else
  9605.   ac_cv_lib_sqlite3_sqlite3_open=no
  9606. fi
  9607. rm -f core conftest.err conftest.$ac_objext \
  9608.     conftest$ac_exeext conftest.$ac_ext
  9609. LIBS=$ac_check_lib_save_LIBS
  9610. fi
  9611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  9612. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  9613. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
  9614.   LIBSQLITE3_LIBS="-lsqlite3"
  9615. else
  9616.   unset ac_cv_lib_sqlite3_sqlite3_open; LDFLAGS="$LDFLAGS_SAVE"; continue
  9617. fi
  9618.  
  9619.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_malloc in -lsqlite3" >&5
  9620. $as_echo_n "checking for sqlite3_malloc in -lsqlite3... " >&6; }
  9621. if ${ac_cv_lib_sqlite3_sqlite3_malloc+:} false; then :
  9622.   $as_echo_n "(cached) " >&6
  9623. else
  9624.   ac_check_lib_save_LIBS=$LIBS
  9625. LIBS="-lsqlite3  $LIBS"
  9626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9627. /* end confdefs.h.  */
  9628.  
  9629. /* Override any GCC internal prototype to avoid an error.
  9630.    Use char because int might match the return type of a GCC
  9631.    builtin and then its argument prototype would still apply.  */
  9632. #ifdef __cplusplus
  9633. extern "C"
  9634. #endif
  9635. char sqlite3_malloc ();
  9636. int
  9637. main ()
  9638. {
  9639. return sqlite3_malloc ();
  9640.   ;
  9641.   return 0;
  9642. }
  9643. _ACEOF
  9644. if ac_fn_c_try_link "$LINENO"; then :
  9645.   ac_cv_lib_sqlite3_sqlite3_malloc=yes
  9646. else
  9647.   ac_cv_lib_sqlite3_sqlite3_malloc=no
  9648. fi
  9649. rm -f core conftest.err conftest.$ac_objext \
  9650.     conftest$ac_exeext conftest.$ac_ext
  9651. LIBS=$ac_check_lib_save_LIBS
  9652. fi
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_malloc" >&5
  9654. $as_echo "$ac_cv_lib_sqlite3_sqlite3_malloc" >&6; }
  9655. if test "x$ac_cv_lib_sqlite3_sqlite3_malloc" = xyes; then :
  9656.  
  9657. $as_echo "#define HAVE_SQLITE3_MALLOC 1" >>confdefs.h
  9658.  
  9659. fi
  9660.  
  9661.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5
  9662. $as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; }
  9663. if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false; then :
  9664.   $as_echo_n "(cached) " >&6
  9665. else
  9666.   ac_check_lib_save_LIBS=$LIBS
  9667. LIBS="-lsqlite3  $LIBS"
  9668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9669. /* end confdefs.h.  */
  9670.  
  9671. /* Override any GCC internal prototype to avoid an error.
  9672.    Use char because int might match the return type of a GCC
  9673.    builtin and then its argument prototype would still apply.  */
  9674. #ifdef __cplusplus
  9675. extern "C"
  9676. #endif
  9677. char sqlite3_prepare_v2 ();
  9678. int
  9679. main ()
  9680. {
  9681. return sqlite3_prepare_v2 ();
  9682.   ;
  9683.   return 0;
  9684. }
  9685. _ACEOF
  9686. if ac_fn_c_try_link "$LINENO"; then :
  9687.   ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes
  9688. else
  9689.   ac_cv_lib_sqlite3_sqlite3_prepare_v2=no
  9690. fi
  9691. rm -f core conftest.err conftest.$ac_objext \
  9692.     conftest$ac_exeext conftest.$ac_ext
  9693. LIBS=$ac_check_lib_save_LIBS
  9694. fi
  9695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5
  9696. $as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; }
  9697. if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes; then :
  9698.  
  9699. $as_echo "#define HAVE_SQLITE3_PREPARE_V2 1" >>confdefs.h
  9700.  
  9701. fi
  9702.  
  9703.     break
  9704. done
  9705. test x"$ac_cv_lib_sqlite3_sqlite3_open" = x"yes" || as_fn_error $? "Could not find libsqlite3" "$LINENO" 5
  9706.  
  9707.  
  9708. LDFLAGS_SAVE="$LDFLAGS"
  9709. for dir in "" /usr/local/bin $SEARCH_DIR; do
  9710.     if test -n "$dir"; then
  9711.         LDFLAGS="$LDFLAGS -L$dir/lib"
  9712.     fi
  9713.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_open_input_file in -lavformat" >&5
  9714. $as_echo_n "checking for av_open_input_file in -lavformat... " >&6; }
  9715. if ${ac_cv_lib_avformat_av_open_input_file+:} false; then :
  9716.   $as_echo_n "(cached) " >&6
  9717. else
  9718.   ac_check_lib_save_LIBS=$LIBS
  9719. LIBS="-lavformat  $LIBS"
  9720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9721. /* end confdefs.h.  */
  9722.  
  9723. /* Override any GCC internal prototype to avoid an error.
  9724.    Use char because int might match the return type of a GCC
  9725.    builtin and then its argument prototype would still apply.  */
  9726. #ifdef __cplusplus
  9727. extern "C"
  9728. #endif
  9729. char av_open_input_file ();
  9730. int
  9731. main ()
  9732. {
  9733. return av_open_input_file ();
  9734.   ;
  9735.   return 0;
  9736. }
  9737. _ACEOF
  9738. if ac_fn_c_try_link "$LINENO"; then :
  9739.   ac_cv_lib_avformat_av_open_input_file=yes
  9740. else
  9741.   ac_cv_lib_avformat_av_open_input_file=no
  9742. fi
  9743. rm -f core conftest.err conftest.$ac_objext \
  9744.     conftest$ac_exeext conftest.$ac_ext
  9745. LIBS=$ac_check_lib_save_LIBS
  9746. fi
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_open_input_file" >&5
  9748. $as_echo "$ac_cv_lib_avformat_av_open_input_file" >&6; }
  9749. if test "x$ac_cv_lib_avformat_av_open_input_file" = xyes; then :
  9750.   LIBAVFORMAT_LIBS="-lavformat"
  9751. else
  9752.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avformat_open_input in -lavformat" >&5
  9753. $as_echo_n "checking for avformat_open_input in -lavformat... " >&6; }
  9754. if ${ac_cv_lib_avformat_avformat_open_input+:} false; then :
  9755.   $as_echo_n "(cached) " >&6
  9756. else
  9757.   ac_check_lib_save_LIBS=$LIBS
  9758. LIBS="-lavformat  $LIBS"
  9759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9760. /* end confdefs.h.  */
  9761.  
  9762. /* Override any GCC internal prototype to avoid an error.
  9763.    Use char because int might match the return type of a GCC
  9764.    builtin and then its argument prototype would still apply.  */
  9765. #ifdef __cplusplus
  9766. extern "C"
  9767. #endif
  9768. char avformat_open_input ();
  9769. int
  9770. main ()
  9771. {
  9772. return avformat_open_input ();
  9773.   ;
  9774.   return 0;
  9775. }
  9776. _ACEOF
  9777. if ac_fn_c_try_link "$LINENO"; then :
  9778.   ac_cv_lib_avformat_avformat_open_input=yes
  9779. else
  9780.   ac_cv_lib_avformat_avformat_open_input=no
  9781. fi
  9782. rm -f core conftest.err conftest.$ac_objext \
  9783.     conftest$ac_exeext conftest.$ac_ext
  9784. LIBS=$ac_check_lib_save_LIBS
  9785. fi
  9786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_avformat_open_input" >&5
  9787. $as_echo "$ac_cv_lib_avformat_avformat_open_input" >&6; }
  9788. if test "x$ac_cv_lib_avformat_avformat_open_input" = xyes; then :
  9789.   LIBAVFORMAT_LIBS="-lavformat"
  9790. else
  9791.   unset ac_cv_lib_avformat_av_open_input_file; unset ac_cv_lib_avformat_avformat_open_input; LDFLAGS="$LDFLAGS_SAVE"; continue
  9792. fi
  9793.  
  9794. fi
  9795.  
  9796.     break
  9797. done
  9798. if test x"$ac_cv_lib_avformat_av_open_input_file" != x"yes" &&
  9799.    test x"$ac_cv_lib_avformat_avformat_open_input" != x"yes"; then
  9800.    as_fn_error $? "Could not find libavformat - part of ffmpeg" "$LINENO" 5
  9801. fi
  9802.  
  9803.  
  9804. as_ac_Lib=`$as_echo "ac_cv_lib_avutil ''_av_rescale_q" | $as_tr_sh`
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_rescale_q in -lavutil " >&5
  9806. $as_echo_n "checking for av_rescale_q in -lavutil ... " >&6; }
  9807. if eval \${$as_ac_Lib+:} false; then :
  9808.   $as_echo_n "(cached) " >&6
  9809. else
  9810.   ac_check_lib_save_LIBS=$LIBS
  9811. LIBS="-lavutil   $LIBS"
  9812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9813. /* end confdefs.h.  */
  9814.  
  9815. /* Override any GCC internal prototype to avoid an error.
  9816.    Use char because int might match the return type of a GCC
  9817.    builtin and then its argument prototype would still apply.  */
  9818. #ifdef __cplusplus
  9819. extern "C"
  9820. #endif
  9821. char av_rescale_q ();
  9822. int
  9823. main ()
  9824. {
  9825. return av_rescale_q ();
  9826.   ;
  9827.   return 0;
  9828. }
  9829. _ACEOF
  9830. if ac_fn_c_try_link "$LINENO"; then :
  9831.   eval "$as_ac_Lib=yes"
  9832. else
  9833.   eval "$as_ac_Lib=no"
  9834. fi
  9835. rm -f core conftest.err conftest.$ac_objext \
  9836.     conftest$ac_exeext conftest.$ac_ext
  9837. LIBS=$ac_check_lib_save_LIBS
  9838. fi
  9839. eval ac_res=\$$as_ac_Lib
  9840.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9841. $as_echo "$ac_res" >&6; }
  9842. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  9843.   LIBAVUTIL_LIBS="-lavutil"
  9844. else
  9845.   as_fn_error $? "Could not find libavutil - part of ffmpeg" "$LINENO" 5
  9846. fi
  9847.  
  9848.  
  9849.  
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  9851. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  9852. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  9853.   $as_echo_n "(cached) " >&6
  9854. else
  9855.   ac_check_lib_save_LIBS=$LIBS
  9856. LIBS="-lpthread  $LIBS"
  9857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9858. /* end confdefs.h.  */
  9859.  
  9860. /* Override any GCC internal prototype to avoid an error.
  9861.    Use char because int might match the return type of a GCC
  9862.    builtin and then its argument prototype would still apply.  */
  9863. #ifdef __cplusplus
  9864. extern "C"
  9865. #endif
  9866. char pthread_create ();
  9867. int
  9868. main ()
  9869. {
  9870. return pthread_create ();
  9871.   ;
  9872.   return 0;
  9873. }
  9874. _ACEOF
  9875. if ac_fn_c_try_link "$LINENO"; then :
  9876.   ac_cv_lib_pthread_pthread_create=yes
  9877. else
  9878.   ac_cv_lib_pthread_pthread_create=no
  9879. fi
  9880. rm -f core conftest.err conftest.$ac_objext \
  9881.     conftest$ac_exeext conftest.$ac_ext
  9882. LIBS=$ac_check_lib_save_LIBS
  9883. fi
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  9885. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  9886. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  9887.   cat >>confdefs.h <<_ACEOF
  9888. #define HAVE_LIBPTHREAD 1
  9889. _ACEOF
  9890.  
  9891.   LIBS="-lpthread $LIBS"
  9892.  
  9893. fi
  9894.  
  9895.  
  9896. # test if we have vorbisfile
  9897. # prior versions had ov_open_callbacks in libvorbis, test that, too.
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ov_open_callbacks in -lvorbisfile" >&5
  9899. $as_echo_n "checking for ov_open_callbacks in -lvorbisfile... " >&6; }
  9900. if ${ac_cv_lib_vorbisfile_ov_open_callbacks+:} false; then :
  9901.   $as_echo_n "(cached) " >&6
  9902. else
  9903.   ac_check_lib_save_LIBS=$LIBS
  9904. LIBS="-lvorbisfile -lvorbis -logg $LIBS"
  9905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9906. /* end confdefs.h.  */
  9907.  
  9908. /* Override any GCC internal prototype to avoid an error.
  9909.    Use char because int might match the return type of a GCC
  9910.    builtin and then its argument prototype would still apply.  */
  9911. #ifdef __cplusplus
  9912. extern "C"
  9913. #endif
  9914. char ov_open_callbacks ();
  9915. int
  9916. main ()
  9917. {
  9918. return ov_open_callbacks ();
  9919.   ;
  9920.   return 0;
  9921. }
  9922. _ACEOF
  9923. if ac_fn_c_try_link "$LINENO"; then :
  9924.   ac_cv_lib_vorbisfile_ov_open_callbacks=yes
  9925. else
  9926.   ac_cv_lib_vorbisfile_ov_open_callbacks=no
  9927. fi
  9928. rm -f core conftest.err conftest.$ac_objext \
  9929.     conftest$ac_exeext conftest.$ac_ext
  9930. LIBS=$ac_check_lib_save_LIBS
  9931. fi
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_ov_open_callbacks" >&5
  9933. $as_echo "$ac_cv_lib_vorbisfile_ov_open_callbacks" >&6; }
  9934. if test "x$ac_cv_lib_vorbisfile_ov_open_callbacks" = xyes; then :
  9935.   for ac_header in vorbis/vorbisfile.h
  9936. do :
  9937.   ac_fn_c_check_header_mongrel "$LINENO" "vorbis/vorbisfile.h" "ac_cv_header_vorbis_vorbisfile_h" "$ac_includes_default"
  9938. if test "x$ac_cv_header_vorbis_vorbisfile_h" = xyes; then :
  9939.   cat >>confdefs.h <<_ACEOF
  9940. #define HAVE_VORBIS_VORBISFILE_H 1
  9941. _ACEOF
  9942.   if true; then
  9943.   HAVE_VORBISFILE_TRUE=
  9944.   HAVE_VORBISFILE_FALSE='#'
  9945. else
  9946.   HAVE_VORBISFILE_TRUE='#'
  9947.   HAVE_VORBISFILE_FALSE=
  9948. fi
  9949.  
  9950.  
  9951. $as_echo "#define HAVE_VORBISFILE 1" >>confdefs.h
  9952.  
  9953. else
  9954.    if false; then
  9955.   HAVE_VORBISFILE_TRUE=
  9956.   HAVE_VORBISFILE_FALSE='#'
  9957. else
  9958.   HAVE_VORBISFILE_TRUE='#'
  9959.   HAVE_VORBISFILE_FALSE=
  9960. fi
  9961.  
  9962.  
  9963. $as_echo "#define HAVE_VORBISFILE 0" >>confdefs.h
  9964.  
  9965. fi
  9966.  
  9967. done
  9968.  
  9969. else
  9970.    if false; then
  9971.   HAVE_VORBISFILE_TRUE=
  9972.   HAVE_VORBISFILE_FALSE='#'
  9973. else
  9974.   HAVE_VORBISFILE_TRUE='#'
  9975.   HAVE_VORBISFILE_FALSE=
  9976. fi
  9977.  
  9978. fi
  9979.  
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC__stream_decoder_init_stream in -lFLAC" >&5
  9981. $as_echo_n "checking for FLAC__stream_decoder_init_stream in -lFLAC... " >&6; }
  9982. if ${ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream+:} false; then :
  9983.   $as_echo_n "(cached) " >&6
  9984. else
  9985.   ac_check_lib_save_LIBS=$LIBS
  9986. LIBS="-lFLAC -logg $LIBS"
  9987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9988. /* end confdefs.h.  */
  9989.  
  9990. /* Override any GCC internal prototype to avoid an error.
  9991.    Use char because int might match the return type of a GCC
  9992.    builtin and then its argument prototype would still apply.  */
  9993. #ifdef __cplusplus
  9994. extern "C"
  9995. #endif
  9996. char FLAC__stream_decoder_init_stream ();
  9997. int
  9998. main ()
  9999. {
  10000. return FLAC__stream_decoder_init_stream ();
  10001.   ;
  10002.   return 0;
  10003. }
  10004. _ACEOF
  10005. if ac_fn_c_try_link "$LINENO"; then :
  10006.   ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream=yes
  10007. else
  10008.   ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream=no
  10009. fi
  10010. rm -f core conftest.err conftest.$ac_objext \
  10011.     conftest$ac_exeext conftest.$ac_ext
  10012. LIBS=$ac_check_lib_save_LIBS
  10013. fi
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" >&5
  10015. $as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" >&6; }
  10016. if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" = xyes; then :
  10017.   for ac_header in FLAC/all.h
  10018. do :
  10019.   ac_fn_c_check_header_mongrel "$LINENO" "FLAC/all.h" "ac_cv_header_FLAC_all_h" "$ac_includes_default"
  10020. if test "x$ac_cv_header_FLAC_all_h" = xyes; then :
  10021.   cat >>confdefs.h <<_ACEOF
  10022. #define HAVE_FLAC_ALL_H 1
  10023. _ACEOF
  10024.   if true; then
  10025.   HAVE_FLAC_TRUE=
  10026.   HAVE_FLAC_FALSE='#'
  10027. else
  10028.   HAVE_FLAC_TRUE='#'
  10029.   HAVE_FLAC_FALSE=
  10030. fi
  10031.  
  10032.  
  10033. $as_echo "#define HAVE_FLAC 1" >>confdefs.h
  10034.  
  10035. else
  10036.    if false; then
  10037.   HAVE_FLAC_TRUE=
  10038.   HAVE_FLAC_FALSE='#'
  10039. else
  10040.   HAVE_FLAC_TRUE='#'
  10041.   HAVE_FLAC_FALSE=
  10042. fi
  10043.  
  10044. fi
  10045.  
  10046. done
  10047.  
  10048. else
  10049.    if false; then
  10050.   HAVE_FLAC_TRUE=
  10051.   HAVE_FLAC_FALSE='#'
  10052. else
  10053.   HAVE_FLAC_TRUE='#'
  10054.   HAVE_FLAC_FALSE=
  10055. fi
  10056.  
  10057. fi
  10058.  
  10059. # test without -logg to see whether we really need it (libflac can be without)
  10060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC" >&5
  10061. $as_echo_n "checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC... " >&6; }
  10062. if ${ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream+:} false; then :
  10063.   $as_echo_n "(cached) " >&6
  10064. else
  10065.   ac_check_lib_save_LIBS=$LIBS
  10066. LIBS="-lFLAC  $LIBS"
  10067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10068. /* end confdefs.h.  */
  10069.  
  10070. /* Override any GCC internal prototype to avoid an error.
  10071.    Use char because int might match the return type of a GCC
  10072.    builtin and then its argument prototype would still apply.  */
  10073. #ifdef __cplusplus
  10074. extern "C"
  10075. #endif
  10076. char FLAC__stream_decoder_init_ogg_stream ();
  10077. int
  10078. main ()
  10079. {
  10080. return FLAC__stream_decoder_init_ogg_stream ();
  10081.   ;
  10082.   return 0;
  10083. }
  10084. _ACEOF
  10085. if ac_fn_c_try_link "$LINENO"; then :
  10086.   ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream=yes
  10087. else
  10088.   ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream=no
  10089. fi
  10090. rm -f core conftest.err conftest.$ac_objext \
  10091.     conftest$ac_exeext conftest.$ac_ext
  10092. LIBS=$ac_check_lib_save_LIBS
  10093. fi
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" >&5
  10095. $as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" >&6; }
  10096. if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" = xyes; then :
  10097.    if true; then
  10098.   HAVE_FLAC_TRUE=
  10099.   HAVE_FLAC_FALSE='#'
  10100. else
  10101.   HAVE_FLAC_TRUE='#'
  10102.   HAVE_FLAC_FALSE=
  10103. fi
  10104.  
  10105.  
  10106. $as_echo "#define HAVE_FLAC 1" >>confdefs.h
  10107.  
  10108.           if false; then
  10109.   NEED_OGG_TRUE=
  10110.   NEED_OGG_FALSE='#'
  10111. else
  10112.   NEED_OGG_TRUE='#'
  10113.   NEED_OGG_FALSE=
  10114. fi
  10115.  
  10116. else
  10117.    if true; then
  10118.   NEED_OGG_TRUE=
  10119.   NEED_OGG_FALSE='#'
  10120. else
  10121.   NEED_OGG_TRUE='#'
  10122.   NEED_OGG_FALSE=
  10123. fi
  10124.  
  10125. fi
  10126.  
  10127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis_comment_query in -lvorbisfile" >&5
  10128. $as_echo_n "checking for vorbis_comment_query in -lvorbisfile... " >&6; }
  10129. if ${ac_cv_lib_vorbisfile_vorbis_comment_query+:} false; then :
  10130.   $as_echo_n "(cached) " >&6
  10131. else
  10132.   ac_check_lib_save_LIBS=$LIBS
  10133. LIBS="-lvorbisfile -logg $LIBS"
  10134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10135. /* end confdefs.h.  */
  10136.  
  10137. /* Override any GCC internal prototype to avoid an error.
  10138.    Use char because int might match the return type of a GCC
  10139.    builtin and then its argument prototype would still apply.  */
  10140. #ifdef __cplusplus
  10141. extern "C"
  10142. #endif
  10143. char vorbis_comment_query ();
  10144. int
  10145. main ()
  10146. {
  10147. return vorbis_comment_query ();
  10148.   ;
  10149.   return 0;
  10150. }
  10151. _ACEOF
  10152. if ac_fn_c_try_link "$LINENO"; then :
  10153.   ac_cv_lib_vorbisfile_vorbis_comment_query=yes
  10154. else
  10155.   ac_cv_lib_vorbisfile_vorbis_comment_query=no
  10156. fi
  10157. rm -f core conftest.err conftest.$ac_objext \
  10158.     conftest$ac_exeext conftest.$ac_ext
  10159. LIBS=$ac_check_lib_save_LIBS
  10160. fi
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_vorbis_comment_query" >&5
  10162. $as_echo "$ac_cv_lib_vorbisfile_vorbis_comment_query" >&6; }
  10163. if test "x$ac_cv_lib_vorbisfile_vorbis_comment_query" = xyes; then :
  10164.    if false; then
  10165.   NEED_VORBIS_TRUE=
  10166.   NEED_VORBIS_FALSE='#'
  10167. else
  10168.   NEED_VORBIS_TRUE='#'
  10169.   NEED_VORBIS_FALSE=
  10170. fi
  10171.  
  10172. else
  10173.    if true; then
  10174.   NEED_VORBIS_TRUE=
  10175.   NEED_VORBIS_FALSE='#'
  10176. else
  10177.   NEED_VORBIS_TRUE='#'
  10178.   NEED_VORBIS_FALSE=
  10179. fi
  10180.  
  10181. fi
  10182.  
  10183.  
  10184. ################################################################################################################
  10185. ### Header checks
  10186.  
  10187. 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
  10188. do :
  10189.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10190. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10191. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10192.   cat >>confdefs.h <<_ACEOF
  10193. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10194. _ACEOF
  10195.  
  10196. fi
  10197.  
  10198. done
  10199.  
  10200.  
  10201. for ac_func in inotify_init
  10202. do :
  10203.   ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  10204. if test "x$ac_cv_func_inotify_init" = xyes; then :
  10205.   cat >>confdefs.h <<_ACEOF
  10206. #define HAVE_INOTIFY_INIT 1
  10207. _ACEOF
  10208.  
  10209. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  10210.  
  10211. else
  10212.  
  10213.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __NR_inotify_init syscall" >&5
  10214. $as_echo_n "checking for __NR_inotify_init syscall... " >&6; }
  10215.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10216. /* end confdefs.h.  */
  10217.  
  10218.                  #include <asm/unistd.h>
  10219.  
  10220. int
  10221. main ()
  10222. {
  10223.  
  10224.                  #ifndef __NR_inotify_init
  10225.                  #error
  10226.                  #endif
  10227.  
  10228.  
  10229.   ;
  10230.   return 0;
  10231. }
  10232. _ACEOF
  10233. if ac_fn_c_try_compile "$LINENO"; then :
  10234.  
  10235.              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10236. $as_echo "yes" >&6; }
  10237.  
  10238. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  10239.  
  10240.  
  10241. else
  10242.  
  10243.              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10244. $as_echo "no" >&6; }
  10245.  
  10246. fi
  10247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10248.  
  10249. fi
  10250. done
  10251.  
  10252.  
  10253. ################################################################################################################
  10254. ### Build Options
  10255.  
  10256.  
  10257. # Check whether --with-log-path was given.
  10258. if test "${with_log_path+set}" = set; then :
  10259.   withval=$with_log_path; with_logpath="$withval"
  10260. else
  10261.   with_logpath="/var/log"
  10262. fi
  10263.  
  10264.  
  10265. cat >>confdefs.h <<_ACEOF
  10266. #define DEFAULT_LOG_PATH "${with_logpath}"
  10267. _ACEOF
  10268.  
  10269.  
  10270.  
  10271.  
  10272. # Check whether --with-db-path was given.
  10273. if test "${with_db_path+set}" = set; then :
  10274.   withval=$with_db_path; with_dbpath="$withval"
  10275. else
  10276.   with_dbpath="/var/cache/minidlna"
  10277. fi
  10278.  
  10279.  
  10280. cat >>confdefs.h <<_ACEOF
  10281. #define DEFAULT_DB_PATH "${with_dbpath}"
  10282. _ACEOF
  10283.  
  10284.  
  10285.  
  10286. # Check whether --with-os-name was given.
  10287. if test "${with_os_name+set}" = set; then :
  10288.   withval=$with_os_name; with_osname="$withval"
  10289. else
  10290.   with_osname="$(uname -s)"
  10291. fi
  10292.  
  10293.  
  10294. cat >>confdefs.h <<_ACEOF
  10295. #define OS_NAME "${with_osname}"
  10296. _ACEOF
  10297.  
  10298.  
  10299.  
  10300. # Check whether --with-os-version was given.
  10301. if test "${with_os_version+set}" = set; then :
  10302.   withval=$with_os_version; with_osver="$withval"
  10303. else
  10304.   with_osver="$(uname -r)"
  10305. fi
  10306.  
  10307.  
  10308. cat >>confdefs.h <<_ACEOF
  10309. #define OS_VERSION "${with_osver}"
  10310. _ACEOF
  10311.  
  10312.  
  10313.  
  10314. # Check whether --with-os-url was given.
  10315. if test "${with_os_url+set}" = set; then :
  10316.   withval=$with_os_url; with_osurl="$withval"
  10317. else
  10318.   with_osurl="http://www.netgear.com"
  10319. fi
  10320.  
  10321.  
  10322. cat >>confdefs.h <<_ACEOF
  10323. #define OS_URL "${with_osurl}"
  10324. _ACEOF
  10325.  
  10326.  
  10327.  
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TiVo support" >&5
  10329. $as_echo_n "checking whether to enable TiVo support... " >&6; }
  10330. # Check whether --enable-tivo was given.
  10331. if test "${enable_tivo+set}" = set; then :
  10332.   enableval=$enable_tivo;
  10333.     if test "$enableval" = "yes"; then
  10334.  
  10335. $as_echo "#define TIVO_SUPPORT 1" >>confdefs.h
  10336.  
  10337.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10338. $as_echo "yes" >&6; }
  10339.     else
  10340.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10341. $as_echo "no" >&6; }
  10342.     fi
  10343.  
  10344. else
  10345.  
  10346.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10347. $as_echo "no" >&6; }
  10348.  
  10349.  
  10350. fi
  10351.  
  10352.  
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generic NETGEAR device support" >&5
  10354. $as_echo_n "checking whether to enable generic NETGEAR device support... " >&6; }
  10355. # Check whether --enable-netgear was given.
  10356. if test "${enable_netgear+set}" = set; then :
  10357.   enableval=$enable_netgear;
  10358.     if test "$enableval" = "yes"; then
  10359.  
  10360. $as_echo "#define NETGEAR 1" >>confdefs.h
  10361.  
  10362.         cat >>confdefs.h <<_ACEOF
  10363. #define OS_URL "http://www.netgear.com/"
  10364. _ACEOF
  10365.  
  10366.         cat >>confdefs.h <<_ACEOF
  10367. #define ROOTDEV_MANUFACTURERURL "http://www.netgear.com/"
  10368. _ACEOF
  10369.  
  10370.         cat >>confdefs.h <<_ACEOF
  10371. #define ROOTDEV_MANUFACTURER "NETGEAR"
  10372. _ACEOF
  10373.  
  10374.         cat >>confdefs.h <<_ACEOF
  10375. #define ROOTDEV_MODELNAME "Windows Media Connect compatible (ReadyDLNA)"
  10376. _ACEOF
  10377.  
  10378.         cat >>confdefs.h <<_ACEOF
  10379. #define ROOTDEV_MODELDESCRIPTION "ReadyDLNA"
  10380. _ACEOF
  10381.  
  10382.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10383. $as_echo "yes" >&6; }
  10384.         else
  10385.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10386. $as_echo "no" >&6; }
  10387.         fi
  10388.  
  10389. else
  10390.  
  10391.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10392. $as_echo "no" >&6; }
  10393.  
  10394.  
  10395. fi
  10396.  
  10397.  
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NETGEAR ReadyNAS support" >&5
  10399. $as_echo_n "checking whether to enable NETGEAR ReadyNAS support... " >&6; }
  10400. # Check whether --enable-readynas was given.
  10401. if test "${enable_readynas+set}" = set; then :
  10402.   enableval=$enable_readynas;
  10403.     if test "$enableval" = "yes"; then
  10404.  
  10405. $as_echo "#define NETGEAR 1" >>confdefs.h
  10406.  
  10407.  
  10408. $as_echo "#define READYNAS 1" >>confdefs.h
  10409.  
  10410.  
  10411. $as_echo "#define TIVO_SUPPORT 1" >>confdefs.h
  10412.  
  10413.  
  10414. $as_echo "#define PNPX 5" >>confdefs.h
  10415.  
  10416.         cat >>confdefs.h <<_ACEOF
  10417. #define OS_URL "http://www.readynas.com/"
  10418. _ACEOF
  10419.  
  10420.         cat >>confdefs.h <<_ACEOF
  10421. #define ROOTDEV_MANUFACTURERURL "http://www.netgear.com/"
  10422. _ACEOF
  10423.  
  10424.         cat >>confdefs.h <<_ACEOF
  10425. #define ROOTDEV_MANUFACTURER "NETGEAR"
  10426. _ACEOF
  10427.  
  10428.         cat >>confdefs.h <<_ACEOF
  10429. #define ROOTDEV_MODELNAME "Windows Media Connect compatible (ReadyDLNA)"
  10430. _ACEOF
  10431.  
  10432.         cat >>confdefs.h <<_ACEOF
  10433. #define ROOTDEV_MODELDESCRIPTION "ReadyDLNA"
  10434. _ACEOF
  10435.  
  10436.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10437. $as_echo "yes" >&6; }
  10438.         else
  10439.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10440. $as_echo "no" >&6; }
  10441.         fi
  10442.  
  10443. else
  10444.  
  10445.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10446. $as_echo "no" >&6; }
  10447.  
  10448.  
  10449. fi
  10450.  
  10451.  
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build a static binary executable" >&5
  10453. $as_echo_n "checking whether to build a static binary executable... " >&6; }
  10454. # Check whether --enable-static was given.
  10455. if test "${enable_static+set}" = set; then :
  10456.   enableval=$enable_static;
  10457.     if test "$enableval" = "yes"; then
  10458.         STATIC_CFLAGS="-DSTATIC"
  10459.  
  10460.         STATIC_LDFLAGS="-Wl,-Bstatic"
  10461.  
  10462.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10463. $as_echo "yes" >&6; }
  10464.         else
  10465.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10466. $as_echo "no" >&6; }
  10467.         fi
  10468.  
  10469. else
  10470.  
  10471.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10472. $as_echo "no" >&6; }
  10473.  
  10474.  
  10475. fi
  10476.  
  10477.  
  10478.  
  10479. case "$target_os" in
  10480.     darwin*)
  10481.         ;;
  10482.         freebsd*)
  10483.                 VER=`grep '#define __FreeBSD_version' /usr/include/sys/param.h | awk '{print $3}'`
  10484.                 OS_URL=http://www.freebsd.org/
  10485.                 ;;
  10486.     solaris*)
  10487.  
  10488. $as_echo "#define USE_IPF 1" >>confdefs.h
  10489.  
  10490.  
  10491. $as_echo "#define LOG_PERROR 0" >>confdefs.h
  10492.  
  10493.  
  10494. $as_echo "#define SOLARIS_KSTATS 1" >>confdefs.h
  10495.  
  10496.         ;;
  10497.     kfreebsd*)
  10498.                 OS_URL=http://www.debian.org/
  10499.         ;;
  10500.         linux*)
  10501.         ;;
  10502.         openbsd*)
  10503.                 OS_URL=http://www.openbsd.org/
  10504.                 ;;
  10505.         *)
  10506.                 echo "Unknown OS : $target_os"
  10507.                 ;;
  10508. esac
  10509.  
  10510.  
  10511. ac_config_files="$ac_config_files po/Makefile.in Makefile"
  10512.  
  10513. cat >confcache <<\_ACEOF
  10514. # This file is a shell script that caches the results of configure
  10515. # tests run on this system so they can be shared between configure
  10516. # scripts and configure runs, see configure's option --config-cache.
  10517. # It is not useful on other systems.  If it contains results you don't
  10518. # want to keep, you may remove or edit it.
  10519. #
  10520. # config.status only pays attention to the cache file if you give it
  10521. # the --recheck option to rerun configure.
  10522. #
  10523. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10524. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10525. # following values.
  10526.  
  10527. _ACEOF
  10528.  
  10529. # The following way of writing the cache mishandles newlines in values,
  10530. # but we know of no workaround that is simple, portable, and efficient.
  10531. # So, we kill variables containing newlines.
  10532. # Ultrix sh set writes to stderr and can't be redirected directly,
  10533. # and sets the high bit in the cache file unless we assign to the vars.
  10534. (
  10535.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10536.     eval ac_val=\$$ac_var
  10537.     case $ac_val in #(
  10538.     *${as_nl}*)
  10539.       case $ac_var in #(
  10540.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10541. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10542.       esac
  10543.       case $ac_var in #(
  10544.       _ | IFS | as_nl) ;; #(
  10545.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10546.       *) { eval $ac_var=; unset $ac_var;} ;;
  10547.       esac ;;
  10548.     esac
  10549.   done
  10550.  
  10551.   (set) 2>&1 |
  10552.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10553.     *${as_nl}ac_space=\ *)
  10554.       # `set' does not quote correctly, so add quotes: double-quote
  10555.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  10556.       sed -n \
  10557.     "s/'/'\\\\''/g;
  10558.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10559.       ;; #(
  10560.     *)
  10561.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  10562.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10563.       ;;
  10564.     esac |
  10565.     sort
  10566. ) |
  10567.   sed '
  10568.     /^ac_cv_env_/b end
  10569.     t clear
  10570.     :clear
  10571.     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10572.     t end
  10573.     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10574.     :end' >>confcache
  10575. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10576.   if test -w "$cache_file"; then
  10577.     if test "x$cache_file" != "x/dev/null"; then
  10578.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10579. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10580.       if test ! -f "$cache_file" || test -h "$cache_file"; then
  10581.     cat confcache >"$cache_file"
  10582.       else
  10583.         case $cache_file in #(
  10584.         */* | ?:*)
  10585.       mv -f confcache "$cache_file"$$ &&
  10586.       mv -f "$cache_file"$$ "$cache_file" ;; #(
  10587.         *)
  10588.       mv -f confcache "$cache_file" ;;
  10589.     esac
  10590.       fi
  10591.     fi
  10592.   else
  10593.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10594. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10595.   fi
  10596. fi
  10597. rm -f confcache
  10598.  
  10599. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10600. # Let make expand exec_prefix.
  10601. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10602.  
  10603. DEFS=-DHAVE_CONFIG_H
  10604.  
  10605. ac_libobjs=
  10606. ac_ltlibobjs=
  10607. U=
  10608. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10609.   # 1. Remove the extension, and $U if already installed.
  10610.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10611.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10612.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  10613.   #    will be set to the directory where LIBOBJS objects are built.
  10614.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10615.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10616. done
  10617. LIBOBJS=$ac_libobjs
  10618.  
  10619. LTLIBOBJS=$ac_ltlibobjs
  10620.  
  10621.  
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10623. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10624.    if test -n "$am_sleep_pid"; then
  10625.      # Hide warnings about reused PIDs.
  10626.      wait $am_sleep_pid 2>/dev/null
  10627.    fi
  10628.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10629. $as_echo "done" >&6; }
  10630.  if test -n "$EXEEXT"; then
  10631.   am__EXEEXT_TRUE=
  10632.   am__EXEEXT_FALSE='#'
  10633. else
  10634.   am__EXEEXT_TRUE='#'
  10635.   am__EXEEXT_FALSE=
  10636. fi
  10637.  
  10638. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10639.   as_fn_error $? "conditional \"AMDEP\" was never defined.
  10640. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10641. fi
  10642. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10643.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10644. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10645. fi
  10646. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10647.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10648. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10649. fi
  10650.  
  10651. if test -z "${HAVE_VORBISFILE_TRUE}" && test -z "${HAVE_VORBISFILE_FALSE}"; then
  10652.   as_fn_error $? "conditional \"HAVE_VORBISFILE\" was never defined.
  10653. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10654. fi
  10655. if test -z "${HAVE_VORBISFILE_TRUE}" && test -z "${HAVE_VORBISFILE_FALSE}"; then
  10656.   as_fn_error $? "conditional \"HAVE_VORBISFILE\" was never defined.
  10657. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10658. fi
  10659. if test -z "${HAVE_VORBISFILE_TRUE}" && test -z "${HAVE_VORBISFILE_FALSE}"; then
  10660.   as_fn_error $? "conditional \"HAVE_VORBISFILE\" was never defined.
  10661. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10662. fi
  10663. if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
  10664.   as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
  10665. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10666. fi
  10667. if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
  10668.   as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
  10669. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10670. fi
  10671. if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
  10672.   as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
  10673. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10674. fi
  10675. if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
  10676.   as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
  10677. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10678. fi
  10679. if test -z "${NEED_OGG_TRUE}" && test -z "${NEED_OGG_FALSE}"; then
  10680.   as_fn_error $? "conditional \"NEED_OGG\" was never defined.
  10681. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10682. fi
  10683. if test -z "${NEED_OGG_TRUE}" && test -z "${NEED_OGG_FALSE}"; then
  10684.   as_fn_error $? "conditional \"NEED_OGG\" was never defined.
  10685. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10686. fi
  10687. if test -z "${NEED_VORBIS_TRUE}" && test -z "${NEED_VORBIS_FALSE}"; then
  10688.   as_fn_error $? "conditional \"NEED_VORBIS\" was never defined.
  10689. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10690. fi
  10691. if test -z "${NEED_VORBIS_TRUE}" && test -z "${NEED_VORBIS_FALSE}"; then
  10692.   as_fn_error $? "conditional \"NEED_VORBIS\" was never defined.
  10693. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10694. fi
  10695.  
  10696. : "${CONFIG_STATUS=./config.status}"
  10697. ac_write_fail=0
  10698. ac_clean_files_save=$ac_clean_files
  10699. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10700. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10701. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10702. as_write_fail=0
  10703. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10704. #! $SHELL
  10705. # Generated by $as_me.
  10706. # Run this file to recreate the current configuration.
  10707. # Compiler output produced by configure, useful for debugging
  10708. # configure, is in config.log if it exists.
  10709.  
  10710. debug=false
  10711. ac_cs_recheck=false
  10712. ac_cs_silent=false
  10713.  
  10714. SHELL=\${CONFIG_SHELL-$SHELL}
  10715. export SHELL
  10716. _ASEOF
  10717. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10718. ## -------------------- ##
  10719. ## M4sh Initialization. ##
  10720. ## -------------------- ##
  10721.  
  10722. # Be more Bourne compatible
  10723. DUALCASE=1; export DUALCASE # for MKS sh
  10724. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10725.   emulate sh
  10726.   NULLCMD=:
  10727.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10728.   # is contrary to our usage.  Disable this feature.
  10729.   alias -g '${1+"$@"}'='"$@"'
  10730.   setopt NO_GLOB_SUBST
  10731. else
  10732.   case `(set -o) 2>/dev/null` in #(
  10733.   *posix*) :
  10734.     set -o posix ;; #(
  10735.   *) :
  10736.      ;;
  10737. esac
  10738. fi
  10739.  
  10740.  
  10741. as_nl='
  10742. '
  10743. export as_nl
  10744. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10745. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10746. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10747. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10748. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10749. # but without wasting forks for bash or zsh.
  10750. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10751.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10752.   as_echo='print -r --'
  10753.   as_echo_n='print -rn --'
  10754. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10755.   as_echo='printf %s\n'
  10756.   as_echo_n='printf %s'
  10757. else
  10758.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10759.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10760.     as_echo_n='/usr/ucb/echo -n'
  10761.   else
  10762.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10763.     as_echo_n_body='eval
  10764.      arg=$1;
  10765.      case $arg in #(
  10766.      *"$as_nl"*)
  10767.     expr "X$arg" : "X\\(.*\\)$as_nl";
  10768.     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10769.      esac;
  10770.      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10771.    '
  10772.     export as_echo_n_body
  10773.     as_echo_n='sh -c $as_echo_n_body as_echo'
  10774.   fi
  10775.   export as_echo_body
  10776.   as_echo='sh -c $as_echo_body as_echo'
  10777. fi
  10778.  
  10779. # The user is always right.
  10780. if test "${PATH_SEPARATOR+set}" != set; then
  10781.   PATH_SEPARATOR=:
  10782.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10783.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10784.       PATH_SEPARATOR=';'
  10785.   }
  10786. fi
  10787.  
  10788.  
  10789. # IFS
  10790. # We need space, tab and new line, in precisely that order.  Quoting is
  10791. # there to prevent editors from complaining about space-tab.
  10792. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10793. # splitting by setting IFS to empty value.)
  10794. IFS=" ""    $as_nl"
  10795.  
  10796. # Find who we are.  Look in the path if we contain no directory separator.
  10797. as_myself=
  10798. case $0 in #((
  10799.   *[\\/]* ) as_myself=$0 ;;
  10800.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10801. for as_dir in $PATH
  10802. do
  10803.   IFS=$as_save_IFS
  10804.   test -z "$as_dir" && as_dir=.
  10805.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10806.   done
  10807. IFS=$as_save_IFS
  10808.  
  10809.      ;;
  10810. esac
  10811. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10812. # in which case we are not to be found in the path.
  10813. if test "x$as_myself" = x; then
  10814.   as_myself=$0
  10815. fi
  10816. if test ! -f "$as_myself"; then
  10817.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10818.   exit 1
  10819. fi
  10820.  
  10821. # Unset variables that we do not need and which cause bugs (e.g. in
  10822. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  10823. # suppresses any "Segmentation fault" message there.  '((' could
  10824. # trigger a bug in pdksh 5.2.14.
  10825. for as_var in BASH_ENV ENV MAIL MAILPATH
  10826. do eval test x\${$as_var+set} = xset \
  10827.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10828. done
  10829. PS1='$ '
  10830. PS2='> '
  10831. PS4='+ '
  10832.  
  10833. # NLS nuisances.
  10834. LC_ALL=C
  10835. export LC_ALL
  10836. LANGUAGE=C
  10837. export LANGUAGE
  10838.  
  10839. # CDPATH.
  10840. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10841.  
  10842.  
  10843. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10844. # ----------------------------------------
  10845. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10846. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10847. # script with STATUS, using 1 if that was 0.
  10848. as_fn_error ()
  10849. {
  10850.   as_status=$1; test $as_status -eq 0 && as_status=1
  10851.   if test "$4"; then
  10852.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10853.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10854.   fi
  10855.   $as_echo "$as_me: error: $2" >&2
  10856.   as_fn_exit $as_status
  10857. } # as_fn_error
  10858.  
  10859.  
  10860. # as_fn_set_status STATUS
  10861. # -----------------------
  10862. # Set $? to STATUS, without forking.
  10863. as_fn_set_status ()
  10864. {
  10865.   return $1
  10866. } # as_fn_set_status
  10867.  
  10868. # as_fn_exit STATUS
  10869. # -----------------
  10870. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10871. as_fn_exit ()
  10872. {
  10873.   set +e
  10874.   as_fn_set_status $1
  10875.   exit $1
  10876. } # as_fn_exit
  10877.  
  10878. # as_fn_unset VAR
  10879. # ---------------
  10880. # Portably unset VAR.
  10881. as_fn_unset ()
  10882. {
  10883.   { eval $1=; unset $1;}
  10884. }
  10885. as_unset=as_fn_unset
  10886. # as_fn_append VAR VALUE
  10887. # ----------------------
  10888. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10889. # advantage of any shell optimizations that allow amortized linear growth over
  10890. # repeated appends, instead of the typical quadratic growth present in naive
  10891. # implementations.
  10892. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10893.   eval 'as_fn_append ()
  10894.  {
  10895.    eval $1+=\$2
  10896.  }'
  10897. else
  10898.   as_fn_append ()
  10899.   {
  10900.     eval $1=\$$1\$2
  10901.   }
  10902. fi # as_fn_append
  10903.  
  10904. # as_fn_arith ARG...
  10905. # ------------------
  10906. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10907. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10908. # must be portable across $(()) and expr.
  10909. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10910.   eval 'as_fn_arith ()
  10911.  {
  10912.    as_val=$(( $* ))
  10913.  }'
  10914. else
  10915.   as_fn_arith ()
  10916.   {
  10917.     as_val=`expr "$@" || test $? -eq 1`
  10918.   }
  10919. fi # as_fn_arith
  10920.  
  10921.  
  10922. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10923.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10924.   as_expr=expr
  10925. else
  10926.   as_expr=false
  10927. fi
  10928.  
  10929. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10930.   as_basename=basename
  10931. else
  10932.   as_basename=false
  10933. fi
  10934.  
  10935. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10936.   as_dirname=dirname
  10937. else
  10938.   as_dirname=false
  10939. fi
  10940.  
  10941. as_me=`$as_basename -- "$0" ||
  10942. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10943.      X"$0" : 'X\(//\)$' \| \
  10944.      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10945. $as_echo X/"$0" |
  10946.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  10947.         s//\1/
  10948.         q
  10949.       }
  10950.       /^X\/\(\/\/\)$/{
  10951.         s//\1/
  10952.         q
  10953.       }
  10954.       /^X\/\(\/\).*/{
  10955.         s//\1/
  10956.         q
  10957.       }
  10958.       s/.*/./; q'`
  10959.  
  10960. # Avoid depending upon Character Ranges.
  10961. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10962. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10963. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10964. as_cr_digits='0123456789'
  10965. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10966.  
  10967. ECHO_C= ECHO_N= ECHO_T=
  10968. case `echo -n x` in #(((((
  10969. -n*)
  10970.   case `echo 'xy\c'` in
  10971.   *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10972.   xy)  ECHO_C='\c';;
  10973.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10974.        ECHO_T=' ';;
  10975.   esac;;
  10976. *)
  10977.   ECHO_N='-n';;
  10978. esac
  10979.  
  10980. rm -f conf$$ conf$$.exe conf$$.file
  10981. if test -d conf$$.dir; then
  10982.   rm -f conf$$.dir/conf$$.file
  10983. else
  10984.   rm -f conf$$.dir
  10985.   mkdir conf$$.dir 2>/dev/null
  10986. fi
  10987. if (echo >conf$$.file) 2>/dev/null; then
  10988.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  10989.     as_ln_s='ln -s'
  10990.     # ... but there are two gotchas:
  10991.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10992.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10993.     # In both cases, we have to default to `cp -pR'.
  10994.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10995.       as_ln_s='cp -pR'
  10996.   elif ln conf$$.file conf$$ 2>/dev/null; then
  10997.     as_ln_s=ln
  10998.   else
  10999.     as_ln_s='cp -pR'
  11000.   fi
  11001. else
  11002.   as_ln_s='cp -pR'
  11003. fi
  11004. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11005. rmdir conf$$.dir 2>/dev/null
  11006.  
  11007.  
  11008. # as_fn_mkdir_p
  11009. # -------------
  11010. # Create "$as_dir" as a directory, including parents if necessary.
  11011. as_fn_mkdir_p ()
  11012. {
  11013.  
  11014.   case $as_dir in #(
  11015.   -*) as_dir=./$as_dir;;
  11016.   esac
  11017.   test -d "$as_dir" || eval $as_mkdir_p || {
  11018.     as_dirs=
  11019.     while :; do
  11020.       case $as_dir in #(
  11021.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11022.       *) as_qdir=$as_dir;;
  11023.       esac
  11024.       as_dirs="'$as_qdir' $as_dirs"
  11025.       as_dir=`$as_dirname -- "$as_dir" ||
  11026. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11027.      X"$as_dir" : 'X\(//\)[^/]' \| \
  11028.      X"$as_dir" : 'X\(//\)$' \| \
  11029.      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11030. $as_echo X"$as_dir" |
  11031.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11032.         s//\1/
  11033.         q
  11034.       }
  11035.       /^X\(\/\/\)[^/].*/{
  11036.         s//\1/
  11037.         q
  11038.       }
  11039.       /^X\(\/\/\)$/{
  11040.         s//\1/
  11041.         q
  11042.       }
  11043.       /^X\(\/\).*/{
  11044.         s//\1/
  11045.         q
  11046.       }
  11047.       s/.*/./; q'`
  11048.       test -d "$as_dir" && break
  11049.     done
  11050.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  11051.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11052.  
  11053.  
  11054. } # as_fn_mkdir_p
  11055. if mkdir -p . 2>/dev/null; then
  11056.   as_mkdir_p='mkdir -p "$as_dir"'
  11057. else
  11058.   test -d ./-p && rmdir ./-p
  11059.   as_mkdir_p=false
  11060. fi
  11061.  
  11062.  
  11063. # as_fn_executable_p FILE
  11064. # -----------------------
  11065. # Test if FILE is an executable regular file.
  11066. as_fn_executable_p ()
  11067. {
  11068.   test -f "$1" && test -x "$1"
  11069. } # as_fn_executable_p
  11070. as_test_x='test -x'
  11071. as_executable_p=as_fn_executable_p
  11072.  
  11073. # Sed expression to map a string onto a valid CPP name.
  11074. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11075.  
  11076. # Sed expression to map a string onto a valid variable name.
  11077. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11078.  
  11079.  
  11080. exec 6>&1
  11081. ## ----------------------------------- ##
  11082. ## Main body of $CONFIG_STATUS script. ##
  11083. ## ----------------------------------- ##
  11084. _ASEOF
  11085. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11086.  
  11087. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11088. # Save the log message, to keep $0 and so on meaningful, and to
  11089. # report actual input values of CONFIG_FILES etc. instead of their
  11090. # values after options handling.
  11091. ac_log="
  11092. This file was extended by MiniDLNA $as_me 1.1.3, which was
  11093. generated by GNU Autoconf 2.69.  Invocation command line was
  11094.  
  11095.  CONFIG_FILES    = $CONFIG_FILES
  11096.  CONFIG_HEADERS  = $CONFIG_HEADERS
  11097.  CONFIG_LINKS    = $CONFIG_LINKS
  11098.  CONFIG_COMMANDS = $CONFIG_COMMANDS
  11099.  $ $0 $@
  11100.  
  11101. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11102. "
  11103.  
  11104. _ACEOF
  11105.  
  11106. case $ac_config_files in *"
  11107. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11108. esac
  11109.  
  11110. case $ac_config_headers in *"
  11111. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11112. esac
  11113.  
  11114.  
  11115. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11116. # Files that config.status was made for.
  11117. config_files="$ac_config_files"
  11118. config_headers="$ac_config_headers"
  11119. config_commands="$ac_config_commands"
  11120.  
  11121. _ACEOF
  11122.  
  11123. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11124. ac_cs_usage="\
  11125. \`$as_me' instantiates files and other configuration actions
  11126. from templates according to the current configuration.  Unless the files
  11127. and actions are specified as TAGs, all are instantiated by default.
  11128.  
  11129. Usage: $0 [OPTION]... [TAG]...
  11130.  
  11131.  -h, --help       print this help, then exit
  11132.  -V, --version    print version number and configuration settings, then exit
  11133.      --config     print configuration, then exit
  11134.  -q, --quiet, --silent
  11135.                   do not print progress messages
  11136.  -d, --debug      don't remove temporary files
  11137.      --recheck    update $as_me by reconfiguring in the same conditions
  11138.      --file=FILE[:TEMPLATE]
  11139.                   instantiate the configuration file FILE
  11140.      --header=FILE[:TEMPLATE]
  11141.                   instantiate the configuration header FILE
  11142.  
  11143. Configuration files:
  11144. $config_files
  11145.  
  11146. Configuration headers:
  11147. $config_headers
  11148.  
  11149. Configuration commands:
  11150. $config_commands
  11151.  
  11152. Report bugs to the package provider."
  11153.  
  11154. _ACEOF
  11155. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11156. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11157. ac_cs_version="\\
  11158. MiniDLNA config.status 1.1.3
  11159. configured by $0, generated by GNU Autoconf 2.69,
  11160.  with options \\"\$ac_cs_config\\"
  11161.  
  11162. Copyright (C) 2012 Free Software Foundation, Inc.
  11163. This config.status script is free software; the Free Software Foundation
  11164. gives unlimited permission to copy, distribute and modify it."
  11165.  
  11166. ac_pwd='$ac_pwd'
  11167. srcdir='$srcdir'
  11168. INSTALL='$INSTALL'
  11169. MKDIR_P='$MKDIR_P'
  11170. AWK='$AWK'
  11171. test -n "\$AWK" || AWK=awk
  11172. _ACEOF
  11173.  
  11174. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11175. # The default lists apply if the user does not specify any file.
  11176. ac_need_defaults=:
  11177. while test $# != 0
  11178. do
  11179.  case $1 in
  11180.  --*=?*)
  11181.    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11182.    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11183.    ac_shift=:
  11184.    ;;
  11185.  --*=)
  11186.    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11187.    ac_optarg=
  11188.    ac_shift=:
  11189.    ;;
  11190.  *)
  11191.    ac_option=$1
  11192.    ac_optarg=$2
  11193.    ac_shift=shift
  11194.    ;;
  11195.  esac
  11196.  
  11197.  case $ac_option in
  11198.  # Handling of the options.
  11199.  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11200.    ac_cs_recheck=: ;;
  11201.  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11202.    $as_echo "$ac_cs_version"; exit ;;
  11203.  --config | --confi | --conf | --con | --co | --c )
  11204.    $as_echo "$ac_cs_config"; exit ;;
  11205.  --debug | --debu | --deb | --de | --d | -d )
  11206.    debug=: ;;
  11207.  --file | --fil | --fi | --f )
  11208.    $ac_shift
  11209.    case $ac_optarg in
  11210.    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11211.     '') as_fn_error $? "missing file argument" ;;
  11212.     esac
  11213.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  11214.     ac_need_defaults=false;;
  11215.   --header | --heade | --head | --hea )
  11216.     $ac_shift
  11217.     case $ac_optarg in
  11218.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11219.     esac
  11220.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11221.     ac_need_defaults=false;;
  11222.   --he | --h)
  11223.     # Conflict between --help and --header
  11224.     as_fn_error $? "ambiguous option: \`$1'
  11225. Try \`$0 --help' for more information.";;
  11226.   --help | --hel | -h )
  11227.     $as_echo "$ac_cs_usage"; exit ;;
  11228.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11229.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11230.     ac_cs_silent=: ;;
  11231.  
  11232.   # This is an error.
  11233.   -*) as_fn_error $? "unrecognized option: \`$1'
  11234. Try \`$0 --help' for more information." ;;
  11235.  
  11236.   *) as_fn_append ac_config_targets " $1"
  11237.      ac_need_defaults=false ;;
  11238.  
  11239.   esac
  11240.   shift
  11241. done
  11242.  
  11243. ac_configure_extra_args=
  11244.  
  11245. if $ac_cs_silent; then
  11246.   exec 6>/dev/null
  11247.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  11248. fi
  11249.  
  11250. _ACEOF
  11251. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11252. if \$ac_cs_recheck; then
  11253.   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11254.   shift
  11255.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11256.   CONFIG_SHELL='$SHELL'
  11257.   export CONFIG_SHELL
  11258.   exec "\$@"
  11259. fi
  11260.  
  11261. _ACEOF
  11262. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11263. exec 5>>config.log
  11264. {
  11265.   echo
  11266.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11267. ## Running $as_me. ##
  11268. _ASBOX
  11269.   $as_echo "$ac_log"
  11270. } >&5
  11271.  
  11272. _ACEOF
  11273. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11274. #
  11275. # INIT-COMMANDS
  11276. #
  11277. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11278. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  11279.     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  11280.     # from automake < 1.5.
  11281.     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  11282.     # Capture the value of LINGUAS because we need it to compute CATALOGS.
  11283.     LINGUAS="${LINGUAS-%UNSET%}"
  11284.  
  11285.  
  11286. _ACEOF
  11287.  
  11288. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11289.  
  11290. # Handling of arguments.
  11291. for ac_config_target in $ac_config_targets
  11292. do
  11293.   case $ac_config_target in
  11294.     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11295.     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11296.     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  11297.     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  11298.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11299.  
  11300.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11301.  esac
  11302. done
  11303.  
  11304.  
  11305. # If the user did not use the arguments to specify the items to instantiate,
  11306. # then the envvar interface is used.  Set only those that are not.
  11307. # We use the long form for the default assignment because of an extremely
  11308. # bizarre bug on SunOS 4.1.3.
  11309. if $ac_need_defaults; then
  11310.  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11311.  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11312.  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11313. fi
  11314.  
  11315. # Have a temporary directory for convenience.  Make it in the build tree
  11316. # simply because there is no reason against having it here, and in addition,
  11317. # creating and moving files from /tmp can sometimes cause problems.
  11318. # Hook for its removal unless debugging.
  11319. # Note that there is a small window in which the directory will not be cleaned:
  11320. # after its creation but before its name has been assigned to `$tmp'.
  11321. $debug ||
  11322. {
  11323.  tmp= ac_tmp=
  11324.  trap 'exit_status=$?
  11325.  : "${ac_tmp:=$tmp}"
  11326.  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11327. ' 0
  11328.  trap 'as_fn_exit 1' 1 2 13 15
  11329. }
  11330. # Create a (secure) tmp directory for tmp files.
  11331.  
  11332. {
  11333.  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11334.  test -d "$tmp"
  11335. }  ||
  11336. {
  11337.  tmp=./conf$$-$RANDOM
  11338.  (umask 077 && mkdir "$tmp")
  11339. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11340. ac_tmp=$tmp
  11341.  
  11342. # Set up the scripts for CONFIG_FILES section.
  11343. # No need to generate them if there are no CONFIG_FILES.
  11344. # This happens for instance with `./config.status config.h'.
  11345. if test -n "$CONFIG_FILES"; then
  11346.  
  11347.  
  11348. ac_cr=`echo X | tr X '\015'`
  11349. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11350. # But we know of no other shell where ac_cr would be empty at this
  11351. # point, so we can use a bashism as a fallback.
  11352. if test "x$ac_cr" = x; then
  11353.  eval ac_cr=\$\'\\r\'
  11354. fi
  11355. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11356. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11357.  ac_cs_awk_cr='\\r'
  11358. else
  11359.  ac_cs_awk_cr=$ac_cr
  11360. fi
  11361.  
  11362. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11363. _ACEOF
  11364.  
  11365.  
  11366. {
  11367.  echo "cat >conf$$subs.awk <<_ACEOF" &&
  11368.  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11369.  echo "_ACEOF"
  11370. } >conf$$subs.sh ||
  11371.  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11372. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11373. ac_delim='%!_!# '
  11374. for ac_last_try in false false false false false :; do
  11375.  . ./conf$$subs.sh ||
  11376.    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11377.  
  11378.  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11379.  if test $ac_delim_n = $ac_delim_num; then
  11380.    break
  11381.  elif $ac_last_try; then
  11382.    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11383.  else
  11384.    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11385.  fi
  11386. done
  11387. rm -f conf$$subs.sh
  11388.  
  11389. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11390. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11391. _ACEOF
  11392. sed -n '
  11393. h
  11394. s/^/S["/; s/!.*/"]=/
  11395. p
  11396. g
  11397. s/^[^!]*!//
  11398. :repl
  11399. t repl
  11400. s/'"$ac_delim"'$//
  11401. t delim
  11402. :nl
  11403. h
  11404. s/\(.\{148\}\)..*/\1/
  11405. t more1
  11406. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11407. p
  11408. n
  11409. b repl
  11410. :more1
  11411. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11412. p
  11413. g
  11414. s/.\{148\}//
  11415. t nl
  11416. :delim
  11417. h
  11418. s/\(.\{148\}\)..*/\1/
  11419. t more2
  11420. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11421. p
  11422. b
  11423. :more2
  11424. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11425. p
  11426. g
  11427. s/.\{148\}//
  11428. t delim
  11429. ' <conf$$subs.awk | sed '
  11430. /^[^""]/{
  11431.  N
  11432.  s/\n//
  11433. }
  11434. ' >>$CONFIG_STATUS || ac_write_fail=1
  11435. rm -f conf$$subs.awk
  11436. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11437. _ACAWK
  11438. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11439.  for (key in S) S_is_set[key] = 1
  11440.  FS = ""
  11441.  
  11442. }
  11443. {
  11444.  line = $ 0
  11445.  nfields = split(line, field, "@")
  11446.  substed = 0
  11447.  len = length(field[1])
  11448.  for (i = 2; i < nfields; i++) {
  11449.    key = field[i]
  11450.    keylen = length(key)
  11451.    if (S_is_set[key]) {
  11452.      value = S[key]
  11453.      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11454.      len += length(value) + length(field[++i])
  11455.      substed = 1
  11456.    } else
  11457.      len += 1 + keylen
  11458.  }
  11459.  
  11460.  print line
  11461. }
  11462.  
  11463. _ACAWK
  11464. _ACEOF
  11465. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11466. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11467.  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11468. else
  11469.  cat
  11470. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11471.  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11472. _ACEOF
  11473.  
  11474. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11475. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11476. # trailing colons and then remove the whole line if VPATH becomes empty
  11477. # (actually we leave an empty line to preserve line numbers).
  11478. if test "x$srcdir" = x.; then
  11479.   ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
  11480. h
  11481. s///
  11482. s/^/:/
  11483. s/[  ]*$/:/
  11484. s/:\$(srcdir):/:/g
  11485. s/:\${srcdir}:/:/g
  11486. s/:@srcdir@:/:/g
  11487. s/^:*//
  11488. s/:*$//
  11489. x
  11490. s/\(=[   ]*\).*/\1/
  11491. G
  11492. s/\n//
  11493. s/^[^=]*=[   ]*$//
  11494. }'
  11495. fi
  11496.  
  11497. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11498. fi # test -n "$CONFIG_FILES"
  11499.  
  11500. # Set up the scripts for CONFIG_HEADERS section.
  11501. # No need to generate them if there are no CONFIG_HEADERS.
  11502. # This happens for instance with `./config.status Makefile'.
  11503. if test -n "$CONFIG_HEADERS"; then
  11504. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11505. BEGIN {
  11506. _ACEOF
  11507.  
  11508. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11509. # here-document in config.status, that substitutes the proper values into
  11510. # config.h.in to produce config.h.
  11511.  
  11512. # Create a delimiter string that does not exist in confdefs.h, to ease
  11513. # handling of long lines.
  11514. ac_delim='%!_!# '
  11515. for ac_last_try in false false :; do
  11516.  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11517.  if test -z "$ac_tt"; then
  11518.    break
  11519.  elif $ac_last_try; then
  11520.    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11521.  else
  11522.    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11523.  fi
  11524. done
  11525.  
  11526. # For the awk script, D is an array of macro values keyed by name,
  11527. # likewise P contains macro parameters if any.  Preserve backslash
  11528. # newline sequences.
  11529.  
  11530. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11531. sed -n '
  11532. s/.\{148\}/&'"$ac_delim"'/g
  11533. t rset
  11534. :rset
  11535. s/^[     ]*#[    ]*define[   ][  ]*/ /
  11536. t def
  11537. d
  11538. :def
  11539. s/\\$//
  11540. t bsnl
  11541. s/["\\]/\\&/g
  11542. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  11543. D["\1"]=" \3"/p
  11544. s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2"/p
  11545. d
  11546. :bsnl
  11547. s/["\\]/\\&/g
  11548. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  11549. D["\1"]=" \3\\\\\\n"\\/p
  11550. t cont
  11551. s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11552. t cont
  11553. d
  11554. :cont
  11555. n
  11556. s/.\{148\}/&'"$ac_delim"'/g
  11557. t clear
  11558. :clear
  11559. s/\\$//
  11560. t bsnlc
  11561. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11562. d
  11563. :bsnlc
  11564. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11565. b cont
  11566. ' <confdefs.h | sed '
  11567. s/'"$ac_delim"'/"\\\
  11568. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11569.  
  11570. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11571.  for (key in D) D_is_set[key] = 1
  11572.  FS = ""
  11573. }
  11574. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11575.  line = \$ 0
  11576.  split(line, arg, " ")
  11577.  if (arg[1] == "#") {
  11578.    defundef = arg[2]
  11579.    mac1 = arg[3]
  11580.  } else {
  11581.    defundef = substr(arg[1], 2)
  11582.    mac1 = arg[2]
  11583.  }
  11584.  split(mac1, mac2, "(") #)
  11585.  macro = mac2[1]
  11586.  prefix = substr(line, 1, index(line, defundef) - 1)
  11587.  if (D_is_set[macro]) {
  11588.    # Preserve the white space surrounding the "#".
  11589.    print prefix "define", macro P[macro] D[macro]
  11590.    next
  11591.  } else {
  11592.    # Replace #undef with comments.  This is necessary, for example,
  11593.    # in the case of _POSIX_SOURCE, which is predefined and required
  11594.    # on some systems where configure will not decide to define it.
  11595.    if (defundef == "undef") {
  11596.      print "/*", prefix defundef, macro, "*/"
  11597.      next
  11598.    }
  11599.  }
  11600. }
  11601. { print }
  11602. _ACAWK
  11603. _ACEOF
  11604. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11605.  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11606. fi # test -n "$CONFIG_HEADERS"
  11607.  
  11608.  
  11609. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  11610. shift
  11611. for ac_tag
  11612. do
  11613.  case $ac_tag in
  11614.  :[FHLC]) ac_mode=$ac_tag; continue;;
  11615.  esac
  11616.  case $ac_mode$ac_tag in
  11617.  :[FHL]*:*);;
  11618.  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11619.   :[FH]-) ac_tag=-:-;;
  11620.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11621.   esac
  11622.   ac_save_IFS=$IFS
  11623.   IFS=:
  11624.   set x $ac_tag
  11625.   IFS=$ac_save_IFS
  11626.   shift
  11627.   ac_file=$1
  11628.   shift
  11629.  
  11630.   case $ac_mode in
  11631.   :L) ac_source=$1;;
  11632.   :[FH])
  11633.     ac_file_inputs=
  11634.     for ac_f
  11635.     do
  11636.       case $ac_f in
  11637.       -) ac_f="$ac_tmp/stdin";;
  11638.       *) # Look for the file first in the build tree, then in the source tree
  11639.      # (if the path is not absolute).  The absolute path cannot be DOS-style,
  11640.      # because $ac_f cannot contain `:'.
  11641.      test -f "$ac_f" ||
  11642.        case $ac_f in
  11643.        [\\/$]*) false;;
  11644.        *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11645.        esac ||
  11646.        as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11647.      esac
  11648.      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11649.      as_fn_append ac_file_inputs " '$ac_f'"
  11650.    done
  11651.  
  11652.    # Let's still pretend it is `configure' which instantiates (i.e., don't
  11653.     # use $as_me), people would be surprised to read:
  11654.     #    /* config.h.  Generated by config.status.  */
  11655.     configure_input='Generated from '`
  11656.       $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11657.     `' by configure.'
  11658.     if test x"$ac_file" != x-; then
  11659.       configure_input="$ac_file.  $configure_input"
  11660.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11661. $as_echo "$as_me: creating $ac_file" >&6;}
  11662.     fi
  11663.     # Neutralize special characters interpreted by sed in replacement strings.
  11664.     case $configure_input in #(
  11665.     *\&* | *\|* | *\\* )
  11666.        ac_sed_conf_input=`$as_echo "$configure_input" |
  11667.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11668.     *) ac_sed_conf_input=$configure_input;;
  11669.     esac
  11670.  
  11671.     case $ac_tag in
  11672.     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11673.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11674.     esac
  11675.     ;;
  11676.   esac
  11677.  
  11678.   ac_dir=`$as_dirname -- "$ac_file" ||
  11679. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11680.      X"$ac_file" : 'X\(//\)[^/]' \| \
  11681.      X"$ac_file" : 'X\(//\)$' \| \
  11682.      X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11683. $as_echo X"$ac_file" |
  11684.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11685.         s//\1/
  11686.         q
  11687.       }
  11688.       /^X\(\/\/\)[^/].*/{
  11689.         s//\1/
  11690.         q
  11691.       }
  11692.       /^X\(\/\/\)$/{
  11693.         s//\1/
  11694.         q
  11695.       }
  11696.       /^X\(\/\).*/{
  11697.         s//\1/
  11698.         q
  11699.       }
  11700.       s/.*/./; q'`
  11701.   as_dir="$ac_dir"; as_fn_mkdir_p
  11702.   ac_builddir=.
  11703.  
  11704. case "$ac_dir" in
  11705. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11706. *)
  11707.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11708.   # A ".." for each directory in $ac_dir_suffix.
  11709.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11710.   case $ac_top_builddir_sub in
  11711.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11712.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11713.   esac ;;
  11714. esac
  11715. ac_abs_top_builddir=$ac_pwd
  11716. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11717. # for backward compatibility:
  11718. ac_top_builddir=$ac_top_build_prefix
  11719.  
  11720. case $srcdir in
  11721.   .)  # We are building in place.
  11722.     ac_srcdir=.
  11723.     ac_top_srcdir=$ac_top_builddir_sub
  11724.     ac_abs_top_srcdir=$ac_pwd ;;
  11725.   [\\/]* | ?:[\\/]* )  # Absolute name.
  11726.     ac_srcdir=$srcdir$ac_dir_suffix;
  11727.     ac_top_srcdir=$srcdir
  11728.     ac_abs_top_srcdir=$srcdir ;;
  11729.   *) # Relative name.
  11730.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11731.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  11732.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11733. esac
  11734. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11735.  
  11736.  
  11737.   case $ac_mode in
  11738.   :F)
  11739.   #
  11740.   # CONFIG_FILE
  11741.   #
  11742.  
  11743.   case $INSTALL in
  11744.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11745.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11746.   esac
  11747.   ac_MKDIR_P=$MKDIR_P
  11748.   case $MKDIR_P in
  11749.   [\\/$]* | ?:[\\/]* ) ;;
  11750.   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11751.   esac
  11752. _ACEOF
  11753.  
  11754. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11755. # If the template does not know about datarootdir, expand it.
  11756. # FIXME: This hack should be removed a few years after 2.60.
  11757. ac_datarootdir_hack=; ac_datarootdir_seen=
  11758. ac_sed_dataroot='
  11759. /datarootdir/ {
  11760.  p
  11761.  q
  11762. }
  11763. /@datadir@/p
  11764. /@docdir@/p
  11765. /@infodir@/p
  11766. /@localedir@/p
  11767. /@mandir@/p'
  11768. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11769. *datarootdir*) ac_datarootdir_seen=yes;;
  11770. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11771.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11772. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11773. _ACEOF
  11774. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11775.   ac_datarootdir_hack='
  11776.  s&@datadir@&$datadir&g
  11777.  s&@docdir@&$docdir&g
  11778.  s&@infodir@&$infodir&g
  11779.  s&@localedir@&$localedir&g
  11780.  s&@mandir@&$mandir&g
  11781.  s&\\\${datarootdir}&$datarootdir&g' ;;
  11782. esac
  11783. _ACEOF
  11784.  
  11785. # Neutralize VPATH when `$srcdir' = `.'.
  11786. # Shell code in configure.ac might set extrasub.
  11787. # FIXME: do we really want to maintain this feature?
  11788. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11789. ac_sed_extra="$ac_vpsub
  11790. $extrasub
  11791. _ACEOF
  11792. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11793. :t
  11794. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11795. s|@configure_input@|$ac_sed_conf_input|;t t
  11796. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11797. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11798. s&@srcdir@&$ac_srcdir&;t t
  11799. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11800. s&@top_srcdir@&$ac_top_srcdir&;t t
  11801. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11802. s&@builddir@&$ac_builddir&;t t
  11803. s&@abs_builddir@&$ac_abs_builddir&;t t
  11804. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11805. s&@INSTALL@&$ac_INSTALL&;t t
  11806. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11807. $ac_datarootdir_hack
  11808. "
  11809. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11810.   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11811.  
  11812. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11813.   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11814.   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
  11815.       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11816.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11817. which seems to be undefined.  Please make sure it is defined" >&5
  11818. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11819. which seems to be undefined.  Please make sure it is defined" >&2;}
  11820.  
  11821.   rm -f "$ac_tmp/stdin"
  11822.   case $ac_file in
  11823.   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11824.   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11825.   esac \
  11826.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11827.  ;;
  11828.   :H)
  11829.   #
  11830.   # CONFIG_HEADER
  11831.   #
  11832.   if test x"$ac_file" != x-; then
  11833.     {
  11834.       $as_echo "/* $configure_input  */" \
  11835.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11836.     } >"$ac_tmp/config.h" \
  11837.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11838.     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11839.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11840. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11841.     else
  11842.       rm -f "$ac_file"
  11843.       mv "$ac_tmp/config.h" "$ac_file" \
  11844.     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11845.     fi
  11846.   else
  11847.     $as_echo "/* $configure_input  */" \
  11848.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11849.       || as_fn_error $? "could not create -" "$LINENO" 5
  11850.   fi
  11851. # Compute "$ac_file"'s index in $config_headers.
  11852. _am_arg="$ac_file"
  11853. _am_stamp_count=1
  11854. for _am_header in $config_headers :; do
  11855.   case $_am_header in
  11856.     $_am_arg | $_am_arg:* )
  11857.       break ;;
  11858.     * )
  11859.       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11860.   esac
  11861. done
  11862. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11863. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11864.      X"$_am_arg" : 'X\(//\)[^/]' \| \
  11865.      X"$_am_arg" : 'X\(//\)$' \| \
  11866.      X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11867. $as_echo X"$_am_arg" |
  11868.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11869.         s//\1/
  11870.         q
  11871.       }
  11872.       /^X\(\/\/\)[^/].*/{
  11873.         s//\1/
  11874.         q
  11875.       }
  11876.       /^X\(\/\/\)$/{
  11877.         s//\1/
  11878.         q
  11879.       }
  11880.       /^X\(\/\).*/{
  11881.         s//\1/
  11882.         q
  11883.       }
  11884.       s/.*/./; q'`/stamp-h$_am_stamp_count
  11885.  ;;
  11886.  
  11887.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11888. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11889.  ;;
  11890.   esac
  11891.  
  11892.  
  11893.   case $ac_file$ac_mode in
  11894.     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11895.   # Older Autoconf quotes --file arguments for eval, but not when files
  11896.   # are listed without --file.  Let's play safe and only enable the eval
  11897.   # if we detect the quoting.
  11898.   case $CONFIG_FILES in
  11899.   *\'*) eval set x "$CONFIG_FILES" ;;
  11900.   *)   set x $CONFIG_FILES ;;
  11901.   esac
  11902.   shift
  11903.   for mf
  11904.   do
  11905.     # Strip MF so we end up with the name of the file.
  11906.     mf=`echo "$mf" | sed -e 's/:.*$//'`
  11907.     # Check whether this is an Automake generated Makefile or not.
  11908.     # We used to match only the files named 'Makefile.in', but
  11909.     # some people rename them; so instead we look at the file content.
  11910.     # Grep'ing the first line is not enough: some people post-process
  11911.     # each Makefile.in and add a new line on top of each file to say so.
  11912.     # Grep'ing the whole file is not good either: AIX grep has a line
  11913.     # limit of 2048, but all sed's we know have understand at least 4000.
  11914.     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11915.       dirpart=`$as_dirname -- "$mf" ||
  11916. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11917.      X"$mf" : 'X\(//\)[^/]' \| \
  11918.      X"$mf" : 'X\(//\)$' \| \
  11919.      X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11920. $as_echo X"$mf" |
  11921.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11922.         s//\1/
  11923.         q
  11924.       }
  11925.       /^X\(\/\/\)[^/].*/{
  11926.         s//\1/
  11927.         q
  11928.       }
  11929.       /^X\(\/\/\)$/{
  11930.         s//\1/
  11931.         q
  11932.       }
  11933.       /^X\(\/\).*/{
  11934.         s//\1/
  11935.         q
  11936.       }
  11937.       s/.*/./; q'`
  11938.     else
  11939.       continue
  11940.     fi
  11941.     # Extract the definition of DEPDIR, am__include, and am__quote
  11942.     # from the Makefile without running 'make'.
  11943.     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11944.     test -z "$DEPDIR" && continue
  11945.     am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11946.     test -z "$am__include" && continue
  11947.     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11948.     # Find all dependency output files, they are included files with
  11949.     # $(DEPDIR) in their names.  We invoke sed twice because it is the
  11950.     # simplest approach to changing $(DEPDIR) to its actual value in the
  11951.     # expansion.
  11952.     for file in `sed -n "
  11953.      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11954.      sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  11955.       # Make sure the directory exists.
  11956.       test -f "$dirpart/$file" && continue
  11957.       fdir=`$as_dirname -- "$file" ||
  11958. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11959.      X"$file" : 'X\(//\)[^/]' \| \
  11960.      X"$file" : 'X\(//\)$' \| \
  11961.      X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11962. $as_echo X"$file" |
  11963.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11964.         s//\1/
  11965.         q
  11966.       }
  11967.       /^X\(\/\/\)[^/].*/{
  11968.         s//\1/
  11969.         q
  11970.       }
  11971.       /^X\(\/\/\)$/{
  11972.         s//\1/
  11973.         q
  11974.       }
  11975.       /^X\(\/\).*/{
  11976.         s//\1/
  11977.         q
  11978.       }
  11979.       s/.*/./; q'`
  11980.       as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11981.       # echo "creating $dirpart/$file"
  11982.       echo '# dummy' > "$dirpart/$file"
  11983.     done
  11984.   done
  11985. }
  11986.  ;;
  11987.     "po-directories":C)
  11988.     for ac_file in $CONFIG_FILES; do
  11989.       # Support "outfile[:infile[:infile...]]"
  11990.       case "$ac_file" in
  11991.         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11992.       esac
  11993.       # PO directories have a Makefile.in generated from Makefile.in.in.
  11994.       case "$ac_file" in */Makefile.in)
  11995.         # Adjust a relative srcdir.
  11996.         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  11997.         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  11998.         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  11999.         # In autoconf-2.13 it is called $ac_given_srcdir.
  12000.         # In autoconf-2.50 it is called $srcdir.
  12001.         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  12002.         case "$ac_given_srcdir" in
  12003.           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  12004.           /*) top_srcdir="$ac_given_srcdir" ;;
  12005.           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
  12006.         esac
  12007.         # Treat a directory as a PO directory if and only if it has a
  12008.         # POTFILES.in file. This allows packages to have multiple PO
  12009.         # directories under different names or in different locations.
  12010.         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  12011.           rm -f "$ac_dir/POTFILES"
  12012.           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  12013.           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  12014.           POMAKEFILEDEPS="POTFILES.in"
  12015.           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  12016.           # on $ac_dir but don't depend on user-specified configuration
  12017.           # parameters.
  12018.           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  12019.             # The LINGUAS file contains the set of available languages.
  12020.             if test -n "$OBSOLETE_ALL_LINGUAS"; then
  12021.               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  12022.             fi
  12023.             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  12024.             # Hide the ALL_LINGUAS assigment from automake < 1.5.
  12025.             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  12026.             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  12027.           else
  12028.             # The set of available languages was given in configure.in.
  12029.             # Hide the ALL_LINGUAS assigment from automake < 1.5.
  12030.             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  12031.           fi
  12032.           # Compute POFILES
  12033.           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  12034.           # Compute UPDATEPOFILES
  12035.           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  12036.           # Compute DUMMYPOFILES
  12037.           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  12038.           # Compute GMOFILES
  12039.           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  12040.           case "$ac_given_srcdir" in
  12041.             .) srcdirpre= ;;
  12042.             *) srcdirpre='$(srcdir)/' ;;
  12043.           esac
  12044.           POFILES=
  12045.           UPDATEPOFILES=
  12046.           DUMMYPOFILES=
  12047.           GMOFILES=
  12048.           for lang in $ALL_LINGUAS; do
  12049.             POFILES="$POFILES $srcdirpre$lang.po"
  12050.             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  12051.             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  12052.             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  12053.           done
  12054.           # CATALOGS depends on both $ac_dir and the user's LINGUAS
  12055.           # environment variable.
  12056.           INST_LINGUAS=
  12057.           if test -n "$ALL_LINGUAS"; then
  12058.             for presentlang in $ALL_LINGUAS; do
  12059.               useit=no
  12060.               if test "%UNSET%" != "$LINGUAS"; then
  12061.                 desiredlanguages="$LINGUAS"
  12062.               else
  12063.                 desiredlanguages="$ALL_LINGUAS"
  12064.               fi
  12065.               for desiredlang in $desiredlanguages; do
  12066.                 # Use the presentlang catalog if desiredlang is
  12067.                 #   a. equal to presentlang, or
  12068.                 #   b. a variant of presentlang (because in this case,
  12069.                 #      presentlang can be used as a fallback for messages
  12070.                 #      which are not translated in the desiredlang catalog).
  12071.                 case "$desiredlang" in
  12072.                   "$presentlang"*) useit=yes;;
  12073.                 esac
  12074.               done
  12075.               if test $useit = yes; then
  12076.                 INST_LINGUAS="$INST_LINGUAS $presentlang"
  12077.               fi
  12078.             done
  12079.           fi
  12080.           CATALOGS=
  12081.           if test -n "$INST_LINGUAS"; then
  12082.             for lang in $INST_LINGUAS; do
  12083.               CATALOGS="$CATALOGS $lang.gmo"
  12084.             done
  12085.           fi
  12086.           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  12087.           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"
  12088.           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  12089.             if test -f "$f"; then
  12090.               case "$f" in
  12091.                 *.orig | *.bak | *~) ;;
  12092.                 *) cat "$f" >> "$ac_dir/Makefile" ;;
  12093.               esac
  12094.             fi
  12095.           done
  12096.         fi
  12097.         ;;
  12098.       esac
  12099.     done ;;
  12100.  
  12101.   esac
  12102. done # for ac_tag
  12103.  
  12104.  
  12105. as_fn_exit 0
  12106. _ACEOF
  12107. ac_clean_files=$ac_clean_files_save
  12108.  
  12109. test $ac_write_fail = 0 ||
  12110.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12111.  
  12112.  
  12113. # configure is writing to config.log, and then calls config.status.
  12114. # config.status does its own redirection, appending to config.log.
  12115. # Unfortunately, on DOS this fails, as config.log is still kept open
  12116. # by configure, so config.status won't be able to write to it; its
  12117. # output is simply discarded.  So we exec the FD to /dev/null,
  12118. # effectively closing config.log, so it can be properly (re)opened and
  12119. # appended to by config.status.  When coming back to configure, we
  12120. # need to make the FD available again.
  12121. if test "$no_create" != yes; then
  12122.   ac_cs_success=:
  12123.   ac_config_status_args=
  12124.   test "$silent" = yes &&
  12125.     ac_config_status_args="$ac_config_status_args --quiet"
  12126.   exec 5>/dev/null
  12127.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12128.   exec 5>>config.log
  12129.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12130.   # would make configure fail if this is the last instruction.
  12131.   $ac_cs_success || as_fn_exit 1
  12132. fi
  12133. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12134.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12135. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12136. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement